@brggroup/share-lib 0.2.21 → 0.2.22

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.
@@ -86,7 +86,7 @@ import { Title, DomSanitizer } from '@angular/platform-browser';
86
86
  import * as i5$4 from 'ng-zorro-antd/dropdown';
87
87
  import { NzDropDownModule, NzContextMenuService } from 'ng-zorro-antd/dropdown';
88
88
  import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
89
- import * as i1$5 from 'ng-zorro-antd/tree';
89
+ import * as i10$1 from 'ng-zorro-antd/tree';
90
90
  import { NzTreeModule, NzTreeNode } from 'ng-zorro-antd/tree';
91
91
  import { NzBackTopModule } from 'ng-zorro-antd/back-top';
92
92
  import { NzSegmentedModule } from 'ng-zorro-antd/segmented';
@@ -13775,10 +13775,7 @@ class LayoutComponent extends BaseComponent {
13775
13775
  TokenStorage = TokenStorage;
13776
13776
  LayoutComponent = LayoutComponent;
13777
13777
  /**
13778
- * Hệ thống cờ giao tiếp Layout toàn cục (Static Getters/Setters + Angular Signals + queueMicrotask):
13779
- * - Giữ nguyên 100% cú pháp `LayoutComponent.noShowSideMenu = true` ở tất cả các component con.
13780
- * - Tự động trì hoãn việc cập nhật Signal sang microtask kế tiếp sau khi pha kiểm tra `checkNoChanges` kết thúc,
13781
- * triệt tiêu hoàn toàn lỗi `NG0100: ExpressionChangedAfterItHasBeenCheckedError` mà không cần bọc `setTimeout` thủ công.
13778
+ * Hệ thống cờ giao tiếp Layout toàn cục (Static Getters/Setters + Angular Signals + queueMicrotask)
13782
13779
  */
13783
13780
  static _noShowSideMenu$ = signal(false);
13784
13781
  static _noShowBreadcrumb$ = signal(false);
@@ -13818,9 +13815,6 @@ class LayoutComponent extends BaseComponent {
13818
13815
  LayoutComponent._pendingIsUserAction = Boolean(value);
13819
13816
  LayoutComponent.scheduleStaticFlagsSync();
13820
13817
  }
13821
- /**
13822
- * Hàm tiện ích tùy chọn nếu muốn cập nhật nhiều cờ Layout cùng lúc từ component con
13823
- */
13824
13818
  static setLayoutFlags(flags) {
13825
13819
  if (flags.noShowSideMenu !== undefined) {
13826
13820
  LayoutComponent._pendingNoShowSideMenu = Boolean(flags.noShowSideMenu);
@@ -13868,12 +13862,24 @@ class LayoutComponent extends BaseComponent {
13868
13862
  });
13869
13863
  }
13870
13864
  isViewDestroyed = false;
13865
+ boundGlobalTableRowClick = (event) => this.onGlobalTableRowClick(event);
13866
+ boundWindowResize = () => this.clampEdgeDockPosition();
13867
+ boundEdgePointerMove = (event) => this.onEdgeDockPointerMove(event);
13868
+ boundEdgePointerUp = (event) => this.onEdgeDockPointerUp(event);
13871
13869
  /**
13872
- * Listener Event Delegation toàn cục (chạy ở pha Capture ngoài NgZone)
13873
- * giúp đánh dấu Highlight dòng khi click 1 lần trên TẤT CẢ các bảng (nz-table / table)
13874
- * kể cả trong trang chính, trong Modal và trong Drawer.
13870
+ * Quản lý vị trí trượt dọc & trạng thái kéo của cụm nút điều khiển nhanh (Enterprise Edge Quick Dock):
13871
+ * - Mặc định đặt ở `68px` (ngay bên dưới hàng Breadcrumb & Thanh lọc đầu trang để không che ô tìm kiếm).
13872
+ * - Cho phép người dùng kéo trượt dọc mượt mà và tự động lưu vào `localStorage`.
13875
13873
  */
13876
- boundGlobalTableRowClick = (event) => this.onGlobalTableRowClick(event);
13874
+ static EDGE_DOCK_STORAGE_KEY = 'MENU_edgeDockTop';
13875
+ static EDGE_DOCK_DEFAULT_TOP = 68;
13876
+ edgeDockTop = LayoutComponent.EDGE_DOCK_DEFAULT_TOP;
13877
+ isEdgeDockDragging = false;
13878
+ edgeDragMoved = false;
13879
+ edgeDragStartY = 0;
13880
+ edgeDragStartTop = LayoutComponent.EDGE_DOCK_DEFAULT_TOP;
13881
+ activeDragElement = null;
13882
+ activePointerId = null;
13877
13883
  MENU_TYPE = '';
13878
13884
  SYSTEM_NAME = '';
13879
13885
  SYSTEM_SUB_NAME_LEFT = '';
@@ -13886,26 +13892,14 @@ class LayoutComponent extends BaseComponent {
13886
13892
  expandedKeys = [];
13887
13893
  lstMenu = [];
13888
13894
  filteredLstMenu = [];
13889
- /** ID của Menu lá đang mở và tập hợp ID các nhánh cha chứa menu đó */
13890
13895
  activeMenuId = '';
13891
13896
  activeParentIds = new Set();
13892
- /**
13893
- * Quản lý trạng thái tải Header Menu & Side Menu theo ngữ cảnh (`${moduleId}__${headerMenuId}`)
13894
- * để chống gọi trùng lặp `getUserMenu` khi:
13895
- * 1. Header Menu không có menu con (`lstMenu.length === 0`, ví dụ Dashboard cấp 1/2 gắn URL trực tiếp)
13896
- * 2. `navigateToDefaultMenu` điều hướng xong phát sinh sự kiện `NavigationEnd`
13897
- * 3. `ngOnInit` và `NavigationEnd` chạy gối nhau trong lúc request đang in-flight
13898
- */
13899
13897
  isHeaderMenuLoading = false;
13900
13898
  isHeaderMenuLoaded = false;
13901
13899
  loadedMenuContextKey = '';
13902
13900
  isMenuContextLoaded = false;
13903
13901
  inFlightMenuContextKey = '';
13904
13902
  pendingAutoNavigate = null;
13905
- /**
13906
- * Luôn trả về chiều rộng khi mở của Sider để nz-sider tự xử lý đóng về [nzCollapsedWidth]="0"
13907
- * mà không gây xung đột chiều rộng làm vỡ bố cục trong lúc đóng/mở.
13908
- */
13909
13903
  get siderWidth() {
13910
13904
  return localStorage.getItem('side-width') || '280px';
13911
13905
  }
@@ -13955,6 +13949,7 @@ class LayoutComponent extends BaseComponent {
13955
13949
  this.isViewDestroyed = false;
13956
13950
  LayoutComponent._activeInstance = this;
13957
13951
  this.initGlobalTableRowTracker();
13952
+ this.initEdgeDockPosition();
13958
13953
  if (localStorage.getItem('theme') === 'dark') {
13959
13954
  document.body.classList.add('dark-theme');
13960
13955
  }
@@ -14002,6 +13997,10 @@ class LayoutComponent extends BaseComponent {
14002
13997
  }
14003
13998
  ngOnDestroy() {
14004
13999
  this.isViewDestroyed = true;
14000
+ this.cleanupEdgeDockDragListeners();
14001
+ if (typeof window !== 'undefined') {
14002
+ window.removeEventListener('resize', this.boundWindowResize);
14003
+ }
14005
14004
  if (typeof document !== 'undefined') {
14006
14005
  document.removeEventListener('click', this.boundGlobalTableRowClick, true);
14007
14006
  }
@@ -14015,10 +14014,158 @@ class LayoutComponent extends BaseComponent {
14015
14014
  }
14016
14015
  }
14017
14016
  /**
14018
- * Đăng ký cơ chế đánh dấu (Highlight) dòng khi click 1 lần cho TẤT CẢ các bảng toàn hệ thống:
14019
- * - Chạy hoàn toàn ngoài NgZone (`runOutsideAngular`) nên không gây bất kỳ chu kỳ Change Detection thừa nào.
14020
- * - Dùng Capture Phase (`true`) để nhận biết dòng vừa click ngay cả khi các nút/ô bên trong gọi `$event.stopPropagation()`.
14017
+ * Khởi tạo toạ độ dọc của thanh Edge Quick Dock từ localStorage và lắng nghe sự kiện resize ngoài NgZone
14021
14018
  */
14019
+ initEdgeDockPosition() {
14020
+ const saved = localStorage.getItem(LayoutComponent.EDGE_DOCK_STORAGE_KEY);
14021
+ if (saved !== null) {
14022
+ const parsed = parseInt(saved, 10);
14023
+ if (!Number.isNaN(parsed)) {
14024
+ this.edgeDockTop = this.getClampedEdgeDockTop(parsed);
14025
+ }
14026
+ }
14027
+ else {
14028
+ this.edgeDockTop = this.getClampedEdgeDockTop(LayoutComponent.EDGE_DOCK_DEFAULT_TOP);
14029
+ }
14030
+ if (typeof window !== 'undefined') {
14031
+ this.ngZone.runOutsideAngular(() => {
14032
+ window.removeEventListener('resize', this.boundWindowResize);
14033
+ window.addEventListener('resize', this.boundWindowResize, { passive: true });
14034
+ });
14035
+ }
14036
+ }
14037
+ getClampedEdgeDockTop(candidateTop) {
14038
+ if (typeof window === 'undefined') {
14039
+ return Math.max(8, candidateTop);
14040
+ }
14041
+ const headerHeight = 45;
14042
+ const dockReserveHeight = this.isCollapsed ? 132 : 44;
14043
+ const bodyHeight = Math.max(200, window.innerHeight - headerHeight);
14044
+ const minTop = 8;
14045
+ const maxTop = Math.max(minTop, bodyHeight - dockReserveHeight - 16);
14046
+ return Math.min(maxTop, Math.max(minTop, Math.round(candidateTop)));
14047
+ }
14048
+ clampEdgeDockPosition() {
14049
+ const clamped = this.getClampedEdgeDockTop(this.edgeDockTop);
14050
+ if (clamped !== this.edgeDockTop) {
14051
+ this.edgeDockTop = clamped;
14052
+ this.cdr.markForCheck();
14053
+ }
14054
+ }
14055
+ /**
14056
+ * Bắt đầu theo dõi thao tác kéo trượt dọc cho cụm Edge Quick Dock (hoặc nút thu gọn trên viền Sider).
14057
+ * Cho phép kéo từ thanh nắm 6 chấm hoặc kéo trực tiếp trên bất kỳ nút nào trong cụm.
14058
+ */
14059
+ onEdgeDockPointerDown(event) {
14060
+ if (event.button !== 0)
14061
+ return;
14062
+ this.edgeDragMoved = false;
14063
+ this.edgeDragStartY = event.clientY;
14064
+ this.edgeDragStartTop = this.edgeDockTop;
14065
+ this.activePointerId = event.pointerId;
14066
+ this.activeDragElement = event.currentTarget;
14067
+ this.ngZone.runOutsideAngular(() => {
14068
+ window.addEventListener('pointermove', this.boundEdgePointerMove, { passive: false });
14069
+ window.addEventListener('pointerup', this.boundEdgePointerUp, true);
14070
+ window.addEventListener('pointercancel', this.boundEdgePointerUp, true);
14071
+ });
14072
+ }
14073
+ onEdgeDockPointerMove(event) {
14074
+ if (this.activePointerId !== null && event.pointerId !== this.activePointerId) {
14075
+ return;
14076
+ }
14077
+ const deltaY = event.clientY - this.edgeDragStartY;
14078
+ // Ngưỡng 5px để phân biệt rõ giữa Click chọn nút và Kéo trượt dọc
14079
+ if (!this.edgeDragMoved && Math.abs(deltaY) > 5) {
14080
+ this.edgeDragMoved = true;
14081
+ try {
14082
+ this.activeDragElement?.setPointerCapture(event.pointerId);
14083
+ }
14084
+ catch {
14085
+ // Bỏ qua nếu trình duyệt không hỗ trợ capture trên phần tử con
14086
+ }
14087
+ this.ngZone.run(() => {
14088
+ this.isEdgeDockDragging = true;
14089
+ this.cdr.markForCheck();
14090
+ });
14091
+ }
14092
+ if (this.edgeDragMoved) {
14093
+ if (event.cancelable) {
14094
+ event.preventDefault();
14095
+ }
14096
+ const nextTop = this.getClampedEdgeDockTop(this.edgeDragStartTop + deltaY);
14097
+ this.edgeDockTop = nextTop;
14098
+ // Cập nhật trực tiếp style.top trên DOM ở tốc độ 60fps không cần chạy Change Detection mỗi frame
14099
+ if (this.activeDragElement) {
14100
+ this.activeDragElement.style.top = `${nextTop}px`;
14101
+ }
14102
+ }
14103
+ }
14104
+ onEdgeDockPointerUp(event) {
14105
+ if (this.activePointerId !== null && event.pointerId !== this.activePointerId) {
14106
+ return;
14107
+ }
14108
+ if (this.edgeDragMoved && this.activeDragElement) {
14109
+ try {
14110
+ this.activeDragElement.releasePointerCapture(event.pointerId);
14111
+ }
14112
+ catch {
14113
+ // Ignore
14114
+ }
14115
+ }
14116
+ this.cleanupEdgeDockDragListeners();
14117
+ if (this.edgeDragMoved) {
14118
+ localStorage.setItem(LayoutComponent.EDGE_DOCK_STORAGE_KEY, String(this.edgeDockTop));
14119
+ this.ngZone.run(() => {
14120
+ this.isEdgeDockDragging = false;
14121
+ this.cdr.markForCheck();
14122
+ });
14123
+ // Giữ cờ edgeDragMoved trong 60ms để chặn sự kiện (click) phát sinh ngay sau khi nhả chuột kéo
14124
+ setTimeout(() => {
14125
+ this.edgeDragMoved = false;
14126
+ }, 60);
14127
+ }
14128
+ }
14129
+ cleanupEdgeDockDragListeners() {
14130
+ if (typeof window !== 'undefined') {
14131
+ window.removeEventListener('pointermove', this.boundEdgePointerMove);
14132
+ window.removeEventListener('pointerup', this.boundEdgePointerUp, true);
14133
+ window.removeEventListener('pointercancel', this.boundEdgePointerUp, true);
14134
+ }
14135
+ this.activeDragElement = null;
14136
+ this.activePointerId = null;
14137
+ }
14138
+ /**
14139
+ * Nhấp đúp vào thanh nắm kéo để đưa cụm nút về vị trí chuẩn mặc định
14140
+ */
14141
+ resetEdgeDockPosition(event) {
14142
+ event.stopPropagation();
14143
+ this.edgeDockTop = this.getClampedEdgeDockTop(LayoutComponent.EDGE_DOCK_DEFAULT_TOP);
14144
+ localStorage.setItem(LayoutComponent.EDGE_DOCK_STORAGE_KEY, String(this.edgeDockTop));
14145
+ this.cdr.markForCheck();
14146
+ }
14147
+ /**
14148
+ * Xử lý các hành động trên cụm nút Edge Quick Dock (chỉ kích hoạt khi người dùng Click thực sự, không phải vừa Kéo xong)
14149
+ */
14150
+ onEdgeDockAction(event, action) {
14151
+ if (this.edgeDragMoved || this.isEdgeDockDragging) {
14152
+ event.preventDefault();
14153
+ event.stopPropagation();
14154
+ return;
14155
+ }
14156
+ switch (action) {
14157
+ case 'home':
14158
+ this.gotoSelectModule();
14159
+ break;
14160
+ case 'peek':
14161
+ this.openMenuDrawer();
14162
+ break;
14163
+ case 'pin':
14164
+ case 'collapse':
14165
+ this.triggerCollapse();
14166
+ break;
14167
+ }
14168
+ }
14022
14169
  initGlobalTableRowTracker() {
14023
14170
  if (typeof document === 'undefined')
14024
14171
  return;
@@ -14031,7 +14178,6 @@ class LayoutComponent extends BaseComponent {
14031
14178
  const target = event.target;
14032
14179
  if (!target || typeof target.closest !== 'function')
14033
14180
  return;
14034
- // 1. Khi người dùng chuyển trang trên thanh phân trang (nz-pagination), xóa trạng thái đánh dấu dòng của bảng trước đó
14035
14181
  if (target.closest('.ant-pagination')) {
14036
14182
  const container = target.closest('.enterprise-page-shell, .ant-modal-body, .ant-drawer-body, nz-content') || document;
14037
14183
  container
@@ -14043,11 +14189,9 @@ class LayoutComponent extends BaseComponent {
14043
14189
  });
14044
14190
  return;
14045
14191
  }
14046
- // 2. Xác định dòng <tr> trong <tbody> vừa được click
14047
14192
  const tr = target.closest('tbody tr');
14048
14193
  if (!tr)
14049
14194
  return;
14050
- // Bỏ qua dòng trống (empty placeholder), dòng đo kích thước ẩn của NG-ZORRO, hoặc bảng không dùng chế độ đánh dấu dòng
14051
14195
  if (tr.classList.contains('ant-table-placeholder') ||
14052
14196
  tr.classList.contains('ant-table-measure-row') ||
14053
14197
  tr.classList.contains('tr-search') ||
@@ -14056,7 +14200,6 @@ class LayoutComponent extends BaseComponent {
14056
14200
  tr.querySelector('.wf-action-card')) {
14057
14201
  return;
14058
14202
  }
14059
- // 3. Giới hạn phạm vi trong bảng hiện tại (để mỗi bảng giữ dòng đang theo dõi độc lập nhau)
14060
14203
  const tableScope = tr.closest('nz-table, .ant-table-wrapper, table') || tr.parentElement;
14061
14204
  if (!tableScope)
14062
14205
  return;
@@ -14069,10 +14212,8 @@ class LayoutComponent extends BaseComponent {
14069
14212
  }
14070
14213
  prevRow.removeAttribute('data-rowspan-group-tracked');
14071
14214
  });
14072
- // 4. Đánh dấu cả class lẫn data-attribute (data-row-tracked miễn nhiễm 100% khi Angular đánh giá lại [ngClass])
14073
14215
  tr.classList.add('row-focus-tracked');
14074
14216
  tr.setAttribute('data-row-tracked', 'true');
14075
- // 5. Nếu bảng có gộp dòng (rowspan > 1, ví dụ bảng cấu hình giai đoạn quy trình), đánh dấu thêm dòng cha chứa ô rowspan
14076
14217
  const tbody = tr.parentElement;
14077
14218
  if (tbody && tbody.querySelector('td[rowspan]')) {
14078
14219
  const rows = Array.from(tbody.children).filter((el) => el.tagName.toLowerCase() === 'tr');
@@ -14130,7 +14271,6 @@ class LayoutComponent extends BaseComponent {
14130
14271
  return;
14131
14272
  }
14132
14273
  }
14133
- // Nếu danh sách Header Menu đang được tải, chờ handleUserHeaderMenu hoàn tất để phân giải 1 lần duy nhất
14134
14274
  if (this.isHeaderMenuLoading) {
14135
14275
  return;
14136
14276
  }
@@ -14149,20 +14289,10 @@ class LayoutComponent extends BaseComponent {
14149
14289
  this.navigateToDefaultMenu(undefined, true);
14150
14290
  }
14151
14291
  }
14152
- /**
14153
- * Kiểm tra xem URL hiện tại có đang dừng ở mức khung Module (/module/:moduleId)
14154
- * hoặc khung HeaderMenu (/module/:moduleId/headermenu/:headerMenuId) mà chưa có route chức năng con hay không.
14155
- */
14156
14292
  isLandingAtContainerRoot(rawUrl = this.currentUrl) {
14157
14293
  const { cleanPath } = this.parseNormalizedUrl(rawUrl);
14158
14294
  return cleanPath === '/';
14159
14295
  }
14160
- /**
14161
- * Chọn Header Menu mặc định khi vào Module:
14162
- * 1. Ưu tiên Header Menu có đánh dấu IsDefaultMenu === true
14163
- * 2. Nếu Header Menu có sẵn SubMenu chứa mục con đánh dấu IsDefaultMenu === true thì ưu tiên nhánh đó
14164
- * 3. Fallback về Header Menu đầu tiên đang hoạt động
14165
- */
14166
14296
  resolveDefaultHeaderMenu(headers) {
14167
14297
  if (!Array.isArray(headers) || headers.length === 0)
14168
14298
  return undefined;
@@ -14178,11 +14308,6 @@ class LayoutComponent extends BaseComponent {
14178
14308
  }
14179
14309
  return list.find((x) => !x.Url) || list[0];
14180
14310
  }
14181
- /**
14182
- * Khi URL không có /headermenu/:id:
14183
- * - Nếu đang ở URL sâu (ví dụ /admin/menu): tự động tìm Header Menu khớp URL
14184
- * - Nếu vừa chọn Module (/module/:moduleId): chọn Header Menu mặc định (IsDefaultMenu) và điều hướng vào Menu con mặc định
14185
- */
14186
14311
  resolveHeaderMenuWhenUrlHasNoHeaderId(rawUrl, shouldNavigateDefault = false) {
14187
14312
  const { cleanPath, queryMap } = this.parseNormalizedUrl(rawUrl);
14188
14313
  let matchedHeader;
@@ -14218,7 +14343,6 @@ class LayoutComponent extends BaseComponent {
14218
14343
  this.authService
14219
14344
  .getUserHeaderMenu(targetModuleId)
14220
14345
  .then((res) => {
14221
- // Bỏ qua nếu người dùng đã chuyển sang Module khác trong lúc chờ API
14222
14346
  if (this.MODULE_IN_USE && targetModuleId !== (this.currentModuleId || '')) {
14223
14347
  return;
14224
14348
  }
@@ -14226,12 +14350,10 @@ class LayoutComponent extends BaseComponent {
14226
14350
  this.isHeaderMenuLoaded = true;
14227
14351
  this.lstHeaderMenu = (res?.Data || []).map((item) => this.hydrateMenuRecursive(item));
14228
14352
  if (this.lstHeaderMenu.length === 0) {
14229
- // Trường hợp 1: Menu gắn trực tiếp vào Module KHÔNG qua Header Menu
14230
14353
  this.currentHeaderId = '';
14231
14354
  this.getUserMenu('', shouldNavigateDefault || this.isLandingAtContainerRoot(this.currentUrl), undefined, true);
14232
14355
  }
14233
14356
  else {
14234
- // Trường hợp 2: Menu gắn qua Header Menu
14235
14357
  const routeHeaderId = this.getParamFromRoute('headerMenuId') || '';
14236
14358
  if (routeHeaderId) {
14237
14359
  const headerObj = this.lstHeaderMenu.find((x) => x.App_Menu_Id === routeHeaderId);
@@ -14266,8 +14388,6 @@ class LayoutComponent extends BaseComponent {
14266
14388
  return;
14267
14389
  }
14268
14390
  const contextKey = `${this.currentModuleId || ''}__${headerMenuId || ''}`;
14269
- // 1. Nếu ngữ cảnh (Module + HeaderMenu) này đã tải xong (kể cả khi lstMenu rỗng vì Header Menu dẫn trực tiếp tới trang):
14270
- // Không gọi lại API getUserMenu lần 2
14271
14391
  if (contextKey === this.loadedMenuContextKey && this.isMenuContextLoaded) {
14272
14392
  this.currentHeaderId = headerMenuId;
14273
14393
  if (autoNavigateDefault) {
@@ -14276,8 +14396,6 @@ class LayoutComponent extends BaseComponent {
14276
14396
  this.syncActiveMenuState(this.currentUrl);
14277
14397
  return;
14278
14398
  }
14279
- // 2. Nếu ngữ cảnh này đang trong quá trình tải (in-flight):
14280
- // Gộp yêu cầu điều hướng mặc định (nếu có) và không bắn thêm HTTP request thứ 2
14281
14399
  if (contextKey === this.inFlightMenuContextKey) {
14282
14400
  this.currentHeaderId = headerMenuId;
14283
14401
  if (autoNavigateDefault) {
@@ -14285,7 +14403,6 @@ class LayoutComponent extends BaseComponent {
14285
14403
  }
14286
14404
  return;
14287
14405
  }
14288
- // 3. Bắt đầu tải mới cho ngữ cảnh (Module + HeaderMenu)
14289
14406
  this.currentHeaderId = headerMenuId;
14290
14407
  this.loadedMenuContextKey = contextKey;
14291
14408
  this.isMenuContextLoaded = false;
@@ -14294,7 +14411,6 @@ class LayoutComponent extends BaseComponent {
14294
14411
  this.authService
14295
14412
  .getUserMenu(this.currentModuleId, this.currentHeaderId)
14296
14413
  .then((res) => {
14297
- // Bỏ qua nếu người dùng đã chuyển sang Header Menu / Module khác trong lúc chờ phản hồi
14298
14414
  if (this.loadedMenuContextKey !== contextKey) {
14299
14415
  return;
14300
14416
  }
@@ -14321,27 +14437,12 @@ class LayoutComponent extends BaseComponent {
14321
14437
  }
14322
14438
  });
14323
14439
  }
14324
- /**
14325
- * Thuật toán đệ quy tìm Menu mặc định từ Cha đến Con (Top-Down IsDefaultMenu Resolution):
14326
- * - Điều kiện: Mỗi menu từ cha đến con (Header Menu -> Menu cấp 1 -> Menu cấp 2 -> ... -> Menu lá)
14327
- * đều có thể đánh dấu IsDefaultMenu = true.
14328
- * - Bước 1 (Ưu tiên đi theo nhánh cha có IsDefaultMenu = true):
14329
- * + Duyệt các menu ở cấp hiện tại có `IsDefaultMenu === true`.
14330
- * + Nếu menu đó có `SubMenu` (là menu cha): đệ quy tìm tiếp trong `SubMenu` theo `IsDefaultMenu`.
14331
- * Nếu các con bên trong chưa đánh dấu `IsDefaultMenu`, tự động lấy menu con đầu tiên có `Url` trong nhánh cha mặc định đó.
14332
- * + Nếu menu đó là menu lá (hoặc nhánh con không có URL) và bản thân nó có `Url` hợp lệ: trả về chính nó.
14333
- * - Bước 2 (Hỗ trợ trường hợp chỉ tích IsDefaultMenu ở menu con sâu bên dưới mà quên tích ở menu cha):
14334
- * + Duyệt DFS các nhánh `SubMenu` với `fallbackToFirst = false` để tìm mục con có `IsDefaultMenu === true`.
14335
- * - Bước 3 (Fallback an toàn khi `fallbackToFirst = true`):
14336
- * + Nếu toàn bộ cây chưa cấu hình `IsDefaultMenu`, trả về menu đầu tiên có `Url` hợp lệ.
14337
- */
14338
14440
  findDefaultMenuTarget(menus, fallbackToFirst = true) {
14339
14441
  if (!Array.isArray(menus) || menus.length === 0) {
14340
14442
  return null;
14341
14443
  }
14342
14444
  const activeMenus = menus.filter((m) => m && m.IsActive !== false && !m.IsHidden);
14343
14445
  const sourceList = activeMenus.length > 0 ? activeMenus : menus;
14344
- // 1. Đi theo chuỗi IsDefaultMenu từ cha xuống con
14345
14446
  const directDefaults = sourceList.filter((m) => Boolean(m.IsDefaultMenu));
14346
14447
  for (const candidate of directDefaults) {
14347
14448
  if (candidate.SubMenu && candidate.SubMenu.length > 0) {
@@ -14354,7 +14455,6 @@ class LayoutComponent extends BaseComponent {
14354
14455
  return candidate;
14355
14456
  }
14356
14457
  }
14357
- // 2. Nếu cha không đánh dấu IsDefaultMenu nhưng có mục con bên dưới đánh dấu IsDefaultMenu
14358
14458
  for (const item of sourceList) {
14359
14459
  if (item.SubMenu && item.SubMenu.length > 0) {
14360
14460
  const deepDefault = this.findDefaultMenuTarget(item.SubMenu, false);
@@ -14363,7 +14463,6 @@ class LayoutComponent extends BaseComponent {
14363
14463
  }
14364
14464
  }
14365
14465
  }
14366
- // 3. Fallback lấy menu lá đầu tiên có URL hợp lệ
14367
14466
  if (fallbackToFirst) {
14368
14467
  return this.findFirstMenuWithUrl(sourceList);
14369
14468
  }
@@ -14391,22 +14490,14 @@ class LayoutComponent extends BaseComponent {
14391
14490
  const trimmed = url.trim();
14392
14491
  return trimmed.startsWith('/') ? trimmed : `/${trimmed}`;
14393
14492
  }
14394
- /**
14395
- * Thực hiện điều hướng sang Menu mặc định đã phân giải:
14396
- * - Hỗ trợ cả trường hợp có HeaderMenu (/module/:moduleId/headermenu/:headerId/<url>)
14397
- * - Và trường hợp gắn trực tiếp vào Module không qua HeaderMenu (/module/:moduleId/<url>)
14398
- */
14399
14493
  navigateToDefaultMenu(headerMenuObj, replaceUrl = false) {
14400
14494
  const activeHeader = headerMenuObj ||
14401
14495
  (this.currentHeaderId ? this.lstHeaderMenu.find((x) => x.App_Menu_Id === this.currentHeaderId) : undefined);
14402
- // 1. Ưu tiên tìm mục có đánh dấu IsDefaultMenu trong cây Side Menu
14403
14496
  let targetMenu = this.findDefaultMenuTarget(this.lstMenu, false);
14404
14497
  let targetUrl = targetMenu?.Url;
14405
- // 2. Nếu cây Side Menu không có mục nào đánh dấu IsDefaultMenu, kiểm tra URL gắn trực tiếp trên Header Menu
14406
14498
  if (!this.hasValidUrl(targetUrl) && activeHeader && this.hasValidUrl(activeHeader.Url)) {
14407
14499
  targetUrl = activeHeader.Url;
14408
14500
  }
14409
- // 3. Nếu Header Menu cũng không có URL riêng, fallback lấy menu đầu tiên có URL trong cây Side Menu
14410
14501
  if (!this.hasValidUrl(targetUrl)) {
14411
14502
  targetMenu = this.findDefaultMenuTarget(this.lstMenu, true);
14412
14503
  targetUrl = targetMenu?.Url;
@@ -14532,10 +14623,6 @@ class LayoutComponent extends BaseComponent {
14532
14623
  }
14533
14624
  return score;
14534
14625
  }
14535
- /**
14536
- * Đồng bộ toàn diện trạng thái Active của Side Menu (cả chế độ SideMenu và NzTree)
14537
- * và tự động cuộn mục đang mở vào vùng nhìn thấy.
14538
- */
14539
14626
  syncActiveMenuState(rawUrl = this.currentUrl) {
14540
14627
  this.updateOpenMenus(rawUrl, this.lstMenu);
14541
14628
  if (this.filteredLstMenu && this.filteredLstMenu !== this.lstMenu) {
@@ -14545,10 +14632,6 @@ class LayoutComponent extends BaseComponent {
14545
14632
  this.scrollActiveMenuIntoView();
14546
14633
  this.cdr.markForCheck();
14547
14634
  }
14548
- /**
14549
- * Tìm menu lá khớp nhất với URL hiện tại (Best-Match) ở mọi cấp độ sâu (Lv1 -> Lv5+)
14550
- * và tự động mở toàn bộ các nhánh cha chứa menu đó.
14551
- */
14552
14635
  updateOpenMenus(rawUrl = this.currentUrl, targetMenus = this.lstMenu) {
14553
14636
  if (!targetMenus || targetMenus.length === 0) {
14554
14637
  if (targetMenus === this.lstMenu) {
@@ -14579,7 +14662,6 @@ class LayoutComponent extends BaseComponent {
14579
14662
  this.activeMenuId = bestMenuId;
14580
14663
  this.activeParentIds = new Set(bestAncestors.map((a) => a.App_Menu_Id));
14581
14664
  }
14582
- // Tự động mở các nhánh tổ tiên của menu đang active
14583
14665
  for (const ancestor of bestAncestors) {
14584
14666
  ancestor.Open = true;
14585
14667
  }
@@ -14693,6 +14775,7 @@ class LayoutComponent extends BaseComponent {
14693
14775
  triggerCollapse() {
14694
14776
  this.isCollapsed = !this.isCollapsed;
14695
14777
  localStorage.setItem('MENU_isCollapsed', this.isCollapsed ? '1' : '0');
14778
+ this.clampEdgeDockPosition();
14696
14779
  if (!this.isCollapsed) {
14697
14780
  this.visibleMenuDrawer = false;
14698
14781
  this.syncActiveMenuState(this.currentUrl);
@@ -14703,6 +14786,7 @@ class LayoutComponent extends BaseComponent {
14703
14786
  this.isCollapsed = false;
14704
14787
  localStorage.setItem('MENU_isCollapsed', '0');
14705
14788
  this.visibleMenuDrawer = false;
14789
+ this.clampEdgeDockPosition();
14706
14790
  this.syncActiveMenuState(this.currentUrl);
14707
14791
  setTimeout(() => this.calculateMenuOverflow(), 260);
14708
14792
  }
@@ -14725,13 +14809,6 @@ class LayoutComponent extends BaseComponent {
14725
14809
  this.visibleMenuDrawer = false;
14726
14810
  this.cdr.markForCheck();
14727
14811
  }
14728
- /**
14729
- * Tính toán hiển thị Header Menu ngang chuẩn Enterprise:
14730
- * - Dành đủ khoảng trống (130px) cho nút gom nhóm "Khác (n)" để không bao giờ bị cắt mất chữ ở mép phải.
14731
- * - Nếu Header Menu đang Active (currentHeaderId) rơi vào nhóm bị tràn (hiddenMenus),
14732
- * tự động đưa mục đang Active đó lên vị trí hiển thị cuối cùng trên thanh ngang để người dùng
14733
- * luôn nhìn thấy rõ phân hệ mình đang đứng.
14734
- */
14735
14812
  calculateMenuOverflow() {
14736
14813
  if (!this.menuContainer || !this.lstHeaderMenu)
14737
14814
  return;
@@ -14753,7 +14830,6 @@ class LayoutComponent extends BaseComponent {
14753
14830
  this.cdr.detectChanges();
14754
14831
  return;
14755
14832
  }
14756
- // Khi có tràn, chừa 135px cho nút "Khác (n)"
14757
14833
  const availableWidth = Math.max(180, containerWidth - 135);
14758
14834
  let currentWidth = 0;
14759
14835
  const tempVisible = [];
@@ -14774,7 +14850,6 @@ class LayoutComponent extends BaseComponent {
14774
14850
  tempHidden.push(item);
14775
14851
  }
14776
14852
  }
14777
- // Luôn ưu tiên hiển thị Header Menu đang Active trên thanh ngang chính
14778
14853
  if (this.currentHeaderId) {
14779
14854
  const hiddenActiveIdx = tempHidden.findIndex((x) => x.App_Menu_Id === this.currentHeaderId);
14780
14855
  if (hiddenActiveIdx !== -1 && tempVisible.length > 0) {
@@ -14796,7 +14871,7 @@ class LayoutComponent extends BaseComponent {
14796
14871
  }
14797
14872
  }
14798
14873
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: LayoutComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
14799
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: LayoutComponent, isStandalone: true, selector: "layout", viewQueries: [{ propertyName: "menuContainer", first: true, predicate: ["menuContainer"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<nz-layout class=\"app-layout\">\n <!-- ===================================================================== -->\n <!-- 1. TOP HEADER CHU\u1EA8N ENTERPRISE (LU\u00D4N C\u00D3 N\u00DAT \u0110\u00D3NG/M\u1EDE SIDE MENU C\u1ED0 \u0110\u1ECANH) -->\n <!-- ===================================================================== -->\n <nz-header class=\"app-header\">\n <div nz-row nzAlign=\"middle\" class=\"header-content\">\n <!-- Khu v\u1EF1c Th\u01B0\u01A1ng hi\u1EC7u (Logo + N\u00FAt \u0111i\u1EC1u khi\u1EC3n Side Menu chu\u1EA9n Enterprise) -->\n <div\n class=\"header-brand-zone\"\n [class.is-collapsed]=\"isCollapsed\"\n [style.width]=\"!isCollapsed ? siderWidthStorage : 'auto'\"\n >\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n class=\"header-sider-toggle-btn\"\n nz-tooltip\n [nzTooltipTitle]=\"isCollapsed ? 'Hi\u1EC7n menu' : '\u1EA8n menu'\"\n nzTooltipPlacement=\"bottom\"\n (click)=\"triggerCollapse()\"\n >\n <nz-icon [nzType]=\"isCollapsed ? 'menu-unfold' : 'menu-fold'\" nzTheme=\"outline\" />\n </button>\n\n @if (isCollapsed) {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n class=\"header-sider-peek-btn\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF nhanh Menu\"\n nzTooltipPlacement=\"bottom\"\n (click)=\"openMenuDrawer()\"\n >\n <nz-icon nzType=\"appstore\" nzTheme=\"outline\" />\n </button>\n }\n\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n class=\"header-sider-peek-btn\"\n nz-tooltip\n nzTooltipTitle=\"V\u1EC1 trang ch\u1EE7\"\n nzTooltipPlacement=\"bottom\"\n (click)=\"gotoSelectModule()\"\n >\n <nz-icon nzType=\"home\" nzTheme=\"outline\" />\n </button>\n\n <div\n nz-flex\n nzJustify=\"center\"\n nzAlign=\"center\"\n nzGap=\"small\"\n class=\"header-logo-inner\"\n (click)=\"gotoSelectModule()\"\n >\n <img\n *ngIf=\"logoUrl$ | async as url\"\n [src]=\"url\"\n style=\"padding: 4px; height: var(--app-header-height)\"\n hideIfError\n />\n @if (SYSTEM_NAME) {\n <h2 class=\"system-name-title\">{{ SYSTEM_NAME }}</h2>\n } @else {\n <span class=\"system-name-fallback\">-- o0o --</span>\n }\n </div>\n </div>\n\n <!-- Header Menu ngang -->\n <div nz-col nzFlex=\"auto\" class=\"header-menu\" style=\"min-width: 0; overflow: hidden\" #menuContainer>\n <ul\n *ngIf=\"!LayoutComponent.noShowHeaderMenu\"\n nz-menu\n nzTheme=\"light\"\n nzMode=\"horizontal\"\n style=\"display: flex; flex-wrap: nowrap; border-bottom: none; line-height: var(--app-header-height)\"\n >\n @for (item of visibleMenus; track item.App_Menu_Id) {\n <li\n nz-menu-item\n [nzSelected]=\"currentHeaderId === item.App_Menu_Id\"\n [class.is-header-active]=\"currentHeaderId === item.App_Menu_Id\"\n (click)=\"handleValueChangeHeaderMenu(item)\"\n >\n <nz-icon *ngIf=\"item.Icon\" [nzType]=\"item.Icon\"></nz-icon><box [width]=\"4\"></box>{{ item.Name }}\n </li>\n }\n\n @if (hiddenMenus.length > 0) {\n <li\n nz-submenu\n [class.is-header-active]=\"isAnyHiddenHeaderActive\"\n [nzTitle]=\"overflowHeaderTitleTpl\"\n style=\"padding: 0 12px\"\n >\n <ng-template #overflowHeaderTitleTpl>\n <span class=\"header-overflow-trigger\">\n <nz-icon nzType=\"appstore\"></nz-icon>\n <span>Kh\u00E1c ({{ hiddenMenus.length }})</span>\n </span>\n </ng-template>\n <ul>\n @for (item of hiddenMenus; track item.App_Menu_Id) {\n <li\n nz-menu-item\n [nzSelected]=\"currentHeaderId === item.App_Menu_Id\"\n [class.is-header-active]=\"currentHeaderId === item.App_Menu_Id\"\n (click)=\"handleValueChangeHeaderMenu(item)\"\n >\n <nz-icon *ngIf=\"item.Icon\" [nzType]=\"item.Icon\"></nz-icon><box [width]=\"4\"></box>{{ item.Name }}\n </li>\n }\n </ul>\n </li>\n }\n </ul>\n </div>\n\n <div style=\"display: flex; align-items: center; flex-shrink: 0; gap: 8px; padding-right: 8px\">\n <!-- <header-search></header-search> -->\n <app-notification-center></app-notification-center>\n <header-user></header-user>\n </div>\n </div>\n </nz-header>\n\n <!-- ===================================================================== -->\n <!-- 2. BODY LAYOUT (DOCKED SIDER + EDGE HANDLE + MAIN WORKSPACE) -->\n <!-- ===================================================================== -->\n <nz-layout class=\"body-layout\">\n <nz-sider\n [class.hide-side-menu]=\"LayoutComponent.noShowSideMenu\"\n [class.is-collapsed]=\"isCollapsed\"\n class=\"menu-sidebar\"\n nzCollapsible\n [nzWidth]=\"siderWidth\"\n [nzCollapsedWidth]=\"0\"\n [(nzCollapsed)]=\"isCollapsed\"\n [nzTrigger]=\"null\"\n [nzTheme]=\"'light'\"\n >\n <!-- Khung c\u1ED1 \u0111\u1ECBnh chi\u1EC1u r\u1ED9ng b\u00EAn trong gi\u00FAp khi Sider tr\u01B0\u1EE3t \u0111\u00F3ng/m\u1EDF kh\u00F4ng b\u1ECB \u00E9p ch\u1EEF xu\u1ED1ng d\u00F2ng -->\n <div class=\"sider-inner-shell\" [style.width]=\"siderWidthStorage\" [style.min-width]=\"siderWidthStorage\">\n <div class=\"menu-wapper\">\n <!-- Thanh c\u00F4ng c\u1EE5 t\u00ECm ki\u1EBFm & thu g\u1ECDn Side Menu chu\u1EA9n Enterprise (T\u00E1ch bi\u1EC7t ho\u00E0n to\u00E0n kh\u1ECFi Footer) -->\n <div class=\"sider-search-bar\">\n <nz-input-group\n [nzPrefix]=\"siderSearchPrefixTpl\"\n [nzSuffix]=\"siderSuffixTpl\"\n nzSize=\"small\"\n class=\"sider-search-input\"\n >\n <input nz-input placeholder=\"T\u00ECm nhanh menu...\" [(ngModel)]=\"searchValue\" />\n </nz-input-group>\n <ng-template #siderSearchPrefixTpl>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8; font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #siderSuffixTpl>\n @if (searchValue) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8; font-size: 12px\"\n (click)=\"searchValue = ''\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n class=\"sider-toggle-btn\"\n (click)=\"triggerCollapse()\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn Side Menu (M\u1EDF r\u1ED9ng kh\u00F4ng gian l\u00E0m vi\u1EC7c)\"\n >\n <nz-icon nzType=\"menu-fold\"></nz-icon>\n </button> -->\n </div>\n @if (MENU_TYPE == \"tree\") {\n <div class=\"nz-tree-wapper\">\n <nz-tree\n [nzData]=\"nodes\"\n [nzSearchValue]=\"searchValue\"\n [nzHideUnMatched]=\"true\"\n [nzShowLine]=\"true\"\n [nzSelectedKeys]=\"selectedKeys\"\n [nzExpandedKeys]=\"expandedKeys\"\n (nzClick)=\"nzEvent($event)\"\n ></nz-tree>\n </div>\n } @else {\n <div class=\"nz-tree-wapper\">\n <side-menu\n [filteredLstMenu]=\"filteredLstMenu\"\n [moduleId]=\"currentModuleId\"\n [headerMenuId]=\"currentHeaderId\"\n [activeMenuId]=\"activeMenuId\"\n [activeParentIds]=\"activeParentIds\"\n ></side-menu>\n </div>\n }\n </div>\n\n <!-- Footer \u0111\u00E1y c\u1EE7a Sider: Ch\u1EC9 hi\u1EC3n th\u1ECB t\u00EAn ph\u00E2n h\u1EC7 c\u0103n gi\u1EEFa s\u1EA1ch s\u1EBD, kh\u00F4ng c\u00F2n n\u00FAt \u0111\u00E8 l\u00EAn ch\u1EEF -->\n <div class=\"sider-footer\">\n <span class=\"footer-subtext text-italic text-truncate\">\n {{ SYSTEM_SUB_NAME_LEFT || \"-- o0o --\" }}\n </span>\n </div>\n </div>\n </nz-sider>\n\n <!-- N\u00FAt g\u1EA1t \u0111\u00F3ng/m\u1EDF nhanh tr\u00EAn c\u1EA1nh ph\u00E2n c\u00E1ch (Chu\u1EA9n Jira / GitLab / Confluence) -->\n <!-- @if (!LayoutComponent.noShowSideMenu) {\n @if (!isCollapsed) {\n <button\n type=\"button\"\n class=\"sider-edge-collapse-btn\"\n [style.left]=\"siderWidthStorage\"\n (click)=\"triggerCollapse()\"\n nz-tooltip\n nzTooltipPlacement=\"right\"\n nzTooltipTitle=\"Thu g\u1ECDn thanh Menu\"\n >\n <nz-icon nzType=\"left\"></nz-icon>\n </button>\n } @else {\n <div class=\"sider-edge-collapsed-dock\">\n <button\n type=\"button\"\n class=\"edge-dock-btn primary-peek\"\n (click)=\"openMenuDrawer()\"\n nz-tooltip\n nzTooltipPlacement=\"right\"\n nzTooltipTitle=\"M\u1EDF nhanh Menu n\u1ED5i (Quick Peek)\"\n >\n <nz-icon nzType=\"menu\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n class=\"edge-dock-btn\"\n (click)=\"triggerCollapse()\"\n nz-tooltip\n nzTooltipPlacement=\"right\"\n nzTooltipTitle=\"Ghim c\u1ED1 \u0111\u1ECBnh thanh Menu\"\n >\n <nz-icon nzType=\"right\"></nz-icon>\n </button>\n </div>\n }\n } -->\n\n <nz-layout class=\"main-layout\">\n <nz-content class=\"content\">\n <div class=\"inner-content\">\n @if (!LayoutComponent.noShowBreadcrumb) {\n <app-breadcrumb [@fadeInOut] nz-col nzFlex=\"auto\"></app-breadcrumb>\n }\n <router-outlet></router-outlet>\n </div>\n <div nz-row class=\"content-footer-bar\">\n <div nz-col nzFlex=\"auto\" class=\"content-footer text-italic\">\n {{ SYSTEM_SUB_NAME_RIGHT || \"-- o0o --\" }}\n </div>\n </div>\n </nz-content>\n </nz-layout>\n </nz-layout>\n</nz-layout>\n\n<!-- ========================================================================= -->\n<!-- 3. FLOATING SIDE MENU DRAWER (CH\u1EBE \u0110\u1ED8 MENU N\u1ED4I KHI \u0110ANG THU G\u1ECCN SIDER) -->\n<!-- ========================================================================= -->\n<nz-drawer\n [nzWrapClassName]=\"'same-theme-color menu-drawer'\"\n [nzWidth]=\"320\"\n [nzClosable]=\"false\"\n [(nzVisible)]=\"visibleMenuDrawer\"\n [nzMaskClosable]=\"true\"\n nzPlacement=\"left\"\n [nzBodyStyle]=\"{ padding: '0', height: '100%', overflow: 'hidden', display: 'flex', flexDirection: 'column' }\"\n (nzOnClose)=\"closeMenuDrawer()\"\n>\n <ng-container *nzDrawerContent>\n <div class=\"drawer-sider-shell\">\n <!-- Header \u0111\u1ED3ng b\u1ED9 chi\u1EC1u cao 45px v\u1EDBi thanh Header ch\u00EDnh -->\n <div class=\"drawer-sider-header\">\n <div class=\"drawer-sider-brand\" (click)=\"gotoSelectModule(); closeMenuDrawer()\">\n <nz-icon nzType=\"appstore\" style=\"font-size: 16px\"></nz-icon>\n <span class=\"drawer-sider-title text-truncate\">{{ SYSTEM_NAME || \"Danh m\u1EE5c ch\u1EE9c n\u0103ng\" }}</span>\n </div>\n <div class=\"drawer-sider-actions\">\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n class=\"drawer-header-btn\"\n (click)=\"pinSidebarFromDrawer()\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"Ghim c\u1ED1 \u0111\u1ECBnh thanh Menu v\u00E0o m\u00E0n h\u00ECnh\" -->\n <nz-icon nzType=\"pushpin\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n class=\"drawer-header-btn\"\n (click)=\"closeMenuDrawer()\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"\u0110\u00F3ng Menu n\u1ED5i\" -->\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </div>\n\n <!-- Thanh t\u00ECm ki\u1EBFm & n\u00FAt ghim c\u1ED1 \u0111\u1ECBnh d\u01B0\u1EDBi \u0111\u00E1y Drawer -->\n <div class=\"sider-search-bar in-drawer\">\n <nz-input-group\n [nzPrefix]=\"drawerSearchPrefixTpl\"\n [nzSuffix]=\"drawerSuffixTpl\"\n nzSize=\"small\"\n class=\"sider-search-input\"\n >\n <input nz-input placeholder=\"T\u00ECm nhanh menu...\" [(ngModel)]=\"searchValue\" />\n </nz-input-group>\n <ng-template #drawerSearchPrefixTpl>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8; font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #drawerSuffixTpl>\n @if (searchValue) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8; font-size: 12px\"\n (click)=\"searchValue = ''\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n class=\"sider-toggle-btn\"\n (click)=\"pinSidebarFromDrawer()\"\n nz-tooltip\n nzTooltipTitle=\"Ghim c\u1ED1 \u0111\u1ECBnh thanh Menu\"\n >\n <nz-icon nzType=\"menu-unfold\"></nz-icon>\n </button> -->\n </div>\n\n <!-- Danh s\u00E1ch Menu cu\u1ED9n \u0111\u1ED9c l\u1EADp (1 thanh cu\u1ED9n duy nh\u1EA5t, kh\u00F4ng c\u1EAFt m\u1EE5c cu\u1ED1i) -->\n @if (MENU_TYPE == \"tree\") {\n <div class=\"nz-tree-wapper in-drawer\">\n <nz-tree\n [nzData]=\"nodes\"\n [nzSearchValue]=\"searchValue\"\n [nzHideUnMatched]=\"true\"\n [nzShowLine]=\"true\"\n [nzSelectedKeys]=\"selectedKeys\"\n [nzExpandedKeys]=\"expandedKeys\"\n (nzClick)=\"nzEvent($event)\"\n ></nz-tree>\n </div>\n } @else {\n <div class=\"nz-tree-wapper in-drawer\">\n <side-menu\n [filteredLstMenu]=\"filteredLstMenu\"\n [moduleId]=\"currentModuleId\"\n [headerMenuId]=\"currentHeaderId\"\n [activeMenuId]=\"activeMenuId\"\n [activeParentIds]=\"activeParentIds\"\n (onClickToMenu)=\"visibleMenuDrawer = false\"\n ></side-menu>\n </div>\n }\n </div>\n </ng-container>\n</nz-drawer>\n<app-global-spinner></app-global-spinner>\n", styles: ["@charset \"UTF-8\";:host{display:flex;width:100%;height:100%;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg-sidebar: #ffffff;--bg-content: var(--surface-app, #f8fafc);--bg-inner: var(--surface-card, #ffffff);--border-color: var(--border-default, #e2e8f0);--text-main: var(--text-primary, #1e293b)}:host-context(.dark-theme),:host(.dark-theme){--theme-color: #1f242d !important;--theme-text-color: #e2e8f0 !important;--bg-sidebar: #161a22;--bg-content: #11141a;--bg-inner: #1a1e26;--border-color: #303642;--text-main: #e2e8f0}.app-layout{display:flex;flex-direction:column;width:100%;height:100vh;overflow:hidden}.app-header{position:fixed;top:0;left:0;width:100%;height:var(--app-header-height);background:var(--theme-color);color:var(--theme-text-color);box-shadow:0 1px 4px #0015291f;z-index:1000;display:flex;align-items:center;padding:0;border-bottom:1px solid var(--border-color);transition:background-color .25s ease}.header-content{width:100%;flex-wrap:nowrap!important}.header-brand-zone{height:var(--app-header-height);display:flex;align-items:center;gap:6px;padding:0 12px 0 8px;color:var(--theme-text-color);flex-shrink:0;overflow:hidden;border-right:1px solid rgba(255,255,255,.08)}.header-brand-zone.is-collapsed{padding-right:14px}.header-sider-toggle-btn,.header-sider-peek-btn{color:var(--theme-text-color)!important;width:30px;height:30px;padding:0;border-radius:var(--radius-xs, 4px);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;opacity:.88;transition:background-color .15s ease,opacity .15s ease}.header-sider-toggle-btn:hover,.header-sider-peek-btn:hover{opacity:1;background-color:#ffffff24!important}.header-logo-inner{line-height:var(--app-header-height);height:var(--app-header-height);cursor:pointer;flex:1;min-width:0}.system-name-title{color:#f5f5f5;margin-bottom:0;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.system-name-fallback{color:#f5f5f5;font-weight:600;white-space:nowrap}.body-layout{position:relative;display:flex;flex:1;margin-top:var(--app-header-height);height:calc(100vh - var(--app-header-height));overflow:hidden}.menu-sidebar{background:var(--bg-sidebar)!important;border-right:1px solid var(--border-color);overflow:hidden!important;transition:width .24s cubic-bezier(.25,.8,.25,1),min-width .24s cubic-bezier(.25,.8,.25,1),max-width .24s cubic-bezier(.25,.8,.25,1),flex .24s cubic-bezier(.25,.8,.25,1)!important;height:calc(100vh - var(--app-header-height))}.menu-sidebar.is-collapsed,.menu-sidebar.hide-side-menu{border-right:none!important}.menu-sidebar.hide-side-menu{flex:0 0 0px!important;max-width:0px!important;min-width:0px!important;width:0px!important}:host ::ng-deep .menu-sidebar>.ant-layout-sider-children{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.sider-inner-shell{display:flex;flex-direction:column;height:100%;overflow:hidden;background:var(--bg-sidebar)}.menu-wapper{display:flex;flex-direction:column;flex:1 1 0%;min-height:0;overflow:hidden}.nz-tree-wapper{flex:1 1 0%;min-height:0;overflow-y:auto;overflow-x:hidden;padding:6px 0}.nz-tree-wapper.in-drawer{flex:1 1 0%;min-height:0;height:auto!important;overflow-y:auto;overflow-x:hidden;padding:6px 0}.sider-search-bar{display:flex;align-items:center;gap:6px;padding:8px 10px;border-top:1px solid var(--border-color, #e2e8f0);background:var(--surface-subtle, #f8fafc);flex-shrink:0}.sider-search-bar .sider-search-input{flex:1;min-width:0}.sider-search-bar .sider-toggle-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:24px;padding:0;border-radius:var(--radius-xs, 4px);color:var(--text-secondary, #475569);border-color:var(--border-default, #cbd5e1)}.sider-search-bar .sider-toggle-btn:hover{color:var(--primary-color, #1677ff);border-color:var(--primary-color, #1677ff);background:var(--primary-bg-subtle, #eff6ff)}.sider-edge-collapse-btn{position:absolute;top:14px;transform:translate(-50%);z-index:45;width:22px;height:22px;border-radius:999px;border:1px solid var(--border-strong, #cbd5e1);background:var(--surface-card, #ffffff);color:var(--text-secondary, #475569);box-shadow:0 2px 6px #0f172a1f;display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:11px;cursor:pointer;opacity:.75;transition:opacity .18s ease,transform .18s ease,color .18s ease,border-color .18s ease,background-color .18s ease}.sider-edge-collapse-btn:hover{opacity:1;transform:translate(-50%) scale(1.08);color:var(--primary-color, #1677ff);border-color:var(--primary-color, #1677ff);background:var(--primary-bg-subtle, #eff6ff)}.sider-edge-collapsed-dock{position:absolute;top:10px;left:0;z-index:45;display:flex;flex-direction:column;gap:4px;padding:4px 4px 4px 0;background:var(--surface-card, #ffffff);border:1px solid var(--border-default, #cbd5e1);border-left:none;border-radius:0 8px 8px 0;box-shadow:2px 2px 8px #0f172a1a}.sider-edge-collapsed-dock .edge-dock-btn{width:24px;height:24px;border-radius:0 6px 6px 0;border:none;background:transparent;color:var(--text-secondary, #475569);display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:12px;cursor:pointer;transition:all .15s ease}.sider-edge-collapsed-dock .edge-dock-btn.primary-peek{color:var(--primary-color, #1677ff)}.sider-edge-collapsed-dock .edge-dock-btn:hover{background:var(--primary-bg-subtle, #eff6ff);color:var(--primary-color, #1677ff)}.drawer-sider-shell{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden;background:var(--theme-menu-color, var(--surface-card, #ffffff))}.drawer-sider-header{display:flex;align-items:center;justify-content:space-between;gap:8px;height:var(--app-header-height, 45px);min-height:var(--app-header-height, 45px);padding:0 12px;background:var(--theme-color, #001529);color:var(--theme-text-color, #ffffff);border-bottom:1px solid var(--border-color, #e2e8f0);flex-shrink:0}.drawer-sider-header .drawer-sider-brand{display:flex;align-items:center;gap:8px;min-width:0;flex:1;cursor:pointer;font-weight:700;font-size:14px;color:var(--theme-text-color, #ffffff)}.drawer-sider-header .drawer-sider-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.drawer-sider-header .drawer-header-btn{color:var(--theme-text-color, #ffffff)!important;opacity:.85}.drawer-sider-header .drawer-header-btn:hover{opacity:1;background:#ffffff24!important}.main-layout{display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden}.content{flex:1;background:var(--bg-content);overflow-x:hidden;overflow-y:auto;height:100%;display:flex;flex-direction:column}.inner-content{background:var(--bg-inner);color:var(--text-main);flex:1 0 auto;min-height:calc(100% - var(--app-footer-height));padding:8px 10px;box-sizing:border-box}.content-footer-bar{height:var(--app-footer-height);flex-shrink:0}.content-footer{background:var(--theme-color);color:var(--theme-text-color);display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px;height:var(--app-footer-height)}.sider-footer{background:var(--theme-color);color:var(--theme-text-color);height:var(--app-footer-height);min-height:var(--app-footer-height);display:flex;align-items:center;justify-content:center;padding:0 10px;font-size:10.5px;flex-shrink:0;overflow:hidden;border-right:1px solid rgba(255,255,255,.08)}.sider-footer .footer-subtext{color:#ffffffd9;text-align:center;width:100%}.header-overflow-trigger{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600}::ng-deep .menu-wapper .anticon-file{display:none}:host ::ng-deep .ant-back-top{right:30px;bottom:40px}::ng-deep .same-theme-color .ant-drawer-content{background:var(--theme-menu-color, var(--surface-card, #ffffff))}::ng-deep .menu-drawer .ant-drawer-body{padding:0!important;display:flex!important;flex-direction:column!important;height:100%!important;overflow:hidden!important}::ng-deep .ant-breadcrumb-link{cursor:pointer}::ng-deep .breadcrumb-header .ant-breadcrumb-link,::ng-deep .breadcrumb-header .ant-breadcrumb-separator{color:var(--theme-text-color);cursor:pointer}::ng-deep .header-menu .ant-segmented-item:not(.ant-segmented-item-selected){color:var(--theme-text-color)}::ng-deep .header-menu .ant-segmented-item{border-left:1px solid rgba(255,255,255,.15)}::ng-deep .header-menu .ant-segmented-item:last-child{border-right:1px solid rgba(255,255,255,.15)}::ng-deep .header-menu .ant-menu-horizontal{background-color:transparent!important;border-bottom:none!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu{color:var(--theme-text-color)!important;opacity:.82;font-weight:600;padding-inline:14px!important;transition:background-color .15s ease,opacity .15s ease!important}::ng-deep .header-menu .ant-menu-submenu-title .anticon{color:var(--theme-text-color)!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:hover,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:hover,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item-selected,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item.is-header-active,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-open,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-selected,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu.is-header-active{color:#fff!important;opacity:1;background-color:#ffffff29!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item-selected:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item.is-header-active:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-selected:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu.is-header-active:after{border-bottom:3px solid #38bdf8!important;inset-inline:8px!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:hover:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:hover:after{border-bottom-color:#38bdf8bf!important}:host-context(.dark-theme) .content-footer,:host-context(.dark-theme) .sider-footer{background-color:var(--bg-sidebar);border-top:1px solid var(--border-color)}:host-context(.dark-theme) .sider-search-bar{background-color:var(--bg-sidebar);border-top-color:var(--border-color)}:host-context(.dark-theme) .sider-edge-collapse-btn,:host-context(.dark-theme) .sider-edge-collapsed-dock{background-color:var(--bg-inner);border-color:var(--border-color);color:var(--text-main)}:host-context(.dark-theme) ::ng-deep .menu-sidebar .ant-tree,:host-context(.dark-theme) ::ng-deep .menu-drawer .ant-tree{background:transparent;color:var(--text-main)}:host-context(.dark-theme) ::ng-deep .ant-tree-node-content-wrapper:hover{background-color:#ffffff14!important}:host-context(.dark-theme) ::ng-deep .ant-tree-node-selected{background-color:#3b82f638!important;color:#fff!important}:host-context(.dark-theme) ::ng-deep .sider-search-bar .ant-input,:host-context(.dark-theme) ::ng-deep .sider-search-bar .ant-input-affix-wrapper{background-color:var(--bg-content);border-color:var(--border-color);color:var(--text-main)}:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-link,:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-separator{color:#94a3b8!important}:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-link:hover{color:var(--text-main)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: NzLayoutModule }, { kind: "component", type: i2$4.NzLayoutComponent, selector: "nz-layout", exportAs: ["nzLayout"] }, { kind: "component", type: i2$4.NzHeaderComponent, selector: "nz-header", exportAs: ["nzHeader"] }, { kind: "component", type: i2$4.NzContentComponent, selector: "nz-content", exportAs: ["nzContent"] }, { kind: "component", type: i2$4.NzSiderComponent, selector: "nz-sider", inputs: ["nzWidth", "nzTheme", "nzCollapsedWidth", "nzBreakpoint", "nzZeroTrigger", "nzTrigger", "nzReverseArrow", "nzCollapsible", "nzCollapsed"], outputs: ["nzCollapsedChange"], exportAs: ["nzSider"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "component", type: i4$2.NzSubMenuComponent, selector: "[nz-submenu]", inputs: ["nzMenuClassName", "nzPaddingLeft", "nzTitle", "nzIcon", "nzTriggerSubMenuAction", "nzOpen", "nzDisabled", "nzPlacement"], outputs: ["nzOpenChange"], exportAs: ["nzSubmenu"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "component", type: Breadcrumb, selector: "app-breadcrumb" }, { kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i1$5.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzBackTopModule }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i14.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: Box, selector: "box", inputs: ["display", "width", "height"] }, { kind: "ngmodule", type: NzSegmentedModule }, { kind: "component", type: LayoutUser, selector: "header-user" }, { kind: "directive", type: HideIfErrorDirective, selector: "img[hideIfError]" }, { kind: "component", type: NotificationCenterComponent, selector: "app-notification-center" }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzMenuModule }, { kind: "component", type: SideMenuComponent, selector: "side-menu", inputs: ["filteredLstMenu", "moduleId", "headerMenuId", "activeMenuId", "activeParentIds"], outputs: ["onClickToMenu"] }, { kind: "component", type: GlobalSpinnerComponent, selector: "app-global-spinner" }], animations: [fadeInOut] });
14874
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: LayoutComponent, isStandalone: true, selector: "layout", viewQueries: [{ propertyName: "menuContainer", first: true, predicate: ["menuContainer"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<nz-layout class=\"app-layout\">\n <!-- ===================================================================== -->\n <!-- 1. TOP HEADER CHU\u1EA8N ENTERPRISE (LU\u00D4N C\u00D3 N\u00DAT \u0110\u00D3NG/M\u1EDE SIDE MENU C\u1ED0 \u0110\u1ECANH) -->\n <!-- ===================================================================== -->\n <nz-header class=\"app-header\">\n <div nz-row nzAlign=\"middle\" class=\"header-content\">\n <!-- Khu v\u1EF1c Th\u01B0\u01A1ng hi\u1EC7u (Logo + N\u00FAt \u0111i\u1EC1u khi\u1EC3n Side Menu chu\u1EA9n Enterprise) -->\n <div\n class=\"header-brand-zone\"\n [class.is-collapsed]=\"isCollapsed || LayoutComponent.noShowSideMenu\"\n [style.--sider-width]=\"siderWidthStorage\"\n >\n <!-- Gi\u1EEF n\u00FAt trong DOM v\u00E0 \u0111i\u1EC1u khi\u1EC3n \u1EA9n/hi\u1EC7n b\u1EB1ng CSS transition \u0111\u1EC3 kh\u00F4ng l\u00E0m gi\u1EADt n\u00FAt Home & PMO -->\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n class=\"header-sider-peek-btn peek-quick-btn is-visible\"\n (click)=\"gotoSelectModule()\"\n >\n <nz-icon nzType=\"appstore\" nzTheme=\"outline\" />\n </button>\n\n <div\n nz-flex\n nzJustify=\"center\"\n nzAlign=\"center\"\n nzGap=\"small\"\n class=\"header-logo-inner\"\n (click)=\"gotoSelectModule()\"\n >\n <img\n *ngIf=\"logoUrl$ | async as url\"\n [src]=\"url\"\n style=\"padding: 4px; height: var(--app-header-height)\"\n hideIfError\n />\n @if (SYSTEM_NAME) {\n <h2 class=\"system-name-title\">{{ SYSTEM_NAME }}</h2>\n } @else {\n <span class=\"system-name-fallback\">-- o0o --</span>\n }\n </div>\n </div>\n\n <!-- Header Menu ngang -->\n <div nz-col nzFlex=\"auto\" class=\"header-menu\" style=\"min-width: 0; overflow: hidden\" #menuContainer>\n <ul\n *ngIf=\"!LayoutComponent.noShowHeaderMenu\"\n nz-menu\n nzTheme=\"light\"\n nzMode=\"horizontal\"\n class=\"header-menu-list\"\n style=\"display: flex; flex-wrap: nowrap; border-bottom: none; line-height: var(--app-header-height)\"\n >\n @for (item of visibleMenus; track item.App_Menu_Id; let i = $index) {\n <li\n nz-menu-item\n class=\"header-menu-item-animate\"\n [style.--i]=\"i\"\n [nzSelected]=\"currentHeaderId === item.App_Menu_Id\"\n [class.is-header-active]=\"currentHeaderId === item.App_Menu_Id\"\n (click)=\"handleValueChangeHeaderMenu(item)\"\n >\n <nz-icon *ngIf=\"item.Icon\" [nzType]=\"item.Icon\"></nz-icon><box [width]=\"4\"></box>{{ item.Name }}\n </li>\n }\n\n @if (hiddenMenus.length > 0) {\n <li\n nz-submenu\n class=\"header-menu-item-animate\"\n [style.--i]=\"visibleMenus.length\"\n [class.is-header-active]=\"isAnyHiddenHeaderActive\"\n [nzTitle]=\"overflowHeaderTitleTpl\"\n style=\"padding: 0 12px\"\n >\n <ng-template #overflowHeaderTitleTpl>\n <span class=\"header-overflow-trigger\">\n <nz-icon nzType=\"appstore\"></nz-icon>\n <span>Kh\u00E1c ({{ hiddenMenus.length }})</span>\n </span>\n </ng-template>\n <ul>\n @for (item of hiddenMenus; track item.App_Menu_Id; let j = $index) {\n <li\n nz-menu-item\n class=\"header-overflow-item-animate\"\n [style.--j]=\"j\"\n [nzSelected]=\"currentHeaderId === item.App_Menu_Id\"\n [class.is-header-active]=\"currentHeaderId === item.App_Menu_Id\"\n (click)=\"handleValueChangeHeaderMenu(item)\"\n >\n <nz-icon *ngIf=\"item.Icon\" [nzType]=\"item.Icon\"></nz-icon><box [width]=\"4\"></box>{{ item.Name }}\n </li>\n }\n </ul>\n </li>\n }\n </ul>\n </div>\n\n <div style=\"display: flex; align-items: center; flex-shrink: 0; gap: 8px; padding-right: 8px\">\n <!-- <header-search></header-search> -->\n <app-notification-center></app-notification-center>\n <header-user></header-user>\n </div>\n </div>\n </nz-header>\n\n <!-- ===================================================================== -->\n <!-- 2. BODY LAYOUT (DOCKED SIDER + EDGE HANDLE + MAIN WORKSPACE) -->\n <!-- ===================================================================== -->\n <nz-layout class=\"body-layout\">\n <nz-sider\n [class.hide-side-menu]=\"LayoutComponent.noShowSideMenu\"\n [class.is-collapsed]=\"isCollapsed\"\n class=\"menu-sidebar\"\n nzCollapsible\n [nzWidth]=\"siderWidth\"\n [nzCollapsedWidth]=\"0\"\n [(nzCollapsed)]=\"isCollapsed\"\n [nzTrigger]=\"null\"\n [nzTheme]=\"'light'\"\n >\n <!-- Khung c\u1ED1 \u0111\u1ECBnh chi\u1EC1u r\u1ED9ng b\u00EAn trong gi\u00FAp khi Sider tr\u01B0\u1EE3t \u0111\u00F3ng/m\u1EDF kh\u00F4ng b\u1ECB \u00E9p ch\u1EEF xu\u1ED1ng d\u00F2ng -->\n <div class=\"sider-inner-shell\" [style.width]=\"siderWidthStorage\" [style.min-width]=\"siderWidthStorage\">\n <div class=\"menu-wapper\">\n <!-- Thanh c\u00F4ng c\u1EE5 t\u00ECm ki\u1EBFm & thu g\u1ECDn Side Menu chu\u1EA9n Enterprise (T\u00E1ch bi\u1EC7t ho\u00E0n to\u00E0n kh\u1ECFi Footer) -->\n <div class=\"sider-search-bar\">\n <nz-input-group\n [nzPrefix]=\"siderSearchPrefixTpl\"\n [nzSuffix]=\"siderSuffixTpl\"\n nzSize=\"small\"\n class=\"sider-search-input\"\n >\n <input nz-input placeholder=\"T\u00ECm nhanh menu...\" [(ngModel)]=\"searchValue\" />\n </nz-input-group>\n <ng-template #siderSearchPrefixTpl>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8; font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #siderSuffixTpl>\n @if (searchValue) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8; font-size: 12px\"\n (click)=\"searchValue = ''\"\n ></nz-icon>\n }\n </ng-template>\n </div>\n @if (MENU_TYPE == \"tree\") {\n <div class=\"nz-tree-wapper\">\n <nz-tree\n [nzData]=\"nodes\"\n [nzSearchValue]=\"searchValue\"\n [nzHideUnMatched]=\"true\"\n [nzShowLine]=\"true\"\n [nzSelectedKeys]=\"selectedKeys\"\n [nzExpandedKeys]=\"expandedKeys\"\n (nzClick)=\"nzEvent($event)\"\n ></nz-tree>\n </div>\n } @else {\n <div class=\"nz-tree-wapper\">\n <side-menu\n [filteredLstMenu]=\"filteredLstMenu\"\n [moduleId]=\"currentModuleId\"\n [headerMenuId]=\"currentHeaderId\"\n [activeMenuId]=\"activeMenuId\"\n [activeParentIds]=\"activeParentIds\"\n ></side-menu>\n </div>\n }\n </div>\n\n <!-- Footer \u0111\u00E1y c\u1EE7a Sider: Ch\u1EC9 hi\u1EC3n th\u1ECB t\u00EAn ph\u00E2n h\u1EC7 c\u0103n gi\u1EEFa s\u1EA1ch s\u1EBD, kh\u00F4ng c\u00F2n n\u00FAt \u0111\u00E8 l\u00EAn ch\u1EEF -->\n <div class=\"sider-footer\">\n <span class=\"footer-subtext text-italic text-truncate\">\n {{ SYSTEM_SUB_NAME_LEFT || \"-- o0o --\" }}\n </span>\n </div>\n </div>\n </nz-sider>\n\n <!-- =================================================================== -->\n <!-- ENTERPRISE EDGE QUICK DOCK (LU\u00D4N HI\u1EC2N TH\u1ECA KHI THU G\u1ECCN HO\u1EB6C \u1EA8N SIDER)-->\n <!-- =================================================================== -->\n @if (!isCollapsed && !LayoutComponent.noShowSideMenu) {\n <button\n type=\"button\"\n class=\"sider-edge-collapse-btn\"\n [class.is-dragging]=\"isEdgeDockDragging\"\n [style.left]=\"siderWidthStorage\"\n [style.top.px]=\"edgeDockTop\"\n (pointerdown)=\"onEdgeDockPointerDown($event)\"\n (click)=\"onEdgeDockAction($event, 'collapse')\"\n nz-tooltip\n [nzTooltipTitle]=\"isEdgeDockDragging ? null : '\u1EA8n menu'\"\n nzTooltipPlacement=\"right\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"left\"></nz-icon>\n </button>\n } @else {\n <div\n class=\"sider-edge-collapsed-dock\"\n [class.is-dragging]=\"isEdgeDockDragging\"\n [class.is-drawer-open]=\"visibleMenuDrawer\"\n [style.top.px]=\"edgeDockTop\"\n (pointerdown)=\"onEdgeDockPointerDown($event)\"\n >\n <!-- \u0110\u1EA7u n\u1EAFm k\u00E9o tr\u01B0\u1EE3t d\u1ECDc (Double-click \u0111\u1EC3 \u0111\u01B0a v\u1EC1 v\u1ECB tr\u00ED m\u1EB7c \u0111\u1ECBnh) -->\n <div\n class=\"edge-dock-drag-handle\"\n (dblclick)=\"resetEdgeDockPosition($event)\"\n nz-tooltip\n [nzTooltipTitle]=\"isEdgeDockDragging ? null : '\u0110\u1ED5i v\u1ECB tr\u00ED \u2022 Nh\u1EA5p \u0111\u00FAp \u0111\u1EC3 \u0111\u1EB7t l\u1EA1i'\"\n nzTooltipPlacement=\"right\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <span class=\"grip-dots\"></span>\n </div>\n\n <!-- 1. N\u00FAt V\u1EC1 trang ch\u1EE7 (Chuy\u1EC3n ph\u00E2n h\u1EC7 / Trang ch\u1EE7) -->\n <button\n type=\"button\"\n class=\"edge-dock-btn home-action\"\n (click)=\"onEdgeDockAction($event, 'home')\"\n nz-tooltip\n [nzTooltipTitle]=\"isEdgeDockDragging ? null : 'V\u1EC1 trang ch\u1EE7'\"\n nzTooltipPlacement=\"right\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"home\" nzTheme=\"outline\"></nz-icon>\n </button>\n\n <div class=\"edge-dock-divider\"></div>\n\n <!-- 2. N\u00FAt M\u1EDF nhanh Menu n\u1ED5i (Quick Peek Drawer - N\u1ED5i b\u1EADt v\u1EDBi m\u00E0u Primary #1677ff) -->\n <button\n type=\"button\"\n class=\"edge-dock-btn primary-peek\"\n [class.is-active]=\"visibleMenuDrawer\"\n (click)=\"onEdgeDockAction($event, 'peek')\"\n nz-tooltip\n [nzTooltipTitle]=\"isEdgeDockDragging ? null : 'M\u1EDF nhanh Menu'\"\n nzTooltipPlacement=\"right\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"menu\" nzTheme=\"outline\"></nz-icon>\n </button>\n\n <!-- 3. N\u00FAt Ghim c\u1ED1 \u0111\u1ECBnh Menu v\u00E0o khung l\u00E0m vi\u1EC7c -->\n <button\n type=\"button\"\n class=\"edge-dock-btn pin-action\"\n (click)=\"onEdgeDockAction($event, 'pin')\"\n nz-tooltip\n [nzTooltipTitle]=\"isEdgeDockDragging ? null : 'Hi\u1EC7n Menu'\"\n nzTooltipPlacement=\"right\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"pushpin\" nzTheme=\"outline\" class=\"pin-icon-default\"></nz-icon>\n <nz-icon nzType=\"right\" nzTheme=\"outline\" class=\"pin-icon-hover\"></nz-icon>\n </button>\n </div>\n }\n\n <nz-layout class=\"main-layout\">\n <nz-content class=\"content\">\n <div class=\"inner-content\">\n @if (!LayoutComponent.noShowBreadcrumb) {\n <app-breadcrumb [@fadeInOut] nz-col nzFlex=\"auto\"></app-breadcrumb>\n }\n <router-outlet></router-outlet>\n </div>\n <div nz-row class=\"content-footer-bar\">\n <div nz-col nzFlex=\"auto\" class=\"content-footer text-italic\">\n {{ SYSTEM_SUB_NAME_RIGHT || \"-- o0o --\" }}\n </div>\n </div>\n </nz-content>\n </nz-layout>\n </nz-layout>\n</nz-layout>\n\n<!-- ========================================================================= -->\n<!-- 3. FLOATING SIDE MENU DRAWER (CH\u1EBE \u0110\u1ED8 MENU N\u1ED4I KHI \u0110ANG THU G\u1ECCN SIDER) -->\n<!-- ========================================================================= -->\n<nz-drawer\n [nzWrapClassName]=\"'same-theme-color menu-drawer'\"\n [nzWidth]=\"320\"\n [nzClosable]=\"false\"\n [(nzVisible)]=\"visibleMenuDrawer\"\n [nzMaskClosable]=\"true\"\n nzPlacement=\"left\"\n [nzBodyStyle]=\"{ padding: '0', height: '100%', overflow: 'hidden', display: 'flex', flexDirection: 'column' }\"\n (nzOnClose)=\"closeMenuDrawer()\"\n>\n <ng-container *nzDrawerContent>\n <div class=\"drawer-sider-shell\">\n <!-- Header \u0111\u1ED3ng b\u1ED9 chi\u1EC1u cao 45px v\u1EDBi thanh Header ch\u00EDnh -->\n <div class=\"drawer-sider-header\">\n <div class=\"drawer-sider-brand\" (click)=\"gotoSelectModule(); closeMenuDrawer()\">\n <nz-icon nzType=\"appstore\" style=\"font-size: 16px\"></nz-icon>\n <span class=\"drawer-sider-title text-truncate\">{{ SYSTEM_NAME || \"Danh m\u1EE5c ch\u1EE9c n\u0103ng\" }}</span>\n </div>\n <div class=\"drawer-sider-actions\">\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n class=\"drawer-header-btn\"\n (click)=\"pinSidebarFromDrawer()\"\n >\n <nz-icon nzType=\"pushpin\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n class=\"drawer-header-btn\"\n (click)=\"closeMenuDrawer()\"\n >\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </div>\n\n <!-- Thanh t\u00ECm ki\u1EBFm & n\u00FAt ghim c\u1ED1 \u0111\u1ECBnh d\u01B0\u1EDBi \u0111\u00E1y Drawer -->\n <div class=\"sider-search-bar in-drawer\">\n <nz-input-group\n [nzPrefix]=\"drawerSearchPrefixTpl\"\n [nzSuffix]=\"drawerSuffixTpl\"\n nzSize=\"small\"\n class=\"sider-search-input\"\n >\n <input nz-input placeholder=\"T\u00ECm nhanh menu...\" [(ngModel)]=\"searchValue\" />\n </nz-input-group>\n <ng-template #drawerSearchPrefixTpl>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8; font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #drawerSuffixTpl>\n @if (searchValue) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8; font-size: 12px\"\n (click)=\"searchValue = ''\"\n ></nz-icon>\n }\n </ng-template>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n class=\"sider-toggle-btn\"\n (click)=\"pinSidebarFromDrawer()\"\n nz-tooltip\n nzTooltipTitle=\"Ghim c\u1ED1 \u0111\u1ECBnh thanh Menu\"\n >\n <nz-icon nzType=\"menu-unfold\"></nz-icon>\n </button>\n </div>\n\n <!-- Danh s\u00E1ch Menu cu\u1ED9n \u0111\u1ED9c l\u1EADp (1 thanh cu\u1ED9n duy nh\u1EA5t, kh\u00F4ng c\u1EAFt m\u1EE5c cu\u1ED1i) -->\n @if (MENU_TYPE == \"tree\") {\n <div class=\"nz-tree-wapper in-drawer\">\n <nz-tree\n [nzData]=\"nodes\"\n [nzSearchValue]=\"searchValue\"\n [nzHideUnMatched]=\"true\"\n [nzShowLine]=\"true\"\n [nzSelectedKeys]=\"selectedKeys\"\n [nzExpandedKeys]=\"expandedKeys\"\n (nzClick)=\"nzEvent($event)\"\n ></nz-tree>\n </div>\n } @else {\n <div class=\"nz-tree-wapper in-drawer\">\n <side-menu\n [filteredLstMenu]=\"filteredLstMenu\"\n [moduleId]=\"currentModuleId\"\n [headerMenuId]=\"currentHeaderId\"\n [activeMenuId]=\"activeMenuId\"\n [activeParentIds]=\"activeParentIds\"\n (onClickToMenu)=\"visibleMenuDrawer = false\"\n ></side-menu>\n </div>\n }\n </div>\n </ng-container>\n</nz-drawer>\n<app-global-spinner></app-global-spinner>\n", styles: ["@charset \"UTF-8\";:host{display:flex;width:100%;height:100%;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg-sidebar: #ffffff;--bg-content: var(--surface-app, #f8fafc);--bg-inner: var(--surface-card, #ffffff);--border-color: var(--border-default, #e2e8f0);--text-main: var(--text-primary, #1e293b)}:host-context(.dark-theme),:host(.dark-theme){--theme-color: #1f242d !important;--theme-text-color: #e2e8f0 !important;--bg-sidebar: #161a22;--bg-content: #11141a;--bg-inner: #1a1e26;--border-color: #303642;--text-main: #e2e8f0}.app-layout{display:flex;flex-direction:column;width:100%;height:100vh;overflow:hidden}.app-header{position:fixed;top:0;left:0;width:100%;height:var(--app-header-height);background:var(--theme-color);color:var(--theme-text-color);box-shadow:0 1px 4px #0015291f;z-index:1000;display:flex;align-items:center;padding:0;border-bottom:1px solid var(--border-color);transition:background-color .25s ease}.header-content{width:100%;flex-wrap:nowrap!important}.header-brand-zone{interpolate-size:allow-keywords;height:var(--app-header-height);width:var(--sider-width, 280px);min-width:var(--sider-width, 280px);max-width:var(--sider-width, 280px);display:flex;align-items:center;gap:6px;padding:0 12px 0 8px;color:var(--theme-text-color);flex-shrink:0;overflow:hidden;border-right:1px solid rgba(255,255,255,.08);transition:width .28s cubic-bezier(.22,1,.36,1),min-width .28s cubic-bezier(.22,1,.36,1),max-width .28s cubic-bezier(.22,1,.36,1),padding .28s cubic-bezier(.22,1,.36,1),background-color .25s ease,border-color .25s ease;will-change:width,min-width,max-width}.header-brand-zone.is-collapsed{width:auto;min-width:156px;max-width:240px;padding-right:14px;background-color:#ffffff08;border-right-color:#ffffff24}.header-sider-toggle-btn,.header-sider-peek-btn{color:var(--theme-text-color)!important;width:30px;height:30px;padding:0;border-radius:var(--radius-xs, 6px);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;opacity:.88;transition:background-color .2s ease,opacity .2s ease,transform .25s cubic-bezier(.34,1.56,.64,1)}.header-sider-toggle-btn:hover,.header-sider-peek-btn:hover{opacity:1;background-color:#ffffff24!important;transform:translateY(-1px)}.header-sider-toggle-btn:active,.header-sider-peek-btn:active{transform:scale(.9);transition-duration:.1s}.header-sider-toggle-btn .toggle-menu-icon{transition:transform .32s cubic-bezier(.34,1.56,.64,1)}.header-sider-toggle-btn.is-collapsed .toggle-menu-icon{transform:rotate(180deg) scale(1.05)}.header-sider-peek-btn.peek-quick-btn{width:0!important;min-width:0!important;margin-inline:-3px;opacity:0;overflow:hidden;pointer-events:none;transform:scale(.5) translate(-8px);transition:width .26s cubic-bezier(.22,1,.36,1),min-width .26s cubic-bezier(.22,1,.36,1),margin-inline .26s cubic-bezier(.22,1,.36,1),opacity .2s ease,transform .28s cubic-bezier(.34,1.56,.64,1),background-color .2s ease}.header-sider-peek-btn.peek-quick-btn.is-visible{width:30px!important;min-width:30px!important;margin-inline:0;opacity:.88;pointer-events:auto;transform:scale(1) translate(0)}.header-sider-peek-btn.peek-quick-btn.is-visible:hover{opacity:1;transform:translateY(-1px) scale(1.05)}.header-sider-peek-btn.peek-quick-btn.is-visible:active{transform:scale(.9)}.header-logo-inner{line-height:var(--app-header-height);height:var(--app-header-height);cursor:pointer;flex:1;min-width:0;padding-inline:2px;transition:transform .25s cubic-bezier(.22,1,.36,1)}.header-logo-inner:hover{transform:translate(2px)}.header-logo-inner:hover .system-name-title{color:#fff;text-shadow:0 0 12px rgba(255,255,255,.25)}.system-name-title{color:#f5f5f5;margin-bottom:0;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .2s ease,text-shadow .2s ease}.system-name-fallback{color:#f5f5f5;font-weight:600;white-space:nowrap}.body-layout{position:relative;display:flex;flex:1;margin-top:var(--app-header-height);height:calc(100vh - var(--app-header-height));overflow:hidden}.menu-sidebar{background:var(--bg-sidebar)!important;border-right:1px solid var(--border-color);overflow:hidden!important;transition:width .24s cubic-bezier(.25,.8,.25,1),min-width .24s cubic-bezier(.25,.8,.25,1),max-width .24s cubic-bezier(.25,.8,.25,1),flex .24s cubic-bezier(.25,.8,.25,1)!important;height:calc(100vh - var(--app-header-height))}.menu-sidebar.is-collapsed,.menu-sidebar.hide-side-menu{border-right:none!important}.menu-sidebar.hide-side-menu{flex:0 0 0px!important;max-width:0px!important;min-width:0px!important;width:0px!important}:host ::ng-deep .menu-sidebar>.ant-layout-sider-children{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.sider-inner-shell{display:flex;flex-direction:column;height:100%;overflow:hidden;background:var(--bg-sidebar)}.menu-wapper{display:flex;flex-direction:column;flex:1 1 0%;min-height:0;overflow:hidden}.nz-tree-wapper{flex:1 1 0%;min-height:0;overflow-y:auto;overflow-x:hidden;padding:6px 0}.nz-tree-wapper.in-drawer{flex:1 1 0%;min-height:0;height:auto!important;overflow-y:auto;overflow-x:hidden;padding:6px 0}.sider-search-bar{display:flex;align-items:center;gap:6px;padding:8px 10px;border-top:1px solid var(--border-color, #e2e8f0);background:var(--surface-subtle, #f8fafc);flex-shrink:0}.sider-search-bar .sider-search-input{flex:1;min-width:0}.sider-search-bar .sider-toggle-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:24px;padding:0;border-radius:var(--radius-xs, 4px);color:var(--text-secondary, #475569);border-color:var(--border-default, #cbd5e1)}.sider-search-bar .sider-toggle-btn:hover{color:var(--primary-color, #1677ff);border-color:var(--primary-color, #1677ff);background:var(--primary-bg-subtle, #eff6ff)}.sider-edge-collapse-btn{--dock-primary: var(--primary-color, #1677ff);position:absolute;top:68px;transform:translate(-68%) scale(.92);z-index:48;width:24px;height:24px;border-radius:999px;border:1.5px solid rgba(22,119,255,.45);background:#ffffffd9;backdrop-filter:blur(12px) saturate(180%);-webkit-backdrop-filter:blur(12px) saturate(180%);color:var(--dock-primary);box-shadow:0 4px 12px #1677ff29,0 1px 3px #0f172a14,inset 0 1px #ffffffe6;display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:11px;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:none;opacity:.78;transition:opacity .24s ease,transform .28s cubic-bezier(.22,1,.36,1),color .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .24s ease}.sider-edge-collapse-btn:hover{opacity:1;transform:translate(-50%) scale(1.14);color:#fff;border-color:var(--dock-primary);background:var(--dock-primary);box-shadow:0 6px 16px #1677ff61,0 2px 6px #0f172a1f}.sider-edge-collapse-btn.is-dragging{opacity:1;cursor:grabbing!important;transform:translate(-50%) scale(1.18);color:#fff;background:var(--dock-primary);border-color:var(--dock-primary);box-shadow:0 8px 22px #1677ff73;transition:none}.sider-edge-collapsed-dock{--dock-primary: var(--primary-color, #1677ff);position:absolute;top:68px;left:0;z-index:48;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 6px 7px 5px;background:linear-gradient(155deg,#ffffffdb,#f0f7ffd1);backdrop-filter:blur(16px) saturate(190%);-webkit-backdrop-filter:blur(16px) saturate(190%);border:1.5px solid rgba(22,119,255,.42);border-left:none;border-radius:0 13px 13px 0;box-shadow:4px 8px 24px -2px #1677ff2e,2px 3px 8px -1px #0f172a14,inset 0 1px #ffffffeb;-webkit-user-select:none;user-select:none;touch-action:none;opacity:.82;transform:translate(-62%);will-change:transform,opacity;transition:opacity .26s cubic-bezier(.22,1,.36,1),transform .3s cubic-bezier(.22,1,.36,1),background .25s ease,border-color .25s ease,box-shadow .25s ease}.sider-edge-collapsed-dock:after{content:\"\";position:absolute;top:-6px;bottom:-6px;right:-12px;width:14px;background:transparent;pointer-events:auto}.sider-edge-collapsed-dock:before{content:\"\";position:absolute;right:2px;top:12px;bottom:12px;width:3px;border-radius:4px;background:linear-gradient(180deg,#38bdf8 0%,var(--dock-primary) 50%,#1d4ed8 100%);box-shadow:0 0 6px #1677ff73;opacity:.9;transition:opacity .25s ease,transform .25s ease,left .25s ease,right .25s ease,top .25s ease,bottom .25s ease}.sider-edge-collapsed-dock:hover,.sider-edge-collapsed-dock:focus-within,.sider-edge-collapsed-dock.is-drawer-open{opacity:1;transform:translate(0);background:linear-gradient(155deg,#fffffff2,#ebf5ffeb);border-color:#1677ffa6;box-shadow:6px 12px 28px -3px #1677ff42,2px 4px 12px -2px #0f172a1a,inset 0 1px #fff}.sider-edge-collapsed-dock:hover:before,.sider-edge-collapsed-dock:focus-within:before,.sider-edge-collapsed-dock.is-drawer-open:before{inset:6px auto 6px 0;border-radius:0 4px 4px 0;opacity:1}.sider-edge-collapsed-dock.is-dragging{opacity:1;transform:translate(2px) scale(1.04);background:#fffffff5;border-color:var(--dock-primary);box-shadow:8px 16px 32px -4px #1677ff57,0 0 0 3px #1677ff33;cursor:grabbing!important;transition:background .15s ease,box-shadow .15s ease}.sider-edge-collapsed-dock.is-dragging:before{inset:6px auto 6px 0;border-radius:0 4px 4px 0;opacity:1}.sider-edge-collapsed-dock.is-dragging *{cursor:grabbing!important}.sider-edge-collapsed-dock .edge-dock-drag-handle{width:100%;height:14px;display:flex;align-items:center;justify-content:center;cursor:grab;border-radius:5px;padding:2px 0;transition:background-color .18s ease}.sider-edge-collapsed-dock .edge-dock-drag-handle .grip-dots{width:12px;height:5px;background-image:radial-gradient(circle,rgba(22,119,255,.65) 1.3px,transparent 1.45px);background-size:4px 3px;background-repeat:repeat;transition:transform .2s ease,background-image .2s ease}.sider-edge-collapsed-dock .edge-dock-drag-handle:hover{background:#1677ff1f}.sider-edge-collapsed-dock .edge-dock-drag-handle:hover .grip-dots{background-image:radial-gradient(circle,var(--dock-primary) 1.4px,transparent 1.5px);transform:scaleX(1.1)}.sider-edge-collapsed-dock .edge-dock-drag-handle:active{cursor:grabbing}.sider-edge-collapsed-dock .edge-dock-divider{width:20px;height:1px;margin:1px 0;background:linear-gradient(90deg,#1677ff14,#1677ff6b,#1677ff14)}.sider-edge-collapsed-dock .edge-dock-btn{position:relative;width:30px;height:30px;border-radius:8px;border:1px solid rgba(22,119,255,.22);background:#1677ff0f;color:var(--dock-primary);display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:14.5px;cursor:pointer;transition:background-color .2s cubic-bezier(.22,1,.36,1),color .2s ease,border-color .2s ease,transform .22s cubic-bezier(.34,1.56,.64,1),box-shadow .2s ease}.sider-edge-collapsed-dock .edge-dock-btn .anticon{transition:transform .22s cubic-bezier(.34,1.56,.64,1)}.sider-edge-collapsed-dock .edge-dock-btn:hover{background:#1677ff29;border-color:var(--dock-primary);color:var(--dock-primary);transform:translate(1px) scale(1.07);box-shadow:0 3px 10px #1677ff38}.sider-edge-collapsed-dock .edge-dock-btn:active{transform:scale(.92)}.sider-edge-collapsed-dock .edge-dock-btn.primary-peek{background:linear-gradient(135deg,var(--dock-primary) 0%,#0958d9 100%);border-color:#1677ffe6;color:#fff;box-shadow:0 3px 10px #1677ff57}.sider-edge-collapsed-dock .edge-dock-btn.primary-peek:hover,.sider-edge-collapsed-dock .edge-dock-btn.primary-peek.is-active{background:linear-gradient(135deg,#4096ff 0%,var(--dock-primary) 100%);border-color:#fff;color:#fff;box-shadow:0 5px 14px #1677ff7a}.sider-edge-collapsed-dock .edge-dock-btn.home-action:hover .anticon{transform:translateY(-1px) scale(1.1)}.sider-edge-collapsed-dock .edge-dock-btn.pin-action .pin-icon-default{opacity:1;transform:rotate(0) scale(1);transition:opacity .18s ease,transform .22s cubic-bezier(.34,1.56,.64,1)}.sider-edge-collapsed-dock .edge-dock-btn.pin-action .pin-icon-hover{position:absolute;opacity:0;transform:translate(-4px) scale(.8);transition:opacity .18s ease,transform .22s cubic-bezier(.34,1.56,.64,1)}.sider-edge-collapsed-dock .edge-dock-btn.pin-action:hover .pin-icon-default{opacity:0;transform:rotate(35deg) scale(.75)}.sider-edge-collapsed-dock .edge-dock-btn.pin-action:hover .pin-icon-hover{opacity:1;transform:translate(0) scale(1.08)}.drawer-sider-shell{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden;background:var(--theme-menu-color, var(--surface-card, #ffffff))}.drawer-sider-header{display:flex;align-items:center;justify-content:space-between;gap:8px;height:var(--app-header-height, 45px);min-height:var(--app-header-height, 45px);padding:0 12px;background:var(--theme-color, #001529);color:var(--theme-text-color, #ffffff);border-bottom:1px solid var(--border-color, #e2e8f0);flex-shrink:0}.drawer-sider-header .drawer-sider-brand{display:flex;align-items:center;gap:8px;min-width:0;flex:1;cursor:pointer;font-weight:700;font-size:14px;color:var(--theme-text-color, #ffffff)}.drawer-sider-header .drawer-sider-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.drawer-sider-header .drawer-header-btn{color:var(--theme-text-color, #ffffff)!important;opacity:.85}.drawer-sider-header .drawer-header-btn:hover{opacity:1;background:#ffffff24!important}.main-layout{display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden}.content{flex:1;background:var(--bg-content);overflow-x:hidden;overflow-y:auto;height:100%;display:flex;flex-direction:column}.inner-content{background:var(--bg-inner);color:var(--text-main);flex:1 0 auto;min-height:calc(100% - var(--app-footer-height));padding:8px 10px;box-sizing:border-box}.content-footer-bar{height:var(--app-footer-height);flex-shrink:0}.content-footer{background:var(--theme-color);color:var(--theme-text-color);display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px;height:var(--app-footer-height)}.sider-footer{background:var(--theme-color);color:var(--theme-text-color);height:var(--app-footer-height);min-height:var(--app-footer-height);display:flex;align-items:center;justify-content:center;padding:0 10px;font-size:10.5px;flex-shrink:0;overflow:hidden;border-right:1px solid rgba(255,255,255,.08)}.sider-footer .footer-subtext{color:#ffffffd9;text-align:center;width:100%}.header-overflow-trigger{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600}::ng-deep .menu-wapper .anticon-file{display:none}:host ::ng-deep .ant-back-top{right:30px;bottom:40px}::ng-deep .same-theme-color .ant-drawer-content{background:var(--theme-menu-color, var(--surface-card, #ffffff))}::ng-deep .menu-drawer .ant-drawer-body{padding:0!important;display:flex!important;flex-direction:column!important;height:100%!important;overflow:hidden!important}::ng-deep .ant-breadcrumb-link{cursor:pointer}::ng-deep .breadcrumb-header .ant-breadcrumb-link,::ng-deep .breadcrumb-header .ant-breadcrumb-separator{color:var(--theme-text-color);cursor:pointer}::ng-deep .header-menu .ant-segmented-item:not(.ant-segmented-item-selected){color:var(--theme-text-color)}::ng-deep .header-menu .ant-segmented-item{border-left:1px solid rgba(255,255,255,.15)}::ng-deep .header-menu .ant-segmented-item:last-child{border-right:1px solid rgba(255,255,255,.15)}@keyframes headerMenuItemEntrance{0%{opacity:0;transform:translateY(-10px) scale(.95);filter:blur(3px)}to{opacity:var(--header-item-opacity, .82);transform:translateY(0) scale(1);filter:blur(0)}}@keyframes headerActiveBarReveal{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes headerOverflowItemEntrance{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}::ng-deep .header-menu .ant-menu-horizontal{background-color:transparent!important;border-bottom:none!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu{--header-item-opacity: .82;color:var(--theme-text-color)!important;opacity:var(--header-item-opacity);font-weight:600;padding-inline:14px!important;transition:background-color .2s cubic-bezier(.22,1,.36,1),opacity .2s ease,color .2s ease!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item.header-menu-item-animate,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu.header-menu-item-animate{animation:headerMenuItemEntrance .45s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--i, 0) * 45ms + 40ms);will-change:transform,opacity,filter}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item .anticon,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu .anticon{transition:transform .25s cubic-bezier(.34,1.56,.64,1)}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:hover .anticon,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:hover .anticon{transform:translateY(-1px) scale(1.1)}::ng-deep .header-menu .ant-menu-submenu-title .anticon{color:var(--theme-text-color)!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:hover,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:hover,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item-selected,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item.is-header-active,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-open,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-selected,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu.is-header-active{--header-item-opacity: 1;color:#fff!important;opacity:1;background-color:#ffffff29!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:after{inset-inline:8px!important;transform:scaleX(.35);transform-origin:center;transition:transform .28s cubic-bezier(.22,1,.36,1),border-color .25s ease!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item-selected:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item.is-header-active:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-selected:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu.is-header-active:after{border-bottom:3px solid #38bdf8!important;inset-inline:8px!important;transform:scaleX(1);animation:headerActiveBarReveal .4s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--i, 0) * 45ms + .16s)}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:hover:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:hover:after{border-bottom-color:#38bdf8bf!important;transform:scaleX(1)}::ng-deep .ant-menu-submenu-popup .header-overflow-item-animate{animation:headerOverflowItemEntrance .3s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--j, 0) * 35ms)}@media (prefers-reduced-motion: reduce){::ng-deep .header-menu .header-menu-item-animate,::ng-deep .header-menu .header-menu-item-animate:after,::ng-deep .ant-menu-submenu-popup .header-overflow-item-animate{animation:none!important}}:host-context(.dark-theme) .content-footer,:host-context(.dark-theme) .sider-footer{background-color:var(--bg-sidebar);border-top:1px solid var(--border-color)}:host-context(.dark-theme) .sider-search-bar{background-color:var(--bg-sidebar);border-top-color:var(--border-color)}:host-context(.dark-theme) .sider-edge-collapse-btn{background:#1a1e26c2;border-color:#4755698c;color:var(--text-main);box-shadow:0 4px 14px #00000073,inset 0 1px #ffffff14}:host-context(.dark-theme) .sider-edge-collapse-btn:hover{background:#1e293bf0;border-color:#38bdf8;color:#38bdf8}:host-context(.dark-theme) .sider-edge-collapsed-dock{background:#161a22b8;border-color:#47556980;box-shadow:6px 10px 28px #0000007a,inset 0 1px #ffffff12}:host-context(.dark-theme) .sider-edge-collapsed-dock:hover,:host-context(.dark-theme) .sider-edge-collapsed-dock:focus-within,:host-context(.dark-theme) .sider-edge-collapsed-dock.is-drawer-open{background:#1a1e26e6;border-color:#38bdf873}:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-drag-handle .grip-dots{background-image:radial-gradient(circle,rgba(148,163,184,.55) 1.25px,transparent 1.35px)}:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-btn{color:#cbd5e1}:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-btn:hover{background:#38bdf826;border-color:#38bdf84d;color:#38bdf8}:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-btn.primary-peek{color:#38bdf8;background:#38bdf81f;border-color:#38bdf83d}:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-btn.primary-peek:hover,:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-btn.primary-peek.is-active{background:linear-gradient(135deg,#0284c7,#2563eb);color:#fff}:host-context(.dark-theme) ::ng-deep .menu-sidebar .ant-tree,:host-context(.dark-theme) ::ng-deep .menu-drawer .ant-tree{background:transparent;color:var(--text-main)}:host-context(.dark-theme) ::ng-deep .ant-tree-node-content-wrapper:hover{background-color:#ffffff14!important}:host-context(.dark-theme) ::ng-deep .ant-tree-node-selected{background-color:#3b82f638!important;color:#fff!important}:host-context(.dark-theme) ::ng-deep .sider-search-bar .ant-input,:host-context(.dark-theme) ::ng-deep .sider-search-bar .ant-input-affix-wrapper{background-color:var(--bg-content);border-color:var(--border-color);color:var(--text-main)}:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-link,:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-separator{color:#94a3b8!important}:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-link:hover{color:var(--text-main)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: NzLayoutModule }, { kind: "component", type: i2$4.NzLayoutComponent, selector: "nz-layout", exportAs: ["nzLayout"] }, { kind: "component", type: i2$4.NzHeaderComponent, selector: "nz-header", exportAs: ["nzHeader"] }, { kind: "component", type: i2$4.NzContentComponent, selector: "nz-content", exportAs: ["nzContent"] }, { kind: "component", type: i2$4.NzSiderComponent, selector: "nz-sider", inputs: ["nzWidth", "nzTheme", "nzCollapsedWidth", "nzBreakpoint", "nzZeroTrigger", "nzTrigger", "nzReverseArrow", "nzCollapsible", "nzCollapsed"], outputs: ["nzCollapsedChange"], exportAs: ["nzSider"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "component", type: i4$2.NzSubMenuComponent, selector: "[nz-submenu]", inputs: ["nzMenuClassName", "nzPaddingLeft", "nzTitle", "nzIcon", "nzTriggerSubMenuAction", "nzOpen", "nzDisabled", "nzPlacement"], outputs: ["nzOpenChange"], exportAs: ["nzSubmenu"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "component", type: Breadcrumb, selector: "app-breadcrumb" }, { kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i10$1.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzBackTopModule }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i14.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: Box, selector: "box", inputs: ["display", "width", "height"] }, { kind: "ngmodule", type: NzSegmentedModule }, { kind: "component", type: LayoutUser, selector: "header-user" }, { kind: "directive", type: HideIfErrorDirective, selector: "img[hideIfError]" }, { kind: "component", type: NotificationCenterComponent, selector: "app-notification-center" }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzMenuModule }, { kind: "component", type: SideMenuComponent, selector: "side-menu", inputs: ["filteredLstMenu", "moduleId", "headerMenuId", "activeMenuId", "activeParentIds"], outputs: ["onClickToMenu"] }, { kind: "component", type: GlobalSpinnerComponent, selector: "app-global-spinner" }], animations: [fadeInOut] });
14800
14875
  }
14801
14876
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: LayoutComponent, decorators: [{
14802
14877
  type: Component,
@@ -14826,7 +14901,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
14826
14901
  NzMenuModule,
14827
14902
  SideMenuComponent,
14828
14903
  GlobalSpinnerComponent,
14829
- ], animations: [fadeInOut], template: "<nz-layout class=\"app-layout\">\n <!-- ===================================================================== -->\n <!-- 1. TOP HEADER CHU\u1EA8N ENTERPRISE (LU\u00D4N C\u00D3 N\u00DAT \u0110\u00D3NG/M\u1EDE SIDE MENU C\u1ED0 \u0110\u1ECANH) -->\n <!-- ===================================================================== -->\n <nz-header class=\"app-header\">\n <div nz-row nzAlign=\"middle\" class=\"header-content\">\n <!-- Khu v\u1EF1c Th\u01B0\u01A1ng hi\u1EC7u (Logo + N\u00FAt \u0111i\u1EC1u khi\u1EC3n Side Menu chu\u1EA9n Enterprise) -->\n <div\n class=\"header-brand-zone\"\n [class.is-collapsed]=\"isCollapsed\"\n [style.width]=\"!isCollapsed ? siderWidthStorage : 'auto'\"\n >\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n class=\"header-sider-toggle-btn\"\n nz-tooltip\n [nzTooltipTitle]=\"isCollapsed ? 'Hi\u1EC7n menu' : '\u1EA8n menu'\"\n nzTooltipPlacement=\"bottom\"\n (click)=\"triggerCollapse()\"\n >\n <nz-icon [nzType]=\"isCollapsed ? 'menu-unfold' : 'menu-fold'\" nzTheme=\"outline\" />\n </button>\n\n @if (isCollapsed) {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n class=\"header-sider-peek-btn\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF nhanh Menu\"\n nzTooltipPlacement=\"bottom\"\n (click)=\"openMenuDrawer()\"\n >\n <nz-icon nzType=\"appstore\" nzTheme=\"outline\" />\n </button>\n }\n\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n class=\"header-sider-peek-btn\"\n nz-tooltip\n nzTooltipTitle=\"V\u1EC1 trang ch\u1EE7\"\n nzTooltipPlacement=\"bottom\"\n (click)=\"gotoSelectModule()\"\n >\n <nz-icon nzType=\"home\" nzTheme=\"outline\" />\n </button>\n\n <div\n nz-flex\n nzJustify=\"center\"\n nzAlign=\"center\"\n nzGap=\"small\"\n class=\"header-logo-inner\"\n (click)=\"gotoSelectModule()\"\n >\n <img\n *ngIf=\"logoUrl$ | async as url\"\n [src]=\"url\"\n style=\"padding: 4px; height: var(--app-header-height)\"\n hideIfError\n />\n @if (SYSTEM_NAME) {\n <h2 class=\"system-name-title\">{{ SYSTEM_NAME }}</h2>\n } @else {\n <span class=\"system-name-fallback\">-- o0o --</span>\n }\n </div>\n </div>\n\n <!-- Header Menu ngang -->\n <div nz-col nzFlex=\"auto\" class=\"header-menu\" style=\"min-width: 0; overflow: hidden\" #menuContainer>\n <ul\n *ngIf=\"!LayoutComponent.noShowHeaderMenu\"\n nz-menu\n nzTheme=\"light\"\n nzMode=\"horizontal\"\n style=\"display: flex; flex-wrap: nowrap; border-bottom: none; line-height: var(--app-header-height)\"\n >\n @for (item of visibleMenus; track item.App_Menu_Id) {\n <li\n nz-menu-item\n [nzSelected]=\"currentHeaderId === item.App_Menu_Id\"\n [class.is-header-active]=\"currentHeaderId === item.App_Menu_Id\"\n (click)=\"handleValueChangeHeaderMenu(item)\"\n >\n <nz-icon *ngIf=\"item.Icon\" [nzType]=\"item.Icon\"></nz-icon><box [width]=\"4\"></box>{{ item.Name }}\n </li>\n }\n\n @if (hiddenMenus.length > 0) {\n <li\n nz-submenu\n [class.is-header-active]=\"isAnyHiddenHeaderActive\"\n [nzTitle]=\"overflowHeaderTitleTpl\"\n style=\"padding: 0 12px\"\n >\n <ng-template #overflowHeaderTitleTpl>\n <span class=\"header-overflow-trigger\">\n <nz-icon nzType=\"appstore\"></nz-icon>\n <span>Kh\u00E1c ({{ hiddenMenus.length }})</span>\n </span>\n </ng-template>\n <ul>\n @for (item of hiddenMenus; track item.App_Menu_Id) {\n <li\n nz-menu-item\n [nzSelected]=\"currentHeaderId === item.App_Menu_Id\"\n [class.is-header-active]=\"currentHeaderId === item.App_Menu_Id\"\n (click)=\"handleValueChangeHeaderMenu(item)\"\n >\n <nz-icon *ngIf=\"item.Icon\" [nzType]=\"item.Icon\"></nz-icon><box [width]=\"4\"></box>{{ item.Name }}\n </li>\n }\n </ul>\n </li>\n }\n </ul>\n </div>\n\n <div style=\"display: flex; align-items: center; flex-shrink: 0; gap: 8px; padding-right: 8px\">\n <!-- <header-search></header-search> -->\n <app-notification-center></app-notification-center>\n <header-user></header-user>\n </div>\n </div>\n </nz-header>\n\n <!-- ===================================================================== -->\n <!-- 2. BODY LAYOUT (DOCKED SIDER + EDGE HANDLE + MAIN WORKSPACE) -->\n <!-- ===================================================================== -->\n <nz-layout class=\"body-layout\">\n <nz-sider\n [class.hide-side-menu]=\"LayoutComponent.noShowSideMenu\"\n [class.is-collapsed]=\"isCollapsed\"\n class=\"menu-sidebar\"\n nzCollapsible\n [nzWidth]=\"siderWidth\"\n [nzCollapsedWidth]=\"0\"\n [(nzCollapsed)]=\"isCollapsed\"\n [nzTrigger]=\"null\"\n [nzTheme]=\"'light'\"\n >\n <!-- Khung c\u1ED1 \u0111\u1ECBnh chi\u1EC1u r\u1ED9ng b\u00EAn trong gi\u00FAp khi Sider tr\u01B0\u1EE3t \u0111\u00F3ng/m\u1EDF kh\u00F4ng b\u1ECB \u00E9p ch\u1EEF xu\u1ED1ng d\u00F2ng -->\n <div class=\"sider-inner-shell\" [style.width]=\"siderWidthStorage\" [style.min-width]=\"siderWidthStorage\">\n <div class=\"menu-wapper\">\n <!-- Thanh c\u00F4ng c\u1EE5 t\u00ECm ki\u1EBFm & thu g\u1ECDn Side Menu chu\u1EA9n Enterprise (T\u00E1ch bi\u1EC7t ho\u00E0n to\u00E0n kh\u1ECFi Footer) -->\n <div class=\"sider-search-bar\">\n <nz-input-group\n [nzPrefix]=\"siderSearchPrefixTpl\"\n [nzSuffix]=\"siderSuffixTpl\"\n nzSize=\"small\"\n class=\"sider-search-input\"\n >\n <input nz-input placeholder=\"T\u00ECm nhanh menu...\" [(ngModel)]=\"searchValue\" />\n </nz-input-group>\n <ng-template #siderSearchPrefixTpl>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8; font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #siderSuffixTpl>\n @if (searchValue) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8; font-size: 12px\"\n (click)=\"searchValue = ''\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n class=\"sider-toggle-btn\"\n (click)=\"triggerCollapse()\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn Side Menu (M\u1EDF r\u1ED9ng kh\u00F4ng gian l\u00E0m vi\u1EC7c)\"\n >\n <nz-icon nzType=\"menu-fold\"></nz-icon>\n </button> -->\n </div>\n @if (MENU_TYPE == \"tree\") {\n <div class=\"nz-tree-wapper\">\n <nz-tree\n [nzData]=\"nodes\"\n [nzSearchValue]=\"searchValue\"\n [nzHideUnMatched]=\"true\"\n [nzShowLine]=\"true\"\n [nzSelectedKeys]=\"selectedKeys\"\n [nzExpandedKeys]=\"expandedKeys\"\n (nzClick)=\"nzEvent($event)\"\n ></nz-tree>\n </div>\n } @else {\n <div class=\"nz-tree-wapper\">\n <side-menu\n [filteredLstMenu]=\"filteredLstMenu\"\n [moduleId]=\"currentModuleId\"\n [headerMenuId]=\"currentHeaderId\"\n [activeMenuId]=\"activeMenuId\"\n [activeParentIds]=\"activeParentIds\"\n ></side-menu>\n </div>\n }\n </div>\n\n <!-- Footer \u0111\u00E1y c\u1EE7a Sider: Ch\u1EC9 hi\u1EC3n th\u1ECB t\u00EAn ph\u00E2n h\u1EC7 c\u0103n gi\u1EEFa s\u1EA1ch s\u1EBD, kh\u00F4ng c\u00F2n n\u00FAt \u0111\u00E8 l\u00EAn ch\u1EEF -->\n <div class=\"sider-footer\">\n <span class=\"footer-subtext text-italic text-truncate\">\n {{ SYSTEM_SUB_NAME_LEFT || \"-- o0o --\" }}\n </span>\n </div>\n </div>\n </nz-sider>\n\n <!-- N\u00FAt g\u1EA1t \u0111\u00F3ng/m\u1EDF nhanh tr\u00EAn c\u1EA1nh ph\u00E2n c\u00E1ch (Chu\u1EA9n Jira / GitLab / Confluence) -->\n <!-- @if (!LayoutComponent.noShowSideMenu) {\n @if (!isCollapsed) {\n <button\n type=\"button\"\n class=\"sider-edge-collapse-btn\"\n [style.left]=\"siderWidthStorage\"\n (click)=\"triggerCollapse()\"\n nz-tooltip\n nzTooltipPlacement=\"right\"\n nzTooltipTitle=\"Thu g\u1ECDn thanh Menu\"\n >\n <nz-icon nzType=\"left\"></nz-icon>\n </button>\n } @else {\n <div class=\"sider-edge-collapsed-dock\">\n <button\n type=\"button\"\n class=\"edge-dock-btn primary-peek\"\n (click)=\"openMenuDrawer()\"\n nz-tooltip\n nzTooltipPlacement=\"right\"\n nzTooltipTitle=\"M\u1EDF nhanh Menu n\u1ED5i (Quick Peek)\"\n >\n <nz-icon nzType=\"menu\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n class=\"edge-dock-btn\"\n (click)=\"triggerCollapse()\"\n nz-tooltip\n nzTooltipPlacement=\"right\"\n nzTooltipTitle=\"Ghim c\u1ED1 \u0111\u1ECBnh thanh Menu\"\n >\n <nz-icon nzType=\"right\"></nz-icon>\n </button>\n </div>\n }\n } -->\n\n <nz-layout class=\"main-layout\">\n <nz-content class=\"content\">\n <div class=\"inner-content\">\n @if (!LayoutComponent.noShowBreadcrumb) {\n <app-breadcrumb [@fadeInOut] nz-col nzFlex=\"auto\"></app-breadcrumb>\n }\n <router-outlet></router-outlet>\n </div>\n <div nz-row class=\"content-footer-bar\">\n <div nz-col nzFlex=\"auto\" class=\"content-footer text-italic\">\n {{ SYSTEM_SUB_NAME_RIGHT || \"-- o0o --\" }}\n </div>\n </div>\n </nz-content>\n </nz-layout>\n </nz-layout>\n</nz-layout>\n\n<!-- ========================================================================= -->\n<!-- 3. FLOATING SIDE MENU DRAWER (CH\u1EBE \u0110\u1ED8 MENU N\u1ED4I KHI \u0110ANG THU G\u1ECCN SIDER) -->\n<!-- ========================================================================= -->\n<nz-drawer\n [nzWrapClassName]=\"'same-theme-color menu-drawer'\"\n [nzWidth]=\"320\"\n [nzClosable]=\"false\"\n [(nzVisible)]=\"visibleMenuDrawer\"\n [nzMaskClosable]=\"true\"\n nzPlacement=\"left\"\n [nzBodyStyle]=\"{ padding: '0', height: '100%', overflow: 'hidden', display: 'flex', flexDirection: 'column' }\"\n (nzOnClose)=\"closeMenuDrawer()\"\n>\n <ng-container *nzDrawerContent>\n <div class=\"drawer-sider-shell\">\n <!-- Header \u0111\u1ED3ng b\u1ED9 chi\u1EC1u cao 45px v\u1EDBi thanh Header ch\u00EDnh -->\n <div class=\"drawer-sider-header\">\n <div class=\"drawer-sider-brand\" (click)=\"gotoSelectModule(); closeMenuDrawer()\">\n <nz-icon nzType=\"appstore\" style=\"font-size: 16px\"></nz-icon>\n <span class=\"drawer-sider-title text-truncate\">{{ SYSTEM_NAME || \"Danh m\u1EE5c ch\u1EE9c n\u0103ng\" }}</span>\n </div>\n <div class=\"drawer-sider-actions\">\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n class=\"drawer-header-btn\"\n (click)=\"pinSidebarFromDrawer()\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"Ghim c\u1ED1 \u0111\u1ECBnh thanh Menu v\u00E0o m\u00E0n h\u00ECnh\" -->\n <nz-icon nzType=\"pushpin\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n class=\"drawer-header-btn\"\n (click)=\"closeMenuDrawer()\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"\u0110\u00F3ng Menu n\u1ED5i\" -->\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </div>\n\n <!-- Thanh t\u00ECm ki\u1EBFm & n\u00FAt ghim c\u1ED1 \u0111\u1ECBnh d\u01B0\u1EDBi \u0111\u00E1y Drawer -->\n <div class=\"sider-search-bar in-drawer\">\n <nz-input-group\n [nzPrefix]=\"drawerSearchPrefixTpl\"\n [nzSuffix]=\"drawerSuffixTpl\"\n nzSize=\"small\"\n class=\"sider-search-input\"\n >\n <input nz-input placeholder=\"T\u00ECm nhanh menu...\" [(ngModel)]=\"searchValue\" />\n </nz-input-group>\n <ng-template #drawerSearchPrefixTpl>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8; font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #drawerSuffixTpl>\n @if (searchValue) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8; font-size: 12px\"\n (click)=\"searchValue = ''\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n class=\"sider-toggle-btn\"\n (click)=\"pinSidebarFromDrawer()\"\n nz-tooltip\n nzTooltipTitle=\"Ghim c\u1ED1 \u0111\u1ECBnh thanh Menu\"\n >\n <nz-icon nzType=\"menu-unfold\"></nz-icon>\n </button> -->\n </div>\n\n <!-- Danh s\u00E1ch Menu cu\u1ED9n \u0111\u1ED9c l\u1EADp (1 thanh cu\u1ED9n duy nh\u1EA5t, kh\u00F4ng c\u1EAFt m\u1EE5c cu\u1ED1i) -->\n @if (MENU_TYPE == \"tree\") {\n <div class=\"nz-tree-wapper in-drawer\">\n <nz-tree\n [nzData]=\"nodes\"\n [nzSearchValue]=\"searchValue\"\n [nzHideUnMatched]=\"true\"\n [nzShowLine]=\"true\"\n [nzSelectedKeys]=\"selectedKeys\"\n [nzExpandedKeys]=\"expandedKeys\"\n (nzClick)=\"nzEvent($event)\"\n ></nz-tree>\n </div>\n } @else {\n <div class=\"nz-tree-wapper in-drawer\">\n <side-menu\n [filteredLstMenu]=\"filteredLstMenu\"\n [moduleId]=\"currentModuleId\"\n [headerMenuId]=\"currentHeaderId\"\n [activeMenuId]=\"activeMenuId\"\n [activeParentIds]=\"activeParentIds\"\n (onClickToMenu)=\"visibleMenuDrawer = false\"\n ></side-menu>\n </div>\n }\n </div>\n </ng-container>\n</nz-drawer>\n<app-global-spinner></app-global-spinner>\n", styles: ["@charset \"UTF-8\";:host{display:flex;width:100%;height:100%;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg-sidebar: #ffffff;--bg-content: var(--surface-app, #f8fafc);--bg-inner: var(--surface-card, #ffffff);--border-color: var(--border-default, #e2e8f0);--text-main: var(--text-primary, #1e293b)}:host-context(.dark-theme),:host(.dark-theme){--theme-color: #1f242d !important;--theme-text-color: #e2e8f0 !important;--bg-sidebar: #161a22;--bg-content: #11141a;--bg-inner: #1a1e26;--border-color: #303642;--text-main: #e2e8f0}.app-layout{display:flex;flex-direction:column;width:100%;height:100vh;overflow:hidden}.app-header{position:fixed;top:0;left:0;width:100%;height:var(--app-header-height);background:var(--theme-color);color:var(--theme-text-color);box-shadow:0 1px 4px #0015291f;z-index:1000;display:flex;align-items:center;padding:0;border-bottom:1px solid var(--border-color);transition:background-color .25s ease}.header-content{width:100%;flex-wrap:nowrap!important}.header-brand-zone{height:var(--app-header-height);display:flex;align-items:center;gap:6px;padding:0 12px 0 8px;color:var(--theme-text-color);flex-shrink:0;overflow:hidden;border-right:1px solid rgba(255,255,255,.08)}.header-brand-zone.is-collapsed{padding-right:14px}.header-sider-toggle-btn,.header-sider-peek-btn{color:var(--theme-text-color)!important;width:30px;height:30px;padding:0;border-radius:var(--radius-xs, 4px);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;opacity:.88;transition:background-color .15s ease,opacity .15s ease}.header-sider-toggle-btn:hover,.header-sider-peek-btn:hover{opacity:1;background-color:#ffffff24!important}.header-logo-inner{line-height:var(--app-header-height);height:var(--app-header-height);cursor:pointer;flex:1;min-width:0}.system-name-title{color:#f5f5f5;margin-bottom:0;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.system-name-fallback{color:#f5f5f5;font-weight:600;white-space:nowrap}.body-layout{position:relative;display:flex;flex:1;margin-top:var(--app-header-height);height:calc(100vh - var(--app-header-height));overflow:hidden}.menu-sidebar{background:var(--bg-sidebar)!important;border-right:1px solid var(--border-color);overflow:hidden!important;transition:width .24s cubic-bezier(.25,.8,.25,1),min-width .24s cubic-bezier(.25,.8,.25,1),max-width .24s cubic-bezier(.25,.8,.25,1),flex .24s cubic-bezier(.25,.8,.25,1)!important;height:calc(100vh - var(--app-header-height))}.menu-sidebar.is-collapsed,.menu-sidebar.hide-side-menu{border-right:none!important}.menu-sidebar.hide-side-menu{flex:0 0 0px!important;max-width:0px!important;min-width:0px!important;width:0px!important}:host ::ng-deep .menu-sidebar>.ant-layout-sider-children{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.sider-inner-shell{display:flex;flex-direction:column;height:100%;overflow:hidden;background:var(--bg-sidebar)}.menu-wapper{display:flex;flex-direction:column;flex:1 1 0%;min-height:0;overflow:hidden}.nz-tree-wapper{flex:1 1 0%;min-height:0;overflow-y:auto;overflow-x:hidden;padding:6px 0}.nz-tree-wapper.in-drawer{flex:1 1 0%;min-height:0;height:auto!important;overflow-y:auto;overflow-x:hidden;padding:6px 0}.sider-search-bar{display:flex;align-items:center;gap:6px;padding:8px 10px;border-top:1px solid var(--border-color, #e2e8f0);background:var(--surface-subtle, #f8fafc);flex-shrink:0}.sider-search-bar .sider-search-input{flex:1;min-width:0}.sider-search-bar .sider-toggle-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:24px;padding:0;border-radius:var(--radius-xs, 4px);color:var(--text-secondary, #475569);border-color:var(--border-default, #cbd5e1)}.sider-search-bar .sider-toggle-btn:hover{color:var(--primary-color, #1677ff);border-color:var(--primary-color, #1677ff);background:var(--primary-bg-subtle, #eff6ff)}.sider-edge-collapse-btn{position:absolute;top:14px;transform:translate(-50%);z-index:45;width:22px;height:22px;border-radius:999px;border:1px solid var(--border-strong, #cbd5e1);background:var(--surface-card, #ffffff);color:var(--text-secondary, #475569);box-shadow:0 2px 6px #0f172a1f;display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:11px;cursor:pointer;opacity:.75;transition:opacity .18s ease,transform .18s ease,color .18s ease,border-color .18s ease,background-color .18s ease}.sider-edge-collapse-btn:hover{opacity:1;transform:translate(-50%) scale(1.08);color:var(--primary-color, #1677ff);border-color:var(--primary-color, #1677ff);background:var(--primary-bg-subtle, #eff6ff)}.sider-edge-collapsed-dock{position:absolute;top:10px;left:0;z-index:45;display:flex;flex-direction:column;gap:4px;padding:4px 4px 4px 0;background:var(--surface-card, #ffffff);border:1px solid var(--border-default, #cbd5e1);border-left:none;border-radius:0 8px 8px 0;box-shadow:2px 2px 8px #0f172a1a}.sider-edge-collapsed-dock .edge-dock-btn{width:24px;height:24px;border-radius:0 6px 6px 0;border:none;background:transparent;color:var(--text-secondary, #475569);display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:12px;cursor:pointer;transition:all .15s ease}.sider-edge-collapsed-dock .edge-dock-btn.primary-peek{color:var(--primary-color, #1677ff)}.sider-edge-collapsed-dock .edge-dock-btn:hover{background:var(--primary-bg-subtle, #eff6ff);color:var(--primary-color, #1677ff)}.drawer-sider-shell{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden;background:var(--theme-menu-color, var(--surface-card, #ffffff))}.drawer-sider-header{display:flex;align-items:center;justify-content:space-between;gap:8px;height:var(--app-header-height, 45px);min-height:var(--app-header-height, 45px);padding:0 12px;background:var(--theme-color, #001529);color:var(--theme-text-color, #ffffff);border-bottom:1px solid var(--border-color, #e2e8f0);flex-shrink:0}.drawer-sider-header .drawer-sider-brand{display:flex;align-items:center;gap:8px;min-width:0;flex:1;cursor:pointer;font-weight:700;font-size:14px;color:var(--theme-text-color, #ffffff)}.drawer-sider-header .drawer-sider-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.drawer-sider-header .drawer-header-btn{color:var(--theme-text-color, #ffffff)!important;opacity:.85}.drawer-sider-header .drawer-header-btn:hover{opacity:1;background:#ffffff24!important}.main-layout{display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden}.content{flex:1;background:var(--bg-content);overflow-x:hidden;overflow-y:auto;height:100%;display:flex;flex-direction:column}.inner-content{background:var(--bg-inner);color:var(--text-main);flex:1 0 auto;min-height:calc(100% - var(--app-footer-height));padding:8px 10px;box-sizing:border-box}.content-footer-bar{height:var(--app-footer-height);flex-shrink:0}.content-footer{background:var(--theme-color);color:var(--theme-text-color);display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px;height:var(--app-footer-height)}.sider-footer{background:var(--theme-color);color:var(--theme-text-color);height:var(--app-footer-height);min-height:var(--app-footer-height);display:flex;align-items:center;justify-content:center;padding:0 10px;font-size:10.5px;flex-shrink:0;overflow:hidden;border-right:1px solid rgba(255,255,255,.08)}.sider-footer .footer-subtext{color:#ffffffd9;text-align:center;width:100%}.header-overflow-trigger{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600}::ng-deep .menu-wapper .anticon-file{display:none}:host ::ng-deep .ant-back-top{right:30px;bottom:40px}::ng-deep .same-theme-color .ant-drawer-content{background:var(--theme-menu-color, var(--surface-card, #ffffff))}::ng-deep .menu-drawer .ant-drawer-body{padding:0!important;display:flex!important;flex-direction:column!important;height:100%!important;overflow:hidden!important}::ng-deep .ant-breadcrumb-link{cursor:pointer}::ng-deep .breadcrumb-header .ant-breadcrumb-link,::ng-deep .breadcrumb-header .ant-breadcrumb-separator{color:var(--theme-text-color);cursor:pointer}::ng-deep .header-menu .ant-segmented-item:not(.ant-segmented-item-selected){color:var(--theme-text-color)}::ng-deep .header-menu .ant-segmented-item{border-left:1px solid rgba(255,255,255,.15)}::ng-deep .header-menu .ant-segmented-item:last-child{border-right:1px solid rgba(255,255,255,.15)}::ng-deep .header-menu .ant-menu-horizontal{background-color:transparent!important;border-bottom:none!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu{color:var(--theme-text-color)!important;opacity:.82;font-weight:600;padding-inline:14px!important;transition:background-color .15s ease,opacity .15s ease!important}::ng-deep .header-menu .ant-menu-submenu-title .anticon{color:var(--theme-text-color)!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:hover,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:hover,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item-selected,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item.is-header-active,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-open,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-selected,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu.is-header-active{color:#fff!important;opacity:1;background-color:#ffffff29!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item-selected:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item.is-header-active:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-selected:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu.is-header-active:after{border-bottom:3px solid #38bdf8!important;inset-inline:8px!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:hover:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:hover:after{border-bottom-color:#38bdf8bf!important}:host-context(.dark-theme) .content-footer,:host-context(.dark-theme) .sider-footer{background-color:var(--bg-sidebar);border-top:1px solid var(--border-color)}:host-context(.dark-theme) .sider-search-bar{background-color:var(--bg-sidebar);border-top-color:var(--border-color)}:host-context(.dark-theme) .sider-edge-collapse-btn,:host-context(.dark-theme) .sider-edge-collapsed-dock{background-color:var(--bg-inner);border-color:var(--border-color);color:var(--text-main)}:host-context(.dark-theme) ::ng-deep .menu-sidebar .ant-tree,:host-context(.dark-theme) ::ng-deep .menu-drawer .ant-tree{background:transparent;color:var(--text-main)}:host-context(.dark-theme) ::ng-deep .ant-tree-node-content-wrapper:hover{background-color:#ffffff14!important}:host-context(.dark-theme) ::ng-deep .ant-tree-node-selected{background-color:#3b82f638!important;color:#fff!important}:host-context(.dark-theme) ::ng-deep .sider-search-bar .ant-input,:host-context(.dark-theme) ::ng-deep .sider-search-bar .ant-input-affix-wrapper{background-color:var(--bg-content);border-color:var(--border-color);color:var(--text-main)}:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-link,:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-separator{color:#94a3b8!important}:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-link:hover{color:var(--text-main)!important}\n"] }]
14904
+ ], animations: [fadeInOut], template: "<nz-layout class=\"app-layout\">\n <!-- ===================================================================== -->\n <!-- 1. TOP HEADER CHU\u1EA8N ENTERPRISE (LU\u00D4N C\u00D3 N\u00DAT \u0110\u00D3NG/M\u1EDE SIDE MENU C\u1ED0 \u0110\u1ECANH) -->\n <!-- ===================================================================== -->\n <nz-header class=\"app-header\">\n <div nz-row nzAlign=\"middle\" class=\"header-content\">\n <!-- Khu v\u1EF1c Th\u01B0\u01A1ng hi\u1EC7u (Logo + N\u00FAt \u0111i\u1EC1u khi\u1EC3n Side Menu chu\u1EA9n Enterprise) -->\n <div\n class=\"header-brand-zone\"\n [class.is-collapsed]=\"isCollapsed || LayoutComponent.noShowSideMenu\"\n [style.--sider-width]=\"siderWidthStorage\"\n >\n <!-- Gi\u1EEF n\u00FAt trong DOM v\u00E0 \u0111i\u1EC1u khi\u1EC3n \u1EA9n/hi\u1EC7n b\u1EB1ng CSS transition \u0111\u1EC3 kh\u00F4ng l\u00E0m gi\u1EADt n\u00FAt Home & PMO -->\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n class=\"header-sider-peek-btn peek-quick-btn is-visible\"\n (click)=\"gotoSelectModule()\"\n >\n <nz-icon nzType=\"appstore\" nzTheme=\"outline\" />\n </button>\n\n <div\n nz-flex\n nzJustify=\"center\"\n nzAlign=\"center\"\n nzGap=\"small\"\n class=\"header-logo-inner\"\n (click)=\"gotoSelectModule()\"\n >\n <img\n *ngIf=\"logoUrl$ | async as url\"\n [src]=\"url\"\n style=\"padding: 4px; height: var(--app-header-height)\"\n hideIfError\n />\n @if (SYSTEM_NAME) {\n <h2 class=\"system-name-title\">{{ SYSTEM_NAME }}</h2>\n } @else {\n <span class=\"system-name-fallback\">-- o0o --</span>\n }\n </div>\n </div>\n\n <!-- Header Menu ngang -->\n <div nz-col nzFlex=\"auto\" class=\"header-menu\" style=\"min-width: 0; overflow: hidden\" #menuContainer>\n <ul\n *ngIf=\"!LayoutComponent.noShowHeaderMenu\"\n nz-menu\n nzTheme=\"light\"\n nzMode=\"horizontal\"\n class=\"header-menu-list\"\n style=\"display: flex; flex-wrap: nowrap; border-bottom: none; line-height: var(--app-header-height)\"\n >\n @for (item of visibleMenus; track item.App_Menu_Id; let i = $index) {\n <li\n nz-menu-item\n class=\"header-menu-item-animate\"\n [style.--i]=\"i\"\n [nzSelected]=\"currentHeaderId === item.App_Menu_Id\"\n [class.is-header-active]=\"currentHeaderId === item.App_Menu_Id\"\n (click)=\"handleValueChangeHeaderMenu(item)\"\n >\n <nz-icon *ngIf=\"item.Icon\" [nzType]=\"item.Icon\"></nz-icon><box [width]=\"4\"></box>{{ item.Name }}\n </li>\n }\n\n @if (hiddenMenus.length > 0) {\n <li\n nz-submenu\n class=\"header-menu-item-animate\"\n [style.--i]=\"visibleMenus.length\"\n [class.is-header-active]=\"isAnyHiddenHeaderActive\"\n [nzTitle]=\"overflowHeaderTitleTpl\"\n style=\"padding: 0 12px\"\n >\n <ng-template #overflowHeaderTitleTpl>\n <span class=\"header-overflow-trigger\">\n <nz-icon nzType=\"appstore\"></nz-icon>\n <span>Kh\u00E1c ({{ hiddenMenus.length }})</span>\n </span>\n </ng-template>\n <ul>\n @for (item of hiddenMenus; track item.App_Menu_Id; let j = $index) {\n <li\n nz-menu-item\n class=\"header-overflow-item-animate\"\n [style.--j]=\"j\"\n [nzSelected]=\"currentHeaderId === item.App_Menu_Id\"\n [class.is-header-active]=\"currentHeaderId === item.App_Menu_Id\"\n (click)=\"handleValueChangeHeaderMenu(item)\"\n >\n <nz-icon *ngIf=\"item.Icon\" [nzType]=\"item.Icon\"></nz-icon><box [width]=\"4\"></box>{{ item.Name }}\n </li>\n }\n </ul>\n </li>\n }\n </ul>\n </div>\n\n <div style=\"display: flex; align-items: center; flex-shrink: 0; gap: 8px; padding-right: 8px\">\n <!-- <header-search></header-search> -->\n <app-notification-center></app-notification-center>\n <header-user></header-user>\n </div>\n </div>\n </nz-header>\n\n <!-- ===================================================================== -->\n <!-- 2. BODY LAYOUT (DOCKED SIDER + EDGE HANDLE + MAIN WORKSPACE) -->\n <!-- ===================================================================== -->\n <nz-layout class=\"body-layout\">\n <nz-sider\n [class.hide-side-menu]=\"LayoutComponent.noShowSideMenu\"\n [class.is-collapsed]=\"isCollapsed\"\n class=\"menu-sidebar\"\n nzCollapsible\n [nzWidth]=\"siderWidth\"\n [nzCollapsedWidth]=\"0\"\n [(nzCollapsed)]=\"isCollapsed\"\n [nzTrigger]=\"null\"\n [nzTheme]=\"'light'\"\n >\n <!-- Khung c\u1ED1 \u0111\u1ECBnh chi\u1EC1u r\u1ED9ng b\u00EAn trong gi\u00FAp khi Sider tr\u01B0\u1EE3t \u0111\u00F3ng/m\u1EDF kh\u00F4ng b\u1ECB \u00E9p ch\u1EEF xu\u1ED1ng d\u00F2ng -->\n <div class=\"sider-inner-shell\" [style.width]=\"siderWidthStorage\" [style.min-width]=\"siderWidthStorage\">\n <div class=\"menu-wapper\">\n <!-- Thanh c\u00F4ng c\u1EE5 t\u00ECm ki\u1EBFm & thu g\u1ECDn Side Menu chu\u1EA9n Enterprise (T\u00E1ch bi\u1EC7t ho\u00E0n to\u00E0n kh\u1ECFi Footer) -->\n <div class=\"sider-search-bar\">\n <nz-input-group\n [nzPrefix]=\"siderSearchPrefixTpl\"\n [nzSuffix]=\"siderSuffixTpl\"\n nzSize=\"small\"\n class=\"sider-search-input\"\n >\n <input nz-input placeholder=\"T\u00ECm nhanh menu...\" [(ngModel)]=\"searchValue\" />\n </nz-input-group>\n <ng-template #siderSearchPrefixTpl>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8; font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #siderSuffixTpl>\n @if (searchValue) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8; font-size: 12px\"\n (click)=\"searchValue = ''\"\n ></nz-icon>\n }\n </ng-template>\n </div>\n @if (MENU_TYPE == \"tree\") {\n <div class=\"nz-tree-wapper\">\n <nz-tree\n [nzData]=\"nodes\"\n [nzSearchValue]=\"searchValue\"\n [nzHideUnMatched]=\"true\"\n [nzShowLine]=\"true\"\n [nzSelectedKeys]=\"selectedKeys\"\n [nzExpandedKeys]=\"expandedKeys\"\n (nzClick)=\"nzEvent($event)\"\n ></nz-tree>\n </div>\n } @else {\n <div class=\"nz-tree-wapper\">\n <side-menu\n [filteredLstMenu]=\"filteredLstMenu\"\n [moduleId]=\"currentModuleId\"\n [headerMenuId]=\"currentHeaderId\"\n [activeMenuId]=\"activeMenuId\"\n [activeParentIds]=\"activeParentIds\"\n ></side-menu>\n </div>\n }\n </div>\n\n <!-- Footer \u0111\u00E1y c\u1EE7a Sider: Ch\u1EC9 hi\u1EC3n th\u1ECB t\u00EAn ph\u00E2n h\u1EC7 c\u0103n gi\u1EEFa s\u1EA1ch s\u1EBD, kh\u00F4ng c\u00F2n n\u00FAt \u0111\u00E8 l\u00EAn ch\u1EEF -->\n <div class=\"sider-footer\">\n <span class=\"footer-subtext text-italic text-truncate\">\n {{ SYSTEM_SUB_NAME_LEFT || \"-- o0o --\" }}\n </span>\n </div>\n </div>\n </nz-sider>\n\n <!-- =================================================================== -->\n <!-- ENTERPRISE EDGE QUICK DOCK (LU\u00D4N HI\u1EC2N TH\u1ECA KHI THU G\u1ECCN HO\u1EB6C \u1EA8N SIDER)-->\n <!-- =================================================================== -->\n @if (!isCollapsed && !LayoutComponent.noShowSideMenu) {\n <button\n type=\"button\"\n class=\"sider-edge-collapse-btn\"\n [class.is-dragging]=\"isEdgeDockDragging\"\n [style.left]=\"siderWidthStorage\"\n [style.top.px]=\"edgeDockTop\"\n (pointerdown)=\"onEdgeDockPointerDown($event)\"\n (click)=\"onEdgeDockAction($event, 'collapse')\"\n nz-tooltip\n [nzTooltipTitle]=\"isEdgeDockDragging ? null : '\u1EA8n menu'\"\n nzTooltipPlacement=\"right\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"left\"></nz-icon>\n </button>\n } @else {\n <div\n class=\"sider-edge-collapsed-dock\"\n [class.is-dragging]=\"isEdgeDockDragging\"\n [class.is-drawer-open]=\"visibleMenuDrawer\"\n [style.top.px]=\"edgeDockTop\"\n (pointerdown)=\"onEdgeDockPointerDown($event)\"\n >\n <!-- \u0110\u1EA7u n\u1EAFm k\u00E9o tr\u01B0\u1EE3t d\u1ECDc (Double-click \u0111\u1EC3 \u0111\u01B0a v\u1EC1 v\u1ECB tr\u00ED m\u1EB7c \u0111\u1ECBnh) -->\n <div\n class=\"edge-dock-drag-handle\"\n (dblclick)=\"resetEdgeDockPosition($event)\"\n nz-tooltip\n [nzTooltipTitle]=\"isEdgeDockDragging ? null : '\u0110\u1ED5i v\u1ECB tr\u00ED \u2022 Nh\u1EA5p \u0111\u00FAp \u0111\u1EC3 \u0111\u1EB7t l\u1EA1i'\"\n nzTooltipPlacement=\"right\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <span class=\"grip-dots\"></span>\n </div>\n\n <!-- 1. N\u00FAt V\u1EC1 trang ch\u1EE7 (Chuy\u1EC3n ph\u00E2n h\u1EC7 / Trang ch\u1EE7) -->\n <button\n type=\"button\"\n class=\"edge-dock-btn home-action\"\n (click)=\"onEdgeDockAction($event, 'home')\"\n nz-tooltip\n [nzTooltipTitle]=\"isEdgeDockDragging ? null : 'V\u1EC1 trang ch\u1EE7'\"\n nzTooltipPlacement=\"right\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"home\" nzTheme=\"outline\"></nz-icon>\n </button>\n\n <div class=\"edge-dock-divider\"></div>\n\n <!-- 2. N\u00FAt M\u1EDF nhanh Menu n\u1ED5i (Quick Peek Drawer - N\u1ED5i b\u1EADt v\u1EDBi m\u00E0u Primary #1677ff) -->\n <button\n type=\"button\"\n class=\"edge-dock-btn primary-peek\"\n [class.is-active]=\"visibleMenuDrawer\"\n (click)=\"onEdgeDockAction($event, 'peek')\"\n nz-tooltip\n [nzTooltipTitle]=\"isEdgeDockDragging ? null : 'M\u1EDF nhanh Menu'\"\n nzTooltipPlacement=\"right\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"menu\" nzTheme=\"outline\"></nz-icon>\n </button>\n\n <!-- 3. N\u00FAt Ghim c\u1ED1 \u0111\u1ECBnh Menu v\u00E0o khung l\u00E0m vi\u1EC7c -->\n <button\n type=\"button\"\n class=\"edge-dock-btn pin-action\"\n (click)=\"onEdgeDockAction($event, 'pin')\"\n nz-tooltip\n [nzTooltipTitle]=\"isEdgeDockDragging ? null : 'Hi\u1EC7n Menu'\"\n nzTooltipPlacement=\"right\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"pushpin\" nzTheme=\"outline\" class=\"pin-icon-default\"></nz-icon>\n <nz-icon nzType=\"right\" nzTheme=\"outline\" class=\"pin-icon-hover\"></nz-icon>\n </button>\n </div>\n }\n\n <nz-layout class=\"main-layout\">\n <nz-content class=\"content\">\n <div class=\"inner-content\">\n @if (!LayoutComponent.noShowBreadcrumb) {\n <app-breadcrumb [@fadeInOut] nz-col nzFlex=\"auto\"></app-breadcrumb>\n }\n <router-outlet></router-outlet>\n </div>\n <div nz-row class=\"content-footer-bar\">\n <div nz-col nzFlex=\"auto\" class=\"content-footer text-italic\">\n {{ SYSTEM_SUB_NAME_RIGHT || \"-- o0o --\" }}\n </div>\n </div>\n </nz-content>\n </nz-layout>\n </nz-layout>\n</nz-layout>\n\n<!-- ========================================================================= -->\n<!-- 3. FLOATING SIDE MENU DRAWER (CH\u1EBE \u0110\u1ED8 MENU N\u1ED4I KHI \u0110ANG THU G\u1ECCN SIDER) -->\n<!-- ========================================================================= -->\n<nz-drawer\n [nzWrapClassName]=\"'same-theme-color menu-drawer'\"\n [nzWidth]=\"320\"\n [nzClosable]=\"false\"\n [(nzVisible)]=\"visibleMenuDrawer\"\n [nzMaskClosable]=\"true\"\n nzPlacement=\"left\"\n [nzBodyStyle]=\"{ padding: '0', height: '100%', overflow: 'hidden', display: 'flex', flexDirection: 'column' }\"\n (nzOnClose)=\"closeMenuDrawer()\"\n>\n <ng-container *nzDrawerContent>\n <div class=\"drawer-sider-shell\">\n <!-- Header \u0111\u1ED3ng b\u1ED9 chi\u1EC1u cao 45px v\u1EDBi thanh Header ch\u00EDnh -->\n <div class=\"drawer-sider-header\">\n <div class=\"drawer-sider-brand\" (click)=\"gotoSelectModule(); closeMenuDrawer()\">\n <nz-icon nzType=\"appstore\" style=\"font-size: 16px\"></nz-icon>\n <span class=\"drawer-sider-title text-truncate\">{{ SYSTEM_NAME || \"Danh m\u1EE5c ch\u1EE9c n\u0103ng\" }}</span>\n </div>\n <div class=\"drawer-sider-actions\">\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n class=\"drawer-header-btn\"\n (click)=\"pinSidebarFromDrawer()\"\n >\n <nz-icon nzType=\"pushpin\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n class=\"drawer-header-btn\"\n (click)=\"closeMenuDrawer()\"\n >\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </div>\n\n <!-- Thanh t\u00ECm ki\u1EBFm & n\u00FAt ghim c\u1ED1 \u0111\u1ECBnh d\u01B0\u1EDBi \u0111\u00E1y Drawer -->\n <div class=\"sider-search-bar in-drawer\">\n <nz-input-group\n [nzPrefix]=\"drawerSearchPrefixTpl\"\n [nzSuffix]=\"drawerSuffixTpl\"\n nzSize=\"small\"\n class=\"sider-search-input\"\n >\n <input nz-input placeholder=\"T\u00ECm nhanh menu...\" [(ngModel)]=\"searchValue\" />\n </nz-input-group>\n <ng-template #drawerSearchPrefixTpl>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8; font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #drawerSuffixTpl>\n @if (searchValue) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8; font-size: 12px\"\n (click)=\"searchValue = ''\"\n ></nz-icon>\n }\n </ng-template>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n class=\"sider-toggle-btn\"\n (click)=\"pinSidebarFromDrawer()\"\n nz-tooltip\n nzTooltipTitle=\"Ghim c\u1ED1 \u0111\u1ECBnh thanh Menu\"\n >\n <nz-icon nzType=\"menu-unfold\"></nz-icon>\n </button>\n </div>\n\n <!-- Danh s\u00E1ch Menu cu\u1ED9n \u0111\u1ED9c l\u1EADp (1 thanh cu\u1ED9n duy nh\u1EA5t, kh\u00F4ng c\u1EAFt m\u1EE5c cu\u1ED1i) -->\n @if (MENU_TYPE == \"tree\") {\n <div class=\"nz-tree-wapper in-drawer\">\n <nz-tree\n [nzData]=\"nodes\"\n [nzSearchValue]=\"searchValue\"\n [nzHideUnMatched]=\"true\"\n [nzShowLine]=\"true\"\n [nzSelectedKeys]=\"selectedKeys\"\n [nzExpandedKeys]=\"expandedKeys\"\n (nzClick)=\"nzEvent($event)\"\n ></nz-tree>\n </div>\n } @else {\n <div class=\"nz-tree-wapper in-drawer\">\n <side-menu\n [filteredLstMenu]=\"filteredLstMenu\"\n [moduleId]=\"currentModuleId\"\n [headerMenuId]=\"currentHeaderId\"\n [activeMenuId]=\"activeMenuId\"\n [activeParentIds]=\"activeParentIds\"\n (onClickToMenu)=\"visibleMenuDrawer = false\"\n ></side-menu>\n </div>\n }\n </div>\n </ng-container>\n</nz-drawer>\n<app-global-spinner></app-global-spinner>\n", styles: ["@charset \"UTF-8\";:host{display:flex;width:100%;height:100%;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg-sidebar: #ffffff;--bg-content: var(--surface-app, #f8fafc);--bg-inner: var(--surface-card, #ffffff);--border-color: var(--border-default, #e2e8f0);--text-main: var(--text-primary, #1e293b)}:host-context(.dark-theme),:host(.dark-theme){--theme-color: #1f242d !important;--theme-text-color: #e2e8f0 !important;--bg-sidebar: #161a22;--bg-content: #11141a;--bg-inner: #1a1e26;--border-color: #303642;--text-main: #e2e8f0}.app-layout{display:flex;flex-direction:column;width:100%;height:100vh;overflow:hidden}.app-header{position:fixed;top:0;left:0;width:100%;height:var(--app-header-height);background:var(--theme-color);color:var(--theme-text-color);box-shadow:0 1px 4px #0015291f;z-index:1000;display:flex;align-items:center;padding:0;border-bottom:1px solid var(--border-color);transition:background-color .25s ease}.header-content{width:100%;flex-wrap:nowrap!important}.header-brand-zone{interpolate-size:allow-keywords;height:var(--app-header-height);width:var(--sider-width, 280px);min-width:var(--sider-width, 280px);max-width:var(--sider-width, 280px);display:flex;align-items:center;gap:6px;padding:0 12px 0 8px;color:var(--theme-text-color);flex-shrink:0;overflow:hidden;border-right:1px solid rgba(255,255,255,.08);transition:width .28s cubic-bezier(.22,1,.36,1),min-width .28s cubic-bezier(.22,1,.36,1),max-width .28s cubic-bezier(.22,1,.36,1),padding .28s cubic-bezier(.22,1,.36,1),background-color .25s ease,border-color .25s ease;will-change:width,min-width,max-width}.header-brand-zone.is-collapsed{width:auto;min-width:156px;max-width:240px;padding-right:14px;background-color:#ffffff08;border-right-color:#ffffff24}.header-sider-toggle-btn,.header-sider-peek-btn{color:var(--theme-text-color)!important;width:30px;height:30px;padding:0;border-radius:var(--radius-xs, 6px);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;opacity:.88;transition:background-color .2s ease,opacity .2s ease,transform .25s cubic-bezier(.34,1.56,.64,1)}.header-sider-toggle-btn:hover,.header-sider-peek-btn:hover{opacity:1;background-color:#ffffff24!important;transform:translateY(-1px)}.header-sider-toggle-btn:active,.header-sider-peek-btn:active{transform:scale(.9);transition-duration:.1s}.header-sider-toggle-btn .toggle-menu-icon{transition:transform .32s cubic-bezier(.34,1.56,.64,1)}.header-sider-toggle-btn.is-collapsed .toggle-menu-icon{transform:rotate(180deg) scale(1.05)}.header-sider-peek-btn.peek-quick-btn{width:0!important;min-width:0!important;margin-inline:-3px;opacity:0;overflow:hidden;pointer-events:none;transform:scale(.5) translate(-8px);transition:width .26s cubic-bezier(.22,1,.36,1),min-width .26s cubic-bezier(.22,1,.36,1),margin-inline .26s cubic-bezier(.22,1,.36,1),opacity .2s ease,transform .28s cubic-bezier(.34,1.56,.64,1),background-color .2s ease}.header-sider-peek-btn.peek-quick-btn.is-visible{width:30px!important;min-width:30px!important;margin-inline:0;opacity:.88;pointer-events:auto;transform:scale(1) translate(0)}.header-sider-peek-btn.peek-quick-btn.is-visible:hover{opacity:1;transform:translateY(-1px) scale(1.05)}.header-sider-peek-btn.peek-quick-btn.is-visible:active{transform:scale(.9)}.header-logo-inner{line-height:var(--app-header-height);height:var(--app-header-height);cursor:pointer;flex:1;min-width:0;padding-inline:2px;transition:transform .25s cubic-bezier(.22,1,.36,1)}.header-logo-inner:hover{transform:translate(2px)}.header-logo-inner:hover .system-name-title{color:#fff;text-shadow:0 0 12px rgba(255,255,255,.25)}.system-name-title{color:#f5f5f5;margin-bottom:0;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .2s ease,text-shadow .2s ease}.system-name-fallback{color:#f5f5f5;font-weight:600;white-space:nowrap}.body-layout{position:relative;display:flex;flex:1;margin-top:var(--app-header-height);height:calc(100vh - var(--app-header-height));overflow:hidden}.menu-sidebar{background:var(--bg-sidebar)!important;border-right:1px solid var(--border-color);overflow:hidden!important;transition:width .24s cubic-bezier(.25,.8,.25,1),min-width .24s cubic-bezier(.25,.8,.25,1),max-width .24s cubic-bezier(.25,.8,.25,1),flex .24s cubic-bezier(.25,.8,.25,1)!important;height:calc(100vh - var(--app-header-height))}.menu-sidebar.is-collapsed,.menu-sidebar.hide-side-menu{border-right:none!important}.menu-sidebar.hide-side-menu{flex:0 0 0px!important;max-width:0px!important;min-width:0px!important;width:0px!important}:host ::ng-deep .menu-sidebar>.ant-layout-sider-children{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.sider-inner-shell{display:flex;flex-direction:column;height:100%;overflow:hidden;background:var(--bg-sidebar)}.menu-wapper{display:flex;flex-direction:column;flex:1 1 0%;min-height:0;overflow:hidden}.nz-tree-wapper{flex:1 1 0%;min-height:0;overflow-y:auto;overflow-x:hidden;padding:6px 0}.nz-tree-wapper.in-drawer{flex:1 1 0%;min-height:0;height:auto!important;overflow-y:auto;overflow-x:hidden;padding:6px 0}.sider-search-bar{display:flex;align-items:center;gap:6px;padding:8px 10px;border-top:1px solid var(--border-color, #e2e8f0);background:var(--surface-subtle, #f8fafc);flex-shrink:0}.sider-search-bar .sider-search-input{flex:1;min-width:0}.sider-search-bar .sider-toggle-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:24px;padding:0;border-radius:var(--radius-xs, 4px);color:var(--text-secondary, #475569);border-color:var(--border-default, #cbd5e1)}.sider-search-bar .sider-toggle-btn:hover{color:var(--primary-color, #1677ff);border-color:var(--primary-color, #1677ff);background:var(--primary-bg-subtle, #eff6ff)}.sider-edge-collapse-btn{--dock-primary: var(--primary-color, #1677ff);position:absolute;top:68px;transform:translate(-68%) scale(.92);z-index:48;width:24px;height:24px;border-radius:999px;border:1.5px solid rgba(22,119,255,.45);background:#ffffffd9;backdrop-filter:blur(12px) saturate(180%);-webkit-backdrop-filter:blur(12px) saturate(180%);color:var(--dock-primary);box-shadow:0 4px 12px #1677ff29,0 1px 3px #0f172a14,inset 0 1px #ffffffe6;display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:11px;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:none;opacity:.78;transition:opacity .24s ease,transform .28s cubic-bezier(.22,1,.36,1),color .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .24s ease}.sider-edge-collapse-btn:hover{opacity:1;transform:translate(-50%) scale(1.14);color:#fff;border-color:var(--dock-primary);background:var(--dock-primary);box-shadow:0 6px 16px #1677ff61,0 2px 6px #0f172a1f}.sider-edge-collapse-btn.is-dragging{opacity:1;cursor:grabbing!important;transform:translate(-50%) scale(1.18);color:#fff;background:var(--dock-primary);border-color:var(--dock-primary);box-shadow:0 8px 22px #1677ff73;transition:none}.sider-edge-collapsed-dock{--dock-primary: var(--primary-color, #1677ff);position:absolute;top:68px;left:0;z-index:48;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 6px 7px 5px;background:linear-gradient(155deg,#ffffffdb,#f0f7ffd1);backdrop-filter:blur(16px) saturate(190%);-webkit-backdrop-filter:blur(16px) saturate(190%);border:1.5px solid rgba(22,119,255,.42);border-left:none;border-radius:0 13px 13px 0;box-shadow:4px 8px 24px -2px #1677ff2e,2px 3px 8px -1px #0f172a14,inset 0 1px #ffffffeb;-webkit-user-select:none;user-select:none;touch-action:none;opacity:.82;transform:translate(-62%);will-change:transform,opacity;transition:opacity .26s cubic-bezier(.22,1,.36,1),transform .3s cubic-bezier(.22,1,.36,1),background .25s ease,border-color .25s ease,box-shadow .25s ease}.sider-edge-collapsed-dock:after{content:\"\";position:absolute;top:-6px;bottom:-6px;right:-12px;width:14px;background:transparent;pointer-events:auto}.sider-edge-collapsed-dock:before{content:\"\";position:absolute;right:2px;top:12px;bottom:12px;width:3px;border-radius:4px;background:linear-gradient(180deg,#38bdf8 0%,var(--dock-primary) 50%,#1d4ed8 100%);box-shadow:0 0 6px #1677ff73;opacity:.9;transition:opacity .25s ease,transform .25s ease,left .25s ease,right .25s ease,top .25s ease,bottom .25s ease}.sider-edge-collapsed-dock:hover,.sider-edge-collapsed-dock:focus-within,.sider-edge-collapsed-dock.is-drawer-open{opacity:1;transform:translate(0);background:linear-gradient(155deg,#fffffff2,#ebf5ffeb);border-color:#1677ffa6;box-shadow:6px 12px 28px -3px #1677ff42,2px 4px 12px -2px #0f172a1a,inset 0 1px #fff}.sider-edge-collapsed-dock:hover:before,.sider-edge-collapsed-dock:focus-within:before,.sider-edge-collapsed-dock.is-drawer-open:before{inset:6px auto 6px 0;border-radius:0 4px 4px 0;opacity:1}.sider-edge-collapsed-dock.is-dragging{opacity:1;transform:translate(2px) scale(1.04);background:#fffffff5;border-color:var(--dock-primary);box-shadow:8px 16px 32px -4px #1677ff57,0 0 0 3px #1677ff33;cursor:grabbing!important;transition:background .15s ease,box-shadow .15s ease}.sider-edge-collapsed-dock.is-dragging:before{inset:6px auto 6px 0;border-radius:0 4px 4px 0;opacity:1}.sider-edge-collapsed-dock.is-dragging *{cursor:grabbing!important}.sider-edge-collapsed-dock .edge-dock-drag-handle{width:100%;height:14px;display:flex;align-items:center;justify-content:center;cursor:grab;border-radius:5px;padding:2px 0;transition:background-color .18s ease}.sider-edge-collapsed-dock .edge-dock-drag-handle .grip-dots{width:12px;height:5px;background-image:radial-gradient(circle,rgba(22,119,255,.65) 1.3px,transparent 1.45px);background-size:4px 3px;background-repeat:repeat;transition:transform .2s ease,background-image .2s ease}.sider-edge-collapsed-dock .edge-dock-drag-handle:hover{background:#1677ff1f}.sider-edge-collapsed-dock .edge-dock-drag-handle:hover .grip-dots{background-image:radial-gradient(circle,var(--dock-primary) 1.4px,transparent 1.5px);transform:scaleX(1.1)}.sider-edge-collapsed-dock .edge-dock-drag-handle:active{cursor:grabbing}.sider-edge-collapsed-dock .edge-dock-divider{width:20px;height:1px;margin:1px 0;background:linear-gradient(90deg,#1677ff14,#1677ff6b,#1677ff14)}.sider-edge-collapsed-dock .edge-dock-btn{position:relative;width:30px;height:30px;border-radius:8px;border:1px solid rgba(22,119,255,.22);background:#1677ff0f;color:var(--dock-primary);display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:14.5px;cursor:pointer;transition:background-color .2s cubic-bezier(.22,1,.36,1),color .2s ease,border-color .2s ease,transform .22s cubic-bezier(.34,1.56,.64,1),box-shadow .2s ease}.sider-edge-collapsed-dock .edge-dock-btn .anticon{transition:transform .22s cubic-bezier(.34,1.56,.64,1)}.sider-edge-collapsed-dock .edge-dock-btn:hover{background:#1677ff29;border-color:var(--dock-primary);color:var(--dock-primary);transform:translate(1px) scale(1.07);box-shadow:0 3px 10px #1677ff38}.sider-edge-collapsed-dock .edge-dock-btn:active{transform:scale(.92)}.sider-edge-collapsed-dock .edge-dock-btn.primary-peek{background:linear-gradient(135deg,var(--dock-primary) 0%,#0958d9 100%);border-color:#1677ffe6;color:#fff;box-shadow:0 3px 10px #1677ff57}.sider-edge-collapsed-dock .edge-dock-btn.primary-peek:hover,.sider-edge-collapsed-dock .edge-dock-btn.primary-peek.is-active{background:linear-gradient(135deg,#4096ff 0%,var(--dock-primary) 100%);border-color:#fff;color:#fff;box-shadow:0 5px 14px #1677ff7a}.sider-edge-collapsed-dock .edge-dock-btn.home-action:hover .anticon{transform:translateY(-1px) scale(1.1)}.sider-edge-collapsed-dock .edge-dock-btn.pin-action .pin-icon-default{opacity:1;transform:rotate(0) scale(1);transition:opacity .18s ease,transform .22s cubic-bezier(.34,1.56,.64,1)}.sider-edge-collapsed-dock .edge-dock-btn.pin-action .pin-icon-hover{position:absolute;opacity:0;transform:translate(-4px) scale(.8);transition:opacity .18s ease,transform .22s cubic-bezier(.34,1.56,.64,1)}.sider-edge-collapsed-dock .edge-dock-btn.pin-action:hover .pin-icon-default{opacity:0;transform:rotate(35deg) scale(.75)}.sider-edge-collapsed-dock .edge-dock-btn.pin-action:hover .pin-icon-hover{opacity:1;transform:translate(0) scale(1.08)}.drawer-sider-shell{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden;background:var(--theme-menu-color, var(--surface-card, #ffffff))}.drawer-sider-header{display:flex;align-items:center;justify-content:space-between;gap:8px;height:var(--app-header-height, 45px);min-height:var(--app-header-height, 45px);padding:0 12px;background:var(--theme-color, #001529);color:var(--theme-text-color, #ffffff);border-bottom:1px solid var(--border-color, #e2e8f0);flex-shrink:0}.drawer-sider-header .drawer-sider-brand{display:flex;align-items:center;gap:8px;min-width:0;flex:1;cursor:pointer;font-weight:700;font-size:14px;color:var(--theme-text-color, #ffffff)}.drawer-sider-header .drawer-sider-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.drawer-sider-header .drawer-header-btn{color:var(--theme-text-color, #ffffff)!important;opacity:.85}.drawer-sider-header .drawer-header-btn:hover{opacity:1;background:#ffffff24!important}.main-layout{display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden}.content{flex:1;background:var(--bg-content);overflow-x:hidden;overflow-y:auto;height:100%;display:flex;flex-direction:column}.inner-content{background:var(--bg-inner);color:var(--text-main);flex:1 0 auto;min-height:calc(100% - var(--app-footer-height));padding:8px 10px;box-sizing:border-box}.content-footer-bar{height:var(--app-footer-height);flex-shrink:0}.content-footer{background:var(--theme-color);color:var(--theme-text-color);display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px;height:var(--app-footer-height)}.sider-footer{background:var(--theme-color);color:var(--theme-text-color);height:var(--app-footer-height);min-height:var(--app-footer-height);display:flex;align-items:center;justify-content:center;padding:0 10px;font-size:10.5px;flex-shrink:0;overflow:hidden;border-right:1px solid rgba(255,255,255,.08)}.sider-footer .footer-subtext{color:#ffffffd9;text-align:center;width:100%}.header-overflow-trigger{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600}::ng-deep .menu-wapper .anticon-file{display:none}:host ::ng-deep .ant-back-top{right:30px;bottom:40px}::ng-deep .same-theme-color .ant-drawer-content{background:var(--theme-menu-color, var(--surface-card, #ffffff))}::ng-deep .menu-drawer .ant-drawer-body{padding:0!important;display:flex!important;flex-direction:column!important;height:100%!important;overflow:hidden!important}::ng-deep .ant-breadcrumb-link{cursor:pointer}::ng-deep .breadcrumb-header .ant-breadcrumb-link,::ng-deep .breadcrumb-header .ant-breadcrumb-separator{color:var(--theme-text-color);cursor:pointer}::ng-deep .header-menu .ant-segmented-item:not(.ant-segmented-item-selected){color:var(--theme-text-color)}::ng-deep .header-menu .ant-segmented-item{border-left:1px solid rgba(255,255,255,.15)}::ng-deep .header-menu .ant-segmented-item:last-child{border-right:1px solid rgba(255,255,255,.15)}@keyframes headerMenuItemEntrance{0%{opacity:0;transform:translateY(-10px) scale(.95);filter:blur(3px)}to{opacity:var(--header-item-opacity, .82);transform:translateY(0) scale(1);filter:blur(0)}}@keyframes headerActiveBarReveal{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes headerOverflowItemEntrance{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}::ng-deep .header-menu .ant-menu-horizontal{background-color:transparent!important;border-bottom:none!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu{--header-item-opacity: .82;color:var(--theme-text-color)!important;opacity:var(--header-item-opacity);font-weight:600;padding-inline:14px!important;transition:background-color .2s cubic-bezier(.22,1,.36,1),opacity .2s ease,color .2s ease!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item.header-menu-item-animate,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu.header-menu-item-animate{animation:headerMenuItemEntrance .45s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--i, 0) * 45ms + 40ms);will-change:transform,opacity,filter}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item .anticon,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu .anticon{transition:transform .25s cubic-bezier(.34,1.56,.64,1)}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:hover .anticon,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:hover .anticon{transform:translateY(-1px) scale(1.1)}::ng-deep .header-menu .ant-menu-submenu-title .anticon{color:var(--theme-text-color)!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:hover,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:hover,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item-selected,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item.is-header-active,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-open,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-selected,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu.is-header-active{--header-item-opacity: 1;color:#fff!important;opacity:1;background-color:#ffffff29!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:after{inset-inline:8px!important;transform:scaleX(.35);transform-origin:center;transition:transform .28s cubic-bezier(.22,1,.36,1),border-color .25s ease!important}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item-selected:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item.is-header-active:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu-selected:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu.is-header-active:after{border-bottom:3px solid #38bdf8!important;inset-inline:8px!important;transform:scaleX(1);animation:headerActiveBarReveal .4s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--i, 0) * 45ms + .16s)}::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-item:hover:after,::ng-deep .header-menu .ant-menu-horizontal>.ant-menu-submenu:hover:after{border-bottom-color:#38bdf8bf!important;transform:scaleX(1)}::ng-deep .ant-menu-submenu-popup .header-overflow-item-animate{animation:headerOverflowItemEntrance .3s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--j, 0) * 35ms)}@media (prefers-reduced-motion: reduce){::ng-deep .header-menu .header-menu-item-animate,::ng-deep .header-menu .header-menu-item-animate:after,::ng-deep .ant-menu-submenu-popup .header-overflow-item-animate{animation:none!important}}:host-context(.dark-theme) .content-footer,:host-context(.dark-theme) .sider-footer{background-color:var(--bg-sidebar);border-top:1px solid var(--border-color)}:host-context(.dark-theme) .sider-search-bar{background-color:var(--bg-sidebar);border-top-color:var(--border-color)}:host-context(.dark-theme) .sider-edge-collapse-btn{background:#1a1e26c2;border-color:#4755698c;color:var(--text-main);box-shadow:0 4px 14px #00000073,inset 0 1px #ffffff14}:host-context(.dark-theme) .sider-edge-collapse-btn:hover{background:#1e293bf0;border-color:#38bdf8;color:#38bdf8}:host-context(.dark-theme) .sider-edge-collapsed-dock{background:#161a22b8;border-color:#47556980;box-shadow:6px 10px 28px #0000007a,inset 0 1px #ffffff12}:host-context(.dark-theme) .sider-edge-collapsed-dock:hover,:host-context(.dark-theme) .sider-edge-collapsed-dock:focus-within,:host-context(.dark-theme) .sider-edge-collapsed-dock.is-drawer-open{background:#1a1e26e6;border-color:#38bdf873}:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-drag-handle .grip-dots{background-image:radial-gradient(circle,rgba(148,163,184,.55) 1.25px,transparent 1.35px)}:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-btn{color:#cbd5e1}:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-btn:hover{background:#38bdf826;border-color:#38bdf84d;color:#38bdf8}:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-btn.primary-peek{color:#38bdf8;background:#38bdf81f;border-color:#38bdf83d}:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-btn.primary-peek:hover,:host-context(.dark-theme) .sider-edge-collapsed-dock .edge-dock-btn.primary-peek.is-active{background:linear-gradient(135deg,#0284c7,#2563eb);color:#fff}:host-context(.dark-theme) ::ng-deep .menu-sidebar .ant-tree,:host-context(.dark-theme) ::ng-deep .menu-drawer .ant-tree{background:transparent;color:var(--text-main)}:host-context(.dark-theme) ::ng-deep .ant-tree-node-content-wrapper:hover{background-color:#ffffff14!important}:host-context(.dark-theme) ::ng-deep .ant-tree-node-selected{background-color:#3b82f638!important;color:#fff!important}:host-context(.dark-theme) ::ng-deep .sider-search-bar .ant-input,:host-context(.dark-theme) ::ng-deep .sider-search-bar .ant-input-affix-wrapper{background-color:var(--bg-content);border-color:var(--border-color);color:var(--text-main)}:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-link,:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-separator{color:#94a3b8!important}:host-context(.dark-theme) ::ng-deep .breadcrumb-header .ant-breadcrumb-link:hover{color:var(--text-main)!important}\n"] }]
14830
14905
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { menuContainer: [{
14831
14906
  type: ViewChild,
14832
14907
  args: ['menuContainer']
@@ -14926,7 +15001,7 @@ class LoginComponent extends BaseComponent {
14926
15001
  .getFileVersion('LOGIN_BACKGROUND')
14927
15002
  .pipe(map$1((res) => `${AppGlobals.apiEndpoint}/api/file/image?code=LOGIN_BACKGROUND&v=${res || ''}`));
14928
15003
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: LoginComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
14929
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: LoginComponent, isStandalone: true, selector: "login", usesInheritance: true, ngImport: i0, template: "<nz-spin [nzSpinning]=\"isLoading\">\n <div nz-row nzJustify=\"center\" class=\"login\">\n <div class=\"form-container\">\n <form nz-flex nzVertical=\"true\" nz-form [formGroup]=\"loginForm\" class=\"login-form\" (ngSubmit)=\"dologin()\">\n <div>\n <div style=\"text-align: center\">\n <img *ngIf=\"logoUrl$ | async as url\" width=\"250px\" [src]=\"url\" hideIfError />\n </div>\n <div class=\"form-field\" style=\"text-align: center; margin-bottom: 20px\">\n <h3 style=\"font-weight: bold; font-size: 20px\">{{ SYSTEM_NAME_LOGIN }}</h3>\n </div>\n </div>\n\n <div nz-row [nzJustify]=\"'center'\">\n <div nz-col nzSm=\"24\" nzMd=\"19\">\n <div nz-flex nzVertical=\"true\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"user\">\n <input type=\"text\" nz-input formControlName=\"username\" placeholder=\"{{ 'USERNAME' | translate }}\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n\n <nz-form-item>\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group\n nzPrefixIcon=\"lock\"\n [nzSuffix]=\"visible ? suffixTemplateHiddenPassword : suffixTemplateShowPassword\"\n >\n <input\n type=\"{{ passwordType }}\"\n nz-input\n formControlName=\"password\"\n placeholder=\"{{ 'PASSWORD' | translate }}\"\n />\n </nz-input-group>\n </nz-form-control>\n <ng-template #suffixTemplateShowPassword>\n <nz-icon\n nzType=\"eye\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'SHOW' | translate }}\"\n nzTooltipPlacement=\"right\"\n (click)=\"visible = !visible; passwordType = 'text'\"\n />\n </ng-template>\n <ng-template #suffixTemplateHiddenPassword>\n <nz-icon\n nzType=\"eye-invisible\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'HIDDEN' | translate }}\"\n nzTooltipPlacement=\"right\"\n (click)=\"visible = !visible; passwordType = 'password'\"\n />\n </ng-template>\n </nz-form-item>\n\n @if (isOneUserMultiOrgs) {\n <nz-form-item class=\"org-select\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"cluster\" nzHasFeedback=\"false\">\n <nz-select\n nzShowSearch\n nzAllowClear\n [nzDropdownMatchSelectWidth]=\"false\"\n [nzBorderless]=\"true\"\n [nzSize]=\"'small'\"\n nzPlaceHolder=\"{{ 'ORG' | translate }}\"\n formControlName=\"orgid\"\n class=\"no-error-border\"\n (nzFocus)=\"onFocusOrg()\"\n >\n @for (item of lstOrg; track $index) {\n <nz-option [nzLabel]=\"item.TreeNodeName!\" [nzValue]=\"item.App_Org_Id\"></nz-option>\n }\n </nz-select>\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n }\n\n <div nz-flex nzVertical=\"true\" nzGap=\"4px\">\n <button nz-button [nzType]=\"'primary'\" nzBlock>\n {{ \"LOGIN\" | translate }}\n </button>\n <!-- \n <nz-form-item nzJustify=\"end\">\n <nz-switch formControlName=\"langSwitch\" class=\"nz-switch-both-active-color\" nzCheckedChildren=\"VN\"\n nzUnCheckedChildren=\"EN\" (ngModelChange)=\"changeLanguage($event)\"></nz-switch>\n </nz-form-item> \n --></div>\n </div>\n </div>\n </div>\n </form>\n </div>\n </div>\n</nz-spin>\n\n<img *ngIf=\"bgUrl$ | async as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n", styles: [":host{display:flex;justify-content:center;align-items:center;height:80vh}.form-container{width:clamp(280px,30vw,420px);box-shadow:0 10px 20px 1px #001a2d59;background-color:#fff;padding:16px;border-radius:8px}.bg-image{position:fixed;top:0;left:0;width:100vw;height:100vh;object-fit:cover;object-position:center;z-index:-1;pointer-events:none}::ng-deep .login .ant-select-selector{height:auto!important}::ng-deep .login .ant-input-affix-wrapper,::ng-deep .login .ant-btn{border-radius:8px}.org-select nz-input-group{padding:4px 4px 0 11px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i13$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i13$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "directive", type: HideIfErrorDirective, selector: "img[hideIfError]" }, { kind: "component", type: NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }] });
15004
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: LoginComponent, isStandalone: true, selector: "login", usesInheritance: true, ngImport: i0, template: "<nz-spin [nzSpinning]=\"isLoading\">\n <div nz-row nzJustify=\"center\" class=\"login\">\n <div class=\"form-container\">\n <form nz-flex nzVertical=\"true\" nz-form [formGroup]=\"loginForm\" class=\"login-form\" (ngSubmit)=\"dologin()\">\n <div>\n <div class=\"login-stagger-item logo-wrapper\" style=\"--step: 1\">\n <img *ngIf=\"logoUrl$ | async as url\" width=\"250px\" [src]=\"url\" hideIfError />\n </div>\n <div class=\"form-field login-stagger-item\" style=\"--step: 2; text-align: center; margin-bottom: 20px\">\n <h3 style=\"font-weight: bold; font-size: 20px\">{{ SYSTEM_NAME_LOGIN }}</h3>\n </div>\n </div>\n\n <div nz-row [nzJustify]=\"'center'\">\n <div nz-col nzSm=\"24\" nzMd=\"19\">\n <div nz-flex nzVertical=\"true\">\n <nz-form-item class=\"login-stagger-item\" style=\"--step: 3\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"user\">\n <input type=\"text\" nz-input formControlName=\"username\" placeholder=\"{{ 'USERNAME' | translate }}\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n\n <nz-form-item class=\"login-stagger-item\" style=\"--step: 4\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group\n nzPrefixIcon=\"lock\"\n [nzSuffix]=\"visible ? suffixTemplateHiddenPassword : suffixTemplateShowPassword\"\n >\n <input\n type=\"{{ passwordType }}\"\n nz-input\n formControlName=\"password\"\n placeholder=\"{{ 'PASSWORD' | translate }}\"\n />\n </nz-input-group>\n </nz-form-control>\n <ng-template #suffixTemplateShowPassword>\n <nz-icon\n nzType=\"eye\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'SHOW' | translate }}\"\n nzTooltipPlacement=\"right\"\n (click)=\"visible = !visible; passwordType = 'text'\"\n />\n </ng-template>\n <ng-template #suffixTemplateHiddenPassword>\n <nz-icon\n nzType=\"eye-invisible\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'HIDDEN' | translate }}\"\n nzTooltipPlacement=\"right\"\n (click)=\"visible = !visible; passwordType = 'password'\"\n />\n </ng-template>\n </nz-form-item>\n\n @if (isOneUserMultiOrgs) {\n <nz-form-item class=\"org-select org-dynamic-reveal\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"cluster\" nzHasFeedback=\"false\">\n <nz-select\n nzShowSearch\n nzAllowClear\n [nzDropdownMatchSelectWidth]=\"false\"\n [nzBorderless]=\"true\"\n [nzSize]=\"'small'\"\n nzPlaceHolder=\"{{ 'ORG' | translate }}\"\n formControlName=\"orgid\"\n class=\"no-error-border\"\n (nzFocus)=\"onFocusOrg()\"\n >\n @for (item of lstOrg; track $index) {\n <nz-option [nzLabel]=\"item.TreeNodeName!\" [nzValue]=\"item.App_Org_Id\"></nz-option>\n }\n </nz-select>\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n }\n\n <div nz-flex nzVertical=\"true\" nzGap=\"4px\" class=\"login-stagger-item\" style=\"--step: 5\">\n <button nz-button [nzType]=\"'primary'\" nzBlock class=\"submit-btn\">\n {{ \"LOGIN\" | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </form>\n </div>\n </div>\n</nz-spin>\n\n<img *ngIf=\"bgUrl$ | async as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n", styles: ["@charset \"UTF-8\";:host{display:flex;justify-content:center;align-items:center;height:80vh}@keyframes bgCinemaReveal{0%{opacity:0;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes formContainerEntrance{0%{opacity:0;transform:translateY(28px) scale(.96);filter:blur(8px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes formItemStagger{0%{opacity:0;transform:translateY(14px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}@keyframes orgSelectReveal{0%{opacity:0;transform:translateY(-8px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.form-container{position:relative;z-index:2;width:clamp(280px,30vw,420px);box-shadow:0 15px 35px #001a2d40;background-color:#fff;padding:24px 16px;border-radius:12px;opacity:0;animation:formContainerEntrance .65s cubic-bezier(.16,1,.3,1) .1s forwards;will-change:transform,opacity,filter}.login-stagger-item{opacity:0;animation:formItemStagger .5s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(var(--step, 1) * 65ms + .16s);will-change:transform,opacity,filter}.logo-wrapper{text-align:center}.logo-wrapper img{transition:transform .3s cubic-bezier(.34,1.56,.64,1)}.logo-wrapper img:hover{transform:scale(1.03)}.org-dynamic-reveal{animation:orgSelectReveal .4s cubic-bezier(.16,1,.3,1) backwards}.bg-image{position:fixed;top:0;left:0;width:100vw;height:100vh;object-fit:cover;object-position:center;z-index:-1;pointer-events:none;animation:bgCinemaReveal .9s cubic-bezier(.16,1,.3,1) forwards;will-change:transform,opacity}::ng-deep .login .ant-select-selector{height:auto!important}::ng-deep .login .ant-input-affix-wrapper,::ng-deep .login .ant-btn{border-radius:8px;transition:all .25s cubic-bezier(.22,1,.36,1)}::ng-deep .login .ant-input-affix-wrapper:focus,::ng-deep .login .ant-input-affix-wrapper:focus-within{transform:translateY(-1px);box-shadow:0 4px 12px #1890ff26}::ng-deep .login .submit-btn{position:relative;overflow:hidden;font-weight:600;height:42px;box-shadow:0 4px 12px #1890ff4d}::ng-deep .login .submit-btn:after{content:\"\";position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);transform:skew(-20deg);transition:left .55s cubic-bezier(.22,1,.36,1);pointer-events:none}::ng-deep .login .submit-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px #1890ff73}::ng-deep .login .submit-btn:hover:after{left:130%}::ng-deep .login .submit-btn:active{transform:translateY(0) scale(.98)}.org-select nz-input-group{padding:4px 4px 0 11px}@media (prefers-reduced-motion: reduce){.bg-image,.form-container,.login-stagger-item,.org-dynamic-reveal{animation:none!important;opacity:1!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i13$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i13$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "directive", type: HideIfErrorDirective, selector: "img[hideIfError]" }, { kind: "component", type: NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }] });
14930
15005
  }
14931
15006
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: LoginComponent, decorators: [{
14932
15007
  type: Component,
@@ -14945,7 +15020,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
14945
15020
  NzSelectModule,
14946
15021
  HideIfErrorDirective,
14947
15022
  NzSpinComponent,
14948
- ], template: "<nz-spin [nzSpinning]=\"isLoading\">\n <div nz-row nzJustify=\"center\" class=\"login\">\n <div class=\"form-container\">\n <form nz-flex nzVertical=\"true\" nz-form [formGroup]=\"loginForm\" class=\"login-form\" (ngSubmit)=\"dologin()\">\n <div>\n <div style=\"text-align: center\">\n <img *ngIf=\"logoUrl$ | async as url\" width=\"250px\" [src]=\"url\" hideIfError />\n </div>\n <div class=\"form-field\" style=\"text-align: center; margin-bottom: 20px\">\n <h3 style=\"font-weight: bold; font-size: 20px\">{{ SYSTEM_NAME_LOGIN }}</h3>\n </div>\n </div>\n\n <div nz-row [nzJustify]=\"'center'\">\n <div nz-col nzSm=\"24\" nzMd=\"19\">\n <div nz-flex nzVertical=\"true\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"user\">\n <input type=\"text\" nz-input formControlName=\"username\" placeholder=\"{{ 'USERNAME' | translate }}\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n\n <nz-form-item>\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group\n nzPrefixIcon=\"lock\"\n [nzSuffix]=\"visible ? suffixTemplateHiddenPassword : suffixTemplateShowPassword\"\n >\n <input\n type=\"{{ passwordType }}\"\n nz-input\n formControlName=\"password\"\n placeholder=\"{{ 'PASSWORD' | translate }}\"\n />\n </nz-input-group>\n </nz-form-control>\n <ng-template #suffixTemplateShowPassword>\n <nz-icon\n nzType=\"eye\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'SHOW' | translate }}\"\n nzTooltipPlacement=\"right\"\n (click)=\"visible = !visible; passwordType = 'text'\"\n />\n </ng-template>\n <ng-template #suffixTemplateHiddenPassword>\n <nz-icon\n nzType=\"eye-invisible\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'HIDDEN' | translate }}\"\n nzTooltipPlacement=\"right\"\n (click)=\"visible = !visible; passwordType = 'password'\"\n />\n </ng-template>\n </nz-form-item>\n\n @if (isOneUserMultiOrgs) {\n <nz-form-item class=\"org-select\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"cluster\" nzHasFeedback=\"false\">\n <nz-select\n nzShowSearch\n nzAllowClear\n [nzDropdownMatchSelectWidth]=\"false\"\n [nzBorderless]=\"true\"\n [nzSize]=\"'small'\"\n nzPlaceHolder=\"{{ 'ORG' | translate }}\"\n formControlName=\"orgid\"\n class=\"no-error-border\"\n (nzFocus)=\"onFocusOrg()\"\n >\n @for (item of lstOrg; track $index) {\n <nz-option [nzLabel]=\"item.TreeNodeName!\" [nzValue]=\"item.App_Org_Id\"></nz-option>\n }\n </nz-select>\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n }\n\n <div nz-flex nzVertical=\"true\" nzGap=\"4px\">\n <button nz-button [nzType]=\"'primary'\" nzBlock>\n {{ \"LOGIN\" | translate }}\n </button>\n <!-- \n <nz-form-item nzJustify=\"end\">\n <nz-switch formControlName=\"langSwitch\" class=\"nz-switch-both-active-color\" nzCheckedChildren=\"VN\"\n nzUnCheckedChildren=\"EN\" (ngModelChange)=\"changeLanguage($event)\"></nz-switch>\n </nz-form-item> \n --></div>\n </div>\n </div>\n </div>\n </form>\n </div>\n </div>\n</nz-spin>\n\n<img *ngIf=\"bgUrl$ | async as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n", styles: [":host{display:flex;justify-content:center;align-items:center;height:80vh}.form-container{width:clamp(280px,30vw,420px);box-shadow:0 10px 20px 1px #001a2d59;background-color:#fff;padding:16px;border-radius:8px}.bg-image{position:fixed;top:0;left:0;width:100vw;height:100vh;object-fit:cover;object-position:center;z-index:-1;pointer-events:none}::ng-deep .login .ant-select-selector{height:auto!important}::ng-deep .login .ant-input-affix-wrapper,::ng-deep .login .ant-btn{border-radius:8px}.org-select nz-input-group{padding:4px 4px 0 11px}\n"] }]
15023
+ ], template: "<nz-spin [nzSpinning]=\"isLoading\">\n <div nz-row nzJustify=\"center\" class=\"login\">\n <div class=\"form-container\">\n <form nz-flex nzVertical=\"true\" nz-form [formGroup]=\"loginForm\" class=\"login-form\" (ngSubmit)=\"dologin()\">\n <div>\n <div class=\"login-stagger-item logo-wrapper\" style=\"--step: 1\">\n <img *ngIf=\"logoUrl$ | async as url\" width=\"250px\" [src]=\"url\" hideIfError />\n </div>\n <div class=\"form-field login-stagger-item\" style=\"--step: 2; text-align: center; margin-bottom: 20px\">\n <h3 style=\"font-weight: bold; font-size: 20px\">{{ SYSTEM_NAME_LOGIN }}</h3>\n </div>\n </div>\n\n <div nz-row [nzJustify]=\"'center'\">\n <div nz-col nzSm=\"24\" nzMd=\"19\">\n <div nz-flex nzVertical=\"true\">\n <nz-form-item class=\"login-stagger-item\" style=\"--step: 3\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"user\">\n <input type=\"text\" nz-input formControlName=\"username\" placeholder=\"{{ 'USERNAME' | translate }}\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n\n <nz-form-item class=\"login-stagger-item\" style=\"--step: 4\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group\n nzPrefixIcon=\"lock\"\n [nzSuffix]=\"visible ? suffixTemplateHiddenPassword : suffixTemplateShowPassword\"\n >\n <input\n type=\"{{ passwordType }}\"\n nz-input\n formControlName=\"password\"\n placeholder=\"{{ 'PASSWORD' | translate }}\"\n />\n </nz-input-group>\n </nz-form-control>\n <ng-template #suffixTemplateShowPassword>\n <nz-icon\n nzType=\"eye\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'SHOW' | translate }}\"\n nzTooltipPlacement=\"right\"\n (click)=\"visible = !visible; passwordType = 'text'\"\n />\n </ng-template>\n <ng-template #suffixTemplateHiddenPassword>\n <nz-icon\n nzType=\"eye-invisible\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'HIDDEN' | translate }}\"\n nzTooltipPlacement=\"right\"\n (click)=\"visible = !visible; passwordType = 'password'\"\n />\n </ng-template>\n </nz-form-item>\n\n @if (isOneUserMultiOrgs) {\n <nz-form-item class=\"org-select org-dynamic-reveal\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"cluster\" nzHasFeedback=\"false\">\n <nz-select\n nzShowSearch\n nzAllowClear\n [nzDropdownMatchSelectWidth]=\"false\"\n [nzBorderless]=\"true\"\n [nzSize]=\"'small'\"\n nzPlaceHolder=\"{{ 'ORG' | translate }}\"\n formControlName=\"orgid\"\n class=\"no-error-border\"\n (nzFocus)=\"onFocusOrg()\"\n >\n @for (item of lstOrg; track $index) {\n <nz-option [nzLabel]=\"item.TreeNodeName!\" [nzValue]=\"item.App_Org_Id\"></nz-option>\n }\n </nz-select>\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n }\n\n <div nz-flex nzVertical=\"true\" nzGap=\"4px\" class=\"login-stagger-item\" style=\"--step: 5\">\n <button nz-button [nzType]=\"'primary'\" nzBlock class=\"submit-btn\">\n {{ \"LOGIN\" | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </form>\n </div>\n </div>\n</nz-spin>\n\n<img *ngIf=\"bgUrl$ | async as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n", styles: ["@charset \"UTF-8\";:host{display:flex;justify-content:center;align-items:center;height:80vh}@keyframes bgCinemaReveal{0%{opacity:0;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes formContainerEntrance{0%{opacity:0;transform:translateY(28px) scale(.96);filter:blur(8px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes formItemStagger{0%{opacity:0;transform:translateY(14px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}@keyframes orgSelectReveal{0%{opacity:0;transform:translateY(-8px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.form-container{position:relative;z-index:2;width:clamp(280px,30vw,420px);box-shadow:0 15px 35px #001a2d40;background-color:#fff;padding:24px 16px;border-radius:12px;opacity:0;animation:formContainerEntrance .65s cubic-bezier(.16,1,.3,1) .1s forwards;will-change:transform,opacity,filter}.login-stagger-item{opacity:0;animation:formItemStagger .5s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(var(--step, 1) * 65ms + .16s);will-change:transform,opacity,filter}.logo-wrapper{text-align:center}.logo-wrapper img{transition:transform .3s cubic-bezier(.34,1.56,.64,1)}.logo-wrapper img:hover{transform:scale(1.03)}.org-dynamic-reveal{animation:orgSelectReveal .4s cubic-bezier(.16,1,.3,1) backwards}.bg-image{position:fixed;top:0;left:0;width:100vw;height:100vh;object-fit:cover;object-position:center;z-index:-1;pointer-events:none;animation:bgCinemaReveal .9s cubic-bezier(.16,1,.3,1) forwards;will-change:transform,opacity}::ng-deep .login .ant-select-selector{height:auto!important}::ng-deep .login .ant-input-affix-wrapper,::ng-deep .login .ant-btn{border-radius:8px;transition:all .25s cubic-bezier(.22,1,.36,1)}::ng-deep .login .ant-input-affix-wrapper:focus,::ng-deep .login .ant-input-affix-wrapper:focus-within{transform:translateY(-1px);box-shadow:0 4px 12px #1890ff26}::ng-deep .login .submit-btn{position:relative;overflow:hidden;font-weight:600;height:42px;box-shadow:0 4px 12px #1890ff4d}::ng-deep .login .submit-btn:after{content:\"\";position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);transform:skew(-20deg);transition:left .55s cubic-bezier(.22,1,.36,1);pointer-events:none}::ng-deep .login .submit-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px #1890ff73}::ng-deep .login .submit-btn:hover:after{left:130%}::ng-deep .login .submit-btn:active{transform:translateY(0) scale(.98)}.org-select nz-input-group{padding:4px 4px 0 11px}@media (prefers-reduced-motion: reduce){.bg-image,.form-container,.login-stagger-item,.org-dynamic-reveal{animation:none!important;opacity:1!important}}\n"] }]
14949
15024
  }] });
14950
15025
 
14951
15026
  class Login1Component extends BaseComponent {
@@ -15181,7 +15256,7 @@ class Login2Component extends BaseComponent {
15181
15256
  .getFileVersion('LOGIN_BACKGROUND_DARK')
15182
15257
  .pipe(map$1((res) => `${AppGlobals.apiEndpoint}/api/file/image?code=LOGIN_BACKGROUND_DARK&v=${res || ''}`));
15183
15258
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Login2Component, deps: null, target: i0.ɵɵFactoryTarget.Component });
15184
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: Login2Component, isStandalone: true, selector: "login", usesInheritance: true, ngImport: i0, template: "<div class=\"login-wrapper\" [class.dark-theme]=\"isDarkMode\">\n <!-- \u0110\u1ED5i \u1EA3nh n\u1EC1n theo Theme -->\n <img *ngIf=\"!isDarkMode && (bgLightUrl$ | async) as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n <img *ngIf=\"isDarkMode && (bgDarkUrl$ | async) as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n\n <!-- N\u00FAt chuy\u1EC3n \u0111\u1ED5i Theme -->\n <button nz-button nzType=\"text\" class=\"theme-toggle\" (click)=\"toggleTheme()\">\n <nz-icon [nzType]=\"isDarkMode ? 'sun' : 'moon'\" nzTheme=\"outline\" />\n </button>\n\n <div class=\"form-container\">\n <form nz-flex nzVertical=\"true\" nz-form [formGroup]=\"loginForm\" class=\"login-form\" (ngSubmit)=\"dologin()\">\n <div>\n <div style=\"text-align: center; margin-bottom: 10px\">\n <img *ngIf=\"logoUrl$ | async as url\" class=\"logo-img\" [src]=\"url\" hideIfError />\n </div>\n <div class=\"form-field\" style=\"text-align: center; margin-bottom: 24px\">\n <h3 class=\"system-title\">{{ SYSTEM_NAME_LOGIN }}</h3>\n </div>\n </div>\n\n <div nz-row [nzJustify]=\"'center'\">\n <div nz-col nzSm=\"24\" nzMd=\"22\">\n <div nz-flex nzVertical=\"true\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"user\" nzSize=\"large\">\n <input type=\"text\" nz-input formControlName=\"username\" placeholder=\"{{ 'USERNAME' | translate }}\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n\n <nz-form-item>\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group\n nzPrefixIcon=\"lock\"\n nzSize=\"large\"\n [nzSuffix]=\"visible ? suffixTemplateHiddenPassword : suffixTemplateShowPassword\"\n >\n <input\n type=\"{{ passwordType }}\"\n nz-input\n formControlName=\"password\"\n placeholder=\"{{ 'PASSWORD' | translate }}\"\n />\n </nz-input-group>\n </nz-form-control>\n <ng-template #suffixTemplateShowPassword>\n <nz-icon\n nzType=\"eye\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'SHOW' | translate }}\"\n (click)=\"visible = !visible; passwordType = 'text'\"\n />\n </ng-template>\n <ng-template #suffixTemplateHiddenPassword>\n <nz-icon\n nzType=\"eye-invisible\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'HIDDEN' | translate }}\"\n (click)=\"visible = !visible; passwordType = 'password'\"\n />\n </ng-template>\n </nz-form-item>\n\n @if (isOneUserMultiOrgs) {\n <nz-form-item class=\"org-select\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"cluster\" nzSize=\"large\" nzHasFeedback=\"false\">\n <nz-select\n nzShowSearch\n nzAllowClear\n [nzDropdownMatchSelectWidth]=\"false\"\n [nzBorderless]=\"true\"\n nzPlaceHolder=\"{{ 'ORG' | translate }}\"\n formControlName=\"orgid\"\n class=\"no-error-border\"\n (nzFocus)=\"onFocusOrg()\"\n >\n @for (item of lstOrg; track $index) {\n <nz-option [nzLabel]=\"item.TreeNodeName!\" [nzValue]=\"item.App_Org_Id\"></nz-option>\n }\n </nz-select>\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n }\n\n <div nz-flex nzVertical=\"true\" nzGap=\"4px\" style=\"margin-top: 8px\">\n <button nz-button [nzType]=\"'primary'\" nzSize=\"large\" [nzLoading]=\"isLoading\" nzBlock class=\"submit-btn\">\n {{ \"LOGIN\" | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </form>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:block;height:100vh;width:100vw;overflow:hidden}.login-wrapper{--page-bg-light: #f0f2f5;--page-bg-dark: #141414;--form-position: flex-end;--form-offset-x: 10vw;--glass-blur: 10px;--glass-bg-light: rgba(255, 255, 255, .25);--glass-border-light: rgba(255, 255, 255, .5);--glass-bg-dark: rgba(10, 10, 10, .45);--glass-border-dark: rgba(255, 255, 255, .15);display:flex;justify-content:var(--form-position);align-items:center;height:100vh;position:relative;padding:0 var(--form-offset-x);--page-bg: var(--page-bg-light);--form-bg: var(--glass-bg-light);--form-border: var(--glass-border-light);--text-color: #1a1a1a;--input-bg: rgba(255, 255, 255, .6);--input-text: #333333;--input-border: rgba(0, 0, 0, .15);--autofill-bg: #ffffff;--shadow-color: rgba(0, 0, 0, .15);--icon-color: #595959;background-color:var(--page-bg);transition:all .3s ease}.login-wrapper.dark-theme{--page-bg: var(--page-bg-dark);--form-bg: var(--glass-bg-dark);--form-border: var(--glass-border-dark);--text-color: rgba(255, 255, 255, .85);--input-bg: rgba(0, 0, 0, .3);--input-text: rgba(255, 255, 255, .85);--input-border: rgba(255, 255, 255, .2);--autofill-bg: #2a2a2a;--shadow-color: rgba(0, 0, 0, .5);--icon-color: #bfbfbf}.login-wrapper.dark-theme ::ng-deep .ant-input,.login-wrapper.dark-theme ::ng-deep .ant-input-affix-wrapper{background-color:var(--input-bg)!important;color:var(--input-text)!important;border-color:var(--input-border)!important}.login-wrapper.dark-theme ::ng-deep .ant-input::placeholder{color:#fff9}.login-wrapper.dark-theme ::ng-deep .ant-select-selector{background-color:transparent!important;color:var(--input-text)!important}.login-wrapper.dark-theme ::ng-deep .ant-select-selection-placeholder{color:#fff9!important}.login-wrapper.dark-theme ::ng-deep .ant-input-prefix i,.login-wrapper.dark-theme ::ng-deep .ant-input-suffix i{color:var(--icon-color)!important}.login-wrapper.dark-theme .logo-img{filter:brightness(0) invert(1) hue-rotate(180deg) saturate(3);opacity:.85}.form-container{position:relative;z-index:1;width:clamp(320px,90vw,420px);background-color:var(--form-bg);backdrop-filter:blur(var(--glass-blur));-webkit-backdrop-filter:blur(var(--glass-blur));box-shadow:0 12px 40px var(--shadow-color);padding:40px 30px;border-radius:20px;border:1px solid var(--form-border);transition:all .4s cubic-bezier(.25,.8,.25,1)}.theme-toggle{position:absolute;top:24px;right:24px;z-index:10;font-size:22px;color:var(--text-color);background:#fff3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--form-border);cursor:pointer}.theme-toggle:hover{color:#1890ff;background:#ffffff4d;transform:scale(1.05)}.logo-img{max-width:220px;width:100%;object-fit:contain;filter:drop-shadow(0px 4px 6px rgba(0,0,0,.1))}.system-title{font-weight:700;font-size:22px;color:var(--text-color);margin:0;transition:color .3s ease;text-shadow:0px 2px 4px rgba(0,0,0,.1)}.bg-image{position:absolute;top:0;left:0;width:100vw;height:100vh;object-fit:cover;object-position:center;z-index:0;pointer-events:none;animation:fadeIn .8s ease-in-out}@keyframes fadeIn{0%{opacity:.5}to{opacity:1}}::ng-deep .login-form .ant-input-affix-wrapper{background-color:var(--input-bg)!important;border:1px solid var(--input-border)!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:10px;padding:8px 12px;transition:all .3s ease}::ng-deep .login-form .ant-input-affix-wrapper:focus,::ng-deep .login-form .ant-input-affix-wrapper:focus-within{box-shadow:0 0 0 2px #1890ff33!important;border-color:#1890ff!important}::ng-deep .login-form .ant-input{background-color:transparent!important;border:none!important;box-shadow:none!important;color:var(--input-text)!important}::ng-deep .login-form .ant-input:-webkit-autofill,::ng-deep .login-form .ant-input:-webkit-autofill:hover,::ng-deep .login-form .ant-input:-webkit-autofill:focus,::ng-deep .login-form .ant-input:-webkit-autofill:active{-webkit-box-shadow:0 0 0px 1000px var(--autofill-bg) inset!important;-webkit-text-fill-color:var(--input-text)!important;font-family:inherit;transition:background-color 5000s ease-in-out 0s}::ng-deep .login-form .ant-btn{border-radius:10px}::ng-deep .login-form .org-select .ant-input-group{display:flex;align-items:center;padding-left:11px}::ng-deep .login-form .submit-btn{font-weight:600;letter-spacing:.5px;margin-top:10px;height:44px;border:none;box-shadow:0 4px 15px #1890ff66;transition:all .3s}::ng-deep .login-form .submit-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #1890ff99}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i13$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i13$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "directive", type: HideIfErrorDirective, selector: "img[hideIfError]" }] });
15259
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: Login2Component, isStandalone: true, selector: "login", usesInheritance: true, ngImport: i0, template: "<div class=\"login-wrapper\" [class.dark-theme]=\"isDarkMode\">\n <!-- \u0110\u1ED5i \u1EA3nh n\u1EC1n theo Theme -->\n <img *ngIf=\"!isDarkMode && (bgLightUrl$ | async) as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n <img *ngIf=\"isDarkMode && (bgDarkUrl$ | async) as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n\n <!-- N\u00FAt chuy\u1EC3n \u0111\u1ED5i Theme -->\n <button nz-button nzType=\"text\" class=\"theme-toggle\" (click)=\"toggleTheme()\">\n <nz-icon [nzType]=\"isDarkMode ? 'sun' : 'moon'\" nzTheme=\"outline\" />\n </button>\n\n <div class=\"form-container\">\n <form nz-flex nzVertical=\"true\" nz-form [formGroup]=\"loginForm\" class=\"login-form\" (ngSubmit)=\"dologin()\">\n <div>\n <div style=\"text-align: center; margin-bottom: 10px\">\n <img *ngIf=\"logoUrl$ | async as url\" class=\"logo-img\" [src]=\"url\" hideIfError />\n </div>\n <div class=\"form-field login-stagger-item\" style=\"--step: 1; text-align: center; margin-bottom: 24px\">\n <h3 class=\"system-title\">{{ SYSTEM_NAME_LOGIN }}</h3>\n </div>\n </div>\n\n <div nz-row [nzJustify]=\"'center'\">\n <div nz-col nzSm=\"24\" nzMd=\"22\">\n <div nz-flex nzVertical=\"true\">\n <nz-form-item class=\"login-stagger-item\" style=\"--step: 2\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"user\" nzSize=\"large\">\n <input type=\"text\" nz-input formControlName=\"username\" placeholder=\"{{ 'USERNAME' | translate }}\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n\n <nz-form-item class=\"login-stagger-item\" style=\"--step: 3\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group\n nzPrefixIcon=\"lock\"\n nzSize=\"large\"\n [nzSuffix]=\"visible ? suffixTemplateHiddenPassword : suffixTemplateShowPassword\"\n >\n <input\n type=\"{{ passwordType }}\"\n nz-input\n formControlName=\"password\"\n placeholder=\"{{ 'PASSWORD' | translate }}\"\n />\n </nz-input-group>\n </nz-form-control>\n <ng-template #suffixTemplateShowPassword>\n <nz-icon\n nzType=\"eye\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'SHOW' | translate }}\"\n (click)=\"visible = !visible; passwordType = 'text'\"\n />\n </ng-template>\n <ng-template #suffixTemplateHiddenPassword>\n <nz-icon\n nzType=\"eye-invisible\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'HIDDEN' | translate }}\"\n (click)=\"visible = !visible; passwordType = 'password'\"\n />\n </ng-template>\n </nz-form-item>\n\n @if (isOneUserMultiOrgs) {\n <nz-form-item class=\"org-select org-dynamic-reveal\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"cluster\" nzSize=\"large\" nzHasFeedback=\"false\">\n <nz-select\n nzShowSearch\n nzAllowClear\n [nzDropdownMatchSelectWidth]=\"false\"\n [nzBorderless]=\"true\"\n nzPlaceHolder=\"{{ 'ORG' | translate }}\"\n formControlName=\"orgid\"\n class=\"no-error-border\"\n (nzFocus)=\"onFocusOrg()\"\n >\n @for (item of lstOrg; track $index) {\n <nz-option [nzLabel]=\"item.TreeNodeName!\" [nzValue]=\"item.App_Org_Id\"></nz-option>\n }\n </nz-select>\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n }\n\n <div nz-flex nzVertical=\"true\" nzGap=\"4px\" class=\"login-stagger-item\" style=\"--step: 4; margin-top: 8px\">\n <button nz-button [nzType]=\"'primary'\" nzSize=\"large\" [nzLoading]=\"isLoading\" nzBlock class=\"submit-btn\">\n {{ \"LOGIN\" | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </form>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:block;height:100vh;width:100vw;overflow:hidden}@keyframes bgCinemaReveal{0%{opacity:0;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes glassFormEntrance{0%{opacity:0;transform:translateY(28px) translate(14px) scale(.96);filter:blur(8px)}to{opacity:1;transform:translateY(0) translate(0) scale(1);filter:blur(0)}}@keyframes formFieldStagger{0%{opacity:0;transform:translateY(16px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}@keyframes asyncElementPopIn{0%{opacity:0;transform:translateY(-8px) scale(.95)}to{opacity:var(--logo-opacity, 1);transform:translateY(0) scale(1)}}@keyframes themeBtnEntrance{0%{opacity:0;transform:translateY(-14px) scale(.85)}to{opacity:1;transform:translateY(0) scale(1)}}.login-wrapper{--page-bg-light: #f0f2f5;--page-bg-dark: #141414;--form-position: flex-end;--form-offset-x: 10vw;--glass-blur: 10px;--glass-bg-light: rgba(255, 255, 255, .25);--glass-border-light: rgba(255, 255, 255, .5);--glass-bg-dark: rgba(10, 10, 10, .45);--glass-border-dark: rgba(255, 255, 255, .15);display:flex;justify-content:var(--form-position);align-items:center;height:100vh;position:relative;padding:0 var(--form-offset-x);--page-bg: var(--page-bg-light);--form-bg: var(--glass-bg-light);--form-border: var(--glass-border-light);--text-color: #1a1a1a;--logo-opacity: 1;--input-bg: rgba(255, 255, 255, .6);--input-text: #333333;--input-border: rgba(0, 0, 0, .15);--autofill-bg: #ffffff;--shadow-color: rgba(0, 0, 0, .15);--icon-color: #595959;background-color:var(--page-bg);transition:background-color .35s ease}.login-wrapper.dark-theme{--page-bg: var(--page-bg-dark);--form-bg: var(--glass-bg-dark);--form-border: var(--glass-border-dark);--text-color: rgba(255, 255, 255, .85);--logo-opacity: .85;--input-bg: rgba(0, 0, 0, .3);--input-text: rgba(255, 255, 255, .85);--input-border: rgba(255, 255, 255, .2);--autofill-bg: #2a2a2a;--shadow-color: rgba(0, 0, 0, .5);--icon-color: #bfbfbf}.login-wrapper.dark-theme ::ng-deep .ant-input,.login-wrapper.dark-theme ::ng-deep .ant-input-affix-wrapper{background-color:var(--input-bg)!important;color:var(--input-text)!important;border-color:var(--input-border)!important}.login-wrapper.dark-theme ::ng-deep .ant-input::placeholder{color:#fff9}.login-wrapper.dark-theme ::ng-deep .ant-select-selector{background-color:transparent!important;color:var(--input-text)!important}.login-wrapper.dark-theme ::ng-deep .ant-select-selection-placeholder{color:#fff9!important}.login-wrapper.dark-theme ::ng-deep .ant-input-prefix i,.login-wrapper.dark-theme ::ng-deep .ant-input-suffix i{color:var(--icon-color)!important}.login-wrapper.dark-theme .logo-img{filter:brightness(0) invert(1) hue-rotate(180deg) saturate(3);opacity:var(--logo-opacity)}.form-container{position:relative;z-index:1;width:clamp(320px,90vw,420px);background-color:var(--form-bg);backdrop-filter:blur(var(--glass-blur));-webkit-backdrop-filter:blur(var(--glass-blur));box-shadow:0 12px 40px var(--shadow-color);padding:40px 30px;border-radius:20px;border:1px solid var(--form-border);animation:glassFormEntrance .7s cubic-bezier(.16,1,.3,1) .08s backwards;transition:background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1),box-shadow .4s cubic-bezier(.25,.8,.25,1);will-change:transform,opacity,filter}.login-stagger-item{animation:formFieldStagger .55s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--step, 1) * 70ms + .16s);will-change:transform,opacity,filter}.org-dynamic-reveal{animation:asyncElementPopIn .4s cubic-bezier(.16,1,.3,1) backwards}.theme-toggle{position:absolute;top:24px;right:24px;z-index:10;font-size:22px;color:var(--text-color);background:#fff3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--form-border);cursor:pointer;animation:themeBtnEntrance .55s cubic-bezier(.16,1,.3,1) .3s backwards;transition:transform .28s cubic-bezier(.34,1.56,.64,1),background-color .25s ease,color .25s ease,border-color .25s ease}.theme-toggle:hover{color:#1890ff;background:#ffffff4d;transform:scale(1.08) rotate(12deg)}.theme-toggle:active{transform:scale(.92)}.logo-img{max-width:220px;width:100%;object-fit:contain;filter:drop-shadow(0px 4px 6px rgba(0,0,0,.1));animation:asyncElementPopIn .55s cubic-bezier(.16,1,.3,1) backwards}.system-title{font-weight:700;font-size:22px;color:var(--text-color);margin:0;transition:color .3s ease;text-shadow:0px 2px 4px rgba(0,0,0,.1)}.bg-image{position:absolute;top:0;left:0;width:100vw;height:100vh;object-fit:cover;object-position:center;z-index:0;pointer-events:none;animation:bgCinemaReveal .95s cubic-bezier(.16,1,.3,1) forwards;will-change:transform,opacity}::ng-deep .login-form .ant-input-affix-wrapper{background-color:var(--input-bg)!important;border:1px solid var(--input-border)!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:10px;padding:8px 12px;transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease,transform .25s cubic-bezier(.22,1,.36,1)}::ng-deep .login-form .ant-input-affix-wrapper .ant-input-prefix i,::ng-deep .login-form .ant-input-affix-wrapper .ant-input-suffix i{transition:color .25s ease,transform .25s cubic-bezier(.34,1.56,.64,1)}::ng-deep .login-form .ant-input-affix-wrapper:focus,::ng-deep .login-form .ant-input-affix-wrapper:focus-within{transform:translateY(-1px);box-shadow:0 0 0 2px #1890ff33,0 6px 16px #00000014!important;border-color:#1890ff!important}::ng-deep .login-form .ant-input-affix-wrapper:focus .ant-input-prefix i,::ng-deep .login-form .ant-input-affix-wrapper:focus-within .ant-input-prefix i{color:#1890ff!important;transform:scale(1.1)}::ng-deep .login-form .ant-input{background-color:transparent!important;border:none!important;box-shadow:none!important;color:var(--input-text)!important}::ng-deep .login-form .ant-input:-webkit-autofill,::ng-deep .login-form .ant-input:-webkit-autofill:hover,::ng-deep .login-form .ant-input:-webkit-autofill:focus,::ng-deep .login-form .ant-input:-webkit-autofill:active{-webkit-box-shadow:0 0 0px 1000px var(--autofill-bg) inset!important;-webkit-text-fill-color:var(--input-text)!important;font-family:inherit;transition:background-color 5000s ease-in-out 0s}::ng-deep .login-form .ant-btn{border-radius:10px}::ng-deep .login-form .org-select .ant-input-group{display:flex;align-items:center;padding-left:11px}::ng-deep .login-form .submit-btn{position:relative;overflow:hidden;font-weight:600;letter-spacing:.5px;margin-top:10px;height:44px;border:none;box-shadow:0 4px 15px #1890ff66;transition:transform .25s cubic-bezier(.22,1,.36,1),box-shadow .25s ease,background-color .25s ease}::ng-deep .login-form .submit-btn:after{content:\"\";position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.26),transparent);transform:skew(-20deg);transition:left .55s cubic-bezier(.22,1,.36,1);pointer-events:none}::ng-deep .login-form .submit-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #1890ff99}::ng-deep .login-form .submit-btn:hover:after{left:130%}::ng-deep .login-form .submit-btn:active{transform:translateY(0) scale(.98);transition-duration:.1s}@media (prefers-reduced-motion: reduce){.bg-image,.form-container,.login-stagger-item,.logo-img,.org-dynamic-reveal,.theme-toggle{animation:none!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i13$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i13$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "directive", type: HideIfErrorDirective, selector: "img[hideIfError]" }] });
15185
15260
  }
15186
15261
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Login2Component, decorators: [{
15187
15262
  type: Component,
@@ -15200,7 +15275,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
15200
15275
  NzSelectModule,
15201
15276
  HideIfErrorDirective,
15202
15277
  NzSpinComponent,
15203
- ], selector: 'login', template: "<div class=\"login-wrapper\" [class.dark-theme]=\"isDarkMode\">\n <!-- \u0110\u1ED5i \u1EA3nh n\u1EC1n theo Theme -->\n <img *ngIf=\"!isDarkMode && (bgLightUrl$ | async) as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n <img *ngIf=\"isDarkMode && (bgDarkUrl$ | async) as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n\n <!-- N\u00FAt chuy\u1EC3n \u0111\u1ED5i Theme -->\n <button nz-button nzType=\"text\" class=\"theme-toggle\" (click)=\"toggleTheme()\">\n <nz-icon [nzType]=\"isDarkMode ? 'sun' : 'moon'\" nzTheme=\"outline\" />\n </button>\n\n <div class=\"form-container\">\n <form nz-flex nzVertical=\"true\" nz-form [formGroup]=\"loginForm\" class=\"login-form\" (ngSubmit)=\"dologin()\">\n <div>\n <div style=\"text-align: center; margin-bottom: 10px\">\n <img *ngIf=\"logoUrl$ | async as url\" class=\"logo-img\" [src]=\"url\" hideIfError />\n </div>\n <div class=\"form-field\" style=\"text-align: center; margin-bottom: 24px\">\n <h3 class=\"system-title\">{{ SYSTEM_NAME_LOGIN }}</h3>\n </div>\n </div>\n\n <div nz-row [nzJustify]=\"'center'\">\n <div nz-col nzSm=\"24\" nzMd=\"22\">\n <div nz-flex nzVertical=\"true\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"user\" nzSize=\"large\">\n <input type=\"text\" nz-input formControlName=\"username\" placeholder=\"{{ 'USERNAME' | translate }}\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n\n <nz-form-item>\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group\n nzPrefixIcon=\"lock\"\n nzSize=\"large\"\n [nzSuffix]=\"visible ? suffixTemplateHiddenPassword : suffixTemplateShowPassword\"\n >\n <input\n type=\"{{ passwordType }}\"\n nz-input\n formControlName=\"password\"\n placeholder=\"{{ 'PASSWORD' | translate }}\"\n />\n </nz-input-group>\n </nz-form-control>\n <ng-template #suffixTemplateShowPassword>\n <nz-icon\n nzType=\"eye\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'SHOW' | translate }}\"\n (click)=\"visible = !visible; passwordType = 'text'\"\n />\n </ng-template>\n <ng-template #suffixTemplateHiddenPassword>\n <nz-icon\n nzType=\"eye-invisible\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'HIDDEN' | translate }}\"\n (click)=\"visible = !visible; passwordType = 'password'\"\n />\n </ng-template>\n </nz-form-item>\n\n @if (isOneUserMultiOrgs) {\n <nz-form-item class=\"org-select\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"cluster\" nzSize=\"large\" nzHasFeedback=\"false\">\n <nz-select\n nzShowSearch\n nzAllowClear\n [nzDropdownMatchSelectWidth]=\"false\"\n [nzBorderless]=\"true\"\n nzPlaceHolder=\"{{ 'ORG' | translate }}\"\n formControlName=\"orgid\"\n class=\"no-error-border\"\n (nzFocus)=\"onFocusOrg()\"\n >\n @for (item of lstOrg; track $index) {\n <nz-option [nzLabel]=\"item.TreeNodeName!\" [nzValue]=\"item.App_Org_Id\"></nz-option>\n }\n </nz-select>\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n }\n\n <div nz-flex nzVertical=\"true\" nzGap=\"4px\" style=\"margin-top: 8px\">\n <button nz-button [nzType]=\"'primary'\" nzSize=\"large\" [nzLoading]=\"isLoading\" nzBlock class=\"submit-btn\">\n {{ \"LOGIN\" | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </form>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:block;height:100vh;width:100vw;overflow:hidden}.login-wrapper{--page-bg-light: #f0f2f5;--page-bg-dark: #141414;--form-position: flex-end;--form-offset-x: 10vw;--glass-blur: 10px;--glass-bg-light: rgba(255, 255, 255, .25);--glass-border-light: rgba(255, 255, 255, .5);--glass-bg-dark: rgba(10, 10, 10, .45);--glass-border-dark: rgba(255, 255, 255, .15);display:flex;justify-content:var(--form-position);align-items:center;height:100vh;position:relative;padding:0 var(--form-offset-x);--page-bg: var(--page-bg-light);--form-bg: var(--glass-bg-light);--form-border: var(--glass-border-light);--text-color: #1a1a1a;--input-bg: rgba(255, 255, 255, .6);--input-text: #333333;--input-border: rgba(0, 0, 0, .15);--autofill-bg: #ffffff;--shadow-color: rgba(0, 0, 0, .15);--icon-color: #595959;background-color:var(--page-bg);transition:all .3s ease}.login-wrapper.dark-theme{--page-bg: var(--page-bg-dark);--form-bg: var(--glass-bg-dark);--form-border: var(--glass-border-dark);--text-color: rgba(255, 255, 255, .85);--input-bg: rgba(0, 0, 0, .3);--input-text: rgba(255, 255, 255, .85);--input-border: rgba(255, 255, 255, .2);--autofill-bg: #2a2a2a;--shadow-color: rgba(0, 0, 0, .5);--icon-color: #bfbfbf}.login-wrapper.dark-theme ::ng-deep .ant-input,.login-wrapper.dark-theme ::ng-deep .ant-input-affix-wrapper{background-color:var(--input-bg)!important;color:var(--input-text)!important;border-color:var(--input-border)!important}.login-wrapper.dark-theme ::ng-deep .ant-input::placeholder{color:#fff9}.login-wrapper.dark-theme ::ng-deep .ant-select-selector{background-color:transparent!important;color:var(--input-text)!important}.login-wrapper.dark-theme ::ng-deep .ant-select-selection-placeholder{color:#fff9!important}.login-wrapper.dark-theme ::ng-deep .ant-input-prefix i,.login-wrapper.dark-theme ::ng-deep .ant-input-suffix i{color:var(--icon-color)!important}.login-wrapper.dark-theme .logo-img{filter:brightness(0) invert(1) hue-rotate(180deg) saturate(3);opacity:.85}.form-container{position:relative;z-index:1;width:clamp(320px,90vw,420px);background-color:var(--form-bg);backdrop-filter:blur(var(--glass-blur));-webkit-backdrop-filter:blur(var(--glass-blur));box-shadow:0 12px 40px var(--shadow-color);padding:40px 30px;border-radius:20px;border:1px solid var(--form-border);transition:all .4s cubic-bezier(.25,.8,.25,1)}.theme-toggle{position:absolute;top:24px;right:24px;z-index:10;font-size:22px;color:var(--text-color);background:#fff3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--form-border);cursor:pointer}.theme-toggle:hover{color:#1890ff;background:#ffffff4d;transform:scale(1.05)}.logo-img{max-width:220px;width:100%;object-fit:contain;filter:drop-shadow(0px 4px 6px rgba(0,0,0,.1))}.system-title{font-weight:700;font-size:22px;color:var(--text-color);margin:0;transition:color .3s ease;text-shadow:0px 2px 4px rgba(0,0,0,.1)}.bg-image{position:absolute;top:0;left:0;width:100vw;height:100vh;object-fit:cover;object-position:center;z-index:0;pointer-events:none;animation:fadeIn .8s ease-in-out}@keyframes fadeIn{0%{opacity:.5}to{opacity:1}}::ng-deep .login-form .ant-input-affix-wrapper{background-color:var(--input-bg)!important;border:1px solid var(--input-border)!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:10px;padding:8px 12px;transition:all .3s ease}::ng-deep .login-form .ant-input-affix-wrapper:focus,::ng-deep .login-form .ant-input-affix-wrapper:focus-within{box-shadow:0 0 0 2px #1890ff33!important;border-color:#1890ff!important}::ng-deep .login-form .ant-input{background-color:transparent!important;border:none!important;box-shadow:none!important;color:var(--input-text)!important}::ng-deep .login-form .ant-input:-webkit-autofill,::ng-deep .login-form .ant-input:-webkit-autofill:hover,::ng-deep .login-form .ant-input:-webkit-autofill:focus,::ng-deep .login-form .ant-input:-webkit-autofill:active{-webkit-box-shadow:0 0 0px 1000px var(--autofill-bg) inset!important;-webkit-text-fill-color:var(--input-text)!important;font-family:inherit;transition:background-color 5000s ease-in-out 0s}::ng-deep .login-form .ant-btn{border-radius:10px}::ng-deep .login-form .org-select .ant-input-group{display:flex;align-items:center;padding-left:11px}::ng-deep .login-form .submit-btn{font-weight:600;letter-spacing:.5px;margin-top:10px;height:44px;border:none;box-shadow:0 4px 15px #1890ff66;transition:all .3s}::ng-deep .login-form .submit-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #1890ff99}\n"] }]
15278
+ ], selector: 'login', template: "<div class=\"login-wrapper\" [class.dark-theme]=\"isDarkMode\">\n <!-- \u0110\u1ED5i \u1EA3nh n\u1EC1n theo Theme -->\n <img *ngIf=\"!isDarkMode && (bgLightUrl$ | async) as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n <img *ngIf=\"isDarkMode && (bgDarkUrl$ | async) as url\" class=\"bg-image\" [src]=\"url\" hideIfError />\n\n <!-- N\u00FAt chuy\u1EC3n \u0111\u1ED5i Theme -->\n <button nz-button nzType=\"text\" class=\"theme-toggle\" (click)=\"toggleTheme()\">\n <nz-icon [nzType]=\"isDarkMode ? 'sun' : 'moon'\" nzTheme=\"outline\" />\n </button>\n\n <div class=\"form-container\">\n <form nz-flex nzVertical=\"true\" nz-form [formGroup]=\"loginForm\" class=\"login-form\" (ngSubmit)=\"dologin()\">\n <div>\n <div style=\"text-align: center; margin-bottom: 10px\">\n <img *ngIf=\"logoUrl$ | async as url\" class=\"logo-img\" [src]=\"url\" hideIfError />\n </div>\n <div class=\"form-field login-stagger-item\" style=\"--step: 1; text-align: center; margin-bottom: 24px\">\n <h3 class=\"system-title\">{{ SYSTEM_NAME_LOGIN }}</h3>\n </div>\n </div>\n\n <div nz-row [nzJustify]=\"'center'\">\n <div nz-col nzSm=\"24\" nzMd=\"22\">\n <div nz-flex nzVertical=\"true\">\n <nz-form-item class=\"login-stagger-item\" style=\"--step: 2\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"user\" nzSize=\"large\">\n <input type=\"text\" nz-input formControlName=\"username\" placeholder=\"{{ 'USERNAME' | translate }}\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n\n <nz-form-item class=\"login-stagger-item\" style=\"--step: 3\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group\n nzPrefixIcon=\"lock\"\n nzSize=\"large\"\n [nzSuffix]=\"visible ? suffixTemplateHiddenPassword : suffixTemplateShowPassword\"\n >\n <input\n type=\"{{ passwordType }}\"\n nz-input\n formControlName=\"password\"\n placeholder=\"{{ 'PASSWORD' | translate }}\"\n />\n </nz-input-group>\n </nz-form-control>\n <ng-template #suffixTemplateShowPassword>\n <nz-icon\n nzType=\"eye\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'SHOW' | translate }}\"\n (click)=\"visible = !visible; passwordType = 'text'\"\n />\n </ng-template>\n <ng-template #suffixTemplateHiddenPassword>\n <nz-icon\n nzType=\"eye-invisible\"\n nzTheme=\"outline\"\n nz-tooltip\n nzTooltipTitle=\"{{ 'HIDDEN' | translate }}\"\n (click)=\"visible = !visible; passwordType = 'password'\"\n />\n </ng-template>\n </nz-form-item>\n\n @if (isOneUserMultiOrgs) {\n <nz-form-item class=\"org-select org-dynamic-reveal\">\n <nz-form-control nzErrorTip=\"{{ 'REQUIRED' | translate }}\">\n <nz-input-group nzPrefixIcon=\"cluster\" nzSize=\"large\" nzHasFeedback=\"false\">\n <nz-select\n nzShowSearch\n nzAllowClear\n [nzDropdownMatchSelectWidth]=\"false\"\n [nzBorderless]=\"true\"\n nzPlaceHolder=\"{{ 'ORG' | translate }}\"\n formControlName=\"orgid\"\n class=\"no-error-border\"\n (nzFocus)=\"onFocusOrg()\"\n >\n @for (item of lstOrg; track $index) {\n <nz-option [nzLabel]=\"item.TreeNodeName!\" [nzValue]=\"item.App_Org_Id\"></nz-option>\n }\n </nz-select>\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n }\n\n <div nz-flex nzVertical=\"true\" nzGap=\"4px\" class=\"login-stagger-item\" style=\"--step: 4; margin-top: 8px\">\n <button nz-button [nzType]=\"'primary'\" nzSize=\"large\" [nzLoading]=\"isLoading\" nzBlock class=\"submit-btn\">\n {{ \"LOGIN\" | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </form>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:block;height:100vh;width:100vw;overflow:hidden}@keyframes bgCinemaReveal{0%{opacity:0;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes glassFormEntrance{0%{opacity:0;transform:translateY(28px) translate(14px) scale(.96);filter:blur(8px)}to{opacity:1;transform:translateY(0) translate(0) scale(1);filter:blur(0)}}@keyframes formFieldStagger{0%{opacity:0;transform:translateY(16px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}@keyframes asyncElementPopIn{0%{opacity:0;transform:translateY(-8px) scale(.95)}to{opacity:var(--logo-opacity, 1);transform:translateY(0) scale(1)}}@keyframes themeBtnEntrance{0%{opacity:0;transform:translateY(-14px) scale(.85)}to{opacity:1;transform:translateY(0) scale(1)}}.login-wrapper{--page-bg-light: #f0f2f5;--page-bg-dark: #141414;--form-position: flex-end;--form-offset-x: 10vw;--glass-blur: 10px;--glass-bg-light: rgba(255, 255, 255, .25);--glass-border-light: rgba(255, 255, 255, .5);--glass-bg-dark: rgba(10, 10, 10, .45);--glass-border-dark: rgba(255, 255, 255, .15);display:flex;justify-content:var(--form-position);align-items:center;height:100vh;position:relative;padding:0 var(--form-offset-x);--page-bg: var(--page-bg-light);--form-bg: var(--glass-bg-light);--form-border: var(--glass-border-light);--text-color: #1a1a1a;--logo-opacity: 1;--input-bg: rgba(255, 255, 255, .6);--input-text: #333333;--input-border: rgba(0, 0, 0, .15);--autofill-bg: #ffffff;--shadow-color: rgba(0, 0, 0, .15);--icon-color: #595959;background-color:var(--page-bg);transition:background-color .35s ease}.login-wrapper.dark-theme{--page-bg: var(--page-bg-dark);--form-bg: var(--glass-bg-dark);--form-border: var(--glass-border-dark);--text-color: rgba(255, 255, 255, .85);--logo-opacity: .85;--input-bg: rgba(0, 0, 0, .3);--input-text: rgba(255, 255, 255, .85);--input-border: rgba(255, 255, 255, .2);--autofill-bg: #2a2a2a;--shadow-color: rgba(0, 0, 0, .5);--icon-color: #bfbfbf}.login-wrapper.dark-theme ::ng-deep .ant-input,.login-wrapper.dark-theme ::ng-deep .ant-input-affix-wrapper{background-color:var(--input-bg)!important;color:var(--input-text)!important;border-color:var(--input-border)!important}.login-wrapper.dark-theme ::ng-deep .ant-input::placeholder{color:#fff9}.login-wrapper.dark-theme ::ng-deep .ant-select-selector{background-color:transparent!important;color:var(--input-text)!important}.login-wrapper.dark-theme ::ng-deep .ant-select-selection-placeholder{color:#fff9!important}.login-wrapper.dark-theme ::ng-deep .ant-input-prefix i,.login-wrapper.dark-theme ::ng-deep .ant-input-suffix i{color:var(--icon-color)!important}.login-wrapper.dark-theme .logo-img{filter:brightness(0) invert(1) hue-rotate(180deg) saturate(3);opacity:var(--logo-opacity)}.form-container{position:relative;z-index:1;width:clamp(320px,90vw,420px);background-color:var(--form-bg);backdrop-filter:blur(var(--glass-blur));-webkit-backdrop-filter:blur(var(--glass-blur));box-shadow:0 12px 40px var(--shadow-color);padding:40px 30px;border-radius:20px;border:1px solid var(--form-border);animation:glassFormEntrance .7s cubic-bezier(.16,1,.3,1) .08s backwards;transition:background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1),box-shadow .4s cubic-bezier(.25,.8,.25,1);will-change:transform,opacity,filter}.login-stagger-item{animation:formFieldStagger .55s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--step, 1) * 70ms + .16s);will-change:transform,opacity,filter}.org-dynamic-reveal{animation:asyncElementPopIn .4s cubic-bezier(.16,1,.3,1) backwards}.theme-toggle{position:absolute;top:24px;right:24px;z-index:10;font-size:22px;color:var(--text-color);background:#fff3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--form-border);cursor:pointer;animation:themeBtnEntrance .55s cubic-bezier(.16,1,.3,1) .3s backwards;transition:transform .28s cubic-bezier(.34,1.56,.64,1),background-color .25s ease,color .25s ease,border-color .25s ease}.theme-toggle:hover{color:#1890ff;background:#ffffff4d;transform:scale(1.08) rotate(12deg)}.theme-toggle:active{transform:scale(.92)}.logo-img{max-width:220px;width:100%;object-fit:contain;filter:drop-shadow(0px 4px 6px rgba(0,0,0,.1));animation:asyncElementPopIn .55s cubic-bezier(.16,1,.3,1) backwards}.system-title{font-weight:700;font-size:22px;color:var(--text-color);margin:0;transition:color .3s ease;text-shadow:0px 2px 4px rgba(0,0,0,.1)}.bg-image{position:absolute;top:0;left:0;width:100vw;height:100vh;object-fit:cover;object-position:center;z-index:0;pointer-events:none;animation:bgCinemaReveal .95s cubic-bezier(.16,1,.3,1) forwards;will-change:transform,opacity}::ng-deep .login-form .ant-input-affix-wrapper{background-color:var(--input-bg)!important;border:1px solid var(--input-border)!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:10px;padding:8px 12px;transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease,transform .25s cubic-bezier(.22,1,.36,1)}::ng-deep .login-form .ant-input-affix-wrapper .ant-input-prefix i,::ng-deep .login-form .ant-input-affix-wrapper .ant-input-suffix i{transition:color .25s ease,transform .25s cubic-bezier(.34,1.56,.64,1)}::ng-deep .login-form .ant-input-affix-wrapper:focus,::ng-deep .login-form .ant-input-affix-wrapper:focus-within{transform:translateY(-1px);box-shadow:0 0 0 2px #1890ff33,0 6px 16px #00000014!important;border-color:#1890ff!important}::ng-deep .login-form .ant-input-affix-wrapper:focus .ant-input-prefix i,::ng-deep .login-form .ant-input-affix-wrapper:focus-within .ant-input-prefix i{color:#1890ff!important;transform:scale(1.1)}::ng-deep .login-form .ant-input{background-color:transparent!important;border:none!important;box-shadow:none!important;color:var(--input-text)!important}::ng-deep .login-form .ant-input:-webkit-autofill,::ng-deep .login-form .ant-input:-webkit-autofill:hover,::ng-deep .login-form .ant-input:-webkit-autofill:focus,::ng-deep .login-form .ant-input:-webkit-autofill:active{-webkit-box-shadow:0 0 0px 1000px var(--autofill-bg) inset!important;-webkit-text-fill-color:var(--input-text)!important;font-family:inherit;transition:background-color 5000s ease-in-out 0s}::ng-deep .login-form .ant-btn{border-radius:10px}::ng-deep .login-form .org-select .ant-input-group{display:flex;align-items:center;padding-left:11px}::ng-deep .login-form .submit-btn{position:relative;overflow:hidden;font-weight:600;letter-spacing:.5px;margin-top:10px;height:44px;border:none;box-shadow:0 4px 15px #1890ff66;transition:transform .25s cubic-bezier(.22,1,.36,1),box-shadow .25s ease,background-color .25s ease}::ng-deep .login-form .submit-btn:after{content:\"\";position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.26),transparent);transform:skew(-20deg);transition:left .55s cubic-bezier(.22,1,.36,1);pointer-events:none}::ng-deep .login-form .submit-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #1890ff99}::ng-deep .login-form .submit-btn:hover:after{left:130%}::ng-deep .login-form .submit-btn:active{transform:translateY(0) scale(.98);transition-duration:.1s}@media (prefers-reduced-motion: reduce){.bg-image,.form-container,.login-stagger-item,.logo-img,.org-dynamic-reveal,.theme-toggle{animation:none!important}}\n"] }]
15204
15279
  }] });
15205
15280
 
15206
15281
  class ModuleSelectComponent extends BaseComponent {
@@ -15211,30 +15286,29 @@ class ModuleSelectComponent extends BaseComponent {
15211
15286
  LayoutComponent.noShowSideMenu = true;
15212
15287
  LayoutComponent.noShowBreadcrumb = true;
15213
15288
  LayoutComponent.noShowHeaderMenu = true;
15214
- await this.service.getUserModule().then((res) => (this.lstModule = res.Data || []));
15215
- const defaultModule = this.lstModule.filter((x) => x.IsDefaultMenu)[0];
15216
- if (!LayoutComponent.isUserAction && defaultModule) {
15217
- LayoutComponent.isUserAction = false;
15218
- this.selectModule(defaultModule);
15219
- }
15289
+ setTimeout(async () => {
15290
+ await this.service.getUserModule().then((res) => (this.lstModule = res.Data || []));
15291
+ const defaultModule = this.lstModule.filter((x) => x.IsDefaultMenu)[0];
15292
+ if (!LayoutComponent.isUserAction && defaultModule) {
15293
+ LayoutComponent.isUserAction = false;
15294
+ this.selectModule(defaultModule);
15295
+ }
15296
+ }, 100);
15220
15297
  }
15221
15298
  ngOnDestroy() {
15222
- setTimeout(() => {
15223
- LayoutComponent.noShowSideMenu = false;
15224
- LayoutComponent.noShowBreadcrumb = false;
15225
- LayoutComponent.noShowHeaderMenu = false;
15226
- });
15299
+ LayoutComponent.noShowSideMenu = false;
15300
+ LayoutComponent.noShowBreadcrumb = false;
15301
+ LayoutComponent.noShowHeaderMenu = false;
15227
15302
  }
15228
15303
  selectModule(module) {
15229
- console.log(`navigateByUrl: /module/${module.App_Menu_Id}`);
15230
15304
  this._router.navigateByUrl(`/module/${module.App_Menu_Id}`);
15231
15305
  }
15232
15306
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ModuleSelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
15233
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: ModuleSelectComponent, isStandalone: true, selector: "app-module-select", usesInheritance: true, ngImport: i0, template: "<div class=\"module-select-container\">\n <div class=\"module-select-wrapper\">\n <div nz-row [nzGutter]=\"[24, 24]\" nzJustify=\"center\">\n @for (module of lstModule; track module.App_Menu_Id) {\n <div nz-col [nzXs]=\"24\" [nzSm]=\"12\" [nzMd]=\"8\" [nzLg]=\"6\">\n <nz-card nzHoverable class=\"module-card glass-panel\" (click)=\"selectModule(module)\">\n <div class=\"card-content\">\n <!-- Hi\u1EC3n th\u1ECB Icon, n\u1EBFu ch\u01B0a c\u00F3 d\u1EEF li\u1EC7u s\u1EBD fallback v\u1EC1 icon 'appstore' -->\n <nz-icon [nzType]=\"module.Icon || 'appstore'\" nzTheme=\"outline\" class=\"module-icon\"></nz-icon>\n <h3 class=\"module-name\">{{ module.Name }}</h3>\n </div>\n </nz-card>\n </div>\n }\n </div>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:block;--mod-bg-container: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);--mod-bg-card: #ffffff;--mod-border: #cbd5e1;--mod-text-name: #334155;--mod-text-icon: #64748b}.module-select-container{min-height:calc(100vh - 100px);display:flex;align-items:flex-start;padding-top:15vh;justify-content:center;padding-left:24px;padding-right:24px}.module-select-wrapper{width:100%;max-width:1200px}::ng-deep .ant-card.module-card{background:var(--mod-bg-card)!important;border:2px solid var(--mod-border)!important;border-radius:16px!important;box-shadow:0 8px 24px #959da526!important;transition:all .3s cubic-bezier(.25,.8,.25,1)!important;cursor:pointer;overflow:hidden}::ng-deep .ant-card.module-card .ant-card-body{padding:0!important}::ng-deep .ant-card.module-card:hover{transform:translateY(-8px)!important;border-color:var(--primary-color)!important;box-shadow:0 16px 32px #3b82f640!important}::ng-deep .ant-card.module-card:hover .module-icon,::ng-deep .ant-card.module-card:hover .module-name{color:var(--primary-color)!important}::ng-deep .ant-card.module-card:hover .module-icon{transform:scale(1.1)}.card-content{padding:24px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:20px!important;width:100%;height:100%}.module-icon{font-size:84px!important;line-height:1!important;color:var(--mod-text-icon);transition:all .3s ease;display:inline-flex}.module-name{margin:0;font-size:18px;font-weight:600;color:var(--mod-text-name);transition:color .3s ease;text-transform:capitalize;line-height:1.4}\n"], dependencies: [{ kind: "ngmodule", type: NzCardModule }, { kind: "component", type: i2$5.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzTypographyModule }] });
15307
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: ModuleSelectComponent, isStandalone: true, selector: "app-module-select", usesInheritance: true, ngImport: i0, template: "<div class=\"module-select-container\">\n <div class=\"module-select-wrapper\">\n <div nz-row [nzGutter]=\"[24, 24]\" nzJustify=\"center\">\n @for (module of lstModule; track module.App_Menu_Id; let i = $index) {\n <div nz-col [nzXs]=\"24\" [nzSm]=\"12\" [nzMd]=\"8\" [nzLg]=\"6\" class=\"module-col-animate\" [style.--i]=\"i\">\n <nz-card nzHoverable class=\"module-card glass-panel\" (click)=\"selectModule(module)\">\n <div class=\"card-content\">\n <!-- Hi\u1EC3n th\u1ECB Icon, n\u1EBFu ch\u01B0a c\u00F3 d\u1EEF li\u1EC7u s\u1EBD fallback v\u1EC1 icon 'appstore' -->\n <nz-icon [nzType]=\"module.Icon || 'appstore'\" nzTheme=\"outline\" class=\"module-icon\"></nz-icon>\n <h3 class=\"module-name\">{{ module.Name }}</h3>\n </div>\n </nz-card>\n </div>\n }\n </div>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:block;--mod-bg-container: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);--mod-bg-card: #ffffff;--mod-border: #cbd5e1;--mod-text-name: #334155;--mod-text-icon: #64748b}@keyframes cardEntrance{0%{opacity:0;transform:translateY(28px) scale(.94);filter:blur(4px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes iconPopIn{0%{opacity:0;transform:scale(.75) translateY(6px)}to{opacity:1;transform:scale(1) translateY(0)}}.module-select-container{min-height:calc(100vh - 100px);display:flex;align-items:flex-start;padding-top:15vh;justify-content:center;padding-left:24px;padding-right:24px}.module-select-wrapper{width:100%;max-width:1200px}.module-col-animate{opacity:0;animation:cardEntrance .6s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(var(--i, 0) * 60ms);will-change:transform,opacity,filter}.module-col-animate .module-icon{animation:iconPopIn .55s cubic-bezier(.34,1.56,.64,1) backwards;animation-delay:calc(var(--i, 0) * 60ms + .1s)}::ng-deep .ant-card.module-card{position:relative;background:var(--mod-bg-card)!important;border:2px solid var(--mod-border)!important;border-radius:16px!important;box-shadow:0 8px 24px #959da51f!important;transition:transform .35s cubic-bezier(.22,1,.36,1),border-color .3s ease,box-shadow .35s cubic-bezier(.22,1,.36,1)!important;cursor:pointer;overflow:hidden}::ng-deep .ant-card.module-card:before{content:\"\";position:absolute;inset:0;background:radial-gradient(circle at 50% 0%,rgba(59,130,246,.08),transparent 70%);opacity:0;transition:opacity .35s ease;pointer-events:none}::ng-deep .ant-card.module-card .ant-card-body{padding:0!important}::ng-deep .ant-card.module-card:hover{transform:translateY(-8px)!important;border-color:var(--primary-color, #3b82f6)!important;box-shadow:0 18px 36px -6px #3b82f638!important}::ng-deep .ant-card.module-card:hover:before{opacity:1}::ng-deep .ant-card.module-card:hover .module-icon,::ng-deep .ant-card.module-card:hover .module-name{color:var(--primary-color, #3b82f6)!important}::ng-deep .ant-card.module-card:hover .module-icon{transform:scale(1.1) translateY(-2px)}::ng-deep .ant-card.module-card:active{transform:translateY(-2px) scale(.98)!important;transition-duration:.1s!important}.card-content{position:relative;z-index:1;padding:24px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:20px!important;width:100%;height:100%}.module-icon{font-size:84px!important;line-height:1!important;color:var(--mod-text-icon);transition:transform .35s cubic-bezier(.34,1.56,.64,1),color .3s ease;display:inline-flex}.module-name{margin:0;font-size:18px;font-weight:600;color:var(--mod-text-name);transition:color .3s ease;text-transform:capitalize;line-height:1.4}@media (prefers-reduced-motion: reduce){.module-col-animate,.module-col-animate .module-icon{animation:none!important;opacity:1!important}}\n"], dependencies: [{ kind: "ngmodule", type: NzCardModule }, { kind: "component", type: i2$5.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzTypographyModule }] });
15234
15308
  }
15235
15309
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ModuleSelectComponent, decorators: [{
15236
15310
  type: Component,
15237
- args: [{ selector: 'app-module-select', standalone: true, imports: [NzCardModule, NzGridModule, NzIconModule, NzTypographyModule], template: "<div class=\"module-select-container\">\n <div class=\"module-select-wrapper\">\n <div nz-row [nzGutter]=\"[24, 24]\" nzJustify=\"center\">\n @for (module of lstModule; track module.App_Menu_Id) {\n <div nz-col [nzXs]=\"24\" [nzSm]=\"12\" [nzMd]=\"8\" [nzLg]=\"6\">\n <nz-card nzHoverable class=\"module-card glass-panel\" (click)=\"selectModule(module)\">\n <div class=\"card-content\">\n <!-- Hi\u1EC3n th\u1ECB Icon, n\u1EBFu ch\u01B0a c\u00F3 d\u1EEF li\u1EC7u s\u1EBD fallback v\u1EC1 icon 'appstore' -->\n <nz-icon [nzType]=\"module.Icon || 'appstore'\" nzTheme=\"outline\" class=\"module-icon\"></nz-icon>\n <h3 class=\"module-name\">{{ module.Name }}</h3>\n </div>\n </nz-card>\n </div>\n }\n </div>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:block;--mod-bg-container: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);--mod-bg-card: #ffffff;--mod-border: #cbd5e1;--mod-text-name: #334155;--mod-text-icon: #64748b}.module-select-container{min-height:calc(100vh - 100px);display:flex;align-items:flex-start;padding-top:15vh;justify-content:center;padding-left:24px;padding-right:24px}.module-select-wrapper{width:100%;max-width:1200px}::ng-deep .ant-card.module-card{background:var(--mod-bg-card)!important;border:2px solid var(--mod-border)!important;border-radius:16px!important;box-shadow:0 8px 24px #959da526!important;transition:all .3s cubic-bezier(.25,.8,.25,1)!important;cursor:pointer;overflow:hidden}::ng-deep .ant-card.module-card .ant-card-body{padding:0!important}::ng-deep .ant-card.module-card:hover{transform:translateY(-8px)!important;border-color:var(--primary-color)!important;box-shadow:0 16px 32px #3b82f640!important}::ng-deep .ant-card.module-card:hover .module-icon,::ng-deep .ant-card.module-card:hover .module-name{color:var(--primary-color)!important}::ng-deep .ant-card.module-card:hover .module-icon{transform:scale(1.1)}.card-content{padding:24px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:20px!important;width:100%;height:100%}.module-icon{font-size:84px!important;line-height:1!important;color:var(--mod-text-icon);transition:all .3s ease;display:inline-flex}.module-name{margin:0;font-size:18px;font-weight:600;color:var(--mod-text-name);transition:color .3s ease;text-transform:capitalize;line-height:1.4}\n"] }]
15311
+ args: [{ selector: 'app-module-select', standalone: true, imports: [NzCardModule, NzGridModule, NzIconModule, NzTypographyModule], template: "<div class=\"module-select-container\">\n <div class=\"module-select-wrapper\">\n <div nz-row [nzGutter]=\"[24, 24]\" nzJustify=\"center\">\n @for (module of lstModule; track module.App_Menu_Id; let i = $index) {\n <div nz-col [nzXs]=\"24\" [nzSm]=\"12\" [nzMd]=\"8\" [nzLg]=\"6\" class=\"module-col-animate\" [style.--i]=\"i\">\n <nz-card nzHoverable class=\"module-card glass-panel\" (click)=\"selectModule(module)\">\n <div class=\"card-content\">\n <!-- Hi\u1EC3n th\u1ECB Icon, n\u1EBFu ch\u01B0a c\u00F3 d\u1EEF li\u1EC7u s\u1EBD fallback v\u1EC1 icon 'appstore' -->\n <nz-icon [nzType]=\"module.Icon || 'appstore'\" nzTheme=\"outline\" class=\"module-icon\"></nz-icon>\n <h3 class=\"module-name\">{{ module.Name }}</h3>\n </div>\n </nz-card>\n </div>\n }\n </div>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:block;--mod-bg-container: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);--mod-bg-card: #ffffff;--mod-border: #cbd5e1;--mod-text-name: #334155;--mod-text-icon: #64748b}@keyframes cardEntrance{0%{opacity:0;transform:translateY(28px) scale(.94);filter:blur(4px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes iconPopIn{0%{opacity:0;transform:scale(.75) translateY(6px)}to{opacity:1;transform:scale(1) translateY(0)}}.module-select-container{min-height:calc(100vh - 100px);display:flex;align-items:flex-start;padding-top:15vh;justify-content:center;padding-left:24px;padding-right:24px}.module-select-wrapper{width:100%;max-width:1200px}.module-col-animate{opacity:0;animation:cardEntrance .6s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(var(--i, 0) * 60ms);will-change:transform,opacity,filter}.module-col-animate .module-icon{animation:iconPopIn .55s cubic-bezier(.34,1.56,.64,1) backwards;animation-delay:calc(var(--i, 0) * 60ms + .1s)}::ng-deep .ant-card.module-card{position:relative;background:var(--mod-bg-card)!important;border:2px solid var(--mod-border)!important;border-radius:16px!important;box-shadow:0 8px 24px #959da51f!important;transition:transform .35s cubic-bezier(.22,1,.36,1),border-color .3s ease,box-shadow .35s cubic-bezier(.22,1,.36,1)!important;cursor:pointer;overflow:hidden}::ng-deep .ant-card.module-card:before{content:\"\";position:absolute;inset:0;background:radial-gradient(circle at 50% 0%,rgba(59,130,246,.08),transparent 70%);opacity:0;transition:opacity .35s ease;pointer-events:none}::ng-deep .ant-card.module-card .ant-card-body{padding:0!important}::ng-deep .ant-card.module-card:hover{transform:translateY(-8px)!important;border-color:var(--primary-color, #3b82f6)!important;box-shadow:0 18px 36px -6px #3b82f638!important}::ng-deep .ant-card.module-card:hover:before{opacity:1}::ng-deep .ant-card.module-card:hover .module-icon,::ng-deep .ant-card.module-card:hover .module-name{color:var(--primary-color, #3b82f6)!important}::ng-deep .ant-card.module-card:hover .module-icon{transform:scale(1.1) translateY(-2px)}::ng-deep .ant-card.module-card:active{transform:translateY(-2px) scale(.98)!important;transition-duration:.1s!important}.card-content{position:relative;z-index:1;padding:24px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:20px!important;width:100%;height:100%}.module-icon{font-size:84px!important;line-height:1!important;color:var(--mod-text-icon);transition:transform .35s cubic-bezier(.34,1.56,.64,1),color .3s ease;display:inline-flex}.module-name{margin:0;font-size:18px;font-weight:600;color:var(--mod-text-name);transition:color .3s ease;text-transform:capitalize;line-height:1.4}@media (prefers-reduced-motion: reduce){.module-col-animate,.module-col-animate .module-icon{animation:none!important;opacity:1!important}}\n"] }]
15238
15312
  }] });
15239
15313
 
15240
15314
  class App_Dic_Domain {
@@ -16330,7 +16404,7 @@ class MenuListComponent extends BaseComponent {
16330
16404
  this.lstRoleMenu = this.lstRoleMenu.filter((x) => x !== roleMenu);
16331
16405
  }
16332
16406
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
16333
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: MenuListComponent, isStandalone: true, selector: "app-menu-list", usesInheritance: true, ngImport: i0, template: "<div class=\"enterprise-page-shell\">\n <!-- ===================================================================== -->\n <!-- 1. THANH C\u00D4NG C\u1EE4 CHU\u1EA8N ENTERPRISE (UNIFIED FILTER & ACTION TOOLBAR) -->\n <!-- ===================================================================== -->\n <div class=\"enterprise-toolbar\">\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\n <!-- T\u00ECm theo t\u00EAn menu -->\n <nz-input-group [nzPrefix]=\"prefixSearch\" [nzSuffix]=\"clearNameTpl\" nzSize=\"small\" style=\"width: 210px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo t\u00EAn menu...\" [(ngModel)]=\"filter.Name\" />\n </nz-input-group>\n <ng-template #prefixSearch>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearNameTpl>\n @if (filter.Name) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.Name = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo URL -->\n <nz-input-group [nzPrefix]=\"prefixUrl\" [nzSuffix]=\"clearUrlTpl\" nzSize=\"small\" style=\"width: 195px\">\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo \u0111\u01B0\u1EDDng d\u1EABn URL...\" [(ngModel)]=\"filter.Url\" />\n </nz-input-group>\n <ng-template #prefixUrl>\n <nz-icon nzType=\"link\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearUrlTpl>\n @if (filter.Url) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.Url = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo Menu cha -->\n <nz-input-group [nzPrefix]=\"prefixParent\" [nzSuffix]=\"clearParentTpl\" nzSize=\"small\" style=\"width: 175px\">\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo t\u00EAn menu cha...\" [(ngModel)]=\"filter.ParentName\" />\n </nz-input-group>\n <ng-template #prefixParent>\n <nz-icon nzType=\"apartment\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearParentTpl>\n @if (filter.ParentName) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.ParentName = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo v\u1ECB tr\u00ED Header Menu -->\n <nz-select\n nzSize=\"small\"\n nzPlaceHolder=\"L\u00E0 Module\"\n nzAllowClear\n [(ngModel)]=\"filter.IsModule\"\n (ngModelChange)=\"search()\"\n style=\"width: 145px\"\n >\n <nz-option [nzValue]=\"true\" nzLabel=\"L\u00E0 Module\"></nz-option>\n <nz-option [nzValue]=\"false\" nzLabel=\"Kh\u00F4ng l\u00E0 Module\"></nz-option>\n </nz-select>\n\n <!-- L\u1ECDc theo v\u1ECB tr\u00ED Header Menu -->\n <nz-select\n nzSize=\"small\"\n nzPlaceHolder=\"V\u1ECB tr\u00ED hi\u1EC3n th\u1ECB\"\n nzAllowClear\n [(ngModel)]=\"filter.IsHeaderMenu\"\n (ngModelChange)=\"search()\"\n style=\"width: 145px\"\n >\n <nz-option [nzValue]=\"true\" nzLabel=\"Header Menu (Ngang)\"></nz-option>\n <nz-option [nzValue]=\"false\" nzLabel=\"Side Menu (D\u1ECDc)\"></nz-option>\n </nz-select>\n\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\n </button>\n\n @if (hasActiveFilter) {\n <button\n nz-button\n nzType=\"dashed\"\n nzDanger\n nzSize=\"small\"\n (click)=\"resetFilters()\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a to\u00E0n b\u1ED9 \u0111i\u1EC1u ki\u1EC7n l\u1ECDc\"\n >\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a l\u1ECDc\n </button>\n }\n </div>\n\n <div class=\"toolbar-actions\">\n <!-- Th\u1ED1ng k\u00EA nhanh KPI -->\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"T\u1ED5ng s\u1ED1 b\u1EA3n ghi menu th\u1ECFa m\u00E3n b\u1ED9 l\u1ECDc\">\n T\u1ED5ng: <strong>{{ data?.TotalCount || 0 }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Module Menu trong trang hi\u1EC7n t\u1EA1i\">\n Module: <strong>{{ moduleMenuCount }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Header Menu trong trang hi\u1EC7n t\u1EA1i\">\n Header: <strong>{{ headerMenuCount }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Menu \u0111\u01B0\u1EE3c \u0111\u00E1nh d\u1EA5u M\u1EB7c \u0111\u1ECBnh\">\n M\u1EB7c \u0111\u1ECBnh: <strong>{{ defaultMenuCount }}</strong>\n </span>\n\n <!-- Chuy\u1EC3n \u0111\u1ED5i ch\u1EBF \u0111\u1ED9 xem C\u00E2y ph\u00E2n c\u1EA5p vs B\u1EA3ng ph\u1EB3ng -->\n <div nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n [nzType]=\"isTreeTableView ? 'primary' : 'default'\"\n (click)=\"onToggleTreeView(true)\"\n nz-tooltip\n nzTooltipTitle=\"Tree Table View\"\n >\n <nz-icon nzType=\"apartment\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n [nzType]=\"!isTreeTableView ? 'primary' : 'default'\"\n (click)=\"onToggleTreeView(false)\"\n nz-tooltip\n nzTooltipTitle=\"Flat Table View\"\n >\n <nz-icon nzType=\"unordered-list\"></nz-icon>\n </button>\n @if (isTreeTableView) {\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"expandAllNodes()\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng t\u1EA5t c\u1EA3 nh\u00E1nh\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"collapseAllNodes()\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn t\u1EA5t c\u1EA3 nh\u00E1nh\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n }\n </div>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"getData()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openDrawer('create')\">\n <nz-icon nzType=\"plus\"></nz-icon> Th\u00EAm menu m\u1EDBi\n </button>\n </div>\n </div>\n\n <!-- ===================================================================== -->\n <!-- 2. B\u1EA2NG D\u1EEE LI\u1EC6U MENU CHU\u1EA8N ENTERPRISE (TREE TABLE + QUICK ACTIONS) -->\n <!-- ===================================================================== -->\n <nz-table\n #table\n [nzData]=\"displayedItems\"\n [nzLoading]=\"isLoading\"\n [nzBordered]=\"true\"\n [nzSize]=\"'small'\"\n [nzShowPagination]=\"false\"\n [nzFrontPagination]=\"false\"\n [nzScroll]=\"{ x: '1150px', y: 'calc(100vh - 245px)' }\"\n >\n <thead>\n <tr>\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\n <th nzWidth=\"300px\">T\u00EAn Menu & Ph\u00E2n c\u1EA5p</th>\n <th nzWidth=\"250px\">\u0110\u01B0\u1EDDng d\u1EABn (URL)</th>\n <th nzWidth=\"135px\">Icon hi\u1EC3n th\u1ECB</th>\n <th nzWidth=\"85px\" class=\"text-center\">Th\u1EE9 t\u1EF1</th>\n <th nzWidth=\"185px\">Menu cha</th>\n <th nzWidth=\"130px\">Module</th>\n <th nzWidth=\"105px\" class=\"text-center\">Header Menu</th>\n <th\n nzWidth=\"105px\"\n class=\"text-center\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u00E1nh d\u1EA5u Menu m\u1EB7c \u0111\u1ECBnh t\u1EEB cha \u0111\u1EBFn con khi ch\u1ECDn Module\"\n >\n M\u1EB7c \u0111\u1ECBnh\n </th>\n <th nzWidth=\"95px\" class=\"text-center\">Hi\u1EC7u l\u1EF1c</th>\n <th nzWidth=\"135px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (row of table.data; track row.App_Menu_Id; let i = $index) {\n <tr\n [class.selected-row]=\"editingMenu?.App_Menu_Id === row.App_Menu_Id && drawerVisible\"\n (dblclick)=\"openDrawer('edit', row)\"\n >\n <!-- 1. STT -->\n <td class=\"text-center cell-number\" style=\"color: #64748b\">\n {{ i + 1 + filter.PageIndex * filter.PageSize }}\n </td>\n\n <!-- 2. T\u00CAN MENU & TREE INDENTATION -->\n <td\n [nzIndentSize]=\"isTreeTableView && !hasActiveFilter ? (row.treeLevel || 0) * 20 : 0\"\n [nzShowExpand]=\"isTreeTableView && !hasActiveFilter && !!row.hasChildren\"\n [nzExpand]=\"!!row.treeExpanded\"\n (nzExpandChange)=\"toggleExpandNode(row, $event)\"\n >\n <div class=\"menu-name-cell\">\n <span class=\"menu-icon-badge\" [class.is-root]=\"!row.ParentId\" [class.is-inactive]=\"!row.IsActive\">\n <nz-icon [nzType]=\"row.Icon || (!row.ParentId ? 'appstore' : 'caret-right')\"></nz-icon>\n </span>\n\n <div class=\"menu-title-wrap\">\n <span\n class=\"menu-title-text\"\n [class.root-weight]=\"!row.ParentId || row.hasChildren\"\n (click)=\"openDrawer('edit', row)\"\n >\n {{ isTreeTableView && !hasActiveFilter ? row.cleanName || row.Name : row.TreeNodeName || row.Name }}\n </span>\n\n @if (row.IsDefaultMenu) {\n <nz-tag\n nzColor=\"processing\"\n style=\"margin: 0; font-size: 11px; line-height: 16px\"\n nz-tooltip\n nzTooltipTitle=\"Menu m\u1EB7c \u0111\u1ECBnh khi truy c\u1EADp Ph\u00E2n h\u1EC7 / Nh\u00E1nh cha\"\n >\n M\u1EB7c \u0111\u1ECBnh\n </nz-tag>\n }\n @if (row.childrenCount) {\n <nz-tag nzColor=\"default\" style=\"margin: 0; font-size: 11px; line-height: 16px\">\n {{ row.childrenCount }} m\u1EE5c con\n </nz-tag>\n }\n @if (row.IsHidden) {\n <nz-tag\n nzColor=\"warning\"\n style=\"margin: 0; font-size: 11px\"\n nz-tooltip\n nzTooltipTitle=\"Menu \u1EA9n kh\u1ECFi thanh \u0111i\u1EC1u h\u01B0\u1EDBng nh\u01B0ng v\u1EABn ki\u1EC3m tra ph\u00E2n quy\u1EC1n URL\"\n >\n \u1EA8n\n </nz-tag>\n }\n @if (row.TranslateKey) {\n <nz-tag nzColor=\"cyan\" style=\"margin: 0; font-size: 11px\">{{ row.TranslateKey }}</nz-tag>\n }\n </div>\n </div>\n </td>\n\n <!-- 3. \u0110\u01AF\u1EDCNG D\u1EAAN URL -->\n <td>\n @if (row.IsModule) {\n <span style=\"color: #94a3b8; font-size: 12px; font-style: italic\">\u2014 Module \u2014</span>\n } @else if (row.Url) {\n <div class=\"url-cell-wrap\">\n <code class=\"url-code-pill\">{{ row.Url }}</code>\n <icon-copy [textToCopy]=\"row.Url\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn URL\"></icon-copy>\n </div>\n } @else {\n <span style=\"color: #94a3b8; font-size: 12px; font-style: italic\">\u2014 Nh\u00F3m menu \u2014</span>\n }\n </td>\n\n <!-- 4. ICON HI\u1EC2N TH\u1ECA -->\n <td>\n @if (row.Icon) {\n <span class=\"icon-preview-pill\">\n <nz-icon [nzType]=\"row.Icon\" style=\"color: var(--primary-color, #1890ff); font-size: 14px\"></nz-icon>\n <span>{{ row.Icon }}</span>\n </span>\n } @else {\n <span style=\"color: #cbd5e1\">\u2014</span>\n }\n </td>\n\n <!-- 5. TH\u1EE8 T\u1EF0 (CHO PH\u00C9P CLICK S\u1EECA NHANH HO\u1EB6C S\u1EECA TRONG DRAWER) -->\n <td class=\"text-center\">\n @if (inlineOrderEditId === row.App_Menu_Id) {\n <nz-input-number\n nzSize=\"small\"\n [(ngModel)]=\"inlineOrderValue\"\n [nzStep]=\"10\"\n style=\"width: 68px\"\n (nzBlur)=\"commitInlineOrderEdit(row)\"\n (keydown.enter)=\"commitInlineOrderEdit(row)\"\n ></nz-input-number>\n } @else {\n <span\n class=\"order-badge\"\n nz-tooltip\n nzTooltipTitle=\"Nh\u1EA5n \u0111\u1EC3 s\u1EEDa nhanh th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB\"\n (click)=\"startInlineOrderEdit(row, $event)\"\n >\n {{ row.OrderValue }}\n </span>\n }\n </td>\n\n <!-- 6. MENU CHA -->\n <td>\n @if (row.IsModule) {\n <nz-tag nzColor=\"purple\">Module</nz-tag>\n } @else if (row.ParentName) {\n <nz-tag nzColor=\"default\" style=\"max-width: 175px; overflow: hidden; text-overflow: ellipsis\">\n <nz-icon nzType=\"folder\" style=\"margin-right: 4px; color: #f59e0b\"></nz-icon>\n {{ row.ParentName }}\n </nz-tag>\n } @else {\n <nz-tag nzColor=\"gold\">Menu g\u1ED1c (Root)</nz-tag>\n }\n </td>\n\n <!-- 7. MODULE (N\u1EBEU B\u1EACT) -->\n <td class=\"text-center\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsModule\"\n (ngModelChange)=\"quickToggleField(row, 'IsModule', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt \u0111\u00E1nh d\u1EA5u \u0111\u00E2y l\u00E0 Module\"\n ></nz-switch>\n </td>\n\n <!-- 8. HEADER MENU (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsHeaderMenu\"\n (ngModelChange)=\"quickToggleField(row, 'IsHeaderMenu', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt hi\u1EC3n th\u1ECB tr\u00EAn thanh Header ngang\"\n ></nz-switch>\n </td>\n\n <!-- 9. MENU M\u1EB6C \u0110\u1ECANH - IsDefaultMenu (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsDefaultMenu\"\n (ngModelChange)=\"quickToggleField(row, 'IsDefaultMenu', $event)\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u00E1nh d\u1EA5u l\u00E0 Menu m\u1EB7c \u0111\u1ECBnh (t\u1EEB cha \u0111\u1EBFn con) khi ch\u1ECDn Module\"\n ></nz-switch>\n </td>\n\n <!-- 10. HI\u1EC6U L\u1EF0C (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsActive\"\n (ngModelChange)=\"quickToggleField(row, 'IsActive', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt tr\u1EA1ng th\u00E1i ho\u1EA1t \u0111\u1ED9ng c\u1EE7a Menu\"\n ></nz-switch>\n </td>\n\n <!-- 11. THAO T\u00C1C (ACTION BUTTONS CHU\u1EA8N ENTERPRISE) -->\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\n <div class=\"action-btn-group\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n [nzTooltipTitle]=\"'Th\u00EAm menu con tr\u1EF1c thu\u1ED9c: ' + (row.cleanName || row.Name)\"\n (click)=\"addChildMenu(row)\"\n >\n <nz-icon nzType=\"plus-circle\"></nz-icon>\n </button>\n\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n nzTooltipTitle=\"Ph\u00E2n quy\u1EC1n Role & Ch\u1EC9nh s\u1EEDa chi ti\u1EBFt (Drawer)\"\n (click)=\"openDrawer('edit', row)\"\n >\n <nz-icon nzType=\"edit\"></nz-icon>\n </button>\n\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a menu\"\n (click)=\"delete(row)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <!-- ===================================================================== -->\n <!-- 3. PH\u00C2N TRANG (PAGINATION BAR) -->\n <!-- ===================================================================== -->\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"padding: 2px 4px\">\n <div style=\"font-size: 12px; color: #64748b\">\n M\u1EB9o: Nh\u1EA5p v\u00E0o <strong>T\u00EAn menu</strong> ho\u1EB7c <strong>\u0111\u00FAp chu\u1ED9t v\u00E0o d\u00F2ng</strong> \u0111\u1EC3 m\u1EDF nhanh b\u1EA3ng c\u1EA5u h\u00ECnh & ph\u00E2n\n quy\u1EC1n Role b\u00EAn ph\u1EA3i.\n </div>\n\n <nz-pagination\n [nzSize]=\"'small'\"\n [nzPageIndex]=\"filter.PageIndex + 1\"\n [nzPageSize]=\"filter.PageSize\"\n [nzTotal]=\"data?.TotalCount || 0\"\n [nzShowSizeChanger]=\"true\"\n [nzShowTotal]=\"showTotalTpl\"\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\n (nzPageIndexChange)=\"onQueryParamsChange($event - 1, filter.PageSize)\"\n (nzPageSizeChange)=\"onQueryParamsChange(0, $event)\"\n >\n </nz-pagination>\n\n <ng-template #showTotalTpl let-total let-range=\"range\">\n Hi\u1EC3n th\u1ECB <strong>{{ range[0] | number }} - {{ range[1] | number }}</strong> /\n <strong>{{ total | number }}</strong>\n menu\n </ng-template>\n </div>\n</div>\n\n<!-- ========================================================================= -->\n<!-- SIDE DRAWER: TH\u00CAM M\u1EDAI / CH\u1EC8NH S\u1EECA MENU + CH\u1ECCN ICON + PH\u00C2N QUY\u1EC0N ROLE -->\n<!-- ========================================================================= -->\n<nz-drawer\n [nzVisible]=\"drawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"860\"\n [nzClosable]=\"false\"\n [nzMaskClosable]=\"true\"\n [nzTitle]=\"drawerTitleTpl\"\n [nzFooter]=\"drawerFooterTpl\"\n (nzOnClose)=\"closeDrawer()\"\n>\n <ng-template #drawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n Drawer sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n Drawer sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n\n <span class=\"menu-icon-badge\" [class.is-root]=\"!formData.get('ParentId')?.value\">\n <nz-icon [nzType]=\"formData.get('Icon')?.value || 'appstore'\"></nz-icon>\n </span>\n\n <div>\n <strong style=\"font-size: 15px\">\n {{ drawerMode === \"create\" ? \"Th\u00EAm m\u1EDBi Menu ch\u1EE9c n\u0103ng\" : \"Ch\u1EC9nh s\u1EEDa & Ph\u00E2n quy\u1EC1n Menu\" }}\n </strong>\n @if (drawerMode === \"edit\" && editingMenu) {\n <nz-tag nzColor=\"blue\" style=\"margin-left: 8px\">{{ editingMenu.cleanName || editingMenu.Name }}</nz-tag>\n }\n </div>\n </div>\n\n <button type=\"button\" nz-button nzType=\"text\" nzSize=\"small\" (click)=\"closeDrawer()\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n\n <ng-container *nzDrawerContent>\n <form nz-form [formGroup]=\"formData\" (ngSubmit)=\"submitDrawer(false)\">\n <!-- PH\u1EA6N 1: TH\u00D4NG TIN C\u1EA4U H\u00CCNH MENU -->\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"control\" style=\"color: var(--primary-color, #1890ff)\"></nz-icon>\n <span>1. Th\u00F4ng tin c\u1EA5u h\u00ECnh & \u0110i\u1EC1u h\u01B0\u1EDBng</span>\n </div>\n @if (drawerMode === \"edit\" && editingMenu) {\n <button type=\"button\" nz-button nzSize=\"small\" nzType=\"dashed\" (click)=\"addChildMenu(editingMenu)\">\n <nz-icon nzType=\"plus-circle\"></nz-icon> T\u1EA1o menu con cho m\u1EE5c n\u00E0y\n </button>\n }\n </div>\n\n <div nz-row [nzGutter]=\"[16, 12]\">\n <!-- Menu cha -->\n <div nz-col [nzSpan]=\"AppGlobals.MODULE_IN_USE ? 14 : 24\">\n <label class=\"drawer-field-label\">Menu cha (\u0110\u1EC3 tr\u1ED1ng n\u1EBFu l\u00E0 Menu g\u1ED1c)</label>\n <nz-tree-select\n style=\"width: 100%\"\n [nzNodes]=\"filteredDrawerTreeMenu\"\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Menu g\u1ED1c (Root Level) --\"\n [nzDropdownMatchSelectWidth]=\"false\"\n formControlName=\"ParentId\"\n ></nz-tree-select>\n </div>\n\n <!-- T\u00EAn Menu -->\n <div nz-col [nzSpan]=\"16\">\n <label class=\"drawer-field-label\"> T\u00EAn hi\u1EC3n th\u1ECB Menu <span class=\"required-star\">*</span> </label>\n <input\n nz-input\n formControlName=\"Name\"\n [appAutoFocus]=\"drawerVisible\"\n placeholder=\"V\u00ED d\u1EE5: Qu\u1EA3n l\u00FD K\u00EAnh truy\u1EC1n, B\u00E1o c\u00E1o t\u1ED5ng h\u1EE3p...\"\n />\n @if (formData.get(\"Name\")?.invalid && (formData.get(\"Name\")?.dirty || formData.get(\"Name\")?.touched)) {\n <div style=\"color: #ef4444; font-size: 12px; margin-top: 4px\">Vui l\u00F2ng nh\u1EADp t\u00EAn hi\u1EC3n th\u1ECB c\u1EE7a Menu.</div>\n }\n </div>\n\n <!-- Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB -->\n <div nz-col [nzSpan]=\"8\">\n <label class=\"drawer-field-label\">Th\u1EE9 t\u1EF1 s\u1EAFp x\u1EBFp (Order)</label>\n <nz-input-number\n formControlName=\"OrderValue\"\n [nzStep]=\"10\"\n style=\"width: 100%\"\n nzPlaceHolder=\"10, 20, 30...\"\n ></nz-input-number>\n </div>\n\n <!-- \u0110\u01B0\u1EDDng d\u1EABn URL -->\n <div nz-col [nzSpan]=\"16\">\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn \u0111i\u1EC1u h\u01B0\u1EDBng (URL Route)</label>\n <nz-input-group [nzPrefix]=\"urlPrefixTpl\">\n <input\n nz-input\n formControlName=\"Url\"\n placeholder=\"V\u00ED d\u1EE5: /admin/menu ho\u1EB7c /cpt/dashboard (\u0110\u1EC3 tr\u1ED1ng n\u1EBFu l\u00E0 menu cha)\"\n />\n </nz-input-group>\n <ng-template #urlPrefixTpl>\n <nz-icon nzType=\"link\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n </div>\n\n <!-- Translate Key -->\n <div nz-col [nzSpan]=\"8\">\n <label class=\"drawer-field-label\">M\u00E3 \u0111a ng\u00F4n ng\u1EEF (TranslateKey)</label>\n <input nz-input formControlName=\"TranslateKey\" placeholder=\"T\u00F9y ch\u1ECDn (VD: MENU_USER)\" />\n </div>\n\n <!-- Bi\u1EC3u t\u01B0\u1EE3ng Icon + B\u1ED9 ch\u1ECDn tr\u1EF1c quan -->\n <div nz-col [nzSpan]=\"24\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 4px\"> Bi\u1EC3u t\u01B0\u1EE3ng (Ant Design Icon) </label>\n <a style=\"font-size: 12px\" (click)=\"showIconPicker = !showIconPicker\">\n <nz-icon [nzType]=\"showIconPicker ? 'up' : 'appstore'\"></nz-icon>\n {{\n showIconPicker ? \"\u1EA8n b\u1EA3ng ch\u1ECDn nhanh Icon\" : \"M\u1EDF b\u1EA3ng ch\u1ECDn nhanh Icon (\" + commonIcons.length + \")\"\n }}\n </a>\n </div>\n\n <nz-input-group [nzAddOnBefore]=\"iconPreviewAddon\" [nzSuffix]=\"clearIconTpl\">\n <input\n nz-input\n formControlName=\"Icon\"\n placeholder=\"Nh\u1EADp t\u00EAn icon (VD: dashboard, setting, forward, caret-right) ho\u1EB7c ch\u1ECDn b\u00EAn d\u01B0\u1EDBi...\"\n />\n </nz-input-group>\n <ng-template #iconPreviewAddon>\n <span nz-flex nzAlign=\"center\" [nzGap]=\"6\" style=\"padding: 0 4px\">\n <nz-icon\n [nzType]=\"formData.get('Icon')?.value || 'question-circle'\"\n style=\"font-size: 16px; color: var(--primary-color, #1890ff)\"\n ></nz-icon>\n <span style=\"font-size: 12px\">Preview</span>\n </span>\n </ng-template>\n <ng-template #clearIconTpl>\n @if (formData.get(\"Icon\")?.value) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"formData.patchValue({ Icon: '' })\"\n ></nz-icon>\n }\n </ng-template>\n\n @if (showIconPicker) {\n <div class=\"icon-picker-grid\">\n @for (ic of commonIcons; track ic) {\n <button\n type=\"button\"\n class=\"icon-picker-item\"\n [class.active]=\"formData.get('Icon')?.value === ic\"\n (click)=\"selectSuggestedIcon(ic)\"\n >\n <nz-icon [nzType]=\"ic\" style=\"font-size: 15px; flex-shrink: 0\"></nz-icon>\n <span style=\"overflow: hidden; text-overflow: ellipsis\">{{ ic }}</span>\n </button>\n }\n </div>\n }\n </div>\n\n <!-- 4 Switch tr\u1EA1ng th\u00E1i -->\n <div nz-col [nzSpan]=\"24\">\n <div class=\"switch-card-grid\">\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Module</div>\n <div class=\"drawer-field-hint\">Menu n\u00E0y l\u00E0 Module</div>\n </div>\n <nz-switch formControlName=\"IsModule\" nzSize=\"small\"></nz-switch>\n </div>\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Header Menu</div>\n <div class=\"drawer-field-hint\">Hi\u1EC3n th\u1ECB tr\u00EAn thanh ngang</div>\n </div>\n <nz-switch formControlName=\"IsHeaderMenu\" nzSize=\"small\"></nz-switch>\n </div>\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Menu m\u1EB7c \u0111\u1ECBnh</div>\n <div class=\"drawer-field-hint\">T\u1EF1 \u0111\u1ED9ng v\u00E0o khi ch\u1ECDn Module / Menu cha</div>\n </div>\n <nz-switch formControlName=\"IsDefaultMenu\" nzSize=\"small\"></nz-switch>\n </div>\n\n <!-- <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">\u1EA8n tr\u00EAn c\u00E2y Menu</div>\n <div class=\"drawer-field-hint\">Ch\u1EC9 d\u00F9ng \u0111\u1EC3 ki\u1EC3m tra quy\u1EC1n URL</div>\n </div>\n <nz-switch formControlName=\"IsHidden\" nzSize=\"small\"></nz-switch>\n </div> -->\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">\u0110ang hi\u1EC7u l\u1EF1c</div>\n <div class=\"drawer-field-hint\">Cho ph\u00E9p truy c\u1EADp menu</div>\n </div>\n <nz-switch formControlName=\"IsActive\" nzSize=\"small\"></nz-switch>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- PH\u1EA6N 2: MA TR\u1EACN PH\u00C2N QUY\u1EC0N ROLE TRUY C\u1EACP MENU NGAY TRONG DRAWER -->\n <div class=\"drawer-section-card\" style=\"margin-bottom: 0\">\n <div class=\"drawer-section-header\">\n <div>\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"safety-certificate\" style=\"color: #10b981\"></nz-icon>\n <span>2. Ph\u00E2n quy\u1EC1n Vai tr\u00F2 (Role Permissions)</span>\n <nz-tag nzColor=\"green\">{{ lstRoleMenu.length }} Role</nz-tag>\n </div>\n <div class=\"drawer-field-hint\">\n Thi\u1EBFt l\u1EADp c\u00E1c Vai tr\u00F2 (Role) \u0111\u01B0\u1EE3c ph\u00E9p xem v\u00E0 thao t\u00E1c (Th\u00EAm / S\u1EEDa / X\u00F3a) tr\u00EAn ch\u1EE9c n\u0103ng n\u00E0y.\n </div>\n </div>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openAddRoleModal()\">\n <nz-icon nzType=\"usergroup-add\"></nz-icon> G\u00E1n th\u00EAm Role\n </button>\n </div>\n\n <nz-table\n #roleTable\n [nzData]=\"lstRoleMenu\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"false\"\n [nzLoading]=\"isLoadingRoles\"\n [nzNoResult]=\"emptyRoleTpl\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th>Vai tr\u00F2 (Role)</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Ch\u1ECDn t\u1EA5t c\u1EA3 quy\u1EC1n C / U / D\">T\u1EA5t c\u1EA3</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n Th\u00EAm m\u1EDBi (CanCreate)\">\n Th\u00EAm (C)\n </th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n C\u1EADp nh\u1EADt (CanUpdate)\">S\u1EEDa (U)</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n X\u00F3a (CanDelete)\">X\u00F3a (D)</th>\n <th nzWidth=\"60px\" class=\"text-center\">G\u1EE1</th>\n </tr>\n </thead>\n <tbody>\n @for (item of roleTable.data; track item.App_Role_Id; let idx = $index) {\n <tr>\n <td class=\"text-center cell-number\">{{ idx + 1 }}</td>\n <td>\n <div style=\"font-weight: 600\">{{ item.RoleName }}</div>\n <div style=\"font-size: 11.5px; color: #64748b\">\n <code>{{ item.RoleCode }}</code>\n </div>\n </td>\n <td class=\"text-center\">\n <label\n nz-checkbox\n [ngModel]=\"isAllCrudChecked(item)\"\n (ngModelChange)=\"toggleAllCrudForRole(item, $event)\"\n [ngModelOptions]=\"{ standalone: true }\"\n ></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanCreate\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanUpdate\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanDelete\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"G\u1EE1 Role kh\u1ECFi Menu n\u00E0y\"\n (click)=\"deleteRoleFromMenu(item)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <ng-template #emptyRoleTpl>\n <div style=\"padding: 16px; text-align: center; color: #64748b\">\n Ch\u01B0a c\u00F3 Role n\u00E0o \u0111\u01B0\u1EE3c g\u00E1n ri\u00EAng cho Menu n\u00E0y. Nh\u1EA5n <strong>\"G\u00E1n th\u00EAm Role\"</strong> \u0111\u1EC3 ph\u00E2n quy\u1EC1n.\n </div>\n </ng-template>\n </div>\n </form>\n </ng-container>\n\n <ng-template #drawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (drawerMode === \"edit\" && editingMenu) {\n <button type=\"button\" nz-button nzDanger nzType=\"default\" (click)=\"delete(editingMenu)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a Menu n\u00E0y\n </button>\n }\n </div>\n\n <div nz-flex [nzGap]=\"8\">\n <button type=\"button\" nz-button nzType=\"default\" (click)=\"closeDrawer()\">H\u1EE7y</button>\n\n @if (drawerMode === \"create\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n [nzLoading]=\"isSaving\"\n (click)=\"submitDrawer(true)\"\n nz-tooltip\n nzTooltipTitle=\"L\u01B0u menu n\u00E0y v\u00E0 gi\u1EEF nguy\u00EAn Drawer \u0111\u1EC3 nh\u1EADp ti\u1EBFp menu ti\u1EBFp theo\"\n >\n <nz-icon nzType=\"plus\"></nz-icon> L\u01B0u & Th\u00EAm ti\u1EBFp\n </button>\n }\n\n <button type=\"button\" nz-button nzType=\"primary\" [nzLoading]=\"isSaving\" (click)=\"submitDrawer(false)\">\n <nz-icon nzType=\"save\"></nz-icon>\n {{ drawerMode === \"create\" ? \"T\u1EA1o Menu\" : \"L\u01B0u thay \u0111\u1ED5i\" }}\n </button>\n </div>\n </div>\n </ng-template>\n</nz-drawer>\n\n<!-- ========================================================================= -->\n<!-- MODAL CH\u1ECCN NHANH DANH S\u00C1CH ROLE \u0110\u1EC2 G\u00C1N V\u00C0O MENU -->\n<!-- ========================================================================= -->\n<nz-modal\n [(nzVisible)]=\"isAddRoleModalVisible\"\n nzTitle=\"Ch\u1ECDn Vai tr\u00F2 (Role) g\u00E1n v\u00E0o Menu\"\n [nzWidth]=\"680\"\n [nzCentered]=\"true\"\n (nzOnCancel)=\"closeAddRoleModal()\"\n (nzOnOk)=\"addRolesToMenu()\"\n nzOkText=\"G\u00E1n c\u00E1c Role \u0111\u00E3 ch\u1ECDn\"\n nzCancelText=\"\u0110\u00F3ng\"\n>\n <ng-container *nzModalContent>\n <nz-input-group [nzPrefix]=\"prefixRoleSearch\" style=\"margin-bottom: 12px\">\n <input\n type=\"text\"\n nz-input\n placeholder=\"T\u00ECm nhanh theo M\u00E3 Role, T\u00EAn Role ho\u1EB7c M\u00F4 t\u1EA3...\"\n [(ngModel)]=\"searchRoleText\"\n (ngModelChange)=\"filterAvailableRoles()\"\n />\n </nz-input-group>\n <ng-template #prefixRoleSearch>\n <nz-icon nzType=\"search\"></nz-icon>\n </ng-template>\n\n <nz-table\n #addRoleTable\n [nzData]=\"lstFilteredRole\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"true\"\n [nzPageSize]=\"8\"\n [nzLoading]=\"isLoadingAvailableRoles\"\n >\n <thead>\n <tr>\n <th\n nzWidth=\"50px\"\n nzShowCheckbox\n [(nzChecked)]=\"isAllRoleChecked\"\n (nzCheckedChange)=\"onAllRoleChecked($event)\"\n [nzIndeterminate]=\"isRoleIndeterminate\"\n ></th>\n <th nzWidth=\"160px\">M\u00E3 Role</th>\n <th>T\u00EAn Role</th>\n <th>M\u00F4 t\u1EA3</th>\n </tr>\n </thead>\n <tbody>\n @for (item of addRoleTable.data; track item.App_Role_Id) {\n <tr class=\"selectable-row\" (click)=\"onRoleChecked(item, !item.checked)\">\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <label nz-checkbox [(ngModel)]=\"item.checked\" (ngModelChange)=\"onRoleChecked(item, $event)\"></label>\n </td>\n <td>\n <code class=\"cell-mono\">{{ item.Code }}</code>\n </td>\n <td style=\"font-weight: 500\">{{ item.Name }}</td>\n <td style=\"color: #64748b\">{{ item.Description }}</td>\n </tr>\n }\n </tbody>\n </nz-table>\n </ng-container>\n</nz-modal>\n", styles: [":host{display:block}.menu-name-cell{display:inline-flex;align-items:center;gap:8px;min-width:0}.menu-name-cell .menu-icon-badge{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:var(--radius-sm, 6px);background:var(--surface-muted, #f1f5f9);color:var(--text-secondary, #475569);flex-shrink:0;font-size:13px;border:1px solid var(--border-default, #e2e8f0)}.menu-name-cell .menu-icon-badge.is-root{background:var(--primary-bg-subtle, #eff6ff);color:var(--primary-color, #1677ff);border-color:var(--primary-border-subtle, #bfdbfe)}.menu-name-cell .menu-icon-badge.is-inactive{opacity:.45}.menu-name-cell .menu-title-wrap{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.menu-name-cell .menu-title-wrap .menu-title-text{font-weight:500;color:var(--text-primary, #1e293b);cursor:pointer;transition:color .15s ease}.menu-name-cell .menu-title-wrap .menu-title-text:hover{color:var(--primary-color, #1677ff);text-decoration:underline}.menu-name-cell .menu-title-wrap .menu-title-text.root-weight{font-weight:600}.url-cell-wrap{display:inline-flex;align-items:center;gap:6px;max-width:100%}.icon-preview-pill{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:var(--radius-xs, 4px);background:var(--surface-subtle, #f8fafc);border:1px solid var(--border-default, #e2e8f0);font-size:12px;color:var(--text-secondary, #334155)}.icon-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px;max-height:175px;overflow-y:auto;padding:8px;background:var(--surface-subtle, #f8fafc);border:1px solid var(--border-default, #e2e8f0);border-radius:var(--radius-sm, 6px);margin-top:6px}.icon-picker-grid .icon-picker-item{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:var(--radius-xs, 4px);border:1px solid transparent;background:var(--surface-card, #ffffff);cursor:pointer;font-size:12px;color:var(--text-secondary, #334155);transition:all .12s ease}.icon-picker-grid .icon-picker-item:hover{border-color:var(--primary-border-subtle, #93c5fd);background:var(--primary-bg-subtle, #eff6ff);color:var(--primary-color, #1677ff)}.icon-picker-grid .icon-picker-item.active{border-color:var(--primary-color, #1677ff);background:var(--surface-selected, #dbeafe);color:var(--primary-active, #1d4ed8);font-weight:600}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.DecimalPipe, name: "number" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i6.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i6.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i6.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i6.NzTdAddOnComponent, selector: "td[nzChecked], td[nzDisabled], td[nzIndeterminate], td[nzIndentSize], td[nzExpand], td[nzShowExpand], td[nzShowCheckbox]", inputs: ["nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzIndentSize", "nzShowExpand", "nzShowCheckbox", "nzExpand", "nzExpandIcon"], outputs: ["nzCheckedChange", "nzExpandChange"] }, { kind: "component", type: i6.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i6.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i6.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i6.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "component", type: i6.NzThSelectionComponent, selector: "th[nzSelections],th[nzChecked],th[nzShowCheckbox],th[nzShowRowSelection]", inputs: ["nzSelections", "nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzShowCheckbox", "nzShowRowSelection"], outputs: ["nzCheckedChange"] }, { kind: "ngmodule", type: NzPaginationModule }, { kind: "component", type: i7.NzPaginationComponent, selector: "nz-pagination", inputs: ["nzShowTotal", "nzItemRender", "nzSize", "nzPageSizeOptions", "nzShowSizeChanger", "nzShowQuickJumper", "nzSimple", "nzDisabled", "nzResponsive", "nzHideOnSinglePage", "nzTotal", "nzPageIndex", "nzPageSize"], outputs: ["nzPageSizeChange", "nzPageIndexChange"], exportAs: ["nzPagination"] }, { kind: "ngmodule", type: NzTreeSelectModule }, { kind: "component", type: i8$1.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzPlacement", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckboxChange"], exportAs: ["nzTreeSelect"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i13.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i13$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i13$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i13$2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i11.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i14.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i3$2.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId", "nzName"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "ngmodule", type: NzDividerModule }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "ngmodule", type: NzPopconfirmModule }, { kind: "component", type: IconCopy, selector: "icon-copy", inputs: ["textToCopy", "tooltip", "size"] }, { kind: "directive", type: AutoFocusDirective, selector: "[appAutoFocus]", inputs: ["appAutoFocus"] }] });
16407
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: MenuListComponent, isStandalone: true, selector: "app-menu-list", usesInheritance: true, ngImport: i0, template: "<div class=\"enterprise-page-shell\">\n <!-- ===================================================================== -->\n <!-- 1. THANH C\u00D4NG C\u1EE4 CHU\u1EA8N ENTERPRISE (UNIFIED FILTER & ACTION TOOLBAR) -->\n <!-- ===================================================================== -->\n <div class=\"enterprise-toolbar\">\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\n <!-- T\u00ECm theo t\u00EAn menu -->\n <nz-input-group [nzPrefix]=\"prefixSearch\" [nzSuffix]=\"clearNameTpl\" nzSize=\"small\" style=\"width: 210px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo t\u00EAn menu...\" [(ngModel)]=\"filter.Name\" />\n </nz-input-group>\n <ng-template #prefixSearch>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearNameTpl>\n @if (filter.Name) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.Name = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo URL -->\n <nz-input-group [nzPrefix]=\"prefixUrl\" [nzSuffix]=\"clearUrlTpl\" nzSize=\"small\" style=\"width: 195px\">\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo \u0111\u01B0\u1EDDng d\u1EABn URL...\" [(ngModel)]=\"filter.Url\" />\n </nz-input-group>\n <ng-template #prefixUrl>\n <nz-icon nzType=\"link\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearUrlTpl>\n @if (filter.Url) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.Url = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo Menu cha -->\n <nz-input-group [nzPrefix]=\"prefixParent\" [nzSuffix]=\"clearParentTpl\" nzSize=\"small\" style=\"width: 175px\">\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo t\u00EAn menu cha...\" [(ngModel)]=\"filter.ParentName\" />\n </nz-input-group>\n <ng-template #prefixParent>\n <nz-icon nzType=\"apartment\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearParentTpl>\n @if (filter.ParentName) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.ParentName = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo v\u1ECB tr\u00ED Header Menu -->\n <nz-select\n nzSize=\"small\"\n nzPlaceHolder=\"L\u00E0 Module\"\n nzAllowClear\n [(ngModel)]=\"filter.IsModule\"\n (ngModelChange)=\"search()\"\n style=\"width: 145px\"\n >\n <nz-option [nzValue]=\"true\" nzLabel=\"L\u00E0 Module\"></nz-option>\n <nz-option [nzValue]=\"false\" nzLabel=\"Kh\u00F4ng l\u00E0 Module\"></nz-option>\n </nz-select>\n\n <!-- L\u1ECDc theo v\u1ECB tr\u00ED Header Menu -->\n <nz-select\n nzSize=\"small\"\n nzPlaceHolder=\"V\u1ECB tr\u00ED hi\u1EC3n th\u1ECB\"\n nzAllowClear\n [(ngModel)]=\"filter.IsHeaderMenu\"\n (ngModelChange)=\"search()\"\n style=\"width: 145px\"\n >\n <nz-option [nzValue]=\"true\" nzLabel=\"Header Menu (Ngang)\"></nz-option>\n <nz-option [nzValue]=\"false\" nzLabel=\"Side Menu (D\u1ECDc)\"></nz-option>\n </nz-select>\n\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\n </button>\n\n @if (hasActiveFilter) {\n <button\n nz-button\n nzType=\"dashed\"\n nzDanger\n nzSize=\"small\"\n (click)=\"resetFilters()\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a to\u00E0n b\u1ED9 \u0111i\u1EC1u ki\u1EC7n l\u1ECDc\"\n >\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a l\u1ECDc\n </button>\n }\n </div>\n\n <div class=\"toolbar-actions\">\n <!-- Th\u1ED1ng k\u00EA nhanh KPI -->\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"T\u1ED5ng s\u1ED1 b\u1EA3n ghi menu th\u1ECFa m\u00E3n b\u1ED9 l\u1ECDc\">\n T\u1ED5ng: <strong>{{ data?.TotalCount || 0 }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Module Menu trong trang hi\u1EC7n t\u1EA1i\">\n Module: <strong>{{ moduleMenuCount }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Header Menu trong trang hi\u1EC7n t\u1EA1i\">\n Header: <strong>{{ headerMenuCount }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Menu \u0111\u01B0\u1EE3c \u0111\u00E1nh d\u1EA5u M\u1EB7c \u0111\u1ECBnh\">\n M\u1EB7c \u0111\u1ECBnh: <strong>{{ defaultMenuCount }}</strong>\n </span>\n\n <!-- Chuy\u1EC3n \u0111\u1ED5i ch\u1EBF \u0111\u1ED9 xem C\u00E2y ph\u00E2n c\u1EA5p vs B\u1EA3ng ph\u1EB3ng -->\n <div nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n [nzType]=\"isTreeTableView ? 'primary' : 'default'\"\n (click)=\"onToggleTreeView(true)\"\n nz-tooltip\n nzTooltipTitle=\"Tree Table View\"\n >\n <nz-icon nzType=\"apartment\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n [nzType]=\"!isTreeTableView ? 'primary' : 'default'\"\n (click)=\"onToggleTreeView(false)\"\n nz-tooltip\n nzTooltipTitle=\"Flat Table View\"\n >\n <nz-icon nzType=\"unordered-list\"></nz-icon>\n </button>\n @if (isTreeTableView) {\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"expandAllNodes()\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng t\u1EA5t c\u1EA3 nh\u00E1nh\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"collapseAllNodes()\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn t\u1EA5t c\u1EA3 nh\u00E1nh\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n }\n </div>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"getData()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openDrawer('create')\">\n <nz-icon nzType=\"plus\"></nz-icon> Th\u00EAm menu m\u1EDBi\n </button>\n </div>\n </div>\n\n <!-- ===================================================================== -->\n <!-- 2. B\u1EA2NG D\u1EEE LI\u1EC6U MENU CHU\u1EA8N ENTERPRISE (TREE TABLE + QUICK ACTIONS) -->\n <!-- ===================================================================== -->\n <nz-table\n #table\n [nzData]=\"displayedItems\"\n [nzLoading]=\"isLoading\"\n [nzBordered]=\"true\"\n [nzSize]=\"'small'\"\n [nzShowPagination]=\"false\"\n [nzFrontPagination]=\"false\"\n [nzScroll]=\"{ x: '1150px', y: 'calc(100vh - 245px)' }\"\n >\n <thead>\n <tr>\n <th nzWidth=\"50px\" class=\"text-center\">#</th>\n <th nzWidth=\"350px\">T\u00EAn Menu & Ph\u00E2n c\u1EA5p</th>\n <th>\u0110\u01B0\u1EDDng d\u1EABn (URL)</th>\n <th nzWidth=\"135px\">Icon hi\u1EC3n th\u1ECB</th>\n <th nzWidth=\"80px\" class=\"text-center\">Th\u1EE9 t\u1EF1</th>\n <th>Menu cha</th>\n <th nzWidth=\"60px\">Module</th>\n <th nzWidth=\"90px\" class=\"text-center\">Header Menu</th>\n <th\n nzWidth=\"70px\"\n class=\"text-center\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u00E1nh d\u1EA5u Menu m\u1EB7c \u0111\u1ECBnh t\u1EEB cha \u0111\u1EBFn con khi ch\u1ECDn Module\"\n >\n M\u1EB7c \u0111\u1ECBnh\n </th>\n <th nzWidth=\"70px\" class=\"text-center\">Hi\u1EC7u l\u1EF1c</th>\n <th nzWidth=\"100px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (row of table.data; track row.App_Menu_Id; let i = $index) {\n <tr\n [class.selected-row]=\"editingMenu?.App_Menu_Id === row.App_Menu_Id && drawerVisible\"\n (dblclick)=\"openDrawer('edit', row)\"\n >\n <!-- 1. STT -->\n <td class=\"text-center cell-number\" style=\"color: #64748b\">\n {{ i + 1 + filter.PageIndex * filter.PageSize }}\n </td>\n\n <!-- 2. T\u00CAN MENU & TREE INDENTATION -->\n <td\n [nzIndentSize]=\"isTreeTableView && !hasActiveFilter ? (row.treeLevel || 0) * 20 : 0\"\n [nzShowExpand]=\"isTreeTableView && !hasActiveFilter && !!row.hasChildren\"\n [nzExpand]=\"!!row.treeExpanded\"\n (nzExpandChange)=\"toggleExpandNode(row, $event)\"\n >\n <div class=\"menu-name-cell\">\n <!-- <span class=\"menu-icon-badge\" [class.is-root]=\"!row.ParentId\" [class.is-inactive]=\"!row.IsActive\">\n <nz-icon [nzType]=\"row.Icon || (!row.ParentId ? 'appstore' : 'caret-right')\"></nz-icon>\n </span> -->\n\n <div class=\"menu-title-wrap\">\n <span\n class=\"menu-title-text\"\n [class.root-weight]=\"!row.ParentId || row.hasChildren\"\n (click)=\"openDrawer('edit', row)\"\n >\n {{ isTreeTableView && !hasActiveFilter ? row.cleanName || row.Name : row.TreeNodeName || row.Name }}\n </span>\n\n @if (row.IsDefaultMenu) {\n <nz-tag\n nzColor=\"processing\"\n style=\"margin: 0; font-size: 11px; line-height: 16px\"\n nz-tooltip\n nzTooltipTitle=\"Menu m\u1EB7c \u0111\u1ECBnh khi truy c\u1EADp Ph\u00E2n h\u1EC7 / Nh\u00E1nh cha\"\n >\n M\u1EB7c \u0111\u1ECBnh\n </nz-tag>\n }\n <!-- @if (row.childrenCount) {\n <nz-tag nzColor=\"default\" style=\"margin: 0; font-size: 11px; line-height: 16px\">\n {{ row.childrenCount }} m\u1EE5c con\n </nz-tag>\n } -->\n @if (row.IsHidden) {\n <nz-tag\n nzColor=\"warning\"\n style=\"margin: 0; font-size: 11px\"\n nz-tooltip\n nzTooltipTitle=\"Menu \u1EA9n kh\u1ECFi thanh \u0111i\u1EC1u h\u01B0\u1EDBng nh\u01B0ng v\u1EABn ki\u1EC3m tra ph\u00E2n quy\u1EC1n URL\"\n >\n \u1EA8n\n </nz-tag>\n }\n @if (row.TranslateKey) {\n <nz-tag nzColor=\"cyan\" style=\"margin: 0; font-size: 11px\">{{ row.TranslateKey }}</nz-tag>\n }\n </div>\n </div>\n </td>\n\n <!-- 3. \u0110\u01AF\u1EDCNG D\u1EAAN URL -->\n <td>\n @if (row.IsModule) {\n <span style=\"color: #94a3b8; font-size: 12px; font-style: italic\">\u2014 Module \u2014</span>\n } @else if (row.Url) {\n <div class=\"url-cell-wrap\">\n <code class=\"url-code-pill\" [title]=\"row.Url\">{{ row.Url }}</code>\n <icon-copy [textToCopy]=\"row.Url\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn URL\"></icon-copy>\n </div>\n } @else {\n <span style=\"color: #94a3b8; font-size: 12px; font-style: italic\">\u2014 Nh\u00F3m menu \u2014</span>\n }\n </td>\n\n <!-- 4. ICON HI\u1EC2N TH\u1ECA -->\n <td>\n @if (row.Icon) {\n <span class=\"icon-preview-pill\">\n <nz-icon [nzType]=\"row.Icon\" style=\"color: var(--primary-color, #1890ff); font-size: 14px\"></nz-icon>\n <span>{{ row.Icon }}</span>\n </span>\n } @else {\n <span style=\"color: #cbd5e1\">\u2014</span>\n }\n </td>\n\n <!-- 5. TH\u1EE8 T\u1EF0 (CHO PH\u00C9P CLICK S\u1EECA NHANH HO\u1EB6C S\u1EECA TRONG DRAWER) -->\n <td class=\"text-center\" (dblclick)=\"$event.stopPropagation()\">\n @if (inlineOrderEditId === row.App_Menu_Id) {\n <nz-input-number\n nzSize=\"small\"\n [(ngModel)]=\"inlineOrderValue\"\n [nzStep]=\"10\"\n style=\"width: 68px\"\n (nzBlur)=\"commitInlineOrderEdit(row)\"\n (keydown.enter)=\"commitInlineOrderEdit(row)\"\n ></nz-input-number>\n } @else {\n <span class=\"order-badge\" (click)=\"startInlineOrderEdit(row, $event)\">\n {{ row.OrderValue }}\n </span>\n }\n </td>\n\n <!-- 6. MENU CHA -->\n <td>\n @if (row.IsModule) {\n <nz-tag nzColor=\"purple\">Module</nz-tag>\n } @else if (row.ParentName) {\n <nz-tag nzColor=\"default\" style=\"max-width: 175px; overflow: hidden; text-overflow: ellipsis\">\n <nz-icon nzType=\"folder\" style=\"margin-right: 4px; color: #f59e0b\"></nz-icon>\n {{ row.ParentName }}\n </nz-tag>\n } @else {\n <nz-tag nzColor=\"gold\">Menu g\u1ED1c (Root)</nz-tag>\n }\n </td>\n\n <!-- 7. MODULE (N\u1EBEU B\u1EACT) -->\n <td class=\"text-center\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsModule\"\n (ngModelChange)=\"quickToggleField(row, 'IsModule', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt \u0111\u00E1nh d\u1EA5u \u0111\u00E2y l\u00E0 Module\"\n ></nz-switch>\n </td>\n\n <!-- 8. HEADER MENU (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsHeaderMenu\"\n (ngModelChange)=\"quickToggleField(row, 'IsHeaderMenu', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt hi\u1EC3n th\u1ECB tr\u00EAn thanh Header ngang\"\n ></nz-switch>\n </td>\n\n <!-- 9. MENU M\u1EB6C \u0110\u1ECANH - IsDefaultMenu (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsDefaultMenu\"\n (ngModelChange)=\"quickToggleField(row, 'IsDefaultMenu', $event)\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u00E1nh d\u1EA5u l\u00E0 Menu m\u1EB7c \u0111\u1ECBnh (t\u1EEB cha \u0111\u1EBFn con) khi ch\u1ECDn Module\"\n ></nz-switch>\n </td>\n\n <!-- 10. HI\u1EC6U L\u1EF0C (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsActive\"\n (ngModelChange)=\"quickToggleField(row, 'IsActive', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt tr\u1EA1ng th\u00E1i ho\u1EA1t \u0111\u1ED9ng c\u1EE7a Menu\"\n ></nz-switch>\n </td>\n\n <!-- 11. THAO T\u00C1C (ACTION BUTTONS CHU\u1EA8N ENTERPRISE) -->\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\n <div class=\"action-btn-group\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n [nzTooltipTitle]=\"'Th\u00EAm menu con tr\u1EF1c thu\u1ED9c: ' + (row.cleanName || row.Name)\"\n (click)=\"addChildMenu(row)\"\n >\n <nz-icon nzType=\"plus-circle\"></nz-icon>\n </button>\n\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n nzTooltipTitle=\"Ph\u00E2n quy\u1EC1n Role & Ch\u1EC9nh s\u1EEDa chi ti\u1EBFt (Drawer)\"\n (click)=\"openDrawer('edit', row)\"\n >\n <nz-icon nzType=\"edit\"></nz-icon>\n </button>\n\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a menu\"\n (click)=\"delete(row)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <!-- ===================================================================== -->\n <!-- 3. PH\u00C2N TRANG (PAGINATION BAR) -->\n <!-- ===================================================================== -->\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"padding: 2px 4px\">\n <div style=\"font-size: 12px; color: #64748b\">\n M\u1EB9o: Nh\u1EA5p v\u00E0o <strong>T\u00EAn menu</strong> ho\u1EB7c <strong>\u0111\u00FAp chu\u1ED9t v\u00E0o d\u00F2ng</strong> \u0111\u1EC3 m\u1EDF nhanh b\u1EA3ng c\u1EA5u h\u00ECnh & ph\u00E2n\n quy\u1EC1n Role b\u00EAn ph\u1EA3i.\n </div>\n\n <nz-pagination\n [nzSize]=\"'small'\"\n [nzPageIndex]=\"filter.PageIndex + 1\"\n [nzPageSize]=\"filter.PageSize\"\n [nzTotal]=\"data?.TotalCount || 0\"\n [nzShowSizeChanger]=\"true\"\n [nzShowTotal]=\"showTotalTpl\"\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\n (nzPageIndexChange)=\"onQueryParamsChange($event - 1, filter.PageSize)\"\n (nzPageSizeChange)=\"onQueryParamsChange(0, $event)\"\n >\n </nz-pagination>\n\n <ng-template #showTotalTpl let-total let-range=\"range\">\n Hi\u1EC3n th\u1ECB <strong>{{ range[0] | number }} - {{ range[1] | number }}</strong> /\n <strong>{{ total | number }}</strong>\n menu\n </ng-template>\n </div>\n</div>\n\n<!-- ========================================================================= -->\n<!-- SIDE DRAWER: TH\u00CAM M\u1EDAI / CH\u1EC8NH S\u1EECA MENU + CH\u1ECCN ICON + PH\u00C2N QUY\u1EC0N ROLE -->\n<!-- ========================================================================= -->\n<nz-drawer\n [nzVisible]=\"drawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"860\"\n [nzClosable]=\"false\"\n [nzMaskClosable]=\"true\"\n [nzTitle]=\"drawerTitleTpl\"\n [nzFooter]=\"drawerFooterTpl\"\n (nzOnClose)=\"closeDrawer()\"\n>\n <ng-template #drawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n Drawer sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n Drawer sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n\n <span class=\"menu-icon-badge\" [class.is-root]=\"!formData.get('ParentId')?.value\">\n <nz-icon [nzType]=\"formData.get('Icon')?.value || 'appstore'\"></nz-icon>\n </span>\n\n <div>\n <strong style=\"font-size: 15px\">\n {{ drawerMode === \"create\" ? \"Th\u00EAm m\u1EDBi Menu ch\u1EE9c n\u0103ng\" : \"Ch\u1EC9nh s\u1EEDa & Ph\u00E2n quy\u1EC1n Menu\" }}\n </strong>\n @if (drawerMode === \"edit\" && editingMenu) {\n <nz-tag nzColor=\"blue\" style=\"margin-left: 8px\">{{ editingMenu.cleanName || editingMenu.Name }}</nz-tag>\n }\n </div>\n </div>\n\n <button type=\"button\" nz-button nzType=\"text\" nzSize=\"small\" (click)=\"closeDrawer()\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n\n <ng-container *nzDrawerContent>\n <form nz-form [formGroup]=\"formData\" (ngSubmit)=\"submitDrawer(false)\">\n <!-- PH\u1EA6N 1: TH\u00D4NG TIN C\u1EA4U H\u00CCNH MENU -->\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"control\" style=\"color: var(--primary-color, #1890ff)\"></nz-icon>\n <span>1. Th\u00F4ng tin c\u1EA5u h\u00ECnh & \u0110i\u1EC1u h\u01B0\u1EDBng</span>\n </div>\n @if (drawerMode === \"edit\" && editingMenu) {\n <button type=\"button\" nz-button nzSize=\"small\" nzType=\"dashed\" (click)=\"addChildMenu(editingMenu)\">\n <nz-icon nzType=\"plus-circle\"></nz-icon> T\u1EA1o menu con cho m\u1EE5c n\u00E0y\n </button>\n }\n </div>\n\n <div nz-row [nzGutter]=\"[16, 12]\">\n <!-- Menu cha -->\n <div nz-col [nzSpan]=\"AppGlobals.MODULE_IN_USE ? 14 : 24\">\n <label class=\"drawer-field-label\">Menu cha (\u0110\u1EC3 tr\u1ED1ng n\u1EBFu l\u00E0 Menu g\u1ED1c)</label>\n <nz-tree-select\n style=\"width: 100%\"\n [nzNodes]=\"filteredDrawerTreeMenu\"\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Menu g\u1ED1c (Root Level) --\"\n [nzDropdownMatchSelectWidth]=\"false\"\n formControlName=\"ParentId\"\n ></nz-tree-select>\n </div>\n\n <!-- T\u00EAn Menu -->\n <div nz-col [nzSpan]=\"16\">\n <label class=\"drawer-field-label\"> T\u00EAn hi\u1EC3n th\u1ECB Menu <span class=\"required-star\">*</span> </label>\n <input\n nz-input\n formControlName=\"Name\"\n [appAutoFocus]=\"drawerVisible\"\n placeholder=\"V\u00ED d\u1EE5: Qu\u1EA3n l\u00FD K\u00EAnh truy\u1EC1n, B\u00E1o c\u00E1o t\u1ED5ng h\u1EE3p...\"\n />\n @if (formData.get(\"Name\")?.invalid && (formData.get(\"Name\")?.dirty || formData.get(\"Name\")?.touched)) {\n <div style=\"color: #ef4444; font-size: 12px; margin-top: 4px\">Vui l\u00F2ng nh\u1EADp t\u00EAn hi\u1EC3n th\u1ECB c\u1EE7a Menu.</div>\n }\n </div>\n\n <!-- Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB -->\n <div nz-col [nzSpan]=\"8\">\n <label class=\"drawer-field-label\">Th\u1EE9 t\u1EF1 s\u1EAFp x\u1EBFp (Order)</label>\n <nz-input-number\n formControlName=\"OrderValue\"\n [nzStep]=\"10\"\n style=\"width: 100%\"\n nzPlaceHolder=\"10, 20, 30...\"\n ></nz-input-number>\n </div>\n\n <!-- \u0110\u01B0\u1EDDng d\u1EABn URL -->\n <div nz-col [nzSpan]=\"16\">\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn \u0111i\u1EC1u h\u01B0\u1EDBng (URL Route)</label>\n <nz-input-group [nzPrefix]=\"urlPrefixTpl\">\n <input\n nz-input\n formControlName=\"Url\"\n placeholder=\"V\u00ED d\u1EE5: /admin/menu ho\u1EB7c /cpt/dashboard (\u0110\u1EC3 tr\u1ED1ng n\u1EBFu l\u00E0 menu cha)\"\n />\n </nz-input-group>\n <ng-template #urlPrefixTpl>\n <nz-icon nzType=\"link\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n </div>\n\n <!-- Translate Key -->\n <div nz-col [nzSpan]=\"8\">\n <label class=\"drawer-field-label\">M\u00E3 \u0111a ng\u00F4n ng\u1EEF (TranslateKey)</label>\n <input nz-input formControlName=\"TranslateKey\" placeholder=\"T\u00F9y ch\u1ECDn (VD: MENU_USER)\" />\n </div>\n\n <!-- Bi\u1EC3u t\u01B0\u1EE3ng Icon + B\u1ED9 ch\u1ECDn tr\u1EF1c quan -->\n <div nz-col [nzSpan]=\"24\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 4px\"> Bi\u1EC3u t\u01B0\u1EE3ng (Ant Design Icon) </label>\n <a style=\"font-size: 12px\" (click)=\"showIconPicker = !showIconPicker\">\n <nz-icon [nzType]=\"showIconPicker ? 'up' : 'appstore'\"></nz-icon>\n {{\n showIconPicker ? \"\u1EA8n b\u1EA3ng ch\u1ECDn nhanh Icon\" : \"M\u1EDF b\u1EA3ng ch\u1ECDn nhanh Icon (\" + commonIcons.length + \")\"\n }}\n </a>\n </div>\n\n <nz-input-group [nzAddOnBefore]=\"iconPreviewAddon\" [nzSuffix]=\"clearIconTpl\">\n <input\n nz-input\n formControlName=\"Icon\"\n placeholder=\"Nh\u1EADp t\u00EAn icon (VD: dashboard, setting, forward, caret-right) ho\u1EB7c ch\u1ECDn b\u00EAn d\u01B0\u1EDBi...\"\n />\n </nz-input-group>\n <ng-template #iconPreviewAddon>\n <span nz-flex nzAlign=\"center\" [nzGap]=\"6\" style=\"padding: 0 4px\">\n <nz-icon\n [nzType]=\"formData.get('Icon')?.value || 'question-circle'\"\n style=\"font-size: 16px; color: var(--primary-color, #1890ff)\"\n ></nz-icon>\n <span style=\"font-size: 12px\">Preview</span>\n </span>\n </ng-template>\n <ng-template #clearIconTpl>\n @if (formData.get(\"Icon\")?.value) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"formData.patchValue({ Icon: '' })\"\n ></nz-icon>\n }\n </ng-template>\n\n @if (showIconPicker) {\n <div class=\"icon-picker-grid\">\n @for (ic of commonIcons; track ic) {\n <button\n type=\"button\"\n class=\"icon-picker-item\"\n [class.active]=\"formData.get('Icon')?.value === ic\"\n (click)=\"selectSuggestedIcon(ic)\"\n >\n <nz-icon [nzType]=\"ic\" style=\"font-size: 15px; flex-shrink: 0\"></nz-icon>\n <span style=\"overflow: hidden; text-overflow: ellipsis\">{{ ic }}</span>\n </button>\n }\n </div>\n }\n </div>\n\n <!-- 4 Switch tr\u1EA1ng th\u00E1i -->\n <div nz-col [nzSpan]=\"24\">\n <div class=\"switch-card-grid\">\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Module</div>\n <div class=\"drawer-field-hint\">Menu n\u00E0y l\u00E0 Module</div>\n </div>\n <nz-switch formControlName=\"IsModule\" nzSize=\"small\"></nz-switch>\n </div>\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Header Menu</div>\n <div class=\"drawer-field-hint\">Hi\u1EC3n th\u1ECB tr\u00EAn thanh ngang</div>\n </div>\n <nz-switch formControlName=\"IsHeaderMenu\" nzSize=\"small\"></nz-switch>\n </div>\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Menu m\u1EB7c \u0111\u1ECBnh</div>\n <div class=\"drawer-field-hint\">T\u1EF1 \u0111\u1ED9ng v\u00E0o khi ch\u1ECDn Module / Menu cha</div>\n </div>\n <nz-switch formControlName=\"IsDefaultMenu\" nzSize=\"small\"></nz-switch>\n </div>\n\n <!-- <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">\u1EA8n tr\u00EAn c\u00E2y Menu</div>\n <div class=\"drawer-field-hint\">Ch\u1EC9 d\u00F9ng \u0111\u1EC3 ki\u1EC3m tra quy\u1EC1n URL</div>\n </div>\n <nz-switch formControlName=\"IsHidden\" nzSize=\"small\"></nz-switch>\n </div> -->\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">\u0110ang hi\u1EC7u l\u1EF1c</div>\n <div class=\"drawer-field-hint\">Cho ph\u00E9p truy c\u1EADp menu</div>\n </div>\n <nz-switch formControlName=\"IsActive\" nzSize=\"small\"></nz-switch>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- PH\u1EA6N 2: MA TR\u1EACN PH\u00C2N QUY\u1EC0N ROLE TRUY C\u1EACP MENU NGAY TRONG DRAWER -->\n <div class=\"drawer-section-card\" style=\"margin-bottom: 0\">\n <div class=\"drawer-section-header\">\n <div>\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"safety-certificate\" style=\"color: #10b981\"></nz-icon>\n <span>2. Ph\u00E2n quy\u1EC1n Vai tr\u00F2 (Role Permissions)</span>\n <nz-tag nzColor=\"green\">{{ lstRoleMenu.length }} Role</nz-tag>\n </div>\n <div class=\"drawer-field-hint\">\n Thi\u1EBFt l\u1EADp c\u00E1c Vai tr\u00F2 (Role) \u0111\u01B0\u1EE3c ph\u00E9p xem v\u00E0 thao t\u00E1c (Th\u00EAm / S\u1EEDa / X\u00F3a) tr\u00EAn ch\u1EE9c n\u0103ng n\u00E0y.\n </div>\n </div>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openAddRoleModal()\">\n <nz-icon nzType=\"usergroup-add\"></nz-icon> G\u00E1n th\u00EAm Role\n </button>\n </div>\n\n <nz-table\n #roleTable\n [nzData]=\"lstRoleMenu\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"false\"\n [nzLoading]=\"isLoadingRoles\"\n [nzNoResult]=\"emptyRoleTpl\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th>Vai tr\u00F2 (Role)</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Ch\u1ECDn t\u1EA5t c\u1EA3 quy\u1EC1n C / U / D\">T\u1EA5t c\u1EA3</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n Th\u00EAm m\u1EDBi (CanCreate)\">\n Th\u00EAm (C)\n </th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n C\u1EADp nh\u1EADt (CanUpdate)\">S\u1EEDa (U)</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n X\u00F3a (CanDelete)\">X\u00F3a (D)</th>\n <th nzWidth=\"60px\" class=\"text-center\">G\u1EE1</th>\n </tr>\n </thead>\n <tbody>\n @for (item of roleTable.data; track item.App_Role_Id; let idx = $index) {\n <tr>\n <td class=\"text-center cell-number\">{{ idx + 1 }}</td>\n <td>\n <div style=\"font-weight: 600\">{{ item.RoleName }}</div>\n <div style=\"font-size: 11.5px; color: #64748b\">\n <code>{{ item.RoleCode }}</code>\n </div>\n </td>\n <td class=\"text-center\">\n <label\n nz-checkbox\n [ngModel]=\"isAllCrudChecked(item)\"\n (ngModelChange)=\"toggleAllCrudForRole(item, $event)\"\n [ngModelOptions]=\"{ standalone: true }\"\n ></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanCreate\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanUpdate\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanDelete\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"G\u1EE1 Role kh\u1ECFi Menu n\u00E0y\"\n (click)=\"deleteRoleFromMenu(item)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <ng-template #emptyRoleTpl>\n <div style=\"padding: 16px; text-align: center; color: #64748b\">\n Ch\u01B0a c\u00F3 Role n\u00E0o \u0111\u01B0\u1EE3c g\u00E1n ri\u00EAng cho Menu n\u00E0y. Nh\u1EA5n <strong>\"G\u00E1n th\u00EAm Role\"</strong> \u0111\u1EC3 ph\u00E2n quy\u1EC1n.\n </div>\n </ng-template>\n </div>\n </form>\n </ng-container>\n\n <ng-template #drawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (drawerMode === \"edit\" && editingMenu) {\n <button type=\"button\" nz-button nzDanger nzType=\"default\" (click)=\"delete(editingMenu)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a Menu n\u00E0y\n </button>\n }\n </div>\n\n <div nz-flex [nzGap]=\"8\">\n <button type=\"button\" nz-button nzType=\"default\" (click)=\"closeDrawer()\">H\u1EE7y</button>\n\n @if (drawerMode === \"create\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n [nzLoading]=\"isSaving\"\n (click)=\"submitDrawer(true)\"\n nz-tooltip\n nzTooltipTitle=\"L\u01B0u menu n\u00E0y v\u00E0 gi\u1EEF nguy\u00EAn Drawer \u0111\u1EC3 nh\u1EADp ti\u1EBFp menu ti\u1EBFp theo\"\n >\n <nz-icon nzType=\"plus\"></nz-icon> L\u01B0u & Th\u00EAm ti\u1EBFp\n </button>\n }\n\n <button type=\"button\" nz-button nzType=\"primary\" [nzLoading]=\"isSaving\" (click)=\"submitDrawer(false)\">\n <nz-icon nzType=\"save\"></nz-icon>\n {{ drawerMode === \"create\" ? \"T\u1EA1o Menu\" : \"L\u01B0u thay \u0111\u1ED5i\" }}\n </button>\n </div>\n </div>\n </ng-template>\n</nz-drawer>\n\n<!-- ========================================================================= -->\n<!-- MODAL CH\u1ECCN NHANH DANH S\u00C1CH ROLE \u0110\u1EC2 G\u00C1N V\u00C0O MENU -->\n<!-- ========================================================================= -->\n<nz-modal\n [(nzVisible)]=\"isAddRoleModalVisible\"\n nzTitle=\"Ch\u1ECDn Vai tr\u00F2 (Role) g\u00E1n v\u00E0o Menu\"\n [nzWidth]=\"680\"\n [nzCentered]=\"true\"\n (nzOnCancel)=\"closeAddRoleModal()\"\n (nzOnOk)=\"addRolesToMenu()\"\n nzOkText=\"G\u00E1n c\u00E1c Role \u0111\u00E3 ch\u1ECDn\"\n nzCancelText=\"\u0110\u00F3ng\"\n>\n <ng-container *nzModalContent>\n <nz-input-group [nzPrefix]=\"prefixRoleSearch\" style=\"margin-bottom: 12px\">\n <input\n type=\"text\"\n nz-input\n placeholder=\"T\u00ECm nhanh theo M\u00E3 Role, T\u00EAn Role ho\u1EB7c M\u00F4 t\u1EA3...\"\n [(ngModel)]=\"searchRoleText\"\n (ngModelChange)=\"filterAvailableRoles()\"\n />\n </nz-input-group>\n <ng-template #prefixRoleSearch>\n <nz-icon nzType=\"search\"></nz-icon>\n </ng-template>\n\n <nz-table\n #addRoleTable\n [nzData]=\"lstFilteredRole\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"true\"\n [nzPageSize]=\"8\"\n [nzLoading]=\"isLoadingAvailableRoles\"\n >\n <thead>\n <tr>\n <th\n nzWidth=\"50px\"\n nzShowCheckbox\n [(nzChecked)]=\"isAllRoleChecked\"\n (nzCheckedChange)=\"onAllRoleChecked($event)\"\n [nzIndeterminate]=\"isRoleIndeterminate\"\n ></th>\n <th nzWidth=\"160px\">M\u00E3 Role</th>\n <th>T\u00EAn Role</th>\n <th>M\u00F4 t\u1EA3</th>\n </tr>\n </thead>\n <tbody>\n @for (item of addRoleTable.data; track item.App_Role_Id) {\n <tr class=\"selectable-row\" (click)=\"onRoleChecked(item, !item.checked)\">\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <label nz-checkbox [(ngModel)]=\"item.checked\" (ngModelChange)=\"onRoleChecked(item, $event)\"></label>\n </td>\n <td>\n <code class=\"cell-mono\">{{ item.Code }}</code>\n </td>\n <td style=\"font-weight: 500\">{{ item.Name }}</td>\n <td style=\"color: #64748b\">{{ item.Description }}</td>\n </tr>\n }\n </tbody>\n </nz-table>\n </ng-container>\n</nz-modal>\n", styles: [":host{display:block}.menu-name-cell{display:inline-flex;align-items:center;gap:8px;min-width:0}.menu-name-cell .menu-icon-badge{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:var(--radius-sm, 6px);background:var(--surface-muted, #f1f5f9);color:var(--text-secondary, #475569);flex-shrink:0;font-size:13px;border:1px solid var(--border-default, #e2e8f0)}.menu-name-cell .menu-icon-badge.is-root{background:var(--primary-bg-subtle, #eff6ff);color:var(--primary-color, #1677ff);border-color:var(--primary-border-subtle, #bfdbfe)}.menu-name-cell .menu-icon-badge.is-inactive{opacity:.45}.menu-name-cell .menu-title-wrap{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.menu-name-cell .menu-title-wrap .menu-title-text{font-weight:500;color:var(--text-primary, #1e293b);cursor:pointer;transition:color .15s ease}.menu-name-cell .menu-title-wrap .menu-title-text:hover{color:var(--primary-color, #1677ff);text-decoration:underline}.menu-name-cell .menu-title-wrap .menu-title-text.root-weight{font-weight:600}.url-cell-wrap{display:inline-flex;align-items:center;gap:6px;max-width:100%}.icon-preview-pill{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:var(--radius-xs, 4px);background:var(--surface-subtle, #f8fafc);border:1px solid var(--border-default, #e2e8f0);font-size:12px;color:var(--text-secondary, #334155)}.icon-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px;max-height:175px;overflow-y:auto;padding:8px;background:var(--surface-subtle, #f8fafc);border:1px solid var(--border-default, #e2e8f0);border-radius:var(--radius-sm, 6px);margin-top:6px}.icon-picker-grid .icon-picker-item{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:var(--radius-xs, 4px);border:1px solid transparent;background:var(--surface-card, #ffffff);cursor:pointer;font-size:12px;color:var(--text-secondary, #334155);transition:all .12s ease}.icon-picker-grid .icon-picker-item:hover{border-color:var(--primary-border-subtle, #93c5fd);background:var(--primary-bg-subtle, #eff6ff);color:var(--primary-color, #1677ff)}.icon-picker-grid .icon-picker-item.active{border-color:var(--primary-color, #1677ff);background:var(--surface-selected, #dbeafe);color:var(--primary-active, #1d4ed8);font-weight:600}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.DecimalPipe, name: "number" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i6.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i6.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i6.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i6.NzTdAddOnComponent, selector: "td[nzChecked], td[nzDisabled], td[nzIndeterminate], td[nzIndentSize], td[nzExpand], td[nzShowExpand], td[nzShowCheckbox]", inputs: ["nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzIndentSize", "nzShowExpand", "nzShowCheckbox", "nzExpand", "nzExpandIcon"], outputs: ["nzCheckedChange", "nzExpandChange"] }, { kind: "component", type: i6.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i6.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i6.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i6.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "component", type: i6.NzThSelectionComponent, selector: "th[nzSelections],th[nzChecked],th[nzShowCheckbox],th[nzShowRowSelection]", inputs: ["nzSelections", "nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzShowCheckbox", "nzShowRowSelection"], outputs: ["nzCheckedChange"] }, { kind: "ngmodule", type: NzPaginationModule }, { kind: "component", type: i7.NzPaginationComponent, selector: "nz-pagination", inputs: ["nzShowTotal", "nzItemRender", "nzSize", "nzPageSizeOptions", "nzShowSizeChanger", "nzShowQuickJumper", "nzSimple", "nzDisabled", "nzResponsive", "nzHideOnSinglePage", "nzTotal", "nzPageIndex", "nzPageSize"], outputs: ["nzPageSizeChange", "nzPageIndexChange"], exportAs: ["nzPagination"] }, { kind: "ngmodule", type: NzTreeSelectModule }, { kind: "component", type: i8$1.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzPlacement", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckboxChange"], exportAs: ["nzTreeSelect"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i13.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i13$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i13$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i13$2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i11.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i14.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i3$2.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId", "nzName"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "ngmodule", type: NzDividerModule }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "ngmodule", type: NzPopconfirmModule }, { kind: "component", type: IconCopy, selector: "icon-copy", inputs: ["textToCopy", "tooltip", "size"] }, { kind: "directive", type: AutoFocusDirective, selector: "[appAutoFocus]", inputs: ["appAutoFocus"] }] });
16334
16408
  }
16335
16409
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuListComponent, decorators: [{
16336
16410
  type: Component,
@@ -16361,7 +16435,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
16361
16435
  NzPopconfirmModule,
16362
16436
  IconCopy,
16363
16437
  AutoFocusDirective,
16364
- ], template: "<div class=\"enterprise-page-shell\">\n <!-- ===================================================================== -->\n <!-- 1. THANH C\u00D4NG C\u1EE4 CHU\u1EA8N ENTERPRISE (UNIFIED FILTER & ACTION TOOLBAR) -->\n <!-- ===================================================================== -->\n <div class=\"enterprise-toolbar\">\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\n <!-- T\u00ECm theo t\u00EAn menu -->\n <nz-input-group [nzPrefix]=\"prefixSearch\" [nzSuffix]=\"clearNameTpl\" nzSize=\"small\" style=\"width: 210px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo t\u00EAn menu...\" [(ngModel)]=\"filter.Name\" />\n </nz-input-group>\n <ng-template #prefixSearch>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearNameTpl>\n @if (filter.Name) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.Name = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo URL -->\n <nz-input-group [nzPrefix]=\"prefixUrl\" [nzSuffix]=\"clearUrlTpl\" nzSize=\"small\" style=\"width: 195px\">\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo \u0111\u01B0\u1EDDng d\u1EABn URL...\" [(ngModel)]=\"filter.Url\" />\n </nz-input-group>\n <ng-template #prefixUrl>\n <nz-icon nzType=\"link\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearUrlTpl>\n @if (filter.Url) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.Url = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo Menu cha -->\n <nz-input-group [nzPrefix]=\"prefixParent\" [nzSuffix]=\"clearParentTpl\" nzSize=\"small\" style=\"width: 175px\">\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo t\u00EAn menu cha...\" [(ngModel)]=\"filter.ParentName\" />\n </nz-input-group>\n <ng-template #prefixParent>\n <nz-icon nzType=\"apartment\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearParentTpl>\n @if (filter.ParentName) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.ParentName = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo v\u1ECB tr\u00ED Header Menu -->\n <nz-select\n nzSize=\"small\"\n nzPlaceHolder=\"L\u00E0 Module\"\n nzAllowClear\n [(ngModel)]=\"filter.IsModule\"\n (ngModelChange)=\"search()\"\n style=\"width: 145px\"\n >\n <nz-option [nzValue]=\"true\" nzLabel=\"L\u00E0 Module\"></nz-option>\n <nz-option [nzValue]=\"false\" nzLabel=\"Kh\u00F4ng l\u00E0 Module\"></nz-option>\n </nz-select>\n\n <!-- L\u1ECDc theo v\u1ECB tr\u00ED Header Menu -->\n <nz-select\n nzSize=\"small\"\n nzPlaceHolder=\"V\u1ECB tr\u00ED hi\u1EC3n th\u1ECB\"\n nzAllowClear\n [(ngModel)]=\"filter.IsHeaderMenu\"\n (ngModelChange)=\"search()\"\n style=\"width: 145px\"\n >\n <nz-option [nzValue]=\"true\" nzLabel=\"Header Menu (Ngang)\"></nz-option>\n <nz-option [nzValue]=\"false\" nzLabel=\"Side Menu (D\u1ECDc)\"></nz-option>\n </nz-select>\n\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\n </button>\n\n @if (hasActiveFilter) {\n <button\n nz-button\n nzType=\"dashed\"\n nzDanger\n nzSize=\"small\"\n (click)=\"resetFilters()\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a to\u00E0n b\u1ED9 \u0111i\u1EC1u ki\u1EC7n l\u1ECDc\"\n >\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a l\u1ECDc\n </button>\n }\n </div>\n\n <div class=\"toolbar-actions\">\n <!-- Th\u1ED1ng k\u00EA nhanh KPI -->\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"T\u1ED5ng s\u1ED1 b\u1EA3n ghi menu th\u1ECFa m\u00E3n b\u1ED9 l\u1ECDc\">\n T\u1ED5ng: <strong>{{ data?.TotalCount || 0 }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Module Menu trong trang hi\u1EC7n t\u1EA1i\">\n Module: <strong>{{ moduleMenuCount }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Header Menu trong trang hi\u1EC7n t\u1EA1i\">\n Header: <strong>{{ headerMenuCount }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Menu \u0111\u01B0\u1EE3c \u0111\u00E1nh d\u1EA5u M\u1EB7c \u0111\u1ECBnh\">\n M\u1EB7c \u0111\u1ECBnh: <strong>{{ defaultMenuCount }}</strong>\n </span>\n\n <!-- Chuy\u1EC3n \u0111\u1ED5i ch\u1EBF \u0111\u1ED9 xem C\u00E2y ph\u00E2n c\u1EA5p vs B\u1EA3ng ph\u1EB3ng -->\n <div nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n [nzType]=\"isTreeTableView ? 'primary' : 'default'\"\n (click)=\"onToggleTreeView(true)\"\n nz-tooltip\n nzTooltipTitle=\"Tree Table View\"\n >\n <nz-icon nzType=\"apartment\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n [nzType]=\"!isTreeTableView ? 'primary' : 'default'\"\n (click)=\"onToggleTreeView(false)\"\n nz-tooltip\n nzTooltipTitle=\"Flat Table View\"\n >\n <nz-icon nzType=\"unordered-list\"></nz-icon>\n </button>\n @if (isTreeTableView) {\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"expandAllNodes()\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng t\u1EA5t c\u1EA3 nh\u00E1nh\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"collapseAllNodes()\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn t\u1EA5t c\u1EA3 nh\u00E1nh\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n }\n </div>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"getData()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openDrawer('create')\">\n <nz-icon nzType=\"plus\"></nz-icon> Th\u00EAm menu m\u1EDBi\n </button>\n </div>\n </div>\n\n <!-- ===================================================================== -->\n <!-- 2. B\u1EA2NG D\u1EEE LI\u1EC6U MENU CHU\u1EA8N ENTERPRISE (TREE TABLE + QUICK ACTIONS) -->\n <!-- ===================================================================== -->\n <nz-table\n #table\n [nzData]=\"displayedItems\"\n [nzLoading]=\"isLoading\"\n [nzBordered]=\"true\"\n [nzSize]=\"'small'\"\n [nzShowPagination]=\"false\"\n [nzFrontPagination]=\"false\"\n [nzScroll]=\"{ x: '1150px', y: 'calc(100vh - 245px)' }\"\n >\n <thead>\n <tr>\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\n <th nzWidth=\"300px\">T\u00EAn Menu & Ph\u00E2n c\u1EA5p</th>\n <th nzWidth=\"250px\">\u0110\u01B0\u1EDDng d\u1EABn (URL)</th>\n <th nzWidth=\"135px\">Icon hi\u1EC3n th\u1ECB</th>\n <th nzWidth=\"85px\" class=\"text-center\">Th\u1EE9 t\u1EF1</th>\n <th nzWidth=\"185px\">Menu cha</th>\n <th nzWidth=\"130px\">Module</th>\n <th nzWidth=\"105px\" class=\"text-center\">Header Menu</th>\n <th\n nzWidth=\"105px\"\n class=\"text-center\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u00E1nh d\u1EA5u Menu m\u1EB7c \u0111\u1ECBnh t\u1EEB cha \u0111\u1EBFn con khi ch\u1ECDn Module\"\n >\n M\u1EB7c \u0111\u1ECBnh\n </th>\n <th nzWidth=\"95px\" class=\"text-center\">Hi\u1EC7u l\u1EF1c</th>\n <th nzWidth=\"135px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (row of table.data; track row.App_Menu_Id; let i = $index) {\n <tr\n [class.selected-row]=\"editingMenu?.App_Menu_Id === row.App_Menu_Id && drawerVisible\"\n (dblclick)=\"openDrawer('edit', row)\"\n >\n <!-- 1. STT -->\n <td class=\"text-center cell-number\" style=\"color: #64748b\">\n {{ i + 1 + filter.PageIndex * filter.PageSize }}\n </td>\n\n <!-- 2. T\u00CAN MENU & TREE INDENTATION -->\n <td\n [nzIndentSize]=\"isTreeTableView && !hasActiveFilter ? (row.treeLevel || 0) * 20 : 0\"\n [nzShowExpand]=\"isTreeTableView && !hasActiveFilter && !!row.hasChildren\"\n [nzExpand]=\"!!row.treeExpanded\"\n (nzExpandChange)=\"toggleExpandNode(row, $event)\"\n >\n <div class=\"menu-name-cell\">\n <span class=\"menu-icon-badge\" [class.is-root]=\"!row.ParentId\" [class.is-inactive]=\"!row.IsActive\">\n <nz-icon [nzType]=\"row.Icon || (!row.ParentId ? 'appstore' : 'caret-right')\"></nz-icon>\n </span>\n\n <div class=\"menu-title-wrap\">\n <span\n class=\"menu-title-text\"\n [class.root-weight]=\"!row.ParentId || row.hasChildren\"\n (click)=\"openDrawer('edit', row)\"\n >\n {{ isTreeTableView && !hasActiveFilter ? row.cleanName || row.Name : row.TreeNodeName || row.Name }}\n </span>\n\n @if (row.IsDefaultMenu) {\n <nz-tag\n nzColor=\"processing\"\n style=\"margin: 0; font-size: 11px; line-height: 16px\"\n nz-tooltip\n nzTooltipTitle=\"Menu m\u1EB7c \u0111\u1ECBnh khi truy c\u1EADp Ph\u00E2n h\u1EC7 / Nh\u00E1nh cha\"\n >\n M\u1EB7c \u0111\u1ECBnh\n </nz-tag>\n }\n @if (row.childrenCount) {\n <nz-tag nzColor=\"default\" style=\"margin: 0; font-size: 11px; line-height: 16px\">\n {{ row.childrenCount }} m\u1EE5c con\n </nz-tag>\n }\n @if (row.IsHidden) {\n <nz-tag\n nzColor=\"warning\"\n style=\"margin: 0; font-size: 11px\"\n nz-tooltip\n nzTooltipTitle=\"Menu \u1EA9n kh\u1ECFi thanh \u0111i\u1EC1u h\u01B0\u1EDBng nh\u01B0ng v\u1EABn ki\u1EC3m tra ph\u00E2n quy\u1EC1n URL\"\n >\n \u1EA8n\n </nz-tag>\n }\n @if (row.TranslateKey) {\n <nz-tag nzColor=\"cyan\" style=\"margin: 0; font-size: 11px\">{{ row.TranslateKey }}</nz-tag>\n }\n </div>\n </div>\n </td>\n\n <!-- 3. \u0110\u01AF\u1EDCNG D\u1EAAN URL -->\n <td>\n @if (row.IsModule) {\n <span style=\"color: #94a3b8; font-size: 12px; font-style: italic\">\u2014 Module \u2014</span>\n } @else if (row.Url) {\n <div class=\"url-cell-wrap\">\n <code class=\"url-code-pill\">{{ row.Url }}</code>\n <icon-copy [textToCopy]=\"row.Url\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn URL\"></icon-copy>\n </div>\n } @else {\n <span style=\"color: #94a3b8; font-size: 12px; font-style: italic\">\u2014 Nh\u00F3m menu \u2014</span>\n }\n </td>\n\n <!-- 4. ICON HI\u1EC2N TH\u1ECA -->\n <td>\n @if (row.Icon) {\n <span class=\"icon-preview-pill\">\n <nz-icon [nzType]=\"row.Icon\" style=\"color: var(--primary-color, #1890ff); font-size: 14px\"></nz-icon>\n <span>{{ row.Icon }}</span>\n </span>\n } @else {\n <span style=\"color: #cbd5e1\">\u2014</span>\n }\n </td>\n\n <!-- 5. TH\u1EE8 T\u1EF0 (CHO PH\u00C9P CLICK S\u1EECA NHANH HO\u1EB6C S\u1EECA TRONG DRAWER) -->\n <td class=\"text-center\">\n @if (inlineOrderEditId === row.App_Menu_Id) {\n <nz-input-number\n nzSize=\"small\"\n [(ngModel)]=\"inlineOrderValue\"\n [nzStep]=\"10\"\n style=\"width: 68px\"\n (nzBlur)=\"commitInlineOrderEdit(row)\"\n (keydown.enter)=\"commitInlineOrderEdit(row)\"\n ></nz-input-number>\n } @else {\n <span\n class=\"order-badge\"\n nz-tooltip\n nzTooltipTitle=\"Nh\u1EA5n \u0111\u1EC3 s\u1EEDa nhanh th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB\"\n (click)=\"startInlineOrderEdit(row, $event)\"\n >\n {{ row.OrderValue }}\n </span>\n }\n </td>\n\n <!-- 6. MENU CHA -->\n <td>\n @if (row.IsModule) {\n <nz-tag nzColor=\"purple\">Module</nz-tag>\n } @else if (row.ParentName) {\n <nz-tag nzColor=\"default\" style=\"max-width: 175px; overflow: hidden; text-overflow: ellipsis\">\n <nz-icon nzType=\"folder\" style=\"margin-right: 4px; color: #f59e0b\"></nz-icon>\n {{ row.ParentName }}\n </nz-tag>\n } @else {\n <nz-tag nzColor=\"gold\">Menu g\u1ED1c (Root)</nz-tag>\n }\n </td>\n\n <!-- 7. MODULE (N\u1EBEU B\u1EACT) -->\n <td class=\"text-center\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsModule\"\n (ngModelChange)=\"quickToggleField(row, 'IsModule', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt \u0111\u00E1nh d\u1EA5u \u0111\u00E2y l\u00E0 Module\"\n ></nz-switch>\n </td>\n\n <!-- 8. HEADER MENU (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsHeaderMenu\"\n (ngModelChange)=\"quickToggleField(row, 'IsHeaderMenu', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt hi\u1EC3n th\u1ECB tr\u00EAn thanh Header ngang\"\n ></nz-switch>\n </td>\n\n <!-- 9. MENU M\u1EB6C \u0110\u1ECANH - IsDefaultMenu (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsDefaultMenu\"\n (ngModelChange)=\"quickToggleField(row, 'IsDefaultMenu', $event)\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u00E1nh d\u1EA5u l\u00E0 Menu m\u1EB7c \u0111\u1ECBnh (t\u1EEB cha \u0111\u1EBFn con) khi ch\u1ECDn Module\"\n ></nz-switch>\n </td>\n\n <!-- 10. HI\u1EC6U L\u1EF0C (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsActive\"\n (ngModelChange)=\"quickToggleField(row, 'IsActive', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt tr\u1EA1ng th\u00E1i ho\u1EA1t \u0111\u1ED9ng c\u1EE7a Menu\"\n ></nz-switch>\n </td>\n\n <!-- 11. THAO T\u00C1C (ACTION BUTTONS CHU\u1EA8N ENTERPRISE) -->\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\n <div class=\"action-btn-group\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n [nzTooltipTitle]=\"'Th\u00EAm menu con tr\u1EF1c thu\u1ED9c: ' + (row.cleanName || row.Name)\"\n (click)=\"addChildMenu(row)\"\n >\n <nz-icon nzType=\"plus-circle\"></nz-icon>\n </button>\n\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n nzTooltipTitle=\"Ph\u00E2n quy\u1EC1n Role & Ch\u1EC9nh s\u1EEDa chi ti\u1EBFt (Drawer)\"\n (click)=\"openDrawer('edit', row)\"\n >\n <nz-icon nzType=\"edit\"></nz-icon>\n </button>\n\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a menu\"\n (click)=\"delete(row)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <!-- ===================================================================== -->\n <!-- 3. PH\u00C2N TRANG (PAGINATION BAR) -->\n <!-- ===================================================================== -->\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"padding: 2px 4px\">\n <div style=\"font-size: 12px; color: #64748b\">\n M\u1EB9o: Nh\u1EA5p v\u00E0o <strong>T\u00EAn menu</strong> ho\u1EB7c <strong>\u0111\u00FAp chu\u1ED9t v\u00E0o d\u00F2ng</strong> \u0111\u1EC3 m\u1EDF nhanh b\u1EA3ng c\u1EA5u h\u00ECnh & ph\u00E2n\n quy\u1EC1n Role b\u00EAn ph\u1EA3i.\n </div>\n\n <nz-pagination\n [nzSize]=\"'small'\"\n [nzPageIndex]=\"filter.PageIndex + 1\"\n [nzPageSize]=\"filter.PageSize\"\n [nzTotal]=\"data?.TotalCount || 0\"\n [nzShowSizeChanger]=\"true\"\n [nzShowTotal]=\"showTotalTpl\"\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\n (nzPageIndexChange)=\"onQueryParamsChange($event - 1, filter.PageSize)\"\n (nzPageSizeChange)=\"onQueryParamsChange(0, $event)\"\n >\n </nz-pagination>\n\n <ng-template #showTotalTpl let-total let-range=\"range\">\n Hi\u1EC3n th\u1ECB <strong>{{ range[0] | number }} - {{ range[1] | number }}</strong> /\n <strong>{{ total | number }}</strong>\n menu\n </ng-template>\n </div>\n</div>\n\n<!-- ========================================================================= -->\n<!-- SIDE DRAWER: TH\u00CAM M\u1EDAI / CH\u1EC8NH S\u1EECA MENU + CH\u1ECCN ICON + PH\u00C2N QUY\u1EC0N ROLE -->\n<!-- ========================================================================= -->\n<nz-drawer\n [nzVisible]=\"drawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"860\"\n [nzClosable]=\"false\"\n [nzMaskClosable]=\"true\"\n [nzTitle]=\"drawerTitleTpl\"\n [nzFooter]=\"drawerFooterTpl\"\n (nzOnClose)=\"closeDrawer()\"\n>\n <ng-template #drawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n Drawer sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n Drawer sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n\n <span class=\"menu-icon-badge\" [class.is-root]=\"!formData.get('ParentId')?.value\">\n <nz-icon [nzType]=\"formData.get('Icon')?.value || 'appstore'\"></nz-icon>\n </span>\n\n <div>\n <strong style=\"font-size: 15px\">\n {{ drawerMode === \"create\" ? \"Th\u00EAm m\u1EDBi Menu ch\u1EE9c n\u0103ng\" : \"Ch\u1EC9nh s\u1EEDa & Ph\u00E2n quy\u1EC1n Menu\" }}\n </strong>\n @if (drawerMode === \"edit\" && editingMenu) {\n <nz-tag nzColor=\"blue\" style=\"margin-left: 8px\">{{ editingMenu.cleanName || editingMenu.Name }}</nz-tag>\n }\n </div>\n </div>\n\n <button type=\"button\" nz-button nzType=\"text\" nzSize=\"small\" (click)=\"closeDrawer()\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n\n <ng-container *nzDrawerContent>\n <form nz-form [formGroup]=\"formData\" (ngSubmit)=\"submitDrawer(false)\">\n <!-- PH\u1EA6N 1: TH\u00D4NG TIN C\u1EA4U H\u00CCNH MENU -->\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"control\" style=\"color: var(--primary-color, #1890ff)\"></nz-icon>\n <span>1. Th\u00F4ng tin c\u1EA5u h\u00ECnh & \u0110i\u1EC1u h\u01B0\u1EDBng</span>\n </div>\n @if (drawerMode === \"edit\" && editingMenu) {\n <button type=\"button\" nz-button nzSize=\"small\" nzType=\"dashed\" (click)=\"addChildMenu(editingMenu)\">\n <nz-icon nzType=\"plus-circle\"></nz-icon> T\u1EA1o menu con cho m\u1EE5c n\u00E0y\n </button>\n }\n </div>\n\n <div nz-row [nzGutter]=\"[16, 12]\">\n <!-- Menu cha -->\n <div nz-col [nzSpan]=\"AppGlobals.MODULE_IN_USE ? 14 : 24\">\n <label class=\"drawer-field-label\">Menu cha (\u0110\u1EC3 tr\u1ED1ng n\u1EBFu l\u00E0 Menu g\u1ED1c)</label>\n <nz-tree-select\n style=\"width: 100%\"\n [nzNodes]=\"filteredDrawerTreeMenu\"\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Menu g\u1ED1c (Root Level) --\"\n [nzDropdownMatchSelectWidth]=\"false\"\n formControlName=\"ParentId\"\n ></nz-tree-select>\n </div>\n\n <!-- T\u00EAn Menu -->\n <div nz-col [nzSpan]=\"16\">\n <label class=\"drawer-field-label\"> T\u00EAn hi\u1EC3n th\u1ECB Menu <span class=\"required-star\">*</span> </label>\n <input\n nz-input\n formControlName=\"Name\"\n [appAutoFocus]=\"drawerVisible\"\n placeholder=\"V\u00ED d\u1EE5: Qu\u1EA3n l\u00FD K\u00EAnh truy\u1EC1n, B\u00E1o c\u00E1o t\u1ED5ng h\u1EE3p...\"\n />\n @if (formData.get(\"Name\")?.invalid && (formData.get(\"Name\")?.dirty || formData.get(\"Name\")?.touched)) {\n <div style=\"color: #ef4444; font-size: 12px; margin-top: 4px\">Vui l\u00F2ng nh\u1EADp t\u00EAn hi\u1EC3n th\u1ECB c\u1EE7a Menu.</div>\n }\n </div>\n\n <!-- Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB -->\n <div nz-col [nzSpan]=\"8\">\n <label class=\"drawer-field-label\">Th\u1EE9 t\u1EF1 s\u1EAFp x\u1EBFp (Order)</label>\n <nz-input-number\n formControlName=\"OrderValue\"\n [nzStep]=\"10\"\n style=\"width: 100%\"\n nzPlaceHolder=\"10, 20, 30...\"\n ></nz-input-number>\n </div>\n\n <!-- \u0110\u01B0\u1EDDng d\u1EABn URL -->\n <div nz-col [nzSpan]=\"16\">\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn \u0111i\u1EC1u h\u01B0\u1EDBng (URL Route)</label>\n <nz-input-group [nzPrefix]=\"urlPrefixTpl\">\n <input\n nz-input\n formControlName=\"Url\"\n placeholder=\"V\u00ED d\u1EE5: /admin/menu ho\u1EB7c /cpt/dashboard (\u0110\u1EC3 tr\u1ED1ng n\u1EBFu l\u00E0 menu cha)\"\n />\n </nz-input-group>\n <ng-template #urlPrefixTpl>\n <nz-icon nzType=\"link\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n </div>\n\n <!-- Translate Key -->\n <div nz-col [nzSpan]=\"8\">\n <label class=\"drawer-field-label\">M\u00E3 \u0111a ng\u00F4n ng\u1EEF (TranslateKey)</label>\n <input nz-input formControlName=\"TranslateKey\" placeholder=\"T\u00F9y ch\u1ECDn (VD: MENU_USER)\" />\n </div>\n\n <!-- Bi\u1EC3u t\u01B0\u1EE3ng Icon + B\u1ED9 ch\u1ECDn tr\u1EF1c quan -->\n <div nz-col [nzSpan]=\"24\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 4px\"> Bi\u1EC3u t\u01B0\u1EE3ng (Ant Design Icon) </label>\n <a style=\"font-size: 12px\" (click)=\"showIconPicker = !showIconPicker\">\n <nz-icon [nzType]=\"showIconPicker ? 'up' : 'appstore'\"></nz-icon>\n {{\n showIconPicker ? \"\u1EA8n b\u1EA3ng ch\u1ECDn nhanh Icon\" : \"M\u1EDF b\u1EA3ng ch\u1ECDn nhanh Icon (\" + commonIcons.length + \")\"\n }}\n </a>\n </div>\n\n <nz-input-group [nzAddOnBefore]=\"iconPreviewAddon\" [nzSuffix]=\"clearIconTpl\">\n <input\n nz-input\n formControlName=\"Icon\"\n placeholder=\"Nh\u1EADp t\u00EAn icon (VD: dashboard, setting, forward, caret-right) ho\u1EB7c ch\u1ECDn b\u00EAn d\u01B0\u1EDBi...\"\n />\n </nz-input-group>\n <ng-template #iconPreviewAddon>\n <span nz-flex nzAlign=\"center\" [nzGap]=\"6\" style=\"padding: 0 4px\">\n <nz-icon\n [nzType]=\"formData.get('Icon')?.value || 'question-circle'\"\n style=\"font-size: 16px; color: var(--primary-color, #1890ff)\"\n ></nz-icon>\n <span style=\"font-size: 12px\">Preview</span>\n </span>\n </ng-template>\n <ng-template #clearIconTpl>\n @if (formData.get(\"Icon\")?.value) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"formData.patchValue({ Icon: '' })\"\n ></nz-icon>\n }\n </ng-template>\n\n @if (showIconPicker) {\n <div class=\"icon-picker-grid\">\n @for (ic of commonIcons; track ic) {\n <button\n type=\"button\"\n class=\"icon-picker-item\"\n [class.active]=\"formData.get('Icon')?.value === ic\"\n (click)=\"selectSuggestedIcon(ic)\"\n >\n <nz-icon [nzType]=\"ic\" style=\"font-size: 15px; flex-shrink: 0\"></nz-icon>\n <span style=\"overflow: hidden; text-overflow: ellipsis\">{{ ic }}</span>\n </button>\n }\n </div>\n }\n </div>\n\n <!-- 4 Switch tr\u1EA1ng th\u00E1i -->\n <div nz-col [nzSpan]=\"24\">\n <div class=\"switch-card-grid\">\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Module</div>\n <div class=\"drawer-field-hint\">Menu n\u00E0y l\u00E0 Module</div>\n </div>\n <nz-switch formControlName=\"IsModule\" nzSize=\"small\"></nz-switch>\n </div>\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Header Menu</div>\n <div class=\"drawer-field-hint\">Hi\u1EC3n th\u1ECB tr\u00EAn thanh ngang</div>\n </div>\n <nz-switch formControlName=\"IsHeaderMenu\" nzSize=\"small\"></nz-switch>\n </div>\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Menu m\u1EB7c \u0111\u1ECBnh</div>\n <div class=\"drawer-field-hint\">T\u1EF1 \u0111\u1ED9ng v\u00E0o khi ch\u1ECDn Module / Menu cha</div>\n </div>\n <nz-switch formControlName=\"IsDefaultMenu\" nzSize=\"small\"></nz-switch>\n </div>\n\n <!-- <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">\u1EA8n tr\u00EAn c\u00E2y Menu</div>\n <div class=\"drawer-field-hint\">Ch\u1EC9 d\u00F9ng \u0111\u1EC3 ki\u1EC3m tra quy\u1EC1n URL</div>\n </div>\n <nz-switch formControlName=\"IsHidden\" nzSize=\"small\"></nz-switch>\n </div> -->\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">\u0110ang hi\u1EC7u l\u1EF1c</div>\n <div class=\"drawer-field-hint\">Cho ph\u00E9p truy c\u1EADp menu</div>\n </div>\n <nz-switch formControlName=\"IsActive\" nzSize=\"small\"></nz-switch>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- PH\u1EA6N 2: MA TR\u1EACN PH\u00C2N QUY\u1EC0N ROLE TRUY C\u1EACP MENU NGAY TRONG DRAWER -->\n <div class=\"drawer-section-card\" style=\"margin-bottom: 0\">\n <div class=\"drawer-section-header\">\n <div>\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"safety-certificate\" style=\"color: #10b981\"></nz-icon>\n <span>2. Ph\u00E2n quy\u1EC1n Vai tr\u00F2 (Role Permissions)</span>\n <nz-tag nzColor=\"green\">{{ lstRoleMenu.length }} Role</nz-tag>\n </div>\n <div class=\"drawer-field-hint\">\n Thi\u1EBFt l\u1EADp c\u00E1c Vai tr\u00F2 (Role) \u0111\u01B0\u1EE3c ph\u00E9p xem v\u00E0 thao t\u00E1c (Th\u00EAm / S\u1EEDa / X\u00F3a) tr\u00EAn ch\u1EE9c n\u0103ng n\u00E0y.\n </div>\n </div>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openAddRoleModal()\">\n <nz-icon nzType=\"usergroup-add\"></nz-icon> G\u00E1n th\u00EAm Role\n </button>\n </div>\n\n <nz-table\n #roleTable\n [nzData]=\"lstRoleMenu\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"false\"\n [nzLoading]=\"isLoadingRoles\"\n [nzNoResult]=\"emptyRoleTpl\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th>Vai tr\u00F2 (Role)</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Ch\u1ECDn t\u1EA5t c\u1EA3 quy\u1EC1n C / U / D\">T\u1EA5t c\u1EA3</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n Th\u00EAm m\u1EDBi (CanCreate)\">\n Th\u00EAm (C)\n </th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n C\u1EADp nh\u1EADt (CanUpdate)\">S\u1EEDa (U)</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n X\u00F3a (CanDelete)\">X\u00F3a (D)</th>\n <th nzWidth=\"60px\" class=\"text-center\">G\u1EE1</th>\n </tr>\n </thead>\n <tbody>\n @for (item of roleTable.data; track item.App_Role_Id; let idx = $index) {\n <tr>\n <td class=\"text-center cell-number\">{{ idx + 1 }}</td>\n <td>\n <div style=\"font-weight: 600\">{{ item.RoleName }}</div>\n <div style=\"font-size: 11.5px; color: #64748b\">\n <code>{{ item.RoleCode }}</code>\n </div>\n </td>\n <td class=\"text-center\">\n <label\n nz-checkbox\n [ngModel]=\"isAllCrudChecked(item)\"\n (ngModelChange)=\"toggleAllCrudForRole(item, $event)\"\n [ngModelOptions]=\"{ standalone: true }\"\n ></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanCreate\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanUpdate\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanDelete\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"G\u1EE1 Role kh\u1ECFi Menu n\u00E0y\"\n (click)=\"deleteRoleFromMenu(item)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <ng-template #emptyRoleTpl>\n <div style=\"padding: 16px; text-align: center; color: #64748b\">\n Ch\u01B0a c\u00F3 Role n\u00E0o \u0111\u01B0\u1EE3c g\u00E1n ri\u00EAng cho Menu n\u00E0y. Nh\u1EA5n <strong>\"G\u00E1n th\u00EAm Role\"</strong> \u0111\u1EC3 ph\u00E2n quy\u1EC1n.\n </div>\n </ng-template>\n </div>\n </form>\n </ng-container>\n\n <ng-template #drawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (drawerMode === \"edit\" && editingMenu) {\n <button type=\"button\" nz-button nzDanger nzType=\"default\" (click)=\"delete(editingMenu)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a Menu n\u00E0y\n </button>\n }\n </div>\n\n <div nz-flex [nzGap]=\"8\">\n <button type=\"button\" nz-button nzType=\"default\" (click)=\"closeDrawer()\">H\u1EE7y</button>\n\n @if (drawerMode === \"create\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n [nzLoading]=\"isSaving\"\n (click)=\"submitDrawer(true)\"\n nz-tooltip\n nzTooltipTitle=\"L\u01B0u menu n\u00E0y v\u00E0 gi\u1EEF nguy\u00EAn Drawer \u0111\u1EC3 nh\u1EADp ti\u1EBFp menu ti\u1EBFp theo\"\n >\n <nz-icon nzType=\"plus\"></nz-icon> L\u01B0u & Th\u00EAm ti\u1EBFp\n </button>\n }\n\n <button type=\"button\" nz-button nzType=\"primary\" [nzLoading]=\"isSaving\" (click)=\"submitDrawer(false)\">\n <nz-icon nzType=\"save\"></nz-icon>\n {{ drawerMode === \"create\" ? \"T\u1EA1o Menu\" : \"L\u01B0u thay \u0111\u1ED5i\" }}\n </button>\n </div>\n </div>\n </ng-template>\n</nz-drawer>\n\n<!-- ========================================================================= -->\n<!-- MODAL CH\u1ECCN NHANH DANH S\u00C1CH ROLE \u0110\u1EC2 G\u00C1N V\u00C0O MENU -->\n<!-- ========================================================================= -->\n<nz-modal\n [(nzVisible)]=\"isAddRoleModalVisible\"\n nzTitle=\"Ch\u1ECDn Vai tr\u00F2 (Role) g\u00E1n v\u00E0o Menu\"\n [nzWidth]=\"680\"\n [nzCentered]=\"true\"\n (nzOnCancel)=\"closeAddRoleModal()\"\n (nzOnOk)=\"addRolesToMenu()\"\n nzOkText=\"G\u00E1n c\u00E1c Role \u0111\u00E3 ch\u1ECDn\"\n nzCancelText=\"\u0110\u00F3ng\"\n>\n <ng-container *nzModalContent>\n <nz-input-group [nzPrefix]=\"prefixRoleSearch\" style=\"margin-bottom: 12px\">\n <input\n type=\"text\"\n nz-input\n placeholder=\"T\u00ECm nhanh theo M\u00E3 Role, T\u00EAn Role ho\u1EB7c M\u00F4 t\u1EA3...\"\n [(ngModel)]=\"searchRoleText\"\n (ngModelChange)=\"filterAvailableRoles()\"\n />\n </nz-input-group>\n <ng-template #prefixRoleSearch>\n <nz-icon nzType=\"search\"></nz-icon>\n </ng-template>\n\n <nz-table\n #addRoleTable\n [nzData]=\"lstFilteredRole\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"true\"\n [nzPageSize]=\"8\"\n [nzLoading]=\"isLoadingAvailableRoles\"\n >\n <thead>\n <tr>\n <th\n nzWidth=\"50px\"\n nzShowCheckbox\n [(nzChecked)]=\"isAllRoleChecked\"\n (nzCheckedChange)=\"onAllRoleChecked($event)\"\n [nzIndeterminate]=\"isRoleIndeterminate\"\n ></th>\n <th nzWidth=\"160px\">M\u00E3 Role</th>\n <th>T\u00EAn Role</th>\n <th>M\u00F4 t\u1EA3</th>\n </tr>\n </thead>\n <tbody>\n @for (item of addRoleTable.data; track item.App_Role_Id) {\n <tr class=\"selectable-row\" (click)=\"onRoleChecked(item, !item.checked)\">\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <label nz-checkbox [(ngModel)]=\"item.checked\" (ngModelChange)=\"onRoleChecked(item, $event)\"></label>\n </td>\n <td>\n <code class=\"cell-mono\">{{ item.Code }}</code>\n </td>\n <td style=\"font-weight: 500\">{{ item.Name }}</td>\n <td style=\"color: #64748b\">{{ item.Description }}</td>\n </tr>\n }\n </tbody>\n </nz-table>\n </ng-container>\n</nz-modal>\n", styles: [":host{display:block}.menu-name-cell{display:inline-flex;align-items:center;gap:8px;min-width:0}.menu-name-cell .menu-icon-badge{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:var(--radius-sm, 6px);background:var(--surface-muted, #f1f5f9);color:var(--text-secondary, #475569);flex-shrink:0;font-size:13px;border:1px solid var(--border-default, #e2e8f0)}.menu-name-cell .menu-icon-badge.is-root{background:var(--primary-bg-subtle, #eff6ff);color:var(--primary-color, #1677ff);border-color:var(--primary-border-subtle, #bfdbfe)}.menu-name-cell .menu-icon-badge.is-inactive{opacity:.45}.menu-name-cell .menu-title-wrap{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.menu-name-cell .menu-title-wrap .menu-title-text{font-weight:500;color:var(--text-primary, #1e293b);cursor:pointer;transition:color .15s ease}.menu-name-cell .menu-title-wrap .menu-title-text:hover{color:var(--primary-color, #1677ff);text-decoration:underline}.menu-name-cell .menu-title-wrap .menu-title-text.root-weight{font-weight:600}.url-cell-wrap{display:inline-flex;align-items:center;gap:6px;max-width:100%}.icon-preview-pill{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:var(--radius-xs, 4px);background:var(--surface-subtle, #f8fafc);border:1px solid var(--border-default, #e2e8f0);font-size:12px;color:var(--text-secondary, #334155)}.icon-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px;max-height:175px;overflow-y:auto;padding:8px;background:var(--surface-subtle, #f8fafc);border:1px solid var(--border-default, #e2e8f0);border-radius:var(--radius-sm, 6px);margin-top:6px}.icon-picker-grid .icon-picker-item{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:var(--radius-xs, 4px);border:1px solid transparent;background:var(--surface-card, #ffffff);cursor:pointer;font-size:12px;color:var(--text-secondary, #334155);transition:all .12s ease}.icon-picker-grid .icon-picker-item:hover{border-color:var(--primary-border-subtle, #93c5fd);background:var(--primary-bg-subtle, #eff6ff);color:var(--primary-color, #1677ff)}.icon-picker-grid .icon-picker-item.active{border-color:var(--primary-color, #1677ff);background:var(--surface-selected, #dbeafe);color:var(--primary-active, #1d4ed8);font-weight:600}\n"] }]
16438
+ ], template: "<div class=\"enterprise-page-shell\">\n <!-- ===================================================================== -->\n <!-- 1. THANH C\u00D4NG C\u1EE4 CHU\u1EA8N ENTERPRISE (UNIFIED FILTER & ACTION TOOLBAR) -->\n <!-- ===================================================================== -->\n <div class=\"enterprise-toolbar\">\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\n <!-- T\u00ECm theo t\u00EAn menu -->\n <nz-input-group [nzPrefix]=\"prefixSearch\" [nzSuffix]=\"clearNameTpl\" nzSize=\"small\" style=\"width: 210px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo t\u00EAn menu...\" [(ngModel)]=\"filter.Name\" />\n </nz-input-group>\n <ng-template #prefixSearch>\n <nz-icon nzType=\"search\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearNameTpl>\n @if (filter.Name) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.Name = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo URL -->\n <nz-input-group [nzPrefix]=\"prefixUrl\" [nzSuffix]=\"clearUrlTpl\" nzSize=\"small\" style=\"width: 195px\">\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo \u0111\u01B0\u1EDDng d\u1EABn URL...\" [(ngModel)]=\"filter.Url\" />\n </nz-input-group>\n <ng-template #prefixUrl>\n <nz-icon nzType=\"link\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearUrlTpl>\n @if (filter.Url) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.Url = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo Menu cha -->\n <nz-input-group [nzPrefix]=\"prefixParent\" [nzSuffix]=\"clearParentTpl\" nzSize=\"small\" style=\"width: 175px\">\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo t\u00EAn menu cha...\" [(ngModel)]=\"filter.ParentName\" />\n </nz-input-group>\n <ng-template #prefixParent>\n <nz-icon nzType=\"apartment\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n <ng-template #clearParentTpl>\n @if (filter.ParentName) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"filter.ParentName = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <!-- L\u1ECDc theo v\u1ECB tr\u00ED Header Menu -->\n <nz-select\n nzSize=\"small\"\n nzPlaceHolder=\"L\u00E0 Module\"\n nzAllowClear\n [(ngModel)]=\"filter.IsModule\"\n (ngModelChange)=\"search()\"\n style=\"width: 145px\"\n >\n <nz-option [nzValue]=\"true\" nzLabel=\"L\u00E0 Module\"></nz-option>\n <nz-option [nzValue]=\"false\" nzLabel=\"Kh\u00F4ng l\u00E0 Module\"></nz-option>\n </nz-select>\n\n <!-- L\u1ECDc theo v\u1ECB tr\u00ED Header Menu -->\n <nz-select\n nzSize=\"small\"\n nzPlaceHolder=\"V\u1ECB tr\u00ED hi\u1EC3n th\u1ECB\"\n nzAllowClear\n [(ngModel)]=\"filter.IsHeaderMenu\"\n (ngModelChange)=\"search()\"\n style=\"width: 145px\"\n >\n <nz-option [nzValue]=\"true\" nzLabel=\"Header Menu (Ngang)\"></nz-option>\n <nz-option [nzValue]=\"false\" nzLabel=\"Side Menu (D\u1ECDc)\"></nz-option>\n </nz-select>\n\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\n </button>\n\n @if (hasActiveFilter) {\n <button\n nz-button\n nzType=\"dashed\"\n nzDanger\n nzSize=\"small\"\n (click)=\"resetFilters()\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a to\u00E0n b\u1ED9 \u0111i\u1EC1u ki\u1EC7n l\u1ECDc\"\n >\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a l\u1ECDc\n </button>\n }\n </div>\n\n <div class=\"toolbar-actions\">\n <!-- Th\u1ED1ng k\u00EA nhanh KPI -->\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"T\u1ED5ng s\u1ED1 b\u1EA3n ghi menu th\u1ECFa m\u00E3n b\u1ED9 l\u1ECDc\">\n T\u1ED5ng: <strong>{{ data?.TotalCount || 0 }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Module Menu trong trang hi\u1EC7n t\u1EA1i\">\n Module: <strong>{{ moduleMenuCount }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Header Menu trong trang hi\u1EC7n t\u1EA1i\">\n Header: <strong>{{ headerMenuCount }}</strong>\n </span>\n <span class=\"kpi-pill\" nz-tooltip nzTooltipTitle=\"S\u1ED1 l\u01B0\u1EE3ng Menu \u0111\u01B0\u1EE3c \u0111\u00E1nh d\u1EA5u M\u1EB7c \u0111\u1ECBnh\">\n M\u1EB7c \u0111\u1ECBnh: <strong>{{ defaultMenuCount }}</strong>\n </span>\n\n <!-- Chuy\u1EC3n \u0111\u1ED5i ch\u1EBF \u0111\u1ED9 xem C\u00E2y ph\u00E2n c\u1EA5p vs B\u1EA3ng ph\u1EB3ng -->\n <div nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n [nzType]=\"isTreeTableView ? 'primary' : 'default'\"\n (click)=\"onToggleTreeView(true)\"\n nz-tooltip\n nzTooltipTitle=\"Tree Table View\"\n >\n <nz-icon nzType=\"apartment\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n [nzType]=\"!isTreeTableView ? 'primary' : 'default'\"\n (click)=\"onToggleTreeView(false)\"\n nz-tooltip\n nzTooltipTitle=\"Flat Table View\"\n >\n <nz-icon nzType=\"unordered-list\"></nz-icon>\n </button>\n @if (isTreeTableView) {\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"expandAllNodes()\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng t\u1EA5t c\u1EA3 nh\u00E1nh\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"collapseAllNodes()\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn t\u1EA5t c\u1EA3 nh\u00E1nh\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n }\n </div>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"getData()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openDrawer('create')\">\n <nz-icon nzType=\"plus\"></nz-icon> Th\u00EAm menu m\u1EDBi\n </button>\n </div>\n </div>\n\n <!-- ===================================================================== -->\n <!-- 2. B\u1EA2NG D\u1EEE LI\u1EC6U MENU CHU\u1EA8N ENTERPRISE (TREE TABLE + QUICK ACTIONS) -->\n <!-- ===================================================================== -->\n <nz-table\n #table\n [nzData]=\"displayedItems\"\n [nzLoading]=\"isLoading\"\n [nzBordered]=\"true\"\n [nzSize]=\"'small'\"\n [nzShowPagination]=\"false\"\n [nzFrontPagination]=\"false\"\n [nzScroll]=\"{ x: '1150px', y: 'calc(100vh - 245px)' }\"\n >\n <thead>\n <tr>\n <th nzWidth=\"50px\" class=\"text-center\">#</th>\n <th nzWidth=\"350px\">T\u00EAn Menu & Ph\u00E2n c\u1EA5p</th>\n <th>\u0110\u01B0\u1EDDng d\u1EABn (URL)</th>\n <th nzWidth=\"135px\">Icon hi\u1EC3n th\u1ECB</th>\n <th nzWidth=\"80px\" class=\"text-center\">Th\u1EE9 t\u1EF1</th>\n <th>Menu cha</th>\n <th nzWidth=\"60px\">Module</th>\n <th nzWidth=\"90px\" class=\"text-center\">Header Menu</th>\n <th\n nzWidth=\"70px\"\n class=\"text-center\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u00E1nh d\u1EA5u Menu m\u1EB7c \u0111\u1ECBnh t\u1EEB cha \u0111\u1EBFn con khi ch\u1ECDn Module\"\n >\n M\u1EB7c \u0111\u1ECBnh\n </th>\n <th nzWidth=\"70px\" class=\"text-center\">Hi\u1EC7u l\u1EF1c</th>\n <th nzWidth=\"100px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (row of table.data; track row.App_Menu_Id; let i = $index) {\n <tr\n [class.selected-row]=\"editingMenu?.App_Menu_Id === row.App_Menu_Id && drawerVisible\"\n (dblclick)=\"openDrawer('edit', row)\"\n >\n <!-- 1. STT -->\n <td class=\"text-center cell-number\" style=\"color: #64748b\">\n {{ i + 1 + filter.PageIndex * filter.PageSize }}\n </td>\n\n <!-- 2. T\u00CAN MENU & TREE INDENTATION -->\n <td\n [nzIndentSize]=\"isTreeTableView && !hasActiveFilter ? (row.treeLevel || 0) * 20 : 0\"\n [nzShowExpand]=\"isTreeTableView && !hasActiveFilter && !!row.hasChildren\"\n [nzExpand]=\"!!row.treeExpanded\"\n (nzExpandChange)=\"toggleExpandNode(row, $event)\"\n >\n <div class=\"menu-name-cell\">\n <!-- <span class=\"menu-icon-badge\" [class.is-root]=\"!row.ParentId\" [class.is-inactive]=\"!row.IsActive\">\n <nz-icon [nzType]=\"row.Icon || (!row.ParentId ? 'appstore' : 'caret-right')\"></nz-icon>\n </span> -->\n\n <div class=\"menu-title-wrap\">\n <span\n class=\"menu-title-text\"\n [class.root-weight]=\"!row.ParentId || row.hasChildren\"\n (click)=\"openDrawer('edit', row)\"\n >\n {{ isTreeTableView && !hasActiveFilter ? row.cleanName || row.Name : row.TreeNodeName || row.Name }}\n </span>\n\n @if (row.IsDefaultMenu) {\n <nz-tag\n nzColor=\"processing\"\n style=\"margin: 0; font-size: 11px; line-height: 16px\"\n nz-tooltip\n nzTooltipTitle=\"Menu m\u1EB7c \u0111\u1ECBnh khi truy c\u1EADp Ph\u00E2n h\u1EC7 / Nh\u00E1nh cha\"\n >\n M\u1EB7c \u0111\u1ECBnh\n </nz-tag>\n }\n <!-- @if (row.childrenCount) {\n <nz-tag nzColor=\"default\" style=\"margin: 0; font-size: 11px; line-height: 16px\">\n {{ row.childrenCount }} m\u1EE5c con\n </nz-tag>\n } -->\n @if (row.IsHidden) {\n <nz-tag\n nzColor=\"warning\"\n style=\"margin: 0; font-size: 11px\"\n nz-tooltip\n nzTooltipTitle=\"Menu \u1EA9n kh\u1ECFi thanh \u0111i\u1EC1u h\u01B0\u1EDBng nh\u01B0ng v\u1EABn ki\u1EC3m tra ph\u00E2n quy\u1EC1n URL\"\n >\n \u1EA8n\n </nz-tag>\n }\n @if (row.TranslateKey) {\n <nz-tag nzColor=\"cyan\" style=\"margin: 0; font-size: 11px\">{{ row.TranslateKey }}</nz-tag>\n }\n </div>\n </div>\n </td>\n\n <!-- 3. \u0110\u01AF\u1EDCNG D\u1EAAN URL -->\n <td>\n @if (row.IsModule) {\n <span style=\"color: #94a3b8; font-size: 12px; font-style: italic\">\u2014 Module \u2014</span>\n } @else if (row.Url) {\n <div class=\"url-cell-wrap\">\n <code class=\"url-code-pill\" [title]=\"row.Url\">{{ row.Url }}</code>\n <icon-copy [textToCopy]=\"row.Url\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn URL\"></icon-copy>\n </div>\n } @else {\n <span style=\"color: #94a3b8; font-size: 12px; font-style: italic\">\u2014 Nh\u00F3m menu \u2014</span>\n }\n </td>\n\n <!-- 4. ICON HI\u1EC2N TH\u1ECA -->\n <td>\n @if (row.Icon) {\n <span class=\"icon-preview-pill\">\n <nz-icon [nzType]=\"row.Icon\" style=\"color: var(--primary-color, #1890ff); font-size: 14px\"></nz-icon>\n <span>{{ row.Icon }}</span>\n </span>\n } @else {\n <span style=\"color: #cbd5e1\">\u2014</span>\n }\n </td>\n\n <!-- 5. TH\u1EE8 T\u1EF0 (CHO PH\u00C9P CLICK S\u1EECA NHANH HO\u1EB6C S\u1EECA TRONG DRAWER) -->\n <td class=\"text-center\" (dblclick)=\"$event.stopPropagation()\">\n @if (inlineOrderEditId === row.App_Menu_Id) {\n <nz-input-number\n nzSize=\"small\"\n [(ngModel)]=\"inlineOrderValue\"\n [nzStep]=\"10\"\n style=\"width: 68px\"\n (nzBlur)=\"commitInlineOrderEdit(row)\"\n (keydown.enter)=\"commitInlineOrderEdit(row)\"\n ></nz-input-number>\n } @else {\n <span class=\"order-badge\" (click)=\"startInlineOrderEdit(row, $event)\">\n {{ row.OrderValue }}\n </span>\n }\n </td>\n\n <!-- 6. MENU CHA -->\n <td>\n @if (row.IsModule) {\n <nz-tag nzColor=\"purple\">Module</nz-tag>\n } @else if (row.ParentName) {\n <nz-tag nzColor=\"default\" style=\"max-width: 175px; overflow: hidden; text-overflow: ellipsis\">\n <nz-icon nzType=\"folder\" style=\"margin-right: 4px; color: #f59e0b\"></nz-icon>\n {{ row.ParentName }}\n </nz-tag>\n } @else {\n <nz-tag nzColor=\"gold\">Menu g\u1ED1c (Root)</nz-tag>\n }\n </td>\n\n <!-- 7. MODULE (N\u1EBEU B\u1EACT) -->\n <td class=\"text-center\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsModule\"\n (ngModelChange)=\"quickToggleField(row, 'IsModule', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt \u0111\u00E1nh d\u1EA5u \u0111\u00E2y l\u00E0 Module\"\n ></nz-switch>\n </td>\n\n <!-- 8. HEADER MENU (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsHeaderMenu\"\n (ngModelChange)=\"quickToggleField(row, 'IsHeaderMenu', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt hi\u1EC3n th\u1ECB tr\u00EAn thanh Header ngang\"\n ></nz-switch>\n </td>\n\n <!-- 9. MENU M\u1EB6C \u0110\u1ECANH - IsDefaultMenu (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsDefaultMenu\"\n (ngModelChange)=\"quickToggleField(row, 'IsDefaultMenu', $event)\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u00E1nh d\u1EA5u l\u00E0 Menu m\u1EB7c \u0111\u1ECBnh (t\u1EEB cha \u0111\u1EBFn con) khi ch\u1ECDn Module\"\n ></nz-switch>\n </td>\n\n <!-- 10. HI\u1EC6U L\u1EF0C (QUICK SWITCH) -->\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsActive\"\n (ngModelChange)=\"quickToggleField(row, 'IsActive', $event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt/T\u1EAFt tr\u1EA1ng th\u00E1i ho\u1EA1t \u0111\u1ED9ng c\u1EE7a Menu\"\n ></nz-switch>\n </td>\n\n <!-- 11. THAO T\u00C1C (ACTION BUTTONS CHU\u1EA8N ENTERPRISE) -->\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\n <div class=\"action-btn-group\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n [nzTooltipTitle]=\"'Th\u00EAm menu con tr\u1EF1c thu\u1ED9c: ' + (row.cleanName || row.Name)\"\n (click)=\"addChildMenu(row)\"\n >\n <nz-icon nzType=\"plus-circle\"></nz-icon>\n </button>\n\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n nzTooltipTitle=\"Ph\u00E2n quy\u1EC1n Role & Ch\u1EC9nh s\u1EEDa chi ti\u1EBFt (Drawer)\"\n (click)=\"openDrawer('edit', row)\"\n >\n <nz-icon nzType=\"edit\"></nz-icon>\n </button>\n\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a menu\"\n (click)=\"delete(row)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <!-- ===================================================================== -->\n <!-- 3. PH\u00C2N TRANG (PAGINATION BAR) -->\n <!-- ===================================================================== -->\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"padding: 2px 4px\">\n <div style=\"font-size: 12px; color: #64748b\">\n M\u1EB9o: Nh\u1EA5p v\u00E0o <strong>T\u00EAn menu</strong> ho\u1EB7c <strong>\u0111\u00FAp chu\u1ED9t v\u00E0o d\u00F2ng</strong> \u0111\u1EC3 m\u1EDF nhanh b\u1EA3ng c\u1EA5u h\u00ECnh & ph\u00E2n\n quy\u1EC1n Role b\u00EAn ph\u1EA3i.\n </div>\n\n <nz-pagination\n [nzSize]=\"'small'\"\n [nzPageIndex]=\"filter.PageIndex + 1\"\n [nzPageSize]=\"filter.PageSize\"\n [nzTotal]=\"data?.TotalCount || 0\"\n [nzShowSizeChanger]=\"true\"\n [nzShowTotal]=\"showTotalTpl\"\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\n (nzPageIndexChange)=\"onQueryParamsChange($event - 1, filter.PageSize)\"\n (nzPageSizeChange)=\"onQueryParamsChange(0, $event)\"\n >\n </nz-pagination>\n\n <ng-template #showTotalTpl let-total let-range=\"range\">\n Hi\u1EC3n th\u1ECB <strong>{{ range[0] | number }} - {{ range[1] | number }}</strong> /\n <strong>{{ total | number }}</strong>\n menu\n </ng-template>\n </div>\n</div>\n\n<!-- ========================================================================= -->\n<!-- SIDE DRAWER: TH\u00CAM M\u1EDAI / CH\u1EC8NH S\u1EECA MENU + CH\u1ECCN ICON + PH\u00C2N QUY\u1EC0N ROLE -->\n<!-- ========================================================================= -->\n<nz-drawer\n [nzVisible]=\"drawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"860\"\n [nzClosable]=\"false\"\n [nzMaskClosable]=\"true\"\n [nzTitle]=\"drawerTitleTpl\"\n [nzFooter]=\"drawerFooterTpl\"\n (nzOnClose)=\"closeDrawer()\"\n>\n <ng-template #drawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n Drawer sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n Drawer sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n\n <span class=\"menu-icon-badge\" [class.is-root]=\"!formData.get('ParentId')?.value\">\n <nz-icon [nzType]=\"formData.get('Icon')?.value || 'appstore'\"></nz-icon>\n </span>\n\n <div>\n <strong style=\"font-size: 15px\">\n {{ drawerMode === \"create\" ? \"Th\u00EAm m\u1EDBi Menu ch\u1EE9c n\u0103ng\" : \"Ch\u1EC9nh s\u1EEDa & Ph\u00E2n quy\u1EC1n Menu\" }}\n </strong>\n @if (drawerMode === \"edit\" && editingMenu) {\n <nz-tag nzColor=\"blue\" style=\"margin-left: 8px\">{{ editingMenu.cleanName || editingMenu.Name }}</nz-tag>\n }\n </div>\n </div>\n\n <button type=\"button\" nz-button nzType=\"text\" nzSize=\"small\" (click)=\"closeDrawer()\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n\n <ng-container *nzDrawerContent>\n <form nz-form [formGroup]=\"formData\" (ngSubmit)=\"submitDrawer(false)\">\n <!-- PH\u1EA6N 1: TH\u00D4NG TIN C\u1EA4U H\u00CCNH MENU -->\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"control\" style=\"color: var(--primary-color, #1890ff)\"></nz-icon>\n <span>1. Th\u00F4ng tin c\u1EA5u h\u00ECnh & \u0110i\u1EC1u h\u01B0\u1EDBng</span>\n </div>\n @if (drawerMode === \"edit\" && editingMenu) {\n <button type=\"button\" nz-button nzSize=\"small\" nzType=\"dashed\" (click)=\"addChildMenu(editingMenu)\">\n <nz-icon nzType=\"plus-circle\"></nz-icon> T\u1EA1o menu con cho m\u1EE5c n\u00E0y\n </button>\n }\n </div>\n\n <div nz-row [nzGutter]=\"[16, 12]\">\n <!-- Menu cha -->\n <div nz-col [nzSpan]=\"AppGlobals.MODULE_IN_USE ? 14 : 24\">\n <label class=\"drawer-field-label\">Menu cha (\u0110\u1EC3 tr\u1ED1ng n\u1EBFu l\u00E0 Menu g\u1ED1c)</label>\n <nz-tree-select\n style=\"width: 100%\"\n [nzNodes]=\"filteredDrawerTreeMenu\"\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Menu g\u1ED1c (Root Level) --\"\n [nzDropdownMatchSelectWidth]=\"false\"\n formControlName=\"ParentId\"\n ></nz-tree-select>\n </div>\n\n <!-- T\u00EAn Menu -->\n <div nz-col [nzSpan]=\"16\">\n <label class=\"drawer-field-label\"> T\u00EAn hi\u1EC3n th\u1ECB Menu <span class=\"required-star\">*</span> </label>\n <input\n nz-input\n formControlName=\"Name\"\n [appAutoFocus]=\"drawerVisible\"\n placeholder=\"V\u00ED d\u1EE5: Qu\u1EA3n l\u00FD K\u00EAnh truy\u1EC1n, B\u00E1o c\u00E1o t\u1ED5ng h\u1EE3p...\"\n />\n @if (formData.get(\"Name\")?.invalid && (formData.get(\"Name\")?.dirty || formData.get(\"Name\")?.touched)) {\n <div style=\"color: #ef4444; font-size: 12px; margin-top: 4px\">Vui l\u00F2ng nh\u1EADp t\u00EAn hi\u1EC3n th\u1ECB c\u1EE7a Menu.</div>\n }\n </div>\n\n <!-- Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB -->\n <div nz-col [nzSpan]=\"8\">\n <label class=\"drawer-field-label\">Th\u1EE9 t\u1EF1 s\u1EAFp x\u1EBFp (Order)</label>\n <nz-input-number\n formControlName=\"OrderValue\"\n [nzStep]=\"10\"\n style=\"width: 100%\"\n nzPlaceHolder=\"10, 20, 30...\"\n ></nz-input-number>\n </div>\n\n <!-- \u0110\u01B0\u1EDDng d\u1EABn URL -->\n <div nz-col [nzSpan]=\"16\">\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn \u0111i\u1EC1u h\u01B0\u1EDBng (URL Route)</label>\n <nz-input-group [nzPrefix]=\"urlPrefixTpl\">\n <input\n nz-input\n formControlName=\"Url\"\n placeholder=\"V\u00ED d\u1EE5: /admin/menu ho\u1EB7c /cpt/dashboard (\u0110\u1EC3 tr\u1ED1ng n\u1EBFu l\u00E0 menu cha)\"\n />\n </nz-input-group>\n <ng-template #urlPrefixTpl>\n <nz-icon nzType=\"link\" style=\"color: #94a3b8\"></nz-icon>\n </ng-template>\n </div>\n\n <!-- Translate Key -->\n <div nz-col [nzSpan]=\"8\">\n <label class=\"drawer-field-label\">M\u00E3 \u0111a ng\u00F4n ng\u1EEF (TranslateKey)</label>\n <input nz-input formControlName=\"TranslateKey\" placeholder=\"T\u00F9y ch\u1ECDn (VD: MENU_USER)\" />\n </div>\n\n <!-- Bi\u1EC3u t\u01B0\u1EE3ng Icon + B\u1ED9 ch\u1ECDn tr\u1EF1c quan -->\n <div nz-col [nzSpan]=\"24\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 4px\"> Bi\u1EC3u t\u01B0\u1EE3ng (Ant Design Icon) </label>\n <a style=\"font-size: 12px\" (click)=\"showIconPicker = !showIconPicker\">\n <nz-icon [nzType]=\"showIconPicker ? 'up' : 'appstore'\"></nz-icon>\n {{\n showIconPicker ? \"\u1EA8n b\u1EA3ng ch\u1ECDn nhanh Icon\" : \"M\u1EDF b\u1EA3ng ch\u1ECDn nhanh Icon (\" + commonIcons.length + \")\"\n }}\n </a>\n </div>\n\n <nz-input-group [nzAddOnBefore]=\"iconPreviewAddon\" [nzSuffix]=\"clearIconTpl\">\n <input\n nz-input\n formControlName=\"Icon\"\n placeholder=\"Nh\u1EADp t\u00EAn icon (VD: dashboard, setting, forward, caret-right) ho\u1EB7c ch\u1ECDn b\u00EAn d\u01B0\u1EDBi...\"\n />\n </nz-input-group>\n <ng-template #iconPreviewAddon>\n <span nz-flex nzAlign=\"center\" [nzGap]=\"6\" style=\"padding: 0 4px\">\n <nz-icon\n [nzType]=\"formData.get('Icon')?.value || 'question-circle'\"\n style=\"font-size: 16px; color: var(--primary-color, #1890ff)\"\n ></nz-icon>\n <span style=\"font-size: 12px\">Preview</span>\n </span>\n </ng-template>\n <ng-template #clearIconTpl>\n @if (formData.get(\"Icon\")?.value) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: #94a3b8\"\n (click)=\"formData.patchValue({ Icon: '' })\"\n ></nz-icon>\n }\n </ng-template>\n\n @if (showIconPicker) {\n <div class=\"icon-picker-grid\">\n @for (ic of commonIcons; track ic) {\n <button\n type=\"button\"\n class=\"icon-picker-item\"\n [class.active]=\"formData.get('Icon')?.value === ic\"\n (click)=\"selectSuggestedIcon(ic)\"\n >\n <nz-icon [nzType]=\"ic\" style=\"font-size: 15px; flex-shrink: 0\"></nz-icon>\n <span style=\"overflow: hidden; text-overflow: ellipsis\">{{ ic }}</span>\n </button>\n }\n </div>\n }\n </div>\n\n <!-- 4 Switch tr\u1EA1ng th\u00E1i -->\n <div nz-col [nzSpan]=\"24\">\n <div class=\"switch-card-grid\">\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Module</div>\n <div class=\"drawer-field-hint\">Menu n\u00E0y l\u00E0 Module</div>\n </div>\n <nz-switch formControlName=\"IsModule\" nzSize=\"small\"></nz-switch>\n </div>\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Header Menu</div>\n <div class=\"drawer-field-hint\">Hi\u1EC3n th\u1ECB tr\u00EAn thanh ngang</div>\n </div>\n <nz-switch formControlName=\"IsHeaderMenu\" nzSize=\"small\"></nz-switch>\n </div>\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">Menu m\u1EB7c \u0111\u1ECBnh</div>\n <div class=\"drawer-field-hint\">T\u1EF1 \u0111\u1ED9ng v\u00E0o khi ch\u1ECDn Module / Menu cha</div>\n </div>\n <nz-switch formControlName=\"IsDefaultMenu\" nzSize=\"small\"></nz-switch>\n </div>\n\n <!-- <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">\u1EA8n tr\u00EAn c\u00E2y Menu</div>\n <div class=\"drawer-field-hint\">Ch\u1EC9 d\u00F9ng \u0111\u1EC3 ki\u1EC3m tra quy\u1EC1n URL</div>\n </div>\n <nz-switch formControlName=\"IsHidden\" nzSize=\"small\"></nz-switch>\n </div> -->\n\n <div class=\"switch-card-item\">\n <div>\n <div style=\"font-weight: 600; font-size: 12.5px\">\u0110ang hi\u1EC7u l\u1EF1c</div>\n <div class=\"drawer-field-hint\">Cho ph\u00E9p truy c\u1EADp menu</div>\n </div>\n <nz-switch formControlName=\"IsActive\" nzSize=\"small\"></nz-switch>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- PH\u1EA6N 2: MA TR\u1EACN PH\u00C2N QUY\u1EC0N ROLE TRUY C\u1EACP MENU NGAY TRONG DRAWER -->\n <div class=\"drawer-section-card\" style=\"margin-bottom: 0\">\n <div class=\"drawer-section-header\">\n <div>\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"safety-certificate\" style=\"color: #10b981\"></nz-icon>\n <span>2. Ph\u00E2n quy\u1EC1n Vai tr\u00F2 (Role Permissions)</span>\n <nz-tag nzColor=\"green\">{{ lstRoleMenu.length }} Role</nz-tag>\n </div>\n <div class=\"drawer-field-hint\">\n Thi\u1EBFt l\u1EADp c\u00E1c Vai tr\u00F2 (Role) \u0111\u01B0\u1EE3c ph\u00E9p xem v\u00E0 thao t\u00E1c (Th\u00EAm / S\u1EEDa / X\u00F3a) tr\u00EAn ch\u1EE9c n\u0103ng n\u00E0y.\n </div>\n </div>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openAddRoleModal()\">\n <nz-icon nzType=\"usergroup-add\"></nz-icon> G\u00E1n th\u00EAm Role\n </button>\n </div>\n\n <nz-table\n #roleTable\n [nzData]=\"lstRoleMenu\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"false\"\n [nzLoading]=\"isLoadingRoles\"\n [nzNoResult]=\"emptyRoleTpl\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th>Vai tr\u00F2 (Role)</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Ch\u1ECDn t\u1EA5t c\u1EA3 quy\u1EC1n C / U / D\">T\u1EA5t c\u1EA3</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n Th\u00EAm m\u1EDBi (CanCreate)\">\n Th\u00EAm (C)\n </th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n C\u1EADp nh\u1EADt (CanUpdate)\">S\u1EEDa (U)</th>\n <th nzWidth=\"85px\" class=\"text-center\" nz-tooltip nzTooltipTitle=\"Quy\u1EC1n X\u00F3a (CanDelete)\">X\u00F3a (D)</th>\n <th nzWidth=\"60px\" class=\"text-center\">G\u1EE1</th>\n </tr>\n </thead>\n <tbody>\n @for (item of roleTable.data; track item.App_Role_Id; let idx = $index) {\n <tr>\n <td class=\"text-center cell-number\">{{ idx + 1 }}</td>\n <td>\n <div style=\"font-weight: 600\">{{ item.RoleName }}</div>\n <div style=\"font-size: 11.5px; color: #64748b\">\n <code>{{ item.RoleCode }}</code>\n </div>\n </td>\n <td class=\"text-center\">\n <label\n nz-checkbox\n [ngModel]=\"isAllCrudChecked(item)\"\n (ngModelChange)=\"toggleAllCrudForRole(item, $event)\"\n [ngModelOptions]=\"{ standalone: true }\"\n ></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanCreate\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanUpdate\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <label nz-checkbox [(ngModel)]=\"item.CanDelete\" [ngModelOptions]=\"{ standalone: true }\"></label>\n </td>\n <td class=\"text-center\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"G\u1EE1 Role kh\u1ECFi Menu n\u00E0y\"\n (click)=\"deleteRoleFromMenu(item)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <ng-template #emptyRoleTpl>\n <div style=\"padding: 16px; text-align: center; color: #64748b\">\n Ch\u01B0a c\u00F3 Role n\u00E0o \u0111\u01B0\u1EE3c g\u00E1n ri\u00EAng cho Menu n\u00E0y. Nh\u1EA5n <strong>\"G\u00E1n th\u00EAm Role\"</strong> \u0111\u1EC3 ph\u00E2n quy\u1EC1n.\n </div>\n </ng-template>\n </div>\n </form>\n </ng-container>\n\n <ng-template #drawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (drawerMode === \"edit\" && editingMenu) {\n <button type=\"button\" nz-button nzDanger nzType=\"default\" (click)=\"delete(editingMenu)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a Menu n\u00E0y\n </button>\n }\n </div>\n\n <div nz-flex [nzGap]=\"8\">\n <button type=\"button\" nz-button nzType=\"default\" (click)=\"closeDrawer()\">H\u1EE7y</button>\n\n @if (drawerMode === \"create\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n [nzLoading]=\"isSaving\"\n (click)=\"submitDrawer(true)\"\n nz-tooltip\n nzTooltipTitle=\"L\u01B0u menu n\u00E0y v\u00E0 gi\u1EEF nguy\u00EAn Drawer \u0111\u1EC3 nh\u1EADp ti\u1EBFp menu ti\u1EBFp theo\"\n >\n <nz-icon nzType=\"plus\"></nz-icon> L\u01B0u & Th\u00EAm ti\u1EBFp\n </button>\n }\n\n <button type=\"button\" nz-button nzType=\"primary\" [nzLoading]=\"isSaving\" (click)=\"submitDrawer(false)\">\n <nz-icon nzType=\"save\"></nz-icon>\n {{ drawerMode === \"create\" ? \"T\u1EA1o Menu\" : \"L\u01B0u thay \u0111\u1ED5i\" }}\n </button>\n </div>\n </div>\n </ng-template>\n</nz-drawer>\n\n<!-- ========================================================================= -->\n<!-- MODAL CH\u1ECCN NHANH DANH S\u00C1CH ROLE \u0110\u1EC2 G\u00C1N V\u00C0O MENU -->\n<!-- ========================================================================= -->\n<nz-modal\n [(nzVisible)]=\"isAddRoleModalVisible\"\n nzTitle=\"Ch\u1ECDn Vai tr\u00F2 (Role) g\u00E1n v\u00E0o Menu\"\n [nzWidth]=\"680\"\n [nzCentered]=\"true\"\n (nzOnCancel)=\"closeAddRoleModal()\"\n (nzOnOk)=\"addRolesToMenu()\"\n nzOkText=\"G\u00E1n c\u00E1c Role \u0111\u00E3 ch\u1ECDn\"\n nzCancelText=\"\u0110\u00F3ng\"\n>\n <ng-container *nzModalContent>\n <nz-input-group [nzPrefix]=\"prefixRoleSearch\" style=\"margin-bottom: 12px\">\n <input\n type=\"text\"\n nz-input\n placeholder=\"T\u00ECm nhanh theo M\u00E3 Role, T\u00EAn Role ho\u1EB7c M\u00F4 t\u1EA3...\"\n [(ngModel)]=\"searchRoleText\"\n (ngModelChange)=\"filterAvailableRoles()\"\n />\n </nz-input-group>\n <ng-template #prefixRoleSearch>\n <nz-icon nzType=\"search\"></nz-icon>\n </ng-template>\n\n <nz-table\n #addRoleTable\n [nzData]=\"lstFilteredRole\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"true\"\n [nzPageSize]=\"8\"\n [nzLoading]=\"isLoadingAvailableRoles\"\n >\n <thead>\n <tr>\n <th\n nzWidth=\"50px\"\n nzShowCheckbox\n [(nzChecked)]=\"isAllRoleChecked\"\n (nzCheckedChange)=\"onAllRoleChecked($event)\"\n [nzIndeterminate]=\"isRoleIndeterminate\"\n ></th>\n <th nzWidth=\"160px\">M\u00E3 Role</th>\n <th>T\u00EAn Role</th>\n <th>M\u00F4 t\u1EA3</th>\n </tr>\n </thead>\n <tbody>\n @for (item of addRoleTable.data; track item.App_Role_Id) {\n <tr class=\"selectable-row\" (click)=\"onRoleChecked(item, !item.checked)\">\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <label nz-checkbox [(ngModel)]=\"item.checked\" (ngModelChange)=\"onRoleChecked(item, $event)\"></label>\n </td>\n <td>\n <code class=\"cell-mono\">{{ item.Code }}</code>\n </td>\n <td style=\"font-weight: 500\">{{ item.Name }}</td>\n <td style=\"color: #64748b\">{{ item.Description }}</td>\n </tr>\n }\n </tbody>\n </nz-table>\n </ng-container>\n</nz-modal>\n", styles: [":host{display:block}.menu-name-cell{display:inline-flex;align-items:center;gap:8px;min-width:0}.menu-name-cell .menu-icon-badge{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:var(--radius-sm, 6px);background:var(--surface-muted, #f1f5f9);color:var(--text-secondary, #475569);flex-shrink:0;font-size:13px;border:1px solid var(--border-default, #e2e8f0)}.menu-name-cell .menu-icon-badge.is-root{background:var(--primary-bg-subtle, #eff6ff);color:var(--primary-color, #1677ff);border-color:var(--primary-border-subtle, #bfdbfe)}.menu-name-cell .menu-icon-badge.is-inactive{opacity:.45}.menu-name-cell .menu-title-wrap{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.menu-name-cell .menu-title-wrap .menu-title-text{font-weight:500;color:var(--text-primary, #1e293b);cursor:pointer;transition:color .15s ease}.menu-name-cell .menu-title-wrap .menu-title-text:hover{color:var(--primary-color, #1677ff);text-decoration:underline}.menu-name-cell .menu-title-wrap .menu-title-text.root-weight{font-weight:600}.url-cell-wrap{display:inline-flex;align-items:center;gap:6px;max-width:100%}.icon-preview-pill{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:var(--radius-xs, 4px);background:var(--surface-subtle, #f8fafc);border:1px solid var(--border-default, #e2e8f0);font-size:12px;color:var(--text-secondary, #334155)}.icon-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px;max-height:175px;overflow-y:auto;padding:8px;background:var(--surface-subtle, #f8fafc);border:1px solid var(--border-default, #e2e8f0);border-radius:var(--radius-sm, 6px);margin-top:6px}.icon-picker-grid .icon-picker-item{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:var(--radius-xs, 4px);border:1px solid transparent;background:var(--surface-card, #ffffff);cursor:pointer;font-size:12px;color:var(--text-secondary, #334155);transition:all .12s ease}.icon-picker-grid .icon-picker-item:hover{border-color:var(--primary-border-subtle, #93c5fd);background:var(--primary-bg-subtle, #eff6ff);color:var(--primary-color, #1677ff)}.icon-picker-grid .icon-picker-item.active{border-color:var(--primary-color, #1677ff);background:var(--surface-selected, #dbeafe);color:var(--primary-active, #1d4ed8);font-weight:600}\n"] }]
16365
16439
  }] });
16366
16440
 
16367
16441
  class App_Org {
@@ -18609,7 +18683,7 @@ class RoleListComponent extends BaseComponent {
18609
18683
  this.lstUserInRole = this.lstUserInRole.filter((u) => u.App_User_Id !== user.App_User_Id);
18610
18684
  }
18611
18685
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: RoleListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
18612
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: RoleListComponent, isStandalone: true, selector: "app-role-list", viewQueries: [{ propertyName: "nzTreeComponent", first: true, predicate: ["nzTree"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"enterprise-page-shell\">\n <!-- 1. UNIFIED FILTER & ACTION TOOLBAR -->\n <div class=\"enterprise-toolbar\">\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\n <nz-input-group [nzPrefix]=\"prefixCode\" [nzSuffix]=\"clearCodeTpl\" nzSize=\"small\" style=\"width: 210px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo M\u00E3 Role (Code)...\" [(ngModel)]=\"filter.Code\" />\n </nz-input-group>\n <ng-template #prefixCode>\n <nz-icon nzType=\"safety-certificate\" class=\"text-muted\"></nz-icon>\n </ng-template>\n <ng-template #clearCodeTpl>\n @if (filter.Code) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer text-muted\"\n (click)=\"filter.Code = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <nz-input-group [nzPrefix]=\"prefixName\" [nzSuffix]=\"clearNameTpl\" nzSize=\"small\" style=\"width: 240px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo T\u00EAn Role...\" [(ngModel)]=\"filter.Name\" />\n </nz-input-group>\n <ng-template #prefixName>\n <nz-icon nzType=\"search\" class=\"text-muted\"></nz-icon>\n </ng-template>\n <ng-template #clearNameTpl>\n @if (filter.Name) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer text-muted\"\n (click)=\"filter.Name = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\n </button>\n\n @if (hasActiveFilter) {\n <button type=\"button\" nz-button nzType=\"dashed\" nzDanger nzSize=\"small\" (click)=\"resetFilters()\">\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a l\u1ECDc\n </button>\n }\n </div>\n\n <div class=\"toolbar-actions\">\n <span class=\"kpi-pill\">\n T\u1ED5ng: <strong>{{ data.TotalCount || 0 }}</strong>\n </span>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"getData()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openDrawer('create')\">\n <nz-icon nzType=\"plus\"></nz-icon> Th\u00EAm Vai tr\u00F2 m\u1EDBi\n </button>\n </div>\n </div>\n\n <!-- 2. ENTERPRISE DATA TABLE -->\n <nz-table\n #table\n [nzData]=\"data.LstItem || []\"\n [nzLoading]=\"isLoading\"\n [nzBordered]=\"true\"\n [nzSize]=\"'small'\"\n [nzShowPagination]=\"false\"\n [nzFrontPagination]=\"false\"\n [nzScroll]=\"{ x: '860px', y: 'calc(100vh - 245px)' }\"\n >\n <thead>\n <tr>\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\n <th\n nzWidth=\"240px\"\n [nzShowSort]=\"true\"\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'Code' ? filter.OrderOption.Direction : null\"\n [nzSortDirections]=\"['ascend', 'descend']\"\n (nzSortOrderChange)=\"filter.OrderOption.FieldName = 'Code'; filter.OrderOption.Direction = $event; getData()\"\n >\n M\u00E3 Vai tr\u00F2 (Role Code)\n </th>\n <th\n nzWidth=\"260px\"\n [nzShowSort]=\"true\"\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'Name' ? filter.OrderOption.Direction : null\"\n [nzSortDirections]=\"['ascend', 'descend']\"\n (nzSortOrderChange)=\"filter.OrderOption.FieldName = 'Name'; filter.OrderOption.Direction = $event; getData()\"\n >\n T\u00EAn Vai tr\u00F2 (Role Name)\n </th>\n <th\n [nzShowSort]=\"true\"\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'Description' ? filter.OrderOption.Direction : null\"\n [nzSortDirections]=\"['ascend', 'descend']\"\n (nzSortOrderChange)=\"\n filter.OrderOption.FieldName = 'Description'; filter.OrderOption.Direction = $event; getData()\n \"\n >\n M\u00F4 t\u1EA3\n </th>\n <th\n nzWidth=\"95px\"\n class=\"text-center\"\n [nzShowSort]=\"true\"\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'IsActive' ? filter.OrderOption.Direction : null\"\n [nzSortDirections]=\"['ascend', 'descend']\"\n (nzSortOrderChange)=\"\n filter.OrderOption.FieldName = 'IsActive'; filter.OrderOption.Direction = $event; getData()\n \"\n >\n Hi\u1EC7u l\u1EF1c\n </th>\n <th nzWidth=\"105px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (row of table.data; track row.App_Role_Id || $index; let i = $index) {\n <tr\n class=\"selectable-row\"\n [class.selected-row]=\"editingRole?.App_Role_Id === row.App_Role_Id && drawerVisible\"\n (dblclick)=\"openDrawer('edit', row)\"\n >\n <td class=\"text-center cell-number text-muted\">{{ i + 1 + filter.PageIndex * filter.PageSize }}</td>\n <td>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\n <code class=\"cell-mono link-detail\" (click)=\"openDrawer('edit', row)\">{{ row.Code }}</code>\n @if (row.Code) {\n <icon-copy [textToCopy]=\"row.Code\" tooltip=\"Sao ch\u00E9p m\u00E3 Role\"></icon-copy>\n }\n </div>\n </td>\n <td>\n <span class=\"link-detail font-medium\" (click)=\"openDrawer('edit', row)\">{{ row.Name }}</span>\n </td>\n <td class=\"text-secondary\">{{ row.Description || \"\u2014\" }}</td>\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsActive\"\n (ngModelChange)=\"quickToggleActive(row, $event)\"\n ></nz-switch>\n </td>\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\n <div class=\"action-btn-group\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n nzTooltipTitle=\"Ch\u1EC9nh s\u1EEDa Role, Ph\u00E2n quy\u1EC1n Menu & G\u00E1n User (Drawer)\"\n (click)=\"openDrawer('edit', row)\"\n >\n <nz-icon nzType=\"edit\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a Role\"\n (click)=\"delete(row)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <!-- 3. PAGINATION BAR -->\n <div class=\"enterprise-pagination-bar\">\n <div class=\"pagination-hint\">\n M\u1EB9o: Nh\u1EA5p v\u00E0o <strong>M\u00E3 / T\u00EAn Vai tr\u00F2</strong> ho\u1EB7c <strong>\u0111\u00FAp chu\u1ED9t v\u00E0o d\u00F2ng</strong> \u0111\u1EC3 m\u1EDF nhanh Ma tr\u1EADn ph\u00E2n\n quy\u1EC1n Menu & User b\u00EAn ph\u1EA3i.\n </div>\n\n <nz-pagination\n [nzSize]=\"'small'\"\n [nzPageIndex]=\"filter.PageIndex + 1\"\n [nzPageSize]=\"filter.PageSize\"\n [nzTotal]=\"data.TotalCount || 0\"\n [nzShowSizeChanger]=\"true\"\n [nzShowTotal]=\"showTotalTpl\"\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\n (nzPageIndexChange)=\"onQueryParamsChange($event - 1, filter.PageSize)\"\n (nzPageSizeChange)=\"onQueryParamsChange(0, $event)\"\n >\n </nz-pagination>\n\n <ng-template #showTotalTpl let-total let-range=\"range\">\n Hi\u1EC3n th\u1ECB <strong>{{ range[0] | number }} - {{ range[1] | number }}</strong> /\n <strong>{{ total | number }}</strong>\n </ng-template>\n </div>\n</div>\n\n<!-- ========================================================================= -->\n<!-- SIDE DRAWER: TH\u00CAM / S\u1EECA ROLE + C\u00C2Y PH\u00C2N QUY\u1EC0N MENU (C/U/D) + G\u00C1N USER -->\n<!-- ========================================================================= -->\n<nz-drawer\n [nzVisible]=\"drawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"820\"\n [nzClosable]=\"false\"\n [nzMaskClosable]=\"true\"\n [nzTitle]=\"drawerTitleTpl\"\n [nzFooter]=\"drawerFooterTpl\"\n (nzOnClose)=\"closeDrawer()\"\n>\n <ng-template #drawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n Drawer sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n Drawer sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n\n <div>\n <strong style=\"font-size: 15px\">\n {{ drawerMode === \"create\" ? \"Th\u00EAm m\u1EDBi Vai tr\u00F2 (Role)\" : \"Ch\u1EC9nh s\u1EEDa & Ph\u00E2n quy\u1EC1n Vai tr\u00F2\" }}\n </strong>\n @if (drawerMode === \"edit\" && editingRole) {\n <nz-tag nzColor=\"blue\" style=\"margin-left: 8px\">{{ editingRole.Code }} - {{ editingRole.Name }}</nz-tag>\n }\n </div>\n </div>\n\n <button type=\"button\" nz-button nzType=\"text\" nzSize=\"small\" (click)=\"closeDrawer()\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n\n <ng-container *nzDrawerContent>\n <form nz-form [formGroup]=\"formData\" (ngSubmit)=\"submitDrawer(false)\">\n <!-- PH\u1EA6N 1: TH\u00D4NG TIN \u0110\u1ECANH DANH VAI TR\u00D2 -->\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"safety-certificate\" class=\"color-primary\"></nz-icon>\n <span>1. Th\u00F4ng tin \u0111\u1ECBnh danh Vai tr\u00F2</span>\n </div>\n </div>\n\n <div nz-row [nzGutter]=\"[16, 12]\">\n <div nz-col [nzSpan]=\"10\">\n <label class=\"drawer-field-label\"> M\u00E3 Vai tr\u00F2 (Role Code) <span class=\"required-star\">*</span> </label>\n <input\n nz-input\n formControlName=\"Code\"\n [appAutoFocus]=\"drawerVisible\"\n placeholder=\"VD: ADMIN, MANAGER, AUDITOR...\"\n />\n @if (formData.get(\"Code\")?.invalid && (formData.get(\"Code\")?.dirty || formData.get(\"Code\")?.touched)) {\n <div class=\"drawer-field-error\">Vui l\u00F2ng nh\u1EADp M\u00E3 Vai tr\u00F2.</div>\n }\n </div>\n\n <div nz-col [nzSpan]=\"14\">\n <label class=\"drawer-field-label\"> T\u00EAn Vai tr\u00F2 (Role Name) <span class=\"required-star\">*</span> </label>\n <input nz-input formControlName=\"Name\" placeholder=\"Nh\u1EADp t\u00EAn hi\u1EC3n th\u1ECB c\u1EE7a vai tr\u00F2...\" />\n @if (formData.get(\"Name\")?.invalid && (formData.get(\"Name\")?.dirty || formData.get(\"Name\")?.touched)) {\n <div class=\"drawer-field-error\">Vui l\u00F2ng nh\u1EADp T\u00EAn Vai tr\u00F2.</div>\n }\n </div>\n\n <div nz-col [nzSpan]=\"16\">\n <label class=\"drawer-field-label\">M\u00F4 t\u1EA3 ph\u1EA1m vi quy\u1EC1n h\u1EA1n</label>\n <input nz-input formControlName=\"Description\" placeholder=\"M\u00F4 t\u1EA3 tr\u00E1ch nhi\u1EC7m c\u1EE7a nh\u00F3m quy\u1EC1n...\" />\n </div>\n\n <div nz-col [nzSpan]=\"8\">\n <label class=\"drawer-field-label\">Tr\u1EA1ng th\u00E1i</label>\n <div class=\"switch-card-item\" style=\"padding: 5px 10px\">\n <span class=\"font-medium text-xs\">\u0110ang hi\u1EC7u l\u1EF1c</span>\n <nz-switch formControlName=\"IsActive\" nzSize=\"small\"></nz-switch>\n </div>\n </div>\n </div>\n </div>\n\n <!-- PH\u1EA6N 2: MA TR\u1EACN PH\u00C2N QUY\u1EC0N MENU (VIEW / C / U / D) & DANH S\u00C1CH USER -->\n <div class=\"drawer-section-card\" style=\"margin-bottom: 0\">\n <nz-tabset nzType=\"card\" nzSize=\"small\">\n <!-- TAB 1: C\u00C2Y PH\u00C2N QUY\u1EC0N MENU -->\n <nz-tab [nzTitle]=\"menuTabTitleTpl\">\n <ng-template #menuTabTitleTpl>\n <nz-icon nzType=\"appstore\"></nz-icon>\n <span>Ph\u00E2n quy\u1EC1n Menu (View / C / U / D)</span>\n </ng-template>\n\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 10px\">\n <nz-input-group [nzPrefix]=\"prefixTreeSearch\" nzSize=\"small\" style=\"width: 280px\">\n <input\n nz-input\n type=\"text\"\n placeholder=\"T\u00ECm nhanh ch\u1EE9c n\u0103ng trong c\u00E2y Menu...\"\n [(ngModel)]=\"menuSearchValue\"\n [ngModelOptions]=\"{ standalone: true }\"\n />\n </nz-input-group>\n <ng-template #prefixTreeSearch>\n <nz-icon nzType=\"search\" class=\"text-muted\"></nz-icon>\n </ng-template>\n\n <div class=\"text-xs text-muted\">\n Tick \u00F4 b\u00EAn tr\u00E1i \u0111\u1EC3 c\u1EA5p quy\u1EC1n <strong>Xem (View)</strong>; tick <strong>C / U / D</strong> b\u00EAn ph\u1EA3i \u0111\u1EC3\n c\u1EA5p quy\u1EC1n Th\u00EAm / S\u1EEDa / X\u00F3a.\n </div>\n </div>\n\n <div\n style=\"\n max-height: 420px;\n overflow-y: auto;\n padding: 8px 10px;\n border: 1px solid var(--border-default);\n border-radius: var(--radius-sm);\n background: var(--surface-subtle);\n \"\n >\n <nz-tree\n #nzTree\n [nzData]=\"nodes\"\n [nzSearchValue]=\"menuSearchValue\"\n nzCheckable\n nzMultiple\n nzBlockNode\n [nzTreeTemplate]=\"nzTreeTemplate\"\n [(nzCheckedKeys)]=\"checkedKeys\"\n (nzCheckBoxChange)=\"onTreeCheckBoxChange($event)\"\n ></nz-tree>\n\n <ng-template #nzTreeTemplate let-node let-origin=\"origin\">\n <div\n nz-flex\n nzJustify=\"space-between\"\n nzAlign=\"center\"\n style=\"width: 100%; padding: 2px 6px; border-radius: 4px\"\n >\n <span class=\"font-medium\">{{ node.title }}</span>\n\n <div nz-flex [nzGap]=\"10\" (click)=\"$event.stopPropagation()\">\n <label\n nz-checkbox\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"origin.canCreate\"\n [nzIndeterminate]=\"origin.isCreateIndeterminate\"\n (ngModelChange)=\"onPermissionChange(node, 'create')\"\n nz-tooltip\n nzTooltipTitle=\"Quy\u1EC1n Th\u00EAm m\u1EDBi (Create)\"\n >\n <span class=\"text-xs font-semibold\">Th\u00EAm (C)</span>\n </label>\n <label\n nz-checkbox\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"origin.canUpdate\"\n [nzIndeterminate]=\"origin.isUpdateIndeterminate\"\n (ngModelChange)=\"onPermissionChange(node, 'update')\"\n nz-tooltip\n nzTooltipTitle=\"Quy\u1EC1n C\u1EADp nh\u1EADt (Update)\"\n >\n <span class=\"text-xs font-semibold\">S\u1EEDa (U)</span>\n </label>\n <label\n nz-checkbox\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"origin.canDelete\"\n [nzIndeterminate]=\"origin.isDeleteIndeterminate\"\n (ngModelChange)=\"onPermissionChange(node, 'delete')\"\n nz-tooltip\n nzTooltipTitle=\"Quy\u1EC1n X\u00F3a (Delete)\"\n >\n <span class=\"text-xs font-semibold\">X\u00F3a (D)</span>\n </label>\n </div>\n </div>\n </ng-template>\n </div>\n </nz-tab>\n\n <!-- TAB 2: DANH S\u00C1CH USER TRONG ROLE -->\n <nz-tab [nzTitle]=\"userTabTitleTpl\">\n <ng-template #userTabTitleTpl>\n <nz-icon nzType=\"team\"></nz-icon>\n <span>Ng\u01B0\u1EDDi d\u00F9ng thu\u1ED9c Role ({{ lstUserInRole.length }})</span>\n </ng-template>\n\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 10px\">\n <div class=\"text-xs text-muted\">\n Danh s\u00E1ch t\u00E0i kho\u1EA3n \u0111\u01B0\u1EE3c g\u00E1n tr\u1EF1c ti\u1EBFp v\u00E0o Vai tr\u00F2 <strong>{{ formData.get(\"Name\")?.value }}</strong\n >.\n </div>\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openAddUserModal()\">\n <nz-icon nzType=\"usergroup-add\"></nz-icon> Th\u00EAm User v\u00E0o Role\n </button>\n </div>\n\n <nz-table\n #userTable\n [nzData]=\"lstUserInRole\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"lstUserInRole.length > 10\"\n [nzPageSize]=\"10\"\n [nzNoResult]=\"emptyRoleUserTpl\"\n >\n <thead>\n <tr>\n <th nzWidth=\"48px\" class=\"text-center\">#</th>\n <th nzWidth=\"170px\">T\u00EAn \u0111\u0103ng nh\u1EADp</th>\n <th>H\u1ECD v\u00E0 t\u00EAn</th>\n <th>Email</th>\n <th nzWidth=\"65px\" class=\"text-center\">G\u1EE1</th>\n </tr>\n </thead>\n <tbody>\n @for (u of userTable.data; track u.App_User_Id || $index; let idx = $index) {\n <tr>\n <td class=\"text-center cell-number\">{{ idx + 1 }}</td>\n <td>\n <code class=\"cell-mono\">{{ u.UserName }}</code>\n </td>\n <td class=\"font-medium\">{{ u.FullName }}</td>\n <td class=\"text-secondary\">{{ u.Email || \"\u2014\" }}</td>\n <td class=\"text-center\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"G\u1EE1 User kh\u1ECFi Role n\u00E0y\"\n (click)=\"deleteUserFromRole(u)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <ng-template #emptyRoleUserTpl>\n <div style=\"padding: 16px; text-align: center\" class=\"text-muted\">\n Ch\u01B0a c\u00F3 User n\u00E0o trong Role n\u00E0y. Nh\u1EA5n <strong>\"Th\u00EAm User v\u00E0o Role\"</strong> \u0111\u1EC3 g\u00E1n ng\u01B0\u1EDDi d\u00F9ng.\n </div>\n </ng-template>\n </nz-tab>\n </nz-tabset>\n </div>\n </form>\n </ng-container>\n\n <ng-template #drawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (drawerMode === \"edit\" && editingRole) {\n <button type=\"button\" nz-button nzDanger nzType=\"default\" (click)=\"delete(editingRole)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a Vai tr\u00F2 n\u00E0y\n </button>\n }\n </div>\n\n <div nz-flex [nzGap]=\"8\">\n <button type=\"button\" nz-button (click)=\"closeDrawer()\">H\u1EE7y</button>\n\n @if (drawerMode === \"create\") {\n <button type=\"button\" nz-button [nzLoading]=\"isSaving\" (click)=\"submitDrawer(true)\">\n <nz-icon nzType=\"plus\"></nz-icon> L\u01B0u & Th\u00EAm ti\u1EBFp\n </button>\n }\n\n <button type=\"button\" nz-button nzType=\"primary\" [nzLoading]=\"isSaving\" (click)=\"submitDrawer(false)\">\n <nz-icon nzType=\"save\"></nz-icon>\n {{ drawerMode === \"create\" ? \"T\u1EA1o Vai tr\u00F2\" : \"L\u01B0u thay \u0111\u1ED5i\" }}\n </button>\n </div>\n </div>\n </ng-template>\n</nz-drawer>\n\n<!-- ========================================================================= -->\n<!-- MODAL CH\u1ECCN NHANH USER \u0110\u1EC2 G\u00C1N V\u00C0O ROLE -->\n<!-- ========================================================================= -->\n<nz-modal\n [(nzVisible)]=\"isAddUserModalVisible\"\n nzTitle=\"Ch\u1ECDn Ng\u01B0\u1EDDi d\u00F9ng (User) g\u00E1n v\u00E0o Role\"\n [nzWidth]=\"700\"\n [nzCentered]=\"true\"\n (nzOnCancel)=\"closeAddUserModal()\"\n (nzOnOk)=\"addUsersToRole()\"\n nzOkText=\"G\u00E1n c\u00E1c User \u0111\u00E3 ch\u1ECDn\"\n nzCancelText=\"\u0110\u00F3ng\"\n>\n <ng-container *nzModalContent>\n <nz-input-group [nzPrefix]=\"prefixIconSearch\" style=\"margin-bottom: 12px\">\n <input\n type=\"text\"\n nz-input\n placeholder=\"T\u00ECm nhanh theo T\u00EAn \u0111\u0103ng nh\u1EADp, H\u1ECD t\u00EAn ho\u1EB7c Email...\"\n [(ngModel)]=\"searchUserText\"\n (ngModelChange)=\"filterAvailableUsers()\"\n />\n </nz-input-group>\n <ng-template #prefixIconSearch>\n <nz-icon nzType=\"search\"></nz-icon>\n </ng-template>\n\n <nz-table\n #addUserTable\n [nzData]=\"lstFilteredUser\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"true\"\n [nzPageSize]=\"8\"\n [nzLoading]=\"isLoadingAvailableUsers\"\n >\n <thead>\n <tr>\n <th\n nzWidth=\"50px\"\n nzShowCheckbox\n [(nzChecked)]=\"isAllUserChecked\"\n (nzCheckedChange)=\"onAllUserChecked($event)\"\n [nzIndeterminate]=\"isUserIndeterminate\"\n ></th>\n <th nzWidth=\"170px\">T\u00EAn \u0111\u0103ng nh\u1EADp</th>\n <th>H\u1ECD v\u00E0 t\u00EAn</th>\n <th>Email</th>\n </tr>\n </thead>\n <tbody>\n @for (item of addUserTable.data; track item.App_User_Id || $index) {\n <tr class=\"selectable-row\" (click)=\"onUserChecked(item, !item.checked)\">\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <label nz-checkbox [(ngModel)]=\"item.checked\" (ngModelChange)=\"onUserChecked(item, $event)\"></label>\n </td>\n <td>\n <code class=\"cell-mono\">{{ item.UserName }}</code>\n </td>\n <td class=\"font-medium\">{{ item.FullName }}</td>\n <td class=\"text-secondary\">{{ item.Email || \"\u2014\" }}</td>\n </tr>\n }\n </tbody>\n </nz-table>\n </ng-container>\n</nz-modal>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.DecimalPipe, name: "number" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i6.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "component", type: i6.NzThAddOnComponent, selector: "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", inputs: ["nzColumnKey", "nzFilterMultiple", "nzSortOrder", "nzSortPriority", "nzSortDirections", "nzFilters", "nzSortFn", "nzFilterFn", "nzShowSort", "nzShowFilter", "nzCustomFilter"], outputs: ["nzCheckedChange", "nzSortOrderChange", "nzFilterChange"] }, { kind: "directive", type: i6.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i6.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i6.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i6.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i6.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i6.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "component", type: i6.NzThSelectionComponent, selector: "th[nzSelections],th[nzChecked],th[nzShowCheckbox],th[nzShowRowSelection]", inputs: ["nzSelections", "nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzShowCheckbox", "nzShowRowSelection"], outputs: ["nzCheckedChange"] }, { kind: "ngmodule", type: NzPaginationModule }, { kind: "component", type: i7.NzPaginationComponent, selector: "nz-pagination", inputs: ["nzShowTotal", "nzItemRender", "nzSize", "nzPageSizeOptions", "nzShowSizeChanger", "nzShowQuickJumper", "nzSimple", "nzDisabled", "nzResponsive", "nzHideOnSinglePage", "nzTotal", "nzPageIndex", "nzPageSize"], outputs: ["nzPageSizeChange", "nzPageIndexChange"], exportAs: ["nzPagination"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i13$2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i14.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzTabsModule }, { kind: "component", type: i5$2.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact", "nzDestroyInactiveTabPane"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i5$2.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i1$5.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i3$2.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId", "nzName"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i11.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: IconCopy, selector: "icon-copy", inputs: ["textToCopy", "tooltip", "size"] }, { kind: "directive", type: AutoFocusDirective, selector: "[appAutoFocus]", inputs: ["appAutoFocus"] }] });
18686
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: RoleListComponent, isStandalone: true, selector: "app-role-list", viewQueries: [{ propertyName: "nzTreeComponent", first: true, predicate: ["nzTree"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"enterprise-page-shell\">\n <!-- 1. UNIFIED FILTER & ACTION TOOLBAR -->\n <div class=\"enterprise-toolbar\">\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\n <nz-input-group [nzPrefix]=\"prefixCode\" [nzSuffix]=\"clearCodeTpl\" nzSize=\"small\" style=\"width: 210px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo M\u00E3 Role (Code)...\" [(ngModel)]=\"filter.Code\" />\n </nz-input-group>\n <ng-template #prefixCode>\n <nz-icon nzType=\"safety-certificate\" class=\"text-muted\"></nz-icon>\n </ng-template>\n <ng-template #clearCodeTpl>\n @if (filter.Code) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer text-muted\"\n (click)=\"filter.Code = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <nz-input-group [nzPrefix]=\"prefixName\" [nzSuffix]=\"clearNameTpl\" nzSize=\"small\" style=\"width: 240px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo T\u00EAn Role...\" [(ngModel)]=\"filter.Name\" />\n </nz-input-group>\n <ng-template #prefixName>\n <nz-icon nzType=\"search\" class=\"text-muted\"></nz-icon>\n </ng-template>\n <ng-template #clearNameTpl>\n @if (filter.Name) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer text-muted\"\n (click)=\"filter.Name = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\n </button>\n\n @if (hasActiveFilter) {\n <button type=\"button\" nz-button nzType=\"dashed\" nzDanger nzSize=\"small\" (click)=\"resetFilters()\">\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a l\u1ECDc\n </button>\n }\n </div>\n\n <div class=\"toolbar-actions\">\n <span class=\"kpi-pill\">\n T\u1ED5ng: <strong>{{ data.TotalCount || 0 }}</strong>\n </span>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"getData()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openDrawer('create')\">\n <nz-icon nzType=\"plus\"></nz-icon> Th\u00EAm Vai tr\u00F2 m\u1EDBi\n </button>\n </div>\n </div>\n\n <!-- 2. ENTERPRISE DATA TABLE -->\n <nz-table\n #table\n [nzData]=\"data.LstItem || []\"\n [nzLoading]=\"isLoading\"\n [nzBordered]=\"true\"\n [nzSize]=\"'small'\"\n [nzShowPagination]=\"false\"\n [nzFrontPagination]=\"false\"\n [nzScroll]=\"{ x: '860px', y: 'calc(100vh - 245px)' }\"\n >\n <thead>\n <tr>\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\n <th\n nzWidth=\"240px\"\n [nzShowSort]=\"true\"\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'Code' ? filter.OrderOption.Direction : null\"\n [nzSortDirections]=\"['ascend', 'descend']\"\n (nzSortOrderChange)=\"filter.OrderOption.FieldName = 'Code'; filter.OrderOption.Direction = $event; getData()\"\n >\n M\u00E3 Vai tr\u00F2 (Role Code)\n </th>\n <th\n nzWidth=\"260px\"\n [nzShowSort]=\"true\"\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'Name' ? filter.OrderOption.Direction : null\"\n [nzSortDirections]=\"['ascend', 'descend']\"\n (nzSortOrderChange)=\"filter.OrderOption.FieldName = 'Name'; filter.OrderOption.Direction = $event; getData()\"\n >\n T\u00EAn Vai tr\u00F2 (Role Name)\n </th>\n <th\n [nzShowSort]=\"true\"\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'Description' ? filter.OrderOption.Direction : null\"\n [nzSortDirections]=\"['ascend', 'descend']\"\n (nzSortOrderChange)=\"\n filter.OrderOption.FieldName = 'Description'; filter.OrderOption.Direction = $event; getData()\n \"\n >\n M\u00F4 t\u1EA3\n </th>\n <th\n nzWidth=\"95px\"\n class=\"text-center\"\n [nzShowSort]=\"true\"\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'IsActive' ? filter.OrderOption.Direction : null\"\n [nzSortDirections]=\"['ascend', 'descend']\"\n (nzSortOrderChange)=\"\n filter.OrderOption.FieldName = 'IsActive'; filter.OrderOption.Direction = $event; getData()\n \"\n >\n Hi\u1EC7u l\u1EF1c\n </th>\n <th nzWidth=\"105px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (row of table.data; track row.App_Role_Id || $index; let i = $index) {\n <tr\n class=\"selectable-row\"\n [class.selected-row]=\"editingRole?.App_Role_Id === row.App_Role_Id && drawerVisible\"\n (dblclick)=\"openDrawer('edit', row)\"\n >\n <td class=\"text-center cell-number text-muted\">{{ i + 1 + filter.PageIndex * filter.PageSize }}</td>\n <td>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\n <code class=\"cell-mono link-detail\" (click)=\"openDrawer('edit', row)\">{{ row.Code }}</code>\n @if (row.Code) {\n <icon-copy [textToCopy]=\"row.Code\" tooltip=\"Sao ch\u00E9p m\u00E3 Role\"></icon-copy>\n }\n </div>\n </td>\n <td>\n <span class=\"link-detail font-medium\" (click)=\"openDrawer('edit', row)\">{{ row.Name }}</span>\n </td>\n <td class=\"text-secondary\">{{ row.Description || \"\u2014\" }}</td>\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"row.IsActive\"\n (ngModelChange)=\"quickToggleActive(row, $event)\"\n ></nz-switch>\n </td>\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\n <div class=\"action-btn-group\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n nzTooltipTitle=\"Ch\u1EC9nh s\u1EEDa Role, Ph\u00E2n quy\u1EC1n Menu & G\u00E1n User (Drawer)\"\n (click)=\"openDrawer('edit', row)\"\n >\n <nz-icon nzType=\"edit\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a Role\"\n (click)=\"delete(row)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <!-- 3. PAGINATION BAR -->\n <div class=\"enterprise-pagination-bar\">\n <div class=\"pagination-hint\">\n M\u1EB9o: Nh\u1EA5p v\u00E0o <strong>M\u00E3 / T\u00EAn Vai tr\u00F2</strong> ho\u1EB7c <strong>\u0111\u00FAp chu\u1ED9t v\u00E0o d\u00F2ng</strong> \u0111\u1EC3 m\u1EDF nhanh Ma tr\u1EADn ph\u00E2n\n quy\u1EC1n Menu & User b\u00EAn ph\u1EA3i.\n </div>\n\n <nz-pagination\n [nzSize]=\"'small'\"\n [nzPageIndex]=\"filter.PageIndex + 1\"\n [nzPageSize]=\"filter.PageSize\"\n [nzTotal]=\"data.TotalCount || 0\"\n [nzShowSizeChanger]=\"true\"\n [nzShowTotal]=\"showTotalTpl\"\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\n (nzPageIndexChange)=\"onQueryParamsChange($event - 1, filter.PageSize)\"\n (nzPageSizeChange)=\"onQueryParamsChange(0, $event)\"\n >\n </nz-pagination>\n\n <ng-template #showTotalTpl let-total let-range=\"range\">\n Hi\u1EC3n th\u1ECB <strong>{{ range[0] | number }} - {{ range[1] | number }}</strong> /\n <strong>{{ total | number }}</strong>\n </ng-template>\n </div>\n</div>\n\n<!-- ========================================================================= -->\n<!-- SIDE DRAWER: TH\u00CAM / S\u1EECA ROLE + C\u00C2Y PH\u00C2N QUY\u1EC0N MENU (C/U/D) + G\u00C1N USER -->\n<!-- ========================================================================= -->\n<nz-drawer\n [nzVisible]=\"drawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"820\"\n [nzClosable]=\"false\"\n [nzMaskClosable]=\"true\"\n [nzTitle]=\"drawerTitleTpl\"\n [nzFooter]=\"drawerFooterTpl\"\n (nzOnClose)=\"closeDrawer()\"\n>\n <ng-template #drawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n Drawer sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n Drawer sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n\n <div>\n <strong style=\"font-size: 15px\">\n {{ drawerMode === \"create\" ? \"Th\u00EAm m\u1EDBi Vai tr\u00F2 (Role)\" : \"Ch\u1EC9nh s\u1EEDa & Ph\u00E2n quy\u1EC1n Vai tr\u00F2\" }}\n </strong>\n @if (drawerMode === \"edit\" && editingRole) {\n <nz-tag nzColor=\"blue\" style=\"margin-left: 8px\">{{ editingRole.Code }} - {{ editingRole.Name }}</nz-tag>\n }\n </div>\n </div>\n\n <button type=\"button\" nz-button nzType=\"text\" nzSize=\"small\" (click)=\"closeDrawer()\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n\n <ng-container *nzDrawerContent>\n <form nz-form [formGroup]=\"formData\" (ngSubmit)=\"submitDrawer(false)\">\n <!-- PH\u1EA6N 1: TH\u00D4NG TIN \u0110\u1ECANH DANH VAI TR\u00D2 -->\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"safety-certificate\" class=\"color-primary\"></nz-icon>\n <span>1. Th\u00F4ng tin \u0111\u1ECBnh danh Vai tr\u00F2</span>\n </div>\n </div>\n\n <div nz-row [nzGutter]=\"[16, 12]\">\n <div nz-col [nzSpan]=\"10\">\n <label class=\"drawer-field-label\"> M\u00E3 Vai tr\u00F2 (Role Code) <span class=\"required-star\">*</span> </label>\n <input\n nz-input\n formControlName=\"Code\"\n [appAutoFocus]=\"drawerVisible\"\n placeholder=\"VD: ADMIN, MANAGER, AUDITOR...\"\n />\n @if (formData.get(\"Code\")?.invalid && (formData.get(\"Code\")?.dirty || formData.get(\"Code\")?.touched)) {\n <div class=\"drawer-field-error\">Vui l\u00F2ng nh\u1EADp M\u00E3 Vai tr\u00F2.</div>\n }\n </div>\n\n <div nz-col [nzSpan]=\"14\">\n <label class=\"drawer-field-label\"> T\u00EAn Vai tr\u00F2 (Role Name) <span class=\"required-star\">*</span> </label>\n <input nz-input formControlName=\"Name\" placeholder=\"Nh\u1EADp t\u00EAn hi\u1EC3n th\u1ECB c\u1EE7a vai tr\u00F2...\" />\n @if (formData.get(\"Name\")?.invalid && (formData.get(\"Name\")?.dirty || formData.get(\"Name\")?.touched)) {\n <div class=\"drawer-field-error\">Vui l\u00F2ng nh\u1EADp T\u00EAn Vai tr\u00F2.</div>\n }\n </div>\n\n <div nz-col [nzSpan]=\"16\">\n <label class=\"drawer-field-label\">M\u00F4 t\u1EA3 ph\u1EA1m vi quy\u1EC1n h\u1EA1n</label>\n <input nz-input formControlName=\"Description\" placeholder=\"M\u00F4 t\u1EA3 tr\u00E1ch nhi\u1EC7m c\u1EE7a nh\u00F3m quy\u1EC1n...\" />\n </div>\n\n <div nz-col [nzSpan]=\"8\">\n <label class=\"drawer-field-label\">Tr\u1EA1ng th\u00E1i</label>\n <div class=\"switch-card-item\" style=\"padding: 5px 10px\">\n <span class=\"font-medium text-xs\">\u0110ang hi\u1EC7u l\u1EF1c</span>\n <nz-switch formControlName=\"IsActive\" nzSize=\"small\"></nz-switch>\n </div>\n </div>\n </div>\n </div>\n\n <!-- PH\u1EA6N 2: MA TR\u1EACN PH\u00C2N QUY\u1EC0N MENU (VIEW / C / U / D) & DANH S\u00C1CH USER -->\n <div class=\"drawer-section-card\" style=\"margin-bottom: 0\">\n <nz-tabset nzType=\"card\" nzSize=\"small\">\n <!-- TAB 1: C\u00C2Y PH\u00C2N QUY\u1EC0N MENU -->\n <nz-tab [nzTitle]=\"menuTabTitleTpl\">\n <ng-template #menuTabTitleTpl>\n <nz-icon nzType=\"appstore\"></nz-icon>\n <span>Ph\u00E2n quy\u1EC1n Menu (View / C / U / D)</span>\n </ng-template>\n\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 10px\">\n <nz-input-group [nzPrefix]=\"prefixTreeSearch\" nzSize=\"small\" style=\"width: 280px\">\n <input\n nz-input\n type=\"text\"\n placeholder=\"T\u00ECm nhanh ch\u1EE9c n\u0103ng trong c\u00E2y Menu...\"\n [(ngModel)]=\"menuSearchValue\"\n [ngModelOptions]=\"{ standalone: true }\"\n />\n </nz-input-group>\n <ng-template #prefixTreeSearch>\n <nz-icon nzType=\"search\" class=\"text-muted\"></nz-icon>\n </ng-template>\n\n <div class=\"text-xs text-muted\">\n Tick \u00F4 b\u00EAn tr\u00E1i \u0111\u1EC3 c\u1EA5p quy\u1EC1n <strong>Xem (View)</strong>; tick <strong>C / U / D</strong> b\u00EAn ph\u1EA3i \u0111\u1EC3\n c\u1EA5p quy\u1EC1n Th\u00EAm / S\u1EEDa / X\u00F3a.\n </div>\n </div>\n\n <div\n style=\"\n max-height: 420px;\n overflow-y: auto;\n padding: 8px 10px;\n border: 1px solid var(--border-default);\n border-radius: var(--radius-sm);\n background: var(--surface-subtle);\n \"\n >\n <nz-tree\n #nzTree\n [nzData]=\"nodes\"\n [nzSearchValue]=\"menuSearchValue\"\n nzCheckable\n nzMultiple\n nzBlockNode\n [nzTreeTemplate]=\"nzTreeTemplate\"\n [(nzCheckedKeys)]=\"checkedKeys\"\n (nzCheckBoxChange)=\"onTreeCheckBoxChange($event)\"\n ></nz-tree>\n\n <ng-template #nzTreeTemplate let-node let-origin=\"origin\">\n <div\n nz-flex\n nzJustify=\"space-between\"\n nzAlign=\"center\"\n style=\"width: 100%; padding: 2px 6px; border-radius: 4px\"\n >\n <span class=\"font-medium\">{{ node.title }}</span>\n\n <div nz-flex [nzGap]=\"10\" (click)=\"$event.stopPropagation()\">\n <label\n nz-checkbox\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"origin.canCreate\"\n [nzIndeterminate]=\"origin.isCreateIndeterminate\"\n (ngModelChange)=\"onPermissionChange(node, 'create')\"\n nz-tooltip\n nzTooltipTitle=\"Quy\u1EC1n Th\u00EAm m\u1EDBi (Create)\"\n >\n <span class=\"text-xs font-semibold\">Th\u00EAm (C)</span>\n </label>\n <label\n nz-checkbox\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"origin.canUpdate\"\n [nzIndeterminate]=\"origin.isUpdateIndeterminate\"\n (ngModelChange)=\"onPermissionChange(node, 'update')\"\n nz-tooltip\n nzTooltipTitle=\"Quy\u1EC1n C\u1EADp nh\u1EADt (Update)\"\n >\n <span class=\"text-xs font-semibold\">S\u1EEDa (U)</span>\n </label>\n <label\n nz-checkbox\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"origin.canDelete\"\n [nzIndeterminate]=\"origin.isDeleteIndeterminate\"\n (ngModelChange)=\"onPermissionChange(node, 'delete')\"\n nz-tooltip\n nzTooltipTitle=\"Quy\u1EC1n X\u00F3a (Delete)\"\n >\n <span class=\"text-xs font-semibold\">X\u00F3a (D)</span>\n </label>\n </div>\n </div>\n </ng-template>\n </div>\n </nz-tab>\n\n <!-- TAB 2: DANH S\u00C1CH USER TRONG ROLE -->\n <nz-tab [nzTitle]=\"userTabTitleTpl\">\n <ng-template #userTabTitleTpl>\n <nz-icon nzType=\"team\"></nz-icon>\n <span>Ng\u01B0\u1EDDi d\u00F9ng thu\u1ED9c Role ({{ lstUserInRole.length }})</span>\n </ng-template>\n\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 10px\">\n <div class=\"text-xs text-muted\">\n Danh s\u00E1ch t\u00E0i kho\u1EA3n \u0111\u01B0\u1EE3c g\u00E1n tr\u1EF1c ti\u1EBFp v\u00E0o Vai tr\u00F2 <strong>{{ formData.get(\"Name\")?.value }}</strong\n >.\n </div>\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openAddUserModal()\">\n <nz-icon nzType=\"usergroup-add\"></nz-icon> Th\u00EAm User v\u00E0o Role\n </button>\n </div>\n\n <nz-table\n #userTable\n [nzData]=\"lstUserInRole\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"lstUserInRole.length > 10\"\n [nzPageSize]=\"10\"\n [nzNoResult]=\"emptyRoleUserTpl\"\n >\n <thead>\n <tr>\n <th nzWidth=\"48px\" class=\"text-center\">#</th>\n <th nzWidth=\"170px\">T\u00EAn \u0111\u0103ng nh\u1EADp</th>\n <th>H\u1ECD v\u00E0 t\u00EAn</th>\n <th>Email</th>\n <th nzWidth=\"65px\" class=\"text-center\">G\u1EE1</th>\n </tr>\n </thead>\n <tbody>\n @for (u of userTable.data; track u.App_User_Id || $index; let idx = $index) {\n <tr>\n <td class=\"text-center cell-number\">{{ idx + 1 }}</td>\n <td>\n <code class=\"cell-mono\">{{ u.UserName }}</code>\n </td>\n <td class=\"font-medium\">{{ u.FullName }}</td>\n <td class=\"text-secondary\">{{ u.Email || \"\u2014\" }}</td>\n <td class=\"text-center\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"G\u1EE1 User kh\u1ECFi Role n\u00E0y\"\n (click)=\"deleteUserFromRole(u)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n\n <ng-template #emptyRoleUserTpl>\n <div style=\"padding: 16px; text-align: center\" class=\"text-muted\">\n Ch\u01B0a c\u00F3 User n\u00E0o trong Role n\u00E0y. Nh\u1EA5n <strong>\"Th\u00EAm User v\u00E0o Role\"</strong> \u0111\u1EC3 g\u00E1n ng\u01B0\u1EDDi d\u00F9ng.\n </div>\n </ng-template>\n </nz-tab>\n </nz-tabset>\n </div>\n </form>\n </ng-container>\n\n <ng-template #drawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (drawerMode === \"edit\" && editingRole) {\n <button type=\"button\" nz-button nzDanger nzType=\"default\" (click)=\"delete(editingRole)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a Vai tr\u00F2 n\u00E0y\n </button>\n }\n </div>\n\n <div nz-flex [nzGap]=\"8\">\n <button type=\"button\" nz-button (click)=\"closeDrawer()\">H\u1EE7y</button>\n\n @if (drawerMode === \"create\") {\n <button type=\"button\" nz-button [nzLoading]=\"isSaving\" (click)=\"submitDrawer(true)\">\n <nz-icon nzType=\"plus\"></nz-icon> L\u01B0u & Th\u00EAm ti\u1EBFp\n </button>\n }\n\n <button type=\"button\" nz-button nzType=\"primary\" [nzLoading]=\"isSaving\" (click)=\"submitDrawer(false)\">\n <nz-icon nzType=\"save\"></nz-icon>\n {{ drawerMode === \"create\" ? \"T\u1EA1o Vai tr\u00F2\" : \"L\u01B0u thay \u0111\u1ED5i\" }}\n </button>\n </div>\n </div>\n </ng-template>\n</nz-drawer>\n\n<!-- ========================================================================= -->\n<!-- MODAL CH\u1ECCN NHANH USER \u0110\u1EC2 G\u00C1N V\u00C0O ROLE -->\n<!-- ========================================================================= -->\n<nz-modal\n [(nzVisible)]=\"isAddUserModalVisible\"\n nzTitle=\"Ch\u1ECDn Ng\u01B0\u1EDDi d\u00F9ng (User) g\u00E1n v\u00E0o Role\"\n [nzWidth]=\"700\"\n [nzCentered]=\"true\"\n (nzOnCancel)=\"closeAddUserModal()\"\n (nzOnOk)=\"addUsersToRole()\"\n nzOkText=\"G\u00E1n c\u00E1c User \u0111\u00E3 ch\u1ECDn\"\n nzCancelText=\"\u0110\u00F3ng\"\n>\n <ng-container *nzModalContent>\n <nz-input-group [nzPrefix]=\"prefixIconSearch\" style=\"margin-bottom: 12px\">\n <input\n type=\"text\"\n nz-input\n placeholder=\"T\u00ECm nhanh theo T\u00EAn \u0111\u0103ng nh\u1EADp, H\u1ECD t\u00EAn ho\u1EB7c Email...\"\n [(ngModel)]=\"searchUserText\"\n (ngModelChange)=\"filterAvailableUsers()\"\n />\n </nz-input-group>\n <ng-template #prefixIconSearch>\n <nz-icon nzType=\"search\"></nz-icon>\n </ng-template>\n\n <nz-table\n #addUserTable\n [nzData]=\"lstFilteredUser\"\n [nzSize]=\"'small'\"\n [nzBordered]=\"true\"\n [nzShowPagination]=\"true\"\n [nzPageSize]=\"8\"\n [nzLoading]=\"isLoadingAvailableUsers\"\n >\n <thead>\n <tr>\n <th\n nzWidth=\"50px\"\n nzShowCheckbox\n [(nzChecked)]=\"isAllUserChecked\"\n (nzCheckedChange)=\"onAllUserChecked($event)\"\n [nzIndeterminate]=\"isUserIndeterminate\"\n ></th>\n <th nzWidth=\"170px\">T\u00EAn \u0111\u0103ng nh\u1EADp</th>\n <th>H\u1ECD v\u00E0 t\u00EAn</th>\n <th>Email</th>\n </tr>\n </thead>\n <tbody>\n @for (item of addUserTable.data; track item.App_User_Id || $index) {\n <tr class=\"selectable-row\" (click)=\"onUserChecked(item, !item.checked)\">\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\n <label nz-checkbox [(ngModel)]=\"item.checked\" (ngModelChange)=\"onUserChecked(item, $event)\"></label>\n </td>\n <td>\n <code class=\"cell-mono\">{{ item.UserName }}</code>\n </td>\n <td class=\"font-medium\">{{ item.FullName }}</td>\n <td class=\"text-secondary\">{{ item.Email || \"\u2014\" }}</td>\n </tr>\n }\n </tbody>\n </nz-table>\n </ng-container>\n</nz-modal>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.DecimalPipe, name: "number" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i6.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "component", type: i6.NzThAddOnComponent, selector: "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", inputs: ["nzColumnKey", "nzFilterMultiple", "nzSortOrder", "nzSortPriority", "nzSortDirections", "nzFilters", "nzSortFn", "nzFilterFn", "nzShowSort", "nzShowFilter", "nzCustomFilter"], outputs: ["nzCheckedChange", "nzSortOrderChange", "nzFilterChange"] }, { kind: "directive", type: i6.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i6.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i6.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i6.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i6.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i6.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "component", type: i6.NzThSelectionComponent, selector: "th[nzSelections],th[nzChecked],th[nzShowCheckbox],th[nzShowRowSelection]", inputs: ["nzSelections", "nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzShowCheckbox", "nzShowRowSelection"], outputs: ["nzCheckedChange"] }, { kind: "ngmodule", type: NzPaginationModule }, { kind: "component", type: i7.NzPaginationComponent, selector: "nz-pagination", inputs: ["nzShowTotal", "nzItemRender", "nzSize", "nzPageSizeOptions", "nzShowSizeChanger", "nzShowQuickJumper", "nzSimple", "nzDisabled", "nzResponsive", "nzHideOnSinglePage", "nzTotal", "nzPageIndex", "nzPageSize"], outputs: ["nzPageSizeChange", "nzPageIndexChange"], exportAs: ["nzPagination"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i13$2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i14.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzTabsModule }, { kind: "component", type: i5$2.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact", "nzDestroyInactiveTabPane"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i5$2.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i10$1.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i3$2.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId", "nzName"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i11.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: IconCopy, selector: "icon-copy", inputs: ["textToCopy", "tooltip", "size"] }, { kind: "directive", type: AutoFocusDirective, selector: "[appAutoFocus]", inputs: ["appAutoFocus"] }] });
18613
18687
  }
18614
18688
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: RoleListComponent, decorators: [{
18615
18689
  type: Component,
@@ -20237,7 +20311,7 @@ class CacheListComponent extends BaseComponent {
20237
20311
  this.getData();
20238
20312
  }
20239
20313
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: CacheListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
20240
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: CacheListComponent, isStandalone: true, selector: "app-cache-list", usesInheritance: true, ngImport: i0, template: "<div class=\"enterprise-page-shell\">\n <!-- 1. UNIFIED FILTER & ACTION TOOLBAR -->\n <div class=\"enterprise-toolbar\">\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\n <nz-input-group [nzPrefix]=\"prefixKey\" [nzSuffix]=\"clearKeyTpl\" nzSize=\"small\" style=\"width: 300px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo kh\u00F3a Cache (Cache Key)...\" [(ngModel)]=\"filter.CacheKey\" />\n </nz-input-group>\n <ng-template #prefixKey>\n <nz-icon nzType=\"key\" class=\"text-muted\"></nz-icon>\n </ng-template>\n <ng-template #clearKeyTpl>\n @if (filter.CacheKey) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer text-muted\"\n (click)=\"filter.CacheKey = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\n </button>\n </div>\n\n <div class=\"toolbar-actions\">\n <span class=\"kpi-pill\">\n S\u1ED1 kh\u00F3a: <strong>{{ (data.LstItem || []).length }}</strong>\n </span>\n\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzDanger\n (click)=\"isModalVisible = true; prefix = ''\"\n >\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a theo Prefix\n </button>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" nzDanger (click)=\"clearAll()\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a to\u00E0n b\u1ED9 Cache\n </button>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"getData()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n </div>\n </div>\n\n <!-- 2. ENTERPRISE DATA TABLE -->\n <nz-table\n #table\n [nzData]=\"data.LstItem || []\"\n [nzLoading]=\"isLoading\"\n [nzBordered]=\"true\"\n [nzSize]=\"'small'\"\n [nzFrontPagination]=\"true\"\n [nzPageSize]=\"20\"\n [nzScroll]=\"{ x: '760px', y: 'calc(100vh - 245px)' }\"\n >\n <thead>\n <tr>\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\n <th>Kh\u00F3a b\u1ED9 nh\u1EDB \u0111\u1EC7m (Cache Key)</th>\n <th nzWidth=\"160px\">Th\u1EDDi h\u1EA1n c\u00F2n l\u1EA1i (TTL)</th>\n <th nzWidth=\"130px\" class=\"text-right\">Dung l\u01B0\u1EE3ng</th>\n <th nzWidth=\"105px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (cache of table.data; track cache.CacheKey || $index; let i = $index) {\n <tr\n class=\"selectable-row\"\n [class.selected-row]=\"selectedKey === cache.CacheKey && isDrawerVisible\"\n (dblclick)=\"openDetailModal(cache.CacheKey)\"\n >\n <td class=\"text-center cell-number text-muted\">{{ i + 1 }}</td>\n <td>\n <code class=\"cell-mono link-detail\" (click)=\"openDetailModal(cache.CacheKey)\">\n {{ cache.CacheKey | limitLetters: 110 }}\n </code>\n </td>\n <td>\n <nz-tag nzColor=\"blue\">{{ cache.TtlMinutes | durationFormat }}</nz-tag>\n </td>\n <td class=\"text-right cell-number\">{{ cache.SizeBytes | formatBytes }}</td>\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\n <div class=\"action-btn-group\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n nzTooltipTitle=\"Xem n\u1ED9i dung JSON trong Drawer\"\n (click)=\"openDetailModal(cache.CacheKey)\"\n >\n <nz-icon nzType=\"eye\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a kh\u00F3a Cache n\u00E0y\"\n (click)=\"deleteCache(cache.CacheKey)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n</div>\n\n<!-- SIDE DRAWER: INSPECT CACHE VALUE -->\n<nz-drawer\n [nzPlacement]=\"'right'\"\n [nzWidth]=\"680\"\n [nzVisible]=\"isDrawerVisible\"\n nzTitle=\"Chi ti\u1EBFt d\u1EEF li\u1EC7u Cache\"\n [nzContent]=\"contentTemplate\"\n [nzFooter]=\"footerTemplate\"\n (nzOnClose)=\"isDrawerVisible = false\"\n>\n <ng-template #contentTemplate>\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"key\" class=\"color-primary\"></nz-icon>\n <span>Cache Key</span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n [cdkCopyToClipboard]=\"selectedKey\"\n (click)=\"$event.stopPropagation(); success('\u0110\u00E3 sao ch\u00E9p kh\u00F3a Cache')\"\n >\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p Key\n </button>\n </div>\n <pre class=\"enterprise-code-block\">{{ selectedKey }}</pre>\n </div>\n\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"code\" class=\"color-primary\"></nz-icon>\n <span>Gi\u00E1 tr\u1ECB l\u01B0u tr\u1EEF (Payload JSON)</span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n [cdkCopyToClipboard]=\"selectedValue | json\"\n (click)=\"$event.stopPropagation(); success('\u0110\u00E3 sao ch\u00E9p n\u1ED9i dung Cache')\"\n >\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p JSON\n </button>\n </div>\n <pre class=\"enterprise-code-block\" style=\"max-height: calc(100vh - 340px)\">{{ selectedValue | json }}</pre>\n </div>\n </ng-template>\n <ng-template #footerTemplate>\n <div nz-flex [nzGap]=\"8\" [nzJustify]=\"'space-between'\">\n <button type=\"button\" nz-button nzDanger (click)=\"deleteCache(selectedKey); isDrawerVisible = false\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a kh\u00F3a n\u00E0y\n </button>\n <button type=\"button\" nz-button (click)=\"isDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n</nz-drawer>\n\n<nz-modal\n [(nzVisible)]=\"isModalVisible\"\n nzTitle=\"X\u00F3a Cache theo Ti\u1EC1n t\u1ED1 (Prefix)\"\n [nzWidth]=\"500\"\n (nzOnCancel)=\"isModalVisible = false\"\n (nzOnOk)=\"removeStartWith(this.prefix)\"\n nzOkText=\"X\u00F3a Cache\"\n nzOkDanger\n nzCancelText=\"H\u1EE7y\"\n>\n <ng-container *nzModalContent>\n <extend-input [label]=\"'Prefix'\" [(_ngModel)]=\"prefix\"></extend-input>\n </ng-container>\n</nz-modal>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.JsonPipe, name: "json" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i6.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i6.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i6.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i6.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i6.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i6.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i6.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "ngmodule", type: NzPaginationModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i11.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "component", type: ExtendInput, selector: "extend-input", inputs: ["label", "floatingLabel", "placeHolder", "labelAlign", "inputClass", "labelSpan", "labelFlex", "inputFlex", "showClear", "disabled", "readOnly", "required", "noBottom", "selectModeType", "autocomplete", "autofocus", "inputWidth", "inputHeight", "borderBottomOnly", "displayInline", "size", "displayField", "valueField", "formData", "controlName", "_ngModel", "isSubmited"], outputs: ["_ngModelChange", "onclickClearIcon", "onenter"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i2$6.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "pipe", type: DurationFormatPipe, name: "durationFormat" }, { kind: "pipe", type: LimitLettersPipe, name: "limitLetters" }, { kind: "pipe", type: FormatBytesPipe, name: "formatBytes" }] });
20314
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: CacheListComponent, isStandalone: true, selector: "app-cache-list", usesInheritance: true, ngImport: i0, template: "<div class=\"enterprise-page-shell\">\n <!-- 1. UNIFIED FILTER & ACTION TOOLBAR -->\n <div class=\"enterprise-toolbar\">\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\n <nz-input-group [nzPrefix]=\"prefixKey\" [nzSuffix]=\"clearKeyTpl\" nzSize=\"small\" style=\"width: 300px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo kh\u00F3a Cache (Cache Key)...\" [(ngModel)]=\"filter.CacheKey\" />\n </nz-input-group>\n <ng-template #prefixKey>\n <nz-icon nzType=\"key\" class=\"text-muted\"></nz-icon>\n </ng-template>\n <ng-template #clearKeyTpl>\n @if (filter.CacheKey) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer text-muted\"\n (click)=\"filter.CacheKey = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\n </button>\n </div>\n\n <div class=\"toolbar-actions\">\n <span class=\"kpi-pill\">\n S\u1ED1 kh\u00F3a: <strong>{{ (data.LstItem || []).length }}</strong>\n </span>\n\n <button type=\"button\" nz-button nzSize=\"small\" nzDanger (click)=\"isModalVisible = true; prefix = ''\">\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a theo Prefix\n </button>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" nzDanger (click)=\"clearAll()\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a to\u00E0n b\u1ED9 Cache\n </button>\n\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"getData()\">\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n </div>\n </div>\n\n <!-- 2. ENTERPRISE DATA TABLE -->\n <nz-table\n #table\n [nzData]=\"data.LstItem || []\"\n [nzLoading]=\"isLoading\"\n [nzBordered]=\"true\"\n [nzSize]=\"'small'\"\n [nzFrontPagination]=\"true\"\n [nzPageSize]=\"20\"\n [nzScroll]=\"{ x: '760px', y: 'calc(100vh - 245px)' }\"\n >\n <thead>\n <tr>\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\n <th>Kh\u00F3a b\u1ED9 nh\u1EDB \u0111\u1EC7m (Cache Key)</th>\n <th nzWidth=\"160px\">Th\u1EDDi h\u1EA1n c\u00F2n l\u1EA1i (TTL)</th>\n <th nzWidth=\"130px\" class=\"text-right\">Dung l\u01B0\u1EE3ng</th>\n <th nzWidth=\"105px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (cache of table.data; track cache.CacheKey || $index; let i = $index) {\n <tr\n class=\"selectable-row\"\n [class.selected-row]=\"selectedKey === cache.CacheKey && isDrawerVisible\"\n (dblclick)=\"openDetailModal(cache.CacheKey)\"\n >\n <td class=\"text-center cell-number text-muted\">{{ i + 1 }}</td>\n <td>\n <code class=\"cell-mono link-detail\" (click)=\"openDetailModal(cache.CacheKey)\">\n {{ cache.CacheKey | limitLetters: 110 }}\n </code>\n </td>\n <td>\n <nz-tag nzColor=\"blue\">{{ cache.TtlMinutes | durationFormat }}</nz-tag>\n </td>\n <td class=\"text-right cell-number\">{{ cache.SizeBytes | formatBytes }}</td>\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\n <div class=\"action-btn-group\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n nzTooltipTitle=\"Xem n\u1ED9i dung JSON trong Drawer\"\n (click)=\"openDetailModal(cache.CacheKey)\"\n >\n <nz-icon nzType=\"eye\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a kh\u00F3a Cache n\u00E0y\"\n (click)=\"deleteCache(cache.CacheKey)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n</div>\n\n<!-- SIDE DRAWER: INSPECT CACHE VALUE -->\n<nz-drawer\n [nzPlacement]=\"'right'\"\n [nzWidth]=\"680\"\n [nzVisible]=\"isDrawerVisible\"\n nzTitle=\"Chi ti\u1EBFt d\u1EEF li\u1EC7u Cache\"\n [nzContent]=\"contentTemplate\"\n [nzFooter]=\"footerTemplate\"\n (nzOnClose)=\"isDrawerVisible = false\"\n>\n <ng-template #contentTemplate>\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"key\" class=\"color-primary\"></nz-icon>\n <span>Cache Key</span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n [cdkCopyToClipboard]=\"selectedKey\"\n (click)=\"$event.stopPropagation(); success('\u0110\u00E3 sao ch\u00E9p kh\u00F3a Cache')\"\n >\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p Key\n </button>\n </div>\n <pre class=\"enterprise-code-block\">{{ selectedKey }}</pre>\n </div>\n\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"code\" class=\"color-primary\"></nz-icon>\n <span>Gi\u00E1 tr\u1ECB l\u01B0u tr\u1EEF (Payload JSON)</span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n [cdkCopyToClipboard]=\"selectedValue | json\"\n (click)=\"$event.stopPropagation(); success('\u0110\u00E3 sao ch\u00E9p n\u1ED9i dung Cache')\"\n >\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p JSON\n </button>\n </div>\n <pre class=\"enterprise-code-block\" style=\"max-height: calc(100vh - 340px)\">{{ selectedValue | json }}</pre>\n </div>\n </ng-template>\n <ng-template #footerTemplate>\n <div nz-flex [nzGap]=\"8\" [nzJustify]=\"'space-between'\">\n <button type=\"button\" nz-button nzDanger (click)=\"deleteCache(selectedKey); isDrawerVisible = false\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a kh\u00F3a n\u00E0y\n </button>\n <button type=\"button\" nz-button (click)=\"isDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n</nz-drawer>\n\n<nz-modal\n [(nzVisible)]=\"isModalVisible\"\n nzTitle=\"X\u00F3a Cache theo Ti\u1EC1n t\u1ED1 (Prefix)\"\n [nzWidth]=\"500\"\n (nzOnCancel)=\"isModalVisible = false\"\n (nzOnOk)=\"removeStartWith(this.prefix)\"\n nzOkText=\"X\u00F3a Cache\"\n nzOkDanger\n nzCancelText=\"H\u1EE7y\"\n>\n <ng-container *nzModalContent>\n <extend-input [label]=\"'Prefix'\" [(_ngModel)]=\"prefix\"></extend-input>\n </ng-container>\n</nz-modal>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.JsonPipe, name: "json" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i6.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i6.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i6.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i6.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i6.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i6.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i6.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "ngmodule", type: NzPaginationModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i11.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "component", type: ExtendInput, selector: "extend-input", inputs: ["label", "floatingLabel", "placeHolder", "labelAlign", "inputClass", "labelSpan", "labelFlex", "inputFlex", "showClear", "disabled", "readOnly", "required", "noBottom", "selectModeType", "autocomplete", "autofocus", "inputWidth", "inputHeight", "borderBottomOnly", "displayInline", "size", "displayField", "valueField", "formData", "controlName", "_ngModel", "isSubmited"], outputs: ["_ngModelChange", "onclickClearIcon", "onenter"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i2$6.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "pipe", type: DurationFormatPipe, name: "durationFormat" }, { kind: "pipe", type: LimitLettersPipe, name: "limitLetters" }, { kind: "pipe", type: FormatBytesPipe, name: "formatBytes" }] });
20241
20315
  }
20242
20316
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: CacheListComponent, decorators: [{
20243
20317
  type: Component,
@@ -20262,7 +20336,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
20262
20336
  FormatBytesPipe,
20263
20337
  NzDividerComponent,
20264
20338
  Box,
20265
- ], template: "<div class=\"enterprise-page-shell\">\n <!-- 1. UNIFIED FILTER & ACTION TOOLBAR -->\n <div class=\"enterprise-toolbar\">\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\n <nz-input-group [nzPrefix]=\"prefixKey\" [nzSuffix]=\"clearKeyTpl\" nzSize=\"small\" style=\"width: 300px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo kh\u00F3a Cache (Cache Key)...\" [(ngModel)]=\"filter.CacheKey\" />\n </nz-input-group>\n <ng-template #prefixKey>\n <nz-icon nzType=\"key\" class=\"text-muted\"></nz-icon>\n </ng-template>\n <ng-template #clearKeyTpl>\n @if (filter.CacheKey) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer text-muted\"\n (click)=\"filter.CacheKey = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\n </button>\n </div>\n\n <div class=\"toolbar-actions\">\n <span class=\"kpi-pill\">\n S\u1ED1 kh\u00F3a: <strong>{{ (data.LstItem || []).length }}</strong>\n </span>\n\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzDanger\n (click)=\"isModalVisible = true; prefix = ''\"\n >\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a theo Prefix\n </button>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" nzDanger (click)=\"clearAll()\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a to\u00E0n b\u1ED9 Cache\n </button>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"getData()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n </div>\n </div>\n\n <!-- 2. ENTERPRISE DATA TABLE -->\n <nz-table\n #table\n [nzData]=\"data.LstItem || []\"\n [nzLoading]=\"isLoading\"\n [nzBordered]=\"true\"\n [nzSize]=\"'small'\"\n [nzFrontPagination]=\"true\"\n [nzPageSize]=\"20\"\n [nzScroll]=\"{ x: '760px', y: 'calc(100vh - 245px)' }\"\n >\n <thead>\n <tr>\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\n <th>Kh\u00F3a b\u1ED9 nh\u1EDB \u0111\u1EC7m (Cache Key)</th>\n <th nzWidth=\"160px\">Th\u1EDDi h\u1EA1n c\u00F2n l\u1EA1i (TTL)</th>\n <th nzWidth=\"130px\" class=\"text-right\">Dung l\u01B0\u1EE3ng</th>\n <th nzWidth=\"105px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (cache of table.data; track cache.CacheKey || $index; let i = $index) {\n <tr\n class=\"selectable-row\"\n [class.selected-row]=\"selectedKey === cache.CacheKey && isDrawerVisible\"\n (dblclick)=\"openDetailModal(cache.CacheKey)\"\n >\n <td class=\"text-center cell-number text-muted\">{{ i + 1 }}</td>\n <td>\n <code class=\"cell-mono link-detail\" (click)=\"openDetailModal(cache.CacheKey)\">\n {{ cache.CacheKey | limitLetters: 110 }}\n </code>\n </td>\n <td>\n <nz-tag nzColor=\"blue\">{{ cache.TtlMinutes | durationFormat }}</nz-tag>\n </td>\n <td class=\"text-right cell-number\">{{ cache.SizeBytes | formatBytes }}</td>\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\n <div class=\"action-btn-group\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n nzTooltipTitle=\"Xem n\u1ED9i dung JSON trong Drawer\"\n (click)=\"openDetailModal(cache.CacheKey)\"\n >\n <nz-icon nzType=\"eye\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a kh\u00F3a Cache n\u00E0y\"\n (click)=\"deleteCache(cache.CacheKey)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n</div>\n\n<!-- SIDE DRAWER: INSPECT CACHE VALUE -->\n<nz-drawer\n [nzPlacement]=\"'right'\"\n [nzWidth]=\"680\"\n [nzVisible]=\"isDrawerVisible\"\n nzTitle=\"Chi ti\u1EBFt d\u1EEF li\u1EC7u Cache\"\n [nzContent]=\"contentTemplate\"\n [nzFooter]=\"footerTemplate\"\n (nzOnClose)=\"isDrawerVisible = false\"\n>\n <ng-template #contentTemplate>\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"key\" class=\"color-primary\"></nz-icon>\n <span>Cache Key</span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n [cdkCopyToClipboard]=\"selectedKey\"\n (click)=\"$event.stopPropagation(); success('\u0110\u00E3 sao ch\u00E9p kh\u00F3a Cache')\"\n >\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p Key\n </button>\n </div>\n <pre class=\"enterprise-code-block\">{{ selectedKey }}</pre>\n </div>\n\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"code\" class=\"color-primary\"></nz-icon>\n <span>Gi\u00E1 tr\u1ECB l\u01B0u tr\u1EEF (Payload JSON)</span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n [cdkCopyToClipboard]=\"selectedValue | json\"\n (click)=\"$event.stopPropagation(); success('\u0110\u00E3 sao ch\u00E9p n\u1ED9i dung Cache')\"\n >\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p JSON\n </button>\n </div>\n <pre class=\"enterprise-code-block\" style=\"max-height: calc(100vh - 340px)\">{{ selectedValue | json }}</pre>\n </div>\n </ng-template>\n <ng-template #footerTemplate>\n <div nz-flex [nzGap]=\"8\" [nzJustify]=\"'space-between'\">\n <button type=\"button\" nz-button nzDanger (click)=\"deleteCache(selectedKey); isDrawerVisible = false\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a kh\u00F3a n\u00E0y\n </button>\n <button type=\"button\" nz-button (click)=\"isDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n</nz-drawer>\n\n<nz-modal\n [(nzVisible)]=\"isModalVisible\"\n nzTitle=\"X\u00F3a Cache theo Ti\u1EC1n t\u1ED1 (Prefix)\"\n [nzWidth]=\"500\"\n (nzOnCancel)=\"isModalVisible = false\"\n (nzOnOk)=\"removeStartWith(this.prefix)\"\n nzOkText=\"X\u00F3a Cache\"\n nzOkDanger\n nzCancelText=\"H\u1EE7y\"\n>\n <ng-container *nzModalContent>\n <extend-input [label]=\"'Prefix'\" [(_ngModel)]=\"prefix\"></extend-input>\n </ng-container>\n</nz-modal>\n" }]
20339
+ ], template: "<div class=\"enterprise-page-shell\">\n <!-- 1. UNIFIED FILTER & ACTION TOOLBAR -->\n <div class=\"enterprise-toolbar\">\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\n <nz-input-group [nzPrefix]=\"prefixKey\" [nzSuffix]=\"clearKeyTpl\" nzSize=\"small\" style=\"width: 300px\">\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo kh\u00F3a Cache (Cache Key)...\" [(ngModel)]=\"filter.CacheKey\" />\n </nz-input-group>\n <ng-template #prefixKey>\n <nz-icon nzType=\"key\" class=\"text-muted\"></nz-icon>\n </ng-template>\n <ng-template #clearKeyTpl>\n @if (filter.CacheKey) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer text-muted\"\n (click)=\"filter.CacheKey = ''; search()\"\n ></nz-icon>\n }\n </ng-template>\n\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\n </button>\n </div>\n\n <div class=\"toolbar-actions\">\n <span class=\"kpi-pill\">\n S\u1ED1 kh\u00F3a: <strong>{{ (data.LstItem || []).length }}</strong>\n </span>\n\n <button type=\"button\" nz-button nzSize=\"small\" nzDanger (click)=\"isModalVisible = true; prefix = ''\">\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a theo Prefix\n </button>\n\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" nzDanger (click)=\"clearAll()\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a to\u00E0n b\u1ED9 Cache\n </button>\n\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"getData()\">\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n </div>\n </div>\n\n <!-- 2. ENTERPRISE DATA TABLE -->\n <nz-table\n #table\n [nzData]=\"data.LstItem || []\"\n [nzLoading]=\"isLoading\"\n [nzBordered]=\"true\"\n [nzSize]=\"'small'\"\n [nzFrontPagination]=\"true\"\n [nzPageSize]=\"20\"\n [nzScroll]=\"{ x: '760px', y: 'calc(100vh - 245px)' }\"\n >\n <thead>\n <tr>\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\n <th>Kh\u00F3a b\u1ED9 nh\u1EDB \u0111\u1EC7m (Cache Key)</th>\n <th nzWidth=\"160px\">Th\u1EDDi h\u1EA1n c\u00F2n l\u1EA1i (TTL)</th>\n <th nzWidth=\"130px\" class=\"text-right\">Dung l\u01B0\u1EE3ng</th>\n <th nzWidth=\"105px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (cache of table.data; track cache.CacheKey || $index; let i = $index) {\n <tr\n class=\"selectable-row\"\n [class.selected-row]=\"selectedKey === cache.CacheKey && isDrawerVisible\"\n (dblclick)=\"openDetailModal(cache.CacheKey)\"\n >\n <td class=\"text-center cell-number text-muted\">{{ i + 1 }}</td>\n <td>\n <code class=\"cell-mono link-detail\" (click)=\"openDetailModal(cache.CacheKey)\">\n {{ cache.CacheKey | limitLetters: 110 }}\n </code>\n </td>\n <td>\n <nz-tag nzColor=\"blue\">{{ cache.TtlMinutes | durationFormat }}</nz-tag>\n </td>\n <td class=\"text-right cell-number\">{{ cache.SizeBytes | formatBytes }}</td>\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\n <div class=\"action-btn-group\">\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n nz-tooltip\n nzTooltipTitle=\"Xem n\u1ED9i dung JSON trong Drawer\"\n (click)=\"openDetailModal(cache.CacheKey)\"\n >\n <nz-icon nzType=\"eye\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a kh\u00F3a Cache n\u00E0y\"\n (click)=\"deleteCache(cache.CacheKey)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n</div>\n\n<!-- SIDE DRAWER: INSPECT CACHE VALUE -->\n<nz-drawer\n [nzPlacement]=\"'right'\"\n [nzWidth]=\"680\"\n [nzVisible]=\"isDrawerVisible\"\n nzTitle=\"Chi ti\u1EBFt d\u1EEF li\u1EC7u Cache\"\n [nzContent]=\"contentTemplate\"\n [nzFooter]=\"footerTemplate\"\n (nzOnClose)=\"isDrawerVisible = false\"\n>\n <ng-template #contentTemplate>\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"key\" class=\"color-primary\"></nz-icon>\n <span>Cache Key</span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n [cdkCopyToClipboard]=\"selectedKey\"\n (click)=\"$event.stopPropagation(); success('\u0110\u00E3 sao ch\u00E9p kh\u00F3a Cache')\"\n >\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p Key\n </button>\n </div>\n <pre class=\"enterprise-code-block\">{{ selectedKey }}</pre>\n </div>\n\n <div class=\"drawer-section-card\">\n <div class=\"drawer-section-header\">\n <div class=\"drawer-section-title\">\n <nz-icon nzType=\"code\" class=\"color-primary\"></nz-icon>\n <span>Gi\u00E1 tr\u1ECB l\u01B0u tr\u1EEF (Payload JSON)</span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n [cdkCopyToClipboard]=\"selectedValue | json\"\n (click)=\"$event.stopPropagation(); success('\u0110\u00E3 sao ch\u00E9p n\u1ED9i dung Cache')\"\n >\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p JSON\n </button>\n </div>\n <pre class=\"enterprise-code-block\" style=\"max-height: calc(100vh - 340px)\">{{ selectedValue | json }}</pre>\n </div>\n </ng-template>\n <ng-template #footerTemplate>\n <div nz-flex [nzGap]=\"8\" [nzJustify]=\"'space-between'\">\n <button type=\"button\" nz-button nzDanger (click)=\"deleteCache(selectedKey); isDrawerVisible = false\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a kh\u00F3a n\u00E0y\n </button>\n <button type=\"button\" nz-button (click)=\"isDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n</nz-drawer>\n\n<nz-modal\n [(nzVisible)]=\"isModalVisible\"\n nzTitle=\"X\u00F3a Cache theo Ti\u1EC1n t\u1ED1 (Prefix)\"\n [nzWidth]=\"500\"\n (nzOnCancel)=\"isModalVisible = false\"\n (nzOnOk)=\"removeStartWith(this.prefix)\"\n nzOkText=\"X\u00F3a Cache\"\n nzOkDanger\n nzCancelText=\"H\u1EE7y\"\n>\n <ng-container *nzModalContent>\n <extend-input [label]=\"'Prefix'\" [(_ngModel)]=\"prefix\"></extend-input>\n </ng-container>\n</nz-modal>\n" }]
20266
20340
  }] });
20267
20341
 
20268
20342
  class DocTemplateService extends HTTPService {
@@ -20431,7 +20505,7 @@ class DocTemplate extends BaseComponent {
20431
20505
  return path.substring(0, path.lastIndexOf('\\'));
20432
20506
  }
20433
20507
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: DocTemplate, deps: null, target: i0.ɵɵFactoryTarget.Component });
20434
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: DocTemplate, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "myTree", first: true, predicate: ["myTree"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"action-bar\" style=\"margin-bottom: 16px; display: flex; gap: 8px\">\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"getdata()\"><nz-icon nzType=\"reload\" /> Reload</button>\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"modalVisible = true\">\n <nz-icon nzType=\"folder-add\" /> New folder\n </button>\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"triggerUpload()\">\n <nz-icon nzType=\"upload\" /> Upload\n </button>\n</div>\n\n<input type=\"file\" id=\"fileUpload\" style=\"display: none\" (change)=\"onFileSelected($event)\" />\n\n<nz-tree\n #myTree\n nzBlockNode\n [nzData]=\"nodes\"\n (nzClick)=\"activeNode($event)\"\n (nzContextMenu)=\"contextMenu($event, menu)\"\n [nzTreeTemplate]=\"nzTreeTemplate\"\n></nz-tree>\n\n<ng-template #nzTreeTemplate let-node>\n <span class=\"custom-node\" (contextmenu)=\"selectedNode = node\">\n <nz-icon [nzType]=\"node.isLeaf ? 'file' : node.isExpanded ? 'folder-open' : 'folder'\" />\n <span class=\"node-title\">{{ node.title }}</span>\n </span>\n</ng-template>\n\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n @if (!selectedNode?.isLeaf) {\n <li nz-menu-item (click)=\"triggerUpload()\"><nz-icon nzType=\"upload\" /> Upload</li>\n <li nz-menu-item (click)=\"modalVisible = true\"><nz-icon nzType=\"folder-add\" /> New folder</li>\n }\n\n @if (selectedNode?.isLeaf) {\n <li nz-menu-item (click)=\"download()\"><nz-icon nzType=\"download\" /> Download</li>\n }\n\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"delete()\">\n <nz-icon nzType=\"delete\" /> X\u00F3a {{ selectedNode?.isLeaf ? \"File\" : \"Folder\" }}\n </li>\n </ul>\n</nz-dropdown-menu>\n\n<nz-modal\n nzTitle=\"New folder\"\n [nzMaskClosable]=\"false\"\n [(nzVisible)]=\"modalVisible\"\n (nzOnCancel)=\"modalVisible = false\"\n (nzOnOk)=\"addFolder()\"\n>\n <ng-container *nzModalContent>\n <extend-input [label]=\"'Name'\" [(_ngModel)]=\"newFolderName\"></extend-input>\n </ng-container>\n</nz-modal>\n", styles: ["@charset \"UTF-8\";.custom-node{cursor:pointer;display:flex;align-items:center}.custom-node nz-icon{margin-right:8px;font-size:16px;color:#1890ff}.custom-node .file-name,.custom-node .folder-name{font-weight:500;margin-right:12px}.custom-node .file-desc,.custom-node .folder-desc{font-size:12px;color:#999}.custom-node .anticon-file{color:#595959}\n"], dependencies: [{ kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i1$5.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i4$2.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "component", type: i5$4.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "component", type: ExtendInput, selector: "extend-input", inputs: ["label", "floatingLabel", "placeHolder", "labelAlign", "inputClass", "labelSpan", "labelFlex", "inputFlex", "showClear", "disabled", "readOnly", "required", "noBottom", "selectModeType", "autocomplete", "autofocus", "inputWidth", "inputHeight", "borderBottomOnly", "displayInline", "size", "displayField", "valueField", "formData", "controlName", "_ngModel", "isSubmited"], outputs: ["_ngModelChange", "onclickClearIcon", "onenter"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }] });
20508
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: DocTemplate, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "myTree", first: true, predicate: ["myTree"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"action-bar\" style=\"margin-bottom: 16px; display: flex; gap: 8px\">\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"getdata()\"><nz-icon nzType=\"reload\" /> Reload</button>\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"modalVisible = true\">\n <nz-icon nzType=\"folder-add\" /> New folder\n </button>\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"triggerUpload()\">\n <nz-icon nzType=\"upload\" /> Upload\n </button>\n</div>\n\n<input type=\"file\" id=\"fileUpload\" style=\"display: none\" (change)=\"onFileSelected($event)\" />\n\n<nz-tree\n #myTree\n nzBlockNode\n [nzData]=\"nodes\"\n (nzClick)=\"activeNode($event)\"\n (nzContextMenu)=\"contextMenu($event, menu)\"\n [nzTreeTemplate]=\"nzTreeTemplate\"\n></nz-tree>\n\n<ng-template #nzTreeTemplate let-node>\n <span class=\"custom-node\" (contextmenu)=\"selectedNode = node\">\n <nz-icon [nzType]=\"node.isLeaf ? 'file' : node.isExpanded ? 'folder-open' : 'folder'\" />\n <span class=\"node-title\">{{ node.title }}</span>\n </span>\n</ng-template>\n\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n @if (!selectedNode?.isLeaf) {\n <li nz-menu-item (click)=\"triggerUpload()\"><nz-icon nzType=\"upload\" /> Upload</li>\n <li nz-menu-item (click)=\"modalVisible = true\"><nz-icon nzType=\"folder-add\" /> New folder</li>\n }\n\n @if (selectedNode?.isLeaf) {\n <li nz-menu-item (click)=\"download()\"><nz-icon nzType=\"download\" /> Download</li>\n }\n\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"delete()\">\n <nz-icon nzType=\"delete\" /> X\u00F3a {{ selectedNode?.isLeaf ? \"File\" : \"Folder\" }}\n </li>\n </ul>\n</nz-dropdown-menu>\n\n<nz-modal\n nzTitle=\"New folder\"\n [nzMaskClosable]=\"false\"\n [(nzVisible)]=\"modalVisible\"\n (nzOnCancel)=\"modalVisible = false\"\n (nzOnOk)=\"addFolder()\"\n>\n <ng-container *nzModalContent>\n <extend-input [label]=\"'Name'\" [(_ngModel)]=\"newFolderName\"></extend-input>\n </ng-container>\n</nz-modal>\n", styles: ["@charset \"UTF-8\";.custom-node{cursor:pointer;display:flex;align-items:center}.custom-node nz-icon{margin-right:8px;font-size:16px;color:#1890ff}.custom-node .file-name,.custom-node .folder-name{font-weight:500;margin-right:12px}.custom-node .file-desc,.custom-node .folder-desc{font-size:12px;color:#999}.custom-node .anticon-file{color:#595959}\n"], dependencies: [{ kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i10$1.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i4$2.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "component", type: i5$4.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "component", type: ExtendInput, selector: "extend-input", inputs: ["label", "floatingLabel", "placeHolder", "labelAlign", "inputClass", "labelSpan", "labelFlex", "inputFlex", "showClear", "disabled", "readOnly", "required", "noBottom", "selectModeType", "autocomplete", "autofocus", "inputWidth", "inputHeight", "borderBottomOnly", "displayInline", "size", "displayField", "valueField", "formData", "controlName", "_ngModel", "isSubmited"], outputs: ["_ngModelChange", "onclickClearIcon", "onenter"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }] });
20435
20509
  }
20436
20510
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: DocTemplate, decorators: [{
20437
20511
  type: Component,
@@ -21463,7 +21537,7 @@ class SynologyComponent extends BaseComponent {
21463
21537
  });
21464
21538
  }
21465
21539
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: SynologyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
21466
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.7", type: SynologyComponent, isStandalone: true, selector: "ng-component", providers: [DatePipe], usesInheritance: true, ngImport: i0, template: "<div nz-row nzGutter=\"32\" class=\"mb-3\">\n <div nz-col nzSpan=\"16\" style=\"display: flex; align-items: center; gap: 8px\">\n <strong>Target: </strong>\n <span class=\"text-primary\">{{ currentPath }}</span>\n\n <icon-copy [textToCopy]=\"currentPath\" [tooltip]=\"'Copy \u0111\u01B0\u1EDDng d\u1EABn'\"></icon-copy>\n </div>\n\n <div nz-col nzSpan=\"8\" style=\"display: flex; justify-content: flex-end; gap: 8px\">\n <input type=\"file\" #fileInput style=\"display: none\" (change)=\"onFileSelected($event)\" />\n <button nz-button nzType=\"primary\" (click)=\"refreshTree()\" nz-tooltip=\"Reload All\" nzTooltipPlacement=\"bottom\">\n <i nz-icon nzType=\"reload\"></i>\n </button>\n <button\n nz-button\n nzType=\"primary\"\n (click)=\"fileInput.click()\"\n nz-tooltip=\"Upload to Target\"\n nzTooltipPlacement=\"bottom\"\n >\n <i nz-icon nzType=\"upload\"></i>\n </button>\n <button\n nz-button\n nzType=\"primary\"\n (click)=\"createFolder()\"\n nz-tooltip=\"New Folder in Target\"\n nzTooltipPlacement=\"bottomRight\"\n >\n <i nz-icon nzType=\"folder-add\"></i>\n </button>\n </div>\n</div>\n\n<div\n style=\"\n border: 1px solid #f0f0f0;\n border-radius: 4px;\n padding: 12px;\n background: #fff;\n min-height: 400px;\n position: relative;\n \"\n>\n <!-- Thanh ti\u00EAu \u0111\u1EC1 (Gi\u1EA3 l\u1EADp Header c\u1EE7a b\u1EA3ng) -->\n <div\n style=\"\n display: flex;\n justify-content: space-between;\n border-bottom: 2px solid #f0f0f0;\n padding-bottom: 8px;\n margin-bottom: 8px;\n font-weight: bold;\n color: #5c5c5c;\n \"\n >\n <div>Name</div>\n <div style=\"display: flex; gap: 16px\">\n <div style=\"width: 100px; text-align: right\">Size</div>\n <div style=\"width: 150px; text-align: right\">Modified Date</div>\n <div style=\"width: 130px; text-align: right; padding-right: 8px\">Action</div>\n </div>\n </div>\n\n <nz-spin [nzSpinning]=\"isLoading\">\n <!-- nzBlockNode gi\u00FAp d\u00F2ng c\u1EE7a c\u00E2y tr\u1EA3i d\u00E0i 100% width -->\n <!-- nzAsyncData k\u00EDch ho\u1EA1t c\u01A1 ch\u1EBF t\u1EA3i b\u1EA5t \u0111\u1ED3ng b\u1ED9 khi b\u1EA5m d\u1EA5u c\u1ED9ng -->\n <nz-tree\n [nzData]=\"treeNodes\"\n nzAsyncData\n nzBlockNode\n (nzExpandChange)=\"onExpandChange($event)\"\n (nzClick)=\"onNodeClick($event)\"\n [nzTreeTemplate]=\"nzTreeTemplate\"\n ></nz-tree>\n </nz-spin>\n</div>\n\n<ng-template #nzTreeTemplate let-node let-origin=\"origin\">\n <div\n class=\"tree-node-row\"\n style=\"display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 4px 0\"\n (dblclick)=\"onNodeDblClick(node, $event)\"\n >\n <div\n style=\"\n display: flex;\n align-items: center;\n gap: 8px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n \"\n >\n <i\n nz-icon\n [nzType]=\"origin.originData.isdir ? (node.isExpanded ? 'folder-open' : 'folder') : 'file'\"\n [nzTheme]=\"origin.originData.isdir ? 'fill' : 'outline'\"\n [style.color]=\"origin.originData.isdir ? '#faad14' : '#1890ff'\"\n style=\"font-size: 16px\"\n ></i>\n <span [class.text-primary]=\"selectedNode?.key === node.key\" style=\"font-weight: 500\">\n {{ node.title }}\n </span>\n </div>\n\n <div style=\"display: flex; gap: 16px; align-items: center\">\n <!-- Size -->\n <div style=\"width: 100px; text-align: right; color: #8c8c8c\">\n {{ origin.originData.isdir ? \"-\" : formatBytes(origin.originData.additional?.size) }}\n </div>\n\n <!-- Date -->\n <div style=\"width: 150px; text-align: right; color: #8c8c8c\">\n {{ formatDate(origin.originData.additional?.time?.mtime) }}\n </div>\n\n <!-- N\u00FAt ch\u1EE9c n\u0103ng (Action) -->\n <div style=\"width: 130px; display: flex; justify-content: flex-end; gap: 2px\">\n <button\n *ngIf=\"!origin.originData.isdir\"\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n (click)=\"downloadFile(origin.originData); $event.stopPropagation()\"\n nz-tooltip=\"Download\"\n >\n <nz-icon nzType=\"download\" nzTheme=\"outline\"></nz-icon>\n </button>\n\n <button\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n (click)=\"getShareLink(origin.originData); $event.stopPropagation()\"\n nz-tooltip=\"Get Share Link\"\n >\n <nz-icon nzType=\"link\" nzTheme=\"outline\"></nz-icon>\n </button>\n\n <button\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n (click)=\"openPermissionModal(origin.originData); $event.stopPropagation()\"\n nz-tooltip=\"Permission\"\n >\n <nz-icon nzType=\"safety-certificate\" nzTheme=\"outline\" />\n </button>\n\n <button\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n (click)=\"renameItem(origin.originData, node); $event.stopPropagation()\"\n nz-tooltip=\"Rename\"\n >\n <nz-icon nzType=\"retweet\" nzTheme=\"outline\" />\n </button>\n\n <button\n nz-button\n nzType=\"link\"\n nzDanger\n nzSize=\"small\"\n (click)=\"deleteItem(origin.originData, node); $event.stopPropagation()\"\n nz-tooltip=\"Delete\"\n >\n <nz-icon nzType=\"delete\" nzTheme=\"outline\"></nz-icon>\n </button>\n </div>\n </div>\n </div>\n</ng-template>\n\n<nz-modal\n [(nzVisible)]=\"isPermissionModalVisible\"\n [nzTitle]=\"'Properties - Permission : ' + (selectedItemForPerm?.name || '')\"\n (nzOnCancel)=\"isPermissionModalVisible = false\"\n [nzWidth]=\"800\"\n [nzFooter]=\"modalFooter\"\n>\n <ng-container *nzModalContent>\n <nz-table\n #permTable\n [nzData]=\"currentPermissions\"\n [nzLoading]=\"isPermLoading\"\n nzSize=\"small\"\n nzBordered\n [nzFrontPagination]=\"false\"\n >\n <thead>\n <tr>\n <th nzWidth=\"40%\">User or group</th>\n <th nzWidth=\"20%\">Type</th>\n <th nzWidth=\"30%\">Permission</th>\n <th nzWidth=\"10%\" nzAlign=\"center\">Action</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let rule of permTable.data; let i = index\">\n <td>\n <nz-icon nzType=\"user\" nzTheme=\"outline\" class=\"mr-2\"></nz-icon>\n {{ rule.owner_name }}\n </td>\n <td>\n {{ rule.permission_type === \"allow\" ? \"Allow\" : \"Deny\" }}\n </td>\n <td>\n {{ getPermissionText(rule) }}\n </td>\n <td nzAlign=\"center\">\n <button nz-button nzType=\"text\" nzSize=\"small\" nzDanger (click)=\"removeRule(i)\">\n <nz-icon nzType=\"close\" />\n </button>\n </td>\n </tr>\n </tbody>\n </nz-table>\n\n <div class=\"mt-3\">\n <label nz-checkbox [(ngModel)]=\"applyToSubfolders\">Apply to this folder, sub-folders and files</label>\n </div>\n </ng-container>\n\n <ng-template #modalFooter>\n <button nz-button nzType=\"default\" (click)=\"isPermissionModalVisible = false\">Cancel</button>\n <button nz-button nzType=\"primary\" (click)=\"savePermissions()\" [nzLoading]=\"isPermSaving\">Save</button>\n </ng-template>\n</nz-modal>\n\n<nz-modal\n [(nzVisible)]=\"isPreviewModalVisible\"\n [nzTitle]=\"previewTitle\"\n (nzOnCancel)=\"closePreviewModal()\"\n [nzWidth]=\"'80vw'\"\n [nzBodyStyle]=\"{ 'min-height': '70vh' }\"\n [nzFooter]=\"null\"\n>\n <ng-container *nzModalContent>\n <nz-spin [nzSpinning]=\"isPreviewLoading\">\n <extend-view-file-content\n [previewType]=\"previewType\"\n [previewContent]=\"previewContent\"\n ></extend-view-file-content>\n </nz-spin>\n </ng-container>\n</nz-modal>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i1$5.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i2$3.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i6.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i6.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i6.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i6.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i6.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i6.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i6.NzCellAlignDirective, selector: "th[nzAlign],td[nzAlign]", inputs: ["nzAlign"] }, { kind: "component", type: IconCopy, selector: "icon-copy", inputs: ["textToCopy", "tooltip", "size"] }, { kind: "component", type: ExtendViewFileContentComponent, selector: "extend-view-file-content", inputs: ["previewType", "previewContent"] }] });
21540
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.7", type: SynologyComponent, isStandalone: true, selector: "ng-component", providers: [DatePipe], usesInheritance: true, ngImport: i0, template: "<div nz-row nzGutter=\"32\" class=\"mb-3\">\n <div nz-col nzSpan=\"16\" style=\"display: flex; align-items: center; gap: 8px\">\n <strong>Target: </strong>\n <span class=\"text-primary\">{{ currentPath }}</span>\n\n <icon-copy [textToCopy]=\"currentPath\" [tooltip]=\"'Copy \u0111\u01B0\u1EDDng d\u1EABn'\"></icon-copy>\n </div>\n\n <div nz-col nzSpan=\"8\" style=\"display: flex; justify-content: flex-end; gap: 8px\">\n <input type=\"file\" #fileInput style=\"display: none\" (change)=\"onFileSelected($event)\" />\n <button nz-button nzType=\"primary\" (click)=\"refreshTree()\" nz-tooltip=\"Reload All\" nzTooltipPlacement=\"bottom\">\n <i nz-icon nzType=\"reload\"></i>\n </button>\n <button\n nz-button\n nzType=\"primary\"\n (click)=\"fileInput.click()\"\n nz-tooltip=\"Upload to Target\"\n nzTooltipPlacement=\"bottom\"\n >\n <i nz-icon nzType=\"upload\"></i>\n </button>\n <button\n nz-button\n nzType=\"primary\"\n (click)=\"createFolder()\"\n nz-tooltip=\"New Folder in Target\"\n nzTooltipPlacement=\"bottomRight\"\n >\n <i nz-icon nzType=\"folder-add\"></i>\n </button>\n </div>\n</div>\n\n<div\n style=\"\n border: 1px solid #f0f0f0;\n border-radius: 4px;\n padding: 12px;\n background: #fff;\n min-height: 400px;\n position: relative;\n \"\n>\n <!-- Thanh ti\u00EAu \u0111\u1EC1 (Gi\u1EA3 l\u1EADp Header c\u1EE7a b\u1EA3ng) -->\n <div\n style=\"\n display: flex;\n justify-content: space-between;\n border-bottom: 2px solid #f0f0f0;\n padding-bottom: 8px;\n margin-bottom: 8px;\n font-weight: bold;\n color: #5c5c5c;\n \"\n >\n <div>Name</div>\n <div style=\"display: flex; gap: 16px\">\n <div style=\"width: 100px; text-align: right\">Size</div>\n <div style=\"width: 150px; text-align: right\">Modified Date</div>\n <div style=\"width: 130px; text-align: right; padding-right: 8px\">Action</div>\n </div>\n </div>\n\n <nz-spin [nzSpinning]=\"isLoading\">\n <!-- nzBlockNode gi\u00FAp d\u00F2ng c\u1EE7a c\u00E2y tr\u1EA3i d\u00E0i 100% width -->\n <!-- nzAsyncData k\u00EDch ho\u1EA1t c\u01A1 ch\u1EBF t\u1EA3i b\u1EA5t \u0111\u1ED3ng b\u1ED9 khi b\u1EA5m d\u1EA5u c\u1ED9ng -->\n <nz-tree\n [nzData]=\"treeNodes\"\n nzAsyncData\n nzBlockNode\n (nzExpandChange)=\"onExpandChange($event)\"\n (nzClick)=\"onNodeClick($event)\"\n [nzTreeTemplate]=\"nzTreeTemplate\"\n ></nz-tree>\n </nz-spin>\n</div>\n\n<ng-template #nzTreeTemplate let-node let-origin=\"origin\">\n <div\n class=\"tree-node-row\"\n style=\"display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 4px 0\"\n (dblclick)=\"onNodeDblClick(node, $event)\"\n >\n <div\n style=\"\n display: flex;\n align-items: center;\n gap: 8px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n \"\n >\n <i\n nz-icon\n [nzType]=\"origin.originData.isdir ? (node.isExpanded ? 'folder-open' : 'folder') : 'file'\"\n [nzTheme]=\"origin.originData.isdir ? 'fill' : 'outline'\"\n [style.color]=\"origin.originData.isdir ? '#faad14' : '#1890ff'\"\n style=\"font-size: 16px\"\n ></i>\n <span [class.text-primary]=\"selectedNode?.key === node.key\" style=\"font-weight: 500\">\n {{ node.title }}\n </span>\n </div>\n\n <div style=\"display: flex; gap: 16px; align-items: center\">\n <!-- Size -->\n <div style=\"width: 100px; text-align: right; color: #8c8c8c\">\n {{ origin.originData.isdir ? \"-\" : formatBytes(origin.originData.additional?.size) }}\n </div>\n\n <!-- Date -->\n <div style=\"width: 150px; text-align: right; color: #8c8c8c\">\n {{ formatDate(origin.originData.additional?.time?.mtime) }}\n </div>\n\n <!-- N\u00FAt ch\u1EE9c n\u0103ng (Action) -->\n <div style=\"width: 130px; display: flex; justify-content: flex-end; gap: 2px\">\n <button\n *ngIf=\"!origin.originData.isdir\"\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n (click)=\"downloadFile(origin.originData); $event.stopPropagation()\"\n nz-tooltip=\"Download\"\n >\n <nz-icon nzType=\"download\" nzTheme=\"outline\"></nz-icon>\n </button>\n\n <button\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n (click)=\"getShareLink(origin.originData); $event.stopPropagation()\"\n nz-tooltip=\"Get Share Link\"\n >\n <nz-icon nzType=\"link\" nzTheme=\"outline\"></nz-icon>\n </button>\n\n <button\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n (click)=\"openPermissionModal(origin.originData); $event.stopPropagation()\"\n nz-tooltip=\"Permission\"\n >\n <nz-icon nzType=\"safety-certificate\" nzTheme=\"outline\" />\n </button>\n\n <button\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n (click)=\"renameItem(origin.originData, node); $event.stopPropagation()\"\n nz-tooltip=\"Rename\"\n >\n <nz-icon nzType=\"retweet\" nzTheme=\"outline\" />\n </button>\n\n <button\n nz-button\n nzType=\"link\"\n nzDanger\n nzSize=\"small\"\n (click)=\"deleteItem(origin.originData, node); $event.stopPropagation()\"\n nz-tooltip=\"Delete\"\n >\n <nz-icon nzType=\"delete\" nzTheme=\"outline\"></nz-icon>\n </button>\n </div>\n </div>\n </div>\n</ng-template>\n\n<nz-modal\n [(nzVisible)]=\"isPermissionModalVisible\"\n [nzTitle]=\"'Properties - Permission : ' + (selectedItemForPerm?.name || '')\"\n (nzOnCancel)=\"isPermissionModalVisible = false\"\n [nzWidth]=\"800\"\n [nzFooter]=\"modalFooter\"\n>\n <ng-container *nzModalContent>\n <nz-table\n #permTable\n [nzData]=\"currentPermissions\"\n [nzLoading]=\"isPermLoading\"\n nzSize=\"small\"\n nzBordered\n [nzFrontPagination]=\"false\"\n >\n <thead>\n <tr>\n <th nzWidth=\"40%\">User or group</th>\n <th nzWidth=\"20%\">Type</th>\n <th nzWidth=\"30%\">Permission</th>\n <th nzWidth=\"10%\" nzAlign=\"center\">Action</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let rule of permTable.data; let i = index\">\n <td>\n <nz-icon nzType=\"user\" nzTheme=\"outline\" class=\"mr-2\"></nz-icon>\n {{ rule.owner_name }}\n </td>\n <td>\n {{ rule.permission_type === \"allow\" ? \"Allow\" : \"Deny\" }}\n </td>\n <td>\n {{ getPermissionText(rule) }}\n </td>\n <td nzAlign=\"center\">\n <button nz-button nzType=\"text\" nzSize=\"small\" nzDanger (click)=\"removeRule(i)\">\n <nz-icon nzType=\"close\" />\n </button>\n </td>\n </tr>\n </tbody>\n </nz-table>\n\n <div class=\"mt-3\">\n <label nz-checkbox [(ngModel)]=\"applyToSubfolders\">Apply to this folder, sub-folders and files</label>\n </div>\n </ng-container>\n\n <ng-template #modalFooter>\n <button nz-button nzType=\"default\" (click)=\"isPermissionModalVisible = false\">Cancel</button>\n <button nz-button nzType=\"primary\" (click)=\"savePermissions()\" [nzLoading]=\"isPermSaving\">Save</button>\n </ng-template>\n</nz-modal>\n\n<nz-modal\n [(nzVisible)]=\"isPreviewModalVisible\"\n [nzTitle]=\"previewTitle\"\n (nzOnCancel)=\"closePreviewModal()\"\n [nzWidth]=\"'80vw'\"\n [nzBodyStyle]=\"{ 'min-height': '70vh' }\"\n [nzFooter]=\"null\"\n>\n <ng-container *nzModalContent>\n <nz-spin [nzSpinning]=\"isPreviewLoading\">\n <extend-view-file-content\n [previewType]=\"previewType\"\n [previewContent]=\"previewContent\"\n ></extend-view-file-content>\n </nz-spin>\n </ng-container>\n</nz-modal>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i10$1.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i2$3.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i6.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i6.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i6.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i6.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i6.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i6.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i6.NzCellAlignDirective, selector: "th[nzAlign],td[nzAlign]", inputs: ["nzAlign"] }, { kind: "component", type: IconCopy, selector: "icon-copy", inputs: ["textToCopy", "tooltip", "size"] }, { kind: "component", type: ExtendViewFileContentComponent, selector: "extend-view-file-content", inputs: ["previewType", "previewContent"] }] });
21467
21541
  }
21468
21542
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: SynologyComponent, decorators: [{
21469
21543
  type: Component,
@@ -21719,7 +21793,7 @@ class AppDataComponent extends BaseComponent {
21719
21793
  return path.substring(0, path.lastIndexOf('\\'));
21720
21794
  }
21721
21795
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AppDataComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
21722
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: AppDataComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "myTree", first: true, predicate: ["myTree"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"action-bar\" style=\"margin-bottom: 16px; display: flex; gap: 8px\">\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"getdata()\"><nz-icon nzType=\"reload\" /> Reload</button>\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"modalVisible = true\">\n <nz-icon nzType=\"folder-add\" /> New folder\n </button>\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"triggerUpload()\">\n <nz-icon nzType=\"upload\" /> Upload\n </button>\n</div>\n\n<input type=\"file\" id=\"fileUpload\" style=\"display: none\" (change)=\"onFileSelected($event)\" />\n\n<nz-tree\n #myTree\n nzBlockNode\n [nzAsyncData]=\"true\"\n [nzData]=\"nodes\"\n (nzClick)=\"activeNode($event)\"\n (nzExpandChange)=\"onExpandChange($event)\"\n (nzContextMenu)=\"contextMenu($event, menu)\"\n [nzTreeTemplate]=\"nzTreeTemplate\"\n></nz-tree>\n\n<ng-template #nzTreeTemplate let-node>\n <span class=\"custom-node\" (contextmenu)=\"selectedNode = node\">\n <nz-icon [nzType]=\"node.isLeaf ? 'file' : node.isExpanded ? 'folder-open' : 'folder'\" />\n <span class=\"node-title\">{{ node.title }}</span>\n </span>\n</ng-template>\n\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n @if (!selectedNode?.isLeaf) {\n <li nz-menu-item (click)=\"triggerUpload()\"><nz-icon nzType=\"upload\" /> Upload</li>\n <li nz-menu-item (click)=\"modalVisible = true\"><nz-icon nzType=\"folder-add\" /> New folder</li>\n }\n\n @if (selectedNode?.isLeaf) {\n <li nz-menu-item (click)=\"download()\"><nz-icon nzType=\"download\" /> Download</li>\n }\n\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"delete()\">\n <nz-icon nzType=\"delete\" /> X\u00F3a {{ selectedNode?.isLeaf ? \"File\" : \"Folder\" }}\n </li>\n </ul>\n</nz-dropdown-menu>\n\n<nz-modal\n nzTitle=\"New folder\"\n [nzMaskClosable]=\"false\"\n [(nzVisible)]=\"modalVisible\"\n (nzOnCancel)=\"modalVisible = false\"\n (nzOnOk)=\"addFolder()\"\n>\n <ng-container *nzModalContent>\n <extend-input [label]=\"'Name'\" [(_ngModel)]=\"newFolderName\"></extend-input>\n </ng-container>\n</nz-modal>\n", styles: ["@charset \"UTF-8\";.custom-node{cursor:pointer;display:flex;align-items:center}.custom-node nz-icon{margin-right:8px;font-size:16px;color:#1890ff}.custom-node .file-name,.custom-node .folder-name{font-weight:500;margin-right:12px}.custom-node .file-desc,.custom-node .folder-desc{font-size:12px;color:#999}.custom-node .anticon-file{color:#595959}\n"], dependencies: [{ kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i1$5.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i4$2.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "component", type: i5$4.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "component", type: ExtendInput, selector: "extend-input", inputs: ["label", "floatingLabel", "placeHolder", "labelAlign", "inputClass", "labelSpan", "labelFlex", "inputFlex", "showClear", "disabled", "readOnly", "required", "noBottom", "selectModeType", "autocomplete", "autofocus", "inputWidth", "inputHeight", "borderBottomOnly", "displayInline", "size", "displayField", "valueField", "formData", "controlName", "_ngModel", "isSubmited"], outputs: ["_ngModelChange", "onclickClearIcon", "onenter"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }] });
21796
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: AppDataComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "myTree", first: true, predicate: ["myTree"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"action-bar\" style=\"margin-bottom: 16px; display: flex; gap: 8px\">\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"getdata()\"><nz-icon nzType=\"reload\" /> Reload</button>\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"modalVisible = true\">\n <nz-icon nzType=\"folder-add\" /> New folder\n </button>\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"triggerUpload()\">\n <nz-icon nzType=\"upload\" /> Upload\n </button>\n</div>\n\n<input type=\"file\" id=\"fileUpload\" style=\"display: none\" (change)=\"onFileSelected($event)\" />\n\n<nz-tree\n #myTree\n nzBlockNode\n [nzAsyncData]=\"true\"\n [nzData]=\"nodes\"\n (nzClick)=\"activeNode($event)\"\n (nzExpandChange)=\"onExpandChange($event)\"\n (nzContextMenu)=\"contextMenu($event, menu)\"\n [nzTreeTemplate]=\"nzTreeTemplate\"\n></nz-tree>\n\n<ng-template #nzTreeTemplate let-node>\n <span class=\"custom-node\" (contextmenu)=\"selectedNode = node\">\n <nz-icon [nzType]=\"node.isLeaf ? 'file' : node.isExpanded ? 'folder-open' : 'folder'\" />\n <span class=\"node-title\">{{ node.title }}</span>\n </span>\n</ng-template>\n\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n @if (!selectedNode?.isLeaf) {\n <li nz-menu-item (click)=\"triggerUpload()\"><nz-icon nzType=\"upload\" /> Upload</li>\n <li nz-menu-item (click)=\"modalVisible = true\"><nz-icon nzType=\"folder-add\" /> New folder</li>\n }\n\n @if (selectedNode?.isLeaf) {\n <li nz-menu-item (click)=\"download()\"><nz-icon nzType=\"download\" /> Download</li>\n }\n\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"delete()\">\n <nz-icon nzType=\"delete\" /> X\u00F3a {{ selectedNode?.isLeaf ? \"File\" : \"Folder\" }}\n </li>\n </ul>\n</nz-dropdown-menu>\n\n<nz-modal\n nzTitle=\"New folder\"\n [nzMaskClosable]=\"false\"\n [(nzVisible)]=\"modalVisible\"\n (nzOnCancel)=\"modalVisible = false\"\n (nzOnOk)=\"addFolder()\"\n>\n <ng-container *nzModalContent>\n <extend-input [label]=\"'Name'\" [(_ngModel)]=\"newFolderName\"></extend-input>\n </ng-container>\n</nz-modal>\n", styles: ["@charset \"UTF-8\";.custom-node{cursor:pointer;display:flex;align-items:center}.custom-node nz-icon{margin-right:8px;font-size:16px;color:#1890ff}.custom-node .file-name,.custom-node .folder-name{font-weight:500;margin-right:12px}.custom-node .file-desc,.custom-node .folder-desc{font-size:12px;color:#999}.custom-node .anticon-file{color:#595959}\n"], dependencies: [{ kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i10$1.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i4$2.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "component", type: i5$4.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "component", type: ExtendInput, selector: "extend-input", inputs: ["label", "floatingLabel", "placeHolder", "labelAlign", "inputClass", "labelSpan", "labelFlex", "inputFlex", "showClear", "disabled", "readOnly", "required", "noBottom", "selectModeType", "autocomplete", "autofocus", "inputWidth", "inputHeight", "borderBottomOnly", "displayInline", "size", "displayField", "valueField", "formData", "controlName", "_ngModel", "isSubmited"], outputs: ["_ngModelChange", "onclickClearIcon", "onenter"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }] });
21723
21797
  }
21724
21798
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AppDataComponent, decorators: [{
21725
21799
  type: Component,
@@ -32409,7 +32483,7 @@ class DriveExplorerTemplatesBase extends DriveExplorerNavigationBase {
32409
32483
  const lines = await buildLinesRecursive(folderId, 0, '');
32410
32484
  this.templateNodePermissionsMap.set(nodePermMap);
32411
32485
  if (lines.length > 0) {
32412
- this.templateIndentedText = lines.join('');
32486
+ this.templateIndentedText = lines.join('\n');
32413
32487
  }
32414
32488
  else {
32415
32489
  this.templateIndentedText = `- 01. Tài liệu chung
@@ -33877,6 +33951,7 @@ class DriveExplorerComponent extends DriveExplorerDrawersBase {
33877
33951
  });
33878
33952
  }
33879
33953
  ngOnInit() {
33954
+ LayoutComponent.noShowBreadcrumb = true;
33880
33955
  if (!LayoutComponent.noShowSideMenu) {
33881
33956
  LayoutComponent.noShowSideMenu = true;
33882
33957
  this.showMenuOndestroy = true;
@@ -33901,6 +33976,7 @@ class DriveExplorerComponent extends DriveExplorerDrawersBase {
33901
33976
  this.drive.loadFolderTemplates();
33902
33977
  }
33903
33978
  ngOnDestroy() {
33979
+ LayoutComponent.noShowBreadcrumb = false;
33904
33980
  if (this.showMenuOndestroy) {
33905
33981
  LayoutComponent.noShowSideMenu = false;
33906
33982
  }
@@ -33940,7 +34016,7 @@ class DriveExplorerComponent extends DriveExplorerDrawersBase {
33940
34016
  }
33941
34017
  }
33942
34018
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: DriveExplorerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
33943
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: DriveExplorerComponent, isStandalone: true, selector: "lib-drive-explorer", providers: [NzImageService], usesInheritance: true, ngImport: i0, template: "@if (activeShareToken(); as sToken) {\n <lib-drive-share-viewer [token]=\"sToken\" (backToDrive)=\"closeEmbeddedShareViewer()\"></lib-drive-share-viewer>\n} @else {\n <div class=\"drive-shell\" [class.sidebar-wide]=\"sidebarWideMode() && showSidebarTree()\">\n <!-- SIDEBAR \u0110I\u1EC0U H\u01AF\u1EDANG & QUOTA -->\n <aside class=\"drive-sidebar\">\n <div nz-flex nzVertical nzGap=\"small\">\n <button\n nz-button\n nzType=\"primary\"\n nzBlock\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"fileInput.click()\"\n >\n <nz-icon nzType=\"cloud-upload\"></nz-icon> T\u1EA3i t\u1EADp tin l\u00EAn\n </button>\n <input #fileInput type=\"file\" multiple hidden (change)=\"onFilesSelected($event)\" />\n <button\n nz-button\n nzType=\"default\"\n nzBlock\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"openFolderDrawer('create')\"\n >\n <nz-icon nzType=\"folder-add\"></nz-icon> T\u1EA1o th\u01B0 m\u1EE5c m\u1EDBi\n </button>\n </div>\n <!-- THANH T\u00D9Y CH\u1ECCN HI\u1EC2N TH\u1ECA C\u00C2Y TH\u01AF M\u1EE4C B\u00CAN TR\u00C1I (SIDEBAR FOLDER TREE OPTIONS) -->\n <div class=\"sidebar-tree-header-bar\">\n <span class=\"sidebar-tree-header-title\">\n <nz-icon nzType=\"partition\" style=\"color: var(--primary-color, #1890ff)\"></nz-icon>\n <span>C\u00E2y th\u01B0 m\u1EE5c</span>\n </span>\n <div class=\"sidebar-tree-header-actions\">\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng nhanh c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c\"\n (click)=\"expandAllSidebarTreeNodes()\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c\"\n (click)=\"collapseAllSidebarTreeNodes()\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi c\u00E2y th\u01B0 m\u1EE5c\"\n (click)=\"refreshAllExpandedSidebarTrees()\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n [class.active]=\"sidebarWideMode()\"\n nz-tooltip\n [nzTooltipTitle]=\"\n sidebarWideMode() ? 'Thu g\u1ECDn \u0111\u1ED9 r\u1ED9ng c\u1ED9t tr\u00E1i' : 'M\u1EDF r\u1ED9ng \u0111\u1ED9 r\u1ED9ng c\u1ED9t tr\u00E1i \u0111\u1EC3 xem c\u00E2y th\u01B0 m\u1EE5c r\u00F5 h\u01A1n'\n \"\n (click)=\"onToggleSidebarWideMode()\"\n >\n <nz-icon nzType=\"column-width\"></nz-icon>\n </button>\n }\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"showSidebarTree()\"\n (ngModelChange)=\"onToggleSidebarTree($event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt / T\u1EAFt hi\u1EC3n th\u1ECB c\u00E2y th\u01B0 m\u1EE5c tr\u1EF1c ti\u1EBFp b\u00EAn tr\u00E1i\"\n ></nz-switch>\n </div>\n </div>\n\n @if (showSidebarTree()) {\n <div class=\"sidebar-tree-filter-box\">\n <nz-input-group [nzPrefix]=\"sidebarFilterPrefixTpl\" [nzSuffix]=\"sidebarFilterClearTpl\" nzSize=\"small\">\n <input\n nz-input\n type=\"text\"\n placeholder=\"L\u1ECDc nhanh th\u01B0 m\u1EE5c tr\u00EAn c\u00E2y...\"\n [ngModel]=\"sidebarTreeFilter()\"\n (ngModelChange)=\"onSidebarTreeFilterChange($event)\"\n />\n </nz-input-group>\n <ng-template #sidebarFilterPrefixTpl>\n <nz-icon nzType=\"filter\" style=\"color: var(--app-text-muted, #94a3b8); font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #sidebarFilterClearTpl>\n @if (sidebarTreeFilter()) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: var(--app-text-muted, #94a3b8); font-size: 12px\"\n (click)=\"onSidebarTreeFilterChange('')\"\n ></nz-icon>\n }\n </ng-template>\n </div>\n }\n\n <nav class=\"drive-nav\">\n <!-- 1. DRIVE C\u00C1 NH\u00C2N + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"drive.currentViewMode() === 'MY_DRIVE' && (!drive.currentFolderId() || !showSidebarTree())\"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'MY_DRIVE' && !!drive.currentFolderId() && showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverNavSpace() === 'MY_DRIVE'\"\n (click)=\"switchView('MY_DRIVE')\"\n (dragover)=\"onNavSpaceDragOver($event, 'MY_DRIVE')\"\n (dragleave)=\"onNavSpaceDragLeave('MY_DRIVE')\"\n (drop)=\"onNavSpaceDrop($event, 'MY_DRIVE')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'MY_DRIVE')\"\n [title]=\"\n isSidebarSpaceExpanded('MY_DRIVE') ? 'Thu g\u1ECDn c\u00E2y Drive c\u00E1 nh\u00E2n' : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c Drive c\u00E1 nh\u00E2n'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('MY_DRIVE')\n ? 'loading'\n : isSidebarSpaceExpanded('MY_DRIVE')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"hdd\"></nz-icon>\n <span style=\"flex: 1\">Drive c\u00E1 nh\u00E2n</span>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'MY_DRIVE' }\"></ng-container>\n </div>\n\n <!-- 2. T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA & C\u00C1C M\u1EE4C T\u00D9Y CH\u1EC8NH (CUSTOM SPACES) + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"org-nav-group\">\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"\n drive.currentViewMode() === 'ORG_DRIVE' && (!drive.currentFolderId() || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'ORG_DRIVE' && !!drive.currentFolderId() && showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverNavSpace() === 'ORG_DRIVE'\"\n (click)=\"switchView('ORG_DRIVE')\"\n (dragover)=\"onNavSpaceDragOver($event, 'ORG_DRIVE')\"\n (dragleave)=\"onNavSpaceDragLeave('ORG_DRIVE')\"\n (drop)=\"onNavSpaceDrop($event, 'ORG_DRIVE')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'ORG_DRIVE')\"\n [title]=\"\n isSidebarSpaceExpanded('ORG_DRIVE')\n ? 'Thu g\u1ECDn c\u00E2y T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB'\n : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('ORG_DRIVE')\n ? 'loading'\n : isSidebarSpaceExpanded('ORG_DRIVE')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"apartment\"></nz-icon>\n <span style=\"flex: 1\">T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB</span>\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n nz-tooltip\n nzTooltipTitle=\"Th\u00EAm m\u1EE5c t\u00F9y ch\u1EC9nh b\u00EAn d\u01B0\u1EDBi T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (VD: T\u00E0i li\u1EC7u d\u1EF1 \u00E1n)\"\n (click)=\"$event.stopPropagation(); openCustomSpaceDrawer('create')\"\n >\n <nz-icon nzType=\"plus\"></nz-icon>\n </button>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'ORG_DRIVE' }\"></ng-container>\n </div>\n\n <!-- DANH S\u00C1CH C\u00C1C M\u1EE4C CUSTOM B\u00CAN D\u01AF\u1EDAI \"T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA\" (VD: \"T\u00E0i li\u1EC7u d\u1EF1 \u00E1n\") -->\n @for (sp of drive.customSpaces(); track sp.Id) {\n <div class=\"nav-item-with-tree\">\n <a\n class=\"custom-space-link\"\n [class.active]=\"\n drive.currentViewMode() === 'CUSTOM_SPACE' &&\n drive.currentCustomSpaceId() === sp.Id &&\n (!drive.currentFolderId() || drive.currentFolderId() === sp.Id || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'CUSTOM_SPACE' &&\n drive.currentCustomSpaceId() === sp.Id &&\n !!drive.currentFolderId() &&\n drive.currentFolderId() !== sp.Id &&\n showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverCustomSpaceId() === sp.Id\"\n (click)=\"switchCustomSpace(sp)\"\n (dragover)=\"onCustomSpaceDragOver($event, sp)\"\n (dragleave)=\"onCustomSpaceDragLeave(sp)\"\n (drop)=\"onCustomSpaceDrop($event, sp)\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'CUSTOM:' + sp.Id)\"\n [title]=\"\n isSidebarSpaceExpanded('CUSTOM:' + sp.Id) ? 'Thu g\u1ECDn c\u00E2y ' + sp.Name : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c ' + sp.Name\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('CUSTOM:' + sp.Id)\n ? 'loading'\n : isSidebarSpaceExpanded('CUSTOM:' + sp.Id)\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon [nzType]=\"sp.Icon || 'project'\"></nz-icon>\n <span class=\"custom-space-title\" [title]=\"sp.Name\">{{ sp.Name }}</span>\n @if (sp.IsVisibleToAllUsers) {\n <nz-tag nzColor=\"cyan\" class=\"custom-space-badge\">All</nz-tag>\n }\n @if (sp.CanManage || drive.isCurrentUserAdmin()) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n (click)=\"$event.stopPropagation(); openCustomSpaceDrawer('edit', sp)\"\n >\n <nz-icon nzType=\"setting\"></nz-icon>\n </button>\n }\n </a>\n <ng-container\n *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'CUSTOM:' + sp.Id }\"\n ></ng-container>\n </div>\n }\n </div>\n\n <!-- 3. \u0110\u01AF\u1EE2C CHIA S\u1EBA V\u1EDAI T\u00D4I + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"\n drive.currentViewMode() === 'SHARED_WITH_ME' && (!drive.currentFolderId() || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'SHARED_WITH_ME' && !!drive.currentFolderId() && showSidebarTree()\n \"\n (click)=\"switchView('SHARED_WITH_ME')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'SHARED_WITH_ME')\"\n [title]=\"\n isSidebarSpaceExpanded('SHARED_WITH_ME')\n ? 'Thu g\u1ECDn c\u00E2y \u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i'\n : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c \u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('SHARED_WITH_ME')\n ? 'loading'\n : isSidebarSpaceExpanded('SHARED_WITH_ME')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"share-alt\"></nz-icon>\n <span style=\"flex: 1\">\u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i</span>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'SHARED_WITH_ME' }\"></ng-container>\n </div>\n <a [class.active]=\"drive.currentViewMode() === 'RECENT'\" (click)=\"switchView('RECENT')\">\n <nz-icon nzType=\"clock-circle\"></nz-icon> G\u1EA7n \u0111\u00E2y\n </a>\n <a [class.active]=\"drive.currentViewMode() === 'STARRED'\" (click)=\"switchView('STARRED')\">\n <nz-icon nzType=\"star\"></nz-icon> C\u00F3 g\u1EAFn d\u1EA5u sao\n </a>\n <a [class.active]=\"drive.currentViewMode() === 'TRASH'\" (click)=\"switchView('TRASH')\">\n <nz-icon nzType=\"delete\"></nz-icon>\n <span style=\"flex: 1\">Th\u00F9ng r\u00E1c</span>\n @if (drive.currentViewMode() === \"TRASH\" && drive.items().length > 0) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n style=\"color: #ef4444\"\n nz-tooltip\n nzTooltipTitle=\"D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c (X\u00F3a v\u0129nh vi\u1EC5n t\u1EA5t c\u1EA3)\"\n (click)=\"$event.stopPropagation(); onEmptyTrash()\"\n >\n <nz-icon nzType=\"clear\"></nz-icon>\n </button>\n }\n </a>\n </nav>\n\n <!-- TEMPLATE D\u00D9NG CHUNG HI\u1EC2N TH\u1ECA C\u00C2Y TH\u01AF M\u1EE4C \u0110A C\u1EA4P B\u00CAN TR\u00C1I CHO T\u1EEANG KH\u00D4NG GIAN -->\n <ng-template #sidebarSpaceTreeTpl let-spaceKey=\"spaceKey\">\n @if (isSidebarSpaceExpanded(spaceKey)) {\n @if (getSidebarVisibleTreeNodes(spaceKey); as treeNodes) {\n @if (treeNodes.length > 0) {\n <div class=\"sidebar-tree-container\">\n @for (vm of treeNodes; track vm.folderId) {\n <div\n class=\"sidebar-tree-node\"\n [class.active-tree-node]=\"vm.isActive\"\n [class.active-breadcrumb-ancestor]=\"vm.isInActiveBreadcrumb && !vm.isActive\"\n [class.tree-drop-active]=\"dragOverSidebarFolderId() === vm.folderId\"\n [style.padding-left.px]=\"6 + vm.level * 14\"\n [attr.draggable]=\"vm.node.EffectiveAccess >= DriveAccessLevel.Editor\"\n (dragstart)=\"onSidebarTreeNodeDragStart($event, vm)\"\n (dragend)=\"onRowDragEnd()\"\n (dragover)=\"onSidebarTreeNodeDragOver($event, vm)\"\n (dragleave)=\"onSidebarTreeNodeDragLeave($event, vm)\"\n (drop)=\"onSidebarTreeNodeDrop($event, vm)\"\n (click)=\"onSidebarTreeNodeClick(vm)\"\n (contextmenu)=\"onContextMenu($event, menu, vm.node)\"\n >\n @if (!vm.hasKnownNoChildren) {\n <button\n type=\"button\"\n class=\"tree-node-caret\"\n (click)=\"toggleSidebarFolderNode($event, vm)\"\n [title]=\"vm.isExpanded ? 'Thu g\u1ECDn nh\u00E1nh' : 'M\u1EDF r\u1ED9ng th\u01B0 m\u1EE5c con'\"\n >\n <nz-icon\n [nzType]=\"vm.isLoading ? 'loading' : vm.isExpanded ? 'caret-down' : 'caret-right'\"\n ></nz-icon>\n </button>\n } @else {\n <span class=\"tree-node-caret-spacer\"></span>\n }\n\n <nz-icon\n class=\"tree-node-folder-icon\"\n [nzType]=\"vm.isExpanded || vm.isActive ? 'folder-open' : 'folder-fill'\"\n [style.color]=\"vm.isActive ? 'var(--primary-color, #1890ff)' : '#f59e0b'\"\n ></nz-icon>\n\n <span class=\"tree-node-label\" nz-tooltip [nzTooltipTitle]=\"vm.node.Name\" nzTooltipPlacement=\"right\">\n {{ vm.node.Name }}\n </span>\n\n @if (vm.node.EffectiveAccess >= DriveAccessLevel.Uploader) {\n <button\n type=\"button\"\n class=\"tree-node-quick-btn\"\n title=\"T\u1EA1o th\u01B0 m\u1EE5c con trong '{{ vm.node.Name }}'\"\n (click)=\"openCreateSubfolderFromSidebar($event, vm)\"\n >\n <nz-icon nzType=\"plus\"></nz-icon>\n </button>\n }\n </div>\n }\n </div>\n } @else if (isSidebarSpaceLoading(spaceKey)) {\n <div class=\"sidebar-tree-empty\">\n <nz-icon nzType=\"loading\" style=\"margin-right: 4px\"></nz-icon> \u0110ang t\u1EA3i c\u00E2y th\u01B0 m\u1EE5c...\n </div>\n } @else if (sidebarTreeFilter().trim()) {\n <div class=\"sidebar-tree-empty\">Kh\u00F4ng kh\u1EDBp th\u01B0 m\u1EE5c n\u00E0o</div>\n } @else {\n <div class=\"sidebar-tree-empty\">Ch\u01B0a c\u00F3 th\u01B0 m\u1EE5c con</div>\n }\n }\n }\n </ng-template>\n <!-- KHUNG M\u1EAAU C\u00C2Y TH\u01AF M\u1EE4C (H\u1ED6 TR\u1EE2 K\u00C9O TH\u1EA2 V\u00C0O TH\u01AF M\u1EE4C \u0110\u00CDCH HO\u1EB6C B\u1EA4M T\u1EA0O NHANH) -->\n @if (drive.isCurrentUserAdmin()) {\n <div class=\"template-sidebar-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <span style=\"font-size: 12px; font-weight: 600\">\n <nz-icon nzType=\"apartment\" style=\"color: #d97706; margin-right: 4px\"></nz-icon>\n M\u1EABu c\u00E2y th\u01B0 m\u1EE5c ({{ drive.folderTemplates().length }})\n </span>\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px\"\n (click)=\"openTemplateDrawer('create')\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"\u0110\u1ECBnh ngh\u0129a m\u1EABu c\u00E2y th\u01B0 m\u1EE5c m\u1EDBi\" -->\n <nz-icon nzType=\"plus\"></nz-icon> T\u1EA1o m\u1EABu\n </button>\n </div>\n\n @if (drive.folderTemplates().length === 0) {\n <div class=\"quota-sub\" style=\"font-size: 11px\">\n Ch\u01B0a c\u00F3 m\u1EABu n\u00E0o. B\u1EA5m <strong>+ T\u1EA1o m\u1EABu</strong> \u0111\u1EC3 \u0111\u1ECBnh ngh\u0129a c\u00E2y th\u01B0 m\u1EE5c chu\u1EA9n.\n </div>\n } @else {\n <div class=\"template-chip-list\">\n @for (tpl of drive.folderTemplates(); track tpl.Id) {\n <div\n class=\"template-drag-item\"\n draggable=\"true\"\n (dragstart)=\"onTemplateDragStart($event, tpl)\"\n (dragend)=\"onTemplateDragEnd()\"\n >\n <!-- nz-tooltip\n [nzTooltipTitle]=\"\n 'K\u00E9o th\u1EA3 m\u1EABu [' +\n tpl.Name +\n '] (' +\n tpl.TotalFolderCount +\n ' th\u01B0 m\u1EE5c) v\u00E0o m\u1ED9t Th\u01B0 m\u1EE5c \u0111\u00EDch tr\u00EAn b\u1EA3ng, ho\u1EB7c b\u1EA5m \u0111\u1EC3 t\u1EA1o t\u1EA1i \u0111\u00E2y'\n \" -->\n <div\n nz-flex\n nzAlign=\"center\"\n [nzGap]=\"6\"\n style=\"flex: 1; min-width: 0\"\n (click)=\"openFolderDrawer('create', undefined, tpl)\"\n >\n <nz-icon nzType=\"folder-add\" style=\"color: #d97706; font-size: 15px\"></nz-icon>\n <div style=\"flex: 1; min-width: 0\">\n <div class=\"template-item-title\">{{ tpl.Name }}</div>\n <div class=\"template-item-sub\">\n <code>{{ tpl.Code }}</code> \u2022 {{ tpl.TotalFolderCount }} m\u1EE5c\n @if (tpl.TotalPermissionCount > 0) {\n <span style=\"color: #0284c7; font-weight: 600\">\n \u2022 \uD83D\uDEE1 {{ tpl.TotalPermissionCount }} quy\u1EC1n</span\n >\n }\n </div>\n </div>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"$event.stopPropagation(); applyTemplateToTargetFolder(tpl, drive.currentFolderId())\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"\u00C1p d\u1EE5ng ngay v\u00E0o th\u01B0 m\u1EE5c \u0111ang m\u1EDF\" -->\n <nz-icon nzType=\"thunderbolt\" style=\"color: var(--primary-color)\"></nz-icon>\n </button>\n @if (tpl.CanManage || drive.isCurrentUserAdmin()) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n (click)=\"$event.stopPropagation(); openTemplateDrawer('edit', tpl)\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"S\u1EEDa / X\u00F3a m\u1EABu c\u00E2y th\u01B0 m\u1EE5c\" -->\n <nz-icon nzType=\"setting\"></nz-icon>\n </button>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P C\u1EA4U H\u00CCNH CH\u1EBE \u0110\u1ED8 TH\u01AF M\u1EE4C V\u1EACT L\u00DD vs \u1EA2O H\u00D3A -->\n @if (drive.isCurrentUserAdmin() && false) {\n <div class=\"storage-mode-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <span style=\"font-size: 12px; font-weight: 600\">Th\u01B0 m\u1EE5c v\u1EADt l\u00FD (Disk)</span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"drive.usePhysicalFolders()\"\n (ngModelChange)=\"onTogglePhysicalMode($event)\"\n ></nz-switch>\n\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt: T\u1EA1o c\u00E2y th\u01B0 m\u1EE5c & t\u00EAn file th\u1EADt 1-1 tr\u00EAn \u1ED5 c\u1EE9ng m\u00E1y ch\u1EE7\"\n -->\n </div>\n <div class=\"quota-sub\">\n Ch\u1EBF \u0111\u1ED9: <strong>{{ drive.usePhysicalFolders() ? \"V\u1EADt l\u00FD 1:1 (Physical)\" : \"\u1EA2o h\u00F3a (Virtual)\" }}</strong>\n </div>\n @if (drive.usePhysicalFolders()) {\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-top: 8px\">\n <span style=\"font-size: 12px\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt: T\u1EA5t c\u1EA3 User c\u00F9ng d\u00F9ng chung 1 RootPath duy nh\u1EA5t \u0111\u1EC3 l\u01B0u tr\u1EEF t\u00E0i li\u1EC7u d\u1EF1 \u00E1n\"\n -->\n D\u00F9ng chung RootPath\n </span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"drive.useSharedPhysicalRoot()\"\n (ngModelChange)=\"onToggleSharedRootMode($event)\"\n ></nz-switch>\n </div>\n <div class=\"quota-sub\">\n Ph\u1EA1m vi \u0111\u0129a:\n <strong>{{ drive.useSharedPhysicalRoot() ? \"Chung to\u00E0n d\u1EF1 \u00E1n\" : \"T\u00E1ch theo t\u1EEBng User\" }}</strong>\n </div>\n <div nz-flex nzVertical [nzGap]=\"6\" style=\"margin-top: 8px\">\n <button nz-button nzType=\"dashed\" nzSize=\"small\" nzBlock (click)=\"onSyncPhysicalDisk()\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Qu\u00E9t c\u00E1c file/th\u01B0 m\u1EE5c copy tr\u1EF1c ti\u1EBFp tr\u00EAn \u1ED5 \u0111\u0129a Server \u0111\u1EC3 n\u1EA1p v\u00E0o Drive\"\n -->\n <nz-icon nzType=\"sync\"></nz-icon> \u0110\u1ED3ng b\u1ED9 t\u1EEB \u1ED5 \u0111\u0129a\n </button>\n <button nz-button nzType=\"default\" nzSize=\"small\" nzBlock (click)=\"openRelocateDrawer(null)\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"\u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn RootPath ho\u1EB7c \u00E1nh x\u1EA1 sang \u1ED5 c\u1EE9ng l\u01B0u tr\u1EEF kh\u00E1c\"\n -->\n <nz-icon nzType=\"folder-open\"></nz-icon> \u0110\u1ED5i RootPath / \u1ED4 \u0111\u0129a\n </button>\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P TI\u1EBEN TR\u00CCNH UPLOAD (H\u1ED6 TR\u1EE2 T\u1EA2I TI\u1EBEP KHI L\u1ED6I / T\u1EA0M D\u1EEANG / H\u1EE6Y) -->\n @if (drive.userUploadQueue().length > 0) {\n <div class=\"upload-queue-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <strong>Ti\u1EBFn tr\u00ECnh t\u1EA3i l\u00EAn ({{ drive.userUploadQueue().length }})</strong>\n <a (click)=\"drive.clearCompletedUploads()\" style=\"font-size: 12px\">\u1EA8n \u0111\u00E3 xong</a>\n </div>\n <input #resumeFileInput type=\"file\" hidden (change)=\"onResumeFileSelected($event)\" />\n @for (task of drive.userUploadQueue(); track task.id) {\n <div class=\"upload-task-row\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"4\">\n <div class=\"upload-task-name\" [title]=\"task.fileName\">{{ task.fileName }}</div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n @if (task.status === \"uploading\" && (task.fileSize || 0) >= 20971520) {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n (click)=\"drive.pauseUploadTask(task.id)\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"T\u1EA1m d\u1EEBng t\u1EA3i l\u00EAn\"\n -->\n <nz-icon nzType=\"pause-circle\"></nz-icon>\n </button>\n }\n @if (task.status === \"error\" || task.status === \"paused\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px; font-weight: 600\"\n (click)=\"onResumeUploadClick(task, resumeFileInput)\"\n >\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"task.errorMessage || 'T\u1EA3i l\u00EAn ti\u1EBFp t\u1EEB ph\u1EA7n tr\u0103m \u0111\u00E3 l\u01B0u (Resume Upload)'\"\n -->\n <nz-icon nzType=\"reload\"></nz-icon> T\u1EA3i ti\u1EBFp\n </button>\n }\n @if (task.status !== \"uploading\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px\"\n (click)=\"drive.removeUploadTask(task.id)\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"X\u00F3a kh\u1ECFi danh s\u00E1ch & h\u1EE7y phi\u00EAn t\u1EA1m\"\n -->\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n }\n </div>\n </div>\n <nz-progress\n [nzPercent]=\"task.progress\"\n nzSize=\"small\"\n [nzStatus]=\"\n task.status === 'error'\n ? 'exception'\n : task.status === 'success'\n ? 'success'\n : task.status === 'paused'\n ? 'normal'\n : 'active'\n \"\n ></nz-progress>\n @if (task.status === \"error\") {\n <div style=\"font-size: 11px; color: #ef4444; margin-top: 2px\">\n {{ task.errorMessage || \"B\u1ECB ng\u1EAFt k\u1EBFt n\u1ED1i.\" }} \u2014 B\u1EA5m <strong>T\u1EA3i ti\u1EBFp</strong> \u0111\u1EC3 n\u1ED1i l\u1EA1i t\u1EEB\n {{ task.progress }}%.\n </div>\n }\n @if (task.status === \"paused\") {\n <div style=\"font-size: 11px; color: #f59e0b; margin-top: 2px\">\n \u0110\u00E3 t\u1EA1m d\u1EEBng \u1EDF {{ task.progress }}% \u2014 B\u1EA5m <strong>T\u1EA3i ti\u1EBFp</strong> \u0111\u1EC3 ti\u1EBFp t\u1EE5c.\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P TI\u1EBEN TR\u00CCNH DOWNLOAD (H\u1ED6 TR\u1EE2 THEO D\u00D5I % & H\u1EE6Y T\u1EA2I T\u1EE8C TH\u1EDCI \u0110\u1ED0I V\u1EDAI FILE N\u1EB6NG) -->\n @if (drive.userDownloadQueue().length > 0) {\n <div class=\"upload-queue-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <strong>Ti\u1EBFn tr\u00ECnh t\u1EA3i xu\u1ED1ng ({{ drive.userDownloadQueue().length }})</strong>\n <a (click)=\"drive.clearCompletedDownloads()\" style=\"font-size: 12px\">\u1EA8n \u0111\u00E3 xong</a>\n </div>\n @for (dlTask of drive.userDownloadQueue(); track dlTask.id) {\n <div class=\"upload-task-row\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"4\">\n <div class=\"upload-task-name\" [title]=\"dlTask.fileName\">{{ dlTask.fileName }}</div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n @if (dlTask.status === \"downloading\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px; font-weight: 600\"\n (click)=\"drive.cancelDownloadTask(dlTask.id)\"\n >\n <nz-icon nzType=\"stop\"></nz-icon> H\u1EE7y t\u1EA3i\n </button>\n } @else {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px\"\n (click)=\"drive.removeDownloadTask(dlTask.id)\"\n >\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n }\n </div>\n </div>\n <nz-progress\n [nzPercent]=\"dlTask.progress\"\n nzSize=\"small\"\n [nzStatus]=\"\n dlTask.status === 'error' || dlTask.status === 'cancelled'\n ? 'exception'\n : dlTask.status === 'success'\n ? 'success'\n : 'active'\n \"\n ></nz-progress>\n <div style=\"font-size: 11px; color: var(--app-text-muted, #64748b); margin-top: 2px\">\n @if (dlTask.status === \"downloading\") {\n \u0110ang t\u1EA3i: {{ dlTask.loadedBytes | formatBytes }}\n @if (dlTask.totalBytes) {\n / {{ dlTask.totalBytes | formatBytes }}\n }\n } @else if (dlTask.status === \"cancelled\") {\n <span style=\"color: #f59e0b\">\u0110\u00E3 h\u1EE7y t\u1EA3i xu\u1ED1ng gi\u1EEFa ch\u1EEBng.</span>\n } @else if (dlTask.status === \"error\") {\n <span style=\"color: #ef4444\">{{ dlTask.errorMessage || \"L\u1ED7i khi t\u1EA3i xu\u1ED1ng.\" }}</span>\n } @else {\n <span style=\"color: #10b981\">\u0110\u00E3 t\u1EA3i xu\u1ED1ng ho\u00E0n t\u1EA5t.</span>\n }\n </div>\n </div>\n }\n </div>\n }\n <div class=\"quota-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <div class=\"quota-title\" style=\"margin-bottom: 0\">\n <nz-icon nzType=\"cloud\"></nz-icon> Dung l\u01B0\u1EE3ng ({{ drive.quotaPercent() }}%)\n </div>\n @if (drive.isCurrentUserAdmin()) {\n <nz-tag nzColor=\"gold\" style=\"margin-right: 0; font-size: 11px\">Admin</nz-tag>\n }\n </div>\n <nz-progress [nzPercent]=\"drive.quotaPercent()\" nzSize=\"small\" [nzShowInfo]=\"false\"></nz-progress>\n <div class=\"quota-sub\">{{ drive.usedBytes() | formatBytes }} / {{ drive.quotaLimitBytes() | formatBytes }}</div>\n @if (drive.isCurrentUserAdmin()) {\n <button\n nz-button\n nzType=\"dashed\"\n nzSize=\"small\"\n nzBlock\n style=\"margin-top: 8px\"\n (click)=\"openPermissionMatrixDrawer(drive.currentFolderId())\"\n >\n <nz-icon nzType=\"table\"></nz-icon>\n Ma tr\u1EADn ph\u00E2n quy\u1EC1n\n </button>\n <button\n nz-button\n nzType=\"dashed\"\n nzSize=\"small\"\n nzBlock\n style=\"margin-top: 8px\"\n (click)=\"openQuotaAdminDrawer()\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"\u0110\u1EB7t Quota m\u1EB7c \u0111\u1ECBnh to\u00E0n h\u1EC7 th\u1ED1ng v\u00E0 thi\u1EBFt l\u1EADp Quota ri\u00EAng cho t\u1EEBng ng\u01B0\u1EDDi d\u00F9ng (Ch\u1EC9 Admin)\"\n -->\n <nz-icon nzType=\"setting\"></nz-icon> Qu\u1EA3n l\u00FD Quota (Admin)\n </button>\n }\n </div>\n </aside>\n <!-- KHU V\u1EF0C N\u1ED8I DUNG CH\u00CDNH (H\u1ED6 TR\u1EE2 K\u00C9O TH\u1EA2 FILE & FOLDER T\u1EEA FILE EXPLORER) -->\n <main\n class=\"drive-main\"\n [class.external-drag-active]=\"isExternalFileDragging()\"\n (dragenter)=\"onMainDragEnter($event)\"\n (dragover)=\"onMainDragOver($event)\"\n (dragleave)=\"onMainDragLeave($event)\"\n (drop)=\"onMainDrop($event)\"\n >\n @if (isExternalFileDragging()) {\n <div class=\"external-drop-banner\">\n <nz-icon nzType=\"cloud-upload\" class=\"drop-banner-icon\"></nz-icon>\n <div>\n <div class=\"drop-banner-title\">\n @if (dragOverFolderName(); as targetName) {\n Th\u1EA3 t\u1EADp tin / th\u01B0 m\u1EE5c t\u1EEB m\u00E1y t\u00EDnh \u0111\u1EC3 t\u1EA3i th\u1EB3ng v\u00E0o th\u01B0 m\u1EE5c: <strong>\"{{ targetName }}\"</strong>\n } @else {\n Th\u1EA3 t\u1EADp tin ho\u1EB7c th\u01B0 m\u1EE5c t\u1EEB File Explorer v\u00E0o \u0111\u00E2y \u0111\u1EC3 t\u1EA3i l\u00EAn th\u01B0 m\u1EE5c hi\u1EC7n t\u1EA1i\n }\n </div>\n <div class=\"drop-banner-sub\">\n H\u1ED7 tr\u1EE3 k\u00E9o th\u1EA3 nhi\u1EC1u file c\u00F9ng l\u00FAc ho\u1EB7c k\u00E9o nguy\u00EAn c\u1EA3 c\u00E2y th\u01B0 m\u1EE5c t\u1EEB m\u00E1y t\u00EDnh (T\u1EF1 \u0111\u1ED9ng Chunk Upload n\u1EBFu\n file &ge; 20MB)\n </div>\n </div>\n </div>\n }\n <!-- TOOLBAR + PAGINATION -->\n <header class=\"drive-toolbar\">\n <div>\n <nz-breadcrumb>\n <nz-breadcrumb-item\n (click)=\"navigateToFolder(null)\"\n (dragover)=\"onBreadcrumbDragOver($event, '__ROOT__')\"\n (dragleave)=\"onBreadcrumbDragLeave('__ROOT__')\"\n (drop)=\"onBreadcrumbDrop($event, null)\"\n [class.bc-drop-active]=\"dragOverBreadcrumbId() === '__ROOT__'\"\n class=\"cursor-pointer\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"K\u00E9o th\u1EA3 m\u1EE5c v\u00E0o \u0111\u00E2y \u0111\u1EC3 chuy\u1EC3n v\u1EC1 th\u01B0 m\u1EE5c g\u1ED1c\"\n -->\n <nz-icon nzType=\"home\"></nz-icon>\n {{ getRootTitle() }}\n </nz-breadcrumb-item>\n @for (bc of drive.breadcrumbs(); track bc.Id) {\n @if (drive.currentViewMode() !== \"CUSTOM_SPACE\" || bc.Id !== drive.currentCustomSpaceId()) {\n <nz-breadcrumb-item\n (click)=\"navigateToFolder(bc.Id)\"\n (dragover)=\"onBreadcrumbDragOver($event, bc.Id)\"\n (dragleave)=\"onBreadcrumbDragLeave(bc.Id)\"\n (drop)=\"onBreadcrumbDrop($event, bc.Id)\"\n [class.bc-drop-active]=\"dragOverBreadcrumbId() === bc.Id\"\n class=\"cursor-pointer\"\n >\n {{ bc.Name }}\n </nz-breadcrumb-item>\n }\n }\n </nz-breadcrumb>\n <!-- @if (drive.isCurrentUserAdmin() && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as physPath) {\n <div class=\"physical-path-bar\">\n <nz-icon nzType=\"folder-open\"></nz-icon>\n <span>\n \u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD: <code>{{ physPath }}</code>\n </span>\n <icon-copy [textToCopy]=\"physPath\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD tr\u00EAn Server\"></icon-copy>\n </div>\n } -->\n </div>\n <div class=\"toolbar-actions\">\n <nz-input-group [nzSuffix]=\"suffixIconSearch\" style=\"width: 250px\">\n <input\n type=\"text\"\n nz-input\n placeholder=\"T\u00ECm ki\u1EBFm t\u00E0i li\u1EC7u, th\u01B0 m\u1EE5c...\"\n [ngModel]=\"drive.keyword()\"\n (ngModelChange)=\"drive.keyword.set($event)\"\n (keyup.enter)=\"onSearch()\"\n />\n </nz-input-group>\n <ng-template #suffixIconSearch>\n <nz-icon nzType=\"search\" class=\"cursor-pointer\" (click)=\"onSearch()\"></nz-icon>\n </ng-template>\n <label\n nz-checkbox\n [ngModel]=\"drive.includeSubfolders()\"\n (ngModelChange)=\"onToggleIncludeSubfolders($event)\"\n style=\"user-select: none; white-space: nowrap; font-size: 13px\"\n nz-tooltip\n nzTooltipTitle=\"T\u00ECm c\u1EA3 th\u01B0 m\u1EE5c con\"\n >\n </label>\n <!-- T\u00D9Y CH\u1ECCN CH\u1EBE \u0110\u1ED8 XEM: C\u00C2Y TH\u01AF M\u1EE4C B\u00CAN TR\u00C1I + B\u1EA2NG PH\u1EB2NG vs TREE TABLE -->\n <div class=\"view-mode-switch\" nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"showSidebarTree() ? 'primary' : 'default'\"\n (click)=\"onToggleSidebarTree(!showSidebarTree())\"\n nz-tooltip\n [nzTooltipTitle]=\"\n showSidebarTree()\n ? '\u0110ang b\u1EADt C\u00E2y th\u01B0 m\u1EE5c b\u00EAn tr\u00E1i (Nh\u1EA5n \u0111\u1EC3 \u1EA9n)'\n : 'Hi\u1EC3n th\u1ECB C\u00E2y th\u01B0 m\u1EE5c tr\u1EF1c ti\u1EBFp \u1EDF c\u1ED9t b\u00EAn tr\u00E1i'\n \"\n >\n <nz-icon nzType=\"partition\"></nz-icon>\n </button>\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"!drive.isTreeTableView() ? 'primary' : 'default'\"\n (click)=\"onToggleTreeTableView(false)\"\n nz-tooltip\n nzTooltipTitle=\"Flat Table\"\n >\n <nz-icon nzType=\"unordered-list\"></nz-icon>\n <!-- B\u1EA3ng ph\u1EB3ng -->\n </button>\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"drive.isTreeTableView() ? 'primary' : 'default'\"\n (click)=\"onToggleTreeTableView(true)\"\n nz-tooltip\n nzTooltipTitle=\"Tree Table\"\n >\n <nz-icon nzType=\"apartment\"></nz-icon>\n <!-- Tree Table -->\n </button>\n @if (drive.isTreeTableView()) {\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"expandAllTreeFolders()\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"collapseAllTreeFolders()\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n }\n </div>\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drive.sortDesc() ? 'A \u2192 Z' : 'Z \u2192 A'\"\n (click)=\"toggleSortDirection()\"\n >\n <nz-icon [nzType]=\"drive.sortDesc() ? 'sort-descending' : 'sort-ascending'\"></nz-icon>\n </button>\n @if (drive.currentViewMode() === \"TRASH\") {\n <button\n type=\"button\"\n nz-button\n nzDanger\n nzType=\"primary\"\n nzSize=\"small\"\n [disabled]=\"drive.items().length === 0 || emptyingTrash()\"\n [nzLoading]=\"emptyingTrash()\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a v\u0129nh vi\u1EC5n to\u00E0n b\u1ED9 c\u00E1c m\u1EE5c trong th\u00F9ng r\u00E1c v\u00E0 gi\u1EA3i ph\u00F3ng dung l\u01B0\u1EE3ng Quota\"\n (click)=\"onEmptyTrash()\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c\n @if (drive.totalCount() > 0) {\n <span>({{ drive.totalCount() }})</span>\n }\n </button>\n }\n <button\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"refreshExplorer()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n <nz-pagination\n [nzSize]=\"'small'\"\n [nzPageIndex]=\"drive.pageIndex()\"\n [nzPageSize]=\"drive.pageSize()\"\n [nzTotal]=\"drive.totalCount()\"\n [nzShowSizeChanger]=\"true\"\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\n (nzPageIndexChange)=\"drive.loadNodes($event, drive.pageSize())\"\n (nzPageSizeChange)=\"drive.loadNodes(1, $event)\"\n >\n </nz-pagination>\n </div>\n </header>\n @if (drive.currentViewMode() === \"TRASH\" && drive.items().length > 0) {\n <div class=\"trash-info-banner\">\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-icon nzType=\"info-circle\" style=\"color: #ef4444; font-size: 16px\"></nz-icon>\n <span>\n C\u00E1c m\u1EE5c trong th\u00F9ng r\u00E1c v\u1EABn t\u00EDnh v\u00E0o dung l\u01B0\u1EE3ng h\u1EA1n ng\u1EA1ch (Quota) cho \u0111\u1EBFn khi b\u1ECB x\u00F3a v\u0129nh vi\u1EC5n.\n </span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzDanger\n nzType=\"link\"\n nzSize=\"small\"\n style=\"font-weight: 600; padding: 0\"\n [nzLoading]=\"emptyingTrash()\"\n (click)=\"onEmptyTrash()\"\n >\n <nz-icon nzType=\"clear\"></nz-icon> D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c ngay\n </button>\n </div>\n }\n <!-- DANH S\u00C1CH T\u1EACP TIN / TH\u01AF M\u1EE4C (H\u1ED6 TR\u1EE2 C\u1EA2 FLAT TABLE V\u00C0 TREE TABLE) -->\n <nz-table\n #explorerTable\n [nzData]=\"displayedTableItems()\"\n [nzLoading]=\"drive.loading()\"\n [nzBordered]=\"true\"\n [nzFrontPagination]=\"false\"\n [nzShowPagination]=\"false\"\n nzSize=\"small\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th class=\"sortable-th\" (click)=\"onSortColumn('Name')\">\n <div class=\"th-sort-wrap\">\n <span>T\u00EAn t\u00E0i li\u1EC7u / Th\u01B0 m\u1EE5c</span>\n <span class=\"sort-icon\" [class.active]=\"drive.sortBy() === 'Name'\">\n <nz-icon\n [nzType]=\"\n drive.sortBy() === 'Name' ? (drive.sortDesc() ? 'sort-descending' : 'sort-ascending') : 'swap'\n \"\n ></nz-icon>\n </span>\n </div>\n </th>\n <th nzWidth=\"150px\" class=\"sortable-th\" (click)=\"onSortColumn('OwnerName')\">\n <div class=\"th-sort-wrap\">\n <span>Ch\u1EE7 s\u1EDF h\u1EEFu</span>\n @if (drive.sortBy() === \"OwnerName\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"130px\" class=\"text-center sortable-th\" (click)=\"onSortColumn('AccessLevel')\">\n <div class=\"th-sort-wrap justify-center\">\n <span>Quy\u1EC1n truy c\u1EADp</span>\n @if (drive.sortBy() === \"AccessLevel\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"110px\" class=\"text-right sortable-th\" (click)=\"onSortColumn('SizeBytes')\">\n <div class=\"th-sort-wrap justify-end\">\n <span>K\u00EDch th\u01B0\u1EDBc</span>\n @if (drive.sortBy() === \"SizeBytes\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"145px\" class=\"text-center sortable-th\" (click)=\"onSortColumn('UpdatedDate')\">\n <div class=\"th-sort-wrap justify-center\">\n <span>C\u1EADp nh\u1EADt cu\u1ED1i</span>\n @if (drive.sortBy() === \"UpdatedDate\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"210px\" class=\"text-center\">Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (item of explorerTable.data; track item.Id; let i = $index) {\n <tr\n [attr.draggable]=\"drive.currentViewMode() !== 'TRASH' && item.EffectiveAccess >= DriveAccessLevel.Editor\"\n (dragstart)=\"onRowDragStart($event, item)\"\n (dragend)=\"onRowDragEnd()\"\n (dragover)=\"onRowDragOver($event, item)\"\n (dragleave)=\"onRowDragLeave($event, item)\"\n (drop)=\"onRowDrop($event, item)\"\n (dblclick)=\"onRowDoubleClick(item)\"\n (contextmenu)=\"onContextMenu($event, menu, item)\"\n class=\"drive-row\"\n [class.dragging-row]=\"draggedNode()?.Id === item.Id\"\n [class.drop-target-active]=\"dragOverFolderId() === item.Id\"\n >\n <td class=\"text-center\">{{ i + 1 + (drive.pageIndex() - 1) * drive.pageSize() }}</td>\n <td\n [nzIndentSize]=\"drive.isTreeTableView() ? (item.treeLevel || 0) * 22 : 0\"\n [nzShowExpand]=\"drive.isTreeTableView() && isFolderLike(item) && !item.IsBrokenShortcut\"\n [nzExpand]=\"!!item.treeExpanded\"\n (nzExpandChange)=\"toggleExpandTreeFolder(item, $event)\"\n >\n <div class=\"node-name-cell\">\n <span class=\"node-icon-wrap\">\n <nz-icon\n [nzType]=\"isFolderLike(item) ? 'folder-fill' : getFileIcon(item)\"\n [style.color]=\"isFolderLike(item) ? '#f59e0b' : 'var(--primary-color)'\"\n class=\"node-icon\"\n ></nz-icon>\n @if (item.NodeType === DriveNodeType.Shortcut) {\n <span class=\"shortcut-badge\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'L\u1ED1i t\u1EAFt tr\u1ECF t\u1EDBi: ' + (item.ShortcutTargetName || item.Name)\"\n -->\n <nz-icon nzType=\"select\"></nz-icon>\n </span>\n }\n </span>\n <span class=\"node-title link-detail\" (click)=\"onRowSingleClick(item)\">{{ item.Name }}</span>\n @if (drive.keyword().trim() && item.ParentFolderName && item.ParentId !== drive.currentFolderId()) {\n <nz-tag\n nzColor=\"default\"\n style=\"margin-left: 6px; cursor: pointer\"\n (click)=\"$event.stopPropagation(); navigateToFolder(item.ParentId || null)\"\n >\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'\u0110ang n\u1EB1m trong th\u01B0 m\u1EE5c: ' + item.ParentFolderName + ' (Nh\u1EA5n \u0111\u1EC3 m\u1EDF th\u01B0 m\u1EE5c)'\"\n -->\n <nz-icon nzType=\"folder\"></nz-icon> {{ item.ParentFolderName }}\n </nz-tag>\n }\n @if (item.NodeType === DriveNodeType.Shortcut) {\n @if (item.IsBrokenShortcut) {\n <nz-tag nzColor=\"error\" style=\"margin-left: 6px\">M\u1EE5c g\u1ED1c \u0111\u00E3 x\u00F3a</nz-tag>\n } @else {\n <nz-tag nzColor=\"purple\" style=\"margin-left: 6px\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'\u0110\u00EDch: ' + (item.ShortcutTargetName || item.Name)\"\n -->\n <nz-icon nzType=\"link\"></nz-icon> L\u1ED1i t\u1EAFt\n </nz-tag>\n }\n }\n @if (item.IsStarred) {\n <nz-icon nzType=\"star\" nzTheme=\"fill\" style=\"color: #eab308; margin-left: 4px\"></nz-icon>\n }\n @if (item.IsShared) {\n <nz-tag nzColor=\"processing\" style=\"margin-left: 6px\">\u0110\u00E3 chia s\u1EBB</nz-tag>\n }\n @if (!item.InheritPermissions) {\n <nz-tag nzColor=\"warning\" nz-tooltip nzTooltipTitle=\"\u0110\u00E3 ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha\">\n \u0110\u1ED9c l\u1EADp\n </nz-tag>\n }\n </div>\n </td>\n <td>{{ item.OwnerName || item.OwnerId }}</td>\n <td class=\"text-center\">\n <nz-tag\n [nzColor]=\"\n item.EffectiveAccess >= DriveAccessLevel.Editor\n ? 'green'\n : item.EffectiveAccess >= DriveAccessLevel.Uploader\n ? 'cyan'\n : 'default'\n \"\n >\n {{\n item.EffectiveAccess >= DriveAccessLevel.Manager\n ? \"Qu\u1EA3n tr\u1ECB\"\n : item.EffectiveAccess >= DriveAccessLevel.Editor\n ? \"Ch\u1EC9nh s\u1EEDa\"\n : item.EffectiveAccess >= DriveAccessLevel.Uploader\n ? \"Xem & T\u1EA3i l\u00EAn\"\n : item.CanDownload && item.EffectiveAccess >= DriveAccessLevel.Downloader\n ? \"Xem & T\u1EA3i\"\n : \"Ch\u1EC9 xem\"\n }}\n </nz-tag>\n </td>\n <td class=\"text-right\">\n {{ isFolderLike(item) ? \"\u2014\" : (item.SizeBytes | formatBytes) }}\n </td>\n <td class=\"text-center\">{{ item.UpdatedDate | date: \"dd/MM/yyyy HH:mm\" }}</td>\n <td class=\"text-center\">\n <div class=\"action-btn-group\">\n @if (drive.currentViewMode() !== \"TRASH\") {\n @if (item.CanShare || item.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openShareDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chia s\u1EBB & Ph\u00E2n quy\u1EC1n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"share-alt\"></nz-icon>\n </button>\n }\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openMoveDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chuy\u1EC3n th\u01B0 m\u1EE5c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"drag\"></nz-icon>\n </button>\n }\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openCopyDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Sao ch\u00E9p\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"copy\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openShortcutDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"T\u1EA1o l\u1ED1i t\u1EAFt\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"link\"></nz-icon>\n </button>\n @if (\n item.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n item.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openRelocateDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD / \u00C1nh x\u1EA1 \u1ED5 c\u1EE9ng l\u01B0u tr\u1EEF\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"hdd\"></nz-icon>\n </button>\n }\n @if (\n isFileLike(item) &&\n !item.IsBrokenShortcut &&\n item.CanDownload &&\n item.EffectiveAccess >= DriveAccessLevel.Downloader\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); onDownloadItem(item)\"\n nz-tooltip\n nzTooltipTitle=\"T\u1EA3i xu\u1ED1ng\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"download\"></nz-icon>\n </button>\n }\n @if (\n isFileLike(item) && !item.IsBrokenShortcut && item.EffectiveAccess >= DriveAccessLevel.Editor\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openVersionDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"history\"></nz-icon>\n </button>\n }\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openFolderDrawer('rename', item)\"\n nz-tooltip\n [nzTooltipTitle]=\"\n item.EffectiveAccess >= DriveAccessLevel.Editor\n ? '\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt'\n : 'Xem chi ti\u1EBFt & Nh\u1EADt k\u00FD'\n \"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon\n [nzType]=\"item.EffectiveAccess >= DriveAccessLevel.Editor ? 'edit' : 'info-circle'\"\n ></nz-icon>\n </button>\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n (click)=\"$event.stopPropagation(); onSoftDelete(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chuy\u1EC3n v\u00E0o th\u00F9ng r\u00E1c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n }\n } @else {\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); onRestore(item)\"\n nz-tooltip\n nzTooltipTitle=\"Kh\u00F4i ph\u1EE5c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"rollback\"></nz-icon>\n </button>\n }\n @if (item.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n (click)=\"$event.stopPropagation(); onPermanentDelete(item)\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a v\u0129nh vi\u1EC5n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n }\n }\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n <!-- CONTEXT MENU CHU\u1ED8T PH\u1EA2I -->\n <nz-dropdown-menu #menu=\"nzDropdownMenu\">\n @if (selectedContextItem(); as ctx) {\n <ul nz-menu>\n @if (drive.currentViewMode() === \"TRASH\") {\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"onRestore(ctx)\"><nz-icon nzType=\"rollback\"></nz-icon> Kh\u00F4i ph\u1EE5c m\u1EE5c n\u00E0y</li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Manager) {\n <li nz-menu-item nzDanger (click)=\"onPermanentDelete(ctx)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a v\u0129nh vi\u1EC5n m\u1EE5c n\u00E0y\n </li>\n }\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"onEmptyTrash()\">\n <nz-icon nzType=\"clear\"></nz-icon> D\u1ECDn s\u1EA1ch to\u00E0n b\u1ED9 th\u00F9ng r\u00E1c...\n </li>\n } @else {\n @if (ctx.NodeType === DriveNodeType.File) {\n <li nz-menu-item (click)=\"previewFile(ctx)\">\n <nz-icon nzType=\"eye\"></nz-icon> Xem tr\u1EF1c ti\u1EBFp (Drawer Preview)\n </li>\n @if (ctx.CanDownload && ctx.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <li nz-menu-item (click)=\"onDownloadItem(ctx)\"><nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng</li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"openVersionDrawer(ctx)\">\n <nz-icon nzType=\"history\"></nz-icon> L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n...\n </li>\n }\n <li nz-menu-divider></li>\n }\n @if (ctx.CanShare || ctx.EffectiveAccess >= DriveAccessLevel.Manager) {\n <li nz-menu-item (click)=\"openShareDrawer(ctx)\">\n <nz-icon nzType=\"usergroup-add\"></nz-icon> Ph\u00E2n quy\u1EC1n & Chia s\u1EBB...\n </li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"openMoveDrawer(ctx)\">\n <nz-icon nzType=\"drag\"></nz-icon> Di chuy\u1EC3n sang th\u01B0 m\u1EE5c kh\u00E1c...\n </li>\n }\n <li nz-menu-item (click)=\"openCopyDrawer(ctx)\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi (Copy to)...\n </li>\n <li nz-menu-item (click)=\"openShortcutDrawer(ctx)\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt (Shortcut)...\n </li>\n @if (\n ctx.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n ctx.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <li nz-menu-item (click)=\"openRelocateDrawer(ctx)\">\n <nz-icon nzType=\"hdd\"></nz-icon> \u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD / Chuy\u1EC3n \u1ED5 \u0111\u0129a...\n </li>\n }\n <li nz-menu-item (click)=\"openFolderDrawer('rename', ctx)\">\n <nz-icon [nzType]=\"ctx.EffectiveAccess >= DriveAccessLevel.Editor ? 'edit' : 'info-circle'\"></nz-icon>\n {{\n ctx.EffectiveAccess >= DriveAccessLevel.Editor ? \"\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt...\" : \"Xem chi ti\u1EBFt & Nh\u1EADt k\u00FD...\"\n }}\n </li>\n <li nz-menu-item (click)=\"drive.toggleStar(ctx.Id)\">\n <nz-icon nzType=\"star\"></nz-icon> {{ ctx.IsStarred ? \"B\u1ECF d\u1EA5u sao\" : \"Th\u00EAm d\u1EA5u sao\" }}\n </li>\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"onSoftDelete(ctx)\">\n <nz-icon nzType=\"delete\"></nz-icon> Chuy\u1EC3n v\u00E0o th\u00F9ng r\u00E1c\n </li>\n }\n @if (ctx.NodeType === DriveNodeType.Folder) {\n <li nz-menu-item (click)=\"openTemplateDrawer('create', undefined, ctx)\">\n <nz-icon nzType=\"apartment\"></nz-icon> L\u01B0u c\u1EA5u tr\u00FAc th\u01B0 m\u1EE5c l\u00E0m M\u1EABu...\n </li>\n }\n }\n </ul>\n }\n </nz-dropdown-menu>\n </main>\n </div>\n <!-- ========================================================================= -->\n <!-- DRAWER 1: CHIA S\u1EBA & PH\u00C2N QUY\u1EC0N (ACL / RBAC / SHARE LINKS) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"shareDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"920\"\n [nzClosable]=\"false\"\n [nzTitle]=\"shareDrawerTitleTpl\"\n [nzFooter]=\"shareDrawerFooterTpl\"\n (nzOnClose)=\"shareDrawerVisible = false\"\n >\n <ng-template #shareDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n @if (activeActionNode(); as node) {\n <nz-icon\n [nzType]=\"node.NodeType === DriveNodeType.Folder ? 'folder-fill' : getFileIcon(node)\"\n [style.color]=\"node.NodeType === DriveNodeType.Folder ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 18px\"\n ></nz-icon>\n <strong>Chia s\u1EBB & Ph\u00E2n quy\u1EC1n: {{ node.Name }}</strong>\n <nz-tag nzColor=\"blue\">{{ node.NodeType === DriveNodeType.Folder ? \"Th\u01B0 m\u1EE5c\" : \"T\u1EADp tin\" }}</nz-tag>\n }\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"shareDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (activeActionNode(); as node) {\n <lib-drive-share-modal [nodeId]=\"node.Id\"></lib-drive-share-modal>\n }\n </ng-container>\n <ng-template #shareDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"shareDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 2: L\u1ECACH S\u1EEC PHI\u00CAN B\u1EA2N T\u1EACP TIN (FILE VERSIONS) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"versionDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"760\"\n [nzClosable]=\"false\"\n [nzTitle]=\"versionDrawerTitleTpl\"\n [nzFooter]=\"versionDrawerFooterTpl\"\n (nzOnClose)=\"versionDrawerVisible = false\"\n >\n <ng-template #versionDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"history\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n: {{ activeActionNode()?.Name }}</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"versionDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (activeActionNode(); as node) {\n <lib-drive-version-modal\n [nodeId]=\"node.Id\"\n [nodeName]=\"node.Name\"\n [canEdit]=\"node.EffectiveAccess >= DriveAccessLevel.Editor\"\n [canDownload]=\"node.CanDownload && node.EffectiveAccess >= DriveAccessLevel.Downloader\"\n (closed)=\"versionDrawerVisible = false\"\n ></lib-drive-version-modal>\n }\n </ng-container>\n <ng-template #versionDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"versionDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 3: T\u1EA0O TH\u01AF M\u1EE4C M\u1EDAI / \u0110\u1ED4I T\u00CAN & CHI TI\u1EBET THU\u1ED8C T\u00CDNH + ACTIVITY LOG -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"folderDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"480\"\n [nzClosable]=\"false\"\n [nzTitle]=\"folderDrawerTitleTpl\"\n [nzFooter]=\"folderDrawerFooterTpl\"\n (nzOnClose)=\"folderDrawerVisible = false\"\n >\n <ng-template #folderDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon\n [nzType]=\"folderDrawerMode === 'create' ? 'folder-add' : canRenameTargetNode() ? 'edit' : 'info-circle'\"\n style=\"font-size: 18px; color: var(--primary-color)\"\n ></nz-icon>\n <strong>\n {{\n folderDrawerMode === \"create\"\n ? \"T\u1EA1o th\u01B0 m\u1EE5c m\u1EDBi\"\n : canRenameTargetNode()\n ? \"\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt m\u1EE5c\"\n : \"Chi ti\u1EBFt & Nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng\"\n }}\n </strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"folderDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n @if (folderDrawerMode === \"create\" && folderDrawerParentOverride; as parentOverride) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">T\u1EA1o b\u00EAn trong th\u01B0 m\u1EE5c cha:</span>\n <nz-tag nzColor=\"gold\"> <nz-icon nzType=\"folder-open\"></nz-icon> {{ parentOverride.Name }} </nz-tag>\n </div>\n </div>\n }\n <div>\n <label class=\"drawer-field-label\">\n {{ folderDrawerMode === \"create\" ? \"T\u00EAn th\u01B0 m\u1EE5c m\u1EDBi\" : \"T\u00EAn hi\u1EC3n th\u1ECB\" }}\n </label>\n <input\n nz-input\n [(ngModel)]=\"folderDrawerInputName\"\n [disabled]=\"folderDrawerMode === 'rename' && !canRenameTargetNode()\"\n [appAutoFocus]=\"folderDrawerVisible && (folderDrawerMode === 'create' || canRenameTargetNode())\"\n placeholder=\"Nh\u1EADp t\u00EAn th\u01B0 m\u1EE5c / t\u00E0i li\u1EC7u...\"\n (keyup.enter)=\"submitFolderDrawer()\"\n />\n </div>\n @if (folderDrawerMode === \"create\" && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as phys) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EBF \u0111\u1ED9 l\u01B0u tr\u1EEF:</span>\n <nz-tag nzColor=\"green\">Th\u01B0 m\u1EE5c v\u1EADt l\u00FD (Disk)</nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Th\u01B0 m\u1EE5c cha tr\u00EAn \u0111\u0129a:</span>\n <code class=\"break-word\">{{ phys }}</code>\n </div>\n </div>\n }\n @if (folderDrawerMode === \"rename\" && folderDrawerTargetNode; as target) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"target.NodeType === DriveNodeType.Folder ? 'folder-fill' : getFileIcon(target)\"\n [style.color]=\"target.NodeType === DriveNodeType.Folder ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ target.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n {{\n target.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c\"\n : \"T\u1EADp tin (\" + (target.Extension || target.MimeType || \"File\") + \")\"\n }}\n </div>\n </div>\n </div>\n <nz-divider style=\"margin: 10px 0\"></nz-divider>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EE7 s\u1EDF h\u1EEFu:</span>\n <strong>{{ target.OwnerName || target.OwnerId }}</strong>\n </div>\n @if (target.NodeType === DriveNodeType.File) {\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">K\u00EDch th\u01B0\u1EDBc:</span>\n <span>{{ target.SizeBytes | formatBytes }}</span>\n </div>\n }\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Quy\u1EC1n c\u1EE7a b\u1EA1n:</span>\n <nz-tag\n [nzColor]=\"\n target.EffectiveAccess >= DriveAccessLevel.Editor\n ? 'green'\n : target.EffectiveAccess >= DriveAccessLevel.Uploader\n ? 'cyan'\n : 'default'\n \"\n >\n {{\n target.EffectiveAccess >= DriveAccessLevel.Manager\n ? \"Qu\u1EA3n tr\u1ECB (Manager)\"\n : target.EffectiveAccess >= DriveAccessLevel.Editor\n ? \"Ch\u1EC9nh s\u1EEDa (Editor)\"\n : target.EffectiveAccess >= DriveAccessLevel.Uploader\n ? \"Xem & T\u1EA3i l\u00EAn (Uploader)\"\n : target.CanDownload && target.EffectiveAccess >= DriveAccessLevel.Downloader\n ? \"Xem & T\u1EA3i xu\u1ED1ng\"\n : \"Ch\u1EC9 xem (Viewer)\"\n }}\n </nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">K\u1EBF th\u1EEBa quy\u1EC1n:</span>\n <nz-tag [nzColor]=\"target.InheritPermissions ? 'blue' : 'warning'\">\n {{ target.InheritPermissions ? \"\u0110ang k\u1EBF th\u1EEBa\" : \"\u0110\u1ED9c l\u1EADp\" }}\n </nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">C\u1EADp nh\u1EADt cu\u1ED1i:</span>\n <span>{{ target.UpdatedDate | date: \"dd/MM/yyyy HH:mm\" }}</span>\n </div>\n @if (target.PhysicalRelativePath) {\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">\u0110\u01B0\u1EDDng d\u1EABn \u0111\u0129a:</span>\n <code class=\"break-word\">{{ target.PhysicalRelativePath }}</code>\n </div>\n }\n @if (drive.isCurrentUserAdmin() && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as physPath) {\n <div class=\"physical-path-bar\">\n <span style=\"word-break: break-all\">\n \u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD: <code style=\"padding-top: 0px\">{{ physPath }}</code>\n </span>\n <icon-copy [textToCopy]=\"physPath\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD tr\u00EAn Server\"></icon-copy>\n </div>\n }\n </div>\n <div>\n <label class=\"drawer-field-label\">Thao t\u00E1c nhanh</label>\n <div nz-flex nzWrap=\"wrap\" [nzGap]=\"8\">\n @if (target.CanShare || target.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openShareDrawer(target)\">\n <nz-icon nzType=\"share-alt\"></nz-icon> Chia s\u1EBB & Ph\u00E2n quy\u1EC1n\n </button>\n }\n @if (target.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openMoveDrawer(target)\">\n <nz-icon nzType=\"drag\"></nz-icon> Di chuy\u1EC3n\n </button>\n }\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openCopyDrawer(target)\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi\n </button>\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openShortcutDrawer(target)\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt\n </button>\n @if (\n target.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n target.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openRelocateDrawer(target)\">\n <nz-icon nzType=\"hdd\"></nz-icon> \u0110\u1ED5i \u1ED5 \u0111\u0129a v\u1EADt l\u00FD\n </button>\n }\n @if (target.NodeType === DriveNodeType.File) {\n @if (target.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openVersionDrawer(target)\">\n <nz-icon nzType=\"history\"></nz-icon> L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n\n </button>\n }\n @if (target.CanDownload && target.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <button nz-button nzSize=\"small\" (click)=\"onDownloadItem(target)\">\n <nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng\n </button>\n }\n }\n <button nz-button nzSize=\"small\" (click)=\"drive.toggleStar(target.Id)\">\n <nz-icon nzType=\"star\" [nzTheme]=\"target.IsStarred ? 'fill' : 'outline'\"></nz-icon>\n {{ target.IsStarred ? \"B\u1ECF sao\" : \"G\u1EAFn sao\" }}\n </button>\n </div>\n </div>\n <!-- NH\u1EACT K\u00DD HO\u1EA0T \u0110\u1ED8NG (ACTIVITY LOG) -->\n <div>\n <label class=\"drawer-field-label\">\n <nz-icon nzType=\"OrderedList\"></nz-icon> Nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng g\u1EA7n \u0111\u00E2y ({{ nodeActivities().length }})\n </label>\n <div class=\"drawer-meta-card\" style=\"max-height: 240px; overflow-y: auto\">\n @if (nodeActivities().length === 0) {\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">Ch\u01B0a c\u00F3 nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng.</div>\n } @else {\n @for (act of nodeActivities(); track act.Id) {\n <div style=\"padding: 6px 0; border-bottom: 1px dashed var(--app-border, #e2e8f0); font-size: 12px\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <nz-tag nzColor=\"blue\">{{ formatActivityAction(act.ActionType) }}</nz-tag>\n <span style=\"color: var(--app-text-muted, #64748b)\">{{\n act.CreatedDate | date: \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n </div>\n <div style=\"margin-top: 4px\">\n Th\u1EF1c hi\u1EC7n b\u1EDFi: <strong>{{ act.ActorUserName || act.ActorUserId || \"H\u1EC7 th\u1ED1ng\" }}</strong>\n </div>\n @if (act.DetailJson) {\n <div style=\"margin-top: 2px; color: var(--app-text-muted, #64748b); word-break: break-all\">\n <code>{{ formatActivityDetail(act) }}</code>\n </div>\n }\n </div>\n }\n }\n </div>\n </div>\n }\n @if (folderDrawerMode === \"create\") {\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 0\">\n <nz-icon nzType=\"apartment\" style=\"color: #d97706; margin-right: 4px\"></nz-icon>\n T\u1EA1o nhanh t\u1EEB M\u1EABu c\u00E2y th\u01B0 m\u1EE5c (T\u00F9y ch\u1ECDn)\n </label>\n <a style=\"font-size: 12px\" (click)=\"folderDrawerVisible = false; openTemplateDrawer('create')\">\n + \u0110\u1ECBnh ngh\u0129a m\u1EABu m\u1EDBi\n </a>\n </div>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Kh\u00F4ng d\u00F9ng m\u1EABu (Ch\u1EC9 t\u1EA1o 1 th\u01B0 m\u1EE5c \u0111\u01A1n) --\"\n [(ngModel)]=\"folderDrawerSelectedTemplateId\"\n (ngModelChange)=\"onFolderDrawerTemplateSelect($event)\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Ch\u1EC9 t\u1EA1o 1 th\u01B0 m\u1EE5c \u0111\u01A1n\"></nz-option>\n @for (tpl of drive.folderTemplates(); track tpl.Id) {\n <nz-option\n [nzValue]=\"tpl.Id\"\n [nzLabel]=\"'\uD83D\uDDC2 ' + tpl.Name + ' [' + tpl.Code + '] (' + tpl.TotalFolderCount + ' th\u01B0 m\u1EE5c)'\"\n ></nz-option>\n }\n </nz-select>\n\n @if (folderDrawerSelectedTemplateId) {\n <label nz-checkbox [(ngModel)]=\"folderDrawerUseWrapperFolder\" style=\"font-size: 12px; margin-top: 4px\">\n \u0110\u1EB7t to\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu b\u00EAn trong th\u01B0 m\u1EE5c g\u1ED1c\n <strong>\"{{ folderDrawerInputName || \"...\" }}\"</strong>\n </label>\n <div class=\"quota-sub\" style=\"margin-top: 2px\">\n N\u1EBFu b\u1ECF t\u00EDch, c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c con c\u1EE7a m\u1EABu s\u1EBD \u0111\u01B0\u1EE3c t\u1EA1o tr\u1EF1c ti\u1EBFp ngay trong th\u01B0 m\u1EE5c \u0111ang m\u1EDF.\n </div>\n }\n </div>\n }\n </div>\n </ng-container>\n <ng-template #folderDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"folderDrawerVisible = false\">\u0110\u00F3ng</button>\n @if (folderDrawerMode === \"create\" || canRenameTargetNode()) {\n <button nz-button nzType=\"primary\" (click)=\"submitFolderDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon>\n {{ folderDrawerMode === \"create\" ? \"T\u1EA1o th\u01B0 m\u1EE5c\" : \"L\u01B0u t\u00EAn m\u1EDBi\" }}\n </button>\n }\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 4: XEM TR\u1EF0C TUY\u1EBEN T\u00C0I LI\u1EC6U (PREVIEW DRAWER) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"previewDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"'75vw'\"\n [nzClosable]=\"false\"\n [nzTitle]=\"previewDrawerTitleTpl\"\n [nzFooter]=\"previewDrawerFooterTpl\"\n (nzOnClose)=\"previewDrawerVisible = false\"\n >\n <ng-template #previewDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"eye\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>{{ previewFileName }}</strong>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n @if (activeActionNode(); as node) {\n @if (node.CanDownload && node.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <button nz-button nzSize=\"small\" nzType=\"primary\" (click)=\"onDownloadItem(node)\">\n <nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng\n </button>\n }\n @if (node.CanShare || node.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button nz-button nzSize=\"small\" (click)=\"previewDrawerVisible = false; openShareDrawer(node)\">\n <nz-icon nzType=\"share-alt\"></nz-icon> Chia s\u1EBB\n </button>\n }\n @if (node.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"previewDrawerVisible = false; openVersionDrawer(node)\">\n <nz-icon nzType=\"history\"></nz-icon> Phi\u00EAn b\u1EA3n\n </button>\n }\n }\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"previewDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <extend-view-file-content\n [previewType]=\"previewType\"\n [previewContent]=\"previewContent\"\n ></extend-view-file-content>\n </ng-container>\n <ng-template #previewDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button type=\"button\" nz-button (click)=\"previewDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 5: T\u1EA0O L\u1ED0I T\u1EAET (CREATE SHORTCUT DRAWER CHO FILE & FOLDER) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"shortcutDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"shortcutDrawerTitleTpl\"\n [nzFooter]=\"shortcutDrawerFooterTpl\"\n (nzOnClose)=\"shortcutDrawerVisible = false\"\n >\n <ng-template #shortcutDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"link\" style=\"font-size: 18px; color: #7c3aed\"></nz-icon>\n <strong>T\u1EA1o l\u1ED1i t\u1EAFt (Shortcut)</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"shortcutDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (shortcutSourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.ShortcutTargetName || src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n M\u1EE5c g\u1ED1c: {{ isFolderLike(src) ? \"Th\u01B0 m\u1EE5c\" : \"T\u1EADp tin\" }} \u2022 Ch\u1EE7 s\u1EDF h\u1EEFu:\n {{ src.OwnerName || src.OwnerId }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">T\u00EAn l\u1ED1i t\u1EAFt</label>\n <input\n nz-input\n [(ngModel)]=\"shortcutInputName\"\n [appAutoFocus]=\"shortcutDrawerVisible\"\n placeholder=\"Nh\u1EADp t\u00EAn hi\u1EC3n th\u1ECB c\u1EE7a l\u1ED1i t\u1EAFt...\"\n (keyup.enter)=\"submitShortcutDrawer()\"\n />\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian l\u01B0u l\u1ED1i t\u1EAFt</label>\n <nz-select\n [(ngModel)]=\"shortcutSpaceKey\"\n (ngModelChange)=\"onShortcutSpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Th\u01B0 m\u1EE5c \u0111\u00EDch ch\u1EE9a l\u1ED1i t\u1EAFt</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"shortcutDestFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of availableFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n L\u1ED1i t\u1EAFt tr\u1ECF tr\u1EF1c ti\u1EBFp t\u1EDBi m\u1EE5c g\u1ED1c m\u00E0 kh\u00F4ng t\u1ED1n th\u00EAm dung l\u01B0\u1EE3ng l\u01B0u tr\u1EEF (0 B).\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #shortcutDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"shortcutDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitShortcutDrawer()\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 6: DI CHUY\u1EC2N FILE / FOLDER SANG TH\u01AF M\u1EE4C HO\u1EB6C KH\u00D4NG GIAN KH\u00C1C -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"moveDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"moveDrawerTitleTpl\"\n [nzFooter]=\"moveDrawerFooterTpl\"\n (nzOnClose)=\"moveDrawerVisible = false\"\n >\n <ng-template #moveDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"drag\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Di chuy\u1EC3n sang th\u01B0 m\u1EE5c / kh\u00F4ng gian kh\u00E1c</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"moveDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (moveSourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n Lo\u1EA1i:\n {{\n src.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c\"\n : src.NodeType === DriveNodeType.Shortcut\n ? \"L\u1ED1i t\u1EAFt\"\n : \"T\u1EADp tin\"\n }}\n \u2022 Kh\u00F4ng gian hi\u1EC7n t\u1EA1i: {{ src.IsOrgNode ? \"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\" : \"Drive c\u00E1 nh\u00E2n\" }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian \u0111\u00EDch</label>\n <nz-select\n [(ngModel)]=\"moveTargetSpaceKey\"\n (ngModelChange)=\"onMoveSpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Ch\u1ECDn th\u01B0 m\u1EE5c \u0111\u00EDch</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"moveTargetFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of moveTargetFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n M\u1EB9o: B\u1EA1n c\u00F3 th\u1EC3 k\u00E9o th\u1EA3 tr\u1EF1c ti\u1EBFp d\u00F2ng t\u00E0i li\u1EC7u/th\u01B0 m\u1EE5c v\u00E0o m\u1EE5c <strong>\"Drive c\u00E1 nh\u00E2n\"</strong> ho\u1EB7c\n <strong>\"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\"</strong> \u1EDF thanh menu b\u00EAn tr\u00E1i \u0111\u1EC3 chuy\u1EC3n nhanh qua l\u1EA1i gi\u1EEFa 2 kh\u00F4ng gian.\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #moveDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"moveDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitMoveDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon> Di chuy\u1EC3n t\u1EDBi \u0111\u00E2y\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 9: SAO CH\u00C9P T\u1EDAI (COPY TO DRAWER CHO FILE / FOLDER / SHORTCUT) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"copyDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"copyDrawerTitleTpl\"\n [nzFooter]=\"copyDrawerFooterTpl\"\n (nzOnClose)=\"copyDrawerVisible = false\"\n >\n <ng-template #copyDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"copy\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Sao ch\u00E9p t\u1EDBi (Copy To)</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"copyDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (copySourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n M\u1EE5c ngu\u1ED3n:\n {{\n src.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c (Sao ch\u00E9p \u0111\u1EC7 quy to\u00E0n b\u1ED9 nh\u00E1nh con)\"\n : src.NodeType === DriveNodeType.Shortcut\n ? \"L\u1ED1i t\u1EAFt\"\n : \"T\u1EADp tin\"\n }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">T\u00EAn b\u1EA3n sao (\u0110\u1EC3 tr\u1ED1ng \u0111\u1EC3 h\u1EC7 th\u1ED1ng t\u1EF1 \u0111\u1EB7t t\u00EAn)</label>\n <input\n nz-input\n [(ngModel)]=\"copyCustomName\"\n [appAutoFocus]=\"copyDrawerVisible\"\n placeholder=\"Nh\u1EADp t\u00EAn m\u1EDBi cho b\u1EA3n sao...\"\n (keyup.enter)=\"submitCopyDrawer()\"\n />\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian \u0111\u00EDch</label>\n <nz-select\n [(ngModel)]=\"copyTargetSpaceKey\"\n (ngModelChange)=\"onCopySpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Ch\u1ECDn th\u01B0 m\u1EE5c \u0111\u00EDch ch\u1EE9a b\u1EA3n sao</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"copyTargetFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of copyTargetFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n B\u1EA3n sao ho\u00E0n to\u00E0n \u0111\u1ED9c l\u1EADp v\u1EDBi m\u1EE5c g\u1ED1c v\u00E0 \u0111\u01B0\u1EE3c t\u00EDnh v\u00E0o h\u1EA1n ng\u1EA1ch c\u1EE7a ng\u01B0\u1EDDi t\u1EA1o b\u1EA3n sao.\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #copyDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"copyDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitCopyDrawer()\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi \u0111\u00E2y\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 7: \u0110\u1ED4I \u0110\u01AF\u1EDCNG D\u1EAAN V\u1EACT L\u00DD / \u00C1NH X\u1EA0 \u1ED4 C\u1EE8NG M\u1EDAI KHI K\u1EBET TH\u00DAC D\u1EF0 \u00C1N -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"relocateDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"500\"\n [nzClosable]=\"false\"\n [nzTitle]=\"relocateDrawerTitleTpl\"\n [nzFooter]=\"relocateDrawerFooterTpl\"\n (nzOnClose)=\"relocateDrawerVisible = false\"\n >\n <ng-template #relocateDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"hdd\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>\n {{ relocateTargetFolder() ? \"\u00C1nh x\u1EA1 / Chuy\u1EC3n \u1ED5 \u0111\u0129a th\u01B0 m\u1EE5c\" : \"C\u1EA5u h\u00ECnh RootPath l\u01B0u tr\u1EEF chung\" }}\n </strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"relocateDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n @if (relocateTargetFolder(); as folder) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon nzType=\"folder-fill\" style=\"font-size: 22px; color: #f59e0b\"></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ folder.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n \u0110\u01B0\u1EDDng d\u1EABn hi\u1EC7n t\u1EA1i:\n <code>{{ folder.PhysicalRelativePath || drive.currentPhysicalPath() || \"M\u1EB7c \u0111\u1ECBnh\" }}</code>\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD m\u1EDBi c\u1EE7a th\u01B0 m\u1EE5c (H\u1ED7 tr\u1EE3 \u1ED5 c\u1EE9ng kh\u00E1c / NAS)</label>\n <input\n nz-input\n [(ngModel)]=\"relocateNewPath\"\n [appAutoFocus]=\"relocateDrawerVisible\"\n placeholder=\"VD: E:Archive_2026DuAn_A ho\u1EB7c \\\\NAS01StorageDuAn_A\"\n (keyup.enter)=\"submitRelocateDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n Khi d\u1EF1 \u00E1n k\u1EBFt th\u00FAc v\u00E0 h\u1EA1 t\u1EA7ng chuy\u1EC3n th\u01B0 m\u1EE5c sang \u1ED5 c\u1EE9ng kh\u00E1c, \u0111\u1EB7t \u0111\u01B0\u1EDDng d\u1EABn m\u1EDBi t\u1EA1i \u0111\u00E2y \u0111\u1EC3 to\u00E0n b\u1ED9 th\u01B0\n m\u1EE5c con v\u00E0 file b\u00EAn trong t\u1EF1 \u0111\u1ED9ng map sang \u1ED5 c\u1EE9ng m\u1EDBi.\n </div>\n </div>\n <div class=\"drawer-meta-card\">\n <label nz-checkbox [(ngModel)]=\"relocateMoveFilesOnDisk\">\n <strong>T\u1EF1 \u0111\u1ED9ng di chuy\u1EC3n d\u1EEF li\u1EC7u v\u1EADt l\u00FD t\u1EEB \u0111\u01B0\u1EDDng d\u1EABn c\u0169 sang \u1ED5 \u0111\u0129a m\u1EDBi</strong>\n </label>\n <div class=\"quota-sub\" style=\"margin-left: 24px\">\n N\u1EBFu b\u1ED9 ph\u1EADn H\u1EA1 t\u1EA7ng \u0111\u00E3 copy/move s\u1EB5n th\u01B0 m\u1EE5c sang \u1ED5 c\u1EE9ng m\u1EDBi r\u1ED3i, h\u00E3y <strong>b\u1ECF ch\u1ECDn</strong> m\u1EE5c n\u00E0y \u0111\u1EC3\n h\u1EC7 th\u1ED1ng ch\u1EC9 c\u1EADp nh\u1EADt l\u1EA1i \u00E1nh x\u1EA1 \u0111\u01B0\u1EDDng d\u1EABn trong Database.\n </div>\n <label nz-checkbox [(ngModel)]=\"relocateSyncNewFiles\" style=\"margin-top: 6px\">\n <strong>\u0110\u1ED3ng b\u1ED9 b\u1ED5 sung c\u00E1c file/folder c\u00F3 s\u1EB5n t\u1EA1i \u0111\u01B0\u1EDDng d\u1EABn m\u1EDBi v\u00E0o Drive</strong>\n </label>\n </div>\n } @else {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">RootPath hi\u1EC7n t\u1EA1i:</span>\n <code class=\"break-word\">{{ drive.storageRootPath() || drive.currentPhysicalPath() }}</code>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EBF \u0111\u1ED9 th\u01B0 m\u1EE5c g\u1ED1c:</span>\n <nz-tag [nzColor]=\"drive.useSharedPhysicalRoot() ? 'green' : 'blue'\">\n {{\n drive.useSharedPhysicalRoot() ? \"D\u00F9ng chung 1 RootPath cho t\u1EA5t c\u1EA3 User\" : \"T\u00E1ch theo t\u1EEBng Username\"\n }}\n </nz-tag>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn RootPath chung m\u1EDBi tr\u00EAn Server</label>\n <input\n nz-input\n [(ngModel)]=\"relocateNewPath\"\n [appAutoFocus]=\"relocateDrawerVisible\"\n placeholder=\"VD: D:ProjectStorageDriveRoot ho\u1EB7c E:ArchiveDrive\"\n (keyup.enter)=\"submitRelocateDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n T\u1EA5t c\u1EA3 c\u00E1c th\u01B0 m\u1EE5c ch\u01B0a ghim \u1ED5 \u0111\u0129a ri\u00EAng s\u1EBD t\u1EF1 \u0111\u1ED9ng \u0111\u1ECDc/ghi theo RootPath m\u1EDBi n\u00E0y.\n </div>\n </div>\n }\n </div>\n </ng-container>\n <ng-template #relocateDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"relocateDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitRelocateDrawer()\">\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u \u00E1nh x\u1EA1 v\u1EADt l\u00FD\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 8: QU\u1EA2N L\u00DD H\u1EA0N NG\u1EA0CH DUNG L\u01AF\u1EE2NG (DEFAULT QUOTA & PER-USER QUOTA) -->\n <!-- CH\u1EC8 D\u00C0NH RI\u00CANG CHO QU\u1EA2N TR\u1ECA VI\u00CAN (ADMIN) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"quotaAdminDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"980\"\n [nzClosable]=\"false\"\n [nzTitle]=\"quotaAdminDrawerTitleTpl\"\n [nzFooter]=\"quotaAdminDrawerFooterTpl\"\n (nzOnClose)=\"quotaAdminDrawerVisible = false\"\n >\n <ng-template #quotaAdminDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"pie-chart\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Qu\u1EA3n l\u00FD H\u1EA1n ng\u1EA1ch Dung l\u01B0\u1EE3ng (Quota Management)</strong>\n <nz-tag nzColor=\"gold\">Ch\u1EC9 Admin</nz-tag>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"quotaAdminDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n <!-- PH\u1EA6N 1: C\u1EA4U H\u00CCNH QUOTA M\u1EB6C \u0110\u1ECANH TO\u00C0N H\u1EC6 TH\u1ED0NG -->\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <div>\n <div style=\"font-size: 14px; font-weight: 600\">\n <nz-icon nzType=\"cloud-server\" style=\"color: var(--primary-color); margin-right: 6px\"></nz-icon>\n 1. C\u1EA5u h\u00ECnh Quota m\u1EB7c \u0111\u1ECBnh (Default Quota)\n </div>\n <div class=\"quota-sub\">\n \u00C1p d\u1EE5ng t\u1EF1 \u0111\u1ED9ng cho ng\u01B0\u1EDDi d\u00F9ng m\u1EDBi ho\u1EB7c ng\u01B0\u1EDDi d\u00F9ng ch\u01B0a \u0111\u01B0\u1EE3c g\u00E1n h\u1EA1n ng\u1EA1ch ri\u00EAng.\n </div>\n </div>\n @if (quotaOverview(); as ov) {\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-tag nzColor=\"blue\">\n M\u1EB7c \u0111\u1ECBnh hi\u1EC7n t\u1EA1i: <strong>{{ ov.DefaultUserQuotaBytes | formatBytes }}</strong>\n </nz-tag>\n <nz-tag nzColor=\"purple\">\n T\u1ED5ng \u0111\u00E3 d\u00F9ng to\u00E0n h\u1EC7 th\u1ED1ng: <strong>{{ ov.TotalSystemUsedBytes | formatBytes }}</strong>\n </nz-tag>\n </div>\n }\n </div>\n <nz-divider style=\"margin: 8px 0\"></nz-divider>\n <div nz-flex nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <span style=\"font-size: 13px; font-weight: 500\">M\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh:</span>\n <input\n nz-input\n type=\"number\"\n min=\"1\"\n [(ngModel)]=\"defaultQuotaInputValue\"\n style=\"width: 120px\"\n placeholder=\"Nh\u1EADp dung l\u01B0\u1EE3ng\"\n />\n <nz-select [(ngModel)]=\"defaultQuotaInputUnit\" style=\"width: 90px\">\n <nz-option nzValue=\"MB\" nzLabel=\"MB\"></nz-option>\n <nz-option nzValue=\"GB\" nzLabel=\"GB\"></nz-option>\n <nz-option nzValue=\"TB\" nzLabel=\"TB\"></nz-option>\n </nz-select>\n <!-- C\u00E1c n\u00FAt ch\u1ECDn nhanh (Quick Presets) -->\n <div nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(1, 'GB')\">1 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(5, 'GB')\">5 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(10, 'GB')\">10 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(20, 'GB')\">20 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(50, 'GB')\">50 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(100, 'GB')\">100 GB</button>\n </div>\n <button nz-button nzType=\"primary\" (click)=\"onSaveDefaultQuota()\">\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u Quota m\u1EB7c \u0111\u1ECBnh\n </button>\n </div>\n <div style=\"margin-top: 4px\">\n <label nz-checkbox [(ngModel)]=\"applyDefaultToExistingUsers\">\n \u0110\u1ED3ng th\u1EDDi c\u1EADp nh\u1EADt m\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh m\u1EDBi n\u00E0y cho t\u1EA5t c\u1EA3 c\u00E1c ng\u01B0\u1EDDi d\u00F9ng hi\u1EC7n c\u00F3\n </label>\n </div>\n </div>\n <!-- PH\u1EA6N 2: \u0110\u1EB6T QUOTA RI\u00CANG CHO T\u1EEANG NG\u01AF\u1EDCI D\u00D9NG -->\n <div>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\" style=\"margin-bottom: 10px\">\n <div>\n <div style=\"font-size: 14px; font-weight: 600\">\n <nz-icon nzType=\"team\" style=\"color: var(--primary-color); margin-right: 6px\"></nz-icon>\n 2. Thi\u1EBFt l\u1EADp Quota cho t\u1EEBng ng\u01B0\u1EDDi d\u00F9ng ({{ quotaUsers().length }})\n </div>\n <div class=\"quota-sub\">\n T\u00F9y ch\u1EC9nh h\u1EA1n ng\u1EA1ch dung l\u01B0\u1EE3ng ri\u00EAng cho t\u1EEBng c\u00E1 nh\u00E2n ho\u1EB7c \u0111\u1EB7t l\u1EA1i v\u1EC1 m\u1EE9c m\u1EB7c \u0111\u1ECBnh.\n </div>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-input-group [nzSuffix]=\"quotaUserSearchSuffix\" style=\"width: 260px\">\n <input\n nz-input\n type=\"text\"\n placeholder=\"T\u00ECm theo t\u00E0i kho\u1EA3n, h\u1ECD t\u00EAn, email...\"\n [(ngModel)]=\"quotaUserSearchKeyword\"\n (keyup.enter)=\"reloadQuotaOverview()\"\n />\n </nz-input-group>\n <ng-template #quotaUserSearchSuffix>\n <nz-icon nzType=\"search\" class=\"cursor-pointer\" (click)=\"reloadQuotaOverview()\"></nz-icon>\n </ng-template>\n <button nz-button nzType=\"default\" (click)=\"reloadQuotaOverview()\" nz-tooltip nzTooltipTitle=\"T\u1EA3i l\u1EA1i\">\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n </div>\n </div>\n <nz-table\n #userQuotaTable\n [nzData]=\"quotaUsers()\"\n [nzLoading]=\"quotaLoading()\"\n nzSize=\"small\"\n [nzBordered]=\"true\"\n [nzPageSize]=\"10\"\n [nzShowPagination]=\"true\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th>Ng\u01B0\u1EDDi d\u00F9ng</th>\n <th nzWidth=\"220px\">\u0110\u00E3 d\u00F9ng / H\u1EA1n ng\u1EA1ch</th>\n <th nzWidth=\"105px\" class=\"text-center\">Lo\u1EA1i Quota</th>\n <th nzWidth=\"210px\">\u0110\u1EB7t h\u1EA1n ng\u1EA1ch m\u1EDBi</th>\n <th nzWidth=\"145px\" class=\"text-center\">Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (u of userQuotaTable.data; track u.UserId; let idx = $index) {\n <tr>\n <td class=\"text-center\">{{ idx + 1 }}</td>\n <td>\n <div style=\"font-weight: 600\">{{ u.FullName || u.UserName }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n <code>{{ u.UserName }}</code>\n @if (u.OrgName) {\n <span> \u2022 {{ u.OrgName }}</span>\n }\n @if (u.Email) {\n <span> \u2022 {{ u.Email }}</span>\n }\n </div>\n </td>\n <td>\n <div nz-flex nzJustify=\"space-between\" style=\"font-size: 12px; margin-bottom: 2px\">\n <span\n >{{ u.UsedBytes | formatBytes }} / <strong>{{ u.QuotaLimitBytes | formatBytes }}</strong></span\n >\n <span>{{ getUserQuotaPercent(u) }}%</span>\n </div>\n <nz-progress\n [nzPercent]=\"getUserQuotaPercent(u)\"\n nzSize=\"small\"\n [nzShowInfo]=\"false\"\n [nzStatus]=\"getUserQuotaPercent(u) >= 95 ? 'exception' : 'normal'\"\n ></nz-progress>\n </td>\n <td class=\"text-center\">\n @if (u.IsCustomQuota) {\n <nz-tag nzColor=\"orange\">T\u00F9y ch\u1EC9nh</nz-tag>\n } @else {\n <nz-tag nzColor=\"default\">M\u1EB7c \u0111\u1ECBnh</nz-tag>\n }\n </td>\n <td>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\n <input nz-input type=\"number\" min=\"1\" [(ngModel)]=\"u.editQuotaValue\" style=\"width: 90px\" />\n <nz-select [(ngModel)]=\"u.editQuotaUnit\" style=\"width: 80px\">\n <nz-option nzValue=\"MB\" nzLabel=\"MB\"></nz-option>\n <nz-option nzValue=\"GB\" nzLabel=\"GB\"></nz-option>\n <nz-option nzValue=\"TB\" nzLabel=\"TB\"></nz-option>\n </nz-select>\n </div>\n </td>\n <td class=\"text-center\">\n <div nz-flex nzJustify=\"center\" [nzGap]=\"6\">\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"onSaveUserQuota(u)\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"L\u01B0u h\u1EA1n ng\u1EA1ch ri\u00EAng cho ng\u01B0\u1EDDi d\u00F9ng n\u00E0y\"\n -->\n <nz-icon nzType=\"check\"></nz-icon> L\u01B0u\n </button>\n <button\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n [disabled]=\"!u.IsCustomQuota\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u1EB7t l\u1EA1i v\u1EC1 m\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh c\u1EE7a h\u1EC7 th\u1ED1ng\"\n (click)=\"onResetUserQuota(u)\"\n >\n <nz-icon nzType=\"undo\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n </div>\n </div>\n </ng-container>\n <ng-template #quotaAdminDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"quotaAdminDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 10: TH\u00CAM / C\u1EA4U H\u00CCNH M\u1EE4C CUSTOM B\u00CAN D\u01AF\u1EDAI \"T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA\" -->\n <!-- (V\u00ED d\u1EE5: \"T\u00E0i li\u1EC7u d\u1EF1 \u00E1n\" - Admin c\u00F3 th\u1EC3 b\u1EADt hi\u1EC3n th\u1ECB cho t\u1EA5t c\u1EA3 User) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"customSpaceDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"480\"\n [nzClosable]=\"false\"\n [nzTitle]=\"customSpaceDrawerTitleTpl\"\n [nzFooter]=\"customSpaceDrawerFooterTpl\"\n (nzOnClose)=\"customSpaceDrawerVisible = false\"\n >\n <ng-template #customSpaceDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon\n [nzType]=\"customSpaceIcon || 'project'\"\n style=\"font-size: 18px; color: var(--primary-color)\"\n ></nz-icon>\n <strong>{{\n customSpaceDrawerMode === \"create\" ? \"Th\u00EAm m\u1EE5c t\u00F9y ch\u1EC9nh d\u01B0\u1EDBi T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\" : \"C\u1EA5u h\u00ECnh m\u1EE5c t\u00F9y ch\u1EC9nh\"\n }}</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"customSpaceDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div>\n <label class=\"drawer-field-label\">T\u00EAn m\u1EE5c hi\u1EC3n th\u1ECB tr\u00EAn thanh menu tr\u00E1i</label>\n <input\n nz-input\n [(ngModel)]=\"customSpaceName\"\n [appAutoFocus]=\"customSpaceDrawerVisible\"\n placeholder=\"V\u00ED d\u1EE5: T\u00E0i li\u1EC7u d\u1EF1 \u00E1n, H\u1ED3 s\u01A1 th\u1EA7u, Quy tr\u00ECnh ISO...\"\n (keyup.enter)=\"submitCustomSpaceDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 4px\">\n M\u1EE5c n\u00E0y s\u1EBD xu\u1EA5t hi\u1EC7n ngay b\u00EAn d\u01B0\u1EDBi m\u1EE5c <strong>\"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\"</strong> tr\u00EAn thanh \u0111i\u1EC1u h\u01B0\u1EDBng b\u00EAn tr\u00E1i.\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">Bi\u1EC3u t\u01B0\u1EE3ng (Icon)</label>\n <nz-select [(ngModel)]=\"customSpaceIcon\" style=\"width: 100%\">\n <nz-option nzValue=\"project\" nzLabel=\"\uD83D\uDCCA D\u1EF1 \u00E1n (project)\"></nz-option>\n <nz-option nzValue=\"folder-open\" nzLabel=\"\uD83D\uDCC2 Th\u01B0 m\u1EE5c m\u1EDF (folder-open)\"></nz-option>\n <nz-option nzValue=\"book\" nzLabel=\"\uD83D\uDCD8 T\u00E0i li\u1EC7u / C\u1EA9m nang (book)\"></nz-option>\n <nz-option nzValue=\"safety-certificate\" nzLabel=\"\uD83D\uDEE1 Quy chu\u1EA9n / ISO (safety-certificate)\"></nz-option>\n <nz-option nzValue=\"solution\" nzLabel=\"\uD83D\uDCCB H\u1ED3 s\u01A1 nghi\u1EC7p v\u1EE5 (solution)\"></nz-option>\n <nz-option nzValue=\"database\" nzLabel=\"\uD83D\uDDC4 Kho d\u1EEF li\u1EC7u (database)\"></nz-option>\n </nz-select>\n </div>\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <div>\n <div style=\"font-weight: 600; font-size: 13px\">Hi\u1EC3n th\u1ECB cho t\u1EA5t c\u1EA3 ng\u01B0\u1EDDi d\u00F9ng (All Users)</div>\n <div class=\"quota-sub\">\n @if (drive.isCurrentUserAdmin()) {\n Khi b\u1EADt: T\u1EA5t c\u1EA3 t\u00E0i kho\u1EA3n trong h\u1EC7 th\u1ED1ng \u0111\u1EC1u nh\u00ECn th\u1EA5y v\u00E0 truy c\u1EADp \u0111\u01B0\u1EE3c m\u1EE5c n\u00E0y b\u00EAn d\u01B0\u1EDBi \"T\u00E0i li\u1EC7u \u0110\u01A1n\n v\u1ECB\".\n } @else {\n Ch\u1EC9 Qu\u1EA3n tr\u1ECB vi\u00EAn (Admin) m\u1EDBi c\u00F3 quy\u1EC1n b\u1EADt hi\u1EC3n th\u1ECB chung cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng.\n }\n </div>\n </div>\n <nz-switch\n [(ngModel)]=\"customSpaceVisibleToAll\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n nzCheckedChildren=\"All Users\"\n nzUnCheckedChildren=\"C\u00E1 nh\u00E2n\"\n ></nz-switch>\n </div>\n @if (customSpaceVisibleToAll) {\n <nz-divider style=\"margin: 8px 0\"></nz-divider>\n <div>\n <label class=\"drawer-field-label\">M\u1EE9c quy\u1EC1n m\u1EB7c \u0111\u1ECBnh cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng</label>\n <nz-select\n [(ngModel)]=\"customSpaceDefaultAccessLevel\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.None\" nzLabel=\"None\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"Ch\u1EC9 xem (Viewer)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"Xem & T\u1EA3i xu\u1ED1ng\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"Xem & T\u1EA3i l\u00EAn (Kh\u00F4ng \u0111\u01B0\u1EE3c x\u00F3a)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"Ch\u1EC9nh s\u1EEDa (Editor)\"></nz-option>\n </nz-select>\n </div>\n }\n </div>\n </div>\n </ng-container>\n <ng-template #customSpaceDrawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (customSpaceDrawerMode === \"edit\" && editingCustomSpace) {\n <button nz-button nzDanger nzType=\"default\" (click)=\"onDeleteCustomSpace(editingCustomSpace)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a m\u1EE5c n\u00E0y\n </button>\n }\n </div>\n <div nz-flex [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"customSpaceDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitCustomSpaceDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon>\n {{ customSpaceDrawerMode === \"create\" ? \"T\u1EA1o m\u1EE5c m\u1EDBi\" : \"L\u01B0u thay \u0111\u1ED5i\" }}\n </button>\n </div>\n </div>\n </ng-template>\n </nz-drawer>\n\n <nz-drawer\n [nzVisible]=\"matrixDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"'92vw'\"\n nzTitle=\"Ma tr\u1EADn Ph\u00E2n quy\u1EC1n T\u00E0i li\u1EC7u & Th\u01B0 m\u1EE5c\"\n (nzOnClose)=\"matrixDrawerVisible = false\"\n >\n <!-- (ACL / RBAC Matrix) -->\n <ng-container *nzDrawerContent>\n <lib-drive-permission-matrix\n [rootFolderId]=\"matrixRootNodeId\"\n [viewMode]=\"\n drive.currentViewMode() === 'ORG_DRIVE'\n ? 'ORG_DRIVE'\n : drive.currentViewMode() === 'CUSTOM_SPACE'\n ? 'CUSTOM_SPACE'\n : 'MY_DRIVE'\n \"\n [customSpaceId]=\"drive.currentCustomSpaceId()\"\n (saved)=\"drive.loadNodes()\"\n (closed)=\"matrixDrawerVisible = false\"\n >\n </lib-drive-permission-matrix>\n </ng-container>\n </nz-drawer>\n\n <!-- ========================================================================= -->\n <!-- DRAWER 11: \u0110\u1ECANH NGH\u0128A & C\u1EA4U H\u00CCNH C\u00C2Y TH\u01AF M\u1EE4C M\u1EAAU K\u00C8M PH\u00C2N QUY\u1EC0N T\u1EF0 \u0110\u1ED8NG -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"templateDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"760\"\n [nzClosable]=\"false\"\n [nzTitle]=\"templateDrawerTitleTpl\"\n [nzFooter]=\"templateDrawerFooterTpl\"\n (nzOnClose)=\"templateDrawerVisible = false\"\n >\n <ng-template #templateDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"apartment\" style=\"font-size: 18px; color: #d97706\"></nz-icon>\n <strong>\n {{ templateDrawerMode === \"create\" ? \"\u0110\u1ECBnh ngh\u0129a M\u1EABu C\u00E2y Th\u01B0 M\u1EE5c M\u1EDBi\" : \"C\u1EADp nh\u1EADt M\u1EABu C\u00E2y Th\u01B0 M\u1EE5c\" }}\n </strong>\n @if (totalConfiguredTemplatePermissions() > 0) {\n <nz-tag nzColor=\"cyan\">\uD83D\uDEE1 {{ totalConfiguredTemplatePermissions() }} quy\u1EC1n c\u00E0i s\u1EB5n</nz-tag>\n }\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"templateDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"14\">\n <div nz-flex [nzGap]=\"12\" nzWrap=\"wrap\">\n <div style=\"flex: 1.4; min-width: 220px\">\n <label class=\"drawer-field-label\">T\u00EAn m\u1EABu c\u00E2y th\u01B0 m\u1EE5c *</label>\n <input\n nz-input\n [(ngModel)]=\"templateInputName\"\n [appAutoFocus]=\"templateDrawerVisible\"\n placeholder=\"VD: H\u1ED3 s\u01A1 D\u1EF1 \u00E1n \u0110\u1EA5u th\u1EA7u, H\u1ED3 s\u01A1 H\u1EE3p \u0111\u1ED3ng...\"\n />\n </div>\n <div style=\"flex: 1; min-width: 170px\">\n <label class=\"drawer-field-label\">M\u00E3 m\u1EABu (D\u00F9ng g\u1ECDi API t\u1EEB Module kh\u00E1c)</label>\n <input nz-input [(ngModel)]=\"templateInputCode\" placeholder=\"VD: MAU_DU_AN, MAU_HOP_DONG...\" />\n </div>\n </div>\n\n <div>\n <label class=\"drawer-field-label\">M\u00F4 t\u1EA3 ng\u1EAFn</label>\n <input\n nz-input\n [(ngModel)]=\"templateInputDesc\"\n placeholder=\"M\u00F4 t\u1EA3 m\u1EE5c \u0111\u00EDch s\u1EED d\u1EE5ng ho\u1EB7c ph\u00E2n h\u1EC7 \u00E1p d\u1EE5ng...\"\n />\n </div>\n\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"12\">\n <div style=\"flex: 1\">\n <div style=\"font-weight: 600; font-size: 13px\">T\u1EA1o th\u01B0 m\u1EE5c g\u1ED1c b\u1ECDc ngo\u00E0i khi k\u00E9o th\u1EA3</div>\n <div class=\"quota-sub\">\n Khi b\u1EADt: K\u00E9o th\u1EA3 m\u1EABu v\u00E0o th\u01B0 m\u1EE5c \u0111\u00EDch s\u1EBD t\u1EA1o 1 th\u01B0 m\u1EE5c mang t\u00EAn m\u1EABu r\u1ED3i ch\u1EE9a c\u00E2y con b\u00EAn trong.\n </div>\n </div>\n <nz-switch\n style=\"flex-shrink: 0\"\n [(ngModel)]=\"templateCreateWrapperRoot\"\n nzCheckedChildren=\"C\u00F3 b\u1ECDc g\u1ED1c\"\n nzUnCheckedChildren=\"Bung tr\u1EF1c ti\u1EBFp\"\n ></nz-switch>\n </div>\n\n <nz-divider style=\"margin: 6px 0\"></nz-divider>\n\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"12\">\n <div style=\"flex: 1\">\n <div style=\"font-weight: 600; font-size: 13px\">Chia s\u1EBB m\u1EABu n\u00E0y cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng & ph\u00E2n h\u1EC7</div>\n <div class=\"quota-sub\">Cho ph\u00E9p m\u1ECDi ng\u01B0\u1EDDi d\u00F9ng v\u00E0 c\u00E1c Module nghi\u1EC7p v\u1EE5 kh\u00E1c s\u1EED d\u1EE5ng chung m\u1EABu n\u00E0y.</div>\n </div>\n <nz-switch\n style=\"flex-shrink: 0\"\n [(ngModel)]=\"templateVisibleToAll\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n nzCheckedChildren=\"To\u00E0n h\u1EC7 th\u1ED1ng\"\n nzUnCheckedChildren=\"C\u00E1 nh\u00E2n\"\n ></nz-switch>\n </div>\n </div>\n\n <!-- SO\u1EA0N TH\u1EA2O C\u1EA4U TR\u00DAC C\u00C2Y \u0110A C\u1EA4P & XEM TR\u01AF\u1EDAC TR\u1EF0C QUAN (NH\u1EA4N V\u00C0O D\u00D2NG \u0110\u1EC2 G\u00C1N QUY\u1EC0N RI\u00CANG) -->\n <div>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"6\" style=\"margin-bottom: 6px\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 0\">\n 1. C\u1EA5u tr\u00FAc C\u00E2y th\u01B0 m\u1EE5c (M\u1ED7i d\u00F2ng 1 th\u01B0 m\u1EE5c, th\u1EE5t l\u1EC1 2 kho\u1EA3ng tr\u1EAFng \u0111\u1EC3 t\u1EA1o c\u1EA5p con)\n </label>\n <div nz-flex [nzGap]=\"4\">\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('PROJECT')\">\n M\u1EABu D\u1EF1 \u00E1n\n </button>\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('CONTRACT')\">\n M\u1EABu H\u1EE3p \u0111\u1ED3ng\n </button>\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('TRAINING')\">\n M\u1EABu \u0110\u00E0o t\u1EA1o / KHCN\n </button>\n </div>\n </div>\n\n <div class=\"template-editor-grid\">\n <div>\n <textarea\n nz-input\n rows=\"11\"\n [(ngModel)]=\"templateIndentedText\"\n style=\"font-family: monospace; font-size: 12.5px; line-height: 1.55\"\n placeholder=\"- 01. H\u1ED3 s\u01A1 ph\u00E1p l\u00FD&#10; - 01.1. T\u1EDD tr\u00ECnh&#10; - 01.2. Quy\u1EBFt \u0111\u1ECBnh&#10;- 02. H\u1EE3p \u0111\u1ED3ng & Nghi\u1EC7m thu\"\n ></textarea>\n </div>\n\n <div class=\"template-tree-preview\">\n <div\n nz-flex\n nzJustify=\"space-between\"\n nzAlign=\"center\"\n style=\"font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--app-text-muted, #64748b)\"\n >\n <span>Xem tr\u01B0\u1EDBc ({{ previewTemplateFlatNodes().length }} th\u01B0 m\u1EE5c) \u2014 Nh\u1EA5n \u0111\u1EC3 g\u00E1n quy\u1EC1n:</span>\n </div>\n\n <!-- D\u00F2ng ch\u1ECDn Quy\u1EC1n g\u1ED1c to\u00E0n b\u1ED9 m\u1EABu -->\n <div\n class=\"preview-tree-row selectable-preview-row\"\n [class.active-perm-target]=\"selectedTemplatePermTarget() === '__ROOT__'\"\n (click)=\"selectTemplatePermissionTarget('__ROOT__')\"\n >\n <nz-icon nzType=\"global\" style=\"color: #0284c7; margin-right: 6px\"></nz-icon>\n <strong style=\"flex: 1; font-size: 12px\">To\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu (Quy\u1EC1n g\u1ED1c)</strong>\n @if (templateRootPermissions().length > 0) {\n <nz-tag nzColor=\"blue\" style=\"margin: 0; font-size: 10.5px; line-height: 16px; padding: 0 5px\">\n \uD83D\uDEE1 {{ templateRootPermissions().length }}\n </nz-tag>\n }\n </div>\n\n @for (node of previewTemplateFlatNodes(); track node.RelativePath) {\n <div\n class=\"preview-tree-row selectable-preview-row\"\n [class.active-perm-target]=\"selectedTemplatePermTarget() === node.RelativePath\"\n [style.padding-left.px]=\"8 + node.Level * 16\"\n (click)=\"selectTemplatePermissionTarget(node.RelativePath)\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"Nh\u1EA5n \u0111\u1EC3 c\u1EA5u h\u00ECnh ph\u00E2n quy\u1EC1n ri\u00EAng cho nh\u00E1nh th\u01B0 m\u1EE5c n\u00E0y\" -->\n <nz-icon nzType=\"folder-fill\" style=\"color: #f59e0b; margin-right: 6px\"></nz-icon>\n <span style=\"flex: 1; overflow: hidden; text-overflow: ellipsis\">{{ node.Name }}</span>\n @if (node.BreakInheritance) {\n <nz-tag\n nzColor=\"warning\"\n style=\"margin: 0 2px 0 0; font-size: 10px; line-height: 15px; padding: 0 4px\"\n nz-tooltip\n nzTooltipTitle=\"Ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha\"\n >\n \u0110\u1ED9c l\u1EADp\n </nz-tag>\n }\n @if (node.PermissionsCount > 0) {\n <nz-tag nzColor=\"cyan\" style=\"margin: 0; font-size: 10px; line-height: 15px; padding: 0 5px\">\n \uD83D\uDEE1 {{ node.PermissionsCount }}\n </nz-tag>\n }\n </div>\n }\n </div>\n </div>\n </div>\n\n <!-- ========================================================================= -->\n <!-- 2. C\u1EA4U H\u00CCNH PH\u00C2N QUY\u1EC0N M\u1EB6C \u0110\u1ECANH CHO M\u1EAAU C\u00C2Y TH\u01AF M\u1EE4C (ACL & RBAC) -->\n <!-- ========================================================================= -->\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <div>\n <div style=\"font-weight: 600; font-size: 13px\">\n <nz-icon nzType=\"safety-certificate\" style=\"color: #0284c7; margin-right: 4px\"></nz-icon>\n 2. Ph\u00E2n quy\u1EC1n c\u00E0i s\u1EB5n khi t\u1EA1o m\u1EDBi t\u1EEB M\u1EABu c\u00E2y th\u01B0 m\u1EE5c\n </div>\n <div class=\"quota-sub\">\n @if (selectedTemplatePermTarget() === \"__ROOT__\") {\n \u0110ang c\u1EA5u h\u00ECnh cho: <strong style=\"color: #0284c7\">\uD83C\uDF10 To\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu (Quy\u1EC1n g\u1ED1c)</strong> \u2014 T\u1EF1\n \u0111\u1ED9ng k\u1EBF th\u1EEBa xu\u1ED1ng m\u1ECDi th\u01B0 m\u1EE5c con.\n } @else {\n \u0110ang c\u1EA5u h\u00ECnh ri\u00EAng cho nh\u00E1nh:\n <strong style=\"color: #d97706\">\uD83D\uDCC2 {{ selectedTemplatePermTarget() }}</strong>\n <a style=\"margin-left: 8px; font-weight: 600\" (click)=\"selectTemplatePermissionTarget('__ROOT__')\">\n \u21A9 Quay v\u1EC1 Quy\u1EC1n g\u1ED1c to\u00E0n m\u1EABu\n </a>\n }\n </div>\n </div>\n\n @if (selectedTemplatePermTarget() !== \"__ROOT__\") {\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\n <span style=\"font-size: 12px\">Ng\u1EAFt k\u1EBF th\u1EEBa cha:</span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"activeTemplateTargetBreakInheritance()\"\n (ngModelChange)=\"onToggleTemplateNodeBreakInheritance($event)\"\n nzCheckedChildren=\"\u0110\u1ED9c l\u1EADp\"\n nzUnCheckedChildren=\"K\u1EBF th\u1EEBa\"\n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt \u0110\u1ED9c l\u1EADp: Th\u01B0 m\u1EE5c con n\u00E0y s\u1EBD ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha v\u00E0 ch\u1EC9 \u00E1p d\u1EE5ng danh s\u00E1ch quy\u1EC1n ri\u00EAng b\u00EAn d\u01B0\u1EDBi\"\n ></nz-switch>\n </div>\n }\n </div>\n\n <!-- Thanh ch\u1ECDn \u0110\u1ED1i t\u01B0\u1EE3ng (User / \u0110\u01A1n v\u1ECB / Vai tr\u00F2) & M\u1EE9c quy\u1EC1n -->\n <div nz-flex nzWrap=\"wrap\" [nzGap]=\"6\" nzAlign=\"center\" style=\"margin-top: 6px\">\n <nz-select\n [(ngModel)]=\"templatePermGranteeType\"\n (ngModelChange)=\"onTemplatePermGranteeTypeChange()\"\n nzSize=\"small\"\n style=\"width: 140px\"\n >\n <nz-option [nzValue]=\"DriveGranteeType.Org\" nzLabel=\"\uD83C\uDFE2 \u0110\u01A1n v\u1ECB (Org)\"></nz-option>\n <nz-option [nzValue]=\"DriveGranteeType.Role\" nzLabel=\"\uD83D\uDEE1 Vai tr\u00F2 (Role)\"></nz-option>\n <nz-option [nzValue]=\"DriveGranteeType.User\" nzLabel=\"\uD83D\uDC64 C\u00E1 nh\u00E2n (User)\"></nz-option>\n </nz-select>\n\n <nz-select\n nzShowSearch\n nzServerSearch\n nzSize=\"small\"\n nzPlaceHolder=\"T\u00ECm ch\u1ECDn User / \u0110\u01A1n v\u1ECB / Vai tr\u00F2...\"\n [(ngModel)]=\"templatePermSelectedGrantee\"\n (nzOnSearch)=\"onSearchTemplateGrantee($event)\"\n style=\"flex: 1; min-width: 210px\"\n >\n @for (g of templateGranteeOptions(); track g.GranteeId) {\n <nz-option [nzValue]=\"g\" [nzLabel]=\"g.DisplayName + ' (' + g.Code + ')'\"></nz-option>\n }\n </nz-select>\n\n <nz-select\n [(ngModel)]=\"templatePermAccessLevel\"\n [nzDisabled]=\"templatePermIsDeny\"\n nzSize=\"small\"\n style=\"width: 155px\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"\uD83D\uDC41 Ch\u1EC9 xem (10)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"\u2B07 Xem & T\u1EA3i (20)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"\u2601 Xem & T\u1EA3i l\u00EAn (35)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"\u270E Ch\u1EC9nh s\u1EEDa (40)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Manager\" nzLabel=\"\uD83D\uDC51 Qu\u1EA3n tr\u1ECB (50)\"></nz-option>\n </nz-select>\n\n <label\n nz-checkbox\n [(ngModel)]=\"templatePermIsDeny\"\n nz-tooltip\n nzTooltipTitle=\"C\u1EA5m truy c\u1EADp t\u01B0\u1EDDng minh (Explicit Deny) \u0111\u1ED1i v\u1EDBi \u0111\u1ED1i t\u01B0\u1EE3ng n\u00E0y tr\u00EAn nh\u00E1nh \u0111ang ch\u1ECDn\"\n style=\"font-size: 12px\"\n >\n C\u1EA5m (Deny)\n </label>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"primary\"\n nzSize=\"small\"\n [disabled]=\"!templatePermSelectedGrantee\"\n (click)=\"addPermissionToTemplateTarget()\"\n >\n <nz-icon nzType=\"user-add\"></nz-icon> Th\u00EAm quy\u1EC1n\n </button>\n </div>\n\n <!-- Danh s\u00E1ch c\u00E1c quy\u1EC1n \u0111\u00E3 \u0111\u1EB7t cho m\u1EE5c \u0111ang ch\u1ECDn -->\n @if (activeTemplateTargetPermissions().length === 0) {\n <div class=\"quota-sub\" style=\"padding: 8px 4px 2px\">\n @if (selectedTemplatePermTarget() === \"__ROOT__\") {\n Ch\u01B0a \u0111\u1EB7t quy\u1EC1n m\u1EB7c \u0111\u1ECBnh cho to\u00E0n m\u1EABu. H\u00E3y ch\u1ECDn \u0110\u01A1n v\u1ECB / Vai tr\u00F2 / C\u00E1 nh\u00E2n \u1EDF tr\u00EAn r\u1ED3i b\u1EA5m\n <strong>+ Th\u00EAm quy\u1EC1n</strong> (ho\u1EB7c b\u1EA5m v\u00E0o t\u1EEBng th\u01B0 m\u1EE5c b\u00EAn khung Xem tr\u01B0\u1EDBc \u0111\u1EC3 \u0111\u1EB7t quy\u1EC1n ri\u00EAng cho\n nh\u00E1nh con).\n } @else {\n Nh\u00E1nh <strong>\"{{ selectedTemplatePermTarget() }}\"</strong> ch\u01B0a c\u00F3 quy\u1EC1n ri\u00EAng (m\u1EB7c \u0111\u1ECBnh k\u1EBF th\u1EEBa t\u1EEB th\u01B0\n m\u1EE5c cha).\n }\n </div>\n } @else {\n <nz-table\n #tplPermTable\n [nzData]=\"activeTemplateTargetPermissions()\"\n nzSize=\"small\"\n [nzBordered]=\"true\"\n [nzFrontPagination]=\"false\"\n [nzShowPagination]=\"false\"\n style=\"margin-top: 6px\"\n >\n <thead>\n <tr>\n <th>\u0110\u1ED1i t\u01B0\u1EE3ng nh\u1EADn quy\u1EC1n</th>\n <th nzWidth=\"185px\">M\u1EE9c quy\u1EC1n \u00E1p d\u1EE5ng</th>\n <th nzWidth=\"95px\" class=\"text-center\">T\u1EA3i xu\u1ED1ng</th>\n <th nzWidth=\"65px\" class=\"text-center\">X\u00F3a</th>\n </tr>\n </thead>\n <tbody>\n @for (p of tplPermTable.data; track p.GranteeType + \":\" + p.GranteeId) {\n <tr>\n <td>\n <nz-tag\n [nzColor]=\"\n p.GranteeType === DriveGranteeType.User\n ? 'blue'\n : p.GranteeType === DriveGranteeType.Org\n ? 'cyan'\n : 'purple'\n \"\n >\n {{\n p.GranteeType === DriveGranteeType.User\n ? \"User\"\n : p.GranteeType === DriveGranteeType.Org\n ? \"\u0110\u01A1n v\u1ECB\"\n : \"Role\"\n }}\n </nz-tag>\n <strong>{{ p.GranteeName || p.GranteeId }}</strong>\n </td>\n <td>\n <nz-select\n nzSize=\"small\"\n [ngModel]=\"p.IsDeny ? 'DENY' : p.AccessLevel\"\n (ngModelChange)=\"updateTemplatePermissionLevel(p, $event)\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"\uD83D\uDC41 Ch\u1EC9 xem (10)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"\u2B07 Xem & T\u1EA3i (20)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"\u2601 Xem & T\u1EA3i l\u00EAn (35)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"\u270E Ch\u1EC9nh s\u1EEDa (40)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Manager\" nzLabel=\"\uD83D\uDC51 Qu\u1EA3n tr\u1ECB (50)\"></nz-option>\n <nz-option nzValue=\"DENY\" nzLabel=\"\uD83D\uDEAB C\u1EA5m (Deny)\"></nz-option>\n </nz-select>\n </td>\n <td class=\"text-center\">\n <nz-tag [nzColor]=\"p.CanDownload && !p.IsDeny ? 'green' : 'default'\">\n {{ p.CanDownload && !p.IsDeny ? \"Cho ph\u00E9p\" : \"Ch\u1EB7n\" }}\n </nz-tag>\n </td>\n <td class=\"text-center\">\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n nz-tooltip\n nzTooltipTitle=\"G\u1EE1 quy\u1EC1n n\u00E0y kh\u1ECFi m\u1EABu\"\n (click)=\"removePermissionFromTemplateTarget(p)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n }\n </div>\n </div>\n </ng-container>\n\n <ng-template #templateDrawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (templateDrawerMode === \"edit\" && editingTemplate) {\n <button nz-button nzDanger nzType=\"default\" (click)=\"onDeleteTemplate(editingTemplate)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a m\u1EABu n\u00E0y\n </button>\n }\n </div>\n <div nz-flex [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"templateDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitTemplateDrawer()\">\n <nz-icon nzType=\"save\"></nz-icon>\n {{ templateDrawerMode === \"create\" ? \"L\u01B0u m\u1EABu c\u00E2y th\u01B0 m\u1EE5c\" : \"C\u1EADp nh\u1EADt m\u1EABu\" }}\n </button>\n </div>\n </div>\n </ng-template>\n </nz-drawer>\n}\n", styles: [".drive-shell{display:grid;grid-template-columns:245px 1fr;min-height:calc(100vh - 85px);background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px;overflow:hidden}.drive-sidebar{padding:14px;background:var(--app-sidebar-bg, #f8fafc);border-right:1px solid var(--app-border, #e2e8f0);display:flex;flex-direction:column;gap:14px}.drive-nav{display:flex;flex-direction:column;gap:4px}.drive-nav a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:6px;color:var(--app-text, #334155);cursor:pointer;transition:background .15s}.drive-nav a.space-has-active-child{color:var(--primary-color, #1890ff);font-weight:600;background:color-mix(in srgb,var(--primary-color, #1890ff) 7%,transparent)}.drive-nav a:hover,.drive-nav a.active{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);color:var(--primary-color, #1890ff);font-weight:600}.org-nav-group{display:flex;flex-direction:column;gap:2px}.custom-space-link{padding-left:26px!important;font-size:13px}.custom-space-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.custom-space-badge{margin:0!important;font-size:10px;line-height:16px;padding:0 4px}.nav-inline-btn{border:none;background:transparent;color:inherit;cursor:pointer;padding:2px 4px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;opacity:.7}.nav-inline-btn:hover{opacity:1;background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.storage-mode-box{padding:10px 12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.upload-queue-box{padding:10px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px;max-height:180px;overflow-y:auto}.upload-task-row{margin-bottom:6px}.upload-task-name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quota-box{margin-top:auto;padding:12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.quota-title{font-size:13px;font-weight:600;margin-bottom:6px}.quota-sub{font-size:12px;color:var(--app-text-muted, #64748b);margin-top:4px}.drive-shell.sidebar-wide{grid-template-columns:335px 1fr}.sidebar-tree-header-bar{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;border-radius:6px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0)}.sidebar-tree-header-title{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--app-text, #334155)}.sidebar-tree-header-actions{display:inline-flex;align-items:center;gap:3px}.sidebar-tree-tool-btn{border:none;background:transparent;color:var(--app-text-muted, #64748b);width:22px;height:22px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:12px;transition:background .15s,color .15s}.sidebar-tree-tool-btn:hover,.sidebar-tree-tool-btn.active{background:color-mix(in srgb,var(--primary-color, #1890ff) 14%,transparent);color:var(--primary-color, #1890ff)}.sidebar-tree-filter-box{margin-top:-6px}.nav-item-with-tree{display:flex;flex-direction:column}.nav-caret-btn{border:none;background:transparent;color:inherit;width:18px;height:18px;padding:0;margin-left:-4px;margin-right:-2px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:11px;opacity:.75;flex-shrink:0;transition:transform .15s,background .15s,opacity .15s}.nav-caret-btn:hover{opacity:1;background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.sidebar-tree-container{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px 14px;padding-left:6px;border-left:1.5px dashed var(--app-border, #cbd5e1);max-height:320px;overflow-y:auto;overflow-x:hidden}.drive-shell.sidebar-wide .sidebar-tree-container{max-height:420px}.sidebar-tree-node{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;font-size:12.5px;color:var(--app-text, #334155);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .12s,color .12s;min-width:0}.sidebar-tree-node:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.sidebar-tree-node.active-breadcrumb-ancestor{font-weight:600;color:var(--primary-color, #1890ff)}.sidebar-tree-node.active-tree-node{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);color:var(--primary-color, #1890ff);font-weight:600;box-shadow:inset 2.5px 0 0 var(--primary-color, #1890ff)}.sidebar-tree-node.tree-drop-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 22%,transparent)!important;outline:1.5px dashed var(--primary-color, #1890ff);color:var(--primary-color, #1890ff);font-weight:600}.tree-node-caret{width:16px;height:16px;border:none;background:transparent;color:var(--app-text-muted, #64748b);padding:0;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;cursor:pointer;flex-shrink:0}.tree-node-caret:hover{color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent)}.tree-node-caret-spacer{width:16px;height:16px;display:inline-block;flex-shrink:0}.tree-node-folder-icon{font-size:15px;flex-shrink:0}.tree-node-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}.tree-node-quick-btn{border:none;background:transparent;color:var(--app-text-muted, #64748b);width:20px;height:20px;padding:0;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;opacity:0;cursor:pointer;flex-shrink:0;font-size:11px;transition:opacity .12s,background .12s,color .12s}.sidebar-tree-node:hover .tree-node-quick-btn{opacity:.85}.tree-node-quick-btn:hover{opacity:1!important;color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.sidebar-tree-empty{padding:4px 8px 4px 20px;font-size:11.5px;color:var(--app-text-muted, #94a3b8);font-style:italic}.drive-main{position:relative;padding:16px;display:flex;flex-direction:column;gap:12px;transition:background .15s,border-color .15s}.drive-main.external-drag-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 6%,var(--app-container-bg, #ffffff));outline:2px dashed var(--primary-color, #1890ff);outline-offset:-6px}.external-drop-banner{pointer-events:none;display:flex;align-items:center;gap:14px;padding:12px 18px;border-radius:8px;background:color-mix(in srgb,var(--primary-color, #1890ff) 14%,var(--app-container-bg, #ffffff));border:1px dashed var(--primary-color, #1890ff);color:var(--app-text, #1e293b)}.drop-banner-icon{font-size:28px;color:var(--primary-color, #1890ff)}.drop-banner-title{font-size:14px;font-weight:500}.drop-banner-sub{font-size:12px;color:var(--app-text-muted, #64748b);margin-top:2px}.drive-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--app-border, #f1f5f9)}.trash-info-banner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:9px 14px;border-radius:8px;background:#ef44440f;border:1px solid rgba(239,68,68,.24);font-size:13px;color:var(--app-text, #334155)}.physical-path-bar{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;color:var(--app-text-muted, #64748b)}.toolbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.drive-row{cursor:pointer;transition:background .15s,outline .15s}.drive-row.dragging-row{opacity:.45}.drive-row.drop-target-active>td{background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)!important;border-top:1px dashed var(--primary-color, #1890ff);border-bottom:1px dashed var(--primary-color, #1890ff)}.bc-drop-active,.drive-nav a.nav-drop-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 22%,transparent)!important;outline:1.5px dashed var(--primary-color, #1890ff);color:var(--primary-color, #1890ff);font-weight:600}.node-name-cell{display:flex;align-items:center;gap:8px}.node-icon-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center}.node-icon{font-size:18px}.shortcut-badge{position:absolute;right:-5px;bottom:-3px;width:13px;height:13px;border-radius:50%;background:#7c3aed;color:#fff;font-size:9px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 0 1.5px var(--app-container-bg, #ffffff)}.node-title{font-weight:500}.action-btn-group{display:inline-flex;align-items:center;justify-content:center;gap:4px}.action-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;background:transparent;border-radius:6px;cursor:pointer;font-size:15px;transition:background .15s,transform .1s}.action-icon-btn:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 12%,transparent);transform:translateY(-1px)}.action-icon-btn.color-warn:hover{background:#ef44441f}.sortable-th{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s,color .15s}.sortable-th:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 8%,var(--app-sidebar-bg, #f8fafc))!important;color:var(--primary-color, #1890ff)}.th-sort-wrap{display:inline-flex;align-items:center;gap:6px;width:100%}.th-sort-wrap.justify-center{justify-content:center}.th-sort-wrap.justify-end{justify-content:flex-end}.sort-icon{font-size:13px;opacity:.35;transition:opacity .15s,color .15s}.sort-icon.active{opacity:1;color:var(--primary-color, #1890ff)}.sortable-th:hover .sort-icon{opacity:.85}.drawer-field-label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--app-text, #334155)}.drawer-meta-card{padding:12px 14px;background:var(--app-sidebar-bg, #f8fafc);border:1px solid var(--app-border, #e2e8f0);border-radius:8px;display:flex;flex-direction:column;gap:8px}.drawer-meta-header{display:flex;align-items:center;gap:10px}.drawer-meta-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}.meta-label{color:var(--app-text-muted, #64748b)}.template-sidebar-box{padding:10px 12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.template-chip-list{display:flex;flex-direction:column;gap:6px;max-height:175px;overflow-y:auto}.template-drag-item{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 8px;border-radius:6px;border:1px dashed var(--app-border, #cbd5e1);background:var(--app-sidebar-bg, #f8fafc);cursor:grab;transition:all .15s}.template-drag-item:hover{border-color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.template-item-title{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-item-sub{font-size:10.5px;color:var(--app-text-muted, #64748b)}.template-editor-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:10px}.template-tree-preview{border:1px solid var(--app-border, #e2e8f0);border-radius:6px;padding:10px;background:var(--app-sidebar-bg, #f8fafc);max-height:450px;overflow-y:auto}.preview-tree-row{display:flex;align-items:center;font-size:12.5px;padding:2.5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selectable-preview-row{cursor:pointer;padding:4px 6px;border-radius:5px;transition:background .12s,border-color .12s;border:1px solid transparent}.selectable-preview-row:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.selectable-preview-row.active-perm-target{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);border-color:var(--primary-color, #1890ff);font-weight:600}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i6.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i6.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i6.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i6.NzTdAddOnComponent, selector: "td[nzChecked], td[nzDisabled], td[nzIndeterminate], td[nzIndentSize], td[nzExpand], td[nzShowExpand], td[nzShowCheckbox]", inputs: ["nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzIndentSize", "nzShowExpand", "nzShowCheckbox", "nzExpand", "nzExpandIcon"], outputs: ["nzCheckedChange", "nzExpandChange"] }, { kind: "component", type: i6.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i6.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i6.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "ngmodule", type: NzPaginationModule }, { kind: "component", type: i7.NzPaginationComponent, selector: "nz-pagination", inputs: ["nzShowTotal", "nzItemRender", "nzSize", "nzPageSizeOptions", "nzShowSizeChanger", "nzShowQuickJumper", "nzSimple", "nzDisabled", "nzResponsive", "nzHideOnSinglePage", "nzTotal", "nzPageIndex", "nzPageSize"], outputs: ["nzPageSizeChange", "nzPageIndexChange"], exportAs: ["nzPagination"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzBreadCrumbModule }, { kind: "component", type: i10.NzBreadCrumbComponent, selector: "nz-breadcrumb", inputs: ["nzAutoGenerate", "nzSeparator", "nzRouteLabel", "nzRouteLabelFn", "nzRouteFn"], exportAs: ["nzBreadcrumb"] }, { kind: "component", type: i10.NzBreadCrumbItemComponent, selector: "nz-breadcrumb-item", inputs: ["nzOverlay"], exportAs: ["nzBreadcrumbItem"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i4$2.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "component", type: i5$4.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i14.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "ngmodule", type: NzProgressModule }, { kind: "component", type: i2$7.NzProgressComponent, selector: "nz-progress", inputs: ["nzShowInfo", "nzWidth", "nzStrokeColor", "nzSize", "nzFormat", "nzSuccessPercent", "nzPercent", "nzStrokeWidth", "nzGapDegree", "nzStatus", "nzType", "nzGapPosition", "nzStrokeLinecap", "nzSteps"], exportAs: ["nzProgress"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i11.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "ngmodule", type: NzDividerModule }, { kind: "component", type: i21.NzDividerComponent, selector: "nz-divider", inputs: ["nzText", "nzType", "nzOrientation", "nzVariant", "nzDashed", "nzPlain"], exportAs: ["nzDivider"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i13$2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i13$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i13$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i3$2.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId", "nzName"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "pipe", type: FormatBytesPipe, name: "formatBytes" }, { kind: "directive", type: AutoFocusDirective, selector: "[appAutoFocus]", inputs: ["appAutoFocus"] }, { kind: "component", type: ExtendViewFileContentComponent, selector: "extend-view-file-content", inputs: ["previewType", "previewContent"] }, { kind: "component", type: DriveShareModalComponent, selector: "lib-drive-share-modal", inputs: ["nodeId"] }, { kind: "component", type: DriveVersionModalComponent, selector: "lib-drive-version-modal", inputs: ["nodeId", "nodeName", "canEdit", "canDownload"], outputs: ["closed"] }, { kind: "component", type: DriveShareViewerComponent, selector: "lib-drive-share-viewer", inputs: ["token"], outputs: ["backToDrive"] }, { kind: "component", type: IconCopy, selector: "icon-copy", inputs: ["textToCopy", "tooltip", "size"] }, { kind: "component", type: DrivePermissionMatrixComponent, selector: "lib-drive-permission-matrix", inputs: ["viewMode", "scope", "customSpaceId", "rootFolderId", "rootNodeId"], outputs: ["saved", "closed"] }] });
34019
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: DriveExplorerComponent, isStandalone: true, selector: "lib-drive-explorer", providers: [NzImageService], usesInheritance: true, ngImport: i0, template: "@if (activeShareToken(); as sToken) {\n <lib-drive-share-viewer [token]=\"sToken\" (backToDrive)=\"closeEmbeddedShareViewer()\"></lib-drive-share-viewer>\n} @else {\n <div class=\"drive-shell\" [class.sidebar-wide]=\"sidebarWideMode() && showSidebarTree()\">\n <!-- SIDEBAR \u0110I\u1EC0U H\u01AF\u1EDANG & QUOTA -->\n <aside class=\"drive-sidebar\">\n <div nz-flex nzVertical nzGap=\"small\">\n <button\n nz-button\n nzType=\"primary\"\n nzBlock\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"fileInput.click()\"\n >\n <nz-icon nzType=\"cloud-upload\"></nz-icon> T\u1EA3i t\u1EADp tin l\u00EAn\n </button>\n <input #fileInput type=\"file\" multiple hidden (change)=\"onFilesSelected($event)\" />\n <button\n nz-button\n nzType=\"default\"\n nzBlock\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"openFolderDrawer('create')\"\n >\n <nz-icon nzType=\"folder-add\"></nz-icon> T\u1EA1o th\u01B0 m\u1EE5c m\u1EDBi\n </button>\n </div>\n <!-- THANH T\u00D9Y CH\u1ECCN HI\u1EC2N TH\u1ECA C\u00C2Y TH\u01AF M\u1EE4C B\u00CAN TR\u00C1I (SIDEBAR FOLDER TREE OPTIONS) -->\n <div class=\"sidebar-tree-header-bar\">\n <span class=\"sidebar-tree-header-title\">\n <nz-icon nzType=\"partition\" style=\"color: var(--primary-color, #1890ff)\"></nz-icon>\n <span>C\u00E2y th\u01B0 m\u1EE5c</span>\n </span>\n <div class=\"sidebar-tree-header-actions\">\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng nhanh c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c\"\n (click)=\"expandAllSidebarTreeNodes()\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c\"\n (click)=\"collapseAllSidebarTreeNodes()\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi c\u00E2y th\u01B0 m\u1EE5c\"\n (click)=\"refreshAllExpandedSidebarTrees()\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n [class.active]=\"sidebarWideMode()\"\n nz-tooltip\n [nzTooltipTitle]=\"\n sidebarWideMode() ? 'Thu g\u1ECDn \u0111\u1ED9 r\u1ED9ng c\u1ED9t tr\u00E1i' : 'M\u1EDF r\u1ED9ng \u0111\u1ED9 r\u1ED9ng c\u1ED9t tr\u00E1i \u0111\u1EC3 xem c\u00E2y th\u01B0 m\u1EE5c r\u00F5 h\u01A1n'\n \"\n (click)=\"onToggleSidebarWideMode()\"\n >\n <nz-icon nzType=\"column-width\"></nz-icon>\n </button>\n }\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"showSidebarTree()\"\n (ngModelChange)=\"onToggleSidebarTree($event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt / T\u1EAFt hi\u1EC3n th\u1ECB c\u00E2y th\u01B0 m\u1EE5c tr\u1EF1c ti\u1EBFp b\u00EAn tr\u00E1i\"\n ></nz-switch>\n </div>\n </div>\n\n @if (showSidebarTree()) {\n <div class=\"sidebar-tree-filter-box\">\n <nz-input-group [nzPrefix]=\"sidebarFilterPrefixTpl\" [nzSuffix]=\"sidebarFilterClearTpl\" nzSize=\"small\">\n <input\n nz-input\n type=\"text\"\n placeholder=\"L\u1ECDc nhanh th\u01B0 m\u1EE5c tr\u00EAn c\u00E2y...\"\n [ngModel]=\"sidebarTreeFilter()\"\n (ngModelChange)=\"onSidebarTreeFilterChange($event)\"\n />\n </nz-input-group>\n <ng-template #sidebarFilterPrefixTpl>\n <nz-icon nzType=\"filter\" style=\"color: var(--app-text-muted, #94a3b8); font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #sidebarFilterClearTpl>\n @if (sidebarTreeFilter()) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: var(--app-text-muted, #94a3b8); font-size: 12px\"\n (click)=\"onSidebarTreeFilterChange('')\"\n ></nz-icon>\n }\n </ng-template>\n </div>\n }\n\n <nav class=\"drive-nav\">\n <!-- 1. DRIVE C\u00C1 NH\u00C2N + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"drive.currentViewMode() === 'MY_DRIVE' && (!drive.currentFolderId() || !showSidebarTree())\"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'MY_DRIVE' && !!drive.currentFolderId() && showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverNavSpace() === 'MY_DRIVE'\"\n (click)=\"switchView('MY_DRIVE')\"\n (dragover)=\"onNavSpaceDragOver($event, 'MY_DRIVE')\"\n (dragleave)=\"onNavSpaceDragLeave('MY_DRIVE')\"\n (drop)=\"onNavSpaceDrop($event, 'MY_DRIVE')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'MY_DRIVE')\"\n [title]=\"\n isSidebarSpaceExpanded('MY_DRIVE') ? 'Thu g\u1ECDn c\u00E2y Drive c\u00E1 nh\u00E2n' : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c Drive c\u00E1 nh\u00E2n'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('MY_DRIVE')\n ? 'loading'\n : isSidebarSpaceExpanded('MY_DRIVE')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"hdd\"></nz-icon>\n <span style=\"flex: 1\">Drive c\u00E1 nh\u00E2n</span>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'MY_DRIVE' }\"></ng-container>\n </div>\n\n <!-- 2. T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA & C\u00C1C M\u1EE4C T\u00D9Y CH\u1EC8NH (CUSTOM SPACES) + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"org-nav-group\">\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"\n drive.currentViewMode() === 'ORG_DRIVE' && (!drive.currentFolderId() || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'ORG_DRIVE' && !!drive.currentFolderId() && showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverNavSpace() === 'ORG_DRIVE'\"\n (click)=\"switchView('ORG_DRIVE')\"\n (dragover)=\"onNavSpaceDragOver($event, 'ORG_DRIVE')\"\n (dragleave)=\"onNavSpaceDragLeave('ORG_DRIVE')\"\n (drop)=\"onNavSpaceDrop($event, 'ORG_DRIVE')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'ORG_DRIVE')\"\n [title]=\"\n isSidebarSpaceExpanded('ORG_DRIVE')\n ? 'Thu g\u1ECDn c\u00E2y T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB'\n : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('ORG_DRIVE')\n ? 'loading'\n : isSidebarSpaceExpanded('ORG_DRIVE')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"apartment\"></nz-icon>\n <span style=\"flex: 1\">T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB</span>\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n nz-tooltip\n nzTooltipTitle=\"Th\u00EAm m\u1EE5c t\u00F9y ch\u1EC9nh b\u00EAn d\u01B0\u1EDBi T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (VD: T\u00E0i li\u1EC7u d\u1EF1 \u00E1n)\"\n (click)=\"$event.stopPropagation(); openCustomSpaceDrawer('create')\"\n >\n <nz-icon nzType=\"plus\"></nz-icon>\n </button>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'ORG_DRIVE' }\"></ng-container>\n </div>\n\n <!-- DANH S\u00C1CH C\u00C1C M\u1EE4C CUSTOM B\u00CAN D\u01AF\u1EDAI \"T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA\" (VD: \"T\u00E0i li\u1EC7u d\u1EF1 \u00E1n\") -->\n @for (sp of drive.customSpaces(); track sp.Id) {\n <div class=\"nav-item-with-tree\">\n <a\n class=\"custom-space-link\"\n [class.active]=\"\n drive.currentViewMode() === 'CUSTOM_SPACE' &&\n drive.currentCustomSpaceId() === sp.Id &&\n (!drive.currentFolderId() || drive.currentFolderId() === sp.Id || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'CUSTOM_SPACE' &&\n drive.currentCustomSpaceId() === sp.Id &&\n !!drive.currentFolderId() &&\n drive.currentFolderId() !== sp.Id &&\n showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverCustomSpaceId() === sp.Id\"\n (click)=\"switchCustomSpace(sp)\"\n (dragover)=\"onCustomSpaceDragOver($event, sp)\"\n (dragleave)=\"onCustomSpaceDragLeave(sp)\"\n (drop)=\"onCustomSpaceDrop($event, sp)\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'CUSTOM:' + sp.Id)\"\n [title]=\"\n isSidebarSpaceExpanded('CUSTOM:' + sp.Id) ? 'Thu g\u1ECDn c\u00E2y ' + sp.Name : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c ' + sp.Name\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('CUSTOM:' + sp.Id)\n ? 'loading'\n : isSidebarSpaceExpanded('CUSTOM:' + sp.Id)\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon [nzType]=\"sp.Icon || 'project'\"></nz-icon>\n <span class=\"custom-space-title\" [title]=\"sp.Name\">{{ sp.Name }}</span>\n @if (sp.IsVisibleToAllUsers) {\n <nz-tag nzColor=\"cyan\" class=\"custom-space-badge\">All</nz-tag>\n }\n @if (sp.CanManage || drive.isCurrentUserAdmin()) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n (click)=\"$event.stopPropagation(); openCustomSpaceDrawer('edit', sp)\"\n >\n <nz-icon nzType=\"setting\"></nz-icon>\n </button>\n }\n </a>\n <ng-container\n *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'CUSTOM:' + sp.Id }\"\n ></ng-container>\n </div>\n }\n </div>\n\n <!-- 3. \u0110\u01AF\u1EE2C CHIA S\u1EBA V\u1EDAI T\u00D4I + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"\n drive.currentViewMode() === 'SHARED_WITH_ME' && (!drive.currentFolderId() || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'SHARED_WITH_ME' && !!drive.currentFolderId() && showSidebarTree()\n \"\n (click)=\"switchView('SHARED_WITH_ME')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'SHARED_WITH_ME')\"\n [title]=\"\n isSidebarSpaceExpanded('SHARED_WITH_ME')\n ? 'Thu g\u1ECDn c\u00E2y \u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i'\n : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c \u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('SHARED_WITH_ME')\n ? 'loading'\n : isSidebarSpaceExpanded('SHARED_WITH_ME')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"share-alt\"></nz-icon>\n <span style=\"flex: 1\">\u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i</span>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'SHARED_WITH_ME' }\"></ng-container>\n </div>\n <a [class.active]=\"drive.currentViewMode() === 'RECENT'\" (click)=\"switchView('RECENT')\">\n <nz-icon nzType=\"clock-circle\"></nz-icon> G\u1EA7n \u0111\u00E2y\n </a>\n <a [class.active]=\"drive.currentViewMode() === 'STARRED'\" (click)=\"switchView('STARRED')\">\n <nz-icon nzType=\"star\"></nz-icon> C\u00F3 g\u1EAFn d\u1EA5u sao\n </a>\n <a [class.active]=\"drive.currentViewMode() === 'TRASH'\" (click)=\"switchView('TRASH')\">\n <nz-icon nzType=\"delete\"></nz-icon>\n <span style=\"flex: 1\">Th\u00F9ng r\u00E1c</span>\n @if (drive.currentViewMode() === \"TRASH\" && drive.items().length > 0) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n style=\"color: #ef4444\"\n nz-tooltip\n nzTooltipTitle=\"D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c (X\u00F3a v\u0129nh vi\u1EC5n t\u1EA5t c\u1EA3)\"\n (click)=\"$event.stopPropagation(); onEmptyTrash()\"\n >\n <nz-icon nzType=\"clear\"></nz-icon>\n </button>\n }\n </a>\n </nav>\n\n <!-- TEMPLATE D\u00D9NG CHUNG HI\u1EC2N TH\u1ECA C\u00C2Y TH\u01AF M\u1EE4C \u0110A C\u1EA4P B\u00CAN TR\u00C1I CHO T\u1EEANG KH\u00D4NG GIAN -->\n <ng-template #sidebarSpaceTreeTpl let-spaceKey=\"spaceKey\">\n @if (isSidebarSpaceExpanded(spaceKey)) {\n @if (getSidebarVisibleTreeNodes(spaceKey); as treeNodes) {\n @if (treeNodes.length > 0) {\n <div class=\"sidebar-tree-container\">\n @for (vm of treeNodes; track vm.folderId) {\n <div\n class=\"sidebar-tree-node\"\n [class.active-tree-node]=\"vm.isActive\"\n [class.active-breadcrumb-ancestor]=\"vm.isInActiveBreadcrumb && !vm.isActive\"\n [class.tree-drop-active]=\"dragOverSidebarFolderId() === vm.folderId\"\n [style.padding-left.px]=\"6 + vm.level * 14\"\n [attr.draggable]=\"vm.node.EffectiveAccess >= DriveAccessLevel.Editor\"\n (dragstart)=\"onSidebarTreeNodeDragStart($event, vm)\"\n (dragend)=\"onRowDragEnd()\"\n (dragover)=\"onSidebarTreeNodeDragOver($event, vm)\"\n (dragleave)=\"onSidebarTreeNodeDragLeave($event, vm)\"\n (drop)=\"onSidebarTreeNodeDrop($event, vm)\"\n (click)=\"onSidebarTreeNodeClick(vm)\"\n (contextmenu)=\"onContextMenu($event, menu, vm.node)\"\n >\n @if (!vm.hasKnownNoChildren) {\n <button\n type=\"button\"\n class=\"tree-node-caret\"\n (click)=\"toggleSidebarFolderNode($event, vm)\"\n [title]=\"vm.isExpanded ? 'Thu g\u1ECDn nh\u00E1nh' : 'M\u1EDF r\u1ED9ng th\u01B0 m\u1EE5c con'\"\n >\n <nz-icon\n [nzType]=\"vm.isLoading ? 'loading' : vm.isExpanded ? 'caret-down' : 'caret-right'\"\n ></nz-icon>\n </button>\n } @else {\n <span class=\"tree-node-caret-spacer\"></span>\n }\n\n <nz-icon\n class=\"tree-node-folder-icon\"\n [nzType]=\"vm.isExpanded || vm.isActive ? 'folder-open' : 'folder-fill'\"\n [style.color]=\"vm.isActive ? 'var(--primary-color, #1890ff)' : '#f59e0b'\"\n ></nz-icon>\n\n <span class=\"tree-node-label\" [title]=\"vm.node.Name\">\n {{ vm.node.Name }}\n </span>\n\n @if (vm.node.EffectiveAccess >= DriveAccessLevel.Uploader) {\n <button\n type=\"button\"\n class=\"tree-node-quick-btn\"\n title=\"T\u1EA1o th\u01B0 m\u1EE5c con trong '{{ vm.node.Name }}'\"\n (click)=\"openCreateSubfolderFromSidebar($event, vm)\"\n >\n <nz-icon nzType=\"plus\"></nz-icon>\n </button>\n }\n </div>\n }\n </div>\n } @else if (isSidebarSpaceLoading(spaceKey)) {\n <div class=\"sidebar-tree-empty\">\n <nz-icon nzType=\"loading\" style=\"margin-right: 4px\"></nz-icon> \u0110ang t\u1EA3i c\u00E2y th\u01B0 m\u1EE5c...\n </div>\n } @else if (sidebarTreeFilter().trim()) {\n <!-- <div class=\"sidebar-tree-empty\">Kh\u00F4ng kh\u1EDBp th\u01B0 m\u1EE5c n\u00E0o</div> -->\n } @else {\n <!-- <div class=\"sidebar-tree-empty\">Ch\u01B0a c\u00F3 th\u01B0 m\u1EE5c con</div> -->\n }\n }\n }\n </ng-template>\n <!-- KHUNG M\u1EAAU C\u00C2Y TH\u01AF M\u1EE4C (H\u1ED6 TR\u1EE2 K\u00C9O TH\u1EA2 V\u00C0O TH\u01AF M\u1EE4C \u0110\u00CDCH HO\u1EB6C B\u1EA4M T\u1EA0O NHANH) -->\n @if (drive.isCurrentUserAdmin()) {\n <div class=\"template-sidebar-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <span style=\"font-size: 12px; font-weight: 600\">\n <nz-icon nzType=\"apartment\" style=\"color: #d97706; margin-right: 4px\"></nz-icon>\n M\u1EABu c\u00E2y th\u01B0 m\u1EE5c ({{ drive.folderTemplates().length }})\n </span>\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px\"\n (click)=\"openTemplateDrawer('create')\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"\u0110\u1ECBnh ngh\u0129a m\u1EABu c\u00E2y th\u01B0 m\u1EE5c m\u1EDBi\" -->\n <nz-icon nzType=\"plus\"></nz-icon> T\u1EA1o m\u1EABu\n </button>\n </div>\n\n @if (drive.folderTemplates().length === 0) {\n <div class=\"quota-sub\" style=\"font-size: 11px\">\n Ch\u01B0a c\u00F3 m\u1EABu n\u00E0o. B\u1EA5m <strong>+ T\u1EA1o m\u1EABu</strong> \u0111\u1EC3 \u0111\u1ECBnh ngh\u0129a c\u00E2y th\u01B0 m\u1EE5c chu\u1EA9n.\n </div>\n } @else {\n <div class=\"template-chip-list\">\n @for (tpl of drive.folderTemplates(); track tpl.Id) {\n <div\n class=\"template-drag-item\"\n draggable=\"true\"\n (dragstart)=\"onTemplateDragStart($event, tpl)\"\n (dragend)=\"onTemplateDragEnd()\"\n >\n <!-- nz-tooltip\n [nzTooltipTitle]=\"\n 'K\u00E9o th\u1EA3 m\u1EABu [' +\n tpl.Name +\n '] (' +\n tpl.TotalFolderCount +\n ' th\u01B0 m\u1EE5c) v\u00E0o m\u1ED9t Th\u01B0 m\u1EE5c \u0111\u00EDch tr\u00EAn b\u1EA3ng, ho\u1EB7c b\u1EA5m \u0111\u1EC3 t\u1EA1o t\u1EA1i \u0111\u00E2y'\n \" -->\n <div\n nz-flex\n nzAlign=\"center\"\n [nzGap]=\"6\"\n style=\"flex: 1; min-width: 0\"\n (click)=\"openFolderDrawer('create', undefined, tpl)\"\n >\n <nz-icon nzType=\"folder-add\" style=\"color: #d97706; font-size: 15px\"></nz-icon>\n <div style=\"flex: 1; min-width: 0\">\n <div class=\"template-item-title\">{{ tpl.Name }}</div>\n <div class=\"template-item-sub\">\n <code>{{ tpl.Code }}</code> \u2022 {{ tpl.TotalFolderCount }} m\u1EE5c\n @if (tpl.TotalPermissionCount > 0) {\n <span style=\"color: #0284c7; font-weight: 600\">\n \u2022 \uD83D\uDEE1 {{ tpl.TotalPermissionCount }} quy\u1EC1n</span\n >\n }\n </div>\n </div>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"$event.stopPropagation(); applyTemplateToTargetFolder(tpl, drive.currentFolderId())\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"\u00C1p d\u1EE5ng ngay v\u00E0o th\u01B0 m\u1EE5c \u0111ang m\u1EDF\" -->\n <nz-icon nzType=\"thunderbolt\" style=\"color: var(--primary-color)\"></nz-icon>\n </button>\n @if (tpl.CanManage || drive.isCurrentUserAdmin()) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n (click)=\"$event.stopPropagation(); openTemplateDrawer('edit', tpl)\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"S\u1EEDa / X\u00F3a m\u1EABu c\u00E2y th\u01B0 m\u1EE5c\" -->\n <nz-icon nzType=\"setting\"></nz-icon>\n </button>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P C\u1EA4U H\u00CCNH CH\u1EBE \u0110\u1ED8 TH\u01AF M\u1EE4C V\u1EACT L\u00DD vs \u1EA2O H\u00D3A -->\n @if (drive.isCurrentUserAdmin() && false) {\n <div class=\"storage-mode-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <span style=\"font-size: 12px; font-weight: 600\">Th\u01B0 m\u1EE5c v\u1EADt l\u00FD (Disk)</span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"drive.usePhysicalFolders()\"\n (ngModelChange)=\"onTogglePhysicalMode($event)\"\n ></nz-switch>\n\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt: T\u1EA1o c\u00E2y th\u01B0 m\u1EE5c & t\u00EAn file th\u1EADt 1-1 tr\u00EAn \u1ED5 c\u1EE9ng m\u00E1y ch\u1EE7\"\n -->\n </div>\n <div class=\"quota-sub\">\n Ch\u1EBF \u0111\u1ED9: <strong>{{ drive.usePhysicalFolders() ? \"V\u1EADt l\u00FD 1:1 (Physical)\" : \"\u1EA2o h\u00F3a (Virtual)\" }}</strong>\n </div>\n @if (drive.usePhysicalFolders()) {\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-top: 8px\">\n <span style=\"font-size: 12px\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt: T\u1EA5t c\u1EA3 User c\u00F9ng d\u00F9ng chung 1 RootPath duy nh\u1EA5t \u0111\u1EC3 l\u01B0u tr\u1EEF t\u00E0i li\u1EC7u d\u1EF1 \u00E1n\"\n -->\n D\u00F9ng chung RootPath\n </span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"drive.useSharedPhysicalRoot()\"\n (ngModelChange)=\"onToggleSharedRootMode($event)\"\n ></nz-switch>\n </div>\n <div class=\"quota-sub\">\n Ph\u1EA1m vi \u0111\u0129a:\n <strong>{{ drive.useSharedPhysicalRoot() ? \"Chung to\u00E0n d\u1EF1 \u00E1n\" : \"T\u00E1ch theo t\u1EEBng User\" }}</strong>\n </div>\n <div nz-flex nzVertical [nzGap]=\"6\" style=\"margin-top: 8px\">\n <button nz-button nzType=\"dashed\" nzSize=\"small\" nzBlock (click)=\"onSyncPhysicalDisk()\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Qu\u00E9t c\u00E1c file/th\u01B0 m\u1EE5c copy tr\u1EF1c ti\u1EBFp tr\u00EAn \u1ED5 \u0111\u0129a Server \u0111\u1EC3 n\u1EA1p v\u00E0o Drive\"\n -->\n <nz-icon nzType=\"sync\"></nz-icon> \u0110\u1ED3ng b\u1ED9 t\u1EEB \u1ED5 \u0111\u0129a\n </button>\n <button nz-button nzType=\"default\" nzSize=\"small\" nzBlock (click)=\"openRelocateDrawer(null)\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"\u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn RootPath ho\u1EB7c \u00E1nh x\u1EA1 sang \u1ED5 c\u1EE9ng l\u01B0u tr\u1EEF kh\u00E1c\"\n -->\n <nz-icon nzType=\"folder-open\"></nz-icon> \u0110\u1ED5i RootPath / \u1ED4 \u0111\u0129a\n </button>\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P TI\u1EBEN TR\u00CCNH UPLOAD (H\u1ED6 TR\u1EE2 T\u1EA2I TI\u1EBEP KHI L\u1ED6I / T\u1EA0M D\u1EEANG / H\u1EE6Y) -->\n @if (drive.userUploadQueue().length > 0) {\n <div class=\"upload-queue-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <strong>Ti\u1EBFn tr\u00ECnh t\u1EA3i l\u00EAn ({{ drive.userUploadQueue().length }})</strong>\n <a (click)=\"drive.clearCompletedUploads()\" style=\"font-size: 12px\">\u1EA8n \u0111\u00E3 xong</a>\n </div>\n <input #resumeFileInput type=\"file\" hidden (change)=\"onResumeFileSelected($event)\" />\n @for (task of drive.userUploadQueue(); track task.id) {\n <div class=\"upload-task-row\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"4\">\n <div class=\"upload-task-name\" [title]=\"task.fileName\">{{ task.fileName }}</div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n @if (task.status === \"uploading\" && (task.fileSize || 0) >= 20971520) {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n (click)=\"drive.pauseUploadTask(task.id)\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"T\u1EA1m d\u1EEBng t\u1EA3i l\u00EAn\"\n -->\n <nz-icon nzType=\"pause-circle\"></nz-icon>\n </button>\n }\n @if (task.status === \"error\" || task.status === \"paused\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px; font-weight: 600\"\n (click)=\"onResumeUploadClick(task, resumeFileInput)\"\n >\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"task.errorMessage || 'T\u1EA3i l\u00EAn ti\u1EBFp t\u1EEB ph\u1EA7n tr\u0103m \u0111\u00E3 l\u01B0u (Resume Upload)'\"\n -->\n <nz-icon nzType=\"reload\"></nz-icon> T\u1EA3i ti\u1EBFp\n </button>\n }\n @if (task.status !== \"uploading\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px\"\n (click)=\"drive.removeUploadTask(task.id)\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"X\u00F3a kh\u1ECFi danh s\u00E1ch & h\u1EE7y phi\u00EAn t\u1EA1m\"\n -->\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n }\n </div>\n </div>\n <nz-progress\n [nzPercent]=\"task.progress\"\n nzSize=\"small\"\n [nzStatus]=\"\n task.status === 'error'\n ? 'exception'\n : task.status === 'success'\n ? 'success'\n : task.status === 'paused'\n ? 'normal'\n : 'active'\n \"\n ></nz-progress>\n @if (task.status === \"error\") {\n <div style=\"font-size: 11px; color: #ef4444; margin-top: 2px\">\n {{ task.errorMessage || \"B\u1ECB ng\u1EAFt k\u1EBFt n\u1ED1i.\" }} \u2014 B\u1EA5m <strong>T\u1EA3i ti\u1EBFp</strong> \u0111\u1EC3 n\u1ED1i l\u1EA1i t\u1EEB\n {{ task.progress }}%.\n </div>\n }\n @if (task.status === \"paused\") {\n <div style=\"font-size: 11px; color: #f59e0b; margin-top: 2px\">\n \u0110\u00E3 t\u1EA1m d\u1EEBng \u1EDF {{ task.progress }}% \u2014 B\u1EA5m <strong>T\u1EA3i ti\u1EBFp</strong> \u0111\u1EC3 ti\u1EBFp t\u1EE5c.\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P TI\u1EBEN TR\u00CCNH DOWNLOAD (H\u1ED6 TR\u1EE2 THEO D\u00D5I % & H\u1EE6Y T\u1EA2I T\u1EE8C TH\u1EDCI \u0110\u1ED0I V\u1EDAI FILE N\u1EB6NG) -->\n @if (drive.userDownloadQueue().length > 0) {\n <div class=\"upload-queue-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <strong>Ti\u1EBFn tr\u00ECnh t\u1EA3i xu\u1ED1ng ({{ drive.userDownloadQueue().length }})</strong>\n <a (click)=\"drive.clearCompletedDownloads()\" style=\"font-size: 12px\">\u1EA8n \u0111\u00E3 xong</a>\n </div>\n @for (dlTask of drive.userDownloadQueue(); track dlTask.id) {\n <div class=\"upload-task-row\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"4\">\n <div class=\"upload-task-name\" [title]=\"dlTask.fileName\">{{ dlTask.fileName }}</div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n @if (dlTask.status === \"downloading\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px; font-weight: 600\"\n (click)=\"drive.cancelDownloadTask(dlTask.id)\"\n >\n <nz-icon nzType=\"stop\"></nz-icon> H\u1EE7y t\u1EA3i\n </button>\n } @else {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px\"\n (click)=\"drive.removeDownloadTask(dlTask.id)\"\n >\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n }\n </div>\n </div>\n <nz-progress\n [nzPercent]=\"dlTask.progress\"\n nzSize=\"small\"\n [nzStatus]=\"\n dlTask.status === 'error' || dlTask.status === 'cancelled'\n ? 'exception'\n : dlTask.status === 'success'\n ? 'success'\n : 'active'\n \"\n ></nz-progress>\n <div style=\"font-size: 11px; color: var(--app-text-muted, #64748b); margin-top: 2px\">\n @if (dlTask.status === \"downloading\") {\n \u0110ang t\u1EA3i: {{ dlTask.loadedBytes | formatBytes }}\n @if (dlTask.totalBytes) {\n / {{ dlTask.totalBytes | formatBytes }}\n }\n } @else if (dlTask.status === \"cancelled\") {\n <span style=\"color: #f59e0b\">\u0110\u00E3 h\u1EE7y t\u1EA3i xu\u1ED1ng gi\u1EEFa ch\u1EEBng.</span>\n } @else if (dlTask.status === \"error\") {\n <span style=\"color: #ef4444\">{{ dlTask.errorMessage || \"L\u1ED7i khi t\u1EA3i xu\u1ED1ng.\" }}</span>\n } @else {\n <span style=\"color: #10b981\">\u0110\u00E3 t\u1EA3i xu\u1ED1ng ho\u00E0n t\u1EA5t.</span>\n }\n </div>\n </div>\n }\n </div>\n }\n <div class=\"quota-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <div class=\"quota-title\" style=\"margin-bottom: 0\">\n <nz-icon nzType=\"cloud\"></nz-icon> Dung l\u01B0\u1EE3ng ({{ drive.quotaPercent() }}%)\n </div>\n @if (drive.isCurrentUserAdmin()) {\n <nz-tag nzColor=\"gold\" style=\"margin-right: 0; font-size: 11px\">Admin</nz-tag>\n }\n </div>\n <nz-progress [nzPercent]=\"drive.quotaPercent()\" nzSize=\"small\" [nzShowInfo]=\"false\"></nz-progress>\n <div class=\"quota-sub\">{{ drive.usedBytes() | formatBytes }} / {{ drive.quotaLimitBytes() | formatBytes }}</div>\n @if (drive.isCurrentUserAdmin()) {\n <button\n nz-button\n nzType=\"dashed\"\n nzSize=\"small\"\n nzBlock\n style=\"margin-top: 8px\"\n (click)=\"openPermissionMatrixDrawer(drive.currentFolderId())\"\n >\n <nz-icon nzType=\"table\"></nz-icon>\n Ma tr\u1EADn ph\u00E2n quy\u1EC1n\n </button>\n <button\n nz-button\n nzType=\"dashed\"\n nzSize=\"small\"\n nzBlock\n style=\"margin-top: 8px\"\n (click)=\"openQuotaAdminDrawer()\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"\u0110\u1EB7t Quota m\u1EB7c \u0111\u1ECBnh to\u00E0n h\u1EC7 th\u1ED1ng v\u00E0 thi\u1EBFt l\u1EADp Quota ri\u00EAng cho t\u1EEBng ng\u01B0\u1EDDi d\u00F9ng (Ch\u1EC9 Admin)\"\n -->\n <nz-icon nzType=\"setting\"></nz-icon> Qu\u1EA3n l\u00FD Quota (Admin)\n </button>\n }\n </div>\n </aside>\n <!-- KHU V\u1EF0C N\u1ED8I DUNG CH\u00CDNH (H\u1ED6 TR\u1EE2 K\u00C9O TH\u1EA2 FILE & FOLDER T\u1EEA FILE EXPLORER) -->\n <main\n class=\"drive-main\"\n [class.external-drag-active]=\"isExternalFileDragging()\"\n (dragenter)=\"onMainDragEnter($event)\"\n (dragover)=\"onMainDragOver($event)\"\n (dragleave)=\"onMainDragLeave($event)\"\n (drop)=\"onMainDrop($event)\"\n >\n @if (isExternalFileDragging()) {\n <div class=\"external-drop-banner\">\n <nz-icon nzType=\"cloud-upload\" class=\"drop-banner-icon\"></nz-icon>\n <div>\n <div class=\"drop-banner-title\">\n @if (dragOverFolderName(); as targetName) {\n Th\u1EA3 t\u1EADp tin / th\u01B0 m\u1EE5c t\u1EEB m\u00E1y t\u00EDnh \u0111\u1EC3 t\u1EA3i th\u1EB3ng v\u00E0o th\u01B0 m\u1EE5c: <strong>\"{{ targetName }}\"</strong>\n } @else {\n Th\u1EA3 t\u1EADp tin ho\u1EB7c th\u01B0 m\u1EE5c t\u1EEB File Explorer v\u00E0o \u0111\u00E2y \u0111\u1EC3 t\u1EA3i l\u00EAn th\u01B0 m\u1EE5c hi\u1EC7n t\u1EA1i\n }\n </div>\n <div class=\"drop-banner-sub\">\n H\u1ED7 tr\u1EE3 k\u00E9o th\u1EA3 nhi\u1EC1u file c\u00F9ng l\u00FAc ho\u1EB7c k\u00E9o nguy\u00EAn c\u1EA3 c\u00E2y th\u01B0 m\u1EE5c t\u1EEB m\u00E1y t\u00EDnh (T\u1EF1 \u0111\u1ED9ng Chunk Upload n\u1EBFu\n file &ge; 20MB)\n </div>\n </div>\n </div>\n }\n <!-- TOOLBAR + PAGINATION -->\n <header class=\"drive-toolbar\">\n <div>\n <nz-breadcrumb>\n <nz-breadcrumb-item\n (click)=\"navigateToFolder(null)\"\n (dragover)=\"onBreadcrumbDragOver($event, '__ROOT__')\"\n (dragleave)=\"onBreadcrumbDragLeave('__ROOT__')\"\n (drop)=\"onBreadcrumbDrop($event, null)\"\n [class.bc-drop-active]=\"dragOverBreadcrumbId() === '__ROOT__'\"\n class=\"cursor-pointer\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"K\u00E9o th\u1EA3 m\u1EE5c v\u00E0o \u0111\u00E2y \u0111\u1EC3 chuy\u1EC3n v\u1EC1 th\u01B0 m\u1EE5c g\u1ED1c\"\n -->\n <nz-icon nzType=\"home\"></nz-icon>\n {{ getRootTitle() }}\n </nz-breadcrumb-item>\n @for (bc of drive.breadcrumbs(); track bc.Id) {\n @if (drive.currentViewMode() !== \"CUSTOM_SPACE\" || bc.Id !== drive.currentCustomSpaceId()) {\n <nz-breadcrumb-item\n (click)=\"navigateToFolder(bc.Id)\"\n (dragover)=\"onBreadcrumbDragOver($event, bc.Id)\"\n (dragleave)=\"onBreadcrumbDragLeave(bc.Id)\"\n (drop)=\"onBreadcrumbDrop($event, bc.Id)\"\n [class.bc-drop-active]=\"dragOverBreadcrumbId() === bc.Id\"\n class=\"cursor-pointer\"\n >\n {{ bc.Name }}\n </nz-breadcrumb-item>\n }\n }\n </nz-breadcrumb>\n <!-- @if (drive.isCurrentUserAdmin() && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as physPath) {\n <div class=\"physical-path-bar\">\n <nz-icon nzType=\"folder-open\"></nz-icon>\n <span>\n \u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD: <code>{{ physPath }}</code>\n </span>\n <icon-copy [textToCopy]=\"physPath\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD tr\u00EAn Server\"></icon-copy>\n </div>\n } -->\n </div>\n <div class=\"toolbar-actions\">\n <nz-input-group [nzSuffix]=\"suffixIconSearch\" style=\"width: 250px\">\n <input\n type=\"text\"\n nz-input\n placeholder=\"T\u00ECm ki\u1EBFm t\u00E0i li\u1EC7u, th\u01B0 m\u1EE5c...\"\n [ngModel]=\"drive.keyword()\"\n (ngModelChange)=\"drive.keyword.set($event)\"\n (keyup.enter)=\"onSearch()\"\n />\n </nz-input-group>\n <ng-template #suffixIconSearch>\n <nz-icon nzType=\"search\" class=\"cursor-pointer\" (click)=\"onSearch()\"></nz-icon>\n </ng-template>\n <label\n nz-checkbox\n [ngModel]=\"drive.includeSubfolders()\"\n (ngModelChange)=\"onToggleIncludeSubfolders($event)\"\n style=\"user-select: none; white-space: nowrap; font-size: 13px\"\n nz-tooltip\n nzTooltipTitle=\"T\u00ECm c\u1EA3 th\u01B0 m\u1EE5c con\"\n >\n </label>\n <!-- T\u00D9Y CH\u1ECCN CH\u1EBE \u0110\u1ED8 XEM: C\u00C2Y TH\u01AF M\u1EE4C B\u00CAN TR\u00C1I + B\u1EA2NG PH\u1EB2NG vs TREE TABLE -->\n <div class=\"view-mode-switch\" nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"showSidebarTree() ? 'primary' : 'default'\"\n (click)=\"onToggleSidebarTree(!showSidebarTree())\"\n nz-tooltip\n [nzTooltipTitle]=\"\n showSidebarTree()\n ? '\u0110ang b\u1EADt C\u00E2y th\u01B0 m\u1EE5c b\u00EAn tr\u00E1i (Nh\u1EA5n \u0111\u1EC3 \u1EA9n)'\n : 'Hi\u1EC3n th\u1ECB C\u00E2y th\u01B0 m\u1EE5c tr\u1EF1c ti\u1EBFp \u1EDF c\u1ED9t b\u00EAn tr\u00E1i'\n \"\n >\n <nz-icon nzType=\"partition\"></nz-icon>\n </button>\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"!drive.isTreeTableView() ? 'primary' : 'default'\"\n (click)=\"onToggleTreeTableView(false)\"\n nz-tooltip\n nzTooltipTitle=\"Flat Table\"\n >\n <nz-icon nzType=\"unordered-list\"></nz-icon>\n <!-- B\u1EA3ng ph\u1EB3ng -->\n </button>\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"drive.isTreeTableView() ? 'primary' : 'default'\"\n (click)=\"onToggleTreeTableView(true)\"\n nz-tooltip\n nzTooltipTitle=\"Tree Table\"\n >\n <nz-icon nzType=\"apartment\"></nz-icon>\n <!-- Tree Table -->\n </button>\n @if (drive.isTreeTableView()) {\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"expandAllTreeFolders()\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"collapseAllTreeFolders()\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n }\n </div>\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drive.sortDesc() ? 'A \u2192 Z' : 'Z \u2192 A'\"\n (click)=\"toggleSortDirection()\"\n >\n <nz-icon [nzType]=\"drive.sortDesc() ? 'sort-descending' : 'sort-ascending'\"></nz-icon>\n </button>\n @if (drive.currentViewMode() === \"TRASH\") {\n <button\n type=\"button\"\n nz-button\n nzDanger\n nzType=\"primary\"\n nzSize=\"small\"\n [disabled]=\"drive.items().length === 0 || emptyingTrash()\"\n [nzLoading]=\"emptyingTrash()\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a v\u0129nh vi\u1EC5n to\u00E0n b\u1ED9 c\u00E1c m\u1EE5c trong th\u00F9ng r\u00E1c v\u00E0 gi\u1EA3i ph\u00F3ng dung l\u01B0\u1EE3ng Quota\"\n (click)=\"onEmptyTrash()\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c\n @if (drive.totalCount() > 0) {\n <span>({{ drive.totalCount() }})</span>\n }\n </button>\n }\n <button\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"refreshExplorer()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n <nz-pagination\n [nzSize]=\"'small'\"\n [nzPageIndex]=\"drive.pageIndex()\"\n [nzPageSize]=\"drive.pageSize()\"\n [nzTotal]=\"drive.totalCount()\"\n [nzShowSizeChanger]=\"true\"\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\n (nzPageIndexChange)=\"drive.loadNodes($event, drive.pageSize())\"\n (nzPageSizeChange)=\"drive.loadNodes(1, $event)\"\n >\n </nz-pagination>\n </div>\n </header>\n @if (drive.currentViewMode() === \"TRASH\" && drive.items().length > 0) {\n <div class=\"trash-info-banner\">\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-icon nzType=\"info-circle\" style=\"color: #ef4444; font-size: 16px\"></nz-icon>\n <span>\n C\u00E1c m\u1EE5c trong th\u00F9ng r\u00E1c v\u1EABn t\u00EDnh v\u00E0o dung l\u01B0\u1EE3ng h\u1EA1n ng\u1EA1ch (Quota) cho \u0111\u1EBFn khi b\u1ECB x\u00F3a v\u0129nh vi\u1EC5n.\n </span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzDanger\n nzType=\"link\"\n nzSize=\"small\"\n style=\"font-weight: 600; padding: 0\"\n [nzLoading]=\"emptyingTrash()\"\n (click)=\"onEmptyTrash()\"\n >\n <nz-icon nzType=\"clear\"></nz-icon> D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c ngay\n </button>\n </div>\n }\n <!-- DANH S\u00C1CH T\u1EACP TIN / TH\u01AF M\u1EE4C (H\u1ED6 TR\u1EE2 C\u1EA2 FLAT TABLE V\u00C0 TREE TABLE) -->\n <nz-table\n #explorerTable\n [nzData]=\"displayedTableItems()\"\n [nzLoading]=\"drive.loading()\"\n [nzBordered]=\"true\"\n [nzFrontPagination]=\"false\"\n [nzShowPagination]=\"false\"\n nzSize=\"small\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th class=\"sortable-th\" (click)=\"onSortColumn('Name')\">\n <div class=\"th-sort-wrap\">\n <span>T\u00EAn t\u00E0i li\u1EC7u / Th\u01B0 m\u1EE5c</span>\n <span class=\"sort-icon\" [class.active]=\"drive.sortBy() === 'Name'\">\n <nz-icon\n [nzType]=\"\n drive.sortBy() === 'Name' ? (drive.sortDesc() ? 'sort-descending' : 'sort-ascending') : 'swap'\n \"\n ></nz-icon>\n </span>\n </div>\n </th>\n <th nzWidth=\"150px\" class=\"sortable-th\" (click)=\"onSortColumn('OwnerName')\">\n <div class=\"th-sort-wrap\">\n <span>Ch\u1EE7 s\u1EDF h\u1EEFu</span>\n @if (drive.sortBy() === \"OwnerName\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"130px\" class=\"text-center sortable-th\" (click)=\"onSortColumn('AccessLevel')\">\n <div class=\"th-sort-wrap justify-center\">\n <span>Quy\u1EC1n truy c\u1EADp</span>\n @if (drive.sortBy() === \"AccessLevel\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"110px\" class=\"text-right sortable-th\" (click)=\"onSortColumn('SizeBytes')\">\n <div class=\"th-sort-wrap justify-end\">\n <span>K\u00EDch th\u01B0\u1EDBc</span>\n @if (drive.sortBy() === \"SizeBytes\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"145px\" class=\"text-center sortable-th\" (click)=\"onSortColumn('UpdatedDate')\">\n <div class=\"th-sort-wrap justify-center\">\n <span>C\u1EADp nh\u1EADt cu\u1ED1i</span>\n @if (drive.sortBy() === \"UpdatedDate\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <!-- <th nzWidth=\"210px\" class=\"text-center\">Thao t\u00E1c</th> -->\n </tr>\n </thead>\n <tbody>\n @for (item of explorerTable.data; track item.Id; let i = $index) {\n <tr\n [attr.draggable]=\"drive.currentViewMode() !== 'TRASH' && item.EffectiveAccess >= DriveAccessLevel.Editor\"\n (dragstart)=\"onRowDragStart($event, item)\"\n (dragend)=\"onRowDragEnd()\"\n (dragover)=\"onRowDragOver($event, item)\"\n (dragleave)=\"onRowDragLeave($event, item)\"\n (drop)=\"onRowDrop($event, item)\"\n (dblclick)=\"onRowDoubleClick(item)\"\n (contextmenu)=\"onContextMenu($event, menu, item)\"\n class=\"drive-row\"\n [class.dragging-row]=\"draggedNode()?.Id === item.Id\"\n [class.drop-target-active]=\"dragOverFolderId() === item.Id\"\n >\n <td class=\"text-center\">{{ i + 1 + (drive.pageIndex() - 1) * drive.pageSize() }}</td>\n <td\n [nzIndentSize]=\"drive.isTreeTableView() ? (item.treeLevel || 0) * 22 : 0\"\n [nzShowExpand]=\"drive.isTreeTableView() && isFolderLike(item) && !item.IsBrokenShortcut\"\n [nzExpand]=\"!!item.treeExpanded\"\n (nzExpandChange)=\"toggleExpandTreeFolder(item, $event)\"\n >\n <div class=\"node-name-cell\">\n <span class=\"node-icon-wrap\">\n <nz-icon\n [nzType]=\"isFolderLike(item) ? 'folder-fill' : getFileIcon(item)\"\n [style.color]=\"isFolderLike(item) ? '#f59e0b' : 'var(--primary-color)'\"\n class=\"node-icon\"\n ></nz-icon>\n @if (item.NodeType === DriveNodeType.Shortcut) {\n <span class=\"shortcut-badge\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'L\u1ED1i t\u1EAFt tr\u1ECF t\u1EDBi: ' + (item.ShortcutTargetName || item.Name)\"\n -->\n <nz-icon nzType=\"select\"></nz-icon>\n </span>\n }\n </span>\n <span\n class=\"node-title link-detail\"\n (click)=\"\n drive.isTreeTableView()\n ? toggleExpandTreeFolder(item, !item.treeExpanded)\n : onRowSingleClick(item)\n \"\n >{{ item.Name }}</span\n >\n @if (drive.keyword().trim() && item.ParentFolderName && item.ParentId !== drive.currentFolderId()) {\n <nz-tag\n nzColor=\"default\"\n style=\"margin-left: 6px; cursor: pointer\"\n (click)=\"$event.stopPropagation(); navigateToFolder(item.ParentId || null)\"\n >\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'\u0110ang n\u1EB1m trong th\u01B0 m\u1EE5c: ' + item.ParentFolderName + ' (Nh\u1EA5n \u0111\u1EC3 m\u1EDF th\u01B0 m\u1EE5c)'\"\n -->\n <nz-icon nzType=\"folder\"></nz-icon> {{ item.ParentFolderName }}\n </nz-tag>\n }\n @if (item.NodeType === DriveNodeType.Shortcut) {\n @if (item.IsBrokenShortcut) {\n <nz-tag nzColor=\"error\" style=\"margin-left: 6px\">M\u1EE5c g\u1ED1c \u0111\u00E3 x\u00F3a</nz-tag>\n } @else {\n <nz-tag nzColor=\"purple\" style=\"margin-left: 6px\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'\u0110\u00EDch: ' + (item.ShortcutTargetName || item.Name)\"\n -->\n <nz-icon nzType=\"link\"></nz-icon> L\u1ED1i t\u1EAFt\n </nz-tag>\n }\n }\n @if (item.IsStarred) {\n <nz-icon nzType=\"star\" nzTheme=\"fill\" style=\"color: #eab308; margin-left: 4px\"></nz-icon>\n }\n @if (item.IsShared) {\n <nz-tag nzColor=\"processing\" style=\"margin-left: 6px\">\u0110\u00E3 chia s\u1EBB</nz-tag>\n }\n @if (!item.InheritPermissions) {\n <nz-tag nzColor=\"warning\" nz-tooltip nzTooltipTitle=\"\u0110\u00E3 ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha\">\n \u0110\u1ED9c l\u1EADp\n </nz-tag>\n }\n </div>\n </td>\n <td>{{ item.OwnerName || item.OwnerId }}</td>\n <td class=\"text-center\">\n <nz-tag\n [nzColor]=\"\n item.EffectiveAccess >= DriveAccessLevel.Editor\n ? 'green'\n : item.EffectiveAccess >= DriveAccessLevel.Uploader\n ? 'cyan'\n : 'default'\n \"\n >\n {{\n item.EffectiveAccess >= DriveAccessLevel.Manager\n ? \"Qu\u1EA3n tr\u1ECB\"\n : item.EffectiveAccess >= DriveAccessLevel.Editor\n ? \"Ch\u1EC9nh s\u1EEDa\"\n : item.EffectiveAccess >= DriveAccessLevel.Uploader\n ? \"Xem & T\u1EA3i l\u00EAn\"\n : item.CanDownload && item.EffectiveAccess >= DriveAccessLevel.Downloader\n ? \"Xem & T\u1EA3i\"\n : \"Ch\u1EC9 xem\"\n }}\n </nz-tag>\n </td>\n <td class=\"text-right\">\n {{ isFolderLike(item) ? \"\u2014\" : (item.SizeBytes | formatBytes) }}\n </td>\n <td class=\"text-center\">{{ item.UpdatedDate | date: \"dd/MM/yyyy HH:mm\" }}</td>\n <!-- <td class=\"text-center\">\n <div class=\"action-btn-group\">\n @if (drive.currentViewMode() !== \"TRASH\") {\n @if (item.CanShare || item.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openShareDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chia s\u1EBB & Ph\u00E2n quy\u1EC1n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"share-alt\"></nz-icon>\n </button>\n }\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openMoveDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chuy\u1EC3n th\u01B0 m\u1EE5c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"drag\"></nz-icon>\n </button>\n }\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openCopyDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Sao ch\u00E9p\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"copy\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openShortcutDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"T\u1EA1o l\u1ED1i t\u1EAFt\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"link\"></nz-icon>\n </button>\n @if (\n item.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n item.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openRelocateDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD / \u00C1nh x\u1EA1 \u1ED5 c\u1EE9ng l\u01B0u tr\u1EEF\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"hdd\"></nz-icon>\n </button>\n }\n @if (\n isFileLike(item) &&\n !item.IsBrokenShortcut &&\n item.CanDownload &&\n item.EffectiveAccess >= DriveAccessLevel.Downloader\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); onDownloadItem(item)\"\n nz-tooltip\n nzTooltipTitle=\"T\u1EA3i xu\u1ED1ng\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"download\"></nz-icon>\n </button>\n }\n @if (\n isFileLike(item) && !item.IsBrokenShortcut && item.EffectiveAccess >= DriveAccessLevel.Editor\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openVersionDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"history\"></nz-icon>\n </button>\n }\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openFolderDrawer('rename', item)\"\n nz-tooltip\n [nzTooltipTitle]=\"\n item.EffectiveAccess >= DriveAccessLevel.Editor\n ? '\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt'\n : 'Xem chi ti\u1EBFt & Nh\u1EADt k\u00FD'\n \"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon\n [nzType]=\"item.EffectiveAccess >= DriveAccessLevel.Editor ? 'edit' : 'info-circle'\"\n ></nz-icon>\n </button>\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n (click)=\"$event.stopPropagation(); onSoftDelete(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chuy\u1EC3n v\u00E0o th\u00F9ng r\u00E1c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n }\n } @else {\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); onRestore(item)\"\n nz-tooltip\n nzTooltipTitle=\"Kh\u00F4i ph\u1EE5c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"rollback\"></nz-icon>\n </button>\n }\n @if (item.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n (click)=\"$event.stopPropagation(); onPermanentDelete(item)\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a v\u0129nh vi\u1EC5n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n }\n }\n </div>\n </td> -->\n </tr>\n }\n </tbody>\n </nz-table>\n <!-- CONTEXT MENU CHU\u1ED8T PH\u1EA2I -->\n <nz-dropdown-menu #menu=\"nzDropdownMenu\">\n @if (selectedContextItem(); as ctx) {\n <ul nz-menu>\n @if (drive.currentViewMode() === \"TRASH\") {\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"onRestore(ctx)\"><nz-icon nzType=\"rollback\"></nz-icon> Kh\u00F4i ph\u1EE5c m\u1EE5c n\u00E0y</li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Manager) {\n <li nz-menu-item nzDanger (click)=\"onPermanentDelete(ctx)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a v\u0129nh vi\u1EC5n m\u1EE5c n\u00E0y\n </li>\n }\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"onEmptyTrash()\">\n <nz-icon nzType=\"clear\"></nz-icon> D\u1ECDn s\u1EA1ch to\u00E0n b\u1ED9 th\u00F9ng r\u00E1c...\n </li>\n } @else {\n @if (ctx.NodeType === DriveNodeType.File) {\n <li nz-menu-item (click)=\"previewFile(ctx)\">\n <nz-icon nzType=\"eye\"></nz-icon> Xem tr\u1EF1c ti\u1EBFp (Drawer Preview)\n </li>\n @if (ctx.CanDownload && ctx.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <li nz-menu-item (click)=\"onDownloadItem(ctx)\"><nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng</li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"openVersionDrawer(ctx)\">\n <nz-icon nzType=\"history\"></nz-icon> L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n...\n </li>\n }\n <li nz-menu-divider></li>\n }\n @if (ctx.CanShare || ctx.EffectiveAccess >= DriveAccessLevel.Manager) {\n <li nz-menu-item (click)=\"openShareDrawer(ctx)\">\n <nz-icon nzType=\"usergroup-add\"></nz-icon> Ph\u00E2n quy\u1EC1n & Chia s\u1EBB...\n </li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"openMoveDrawer(ctx)\">\n <nz-icon nzType=\"drag\"></nz-icon> Di chuy\u1EC3n sang th\u01B0 m\u1EE5c kh\u00E1c...\n </li>\n }\n <li nz-menu-item (click)=\"openCopyDrawer(ctx)\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi (Copy to)...\n </li>\n <li nz-menu-item (click)=\"openShortcutDrawer(ctx)\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt (Shortcut)...\n </li>\n @if (\n ctx.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n ctx.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <li nz-menu-item (click)=\"openRelocateDrawer(ctx)\">\n <nz-icon nzType=\"hdd\"></nz-icon> \u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD / Chuy\u1EC3n \u1ED5 \u0111\u0129a...\n </li>\n }\n <li nz-menu-item (click)=\"openFolderDrawer('rename', ctx)\">\n <nz-icon [nzType]=\"ctx.EffectiveAccess >= DriveAccessLevel.Editor ? 'edit' : 'info-circle'\"></nz-icon>\n {{\n ctx.EffectiveAccess >= DriveAccessLevel.Editor ? \"\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt...\" : \"Xem chi ti\u1EBFt & Nh\u1EADt k\u00FD...\"\n }}\n </li>\n <li nz-menu-item (click)=\"drive.toggleStar(ctx.Id)\">\n <nz-icon nzType=\"star\"></nz-icon> {{ ctx.IsStarred ? \"B\u1ECF d\u1EA5u sao\" : \"Th\u00EAm d\u1EA5u sao\" }}\n </li>\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"onSoftDelete(ctx)\">\n <nz-icon nzType=\"delete\"></nz-icon> Chuy\u1EC3n v\u00E0o th\u00F9ng r\u00E1c\n </li>\n }\n @if (ctx.NodeType === DriveNodeType.Folder) {\n <li nz-menu-item (click)=\"openTemplateDrawer('create', undefined, ctx)\">\n <nz-icon nzType=\"apartment\"></nz-icon> L\u01B0u c\u1EA5u tr\u00FAc th\u01B0 m\u1EE5c l\u00E0m M\u1EABu...\n </li>\n }\n }\n </ul>\n }\n </nz-dropdown-menu>\n </main>\n </div>\n <!-- ========================================================================= -->\n <!-- DRAWER 1: CHIA S\u1EBA & PH\u00C2N QUY\u1EC0N (ACL / RBAC / SHARE LINKS) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"shareDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"920\"\n [nzClosable]=\"false\"\n [nzTitle]=\"shareDrawerTitleTpl\"\n [nzFooter]=\"shareDrawerFooterTpl\"\n (nzOnClose)=\"shareDrawerVisible = false\"\n >\n <ng-template #shareDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n @if (activeActionNode(); as node) {\n <nz-icon\n [nzType]=\"node.NodeType === DriveNodeType.Folder ? 'folder-fill' : getFileIcon(node)\"\n [style.color]=\"node.NodeType === DriveNodeType.Folder ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 18px\"\n ></nz-icon>\n <strong>Chia s\u1EBB & Ph\u00E2n quy\u1EC1n: {{ node.Name }}</strong>\n <nz-tag nzColor=\"blue\">{{ node.NodeType === DriveNodeType.Folder ? \"Th\u01B0 m\u1EE5c\" : \"T\u1EADp tin\" }}</nz-tag>\n }\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"shareDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (activeActionNode(); as node) {\n <lib-drive-share-modal [nodeId]=\"node.Id\"></lib-drive-share-modal>\n }\n </ng-container>\n <ng-template #shareDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"shareDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 2: L\u1ECACH S\u1EEC PHI\u00CAN B\u1EA2N T\u1EACP TIN (FILE VERSIONS) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"versionDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"760\"\n [nzClosable]=\"false\"\n [nzTitle]=\"versionDrawerTitleTpl\"\n [nzFooter]=\"versionDrawerFooterTpl\"\n (nzOnClose)=\"versionDrawerVisible = false\"\n >\n <ng-template #versionDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"history\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n: {{ activeActionNode()?.Name }}</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"versionDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (activeActionNode(); as node) {\n <lib-drive-version-modal\n [nodeId]=\"node.Id\"\n [nodeName]=\"node.Name\"\n [canEdit]=\"node.EffectiveAccess >= DriveAccessLevel.Editor\"\n [canDownload]=\"node.CanDownload && node.EffectiveAccess >= DriveAccessLevel.Downloader\"\n (closed)=\"versionDrawerVisible = false\"\n ></lib-drive-version-modal>\n }\n </ng-container>\n <ng-template #versionDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"versionDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 3: T\u1EA0O TH\u01AF M\u1EE4C M\u1EDAI / \u0110\u1ED4I T\u00CAN & CHI TI\u1EBET THU\u1ED8C T\u00CDNH + ACTIVITY LOG -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"folderDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"480\"\n [nzClosable]=\"false\"\n [nzTitle]=\"folderDrawerTitleTpl\"\n [nzFooter]=\"folderDrawerFooterTpl\"\n (nzOnClose)=\"folderDrawerVisible = false\"\n >\n <ng-template #folderDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon\n [nzType]=\"folderDrawerMode === 'create' ? 'folder-add' : canRenameTargetNode() ? 'edit' : 'info-circle'\"\n style=\"font-size: 18px; color: var(--primary-color)\"\n ></nz-icon>\n <strong>\n {{\n folderDrawerMode === \"create\"\n ? \"T\u1EA1o th\u01B0 m\u1EE5c m\u1EDBi\"\n : canRenameTargetNode()\n ? \"\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt m\u1EE5c\"\n : \"Chi ti\u1EBFt & Nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng\"\n }}\n </strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"folderDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n @if (folderDrawerMode === \"create\" && folderDrawerParentOverride; as parentOverride) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">T\u1EA1o b\u00EAn trong th\u01B0 m\u1EE5c cha:</span>\n <nz-tag nzColor=\"gold\"> <nz-icon nzType=\"folder-open\"></nz-icon> {{ parentOverride.Name }} </nz-tag>\n </div>\n </div>\n }\n <div>\n <label class=\"drawer-field-label\">\n {{ folderDrawerMode === \"create\" ? \"T\u00EAn th\u01B0 m\u1EE5c m\u1EDBi\" : \"T\u00EAn hi\u1EC3n th\u1ECB\" }}\n </label>\n <input\n nz-input\n [(ngModel)]=\"folderDrawerInputName\"\n [disabled]=\"folderDrawerMode === 'rename' && !canRenameTargetNode()\"\n [appAutoFocus]=\"folderDrawerVisible && (folderDrawerMode === 'create' || canRenameTargetNode())\"\n placeholder=\"Nh\u1EADp t\u00EAn th\u01B0 m\u1EE5c / t\u00E0i li\u1EC7u...\"\n (keyup.enter)=\"submitFolderDrawer()\"\n />\n </div>\n @if (folderDrawerMode === \"create\" && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as phys) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EBF \u0111\u1ED9 l\u01B0u tr\u1EEF:</span>\n <nz-tag nzColor=\"green\">Th\u01B0 m\u1EE5c v\u1EADt l\u00FD (Disk)</nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Th\u01B0 m\u1EE5c cha tr\u00EAn \u0111\u0129a:</span>\n <code class=\"break-word\">{{ phys }}</code>\n </div>\n </div>\n }\n @if (folderDrawerMode === \"rename\" && folderDrawerTargetNode; as target) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"target.NodeType === DriveNodeType.Folder ? 'folder-fill' : getFileIcon(target)\"\n [style.color]=\"target.NodeType === DriveNodeType.Folder ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ target.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n {{\n target.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c\"\n : \"T\u1EADp tin (\" + (target.Extension || target.MimeType || \"File\") + \")\"\n }}\n </div>\n </div>\n </div>\n <nz-divider style=\"margin: 10px 0\"></nz-divider>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EE7 s\u1EDF h\u1EEFu:</span>\n <strong>{{ target.OwnerName || target.OwnerId }}</strong>\n </div>\n @if (target.NodeType === DriveNodeType.File) {\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">K\u00EDch th\u01B0\u1EDBc:</span>\n <span>{{ target.SizeBytes | formatBytes }}</span>\n </div>\n }\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Quy\u1EC1n c\u1EE7a b\u1EA1n:</span>\n <nz-tag\n [nzColor]=\"\n target.EffectiveAccess >= DriveAccessLevel.Editor\n ? 'green'\n : target.EffectiveAccess >= DriveAccessLevel.Uploader\n ? 'cyan'\n : 'default'\n \"\n >\n {{\n target.EffectiveAccess >= DriveAccessLevel.Manager\n ? \"Qu\u1EA3n tr\u1ECB (Manager)\"\n : target.EffectiveAccess >= DriveAccessLevel.Editor\n ? \"Ch\u1EC9nh s\u1EEDa (Editor)\"\n : target.EffectiveAccess >= DriveAccessLevel.Uploader\n ? \"Xem & T\u1EA3i l\u00EAn (Uploader)\"\n : target.CanDownload && target.EffectiveAccess >= DriveAccessLevel.Downloader\n ? \"Xem & T\u1EA3i xu\u1ED1ng\"\n : \"Ch\u1EC9 xem (Viewer)\"\n }}\n </nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">K\u1EBF th\u1EEBa quy\u1EC1n:</span>\n <nz-tag [nzColor]=\"target.InheritPermissions ? 'blue' : 'warning'\">\n {{ target.InheritPermissions ? \"\u0110ang k\u1EBF th\u1EEBa\" : \"\u0110\u1ED9c l\u1EADp\" }}\n </nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">C\u1EADp nh\u1EADt cu\u1ED1i:</span>\n <span>{{ target.UpdatedDate | date: \"dd/MM/yyyy HH:mm\" }}</span>\n </div>\n @if (target.PhysicalRelativePath) {\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">\u0110\u01B0\u1EDDng d\u1EABn \u0111\u0129a:</span>\n <code class=\"break-word\">{{ target.PhysicalRelativePath }}</code>\n </div>\n }\n @if (drive.isCurrentUserAdmin() && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as physPath) {\n <div class=\"physical-path-bar\">\n <span style=\"word-break: break-all\">\n \u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD: <code style=\"padding-top: 0px\">{{ physPath }}</code>\n </span>\n <icon-copy [textToCopy]=\"physPath\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD tr\u00EAn Server\"></icon-copy>\n </div>\n }\n </div>\n <div>\n <label class=\"drawer-field-label\">Thao t\u00E1c nhanh</label>\n <div nz-flex nzWrap=\"wrap\" [nzGap]=\"8\">\n @if (target.CanShare || target.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openShareDrawer(target)\">\n <nz-icon nzType=\"share-alt\"></nz-icon> Chia s\u1EBB & Ph\u00E2n quy\u1EC1n\n </button>\n }\n @if (target.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openMoveDrawer(target)\">\n <nz-icon nzType=\"drag\"></nz-icon> Di chuy\u1EC3n\n </button>\n }\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openCopyDrawer(target)\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi\n </button>\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openShortcutDrawer(target)\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt\n </button>\n @if (\n target.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n target.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openRelocateDrawer(target)\">\n <nz-icon nzType=\"hdd\"></nz-icon> \u0110\u1ED5i \u1ED5 \u0111\u0129a v\u1EADt l\u00FD\n </button>\n }\n @if (target.NodeType === DriveNodeType.File) {\n @if (target.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openVersionDrawer(target)\">\n <nz-icon nzType=\"history\"></nz-icon> L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n\n </button>\n }\n @if (target.CanDownload && target.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <button nz-button nzSize=\"small\" (click)=\"onDownloadItem(target)\">\n <nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng\n </button>\n }\n }\n <button nz-button nzSize=\"small\" (click)=\"drive.toggleStar(target.Id)\">\n <nz-icon nzType=\"star\" [nzTheme]=\"target.IsStarred ? 'fill' : 'outline'\"></nz-icon>\n {{ target.IsStarred ? \"B\u1ECF sao\" : \"G\u1EAFn sao\" }}\n </button>\n </div>\n </div>\n <!-- NH\u1EACT K\u00DD HO\u1EA0T \u0110\u1ED8NG (ACTIVITY LOG) -->\n <div>\n <label class=\"drawer-field-label\">\n <nz-icon nzType=\"OrderedList\"></nz-icon> Nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng g\u1EA7n \u0111\u00E2y ({{ nodeActivities().length }})\n </label>\n <div class=\"drawer-meta-card\" style=\"max-height: 240px; overflow-y: auto\">\n @if (nodeActivities().length === 0) {\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">Ch\u01B0a c\u00F3 nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng.</div>\n } @else {\n @for (act of nodeActivities(); track act.Id) {\n <div style=\"padding: 6px 0; border-bottom: 1px dashed var(--app-border, #e2e8f0); font-size: 12px\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <nz-tag nzColor=\"blue\">{{ formatActivityAction(act.ActionType) }}</nz-tag>\n <span style=\"color: var(--app-text-muted, #64748b)\">{{\n act.CreatedDate | date: \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n </div>\n <div style=\"margin-top: 4px\">\n Th\u1EF1c hi\u1EC7n b\u1EDFi: <strong>{{ act.ActorUserName || act.ActorUserId || \"H\u1EC7 th\u1ED1ng\" }}</strong>\n </div>\n @if (act.DetailJson) {\n <div style=\"margin-top: 2px; color: var(--app-text-muted, #64748b); word-break: break-all\">\n <code>{{ formatActivityDetail(act) }}</code>\n </div>\n }\n </div>\n }\n }\n </div>\n </div>\n }\n @if (folderDrawerMode === \"create\") {\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 0\">\n <nz-icon nzType=\"apartment\" style=\"color: #d97706; margin-right: 4px\"></nz-icon>\n T\u1EA1o nhanh t\u1EEB M\u1EABu c\u00E2y th\u01B0 m\u1EE5c (T\u00F9y ch\u1ECDn)\n </label>\n <a style=\"font-size: 12px\" (click)=\"folderDrawerVisible = false; openTemplateDrawer('create')\">\n + \u0110\u1ECBnh ngh\u0129a m\u1EABu m\u1EDBi\n </a>\n </div>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Kh\u00F4ng d\u00F9ng m\u1EABu (Ch\u1EC9 t\u1EA1o 1 th\u01B0 m\u1EE5c \u0111\u01A1n) --\"\n [(ngModel)]=\"folderDrawerSelectedTemplateId\"\n (ngModelChange)=\"onFolderDrawerTemplateSelect($event)\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Ch\u1EC9 t\u1EA1o 1 th\u01B0 m\u1EE5c \u0111\u01A1n\"></nz-option>\n @for (tpl of drive.folderTemplates(); track tpl.Id) {\n <nz-option\n [nzValue]=\"tpl.Id\"\n [nzLabel]=\"'\uD83D\uDDC2 ' + tpl.Name + ' [' + tpl.Code + '] (' + tpl.TotalFolderCount + ' th\u01B0 m\u1EE5c)'\"\n ></nz-option>\n }\n </nz-select>\n\n @if (folderDrawerSelectedTemplateId) {\n <label nz-checkbox [(ngModel)]=\"folderDrawerUseWrapperFolder\" style=\"font-size: 12px; margin-top: 4px\">\n \u0110\u1EB7t to\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu b\u00EAn trong th\u01B0 m\u1EE5c g\u1ED1c\n <strong>\"{{ folderDrawerInputName || \"...\" }}\"</strong>\n </label>\n <div class=\"quota-sub\" style=\"margin-top: 2px\">\n N\u1EBFu b\u1ECF t\u00EDch, c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c con c\u1EE7a m\u1EABu s\u1EBD \u0111\u01B0\u1EE3c t\u1EA1o tr\u1EF1c ti\u1EBFp ngay trong th\u01B0 m\u1EE5c \u0111ang m\u1EDF.\n </div>\n }\n </div>\n }\n </div>\n </ng-container>\n <ng-template #folderDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"folderDrawerVisible = false\">\u0110\u00F3ng</button>\n @if (folderDrawerMode === \"create\" || canRenameTargetNode()) {\n <button nz-button nzType=\"primary\" (click)=\"submitFolderDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon>\n {{ folderDrawerMode === \"create\" ? \"T\u1EA1o th\u01B0 m\u1EE5c\" : \"L\u01B0u t\u00EAn m\u1EDBi\" }}\n </button>\n }\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 4: XEM TR\u1EF0C TUY\u1EBEN T\u00C0I LI\u1EC6U (PREVIEW DRAWER) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"previewDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"'75vw'\"\n [nzClosable]=\"false\"\n [nzTitle]=\"previewDrawerTitleTpl\"\n [nzFooter]=\"previewDrawerFooterTpl\"\n (nzOnClose)=\"previewDrawerVisible = false\"\n >\n <ng-template #previewDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"eye\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>{{ previewFileName }}</strong>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n @if (activeActionNode(); as node) {\n @if (node.CanDownload && node.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <button nz-button nzSize=\"small\" nzType=\"primary\" (click)=\"onDownloadItem(node)\">\n <nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng\n </button>\n }\n @if (node.CanShare || node.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button nz-button nzSize=\"small\" (click)=\"previewDrawerVisible = false; openShareDrawer(node)\">\n <nz-icon nzType=\"share-alt\"></nz-icon> Chia s\u1EBB\n </button>\n }\n @if (node.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"previewDrawerVisible = false; openVersionDrawer(node)\">\n <nz-icon nzType=\"history\"></nz-icon> Phi\u00EAn b\u1EA3n\n </button>\n }\n }\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"previewDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <extend-view-file-content\n [previewType]=\"previewType\"\n [previewContent]=\"previewContent\"\n ></extend-view-file-content>\n </ng-container>\n <ng-template #previewDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button type=\"button\" nz-button (click)=\"previewDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 5: T\u1EA0O L\u1ED0I T\u1EAET (CREATE SHORTCUT DRAWER CHO FILE & FOLDER) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"shortcutDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"shortcutDrawerTitleTpl\"\n [nzFooter]=\"shortcutDrawerFooterTpl\"\n (nzOnClose)=\"shortcutDrawerVisible = false\"\n >\n <ng-template #shortcutDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"link\" style=\"font-size: 18px; color: #7c3aed\"></nz-icon>\n <strong>T\u1EA1o l\u1ED1i t\u1EAFt (Shortcut)</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"shortcutDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (shortcutSourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.ShortcutTargetName || src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n M\u1EE5c g\u1ED1c: {{ isFolderLike(src) ? \"Th\u01B0 m\u1EE5c\" : \"T\u1EADp tin\" }} \u2022 Ch\u1EE7 s\u1EDF h\u1EEFu:\n {{ src.OwnerName || src.OwnerId }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">T\u00EAn l\u1ED1i t\u1EAFt</label>\n <input\n nz-input\n [(ngModel)]=\"shortcutInputName\"\n [appAutoFocus]=\"shortcutDrawerVisible\"\n placeholder=\"Nh\u1EADp t\u00EAn hi\u1EC3n th\u1ECB c\u1EE7a l\u1ED1i t\u1EAFt...\"\n (keyup.enter)=\"submitShortcutDrawer()\"\n />\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian l\u01B0u l\u1ED1i t\u1EAFt</label>\n <nz-select\n [(ngModel)]=\"shortcutSpaceKey\"\n (ngModelChange)=\"onShortcutSpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Th\u01B0 m\u1EE5c \u0111\u00EDch ch\u1EE9a l\u1ED1i t\u1EAFt</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"shortcutDestFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of availableFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n L\u1ED1i t\u1EAFt tr\u1ECF tr\u1EF1c ti\u1EBFp t\u1EDBi m\u1EE5c g\u1ED1c m\u00E0 kh\u00F4ng t\u1ED1n th\u00EAm dung l\u01B0\u1EE3ng l\u01B0u tr\u1EEF (0 B).\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #shortcutDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"shortcutDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitShortcutDrawer()\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 6: DI CHUY\u1EC2N FILE / FOLDER SANG TH\u01AF M\u1EE4C HO\u1EB6C KH\u00D4NG GIAN KH\u00C1C -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"moveDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"moveDrawerTitleTpl\"\n [nzFooter]=\"moveDrawerFooterTpl\"\n (nzOnClose)=\"moveDrawerVisible = false\"\n >\n <ng-template #moveDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"drag\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Di chuy\u1EC3n sang th\u01B0 m\u1EE5c / kh\u00F4ng gian kh\u00E1c</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"moveDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (moveSourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n Lo\u1EA1i:\n {{\n src.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c\"\n : src.NodeType === DriveNodeType.Shortcut\n ? \"L\u1ED1i t\u1EAFt\"\n : \"T\u1EADp tin\"\n }}\n \u2022 Kh\u00F4ng gian hi\u1EC7n t\u1EA1i: {{ src.IsOrgNode ? \"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\" : \"Drive c\u00E1 nh\u00E2n\" }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian \u0111\u00EDch</label>\n <nz-select\n [(ngModel)]=\"moveTargetSpaceKey\"\n (ngModelChange)=\"onMoveSpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Ch\u1ECDn th\u01B0 m\u1EE5c \u0111\u00EDch</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"moveTargetFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of moveTargetFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n M\u1EB9o: B\u1EA1n c\u00F3 th\u1EC3 k\u00E9o th\u1EA3 tr\u1EF1c ti\u1EBFp d\u00F2ng t\u00E0i li\u1EC7u/th\u01B0 m\u1EE5c v\u00E0o m\u1EE5c <strong>\"Drive c\u00E1 nh\u00E2n\"</strong> ho\u1EB7c\n <strong>\"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\"</strong> \u1EDF thanh menu b\u00EAn tr\u00E1i \u0111\u1EC3 chuy\u1EC3n nhanh qua l\u1EA1i gi\u1EEFa 2 kh\u00F4ng gian.\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #moveDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"moveDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitMoveDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon> Di chuy\u1EC3n t\u1EDBi \u0111\u00E2y\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 9: SAO CH\u00C9P T\u1EDAI (COPY TO DRAWER CHO FILE / FOLDER / SHORTCUT) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"copyDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"copyDrawerTitleTpl\"\n [nzFooter]=\"copyDrawerFooterTpl\"\n (nzOnClose)=\"copyDrawerVisible = false\"\n >\n <ng-template #copyDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"copy\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Sao ch\u00E9p t\u1EDBi (Copy To)</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"copyDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (copySourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n M\u1EE5c ngu\u1ED3n:\n {{\n src.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c (Sao ch\u00E9p \u0111\u1EC7 quy to\u00E0n b\u1ED9 nh\u00E1nh con)\"\n : src.NodeType === DriveNodeType.Shortcut\n ? \"L\u1ED1i t\u1EAFt\"\n : \"T\u1EADp tin\"\n }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">T\u00EAn b\u1EA3n sao (\u0110\u1EC3 tr\u1ED1ng \u0111\u1EC3 h\u1EC7 th\u1ED1ng t\u1EF1 \u0111\u1EB7t t\u00EAn)</label>\n <input\n nz-input\n [(ngModel)]=\"copyCustomName\"\n [appAutoFocus]=\"copyDrawerVisible\"\n placeholder=\"Nh\u1EADp t\u00EAn m\u1EDBi cho b\u1EA3n sao...\"\n (keyup.enter)=\"submitCopyDrawer()\"\n />\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian \u0111\u00EDch</label>\n <nz-select\n [(ngModel)]=\"copyTargetSpaceKey\"\n (ngModelChange)=\"onCopySpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Ch\u1ECDn th\u01B0 m\u1EE5c \u0111\u00EDch ch\u1EE9a b\u1EA3n sao</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"copyTargetFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of copyTargetFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n B\u1EA3n sao ho\u00E0n to\u00E0n \u0111\u1ED9c l\u1EADp v\u1EDBi m\u1EE5c g\u1ED1c v\u00E0 \u0111\u01B0\u1EE3c t\u00EDnh v\u00E0o h\u1EA1n ng\u1EA1ch c\u1EE7a ng\u01B0\u1EDDi t\u1EA1o b\u1EA3n sao.\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #copyDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"copyDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitCopyDrawer()\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi \u0111\u00E2y\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 7: \u0110\u1ED4I \u0110\u01AF\u1EDCNG D\u1EAAN V\u1EACT L\u00DD / \u00C1NH X\u1EA0 \u1ED4 C\u1EE8NG M\u1EDAI KHI K\u1EBET TH\u00DAC D\u1EF0 \u00C1N -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"relocateDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"500\"\n [nzClosable]=\"false\"\n [nzTitle]=\"relocateDrawerTitleTpl\"\n [nzFooter]=\"relocateDrawerFooterTpl\"\n (nzOnClose)=\"relocateDrawerVisible = false\"\n >\n <ng-template #relocateDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"hdd\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>\n {{ relocateTargetFolder() ? \"\u00C1nh x\u1EA1 / Chuy\u1EC3n \u1ED5 \u0111\u0129a th\u01B0 m\u1EE5c\" : \"C\u1EA5u h\u00ECnh RootPath l\u01B0u tr\u1EEF chung\" }}\n </strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"relocateDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n @if (relocateTargetFolder(); as folder) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon nzType=\"folder-fill\" style=\"font-size: 22px; color: #f59e0b\"></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ folder.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n \u0110\u01B0\u1EDDng d\u1EABn hi\u1EC7n t\u1EA1i:\n <code>{{ folder.PhysicalRelativePath || drive.currentPhysicalPath() || \"M\u1EB7c \u0111\u1ECBnh\" }}</code>\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD m\u1EDBi c\u1EE7a th\u01B0 m\u1EE5c (H\u1ED7 tr\u1EE3 \u1ED5 c\u1EE9ng kh\u00E1c / NAS)</label>\n <input\n nz-input\n [(ngModel)]=\"relocateNewPath\"\n [appAutoFocus]=\"relocateDrawerVisible\"\n placeholder=\"VD: E:Archive_2026DuAn_A ho\u1EB7c \\\\NAS01StorageDuAn_A\"\n (keyup.enter)=\"submitRelocateDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n Khi d\u1EF1 \u00E1n k\u1EBFt th\u00FAc v\u00E0 h\u1EA1 t\u1EA7ng chuy\u1EC3n th\u01B0 m\u1EE5c sang \u1ED5 c\u1EE9ng kh\u00E1c, \u0111\u1EB7t \u0111\u01B0\u1EDDng d\u1EABn m\u1EDBi t\u1EA1i \u0111\u00E2y \u0111\u1EC3 to\u00E0n b\u1ED9 th\u01B0\n m\u1EE5c con v\u00E0 file b\u00EAn trong t\u1EF1 \u0111\u1ED9ng map sang \u1ED5 c\u1EE9ng m\u1EDBi.\n </div>\n </div>\n <div class=\"drawer-meta-card\">\n <label nz-checkbox [(ngModel)]=\"relocateMoveFilesOnDisk\">\n <strong>T\u1EF1 \u0111\u1ED9ng di chuy\u1EC3n d\u1EEF li\u1EC7u v\u1EADt l\u00FD t\u1EEB \u0111\u01B0\u1EDDng d\u1EABn c\u0169 sang \u1ED5 \u0111\u0129a m\u1EDBi</strong>\n </label>\n <div class=\"quota-sub\" style=\"margin-left: 24px\">\n N\u1EBFu b\u1ED9 ph\u1EADn H\u1EA1 t\u1EA7ng \u0111\u00E3 copy/move s\u1EB5n th\u01B0 m\u1EE5c sang \u1ED5 c\u1EE9ng m\u1EDBi r\u1ED3i, h\u00E3y <strong>b\u1ECF ch\u1ECDn</strong> m\u1EE5c n\u00E0y \u0111\u1EC3\n h\u1EC7 th\u1ED1ng ch\u1EC9 c\u1EADp nh\u1EADt l\u1EA1i \u00E1nh x\u1EA1 \u0111\u01B0\u1EDDng d\u1EABn trong Database.\n </div>\n <label nz-checkbox [(ngModel)]=\"relocateSyncNewFiles\" style=\"margin-top: 6px\">\n <strong>\u0110\u1ED3ng b\u1ED9 b\u1ED5 sung c\u00E1c file/folder c\u00F3 s\u1EB5n t\u1EA1i \u0111\u01B0\u1EDDng d\u1EABn m\u1EDBi v\u00E0o Drive</strong>\n </label>\n </div>\n } @else {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">RootPath hi\u1EC7n t\u1EA1i:</span>\n <code class=\"break-word\">{{ drive.storageRootPath() || drive.currentPhysicalPath() }}</code>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EBF \u0111\u1ED9 th\u01B0 m\u1EE5c g\u1ED1c:</span>\n <nz-tag [nzColor]=\"drive.useSharedPhysicalRoot() ? 'green' : 'blue'\">\n {{\n drive.useSharedPhysicalRoot() ? \"D\u00F9ng chung 1 RootPath cho t\u1EA5t c\u1EA3 User\" : \"T\u00E1ch theo t\u1EEBng Username\"\n }}\n </nz-tag>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn RootPath chung m\u1EDBi tr\u00EAn Server</label>\n <input\n nz-input\n [(ngModel)]=\"relocateNewPath\"\n [appAutoFocus]=\"relocateDrawerVisible\"\n placeholder=\"VD: D:ProjectStorageDriveRoot ho\u1EB7c E:ArchiveDrive\"\n (keyup.enter)=\"submitRelocateDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n T\u1EA5t c\u1EA3 c\u00E1c th\u01B0 m\u1EE5c ch\u01B0a ghim \u1ED5 \u0111\u0129a ri\u00EAng s\u1EBD t\u1EF1 \u0111\u1ED9ng \u0111\u1ECDc/ghi theo RootPath m\u1EDBi n\u00E0y.\n </div>\n </div>\n }\n </div>\n </ng-container>\n <ng-template #relocateDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"relocateDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitRelocateDrawer()\">\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u \u00E1nh x\u1EA1 v\u1EADt l\u00FD\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 8: QU\u1EA2N L\u00DD H\u1EA0N NG\u1EA0CH DUNG L\u01AF\u1EE2NG (DEFAULT QUOTA & PER-USER QUOTA) -->\n <!-- CH\u1EC8 D\u00C0NH RI\u00CANG CHO QU\u1EA2N TR\u1ECA VI\u00CAN (ADMIN) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"quotaAdminDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"980\"\n [nzClosable]=\"false\"\n [nzTitle]=\"quotaAdminDrawerTitleTpl\"\n [nzFooter]=\"quotaAdminDrawerFooterTpl\"\n (nzOnClose)=\"quotaAdminDrawerVisible = false\"\n >\n <ng-template #quotaAdminDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"pie-chart\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Qu\u1EA3n l\u00FD H\u1EA1n ng\u1EA1ch Dung l\u01B0\u1EE3ng (Quota Management)</strong>\n <nz-tag nzColor=\"gold\">Ch\u1EC9 Admin</nz-tag>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"quotaAdminDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n <!-- PH\u1EA6N 1: C\u1EA4U H\u00CCNH QUOTA M\u1EB6C \u0110\u1ECANH TO\u00C0N H\u1EC6 TH\u1ED0NG -->\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <div>\n <div style=\"font-size: 14px; font-weight: 600\">\n <nz-icon nzType=\"cloud-server\" style=\"color: var(--primary-color); margin-right: 6px\"></nz-icon>\n 1. C\u1EA5u h\u00ECnh Quota m\u1EB7c \u0111\u1ECBnh (Default Quota)\n </div>\n <div class=\"quota-sub\">\n \u00C1p d\u1EE5ng t\u1EF1 \u0111\u1ED9ng cho ng\u01B0\u1EDDi d\u00F9ng m\u1EDBi ho\u1EB7c ng\u01B0\u1EDDi d\u00F9ng ch\u01B0a \u0111\u01B0\u1EE3c g\u00E1n h\u1EA1n ng\u1EA1ch ri\u00EAng.\n </div>\n </div>\n @if (quotaOverview(); as ov) {\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-tag nzColor=\"blue\">\n M\u1EB7c \u0111\u1ECBnh hi\u1EC7n t\u1EA1i: <strong>{{ ov.DefaultUserQuotaBytes | formatBytes }}</strong>\n </nz-tag>\n <nz-tag nzColor=\"purple\">\n T\u1ED5ng \u0111\u00E3 d\u00F9ng to\u00E0n h\u1EC7 th\u1ED1ng: <strong>{{ ov.TotalSystemUsedBytes | formatBytes }}</strong>\n </nz-tag>\n </div>\n }\n </div>\n <nz-divider style=\"margin: 8px 0\"></nz-divider>\n <div nz-flex nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <span style=\"font-size: 13px; font-weight: 500\">M\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh:</span>\n <input\n nz-input\n type=\"number\"\n min=\"1\"\n [(ngModel)]=\"defaultQuotaInputValue\"\n style=\"width: 120px\"\n placeholder=\"Nh\u1EADp dung l\u01B0\u1EE3ng\"\n />\n <nz-select [(ngModel)]=\"defaultQuotaInputUnit\" style=\"width: 90px\">\n <nz-option nzValue=\"MB\" nzLabel=\"MB\"></nz-option>\n <nz-option nzValue=\"GB\" nzLabel=\"GB\"></nz-option>\n <nz-option nzValue=\"TB\" nzLabel=\"TB\"></nz-option>\n </nz-select>\n <!-- C\u00E1c n\u00FAt ch\u1ECDn nhanh (Quick Presets) -->\n <div nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(1, 'GB')\">1 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(5, 'GB')\">5 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(10, 'GB')\">10 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(20, 'GB')\">20 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(50, 'GB')\">50 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(100, 'GB')\">100 GB</button>\n </div>\n <button nz-button nzType=\"primary\" (click)=\"onSaveDefaultQuota()\">\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u Quota m\u1EB7c \u0111\u1ECBnh\n </button>\n </div>\n <div style=\"margin-top: 4px\">\n <label nz-checkbox [(ngModel)]=\"applyDefaultToExistingUsers\">\n \u0110\u1ED3ng th\u1EDDi c\u1EADp nh\u1EADt m\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh m\u1EDBi n\u00E0y cho t\u1EA5t c\u1EA3 c\u00E1c ng\u01B0\u1EDDi d\u00F9ng hi\u1EC7n c\u00F3\n </label>\n </div>\n </div>\n <!-- PH\u1EA6N 2: \u0110\u1EB6T QUOTA RI\u00CANG CHO T\u1EEANG NG\u01AF\u1EDCI D\u00D9NG -->\n <div>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\" style=\"margin-bottom: 10px\">\n <div>\n <div style=\"font-size: 14px; font-weight: 600\">\n <nz-icon nzType=\"team\" style=\"color: var(--primary-color); margin-right: 6px\"></nz-icon>\n 2. Thi\u1EBFt l\u1EADp Quota cho t\u1EEBng ng\u01B0\u1EDDi d\u00F9ng ({{ quotaUsers().length }})\n </div>\n <div class=\"quota-sub\">\n T\u00F9y ch\u1EC9nh h\u1EA1n ng\u1EA1ch dung l\u01B0\u1EE3ng ri\u00EAng cho t\u1EEBng c\u00E1 nh\u00E2n ho\u1EB7c \u0111\u1EB7t l\u1EA1i v\u1EC1 m\u1EE9c m\u1EB7c \u0111\u1ECBnh.\n </div>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-input-group [nzSuffix]=\"quotaUserSearchSuffix\" style=\"width: 260px\">\n <input\n nz-input\n type=\"text\"\n placeholder=\"T\u00ECm theo t\u00E0i kho\u1EA3n, h\u1ECD t\u00EAn, email...\"\n [(ngModel)]=\"quotaUserSearchKeyword\"\n (keyup.enter)=\"reloadQuotaOverview()\"\n />\n </nz-input-group>\n <ng-template #quotaUserSearchSuffix>\n <nz-icon nzType=\"search\" class=\"cursor-pointer\" (click)=\"reloadQuotaOverview()\"></nz-icon>\n </ng-template>\n <button nz-button nzType=\"default\" (click)=\"reloadQuotaOverview()\" nz-tooltip nzTooltipTitle=\"T\u1EA3i l\u1EA1i\">\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n </div>\n </div>\n <nz-table\n #userQuotaTable\n [nzData]=\"quotaUsers()\"\n [nzLoading]=\"quotaLoading()\"\n nzSize=\"small\"\n [nzBordered]=\"true\"\n [nzPageSize]=\"10\"\n [nzShowPagination]=\"true\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th>Ng\u01B0\u1EDDi d\u00F9ng</th>\n <th nzWidth=\"220px\">\u0110\u00E3 d\u00F9ng / H\u1EA1n ng\u1EA1ch</th>\n <th nzWidth=\"105px\" class=\"text-center\">Lo\u1EA1i Quota</th>\n <th nzWidth=\"210px\">\u0110\u1EB7t h\u1EA1n ng\u1EA1ch m\u1EDBi</th>\n <th nzWidth=\"145px\" class=\"text-center\">Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (u of userQuotaTable.data; track u.UserId; let idx = $index) {\n <tr>\n <td class=\"text-center\">{{ idx + 1 }}</td>\n <td>\n <div style=\"font-weight: 600\">{{ u.FullName || u.UserName }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n <code>{{ u.UserName }}</code>\n @if (u.OrgName) {\n <span> \u2022 {{ u.OrgName }}</span>\n }\n @if (u.Email) {\n <span> \u2022 {{ u.Email }}</span>\n }\n </div>\n </td>\n <td>\n <div nz-flex nzJustify=\"space-between\" style=\"font-size: 12px; margin-bottom: 2px\">\n <span\n >{{ u.UsedBytes | formatBytes }} / <strong>{{ u.QuotaLimitBytes | formatBytes }}</strong></span\n >\n <span>{{ getUserQuotaPercent(u) }}%</span>\n </div>\n <nz-progress\n [nzPercent]=\"getUserQuotaPercent(u)\"\n nzSize=\"small\"\n [nzShowInfo]=\"false\"\n [nzStatus]=\"getUserQuotaPercent(u) >= 95 ? 'exception' : 'normal'\"\n ></nz-progress>\n </td>\n <td class=\"text-center\">\n @if (u.IsCustomQuota) {\n <nz-tag nzColor=\"orange\">T\u00F9y ch\u1EC9nh</nz-tag>\n } @else {\n <nz-tag nzColor=\"default\">M\u1EB7c \u0111\u1ECBnh</nz-tag>\n }\n </td>\n <td>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\n <input nz-input type=\"number\" min=\"1\" [(ngModel)]=\"u.editQuotaValue\" style=\"width: 90px\" />\n <nz-select [(ngModel)]=\"u.editQuotaUnit\" style=\"width: 80px\">\n <nz-option nzValue=\"MB\" nzLabel=\"MB\"></nz-option>\n <nz-option nzValue=\"GB\" nzLabel=\"GB\"></nz-option>\n <nz-option nzValue=\"TB\" nzLabel=\"TB\"></nz-option>\n </nz-select>\n </div>\n </td>\n <td class=\"text-center\">\n <div nz-flex nzJustify=\"center\" [nzGap]=\"6\">\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"onSaveUserQuota(u)\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"L\u01B0u h\u1EA1n ng\u1EA1ch ri\u00EAng cho ng\u01B0\u1EDDi d\u00F9ng n\u00E0y\"\n -->\n <nz-icon nzType=\"check\"></nz-icon> L\u01B0u\n </button>\n <button\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n [disabled]=\"!u.IsCustomQuota\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u1EB7t l\u1EA1i v\u1EC1 m\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh c\u1EE7a h\u1EC7 th\u1ED1ng\"\n (click)=\"onResetUserQuota(u)\"\n >\n <nz-icon nzType=\"undo\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n </div>\n </div>\n </ng-container>\n <ng-template #quotaAdminDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"quotaAdminDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 10: TH\u00CAM / C\u1EA4U H\u00CCNH M\u1EE4C CUSTOM B\u00CAN D\u01AF\u1EDAI \"T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA\" -->\n <!-- (V\u00ED d\u1EE5: \"T\u00E0i li\u1EC7u d\u1EF1 \u00E1n\" - Admin c\u00F3 th\u1EC3 b\u1EADt hi\u1EC3n th\u1ECB cho t\u1EA5t c\u1EA3 User) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"customSpaceDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"480\"\n [nzClosable]=\"false\"\n [nzTitle]=\"customSpaceDrawerTitleTpl\"\n [nzFooter]=\"customSpaceDrawerFooterTpl\"\n (nzOnClose)=\"customSpaceDrawerVisible = false\"\n >\n <ng-template #customSpaceDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon\n [nzType]=\"customSpaceIcon || 'project'\"\n style=\"font-size: 18px; color: var(--primary-color)\"\n ></nz-icon>\n <strong>{{\n customSpaceDrawerMode === \"create\" ? \"Th\u00EAm m\u1EE5c t\u00F9y ch\u1EC9nh d\u01B0\u1EDBi T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\" : \"C\u1EA5u h\u00ECnh m\u1EE5c t\u00F9y ch\u1EC9nh\"\n }}</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"customSpaceDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div>\n <label class=\"drawer-field-label\">T\u00EAn m\u1EE5c hi\u1EC3n th\u1ECB tr\u00EAn thanh menu tr\u00E1i</label>\n <input\n nz-input\n [(ngModel)]=\"customSpaceName\"\n [appAutoFocus]=\"customSpaceDrawerVisible\"\n placeholder=\"V\u00ED d\u1EE5: T\u00E0i li\u1EC7u d\u1EF1 \u00E1n, H\u1ED3 s\u01A1 th\u1EA7u, Quy tr\u00ECnh ISO...\"\n (keyup.enter)=\"submitCustomSpaceDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 4px\">\n M\u1EE5c n\u00E0y s\u1EBD xu\u1EA5t hi\u1EC7n ngay b\u00EAn d\u01B0\u1EDBi m\u1EE5c <strong>\"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\"</strong> tr\u00EAn thanh \u0111i\u1EC1u h\u01B0\u1EDBng b\u00EAn tr\u00E1i.\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">Bi\u1EC3u t\u01B0\u1EE3ng (Icon)</label>\n <nz-select [(ngModel)]=\"customSpaceIcon\" style=\"width: 100%\">\n <nz-option nzValue=\"project\" nzLabel=\"\uD83D\uDCCA D\u1EF1 \u00E1n (project)\"></nz-option>\n <nz-option nzValue=\"folder-open\" nzLabel=\"\uD83D\uDCC2 Th\u01B0 m\u1EE5c m\u1EDF (folder-open)\"></nz-option>\n <nz-option nzValue=\"book\" nzLabel=\"\uD83D\uDCD8 T\u00E0i li\u1EC7u / C\u1EA9m nang (book)\"></nz-option>\n <nz-option nzValue=\"safety-certificate\" nzLabel=\"\uD83D\uDEE1 Quy chu\u1EA9n / ISO (safety-certificate)\"></nz-option>\n <nz-option nzValue=\"solution\" nzLabel=\"\uD83D\uDCCB H\u1ED3 s\u01A1 nghi\u1EC7p v\u1EE5 (solution)\"></nz-option>\n <nz-option nzValue=\"database\" nzLabel=\"\uD83D\uDDC4 Kho d\u1EEF li\u1EC7u (database)\"></nz-option>\n </nz-select>\n </div>\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <div>\n <div style=\"font-weight: 600; font-size: 13px\">Hi\u1EC3n th\u1ECB cho t\u1EA5t c\u1EA3 ng\u01B0\u1EDDi d\u00F9ng (All Users)</div>\n <div class=\"quota-sub\">\n @if (drive.isCurrentUserAdmin()) {\n Khi b\u1EADt: T\u1EA5t c\u1EA3 t\u00E0i kho\u1EA3n trong h\u1EC7 th\u1ED1ng \u0111\u1EC1u nh\u00ECn th\u1EA5y v\u00E0 truy c\u1EADp \u0111\u01B0\u1EE3c m\u1EE5c n\u00E0y b\u00EAn d\u01B0\u1EDBi \"T\u00E0i li\u1EC7u \u0110\u01A1n\n v\u1ECB\".\n } @else {\n Ch\u1EC9 Qu\u1EA3n tr\u1ECB vi\u00EAn (Admin) m\u1EDBi c\u00F3 quy\u1EC1n b\u1EADt hi\u1EC3n th\u1ECB chung cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng.\n }\n </div>\n </div>\n <nz-switch\n [(ngModel)]=\"customSpaceVisibleToAll\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n nzCheckedChildren=\"All Users\"\n nzUnCheckedChildren=\"C\u00E1 nh\u00E2n\"\n ></nz-switch>\n </div>\n @if (customSpaceVisibleToAll) {\n <nz-divider style=\"margin: 8px 0\"></nz-divider>\n <div>\n <label class=\"drawer-field-label\">M\u1EE9c quy\u1EC1n m\u1EB7c \u0111\u1ECBnh cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng</label>\n <nz-select\n [(ngModel)]=\"customSpaceDefaultAccessLevel\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.None\" nzLabel=\"None\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"Ch\u1EC9 xem (Viewer)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"Xem & T\u1EA3i xu\u1ED1ng\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"Xem & T\u1EA3i l\u00EAn (Kh\u00F4ng \u0111\u01B0\u1EE3c x\u00F3a)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"Ch\u1EC9nh s\u1EEDa (Editor)\"></nz-option>\n </nz-select>\n </div>\n }\n </div>\n </div>\n </ng-container>\n <ng-template #customSpaceDrawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (customSpaceDrawerMode === \"edit\" && editingCustomSpace) {\n <button nz-button nzDanger nzType=\"default\" (click)=\"onDeleteCustomSpace(editingCustomSpace)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a m\u1EE5c n\u00E0y\n </button>\n }\n </div>\n <div nz-flex [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"customSpaceDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitCustomSpaceDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon>\n {{ customSpaceDrawerMode === \"create\" ? \"T\u1EA1o m\u1EE5c m\u1EDBi\" : \"L\u01B0u thay \u0111\u1ED5i\" }}\n </button>\n </div>\n </div>\n </ng-template>\n </nz-drawer>\n\n <nz-drawer\n [nzVisible]=\"matrixDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"'92vw'\"\n nzTitle=\"Ma tr\u1EADn Ph\u00E2n quy\u1EC1n T\u00E0i li\u1EC7u & Th\u01B0 m\u1EE5c\"\n (nzOnClose)=\"matrixDrawerVisible = false\"\n >\n <!-- (ACL / RBAC Matrix) -->\n <ng-container *nzDrawerContent>\n <lib-drive-permission-matrix\n [rootFolderId]=\"matrixRootNodeId\"\n [viewMode]=\"\n drive.currentViewMode() === 'ORG_DRIVE'\n ? 'ORG_DRIVE'\n : drive.currentViewMode() === 'CUSTOM_SPACE'\n ? 'CUSTOM_SPACE'\n : 'MY_DRIVE'\n \"\n [customSpaceId]=\"drive.currentCustomSpaceId()\"\n (saved)=\"drive.loadNodes()\"\n (closed)=\"matrixDrawerVisible = false\"\n >\n </lib-drive-permission-matrix>\n </ng-container>\n </nz-drawer>\n\n <!-- ========================================================================= -->\n <!-- DRAWER 11: \u0110\u1ECANH NGH\u0128A & C\u1EA4U H\u00CCNH C\u00C2Y TH\u01AF M\u1EE4C M\u1EAAU K\u00C8M PH\u00C2N QUY\u1EC0N T\u1EF0 \u0110\u1ED8NG -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"templateDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"760\"\n [nzClosable]=\"false\"\n [nzTitle]=\"templateDrawerTitleTpl\"\n [nzFooter]=\"templateDrawerFooterTpl\"\n (nzOnClose)=\"templateDrawerVisible = false\"\n >\n <ng-template #templateDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"apartment\" style=\"font-size: 18px; color: #d97706\"></nz-icon>\n <strong>\n {{ templateDrawerMode === \"create\" ? \"\u0110\u1ECBnh ngh\u0129a M\u1EABu C\u00E2y Th\u01B0 M\u1EE5c M\u1EDBi\" : \"C\u1EADp nh\u1EADt M\u1EABu C\u00E2y Th\u01B0 M\u1EE5c\" }}\n </strong>\n @if (totalConfiguredTemplatePermissions() > 0) {\n <nz-tag nzColor=\"cyan\">\uD83D\uDEE1 {{ totalConfiguredTemplatePermissions() }} quy\u1EC1n c\u00E0i s\u1EB5n</nz-tag>\n }\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"templateDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"14\">\n <div nz-flex [nzGap]=\"12\" nzWrap=\"wrap\">\n <div style=\"flex: 1.4; min-width: 220px\">\n <label class=\"drawer-field-label\">T\u00EAn m\u1EABu c\u00E2y th\u01B0 m\u1EE5c *</label>\n <input\n nz-input\n [(ngModel)]=\"templateInputName\"\n [appAutoFocus]=\"templateDrawerVisible\"\n placeholder=\"VD: H\u1ED3 s\u01A1 D\u1EF1 \u00E1n \u0110\u1EA5u th\u1EA7u, H\u1ED3 s\u01A1 H\u1EE3p \u0111\u1ED3ng...\"\n />\n </div>\n <div style=\"flex: 1; min-width: 170px\">\n <label class=\"drawer-field-label\">M\u00E3 m\u1EABu (D\u00F9ng g\u1ECDi API t\u1EEB Module kh\u00E1c)</label>\n <input nz-input [(ngModel)]=\"templateInputCode\" placeholder=\"VD: MAU_DU_AN, MAU_HOP_DONG...\" />\n </div>\n </div>\n\n <div>\n <label class=\"drawer-field-label\">M\u00F4 t\u1EA3 ng\u1EAFn</label>\n <input\n nz-input\n [(ngModel)]=\"templateInputDesc\"\n placeholder=\"M\u00F4 t\u1EA3 m\u1EE5c \u0111\u00EDch s\u1EED d\u1EE5ng ho\u1EB7c ph\u00E2n h\u1EC7 \u00E1p d\u1EE5ng...\"\n />\n </div>\n\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"12\">\n <div style=\"flex: 1\">\n <div style=\"font-weight: 600; font-size: 13px\">T\u1EA1o th\u01B0 m\u1EE5c g\u1ED1c b\u1ECDc ngo\u00E0i khi k\u00E9o th\u1EA3</div>\n <div class=\"quota-sub\">\n Khi b\u1EADt: K\u00E9o th\u1EA3 m\u1EABu v\u00E0o th\u01B0 m\u1EE5c \u0111\u00EDch s\u1EBD t\u1EA1o 1 th\u01B0 m\u1EE5c mang t\u00EAn m\u1EABu r\u1ED3i ch\u1EE9a c\u00E2y con b\u00EAn trong.\n </div>\n </div>\n <nz-switch\n style=\"flex-shrink: 0\"\n [(ngModel)]=\"templateCreateWrapperRoot\"\n nzCheckedChildren=\"C\u00F3 b\u1ECDc g\u1ED1c\"\n nzUnCheckedChildren=\"Bung tr\u1EF1c ti\u1EBFp\"\n ></nz-switch>\n </div>\n\n <nz-divider style=\"margin: 6px 0\"></nz-divider>\n\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"12\">\n <div style=\"flex: 1\">\n <div style=\"font-weight: 600; font-size: 13px\">Chia s\u1EBB m\u1EABu n\u00E0y cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng & ph\u00E2n h\u1EC7</div>\n <div class=\"quota-sub\">Cho ph\u00E9p m\u1ECDi ng\u01B0\u1EDDi d\u00F9ng v\u00E0 c\u00E1c Module nghi\u1EC7p v\u1EE5 kh\u00E1c s\u1EED d\u1EE5ng chung m\u1EABu n\u00E0y.</div>\n </div>\n <nz-switch\n style=\"flex-shrink: 0\"\n [(ngModel)]=\"templateVisibleToAll\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n nzCheckedChildren=\"To\u00E0n h\u1EC7 th\u1ED1ng\"\n nzUnCheckedChildren=\"C\u00E1 nh\u00E2n\"\n ></nz-switch>\n </div>\n </div>\n\n <!-- SO\u1EA0N TH\u1EA2O C\u1EA4U TR\u00DAC C\u00C2Y \u0110A C\u1EA4P & XEM TR\u01AF\u1EDAC TR\u1EF0C QUAN (NH\u1EA4N V\u00C0O D\u00D2NG \u0110\u1EC2 G\u00C1N QUY\u1EC0N RI\u00CANG) -->\n <div>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"6\" style=\"margin-bottom: 6px\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 0\">\n 1. C\u1EA5u tr\u00FAc C\u00E2y th\u01B0 m\u1EE5c (M\u1ED7i d\u00F2ng 1 th\u01B0 m\u1EE5c, th\u1EE5t l\u1EC1 2 kho\u1EA3ng tr\u1EAFng \u0111\u1EC3 t\u1EA1o c\u1EA5p con)\n </label>\n <div nz-flex [nzGap]=\"4\">\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('PROJECT')\">\n M\u1EABu D\u1EF1 \u00E1n\n </button>\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('CONTRACT')\">\n M\u1EABu H\u1EE3p \u0111\u1ED3ng\n </button>\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('TRAINING')\">\n M\u1EABu \u0110\u00E0o t\u1EA1o / KHCN\n </button>\n </div>\n </div>\n\n <div class=\"template-editor-grid\">\n <div>\n <textarea\n nz-input\n rows=\"11\"\n [(ngModel)]=\"templateIndentedText\"\n style=\"font-family: monospace; font-size: 12.5px; line-height: 1.55\"\n placeholder=\"- 01. H\u1ED3 s\u01A1 ph\u00E1p l\u00FD&#10; - 01.1. T\u1EDD tr\u00ECnh&#10; - 01.2. Quy\u1EBFt \u0111\u1ECBnh&#10;- 02. H\u1EE3p \u0111\u1ED3ng & Nghi\u1EC7m thu\"\n ></textarea>\n </div>\n\n <div class=\"template-tree-preview\">\n <div\n nz-flex\n nzJustify=\"space-between\"\n nzAlign=\"center\"\n style=\"font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--app-text-muted, #64748b)\"\n >\n <span>Xem tr\u01B0\u1EDBc ({{ previewTemplateFlatNodes().length }} th\u01B0 m\u1EE5c) \u2014 Nh\u1EA5n \u0111\u1EC3 g\u00E1n quy\u1EC1n:</span>\n </div>\n\n <!-- D\u00F2ng ch\u1ECDn Quy\u1EC1n g\u1ED1c to\u00E0n b\u1ED9 m\u1EABu -->\n <div\n class=\"preview-tree-row selectable-preview-row\"\n [class.active-perm-target]=\"selectedTemplatePermTarget() === '__ROOT__'\"\n (click)=\"selectTemplatePermissionTarget('__ROOT__')\"\n >\n <nz-icon nzType=\"global\" style=\"color: #0284c7; margin-right: 6px\"></nz-icon>\n <strong style=\"flex: 1; font-size: 12px\">To\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu (Quy\u1EC1n g\u1ED1c)</strong>\n @if (templateRootPermissions().length > 0) {\n <nz-tag nzColor=\"blue\" style=\"margin: 0; font-size: 10.5px; line-height: 16px; padding: 0 5px\">\n \uD83D\uDEE1 {{ templateRootPermissions().length }}\n </nz-tag>\n }\n </div>\n\n @for (node of previewTemplateFlatNodes(); track node.RelativePath) {\n <div\n class=\"preview-tree-row selectable-preview-row\"\n [class.active-perm-target]=\"selectedTemplatePermTarget() === node.RelativePath\"\n [style.padding-left.px]=\"8 + node.Level * 16\"\n (click)=\"selectTemplatePermissionTarget(node.RelativePath)\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"Nh\u1EA5n \u0111\u1EC3 c\u1EA5u h\u00ECnh ph\u00E2n quy\u1EC1n ri\u00EAng cho nh\u00E1nh th\u01B0 m\u1EE5c n\u00E0y\" -->\n <nz-icon nzType=\"folder-fill\" style=\"color: #f59e0b; margin-right: 6px\"></nz-icon>\n <span style=\"flex: 1; overflow: hidden; text-overflow: ellipsis\">{{ node.Name }}</span>\n @if (node.BreakInheritance) {\n <nz-tag\n nzColor=\"warning\"\n style=\"margin: 0 2px 0 0; font-size: 10px; line-height: 15px; padding: 0 4px\"\n nz-tooltip\n nzTooltipTitle=\"Ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha\"\n >\n \u0110\u1ED9c l\u1EADp\n </nz-tag>\n }\n @if (node.PermissionsCount > 0) {\n <nz-tag nzColor=\"cyan\" style=\"margin: 0; font-size: 10px; line-height: 15px; padding: 0 5px\">\n \uD83D\uDEE1 {{ node.PermissionsCount }}\n </nz-tag>\n }\n </div>\n }\n </div>\n </div>\n </div>\n\n <!-- ========================================================================= -->\n <!-- 2. C\u1EA4U H\u00CCNH PH\u00C2N QUY\u1EC0N M\u1EB6C \u0110\u1ECANH CHO M\u1EAAU C\u00C2Y TH\u01AF M\u1EE4C (ACL & RBAC) -->\n <!-- ========================================================================= -->\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <div>\n <div style=\"font-weight: 600; font-size: 13px\">\n <nz-icon nzType=\"safety-certificate\" style=\"color: #0284c7; margin-right: 4px\"></nz-icon>\n 2. Ph\u00E2n quy\u1EC1n c\u00E0i s\u1EB5n khi t\u1EA1o m\u1EDBi t\u1EEB M\u1EABu c\u00E2y th\u01B0 m\u1EE5c\n </div>\n <div class=\"quota-sub\">\n @if (selectedTemplatePermTarget() === \"__ROOT__\") {\n \u0110ang c\u1EA5u h\u00ECnh cho: <strong style=\"color: #0284c7\">\uD83C\uDF10 To\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu (Quy\u1EC1n g\u1ED1c)</strong> \u2014 T\u1EF1\n \u0111\u1ED9ng k\u1EBF th\u1EEBa xu\u1ED1ng m\u1ECDi th\u01B0 m\u1EE5c con.\n } @else {\n \u0110ang c\u1EA5u h\u00ECnh ri\u00EAng cho nh\u00E1nh:\n <strong style=\"color: #d97706\">\uD83D\uDCC2 {{ selectedTemplatePermTarget() }}</strong>\n <a style=\"margin-left: 8px; font-weight: 600\" (click)=\"selectTemplatePermissionTarget('__ROOT__')\">\n \u21A9 Quay v\u1EC1 Quy\u1EC1n g\u1ED1c to\u00E0n m\u1EABu\n </a>\n }\n </div>\n </div>\n\n @if (selectedTemplatePermTarget() !== \"__ROOT__\") {\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\n <span style=\"font-size: 12px\">Ng\u1EAFt k\u1EBF th\u1EEBa cha:</span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"activeTemplateTargetBreakInheritance()\"\n (ngModelChange)=\"onToggleTemplateNodeBreakInheritance($event)\"\n nzCheckedChildren=\"\u0110\u1ED9c l\u1EADp\"\n nzUnCheckedChildren=\"K\u1EBF th\u1EEBa\"\n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt \u0110\u1ED9c l\u1EADp: Th\u01B0 m\u1EE5c con n\u00E0y s\u1EBD ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha v\u00E0 ch\u1EC9 \u00E1p d\u1EE5ng danh s\u00E1ch quy\u1EC1n ri\u00EAng b\u00EAn d\u01B0\u1EDBi\"\n ></nz-switch>\n </div>\n }\n </div>\n\n <!-- Thanh ch\u1ECDn \u0110\u1ED1i t\u01B0\u1EE3ng (User / \u0110\u01A1n v\u1ECB / Vai tr\u00F2) & M\u1EE9c quy\u1EC1n -->\n <div nz-flex nzWrap=\"wrap\" [nzGap]=\"6\" nzAlign=\"center\" style=\"margin-top: 6px\">\n <nz-select\n [(ngModel)]=\"templatePermGranteeType\"\n (ngModelChange)=\"onTemplatePermGranteeTypeChange()\"\n nzSize=\"small\"\n style=\"width: 140px\"\n >\n <nz-option [nzValue]=\"DriveGranteeType.Org\" nzLabel=\"\uD83C\uDFE2 \u0110\u01A1n v\u1ECB (Org)\"></nz-option>\n <nz-option [nzValue]=\"DriveGranteeType.Role\" nzLabel=\"\uD83D\uDEE1 Vai tr\u00F2 (Role)\"></nz-option>\n <nz-option [nzValue]=\"DriveGranteeType.User\" nzLabel=\"\uD83D\uDC64 C\u00E1 nh\u00E2n (User)\"></nz-option>\n </nz-select>\n\n <nz-select\n nzShowSearch\n nzServerSearch\n nzSize=\"small\"\n nzPlaceHolder=\"T\u00ECm ch\u1ECDn User / \u0110\u01A1n v\u1ECB / Vai tr\u00F2...\"\n [(ngModel)]=\"templatePermSelectedGrantee\"\n (nzOnSearch)=\"onSearchTemplateGrantee($event)\"\n style=\"flex: 1; min-width: 210px\"\n >\n @for (g of templateGranteeOptions(); track g.GranteeId) {\n <nz-option [nzValue]=\"g\" [nzLabel]=\"g.DisplayName + ' (' + g.Code + ')'\"></nz-option>\n }\n </nz-select>\n\n <nz-select\n [(ngModel)]=\"templatePermAccessLevel\"\n [nzDisabled]=\"templatePermIsDeny\"\n nzSize=\"small\"\n style=\"width: 155px\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"\uD83D\uDC41 Ch\u1EC9 xem (10)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"\u2B07 Xem & T\u1EA3i (20)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"\u2601 Xem & T\u1EA3i l\u00EAn (35)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"\u270E Ch\u1EC9nh s\u1EEDa (40)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Manager\" nzLabel=\"\uD83D\uDC51 Qu\u1EA3n tr\u1ECB (50)\"></nz-option>\n </nz-select>\n\n <label\n nz-checkbox\n [(ngModel)]=\"templatePermIsDeny\"\n nz-tooltip\n nzTooltipTitle=\"C\u1EA5m truy c\u1EADp t\u01B0\u1EDDng minh (Explicit Deny) \u0111\u1ED1i v\u1EDBi \u0111\u1ED1i t\u01B0\u1EE3ng n\u00E0y tr\u00EAn nh\u00E1nh \u0111ang ch\u1ECDn\"\n style=\"font-size: 12px\"\n >\n C\u1EA5m (Deny)\n </label>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"primary\"\n nzSize=\"small\"\n [disabled]=\"!templatePermSelectedGrantee\"\n (click)=\"addPermissionToTemplateTarget()\"\n >\n <nz-icon nzType=\"user-add\"></nz-icon> Th\u00EAm quy\u1EC1n\n </button>\n </div>\n\n <!-- Danh s\u00E1ch c\u00E1c quy\u1EC1n \u0111\u00E3 \u0111\u1EB7t cho m\u1EE5c \u0111ang ch\u1ECDn -->\n @if (activeTemplateTargetPermissions().length === 0) {\n <div class=\"quota-sub\" style=\"padding: 8px 4px 2px\">\n @if (selectedTemplatePermTarget() === \"__ROOT__\") {\n Ch\u01B0a \u0111\u1EB7t quy\u1EC1n m\u1EB7c \u0111\u1ECBnh cho to\u00E0n m\u1EABu. H\u00E3y ch\u1ECDn \u0110\u01A1n v\u1ECB / Vai tr\u00F2 / C\u00E1 nh\u00E2n \u1EDF tr\u00EAn r\u1ED3i b\u1EA5m\n <strong>+ Th\u00EAm quy\u1EC1n</strong> (ho\u1EB7c b\u1EA5m v\u00E0o t\u1EEBng th\u01B0 m\u1EE5c b\u00EAn khung Xem tr\u01B0\u1EDBc \u0111\u1EC3 \u0111\u1EB7t quy\u1EC1n ri\u00EAng cho\n nh\u00E1nh con).\n } @else {\n Nh\u00E1nh <strong>\"{{ selectedTemplatePermTarget() }}\"</strong> ch\u01B0a c\u00F3 quy\u1EC1n ri\u00EAng (m\u1EB7c \u0111\u1ECBnh k\u1EBF th\u1EEBa t\u1EEB th\u01B0\n m\u1EE5c cha).\n }\n </div>\n } @else {\n <nz-table\n #tplPermTable\n [nzData]=\"activeTemplateTargetPermissions()\"\n nzSize=\"small\"\n [nzBordered]=\"true\"\n [nzFrontPagination]=\"false\"\n [nzShowPagination]=\"false\"\n style=\"margin-top: 6px\"\n >\n <thead>\n <tr>\n <th>\u0110\u1ED1i t\u01B0\u1EE3ng nh\u1EADn quy\u1EC1n</th>\n <th nzWidth=\"185px\">M\u1EE9c quy\u1EC1n \u00E1p d\u1EE5ng</th>\n <th nzWidth=\"95px\" class=\"text-center\">T\u1EA3i xu\u1ED1ng</th>\n <th nzWidth=\"65px\" class=\"text-center\">X\u00F3a</th>\n </tr>\n </thead>\n <tbody>\n @for (p of tplPermTable.data; track p.GranteeType + \":\" + p.GranteeId) {\n <tr>\n <td>\n <nz-tag\n [nzColor]=\"\n p.GranteeType === DriveGranteeType.User\n ? 'blue'\n : p.GranteeType === DriveGranteeType.Org\n ? 'cyan'\n : 'purple'\n \"\n >\n {{\n p.GranteeType === DriveGranteeType.User\n ? \"User\"\n : p.GranteeType === DriveGranteeType.Org\n ? \"\u0110\u01A1n v\u1ECB\"\n : \"Role\"\n }}\n </nz-tag>\n <strong>{{ p.GranteeName || p.GranteeId }}</strong>\n </td>\n <td>\n <nz-select\n nzSize=\"small\"\n [ngModel]=\"p.IsDeny ? 'DENY' : p.AccessLevel\"\n (ngModelChange)=\"updateTemplatePermissionLevel(p, $event)\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"\uD83D\uDC41 Ch\u1EC9 xem (10)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"\u2B07 Xem & T\u1EA3i (20)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"\u2601 Xem & T\u1EA3i l\u00EAn (35)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"\u270E Ch\u1EC9nh s\u1EEDa (40)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Manager\" nzLabel=\"\uD83D\uDC51 Qu\u1EA3n tr\u1ECB (50)\"></nz-option>\n <nz-option nzValue=\"DENY\" nzLabel=\"\uD83D\uDEAB C\u1EA5m (Deny)\"></nz-option>\n </nz-select>\n </td>\n <td class=\"text-center\">\n <nz-tag [nzColor]=\"p.CanDownload && !p.IsDeny ? 'green' : 'default'\">\n {{ p.CanDownload && !p.IsDeny ? \"Cho ph\u00E9p\" : \"Ch\u1EB7n\" }}\n </nz-tag>\n </td>\n <td class=\"text-center\">\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n nz-tooltip\n nzTooltipTitle=\"G\u1EE1 quy\u1EC1n n\u00E0y kh\u1ECFi m\u1EABu\"\n (click)=\"removePermissionFromTemplateTarget(p)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n }\n </div>\n </div>\n </ng-container>\n\n <ng-template #templateDrawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (templateDrawerMode === \"edit\" && editingTemplate) {\n <button nz-button nzDanger nzType=\"default\" (click)=\"onDeleteTemplate(editingTemplate)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a m\u1EABu n\u00E0y\n </button>\n }\n </div>\n <div nz-flex [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"templateDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitTemplateDrawer()\">\n <nz-icon nzType=\"save\"></nz-icon>\n {{ templateDrawerMode === \"create\" ? \"L\u01B0u m\u1EABu c\u00E2y th\u01B0 m\u1EE5c\" : \"C\u1EADp nh\u1EADt m\u1EABu\" }}\n </button>\n </div>\n </div>\n </ng-template>\n </nz-drawer>\n}\n", styles: [".drive-shell{display:grid;grid-template-columns:245px 1fr;min-height:calc(100vh - 85px);background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px;overflow:hidden}.drive-sidebar{padding:14px;background:var(--app-sidebar-bg, #f8fafc);border-right:1px solid var(--app-border, #e2e8f0);display:flex;flex-direction:column;gap:14px}.drive-nav{display:flex;flex-direction:column;gap:4px}.drive-nav a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:6px;color:var(--app-text, #334155);cursor:pointer;transition:background .15s}.drive-nav a.space-has-active-child{color:var(--primary-color, #1890ff);font-weight:600;background:color-mix(in srgb,var(--primary-color, #1890ff) 7%,transparent)}.drive-nav a:hover,.drive-nav a.active{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);color:var(--primary-color, #1890ff);font-weight:600}.org-nav-group{display:flex;flex-direction:column;gap:2px}.custom-space-link{font-size:13px}.custom-space-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.custom-space-badge{margin:0!important;font-size:10px;line-height:16px;padding:0 4px}.nav-inline-btn{border:none;background:transparent;color:inherit;cursor:pointer;padding:2px 4px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;opacity:.7}.nav-inline-btn:hover{opacity:1;background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.storage-mode-box{padding:10px 12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.upload-queue-box{padding:10px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px;max-height:180px;overflow-y:auto}.upload-task-row{margin-bottom:6px}.upload-task-name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quota-box{margin-top:auto;padding:12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.quota-title{font-size:13px;font-weight:600;margin-bottom:6px}.quota-sub{font-size:12px;color:var(--app-text-muted, #64748b);margin-top:4px}.drive-shell.sidebar-wide{grid-template-columns:335px 1fr}.sidebar-tree-header-bar{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;border-radius:6px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0)}.sidebar-tree-header-title{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--app-text, #334155)}.sidebar-tree-header-actions{display:inline-flex;align-items:center;gap:3px}.sidebar-tree-tool-btn{border:none;background:transparent;color:var(--app-text-muted, #64748b);width:22px;height:22px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:12px;transition:background .15s,color .15s}.sidebar-tree-tool-btn:hover,.sidebar-tree-tool-btn.active{background:color-mix(in srgb,var(--primary-color, #1890ff) 14%,transparent);color:var(--primary-color, #1890ff)}.sidebar-tree-filter-box{margin-top:-6px}.nav-item-with-tree{display:flex;flex-direction:column}.nav-caret-btn{border:none;background:transparent;color:inherit;width:18px;height:18px;padding:0;margin-left:-4px;margin-right:-2px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:11px;opacity:.75;flex-shrink:0;transition:transform .15s,background .15s,opacity .15s}.nav-caret-btn:hover{opacity:1;background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.sidebar-tree-container{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px 14px;padding-left:6px;border-left:1.5px dashed var(--app-border, #cbd5e1);max-height:320px;overflow-y:auto;overflow-x:hidden}.drive-shell.sidebar-wide .sidebar-tree-container{max-height:420px}.sidebar-tree-node{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;font-size:12.5px;color:var(--app-text, #334155);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .12s,color .12s;min-width:0}.sidebar-tree-node:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.sidebar-tree-node.active-breadcrumb-ancestor{font-weight:600;color:var(--primary-color, #1890ff)}.sidebar-tree-node.active-tree-node{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);color:var(--primary-color, #1890ff);font-weight:600;box-shadow:inset 2.5px 0 0 var(--primary-color, #1890ff)}.sidebar-tree-node.tree-drop-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 22%,transparent)!important;outline:1.5px dashed var(--primary-color, #1890ff);color:var(--primary-color, #1890ff);font-weight:600}.tree-node-caret{width:16px;height:16px;border:none;background:transparent;color:var(--app-text-muted, #64748b);padding:0;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;cursor:pointer;flex-shrink:0}.tree-node-caret:hover{color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent)}.tree-node-caret-spacer{width:16px;height:16px;display:inline-block;flex-shrink:0}.tree-node-folder-icon{font-size:15px;flex-shrink:0}.tree-node-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}.tree-node-quick-btn{border:none;background:transparent;color:var(--app-text-muted, #64748b);width:20px;height:20px;padding:0;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;opacity:0;cursor:pointer;flex-shrink:0;font-size:11px;transition:opacity .12s,background .12s,color .12s}.sidebar-tree-node:hover .tree-node-quick-btn{opacity:.85}.tree-node-quick-btn:hover{opacity:1!important;color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.sidebar-tree-empty{padding:4px 8px 4px 20px;font-size:11.5px;color:var(--app-text-muted, #94a3b8);font-style:italic}.drive-main{position:relative;padding:16px;display:flex;flex-direction:column;gap:12px;transition:background .15s,border-color .15s}.drive-main.external-drag-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 6%,var(--app-container-bg, #ffffff));outline:2px dashed var(--primary-color, #1890ff);outline-offset:-6px}.external-drop-banner{pointer-events:none;display:flex;align-items:center;gap:14px;padding:12px 18px;border-radius:8px;background:color-mix(in srgb,var(--primary-color, #1890ff) 14%,var(--app-container-bg, #ffffff));border:1px dashed var(--primary-color, #1890ff);color:var(--app-text, #1e293b)}.drop-banner-icon{font-size:28px;color:var(--primary-color, #1890ff)}.drop-banner-title{font-size:14px;font-weight:500}.drop-banner-sub{font-size:12px;color:var(--app-text-muted, #64748b);margin-top:2px}.drive-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--app-border, #f1f5f9)}.trash-info-banner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:9px 14px;border-radius:8px;background:#ef44440f;border:1px solid rgba(239,68,68,.24);font-size:13px;color:var(--app-text, #334155)}.physical-path-bar{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;color:var(--app-text-muted, #64748b)}.toolbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.drive-row{cursor:pointer;transition:background .15s,outline .15s}.drive-row.dragging-row{opacity:.45}.drive-row.drop-target-active>td{background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)!important;border-top:1px dashed var(--primary-color, #1890ff);border-bottom:1px dashed var(--primary-color, #1890ff)}.bc-drop-active,.drive-nav a.nav-drop-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 22%,transparent)!important;outline:1.5px dashed var(--primary-color, #1890ff);color:var(--primary-color, #1890ff);font-weight:600}.node-name-cell{display:flex;align-items:center;gap:8px}.node-icon-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center}.node-icon{font-size:18px}.shortcut-badge{position:absolute;right:-5px;bottom:-3px;width:13px;height:13px;border-radius:50%;background:#7c3aed;color:#fff;font-size:9px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 0 1.5px var(--app-container-bg, #ffffff)}.node-title{font-weight:500}.action-btn-group{display:inline-flex;align-items:center;justify-content:center;gap:4px}.action-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;background:transparent;border-radius:6px;cursor:pointer;font-size:15px;transition:background .15s,transform .1s}.action-icon-btn:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 12%,transparent);transform:translateY(-1px)}.action-icon-btn.color-warn:hover{background:#ef44441f}.sortable-th{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s,color .15s}.sortable-th:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 8%,var(--app-sidebar-bg, #f8fafc))!important;color:var(--primary-color, #1890ff)}.th-sort-wrap{display:inline-flex;align-items:center;gap:6px;width:100%}.th-sort-wrap.justify-center{justify-content:center}.th-sort-wrap.justify-end{justify-content:flex-end}.sort-icon{font-size:13px;opacity:.35;transition:opacity .15s,color .15s}.sort-icon.active{opacity:1;color:var(--primary-color, #1890ff)}.sortable-th:hover .sort-icon{opacity:.85}.drawer-field-label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--app-text, #334155)}.drawer-meta-card{padding:12px 14px;background:var(--app-sidebar-bg, #f8fafc);border:1px solid var(--app-border, #e2e8f0);border-radius:8px;display:flex;flex-direction:column;gap:8px}.drawer-meta-header{display:flex;align-items:center;gap:10px}.drawer-meta-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}.meta-label{color:var(--app-text-muted, #64748b)}.template-sidebar-box{padding:10px 12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.template-chip-list{display:flex;flex-direction:column;gap:6px;max-height:175px;overflow-y:auto}.template-drag-item{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 8px;border-radius:6px;border:1px dashed var(--app-border, #cbd5e1);background:var(--app-sidebar-bg, #f8fafc);cursor:grab;transition:all .15s}.template-drag-item:hover{border-color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.template-item-title{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-item-sub{font-size:10.5px;color:var(--app-text-muted, #64748b)}.template-editor-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:10px}.template-tree-preview{border:1px solid var(--app-border, #e2e8f0);border-radius:6px;padding:10px;background:var(--app-sidebar-bg, #f8fafc);max-height:450px;overflow-y:auto}.preview-tree-row{display:flex;align-items:center;font-size:12.5px;padding:2.5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selectable-preview-row{cursor:pointer;padding:4px 6px;border-radius:5px;transition:background .12s,border-color .12s;border:1px solid transparent}.selectable-preview-row:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.selectable-preview-row.active-perm-target{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);border-color:var(--primary-color, #1890ff);font-weight:600}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i6.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i6.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i6.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i6.NzTdAddOnComponent, selector: "td[nzChecked], td[nzDisabled], td[nzIndeterminate], td[nzIndentSize], td[nzExpand], td[nzShowExpand], td[nzShowCheckbox]", inputs: ["nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzIndentSize", "nzShowExpand", "nzShowCheckbox", "nzExpand", "nzExpandIcon"], outputs: ["nzCheckedChange", "nzExpandChange"] }, { kind: "component", type: i6.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i6.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i6.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "ngmodule", type: NzPaginationModule }, { kind: "component", type: i7.NzPaginationComponent, selector: "nz-pagination", inputs: ["nzShowTotal", "nzItemRender", "nzSize", "nzPageSizeOptions", "nzShowSizeChanger", "nzShowQuickJumper", "nzSimple", "nzDisabled", "nzResponsive", "nzHideOnSinglePage", "nzTotal", "nzPageIndex", "nzPageSize"], outputs: ["nzPageSizeChange", "nzPageIndexChange"], exportAs: ["nzPagination"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzBreadCrumbModule }, { kind: "component", type: i10.NzBreadCrumbComponent, selector: "nz-breadcrumb", inputs: ["nzAutoGenerate", "nzSeparator", "nzRouteLabel", "nzRouteLabelFn", "nzRouteFn"], exportAs: ["nzBreadcrumb"] }, { kind: "component", type: i10.NzBreadCrumbItemComponent, selector: "nz-breadcrumb-item", inputs: ["nzOverlay"], exportAs: ["nzBreadcrumbItem"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i4$2.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "component", type: i5$4.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i14.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "ngmodule", type: NzProgressModule }, { kind: "component", type: i2$7.NzProgressComponent, selector: "nz-progress", inputs: ["nzShowInfo", "nzWidth", "nzStrokeColor", "nzSize", "nzFormat", "nzSuccessPercent", "nzPercent", "nzStrokeWidth", "nzGapDegree", "nzStatus", "nzType", "nzGapPosition", "nzStrokeLinecap", "nzSteps"], exportAs: ["nzProgress"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i11.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "ngmodule", type: NzDividerModule }, { kind: "component", type: i21.NzDividerComponent, selector: "nz-divider", inputs: ["nzText", "nzType", "nzOrientation", "nzVariant", "nzDashed", "nzPlain"], exportAs: ["nzDivider"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i13$2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i13$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i13$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i3$2.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId", "nzName"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "pipe", type: FormatBytesPipe, name: "formatBytes" }, { kind: "directive", type: AutoFocusDirective, selector: "[appAutoFocus]", inputs: ["appAutoFocus"] }, { kind: "component", type: ExtendViewFileContentComponent, selector: "extend-view-file-content", inputs: ["previewType", "previewContent"] }, { kind: "component", type: DriveShareModalComponent, selector: "lib-drive-share-modal", inputs: ["nodeId"] }, { kind: "component", type: DriveVersionModalComponent, selector: "lib-drive-version-modal", inputs: ["nodeId", "nodeName", "canEdit", "canDownload"], outputs: ["closed"] }, { kind: "component", type: DriveShareViewerComponent, selector: "lib-drive-share-viewer", inputs: ["token"], outputs: ["backToDrive"] }, { kind: "component", type: IconCopy, selector: "icon-copy", inputs: ["textToCopy", "tooltip", "size"] }, { kind: "component", type: DrivePermissionMatrixComponent, selector: "lib-drive-permission-matrix", inputs: ["viewMode", "scope", "customSpaceId", "rootFolderId", "rootNodeId"], outputs: ["saved", "closed"] }] });
33944
34020
  }
33945
34021
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: DriveExplorerComponent, decorators: [{
33946
34022
  type: Component,
@@ -33975,7 +34051,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
33975
34051
  DriveShareViewerComponent,
33976
34052
  IconCopy,
33977
34053
  DrivePermissionMatrixComponent,
33978
- ], providers: [NzImageService], template: "@if (activeShareToken(); as sToken) {\n <lib-drive-share-viewer [token]=\"sToken\" (backToDrive)=\"closeEmbeddedShareViewer()\"></lib-drive-share-viewer>\n} @else {\n <div class=\"drive-shell\" [class.sidebar-wide]=\"sidebarWideMode() && showSidebarTree()\">\n <!-- SIDEBAR \u0110I\u1EC0U H\u01AF\u1EDANG & QUOTA -->\n <aside class=\"drive-sidebar\">\n <div nz-flex nzVertical nzGap=\"small\">\n <button\n nz-button\n nzType=\"primary\"\n nzBlock\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"fileInput.click()\"\n >\n <nz-icon nzType=\"cloud-upload\"></nz-icon> T\u1EA3i t\u1EADp tin l\u00EAn\n </button>\n <input #fileInput type=\"file\" multiple hidden (change)=\"onFilesSelected($event)\" />\n <button\n nz-button\n nzType=\"default\"\n nzBlock\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"openFolderDrawer('create')\"\n >\n <nz-icon nzType=\"folder-add\"></nz-icon> T\u1EA1o th\u01B0 m\u1EE5c m\u1EDBi\n </button>\n </div>\n <!-- THANH T\u00D9Y CH\u1ECCN HI\u1EC2N TH\u1ECA C\u00C2Y TH\u01AF M\u1EE4C B\u00CAN TR\u00C1I (SIDEBAR FOLDER TREE OPTIONS) -->\n <div class=\"sidebar-tree-header-bar\">\n <span class=\"sidebar-tree-header-title\">\n <nz-icon nzType=\"partition\" style=\"color: var(--primary-color, #1890ff)\"></nz-icon>\n <span>C\u00E2y th\u01B0 m\u1EE5c</span>\n </span>\n <div class=\"sidebar-tree-header-actions\">\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng nhanh c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c\"\n (click)=\"expandAllSidebarTreeNodes()\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c\"\n (click)=\"collapseAllSidebarTreeNodes()\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi c\u00E2y th\u01B0 m\u1EE5c\"\n (click)=\"refreshAllExpandedSidebarTrees()\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n [class.active]=\"sidebarWideMode()\"\n nz-tooltip\n [nzTooltipTitle]=\"\n sidebarWideMode() ? 'Thu g\u1ECDn \u0111\u1ED9 r\u1ED9ng c\u1ED9t tr\u00E1i' : 'M\u1EDF r\u1ED9ng \u0111\u1ED9 r\u1ED9ng c\u1ED9t tr\u00E1i \u0111\u1EC3 xem c\u00E2y th\u01B0 m\u1EE5c r\u00F5 h\u01A1n'\n \"\n (click)=\"onToggleSidebarWideMode()\"\n >\n <nz-icon nzType=\"column-width\"></nz-icon>\n </button>\n }\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"showSidebarTree()\"\n (ngModelChange)=\"onToggleSidebarTree($event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt / T\u1EAFt hi\u1EC3n th\u1ECB c\u00E2y th\u01B0 m\u1EE5c tr\u1EF1c ti\u1EBFp b\u00EAn tr\u00E1i\"\n ></nz-switch>\n </div>\n </div>\n\n @if (showSidebarTree()) {\n <div class=\"sidebar-tree-filter-box\">\n <nz-input-group [nzPrefix]=\"sidebarFilterPrefixTpl\" [nzSuffix]=\"sidebarFilterClearTpl\" nzSize=\"small\">\n <input\n nz-input\n type=\"text\"\n placeholder=\"L\u1ECDc nhanh th\u01B0 m\u1EE5c tr\u00EAn c\u00E2y...\"\n [ngModel]=\"sidebarTreeFilter()\"\n (ngModelChange)=\"onSidebarTreeFilterChange($event)\"\n />\n </nz-input-group>\n <ng-template #sidebarFilterPrefixTpl>\n <nz-icon nzType=\"filter\" style=\"color: var(--app-text-muted, #94a3b8); font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #sidebarFilterClearTpl>\n @if (sidebarTreeFilter()) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: var(--app-text-muted, #94a3b8); font-size: 12px\"\n (click)=\"onSidebarTreeFilterChange('')\"\n ></nz-icon>\n }\n </ng-template>\n </div>\n }\n\n <nav class=\"drive-nav\">\n <!-- 1. DRIVE C\u00C1 NH\u00C2N + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"drive.currentViewMode() === 'MY_DRIVE' && (!drive.currentFolderId() || !showSidebarTree())\"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'MY_DRIVE' && !!drive.currentFolderId() && showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverNavSpace() === 'MY_DRIVE'\"\n (click)=\"switchView('MY_DRIVE')\"\n (dragover)=\"onNavSpaceDragOver($event, 'MY_DRIVE')\"\n (dragleave)=\"onNavSpaceDragLeave('MY_DRIVE')\"\n (drop)=\"onNavSpaceDrop($event, 'MY_DRIVE')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'MY_DRIVE')\"\n [title]=\"\n isSidebarSpaceExpanded('MY_DRIVE') ? 'Thu g\u1ECDn c\u00E2y Drive c\u00E1 nh\u00E2n' : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c Drive c\u00E1 nh\u00E2n'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('MY_DRIVE')\n ? 'loading'\n : isSidebarSpaceExpanded('MY_DRIVE')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"hdd\"></nz-icon>\n <span style=\"flex: 1\">Drive c\u00E1 nh\u00E2n</span>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'MY_DRIVE' }\"></ng-container>\n </div>\n\n <!-- 2. T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA & C\u00C1C M\u1EE4C T\u00D9Y CH\u1EC8NH (CUSTOM SPACES) + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"org-nav-group\">\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"\n drive.currentViewMode() === 'ORG_DRIVE' && (!drive.currentFolderId() || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'ORG_DRIVE' && !!drive.currentFolderId() && showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverNavSpace() === 'ORG_DRIVE'\"\n (click)=\"switchView('ORG_DRIVE')\"\n (dragover)=\"onNavSpaceDragOver($event, 'ORG_DRIVE')\"\n (dragleave)=\"onNavSpaceDragLeave('ORG_DRIVE')\"\n (drop)=\"onNavSpaceDrop($event, 'ORG_DRIVE')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'ORG_DRIVE')\"\n [title]=\"\n isSidebarSpaceExpanded('ORG_DRIVE')\n ? 'Thu g\u1ECDn c\u00E2y T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB'\n : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('ORG_DRIVE')\n ? 'loading'\n : isSidebarSpaceExpanded('ORG_DRIVE')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"apartment\"></nz-icon>\n <span style=\"flex: 1\">T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB</span>\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n nz-tooltip\n nzTooltipTitle=\"Th\u00EAm m\u1EE5c t\u00F9y ch\u1EC9nh b\u00EAn d\u01B0\u1EDBi T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (VD: T\u00E0i li\u1EC7u d\u1EF1 \u00E1n)\"\n (click)=\"$event.stopPropagation(); openCustomSpaceDrawer('create')\"\n >\n <nz-icon nzType=\"plus\"></nz-icon>\n </button>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'ORG_DRIVE' }\"></ng-container>\n </div>\n\n <!-- DANH S\u00C1CH C\u00C1C M\u1EE4C CUSTOM B\u00CAN D\u01AF\u1EDAI \"T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA\" (VD: \"T\u00E0i li\u1EC7u d\u1EF1 \u00E1n\") -->\n @for (sp of drive.customSpaces(); track sp.Id) {\n <div class=\"nav-item-with-tree\">\n <a\n class=\"custom-space-link\"\n [class.active]=\"\n drive.currentViewMode() === 'CUSTOM_SPACE' &&\n drive.currentCustomSpaceId() === sp.Id &&\n (!drive.currentFolderId() || drive.currentFolderId() === sp.Id || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'CUSTOM_SPACE' &&\n drive.currentCustomSpaceId() === sp.Id &&\n !!drive.currentFolderId() &&\n drive.currentFolderId() !== sp.Id &&\n showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverCustomSpaceId() === sp.Id\"\n (click)=\"switchCustomSpace(sp)\"\n (dragover)=\"onCustomSpaceDragOver($event, sp)\"\n (dragleave)=\"onCustomSpaceDragLeave(sp)\"\n (drop)=\"onCustomSpaceDrop($event, sp)\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'CUSTOM:' + sp.Id)\"\n [title]=\"\n isSidebarSpaceExpanded('CUSTOM:' + sp.Id) ? 'Thu g\u1ECDn c\u00E2y ' + sp.Name : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c ' + sp.Name\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('CUSTOM:' + sp.Id)\n ? 'loading'\n : isSidebarSpaceExpanded('CUSTOM:' + sp.Id)\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon [nzType]=\"sp.Icon || 'project'\"></nz-icon>\n <span class=\"custom-space-title\" [title]=\"sp.Name\">{{ sp.Name }}</span>\n @if (sp.IsVisibleToAllUsers) {\n <nz-tag nzColor=\"cyan\" class=\"custom-space-badge\">All</nz-tag>\n }\n @if (sp.CanManage || drive.isCurrentUserAdmin()) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n (click)=\"$event.stopPropagation(); openCustomSpaceDrawer('edit', sp)\"\n >\n <nz-icon nzType=\"setting\"></nz-icon>\n </button>\n }\n </a>\n <ng-container\n *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'CUSTOM:' + sp.Id }\"\n ></ng-container>\n </div>\n }\n </div>\n\n <!-- 3. \u0110\u01AF\u1EE2C CHIA S\u1EBA V\u1EDAI T\u00D4I + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"\n drive.currentViewMode() === 'SHARED_WITH_ME' && (!drive.currentFolderId() || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'SHARED_WITH_ME' && !!drive.currentFolderId() && showSidebarTree()\n \"\n (click)=\"switchView('SHARED_WITH_ME')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'SHARED_WITH_ME')\"\n [title]=\"\n isSidebarSpaceExpanded('SHARED_WITH_ME')\n ? 'Thu g\u1ECDn c\u00E2y \u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i'\n : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c \u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('SHARED_WITH_ME')\n ? 'loading'\n : isSidebarSpaceExpanded('SHARED_WITH_ME')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"share-alt\"></nz-icon>\n <span style=\"flex: 1\">\u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i</span>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'SHARED_WITH_ME' }\"></ng-container>\n </div>\n <a [class.active]=\"drive.currentViewMode() === 'RECENT'\" (click)=\"switchView('RECENT')\">\n <nz-icon nzType=\"clock-circle\"></nz-icon> G\u1EA7n \u0111\u00E2y\n </a>\n <a [class.active]=\"drive.currentViewMode() === 'STARRED'\" (click)=\"switchView('STARRED')\">\n <nz-icon nzType=\"star\"></nz-icon> C\u00F3 g\u1EAFn d\u1EA5u sao\n </a>\n <a [class.active]=\"drive.currentViewMode() === 'TRASH'\" (click)=\"switchView('TRASH')\">\n <nz-icon nzType=\"delete\"></nz-icon>\n <span style=\"flex: 1\">Th\u00F9ng r\u00E1c</span>\n @if (drive.currentViewMode() === \"TRASH\" && drive.items().length > 0) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n style=\"color: #ef4444\"\n nz-tooltip\n nzTooltipTitle=\"D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c (X\u00F3a v\u0129nh vi\u1EC5n t\u1EA5t c\u1EA3)\"\n (click)=\"$event.stopPropagation(); onEmptyTrash()\"\n >\n <nz-icon nzType=\"clear\"></nz-icon>\n </button>\n }\n </a>\n </nav>\n\n <!-- TEMPLATE D\u00D9NG CHUNG HI\u1EC2N TH\u1ECA C\u00C2Y TH\u01AF M\u1EE4C \u0110A C\u1EA4P B\u00CAN TR\u00C1I CHO T\u1EEANG KH\u00D4NG GIAN -->\n <ng-template #sidebarSpaceTreeTpl let-spaceKey=\"spaceKey\">\n @if (isSidebarSpaceExpanded(spaceKey)) {\n @if (getSidebarVisibleTreeNodes(spaceKey); as treeNodes) {\n @if (treeNodes.length > 0) {\n <div class=\"sidebar-tree-container\">\n @for (vm of treeNodes; track vm.folderId) {\n <div\n class=\"sidebar-tree-node\"\n [class.active-tree-node]=\"vm.isActive\"\n [class.active-breadcrumb-ancestor]=\"vm.isInActiveBreadcrumb && !vm.isActive\"\n [class.tree-drop-active]=\"dragOverSidebarFolderId() === vm.folderId\"\n [style.padding-left.px]=\"6 + vm.level * 14\"\n [attr.draggable]=\"vm.node.EffectiveAccess >= DriveAccessLevel.Editor\"\n (dragstart)=\"onSidebarTreeNodeDragStart($event, vm)\"\n (dragend)=\"onRowDragEnd()\"\n (dragover)=\"onSidebarTreeNodeDragOver($event, vm)\"\n (dragleave)=\"onSidebarTreeNodeDragLeave($event, vm)\"\n (drop)=\"onSidebarTreeNodeDrop($event, vm)\"\n (click)=\"onSidebarTreeNodeClick(vm)\"\n (contextmenu)=\"onContextMenu($event, menu, vm.node)\"\n >\n @if (!vm.hasKnownNoChildren) {\n <button\n type=\"button\"\n class=\"tree-node-caret\"\n (click)=\"toggleSidebarFolderNode($event, vm)\"\n [title]=\"vm.isExpanded ? 'Thu g\u1ECDn nh\u00E1nh' : 'M\u1EDF r\u1ED9ng th\u01B0 m\u1EE5c con'\"\n >\n <nz-icon\n [nzType]=\"vm.isLoading ? 'loading' : vm.isExpanded ? 'caret-down' : 'caret-right'\"\n ></nz-icon>\n </button>\n } @else {\n <span class=\"tree-node-caret-spacer\"></span>\n }\n\n <nz-icon\n class=\"tree-node-folder-icon\"\n [nzType]=\"vm.isExpanded || vm.isActive ? 'folder-open' : 'folder-fill'\"\n [style.color]=\"vm.isActive ? 'var(--primary-color, #1890ff)' : '#f59e0b'\"\n ></nz-icon>\n\n <span class=\"tree-node-label\" nz-tooltip [nzTooltipTitle]=\"vm.node.Name\" nzTooltipPlacement=\"right\">\n {{ vm.node.Name }}\n </span>\n\n @if (vm.node.EffectiveAccess >= DriveAccessLevel.Uploader) {\n <button\n type=\"button\"\n class=\"tree-node-quick-btn\"\n title=\"T\u1EA1o th\u01B0 m\u1EE5c con trong '{{ vm.node.Name }}'\"\n (click)=\"openCreateSubfolderFromSidebar($event, vm)\"\n >\n <nz-icon nzType=\"plus\"></nz-icon>\n </button>\n }\n </div>\n }\n </div>\n } @else if (isSidebarSpaceLoading(spaceKey)) {\n <div class=\"sidebar-tree-empty\">\n <nz-icon nzType=\"loading\" style=\"margin-right: 4px\"></nz-icon> \u0110ang t\u1EA3i c\u00E2y th\u01B0 m\u1EE5c...\n </div>\n } @else if (sidebarTreeFilter().trim()) {\n <div class=\"sidebar-tree-empty\">Kh\u00F4ng kh\u1EDBp th\u01B0 m\u1EE5c n\u00E0o</div>\n } @else {\n <div class=\"sidebar-tree-empty\">Ch\u01B0a c\u00F3 th\u01B0 m\u1EE5c con</div>\n }\n }\n }\n </ng-template>\n <!-- KHUNG M\u1EAAU C\u00C2Y TH\u01AF M\u1EE4C (H\u1ED6 TR\u1EE2 K\u00C9O TH\u1EA2 V\u00C0O TH\u01AF M\u1EE4C \u0110\u00CDCH HO\u1EB6C B\u1EA4M T\u1EA0O NHANH) -->\n @if (drive.isCurrentUserAdmin()) {\n <div class=\"template-sidebar-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <span style=\"font-size: 12px; font-weight: 600\">\n <nz-icon nzType=\"apartment\" style=\"color: #d97706; margin-right: 4px\"></nz-icon>\n M\u1EABu c\u00E2y th\u01B0 m\u1EE5c ({{ drive.folderTemplates().length }})\n </span>\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px\"\n (click)=\"openTemplateDrawer('create')\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"\u0110\u1ECBnh ngh\u0129a m\u1EABu c\u00E2y th\u01B0 m\u1EE5c m\u1EDBi\" -->\n <nz-icon nzType=\"plus\"></nz-icon> T\u1EA1o m\u1EABu\n </button>\n </div>\n\n @if (drive.folderTemplates().length === 0) {\n <div class=\"quota-sub\" style=\"font-size: 11px\">\n Ch\u01B0a c\u00F3 m\u1EABu n\u00E0o. B\u1EA5m <strong>+ T\u1EA1o m\u1EABu</strong> \u0111\u1EC3 \u0111\u1ECBnh ngh\u0129a c\u00E2y th\u01B0 m\u1EE5c chu\u1EA9n.\n </div>\n } @else {\n <div class=\"template-chip-list\">\n @for (tpl of drive.folderTemplates(); track tpl.Id) {\n <div\n class=\"template-drag-item\"\n draggable=\"true\"\n (dragstart)=\"onTemplateDragStart($event, tpl)\"\n (dragend)=\"onTemplateDragEnd()\"\n >\n <!-- nz-tooltip\n [nzTooltipTitle]=\"\n 'K\u00E9o th\u1EA3 m\u1EABu [' +\n tpl.Name +\n '] (' +\n tpl.TotalFolderCount +\n ' th\u01B0 m\u1EE5c) v\u00E0o m\u1ED9t Th\u01B0 m\u1EE5c \u0111\u00EDch tr\u00EAn b\u1EA3ng, ho\u1EB7c b\u1EA5m \u0111\u1EC3 t\u1EA1o t\u1EA1i \u0111\u00E2y'\n \" -->\n <div\n nz-flex\n nzAlign=\"center\"\n [nzGap]=\"6\"\n style=\"flex: 1; min-width: 0\"\n (click)=\"openFolderDrawer('create', undefined, tpl)\"\n >\n <nz-icon nzType=\"folder-add\" style=\"color: #d97706; font-size: 15px\"></nz-icon>\n <div style=\"flex: 1; min-width: 0\">\n <div class=\"template-item-title\">{{ tpl.Name }}</div>\n <div class=\"template-item-sub\">\n <code>{{ tpl.Code }}</code> \u2022 {{ tpl.TotalFolderCount }} m\u1EE5c\n @if (tpl.TotalPermissionCount > 0) {\n <span style=\"color: #0284c7; font-weight: 600\">\n \u2022 \uD83D\uDEE1 {{ tpl.TotalPermissionCount }} quy\u1EC1n</span\n >\n }\n </div>\n </div>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"$event.stopPropagation(); applyTemplateToTargetFolder(tpl, drive.currentFolderId())\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"\u00C1p d\u1EE5ng ngay v\u00E0o th\u01B0 m\u1EE5c \u0111ang m\u1EDF\" -->\n <nz-icon nzType=\"thunderbolt\" style=\"color: var(--primary-color)\"></nz-icon>\n </button>\n @if (tpl.CanManage || drive.isCurrentUserAdmin()) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n (click)=\"$event.stopPropagation(); openTemplateDrawer('edit', tpl)\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"S\u1EEDa / X\u00F3a m\u1EABu c\u00E2y th\u01B0 m\u1EE5c\" -->\n <nz-icon nzType=\"setting\"></nz-icon>\n </button>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P C\u1EA4U H\u00CCNH CH\u1EBE \u0110\u1ED8 TH\u01AF M\u1EE4C V\u1EACT L\u00DD vs \u1EA2O H\u00D3A -->\n @if (drive.isCurrentUserAdmin() && false) {\n <div class=\"storage-mode-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <span style=\"font-size: 12px; font-weight: 600\">Th\u01B0 m\u1EE5c v\u1EADt l\u00FD (Disk)</span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"drive.usePhysicalFolders()\"\n (ngModelChange)=\"onTogglePhysicalMode($event)\"\n ></nz-switch>\n\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt: T\u1EA1o c\u00E2y th\u01B0 m\u1EE5c & t\u00EAn file th\u1EADt 1-1 tr\u00EAn \u1ED5 c\u1EE9ng m\u00E1y ch\u1EE7\"\n -->\n </div>\n <div class=\"quota-sub\">\n Ch\u1EBF \u0111\u1ED9: <strong>{{ drive.usePhysicalFolders() ? \"V\u1EADt l\u00FD 1:1 (Physical)\" : \"\u1EA2o h\u00F3a (Virtual)\" }}</strong>\n </div>\n @if (drive.usePhysicalFolders()) {\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-top: 8px\">\n <span style=\"font-size: 12px\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt: T\u1EA5t c\u1EA3 User c\u00F9ng d\u00F9ng chung 1 RootPath duy nh\u1EA5t \u0111\u1EC3 l\u01B0u tr\u1EEF t\u00E0i li\u1EC7u d\u1EF1 \u00E1n\"\n -->\n D\u00F9ng chung RootPath\n </span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"drive.useSharedPhysicalRoot()\"\n (ngModelChange)=\"onToggleSharedRootMode($event)\"\n ></nz-switch>\n </div>\n <div class=\"quota-sub\">\n Ph\u1EA1m vi \u0111\u0129a:\n <strong>{{ drive.useSharedPhysicalRoot() ? \"Chung to\u00E0n d\u1EF1 \u00E1n\" : \"T\u00E1ch theo t\u1EEBng User\" }}</strong>\n </div>\n <div nz-flex nzVertical [nzGap]=\"6\" style=\"margin-top: 8px\">\n <button nz-button nzType=\"dashed\" nzSize=\"small\" nzBlock (click)=\"onSyncPhysicalDisk()\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Qu\u00E9t c\u00E1c file/th\u01B0 m\u1EE5c copy tr\u1EF1c ti\u1EBFp tr\u00EAn \u1ED5 \u0111\u0129a Server \u0111\u1EC3 n\u1EA1p v\u00E0o Drive\"\n -->\n <nz-icon nzType=\"sync\"></nz-icon> \u0110\u1ED3ng b\u1ED9 t\u1EEB \u1ED5 \u0111\u0129a\n </button>\n <button nz-button nzType=\"default\" nzSize=\"small\" nzBlock (click)=\"openRelocateDrawer(null)\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"\u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn RootPath ho\u1EB7c \u00E1nh x\u1EA1 sang \u1ED5 c\u1EE9ng l\u01B0u tr\u1EEF kh\u00E1c\"\n -->\n <nz-icon nzType=\"folder-open\"></nz-icon> \u0110\u1ED5i RootPath / \u1ED4 \u0111\u0129a\n </button>\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P TI\u1EBEN TR\u00CCNH UPLOAD (H\u1ED6 TR\u1EE2 T\u1EA2I TI\u1EBEP KHI L\u1ED6I / T\u1EA0M D\u1EEANG / H\u1EE6Y) -->\n @if (drive.userUploadQueue().length > 0) {\n <div class=\"upload-queue-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <strong>Ti\u1EBFn tr\u00ECnh t\u1EA3i l\u00EAn ({{ drive.userUploadQueue().length }})</strong>\n <a (click)=\"drive.clearCompletedUploads()\" style=\"font-size: 12px\">\u1EA8n \u0111\u00E3 xong</a>\n </div>\n <input #resumeFileInput type=\"file\" hidden (change)=\"onResumeFileSelected($event)\" />\n @for (task of drive.userUploadQueue(); track task.id) {\n <div class=\"upload-task-row\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"4\">\n <div class=\"upload-task-name\" [title]=\"task.fileName\">{{ task.fileName }}</div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n @if (task.status === \"uploading\" && (task.fileSize || 0) >= 20971520) {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n (click)=\"drive.pauseUploadTask(task.id)\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"T\u1EA1m d\u1EEBng t\u1EA3i l\u00EAn\"\n -->\n <nz-icon nzType=\"pause-circle\"></nz-icon>\n </button>\n }\n @if (task.status === \"error\" || task.status === \"paused\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px; font-weight: 600\"\n (click)=\"onResumeUploadClick(task, resumeFileInput)\"\n >\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"task.errorMessage || 'T\u1EA3i l\u00EAn ti\u1EBFp t\u1EEB ph\u1EA7n tr\u0103m \u0111\u00E3 l\u01B0u (Resume Upload)'\"\n -->\n <nz-icon nzType=\"reload\"></nz-icon> T\u1EA3i ti\u1EBFp\n </button>\n }\n @if (task.status !== \"uploading\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px\"\n (click)=\"drive.removeUploadTask(task.id)\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"X\u00F3a kh\u1ECFi danh s\u00E1ch & h\u1EE7y phi\u00EAn t\u1EA1m\"\n -->\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n }\n </div>\n </div>\n <nz-progress\n [nzPercent]=\"task.progress\"\n nzSize=\"small\"\n [nzStatus]=\"\n task.status === 'error'\n ? 'exception'\n : task.status === 'success'\n ? 'success'\n : task.status === 'paused'\n ? 'normal'\n : 'active'\n \"\n ></nz-progress>\n @if (task.status === \"error\") {\n <div style=\"font-size: 11px; color: #ef4444; margin-top: 2px\">\n {{ task.errorMessage || \"B\u1ECB ng\u1EAFt k\u1EBFt n\u1ED1i.\" }} \u2014 B\u1EA5m <strong>T\u1EA3i ti\u1EBFp</strong> \u0111\u1EC3 n\u1ED1i l\u1EA1i t\u1EEB\n {{ task.progress }}%.\n </div>\n }\n @if (task.status === \"paused\") {\n <div style=\"font-size: 11px; color: #f59e0b; margin-top: 2px\">\n \u0110\u00E3 t\u1EA1m d\u1EEBng \u1EDF {{ task.progress }}% \u2014 B\u1EA5m <strong>T\u1EA3i ti\u1EBFp</strong> \u0111\u1EC3 ti\u1EBFp t\u1EE5c.\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P TI\u1EBEN TR\u00CCNH DOWNLOAD (H\u1ED6 TR\u1EE2 THEO D\u00D5I % & H\u1EE6Y T\u1EA2I T\u1EE8C TH\u1EDCI \u0110\u1ED0I V\u1EDAI FILE N\u1EB6NG) -->\n @if (drive.userDownloadQueue().length > 0) {\n <div class=\"upload-queue-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <strong>Ti\u1EBFn tr\u00ECnh t\u1EA3i xu\u1ED1ng ({{ drive.userDownloadQueue().length }})</strong>\n <a (click)=\"drive.clearCompletedDownloads()\" style=\"font-size: 12px\">\u1EA8n \u0111\u00E3 xong</a>\n </div>\n @for (dlTask of drive.userDownloadQueue(); track dlTask.id) {\n <div class=\"upload-task-row\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"4\">\n <div class=\"upload-task-name\" [title]=\"dlTask.fileName\">{{ dlTask.fileName }}</div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n @if (dlTask.status === \"downloading\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px; font-weight: 600\"\n (click)=\"drive.cancelDownloadTask(dlTask.id)\"\n >\n <nz-icon nzType=\"stop\"></nz-icon> H\u1EE7y t\u1EA3i\n </button>\n } @else {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px\"\n (click)=\"drive.removeDownloadTask(dlTask.id)\"\n >\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n }\n </div>\n </div>\n <nz-progress\n [nzPercent]=\"dlTask.progress\"\n nzSize=\"small\"\n [nzStatus]=\"\n dlTask.status === 'error' || dlTask.status === 'cancelled'\n ? 'exception'\n : dlTask.status === 'success'\n ? 'success'\n : 'active'\n \"\n ></nz-progress>\n <div style=\"font-size: 11px; color: var(--app-text-muted, #64748b); margin-top: 2px\">\n @if (dlTask.status === \"downloading\") {\n \u0110ang t\u1EA3i: {{ dlTask.loadedBytes | formatBytes }}\n @if (dlTask.totalBytes) {\n / {{ dlTask.totalBytes | formatBytes }}\n }\n } @else if (dlTask.status === \"cancelled\") {\n <span style=\"color: #f59e0b\">\u0110\u00E3 h\u1EE7y t\u1EA3i xu\u1ED1ng gi\u1EEFa ch\u1EEBng.</span>\n } @else if (dlTask.status === \"error\") {\n <span style=\"color: #ef4444\">{{ dlTask.errorMessage || \"L\u1ED7i khi t\u1EA3i xu\u1ED1ng.\" }}</span>\n } @else {\n <span style=\"color: #10b981\">\u0110\u00E3 t\u1EA3i xu\u1ED1ng ho\u00E0n t\u1EA5t.</span>\n }\n </div>\n </div>\n }\n </div>\n }\n <div class=\"quota-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <div class=\"quota-title\" style=\"margin-bottom: 0\">\n <nz-icon nzType=\"cloud\"></nz-icon> Dung l\u01B0\u1EE3ng ({{ drive.quotaPercent() }}%)\n </div>\n @if (drive.isCurrentUserAdmin()) {\n <nz-tag nzColor=\"gold\" style=\"margin-right: 0; font-size: 11px\">Admin</nz-tag>\n }\n </div>\n <nz-progress [nzPercent]=\"drive.quotaPercent()\" nzSize=\"small\" [nzShowInfo]=\"false\"></nz-progress>\n <div class=\"quota-sub\">{{ drive.usedBytes() | formatBytes }} / {{ drive.quotaLimitBytes() | formatBytes }}</div>\n @if (drive.isCurrentUserAdmin()) {\n <button\n nz-button\n nzType=\"dashed\"\n nzSize=\"small\"\n nzBlock\n style=\"margin-top: 8px\"\n (click)=\"openPermissionMatrixDrawer(drive.currentFolderId())\"\n >\n <nz-icon nzType=\"table\"></nz-icon>\n Ma tr\u1EADn ph\u00E2n quy\u1EC1n\n </button>\n <button\n nz-button\n nzType=\"dashed\"\n nzSize=\"small\"\n nzBlock\n style=\"margin-top: 8px\"\n (click)=\"openQuotaAdminDrawer()\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"\u0110\u1EB7t Quota m\u1EB7c \u0111\u1ECBnh to\u00E0n h\u1EC7 th\u1ED1ng v\u00E0 thi\u1EBFt l\u1EADp Quota ri\u00EAng cho t\u1EEBng ng\u01B0\u1EDDi d\u00F9ng (Ch\u1EC9 Admin)\"\n -->\n <nz-icon nzType=\"setting\"></nz-icon> Qu\u1EA3n l\u00FD Quota (Admin)\n </button>\n }\n </div>\n </aside>\n <!-- KHU V\u1EF0C N\u1ED8I DUNG CH\u00CDNH (H\u1ED6 TR\u1EE2 K\u00C9O TH\u1EA2 FILE & FOLDER T\u1EEA FILE EXPLORER) -->\n <main\n class=\"drive-main\"\n [class.external-drag-active]=\"isExternalFileDragging()\"\n (dragenter)=\"onMainDragEnter($event)\"\n (dragover)=\"onMainDragOver($event)\"\n (dragleave)=\"onMainDragLeave($event)\"\n (drop)=\"onMainDrop($event)\"\n >\n @if (isExternalFileDragging()) {\n <div class=\"external-drop-banner\">\n <nz-icon nzType=\"cloud-upload\" class=\"drop-banner-icon\"></nz-icon>\n <div>\n <div class=\"drop-banner-title\">\n @if (dragOverFolderName(); as targetName) {\n Th\u1EA3 t\u1EADp tin / th\u01B0 m\u1EE5c t\u1EEB m\u00E1y t\u00EDnh \u0111\u1EC3 t\u1EA3i th\u1EB3ng v\u00E0o th\u01B0 m\u1EE5c: <strong>\"{{ targetName }}\"</strong>\n } @else {\n Th\u1EA3 t\u1EADp tin ho\u1EB7c th\u01B0 m\u1EE5c t\u1EEB File Explorer v\u00E0o \u0111\u00E2y \u0111\u1EC3 t\u1EA3i l\u00EAn th\u01B0 m\u1EE5c hi\u1EC7n t\u1EA1i\n }\n </div>\n <div class=\"drop-banner-sub\">\n H\u1ED7 tr\u1EE3 k\u00E9o th\u1EA3 nhi\u1EC1u file c\u00F9ng l\u00FAc ho\u1EB7c k\u00E9o nguy\u00EAn c\u1EA3 c\u00E2y th\u01B0 m\u1EE5c t\u1EEB m\u00E1y t\u00EDnh (T\u1EF1 \u0111\u1ED9ng Chunk Upload n\u1EBFu\n file &ge; 20MB)\n </div>\n </div>\n </div>\n }\n <!-- TOOLBAR + PAGINATION -->\n <header class=\"drive-toolbar\">\n <div>\n <nz-breadcrumb>\n <nz-breadcrumb-item\n (click)=\"navigateToFolder(null)\"\n (dragover)=\"onBreadcrumbDragOver($event, '__ROOT__')\"\n (dragleave)=\"onBreadcrumbDragLeave('__ROOT__')\"\n (drop)=\"onBreadcrumbDrop($event, null)\"\n [class.bc-drop-active]=\"dragOverBreadcrumbId() === '__ROOT__'\"\n class=\"cursor-pointer\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"K\u00E9o th\u1EA3 m\u1EE5c v\u00E0o \u0111\u00E2y \u0111\u1EC3 chuy\u1EC3n v\u1EC1 th\u01B0 m\u1EE5c g\u1ED1c\"\n -->\n <nz-icon nzType=\"home\"></nz-icon>\n {{ getRootTitle() }}\n </nz-breadcrumb-item>\n @for (bc of drive.breadcrumbs(); track bc.Id) {\n @if (drive.currentViewMode() !== \"CUSTOM_SPACE\" || bc.Id !== drive.currentCustomSpaceId()) {\n <nz-breadcrumb-item\n (click)=\"navigateToFolder(bc.Id)\"\n (dragover)=\"onBreadcrumbDragOver($event, bc.Id)\"\n (dragleave)=\"onBreadcrumbDragLeave(bc.Id)\"\n (drop)=\"onBreadcrumbDrop($event, bc.Id)\"\n [class.bc-drop-active]=\"dragOverBreadcrumbId() === bc.Id\"\n class=\"cursor-pointer\"\n >\n {{ bc.Name }}\n </nz-breadcrumb-item>\n }\n }\n </nz-breadcrumb>\n <!-- @if (drive.isCurrentUserAdmin() && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as physPath) {\n <div class=\"physical-path-bar\">\n <nz-icon nzType=\"folder-open\"></nz-icon>\n <span>\n \u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD: <code>{{ physPath }}</code>\n </span>\n <icon-copy [textToCopy]=\"physPath\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD tr\u00EAn Server\"></icon-copy>\n </div>\n } -->\n </div>\n <div class=\"toolbar-actions\">\n <nz-input-group [nzSuffix]=\"suffixIconSearch\" style=\"width: 250px\">\n <input\n type=\"text\"\n nz-input\n placeholder=\"T\u00ECm ki\u1EBFm t\u00E0i li\u1EC7u, th\u01B0 m\u1EE5c...\"\n [ngModel]=\"drive.keyword()\"\n (ngModelChange)=\"drive.keyword.set($event)\"\n (keyup.enter)=\"onSearch()\"\n />\n </nz-input-group>\n <ng-template #suffixIconSearch>\n <nz-icon nzType=\"search\" class=\"cursor-pointer\" (click)=\"onSearch()\"></nz-icon>\n </ng-template>\n <label\n nz-checkbox\n [ngModel]=\"drive.includeSubfolders()\"\n (ngModelChange)=\"onToggleIncludeSubfolders($event)\"\n style=\"user-select: none; white-space: nowrap; font-size: 13px\"\n nz-tooltip\n nzTooltipTitle=\"T\u00ECm c\u1EA3 th\u01B0 m\u1EE5c con\"\n >\n </label>\n <!-- T\u00D9Y CH\u1ECCN CH\u1EBE \u0110\u1ED8 XEM: C\u00C2Y TH\u01AF M\u1EE4C B\u00CAN TR\u00C1I + B\u1EA2NG PH\u1EB2NG vs TREE TABLE -->\n <div class=\"view-mode-switch\" nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"showSidebarTree() ? 'primary' : 'default'\"\n (click)=\"onToggleSidebarTree(!showSidebarTree())\"\n nz-tooltip\n [nzTooltipTitle]=\"\n showSidebarTree()\n ? '\u0110ang b\u1EADt C\u00E2y th\u01B0 m\u1EE5c b\u00EAn tr\u00E1i (Nh\u1EA5n \u0111\u1EC3 \u1EA9n)'\n : 'Hi\u1EC3n th\u1ECB C\u00E2y th\u01B0 m\u1EE5c tr\u1EF1c ti\u1EBFp \u1EDF c\u1ED9t b\u00EAn tr\u00E1i'\n \"\n >\n <nz-icon nzType=\"partition\"></nz-icon>\n </button>\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"!drive.isTreeTableView() ? 'primary' : 'default'\"\n (click)=\"onToggleTreeTableView(false)\"\n nz-tooltip\n nzTooltipTitle=\"Flat Table\"\n >\n <nz-icon nzType=\"unordered-list\"></nz-icon>\n <!-- B\u1EA3ng ph\u1EB3ng -->\n </button>\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"drive.isTreeTableView() ? 'primary' : 'default'\"\n (click)=\"onToggleTreeTableView(true)\"\n nz-tooltip\n nzTooltipTitle=\"Tree Table\"\n >\n <nz-icon nzType=\"apartment\"></nz-icon>\n <!-- Tree Table -->\n </button>\n @if (drive.isTreeTableView()) {\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"expandAllTreeFolders()\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"collapseAllTreeFolders()\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n }\n </div>\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drive.sortDesc() ? 'A \u2192 Z' : 'Z \u2192 A'\"\n (click)=\"toggleSortDirection()\"\n >\n <nz-icon [nzType]=\"drive.sortDesc() ? 'sort-descending' : 'sort-ascending'\"></nz-icon>\n </button>\n @if (drive.currentViewMode() === \"TRASH\") {\n <button\n type=\"button\"\n nz-button\n nzDanger\n nzType=\"primary\"\n nzSize=\"small\"\n [disabled]=\"drive.items().length === 0 || emptyingTrash()\"\n [nzLoading]=\"emptyingTrash()\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a v\u0129nh vi\u1EC5n to\u00E0n b\u1ED9 c\u00E1c m\u1EE5c trong th\u00F9ng r\u00E1c v\u00E0 gi\u1EA3i ph\u00F3ng dung l\u01B0\u1EE3ng Quota\"\n (click)=\"onEmptyTrash()\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c\n @if (drive.totalCount() > 0) {\n <span>({{ drive.totalCount() }})</span>\n }\n </button>\n }\n <button\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"refreshExplorer()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n <nz-pagination\n [nzSize]=\"'small'\"\n [nzPageIndex]=\"drive.pageIndex()\"\n [nzPageSize]=\"drive.pageSize()\"\n [nzTotal]=\"drive.totalCount()\"\n [nzShowSizeChanger]=\"true\"\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\n (nzPageIndexChange)=\"drive.loadNodes($event, drive.pageSize())\"\n (nzPageSizeChange)=\"drive.loadNodes(1, $event)\"\n >\n </nz-pagination>\n </div>\n </header>\n @if (drive.currentViewMode() === \"TRASH\" && drive.items().length > 0) {\n <div class=\"trash-info-banner\">\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-icon nzType=\"info-circle\" style=\"color: #ef4444; font-size: 16px\"></nz-icon>\n <span>\n C\u00E1c m\u1EE5c trong th\u00F9ng r\u00E1c v\u1EABn t\u00EDnh v\u00E0o dung l\u01B0\u1EE3ng h\u1EA1n ng\u1EA1ch (Quota) cho \u0111\u1EBFn khi b\u1ECB x\u00F3a v\u0129nh vi\u1EC5n.\n </span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzDanger\n nzType=\"link\"\n nzSize=\"small\"\n style=\"font-weight: 600; padding: 0\"\n [nzLoading]=\"emptyingTrash()\"\n (click)=\"onEmptyTrash()\"\n >\n <nz-icon nzType=\"clear\"></nz-icon> D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c ngay\n </button>\n </div>\n }\n <!-- DANH S\u00C1CH T\u1EACP TIN / TH\u01AF M\u1EE4C (H\u1ED6 TR\u1EE2 C\u1EA2 FLAT TABLE V\u00C0 TREE TABLE) -->\n <nz-table\n #explorerTable\n [nzData]=\"displayedTableItems()\"\n [nzLoading]=\"drive.loading()\"\n [nzBordered]=\"true\"\n [nzFrontPagination]=\"false\"\n [nzShowPagination]=\"false\"\n nzSize=\"small\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th class=\"sortable-th\" (click)=\"onSortColumn('Name')\">\n <div class=\"th-sort-wrap\">\n <span>T\u00EAn t\u00E0i li\u1EC7u / Th\u01B0 m\u1EE5c</span>\n <span class=\"sort-icon\" [class.active]=\"drive.sortBy() === 'Name'\">\n <nz-icon\n [nzType]=\"\n drive.sortBy() === 'Name' ? (drive.sortDesc() ? 'sort-descending' : 'sort-ascending') : 'swap'\n \"\n ></nz-icon>\n </span>\n </div>\n </th>\n <th nzWidth=\"150px\" class=\"sortable-th\" (click)=\"onSortColumn('OwnerName')\">\n <div class=\"th-sort-wrap\">\n <span>Ch\u1EE7 s\u1EDF h\u1EEFu</span>\n @if (drive.sortBy() === \"OwnerName\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"130px\" class=\"text-center sortable-th\" (click)=\"onSortColumn('AccessLevel')\">\n <div class=\"th-sort-wrap justify-center\">\n <span>Quy\u1EC1n truy c\u1EADp</span>\n @if (drive.sortBy() === \"AccessLevel\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"110px\" class=\"text-right sortable-th\" (click)=\"onSortColumn('SizeBytes')\">\n <div class=\"th-sort-wrap justify-end\">\n <span>K\u00EDch th\u01B0\u1EDBc</span>\n @if (drive.sortBy() === \"SizeBytes\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"145px\" class=\"text-center sortable-th\" (click)=\"onSortColumn('UpdatedDate')\">\n <div class=\"th-sort-wrap justify-center\">\n <span>C\u1EADp nh\u1EADt cu\u1ED1i</span>\n @if (drive.sortBy() === \"UpdatedDate\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"210px\" class=\"text-center\">Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (item of explorerTable.data; track item.Id; let i = $index) {\n <tr\n [attr.draggable]=\"drive.currentViewMode() !== 'TRASH' && item.EffectiveAccess >= DriveAccessLevel.Editor\"\n (dragstart)=\"onRowDragStart($event, item)\"\n (dragend)=\"onRowDragEnd()\"\n (dragover)=\"onRowDragOver($event, item)\"\n (dragleave)=\"onRowDragLeave($event, item)\"\n (drop)=\"onRowDrop($event, item)\"\n (dblclick)=\"onRowDoubleClick(item)\"\n (contextmenu)=\"onContextMenu($event, menu, item)\"\n class=\"drive-row\"\n [class.dragging-row]=\"draggedNode()?.Id === item.Id\"\n [class.drop-target-active]=\"dragOverFolderId() === item.Id\"\n >\n <td class=\"text-center\">{{ i + 1 + (drive.pageIndex() - 1) * drive.pageSize() }}</td>\n <td\n [nzIndentSize]=\"drive.isTreeTableView() ? (item.treeLevel || 0) * 22 : 0\"\n [nzShowExpand]=\"drive.isTreeTableView() && isFolderLike(item) && !item.IsBrokenShortcut\"\n [nzExpand]=\"!!item.treeExpanded\"\n (nzExpandChange)=\"toggleExpandTreeFolder(item, $event)\"\n >\n <div class=\"node-name-cell\">\n <span class=\"node-icon-wrap\">\n <nz-icon\n [nzType]=\"isFolderLike(item) ? 'folder-fill' : getFileIcon(item)\"\n [style.color]=\"isFolderLike(item) ? '#f59e0b' : 'var(--primary-color)'\"\n class=\"node-icon\"\n ></nz-icon>\n @if (item.NodeType === DriveNodeType.Shortcut) {\n <span class=\"shortcut-badge\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'L\u1ED1i t\u1EAFt tr\u1ECF t\u1EDBi: ' + (item.ShortcutTargetName || item.Name)\"\n -->\n <nz-icon nzType=\"select\"></nz-icon>\n </span>\n }\n </span>\n <span class=\"node-title link-detail\" (click)=\"onRowSingleClick(item)\">{{ item.Name }}</span>\n @if (drive.keyword().trim() && item.ParentFolderName && item.ParentId !== drive.currentFolderId()) {\n <nz-tag\n nzColor=\"default\"\n style=\"margin-left: 6px; cursor: pointer\"\n (click)=\"$event.stopPropagation(); navigateToFolder(item.ParentId || null)\"\n >\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'\u0110ang n\u1EB1m trong th\u01B0 m\u1EE5c: ' + item.ParentFolderName + ' (Nh\u1EA5n \u0111\u1EC3 m\u1EDF th\u01B0 m\u1EE5c)'\"\n -->\n <nz-icon nzType=\"folder\"></nz-icon> {{ item.ParentFolderName }}\n </nz-tag>\n }\n @if (item.NodeType === DriveNodeType.Shortcut) {\n @if (item.IsBrokenShortcut) {\n <nz-tag nzColor=\"error\" style=\"margin-left: 6px\">M\u1EE5c g\u1ED1c \u0111\u00E3 x\u00F3a</nz-tag>\n } @else {\n <nz-tag nzColor=\"purple\" style=\"margin-left: 6px\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'\u0110\u00EDch: ' + (item.ShortcutTargetName || item.Name)\"\n -->\n <nz-icon nzType=\"link\"></nz-icon> L\u1ED1i t\u1EAFt\n </nz-tag>\n }\n }\n @if (item.IsStarred) {\n <nz-icon nzType=\"star\" nzTheme=\"fill\" style=\"color: #eab308; margin-left: 4px\"></nz-icon>\n }\n @if (item.IsShared) {\n <nz-tag nzColor=\"processing\" style=\"margin-left: 6px\">\u0110\u00E3 chia s\u1EBB</nz-tag>\n }\n @if (!item.InheritPermissions) {\n <nz-tag nzColor=\"warning\" nz-tooltip nzTooltipTitle=\"\u0110\u00E3 ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha\">\n \u0110\u1ED9c l\u1EADp\n </nz-tag>\n }\n </div>\n </td>\n <td>{{ item.OwnerName || item.OwnerId }}</td>\n <td class=\"text-center\">\n <nz-tag\n [nzColor]=\"\n item.EffectiveAccess >= DriveAccessLevel.Editor\n ? 'green'\n : item.EffectiveAccess >= DriveAccessLevel.Uploader\n ? 'cyan'\n : 'default'\n \"\n >\n {{\n item.EffectiveAccess >= DriveAccessLevel.Manager\n ? \"Qu\u1EA3n tr\u1ECB\"\n : item.EffectiveAccess >= DriveAccessLevel.Editor\n ? \"Ch\u1EC9nh s\u1EEDa\"\n : item.EffectiveAccess >= DriveAccessLevel.Uploader\n ? \"Xem & T\u1EA3i l\u00EAn\"\n : item.CanDownload && item.EffectiveAccess >= DriveAccessLevel.Downloader\n ? \"Xem & T\u1EA3i\"\n : \"Ch\u1EC9 xem\"\n }}\n </nz-tag>\n </td>\n <td class=\"text-right\">\n {{ isFolderLike(item) ? \"\u2014\" : (item.SizeBytes | formatBytes) }}\n </td>\n <td class=\"text-center\">{{ item.UpdatedDate | date: \"dd/MM/yyyy HH:mm\" }}</td>\n <td class=\"text-center\">\n <div class=\"action-btn-group\">\n @if (drive.currentViewMode() !== \"TRASH\") {\n @if (item.CanShare || item.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openShareDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chia s\u1EBB & Ph\u00E2n quy\u1EC1n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"share-alt\"></nz-icon>\n </button>\n }\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openMoveDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chuy\u1EC3n th\u01B0 m\u1EE5c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"drag\"></nz-icon>\n </button>\n }\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openCopyDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Sao ch\u00E9p\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"copy\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openShortcutDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"T\u1EA1o l\u1ED1i t\u1EAFt\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"link\"></nz-icon>\n </button>\n @if (\n item.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n item.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openRelocateDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD / \u00C1nh x\u1EA1 \u1ED5 c\u1EE9ng l\u01B0u tr\u1EEF\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"hdd\"></nz-icon>\n </button>\n }\n @if (\n isFileLike(item) &&\n !item.IsBrokenShortcut &&\n item.CanDownload &&\n item.EffectiveAccess >= DriveAccessLevel.Downloader\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); onDownloadItem(item)\"\n nz-tooltip\n nzTooltipTitle=\"T\u1EA3i xu\u1ED1ng\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"download\"></nz-icon>\n </button>\n }\n @if (\n isFileLike(item) && !item.IsBrokenShortcut && item.EffectiveAccess >= DriveAccessLevel.Editor\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openVersionDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"history\"></nz-icon>\n </button>\n }\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openFolderDrawer('rename', item)\"\n nz-tooltip\n [nzTooltipTitle]=\"\n item.EffectiveAccess >= DriveAccessLevel.Editor\n ? '\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt'\n : 'Xem chi ti\u1EBFt & Nh\u1EADt k\u00FD'\n \"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon\n [nzType]=\"item.EffectiveAccess >= DriveAccessLevel.Editor ? 'edit' : 'info-circle'\"\n ></nz-icon>\n </button>\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n (click)=\"$event.stopPropagation(); onSoftDelete(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chuy\u1EC3n v\u00E0o th\u00F9ng r\u00E1c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n }\n } @else {\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); onRestore(item)\"\n nz-tooltip\n nzTooltipTitle=\"Kh\u00F4i ph\u1EE5c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"rollback\"></nz-icon>\n </button>\n }\n @if (item.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n (click)=\"$event.stopPropagation(); onPermanentDelete(item)\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a v\u0129nh vi\u1EC5n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n }\n }\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n <!-- CONTEXT MENU CHU\u1ED8T PH\u1EA2I -->\n <nz-dropdown-menu #menu=\"nzDropdownMenu\">\n @if (selectedContextItem(); as ctx) {\n <ul nz-menu>\n @if (drive.currentViewMode() === \"TRASH\") {\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"onRestore(ctx)\"><nz-icon nzType=\"rollback\"></nz-icon> Kh\u00F4i ph\u1EE5c m\u1EE5c n\u00E0y</li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Manager) {\n <li nz-menu-item nzDanger (click)=\"onPermanentDelete(ctx)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a v\u0129nh vi\u1EC5n m\u1EE5c n\u00E0y\n </li>\n }\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"onEmptyTrash()\">\n <nz-icon nzType=\"clear\"></nz-icon> D\u1ECDn s\u1EA1ch to\u00E0n b\u1ED9 th\u00F9ng r\u00E1c...\n </li>\n } @else {\n @if (ctx.NodeType === DriveNodeType.File) {\n <li nz-menu-item (click)=\"previewFile(ctx)\">\n <nz-icon nzType=\"eye\"></nz-icon> Xem tr\u1EF1c ti\u1EBFp (Drawer Preview)\n </li>\n @if (ctx.CanDownload && ctx.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <li nz-menu-item (click)=\"onDownloadItem(ctx)\"><nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng</li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"openVersionDrawer(ctx)\">\n <nz-icon nzType=\"history\"></nz-icon> L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n...\n </li>\n }\n <li nz-menu-divider></li>\n }\n @if (ctx.CanShare || ctx.EffectiveAccess >= DriveAccessLevel.Manager) {\n <li nz-menu-item (click)=\"openShareDrawer(ctx)\">\n <nz-icon nzType=\"usergroup-add\"></nz-icon> Ph\u00E2n quy\u1EC1n & Chia s\u1EBB...\n </li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"openMoveDrawer(ctx)\">\n <nz-icon nzType=\"drag\"></nz-icon> Di chuy\u1EC3n sang th\u01B0 m\u1EE5c kh\u00E1c...\n </li>\n }\n <li nz-menu-item (click)=\"openCopyDrawer(ctx)\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi (Copy to)...\n </li>\n <li nz-menu-item (click)=\"openShortcutDrawer(ctx)\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt (Shortcut)...\n </li>\n @if (\n ctx.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n ctx.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <li nz-menu-item (click)=\"openRelocateDrawer(ctx)\">\n <nz-icon nzType=\"hdd\"></nz-icon> \u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD / Chuy\u1EC3n \u1ED5 \u0111\u0129a...\n </li>\n }\n <li nz-menu-item (click)=\"openFolderDrawer('rename', ctx)\">\n <nz-icon [nzType]=\"ctx.EffectiveAccess >= DriveAccessLevel.Editor ? 'edit' : 'info-circle'\"></nz-icon>\n {{\n ctx.EffectiveAccess >= DriveAccessLevel.Editor ? \"\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt...\" : \"Xem chi ti\u1EBFt & Nh\u1EADt k\u00FD...\"\n }}\n </li>\n <li nz-menu-item (click)=\"drive.toggleStar(ctx.Id)\">\n <nz-icon nzType=\"star\"></nz-icon> {{ ctx.IsStarred ? \"B\u1ECF d\u1EA5u sao\" : \"Th\u00EAm d\u1EA5u sao\" }}\n </li>\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"onSoftDelete(ctx)\">\n <nz-icon nzType=\"delete\"></nz-icon> Chuy\u1EC3n v\u00E0o th\u00F9ng r\u00E1c\n </li>\n }\n @if (ctx.NodeType === DriveNodeType.Folder) {\n <li nz-menu-item (click)=\"openTemplateDrawer('create', undefined, ctx)\">\n <nz-icon nzType=\"apartment\"></nz-icon> L\u01B0u c\u1EA5u tr\u00FAc th\u01B0 m\u1EE5c l\u00E0m M\u1EABu...\n </li>\n }\n }\n </ul>\n }\n </nz-dropdown-menu>\n </main>\n </div>\n <!-- ========================================================================= -->\n <!-- DRAWER 1: CHIA S\u1EBA & PH\u00C2N QUY\u1EC0N (ACL / RBAC / SHARE LINKS) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"shareDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"920\"\n [nzClosable]=\"false\"\n [nzTitle]=\"shareDrawerTitleTpl\"\n [nzFooter]=\"shareDrawerFooterTpl\"\n (nzOnClose)=\"shareDrawerVisible = false\"\n >\n <ng-template #shareDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n @if (activeActionNode(); as node) {\n <nz-icon\n [nzType]=\"node.NodeType === DriveNodeType.Folder ? 'folder-fill' : getFileIcon(node)\"\n [style.color]=\"node.NodeType === DriveNodeType.Folder ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 18px\"\n ></nz-icon>\n <strong>Chia s\u1EBB & Ph\u00E2n quy\u1EC1n: {{ node.Name }}</strong>\n <nz-tag nzColor=\"blue\">{{ node.NodeType === DriveNodeType.Folder ? \"Th\u01B0 m\u1EE5c\" : \"T\u1EADp tin\" }}</nz-tag>\n }\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"shareDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (activeActionNode(); as node) {\n <lib-drive-share-modal [nodeId]=\"node.Id\"></lib-drive-share-modal>\n }\n </ng-container>\n <ng-template #shareDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"shareDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 2: L\u1ECACH S\u1EEC PHI\u00CAN B\u1EA2N T\u1EACP TIN (FILE VERSIONS) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"versionDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"760\"\n [nzClosable]=\"false\"\n [nzTitle]=\"versionDrawerTitleTpl\"\n [nzFooter]=\"versionDrawerFooterTpl\"\n (nzOnClose)=\"versionDrawerVisible = false\"\n >\n <ng-template #versionDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"history\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n: {{ activeActionNode()?.Name }}</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"versionDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (activeActionNode(); as node) {\n <lib-drive-version-modal\n [nodeId]=\"node.Id\"\n [nodeName]=\"node.Name\"\n [canEdit]=\"node.EffectiveAccess >= DriveAccessLevel.Editor\"\n [canDownload]=\"node.CanDownload && node.EffectiveAccess >= DriveAccessLevel.Downloader\"\n (closed)=\"versionDrawerVisible = false\"\n ></lib-drive-version-modal>\n }\n </ng-container>\n <ng-template #versionDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"versionDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 3: T\u1EA0O TH\u01AF M\u1EE4C M\u1EDAI / \u0110\u1ED4I T\u00CAN & CHI TI\u1EBET THU\u1ED8C T\u00CDNH + ACTIVITY LOG -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"folderDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"480\"\n [nzClosable]=\"false\"\n [nzTitle]=\"folderDrawerTitleTpl\"\n [nzFooter]=\"folderDrawerFooterTpl\"\n (nzOnClose)=\"folderDrawerVisible = false\"\n >\n <ng-template #folderDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon\n [nzType]=\"folderDrawerMode === 'create' ? 'folder-add' : canRenameTargetNode() ? 'edit' : 'info-circle'\"\n style=\"font-size: 18px; color: var(--primary-color)\"\n ></nz-icon>\n <strong>\n {{\n folderDrawerMode === \"create\"\n ? \"T\u1EA1o th\u01B0 m\u1EE5c m\u1EDBi\"\n : canRenameTargetNode()\n ? \"\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt m\u1EE5c\"\n : \"Chi ti\u1EBFt & Nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng\"\n }}\n </strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"folderDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n @if (folderDrawerMode === \"create\" && folderDrawerParentOverride; as parentOverride) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">T\u1EA1o b\u00EAn trong th\u01B0 m\u1EE5c cha:</span>\n <nz-tag nzColor=\"gold\"> <nz-icon nzType=\"folder-open\"></nz-icon> {{ parentOverride.Name }} </nz-tag>\n </div>\n </div>\n }\n <div>\n <label class=\"drawer-field-label\">\n {{ folderDrawerMode === \"create\" ? \"T\u00EAn th\u01B0 m\u1EE5c m\u1EDBi\" : \"T\u00EAn hi\u1EC3n th\u1ECB\" }}\n </label>\n <input\n nz-input\n [(ngModel)]=\"folderDrawerInputName\"\n [disabled]=\"folderDrawerMode === 'rename' && !canRenameTargetNode()\"\n [appAutoFocus]=\"folderDrawerVisible && (folderDrawerMode === 'create' || canRenameTargetNode())\"\n placeholder=\"Nh\u1EADp t\u00EAn th\u01B0 m\u1EE5c / t\u00E0i li\u1EC7u...\"\n (keyup.enter)=\"submitFolderDrawer()\"\n />\n </div>\n @if (folderDrawerMode === \"create\" && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as phys) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EBF \u0111\u1ED9 l\u01B0u tr\u1EEF:</span>\n <nz-tag nzColor=\"green\">Th\u01B0 m\u1EE5c v\u1EADt l\u00FD (Disk)</nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Th\u01B0 m\u1EE5c cha tr\u00EAn \u0111\u0129a:</span>\n <code class=\"break-word\">{{ phys }}</code>\n </div>\n </div>\n }\n @if (folderDrawerMode === \"rename\" && folderDrawerTargetNode; as target) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"target.NodeType === DriveNodeType.Folder ? 'folder-fill' : getFileIcon(target)\"\n [style.color]=\"target.NodeType === DriveNodeType.Folder ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ target.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n {{\n target.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c\"\n : \"T\u1EADp tin (\" + (target.Extension || target.MimeType || \"File\") + \")\"\n }}\n </div>\n </div>\n </div>\n <nz-divider style=\"margin: 10px 0\"></nz-divider>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EE7 s\u1EDF h\u1EEFu:</span>\n <strong>{{ target.OwnerName || target.OwnerId }}</strong>\n </div>\n @if (target.NodeType === DriveNodeType.File) {\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">K\u00EDch th\u01B0\u1EDBc:</span>\n <span>{{ target.SizeBytes | formatBytes }}</span>\n </div>\n }\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Quy\u1EC1n c\u1EE7a b\u1EA1n:</span>\n <nz-tag\n [nzColor]=\"\n target.EffectiveAccess >= DriveAccessLevel.Editor\n ? 'green'\n : target.EffectiveAccess >= DriveAccessLevel.Uploader\n ? 'cyan'\n : 'default'\n \"\n >\n {{\n target.EffectiveAccess >= DriveAccessLevel.Manager\n ? \"Qu\u1EA3n tr\u1ECB (Manager)\"\n : target.EffectiveAccess >= DriveAccessLevel.Editor\n ? \"Ch\u1EC9nh s\u1EEDa (Editor)\"\n : target.EffectiveAccess >= DriveAccessLevel.Uploader\n ? \"Xem & T\u1EA3i l\u00EAn (Uploader)\"\n : target.CanDownload && target.EffectiveAccess >= DriveAccessLevel.Downloader\n ? \"Xem & T\u1EA3i xu\u1ED1ng\"\n : \"Ch\u1EC9 xem (Viewer)\"\n }}\n </nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">K\u1EBF th\u1EEBa quy\u1EC1n:</span>\n <nz-tag [nzColor]=\"target.InheritPermissions ? 'blue' : 'warning'\">\n {{ target.InheritPermissions ? \"\u0110ang k\u1EBF th\u1EEBa\" : \"\u0110\u1ED9c l\u1EADp\" }}\n </nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">C\u1EADp nh\u1EADt cu\u1ED1i:</span>\n <span>{{ target.UpdatedDate | date: \"dd/MM/yyyy HH:mm\" }}</span>\n </div>\n @if (target.PhysicalRelativePath) {\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">\u0110\u01B0\u1EDDng d\u1EABn \u0111\u0129a:</span>\n <code class=\"break-word\">{{ target.PhysicalRelativePath }}</code>\n </div>\n }\n @if (drive.isCurrentUserAdmin() && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as physPath) {\n <div class=\"physical-path-bar\">\n <span style=\"word-break: break-all\">\n \u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD: <code style=\"padding-top: 0px\">{{ physPath }}</code>\n </span>\n <icon-copy [textToCopy]=\"physPath\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD tr\u00EAn Server\"></icon-copy>\n </div>\n }\n </div>\n <div>\n <label class=\"drawer-field-label\">Thao t\u00E1c nhanh</label>\n <div nz-flex nzWrap=\"wrap\" [nzGap]=\"8\">\n @if (target.CanShare || target.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openShareDrawer(target)\">\n <nz-icon nzType=\"share-alt\"></nz-icon> Chia s\u1EBB & Ph\u00E2n quy\u1EC1n\n </button>\n }\n @if (target.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openMoveDrawer(target)\">\n <nz-icon nzType=\"drag\"></nz-icon> Di chuy\u1EC3n\n </button>\n }\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openCopyDrawer(target)\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi\n </button>\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openShortcutDrawer(target)\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt\n </button>\n @if (\n target.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n target.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openRelocateDrawer(target)\">\n <nz-icon nzType=\"hdd\"></nz-icon> \u0110\u1ED5i \u1ED5 \u0111\u0129a v\u1EADt l\u00FD\n </button>\n }\n @if (target.NodeType === DriveNodeType.File) {\n @if (target.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openVersionDrawer(target)\">\n <nz-icon nzType=\"history\"></nz-icon> L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n\n </button>\n }\n @if (target.CanDownload && target.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <button nz-button nzSize=\"small\" (click)=\"onDownloadItem(target)\">\n <nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng\n </button>\n }\n }\n <button nz-button nzSize=\"small\" (click)=\"drive.toggleStar(target.Id)\">\n <nz-icon nzType=\"star\" [nzTheme]=\"target.IsStarred ? 'fill' : 'outline'\"></nz-icon>\n {{ target.IsStarred ? \"B\u1ECF sao\" : \"G\u1EAFn sao\" }}\n </button>\n </div>\n </div>\n <!-- NH\u1EACT K\u00DD HO\u1EA0T \u0110\u1ED8NG (ACTIVITY LOG) -->\n <div>\n <label class=\"drawer-field-label\">\n <nz-icon nzType=\"OrderedList\"></nz-icon> Nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng g\u1EA7n \u0111\u00E2y ({{ nodeActivities().length }})\n </label>\n <div class=\"drawer-meta-card\" style=\"max-height: 240px; overflow-y: auto\">\n @if (nodeActivities().length === 0) {\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">Ch\u01B0a c\u00F3 nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng.</div>\n } @else {\n @for (act of nodeActivities(); track act.Id) {\n <div style=\"padding: 6px 0; border-bottom: 1px dashed var(--app-border, #e2e8f0); font-size: 12px\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <nz-tag nzColor=\"blue\">{{ formatActivityAction(act.ActionType) }}</nz-tag>\n <span style=\"color: var(--app-text-muted, #64748b)\">{{\n act.CreatedDate | date: \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n </div>\n <div style=\"margin-top: 4px\">\n Th\u1EF1c hi\u1EC7n b\u1EDFi: <strong>{{ act.ActorUserName || act.ActorUserId || \"H\u1EC7 th\u1ED1ng\" }}</strong>\n </div>\n @if (act.DetailJson) {\n <div style=\"margin-top: 2px; color: var(--app-text-muted, #64748b); word-break: break-all\">\n <code>{{ formatActivityDetail(act) }}</code>\n </div>\n }\n </div>\n }\n }\n </div>\n </div>\n }\n @if (folderDrawerMode === \"create\") {\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 0\">\n <nz-icon nzType=\"apartment\" style=\"color: #d97706; margin-right: 4px\"></nz-icon>\n T\u1EA1o nhanh t\u1EEB M\u1EABu c\u00E2y th\u01B0 m\u1EE5c (T\u00F9y ch\u1ECDn)\n </label>\n <a style=\"font-size: 12px\" (click)=\"folderDrawerVisible = false; openTemplateDrawer('create')\">\n + \u0110\u1ECBnh ngh\u0129a m\u1EABu m\u1EDBi\n </a>\n </div>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Kh\u00F4ng d\u00F9ng m\u1EABu (Ch\u1EC9 t\u1EA1o 1 th\u01B0 m\u1EE5c \u0111\u01A1n) --\"\n [(ngModel)]=\"folderDrawerSelectedTemplateId\"\n (ngModelChange)=\"onFolderDrawerTemplateSelect($event)\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Ch\u1EC9 t\u1EA1o 1 th\u01B0 m\u1EE5c \u0111\u01A1n\"></nz-option>\n @for (tpl of drive.folderTemplates(); track tpl.Id) {\n <nz-option\n [nzValue]=\"tpl.Id\"\n [nzLabel]=\"'\uD83D\uDDC2 ' + tpl.Name + ' [' + tpl.Code + '] (' + tpl.TotalFolderCount + ' th\u01B0 m\u1EE5c)'\"\n ></nz-option>\n }\n </nz-select>\n\n @if (folderDrawerSelectedTemplateId) {\n <label nz-checkbox [(ngModel)]=\"folderDrawerUseWrapperFolder\" style=\"font-size: 12px; margin-top: 4px\">\n \u0110\u1EB7t to\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu b\u00EAn trong th\u01B0 m\u1EE5c g\u1ED1c\n <strong>\"{{ folderDrawerInputName || \"...\" }}\"</strong>\n </label>\n <div class=\"quota-sub\" style=\"margin-top: 2px\">\n N\u1EBFu b\u1ECF t\u00EDch, c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c con c\u1EE7a m\u1EABu s\u1EBD \u0111\u01B0\u1EE3c t\u1EA1o tr\u1EF1c ti\u1EBFp ngay trong th\u01B0 m\u1EE5c \u0111ang m\u1EDF.\n </div>\n }\n </div>\n }\n </div>\n </ng-container>\n <ng-template #folderDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"folderDrawerVisible = false\">\u0110\u00F3ng</button>\n @if (folderDrawerMode === \"create\" || canRenameTargetNode()) {\n <button nz-button nzType=\"primary\" (click)=\"submitFolderDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon>\n {{ folderDrawerMode === \"create\" ? \"T\u1EA1o th\u01B0 m\u1EE5c\" : \"L\u01B0u t\u00EAn m\u1EDBi\" }}\n </button>\n }\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 4: XEM TR\u1EF0C TUY\u1EBEN T\u00C0I LI\u1EC6U (PREVIEW DRAWER) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"previewDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"'75vw'\"\n [nzClosable]=\"false\"\n [nzTitle]=\"previewDrawerTitleTpl\"\n [nzFooter]=\"previewDrawerFooterTpl\"\n (nzOnClose)=\"previewDrawerVisible = false\"\n >\n <ng-template #previewDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"eye\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>{{ previewFileName }}</strong>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n @if (activeActionNode(); as node) {\n @if (node.CanDownload && node.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <button nz-button nzSize=\"small\" nzType=\"primary\" (click)=\"onDownloadItem(node)\">\n <nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng\n </button>\n }\n @if (node.CanShare || node.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button nz-button nzSize=\"small\" (click)=\"previewDrawerVisible = false; openShareDrawer(node)\">\n <nz-icon nzType=\"share-alt\"></nz-icon> Chia s\u1EBB\n </button>\n }\n @if (node.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"previewDrawerVisible = false; openVersionDrawer(node)\">\n <nz-icon nzType=\"history\"></nz-icon> Phi\u00EAn b\u1EA3n\n </button>\n }\n }\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"previewDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <extend-view-file-content\n [previewType]=\"previewType\"\n [previewContent]=\"previewContent\"\n ></extend-view-file-content>\n </ng-container>\n <ng-template #previewDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button type=\"button\" nz-button (click)=\"previewDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 5: T\u1EA0O L\u1ED0I T\u1EAET (CREATE SHORTCUT DRAWER CHO FILE & FOLDER) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"shortcutDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"shortcutDrawerTitleTpl\"\n [nzFooter]=\"shortcutDrawerFooterTpl\"\n (nzOnClose)=\"shortcutDrawerVisible = false\"\n >\n <ng-template #shortcutDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"link\" style=\"font-size: 18px; color: #7c3aed\"></nz-icon>\n <strong>T\u1EA1o l\u1ED1i t\u1EAFt (Shortcut)</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"shortcutDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (shortcutSourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.ShortcutTargetName || src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n M\u1EE5c g\u1ED1c: {{ isFolderLike(src) ? \"Th\u01B0 m\u1EE5c\" : \"T\u1EADp tin\" }} \u2022 Ch\u1EE7 s\u1EDF h\u1EEFu:\n {{ src.OwnerName || src.OwnerId }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">T\u00EAn l\u1ED1i t\u1EAFt</label>\n <input\n nz-input\n [(ngModel)]=\"shortcutInputName\"\n [appAutoFocus]=\"shortcutDrawerVisible\"\n placeholder=\"Nh\u1EADp t\u00EAn hi\u1EC3n th\u1ECB c\u1EE7a l\u1ED1i t\u1EAFt...\"\n (keyup.enter)=\"submitShortcutDrawer()\"\n />\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian l\u01B0u l\u1ED1i t\u1EAFt</label>\n <nz-select\n [(ngModel)]=\"shortcutSpaceKey\"\n (ngModelChange)=\"onShortcutSpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Th\u01B0 m\u1EE5c \u0111\u00EDch ch\u1EE9a l\u1ED1i t\u1EAFt</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"shortcutDestFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of availableFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n L\u1ED1i t\u1EAFt tr\u1ECF tr\u1EF1c ti\u1EBFp t\u1EDBi m\u1EE5c g\u1ED1c m\u00E0 kh\u00F4ng t\u1ED1n th\u00EAm dung l\u01B0\u1EE3ng l\u01B0u tr\u1EEF (0 B).\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #shortcutDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"shortcutDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitShortcutDrawer()\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 6: DI CHUY\u1EC2N FILE / FOLDER SANG TH\u01AF M\u1EE4C HO\u1EB6C KH\u00D4NG GIAN KH\u00C1C -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"moveDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"moveDrawerTitleTpl\"\n [nzFooter]=\"moveDrawerFooterTpl\"\n (nzOnClose)=\"moveDrawerVisible = false\"\n >\n <ng-template #moveDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"drag\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Di chuy\u1EC3n sang th\u01B0 m\u1EE5c / kh\u00F4ng gian kh\u00E1c</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"moveDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (moveSourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n Lo\u1EA1i:\n {{\n src.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c\"\n : src.NodeType === DriveNodeType.Shortcut\n ? \"L\u1ED1i t\u1EAFt\"\n : \"T\u1EADp tin\"\n }}\n \u2022 Kh\u00F4ng gian hi\u1EC7n t\u1EA1i: {{ src.IsOrgNode ? \"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\" : \"Drive c\u00E1 nh\u00E2n\" }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian \u0111\u00EDch</label>\n <nz-select\n [(ngModel)]=\"moveTargetSpaceKey\"\n (ngModelChange)=\"onMoveSpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Ch\u1ECDn th\u01B0 m\u1EE5c \u0111\u00EDch</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"moveTargetFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of moveTargetFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n M\u1EB9o: B\u1EA1n c\u00F3 th\u1EC3 k\u00E9o th\u1EA3 tr\u1EF1c ti\u1EBFp d\u00F2ng t\u00E0i li\u1EC7u/th\u01B0 m\u1EE5c v\u00E0o m\u1EE5c <strong>\"Drive c\u00E1 nh\u00E2n\"</strong> ho\u1EB7c\n <strong>\"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\"</strong> \u1EDF thanh menu b\u00EAn tr\u00E1i \u0111\u1EC3 chuy\u1EC3n nhanh qua l\u1EA1i gi\u1EEFa 2 kh\u00F4ng gian.\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #moveDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"moveDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitMoveDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon> Di chuy\u1EC3n t\u1EDBi \u0111\u00E2y\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 9: SAO CH\u00C9P T\u1EDAI (COPY TO DRAWER CHO FILE / FOLDER / SHORTCUT) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"copyDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"copyDrawerTitleTpl\"\n [nzFooter]=\"copyDrawerFooterTpl\"\n (nzOnClose)=\"copyDrawerVisible = false\"\n >\n <ng-template #copyDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"copy\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Sao ch\u00E9p t\u1EDBi (Copy To)</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"copyDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (copySourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n M\u1EE5c ngu\u1ED3n:\n {{\n src.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c (Sao ch\u00E9p \u0111\u1EC7 quy to\u00E0n b\u1ED9 nh\u00E1nh con)\"\n : src.NodeType === DriveNodeType.Shortcut\n ? \"L\u1ED1i t\u1EAFt\"\n : \"T\u1EADp tin\"\n }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">T\u00EAn b\u1EA3n sao (\u0110\u1EC3 tr\u1ED1ng \u0111\u1EC3 h\u1EC7 th\u1ED1ng t\u1EF1 \u0111\u1EB7t t\u00EAn)</label>\n <input\n nz-input\n [(ngModel)]=\"copyCustomName\"\n [appAutoFocus]=\"copyDrawerVisible\"\n placeholder=\"Nh\u1EADp t\u00EAn m\u1EDBi cho b\u1EA3n sao...\"\n (keyup.enter)=\"submitCopyDrawer()\"\n />\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian \u0111\u00EDch</label>\n <nz-select\n [(ngModel)]=\"copyTargetSpaceKey\"\n (ngModelChange)=\"onCopySpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Ch\u1ECDn th\u01B0 m\u1EE5c \u0111\u00EDch ch\u1EE9a b\u1EA3n sao</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"copyTargetFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of copyTargetFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n B\u1EA3n sao ho\u00E0n to\u00E0n \u0111\u1ED9c l\u1EADp v\u1EDBi m\u1EE5c g\u1ED1c v\u00E0 \u0111\u01B0\u1EE3c t\u00EDnh v\u00E0o h\u1EA1n ng\u1EA1ch c\u1EE7a ng\u01B0\u1EDDi t\u1EA1o b\u1EA3n sao.\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #copyDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"copyDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitCopyDrawer()\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi \u0111\u00E2y\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 7: \u0110\u1ED4I \u0110\u01AF\u1EDCNG D\u1EAAN V\u1EACT L\u00DD / \u00C1NH X\u1EA0 \u1ED4 C\u1EE8NG M\u1EDAI KHI K\u1EBET TH\u00DAC D\u1EF0 \u00C1N -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"relocateDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"500\"\n [nzClosable]=\"false\"\n [nzTitle]=\"relocateDrawerTitleTpl\"\n [nzFooter]=\"relocateDrawerFooterTpl\"\n (nzOnClose)=\"relocateDrawerVisible = false\"\n >\n <ng-template #relocateDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"hdd\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>\n {{ relocateTargetFolder() ? \"\u00C1nh x\u1EA1 / Chuy\u1EC3n \u1ED5 \u0111\u0129a th\u01B0 m\u1EE5c\" : \"C\u1EA5u h\u00ECnh RootPath l\u01B0u tr\u1EEF chung\" }}\n </strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"relocateDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n @if (relocateTargetFolder(); as folder) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon nzType=\"folder-fill\" style=\"font-size: 22px; color: #f59e0b\"></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ folder.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n \u0110\u01B0\u1EDDng d\u1EABn hi\u1EC7n t\u1EA1i:\n <code>{{ folder.PhysicalRelativePath || drive.currentPhysicalPath() || \"M\u1EB7c \u0111\u1ECBnh\" }}</code>\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD m\u1EDBi c\u1EE7a th\u01B0 m\u1EE5c (H\u1ED7 tr\u1EE3 \u1ED5 c\u1EE9ng kh\u00E1c / NAS)</label>\n <input\n nz-input\n [(ngModel)]=\"relocateNewPath\"\n [appAutoFocus]=\"relocateDrawerVisible\"\n placeholder=\"VD: E:Archive_2026DuAn_A ho\u1EB7c \\\\NAS01StorageDuAn_A\"\n (keyup.enter)=\"submitRelocateDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n Khi d\u1EF1 \u00E1n k\u1EBFt th\u00FAc v\u00E0 h\u1EA1 t\u1EA7ng chuy\u1EC3n th\u01B0 m\u1EE5c sang \u1ED5 c\u1EE9ng kh\u00E1c, \u0111\u1EB7t \u0111\u01B0\u1EDDng d\u1EABn m\u1EDBi t\u1EA1i \u0111\u00E2y \u0111\u1EC3 to\u00E0n b\u1ED9 th\u01B0\n m\u1EE5c con v\u00E0 file b\u00EAn trong t\u1EF1 \u0111\u1ED9ng map sang \u1ED5 c\u1EE9ng m\u1EDBi.\n </div>\n </div>\n <div class=\"drawer-meta-card\">\n <label nz-checkbox [(ngModel)]=\"relocateMoveFilesOnDisk\">\n <strong>T\u1EF1 \u0111\u1ED9ng di chuy\u1EC3n d\u1EEF li\u1EC7u v\u1EADt l\u00FD t\u1EEB \u0111\u01B0\u1EDDng d\u1EABn c\u0169 sang \u1ED5 \u0111\u0129a m\u1EDBi</strong>\n </label>\n <div class=\"quota-sub\" style=\"margin-left: 24px\">\n N\u1EBFu b\u1ED9 ph\u1EADn H\u1EA1 t\u1EA7ng \u0111\u00E3 copy/move s\u1EB5n th\u01B0 m\u1EE5c sang \u1ED5 c\u1EE9ng m\u1EDBi r\u1ED3i, h\u00E3y <strong>b\u1ECF ch\u1ECDn</strong> m\u1EE5c n\u00E0y \u0111\u1EC3\n h\u1EC7 th\u1ED1ng ch\u1EC9 c\u1EADp nh\u1EADt l\u1EA1i \u00E1nh x\u1EA1 \u0111\u01B0\u1EDDng d\u1EABn trong Database.\n </div>\n <label nz-checkbox [(ngModel)]=\"relocateSyncNewFiles\" style=\"margin-top: 6px\">\n <strong>\u0110\u1ED3ng b\u1ED9 b\u1ED5 sung c\u00E1c file/folder c\u00F3 s\u1EB5n t\u1EA1i \u0111\u01B0\u1EDDng d\u1EABn m\u1EDBi v\u00E0o Drive</strong>\n </label>\n </div>\n } @else {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">RootPath hi\u1EC7n t\u1EA1i:</span>\n <code class=\"break-word\">{{ drive.storageRootPath() || drive.currentPhysicalPath() }}</code>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EBF \u0111\u1ED9 th\u01B0 m\u1EE5c g\u1ED1c:</span>\n <nz-tag [nzColor]=\"drive.useSharedPhysicalRoot() ? 'green' : 'blue'\">\n {{\n drive.useSharedPhysicalRoot() ? \"D\u00F9ng chung 1 RootPath cho t\u1EA5t c\u1EA3 User\" : \"T\u00E1ch theo t\u1EEBng Username\"\n }}\n </nz-tag>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn RootPath chung m\u1EDBi tr\u00EAn Server</label>\n <input\n nz-input\n [(ngModel)]=\"relocateNewPath\"\n [appAutoFocus]=\"relocateDrawerVisible\"\n placeholder=\"VD: D:ProjectStorageDriveRoot ho\u1EB7c E:ArchiveDrive\"\n (keyup.enter)=\"submitRelocateDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n T\u1EA5t c\u1EA3 c\u00E1c th\u01B0 m\u1EE5c ch\u01B0a ghim \u1ED5 \u0111\u0129a ri\u00EAng s\u1EBD t\u1EF1 \u0111\u1ED9ng \u0111\u1ECDc/ghi theo RootPath m\u1EDBi n\u00E0y.\n </div>\n </div>\n }\n </div>\n </ng-container>\n <ng-template #relocateDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"relocateDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitRelocateDrawer()\">\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u \u00E1nh x\u1EA1 v\u1EADt l\u00FD\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 8: QU\u1EA2N L\u00DD H\u1EA0N NG\u1EA0CH DUNG L\u01AF\u1EE2NG (DEFAULT QUOTA & PER-USER QUOTA) -->\n <!-- CH\u1EC8 D\u00C0NH RI\u00CANG CHO QU\u1EA2N TR\u1ECA VI\u00CAN (ADMIN) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"quotaAdminDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"980\"\n [nzClosable]=\"false\"\n [nzTitle]=\"quotaAdminDrawerTitleTpl\"\n [nzFooter]=\"quotaAdminDrawerFooterTpl\"\n (nzOnClose)=\"quotaAdminDrawerVisible = false\"\n >\n <ng-template #quotaAdminDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"pie-chart\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Qu\u1EA3n l\u00FD H\u1EA1n ng\u1EA1ch Dung l\u01B0\u1EE3ng (Quota Management)</strong>\n <nz-tag nzColor=\"gold\">Ch\u1EC9 Admin</nz-tag>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"quotaAdminDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n <!-- PH\u1EA6N 1: C\u1EA4U H\u00CCNH QUOTA M\u1EB6C \u0110\u1ECANH TO\u00C0N H\u1EC6 TH\u1ED0NG -->\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <div>\n <div style=\"font-size: 14px; font-weight: 600\">\n <nz-icon nzType=\"cloud-server\" style=\"color: var(--primary-color); margin-right: 6px\"></nz-icon>\n 1. C\u1EA5u h\u00ECnh Quota m\u1EB7c \u0111\u1ECBnh (Default Quota)\n </div>\n <div class=\"quota-sub\">\n \u00C1p d\u1EE5ng t\u1EF1 \u0111\u1ED9ng cho ng\u01B0\u1EDDi d\u00F9ng m\u1EDBi ho\u1EB7c ng\u01B0\u1EDDi d\u00F9ng ch\u01B0a \u0111\u01B0\u1EE3c g\u00E1n h\u1EA1n ng\u1EA1ch ri\u00EAng.\n </div>\n </div>\n @if (quotaOverview(); as ov) {\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-tag nzColor=\"blue\">\n M\u1EB7c \u0111\u1ECBnh hi\u1EC7n t\u1EA1i: <strong>{{ ov.DefaultUserQuotaBytes | formatBytes }}</strong>\n </nz-tag>\n <nz-tag nzColor=\"purple\">\n T\u1ED5ng \u0111\u00E3 d\u00F9ng to\u00E0n h\u1EC7 th\u1ED1ng: <strong>{{ ov.TotalSystemUsedBytes | formatBytes }}</strong>\n </nz-tag>\n </div>\n }\n </div>\n <nz-divider style=\"margin: 8px 0\"></nz-divider>\n <div nz-flex nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <span style=\"font-size: 13px; font-weight: 500\">M\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh:</span>\n <input\n nz-input\n type=\"number\"\n min=\"1\"\n [(ngModel)]=\"defaultQuotaInputValue\"\n style=\"width: 120px\"\n placeholder=\"Nh\u1EADp dung l\u01B0\u1EE3ng\"\n />\n <nz-select [(ngModel)]=\"defaultQuotaInputUnit\" style=\"width: 90px\">\n <nz-option nzValue=\"MB\" nzLabel=\"MB\"></nz-option>\n <nz-option nzValue=\"GB\" nzLabel=\"GB\"></nz-option>\n <nz-option nzValue=\"TB\" nzLabel=\"TB\"></nz-option>\n </nz-select>\n <!-- C\u00E1c n\u00FAt ch\u1ECDn nhanh (Quick Presets) -->\n <div nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(1, 'GB')\">1 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(5, 'GB')\">5 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(10, 'GB')\">10 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(20, 'GB')\">20 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(50, 'GB')\">50 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(100, 'GB')\">100 GB</button>\n </div>\n <button nz-button nzType=\"primary\" (click)=\"onSaveDefaultQuota()\">\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u Quota m\u1EB7c \u0111\u1ECBnh\n </button>\n </div>\n <div style=\"margin-top: 4px\">\n <label nz-checkbox [(ngModel)]=\"applyDefaultToExistingUsers\">\n \u0110\u1ED3ng th\u1EDDi c\u1EADp nh\u1EADt m\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh m\u1EDBi n\u00E0y cho t\u1EA5t c\u1EA3 c\u00E1c ng\u01B0\u1EDDi d\u00F9ng hi\u1EC7n c\u00F3\n </label>\n </div>\n </div>\n <!-- PH\u1EA6N 2: \u0110\u1EB6T QUOTA RI\u00CANG CHO T\u1EEANG NG\u01AF\u1EDCI D\u00D9NG -->\n <div>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\" style=\"margin-bottom: 10px\">\n <div>\n <div style=\"font-size: 14px; font-weight: 600\">\n <nz-icon nzType=\"team\" style=\"color: var(--primary-color); margin-right: 6px\"></nz-icon>\n 2. Thi\u1EBFt l\u1EADp Quota cho t\u1EEBng ng\u01B0\u1EDDi d\u00F9ng ({{ quotaUsers().length }})\n </div>\n <div class=\"quota-sub\">\n T\u00F9y ch\u1EC9nh h\u1EA1n ng\u1EA1ch dung l\u01B0\u1EE3ng ri\u00EAng cho t\u1EEBng c\u00E1 nh\u00E2n ho\u1EB7c \u0111\u1EB7t l\u1EA1i v\u1EC1 m\u1EE9c m\u1EB7c \u0111\u1ECBnh.\n </div>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-input-group [nzSuffix]=\"quotaUserSearchSuffix\" style=\"width: 260px\">\n <input\n nz-input\n type=\"text\"\n placeholder=\"T\u00ECm theo t\u00E0i kho\u1EA3n, h\u1ECD t\u00EAn, email...\"\n [(ngModel)]=\"quotaUserSearchKeyword\"\n (keyup.enter)=\"reloadQuotaOverview()\"\n />\n </nz-input-group>\n <ng-template #quotaUserSearchSuffix>\n <nz-icon nzType=\"search\" class=\"cursor-pointer\" (click)=\"reloadQuotaOverview()\"></nz-icon>\n </ng-template>\n <button nz-button nzType=\"default\" (click)=\"reloadQuotaOverview()\" nz-tooltip nzTooltipTitle=\"T\u1EA3i l\u1EA1i\">\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n </div>\n </div>\n <nz-table\n #userQuotaTable\n [nzData]=\"quotaUsers()\"\n [nzLoading]=\"quotaLoading()\"\n nzSize=\"small\"\n [nzBordered]=\"true\"\n [nzPageSize]=\"10\"\n [nzShowPagination]=\"true\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th>Ng\u01B0\u1EDDi d\u00F9ng</th>\n <th nzWidth=\"220px\">\u0110\u00E3 d\u00F9ng / H\u1EA1n ng\u1EA1ch</th>\n <th nzWidth=\"105px\" class=\"text-center\">Lo\u1EA1i Quota</th>\n <th nzWidth=\"210px\">\u0110\u1EB7t h\u1EA1n ng\u1EA1ch m\u1EDBi</th>\n <th nzWidth=\"145px\" class=\"text-center\">Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (u of userQuotaTable.data; track u.UserId; let idx = $index) {\n <tr>\n <td class=\"text-center\">{{ idx + 1 }}</td>\n <td>\n <div style=\"font-weight: 600\">{{ u.FullName || u.UserName }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n <code>{{ u.UserName }}</code>\n @if (u.OrgName) {\n <span> \u2022 {{ u.OrgName }}</span>\n }\n @if (u.Email) {\n <span> \u2022 {{ u.Email }}</span>\n }\n </div>\n </td>\n <td>\n <div nz-flex nzJustify=\"space-between\" style=\"font-size: 12px; margin-bottom: 2px\">\n <span\n >{{ u.UsedBytes | formatBytes }} / <strong>{{ u.QuotaLimitBytes | formatBytes }}</strong></span\n >\n <span>{{ getUserQuotaPercent(u) }}%</span>\n </div>\n <nz-progress\n [nzPercent]=\"getUserQuotaPercent(u)\"\n nzSize=\"small\"\n [nzShowInfo]=\"false\"\n [nzStatus]=\"getUserQuotaPercent(u) >= 95 ? 'exception' : 'normal'\"\n ></nz-progress>\n </td>\n <td class=\"text-center\">\n @if (u.IsCustomQuota) {\n <nz-tag nzColor=\"orange\">T\u00F9y ch\u1EC9nh</nz-tag>\n } @else {\n <nz-tag nzColor=\"default\">M\u1EB7c \u0111\u1ECBnh</nz-tag>\n }\n </td>\n <td>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\n <input nz-input type=\"number\" min=\"1\" [(ngModel)]=\"u.editQuotaValue\" style=\"width: 90px\" />\n <nz-select [(ngModel)]=\"u.editQuotaUnit\" style=\"width: 80px\">\n <nz-option nzValue=\"MB\" nzLabel=\"MB\"></nz-option>\n <nz-option nzValue=\"GB\" nzLabel=\"GB\"></nz-option>\n <nz-option nzValue=\"TB\" nzLabel=\"TB\"></nz-option>\n </nz-select>\n </div>\n </td>\n <td class=\"text-center\">\n <div nz-flex nzJustify=\"center\" [nzGap]=\"6\">\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"onSaveUserQuota(u)\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"L\u01B0u h\u1EA1n ng\u1EA1ch ri\u00EAng cho ng\u01B0\u1EDDi d\u00F9ng n\u00E0y\"\n -->\n <nz-icon nzType=\"check\"></nz-icon> L\u01B0u\n </button>\n <button\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n [disabled]=\"!u.IsCustomQuota\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u1EB7t l\u1EA1i v\u1EC1 m\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh c\u1EE7a h\u1EC7 th\u1ED1ng\"\n (click)=\"onResetUserQuota(u)\"\n >\n <nz-icon nzType=\"undo\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n </div>\n </div>\n </ng-container>\n <ng-template #quotaAdminDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"quotaAdminDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 10: TH\u00CAM / C\u1EA4U H\u00CCNH M\u1EE4C CUSTOM B\u00CAN D\u01AF\u1EDAI \"T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA\" -->\n <!-- (V\u00ED d\u1EE5: \"T\u00E0i li\u1EC7u d\u1EF1 \u00E1n\" - Admin c\u00F3 th\u1EC3 b\u1EADt hi\u1EC3n th\u1ECB cho t\u1EA5t c\u1EA3 User) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"customSpaceDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"480\"\n [nzClosable]=\"false\"\n [nzTitle]=\"customSpaceDrawerTitleTpl\"\n [nzFooter]=\"customSpaceDrawerFooterTpl\"\n (nzOnClose)=\"customSpaceDrawerVisible = false\"\n >\n <ng-template #customSpaceDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon\n [nzType]=\"customSpaceIcon || 'project'\"\n style=\"font-size: 18px; color: var(--primary-color)\"\n ></nz-icon>\n <strong>{{\n customSpaceDrawerMode === \"create\" ? \"Th\u00EAm m\u1EE5c t\u00F9y ch\u1EC9nh d\u01B0\u1EDBi T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\" : \"C\u1EA5u h\u00ECnh m\u1EE5c t\u00F9y ch\u1EC9nh\"\n }}</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"customSpaceDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div>\n <label class=\"drawer-field-label\">T\u00EAn m\u1EE5c hi\u1EC3n th\u1ECB tr\u00EAn thanh menu tr\u00E1i</label>\n <input\n nz-input\n [(ngModel)]=\"customSpaceName\"\n [appAutoFocus]=\"customSpaceDrawerVisible\"\n placeholder=\"V\u00ED d\u1EE5: T\u00E0i li\u1EC7u d\u1EF1 \u00E1n, H\u1ED3 s\u01A1 th\u1EA7u, Quy tr\u00ECnh ISO...\"\n (keyup.enter)=\"submitCustomSpaceDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 4px\">\n M\u1EE5c n\u00E0y s\u1EBD xu\u1EA5t hi\u1EC7n ngay b\u00EAn d\u01B0\u1EDBi m\u1EE5c <strong>\"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\"</strong> tr\u00EAn thanh \u0111i\u1EC1u h\u01B0\u1EDBng b\u00EAn tr\u00E1i.\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">Bi\u1EC3u t\u01B0\u1EE3ng (Icon)</label>\n <nz-select [(ngModel)]=\"customSpaceIcon\" style=\"width: 100%\">\n <nz-option nzValue=\"project\" nzLabel=\"\uD83D\uDCCA D\u1EF1 \u00E1n (project)\"></nz-option>\n <nz-option nzValue=\"folder-open\" nzLabel=\"\uD83D\uDCC2 Th\u01B0 m\u1EE5c m\u1EDF (folder-open)\"></nz-option>\n <nz-option nzValue=\"book\" nzLabel=\"\uD83D\uDCD8 T\u00E0i li\u1EC7u / C\u1EA9m nang (book)\"></nz-option>\n <nz-option nzValue=\"safety-certificate\" nzLabel=\"\uD83D\uDEE1 Quy chu\u1EA9n / ISO (safety-certificate)\"></nz-option>\n <nz-option nzValue=\"solution\" nzLabel=\"\uD83D\uDCCB H\u1ED3 s\u01A1 nghi\u1EC7p v\u1EE5 (solution)\"></nz-option>\n <nz-option nzValue=\"database\" nzLabel=\"\uD83D\uDDC4 Kho d\u1EEF li\u1EC7u (database)\"></nz-option>\n </nz-select>\n </div>\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <div>\n <div style=\"font-weight: 600; font-size: 13px\">Hi\u1EC3n th\u1ECB cho t\u1EA5t c\u1EA3 ng\u01B0\u1EDDi d\u00F9ng (All Users)</div>\n <div class=\"quota-sub\">\n @if (drive.isCurrentUserAdmin()) {\n Khi b\u1EADt: T\u1EA5t c\u1EA3 t\u00E0i kho\u1EA3n trong h\u1EC7 th\u1ED1ng \u0111\u1EC1u nh\u00ECn th\u1EA5y v\u00E0 truy c\u1EADp \u0111\u01B0\u1EE3c m\u1EE5c n\u00E0y b\u00EAn d\u01B0\u1EDBi \"T\u00E0i li\u1EC7u \u0110\u01A1n\n v\u1ECB\".\n } @else {\n Ch\u1EC9 Qu\u1EA3n tr\u1ECB vi\u00EAn (Admin) m\u1EDBi c\u00F3 quy\u1EC1n b\u1EADt hi\u1EC3n th\u1ECB chung cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng.\n }\n </div>\n </div>\n <nz-switch\n [(ngModel)]=\"customSpaceVisibleToAll\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n nzCheckedChildren=\"All Users\"\n nzUnCheckedChildren=\"C\u00E1 nh\u00E2n\"\n ></nz-switch>\n </div>\n @if (customSpaceVisibleToAll) {\n <nz-divider style=\"margin: 8px 0\"></nz-divider>\n <div>\n <label class=\"drawer-field-label\">M\u1EE9c quy\u1EC1n m\u1EB7c \u0111\u1ECBnh cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng</label>\n <nz-select\n [(ngModel)]=\"customSpaceDefaultAccessLevel\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.None\" nzLabel=\"None\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"Ch\u1EC9 xem (Viewer)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"Xem & T\u1EA3i xu\u1ED1ng\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"Xem & T\u1EA3i l\u00EAn (Kh\u00F4ng \u0111\u01B0\u1EE3c x\u00F3a)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"Ch\u1EC9nh s\u1EEDa (Editor)\"></nz-option>\n </nz-select>\n </div>\n }\n </div>\n </div>\n </ng-container>\n <ng-template #customSpaceDrawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (customSpaceDrawerMode === \"edit\" && editingCustomSpace) {\n <button nz-button nzDanger nzType=\"default\" (click)=\"onDeleteCustomSpace(editingCustomSpace)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a m\u1EE5c n\u00E0y\n </button>\n }\n </div>\n <div nz-flex [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"customSpaceDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitCustomSpaceDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon>\n {{ customSpaceDrawerMode === \"create\" ? \"T\u1EA1o m\u1EE5c m\u1EDBi\" : \"L\u01B0u thay \u0111\u1ED5i\" }}\n </button>\n </div>\n </div>\n </ng-template>\n </nz-drawer>\n\n <nz-drawer\n [nzVisible]=\"matrixDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"'92vw'\"\n nzTitle=\"Ma tr\u1EADn Ph\u00E2n quy\u1EC1n T\u00E0i li\u1EC7u & Th\u01B0 m\u1EE5c\"\n (nzOnClose)=\"matrixDrawerVisible = false\"\n >\n <!-- (ACL / RBAC Matrix) -->\n <ng-container *nzDrawerContent>\n <lib-drive-permission-matrix\n [rootFolderId]=\"matrixRootNodeId\"\n [viewMode]=\"\n drive.currentViewMode() === 'ORG_DRIVE'\n ? 'ORG_DRIVE'\n : drive.currentViewMode() === 'CUSTOM_SPACE'\n ? 'CUSTOM_SPACE'\n : 'MY_DRIVE'\n \"\n [customSpaceId]=\"drive.currentCustomSpaceId()\"\n (saved)=\"drive.loadNodes()\"\n (closed)=\"matrixDrawerVisible = false\"\n >\n </lib-drive-permission-matrix>\n </ng-container>\n </nz-drawer>\n\n <!-- ========================================================================= -->\n <!-- DRAWER 11: \u0110\u1ECANH NGH\u0128A & C\u1EA4U H\u00CCNH C\u00C2Y TH\u01AF M\u1EE4C M\u1EAAU K\u00C8M PH\u00C2N QUY\u1EC0N T\u1EF0 \u0110\u1ED8NG -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"templateDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"760\"\n [nzClosable]=\"false\"\n [nzTitle]=\"templateDrawerTitleTpl\"\n [nzFooter]=\"templateDrawerFooterTpl\"\n (nzOnClose)=\"templateDrawerVisible = false\"\n >\n <ng-template #templateDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"apartment\" style=\"font-size: 18px; color: #d97706\"></nz-icon>\n <strong>\n {{ templateDrawerMode === \"create\" ? \"\u0110\u1ECBnh ngh\u0129a M\u1EABu C\u00E2y Th\u01B0 M\u1EE5c M\u1EDBi\" : \"C\u1EADp nh\u1EADt M\u1EABu C\u00E2y Th\u01B0 M\u1EE5c\" }}\n </strong>\n @if (totalConfiguredTemplatePermissions() > 0) {\n <nz-tag nzColor=\"cyan\">\uD83D\uDEE1 {{ totalConfiguredTemplatePermissions() }} quy\u1EC1n c\u00E0i s\u1EB5n</nz-tag>\n }\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"templateDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"14\">\n <div nz-flex [nzGap]=\"12\" nzWrap=\"wrap\">\n <div style=\"flex: 1.4; min-width: 220px\">\n <label class=\"drawer-field-label\">T\u00EAn m\u1EABu c\u00E2y th\u01B0 m\u1EE5c *</label>\n <input\n nz-input\n [(ngModel)]=\"templateInputName\"\n [appAutoFocus]=\"templateDrawerVisible\"\n placeholder=\"VD: H\u1ED3 s\u01A1 D\u1EF1 \u00E1n \u0110\u1EA5u th\u1EA7u, H\u1ED3 s\u01A1 H\u1EE3p \u0111\u1ED3ng...\"\n />\n </div>\n <div style=\"flex: 1; min-width: 170px\">\n <label class=\"drawer-field-label\">M\u00E3 m\u1EABu (D\u00F9ng g\u1ECDi API t\u1EEB Module kh\u00E1c)</label>\n <input nz-input [(ngModel)]=\"templateInputCode\" placeholder=\"VD: MAU_DU_AN, MAU_HOP_DONG...\" />\n </div>\n </div>\n\n <div>\n <label class=\"drawer-field-label\">M\u00F4 t\u1EA3 ng\u1EAFn</label>\n <input\n nz-input\n [(ngModel)]=\"templateInputDesc\"\n placeholder=\"M\u00F4 t\u1EA3 m\u1EE5c \u0111\u00EDch s\u1EED d\u1EE5ng ho\u1EB7c ph\u00E2n h\u1EC7 \u00E1p d\u1EE5ng...\"\n />\n </div>\n\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"12\">\n <div style=\"flex: 1\">\n <div style=\"font-weight: 600; font-size: 13px\">T\u1EA1o th\u01B0 m\u1EE5c g\u1ED1c b\u1ECDc ngo\u00E0i khi k\u00E9o th\u1EA3</div>\n <div class=\"quota-sub\">\n Khi b\u1EADt: K\u00E9o th\u1EA3 m\u1EABu v\u00E0o th\u01B0 m\u1EE5c \u0111\u00EDch s\u1EBD t\u1EA1o 1 th\u01B0 m\u1EE5c mang t\u00EAn m\u1EABu r\u1ED3i ch\u1EE9a c\u00E2y con b\u00EAn trong.\n </div>\n </div>\n <nz-switch\n style=\"flex-shrink: 0\"\n [(ngModel)]=\"templateCreateWrapperRoot\"\n nzCheckedChildren=\"C\u00F3 b\u1ECDc g\u1ED1c\"\n nzUnCheckedChildren=\"Bung tr\u1EF1c ti\u1EBFp\"\n ></nz-switch>\n </div>\n\n <nz-divider style=\"margin: 6px 0\"></nz-divider>\n\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"12\">\n <div style=\"flex: 1\">\n <div style=\"font-weight: 600; font-size: 13px\">Chia s\u1EBB m\u1EABu n\u00E0y cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng & ph\u00E2n h\u1EC7</div>\n <div class=\"quota-sub\">Cho ph\u00E9p m\u1ECDi ng\u01B0\u1EDDi d\u00F9ng v\u00E0 c\u00E1c Module nghi\u1EC7p v\u1EE5 kh\u00E1c s\u1EED d\u1EE5ng chung m\u1EABu n\u00E0y.</div>\n </div>\n <nz-switch\n style=\"flex-shrink: 0\"\n [(ngModel)]=\"templateVisibleToAll\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n nzCheckedChildren=\"To\u00E0n h\u1EC7 th\u1ED1ng\"\n nzUnCheckedChildren=\"C\u00E1 nh\u00E2n\"\n ></nz-switch>\n </div>\n </div>\n\n <!-- SO\u1EA0N TH\u1EA2O C\u1EA4U TR\u00DAC C\u00C2Y \u0110A C\u1EA4P & XEM TR\u01AF\u1EDAC TR\u1EF0C QUAN (NH\u1EA4N V\u00C0O D\u00D2NG \u0110\u1EC2 G\u00C1N QUY\u1EC0N RI\u00CANG) -->\n <div>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"6\" style=\"margin-bottom: 6px\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 0\">\n 1. C\u1EA5u tr\u00FAc C\u00E2y th\u01B0 m\u1EE5c (M\u1ED7i d\u00F2ng 1 th\u01B0 m\u1EE5c, th\u1EE5t l\u1EC1 2 kho\u1EA3ng tr\u1EAFng \u0111\u1EC3 t\u1EA1o c\u1EA5p con)\n </label>\n <div nz-flex [nzGap]=\"4\">\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('PROJECT')\">\n M\u1EABu D\u1EF1 \u00E1n\n </button>\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('CONTRACT')\">\n M\u1EABu H\u1EE3p \u0111\u1ED3ng\n </button>\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('TRAINING')\">\n M\u1EABu \u0110\u00E0o t\u1EA1o / KHCN\n </button>\n </div>\n </div>\n\n <div class=\"template-editor-grid\">\n <div>\n <textarea\n nz-input\n rows=\"11\"\n [(ngModel)]=\"templateIndentedText\"\n style=\"font-family: monospace; font-size: 12.5px; line-height: 1.55\"\n placeholder=\"- 01. H\u1ED3 s\u01A1 ph\u00E1p l\u00FD&#10; - 01.1. T\u1EDD tr\u00ECnh&#10; - 01.2. Quy\u1EBFt \u0111\u1ECBnh&#10;- 02. H\u1EE3p \u0111\u1ED3ng & Nghi\u1EC7m thu\"\n ></textarea>\n </div>\n\n <div class=\"template-tree-preview\">\n <div\n nz-flex\n nzJustify=\"space-between\"\n nzAlign=\"center\"\n style=\"font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--app-text-muted, #64748b)\"\n >\n <span>Xem tr\u01B0\u1EDBc ({{ previewTemplateFlatNodes().length }} th\u01B0 m\u1EE5c) \u2014 Nh\u1EA5n \u0111\u1EC3 g\u00E1n quy\u1EC1n:</span>\n </div>\n\n <!-- D\u00F2ng ch\u1ECDn Quy\u1EC1n g\u1ED1c to\u00E0n b\u1ED9 m\u1EABu -->\n <div\n class=\"preview-tree-row selectable-preview-row\"\n [class.active-perm-target]=\"selectedTemplatePermTarget() === '__ROOT__'\"\n (click)=\"selectTemplatePermissionTarget('__ROOT__')\"\n >\n <nz-icon nzType=\"global\" style=\"color: #0284c7; margin-right: 6px\"></nz-icon>\n <strong style=\"flex: 1; font-size: 12px\">To\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu (Quy\u1EC1n g\u1ED1c)</strong>\n @if (templateRootPermissions().length > 0) {\n <nz-tag nzColor=\"blue\" style=\"margin: 0; font-size: 10.5px; line-height: 16px; padding: 0 5px\">\n \uD83D\uDEE1 {{ templateRootPermissions().length }}\n </nz-tag>\n }\n </div>\n\n @for (node of previewTemplateFlatNodes(); track node.RelativePath) {\n <div\n class=\"preview-tree-row selectable-preview-row\"\n [class.active-perm-target]=\"selectedTemplatePermTarget() === node.RelativePath\"\n [style.padding-left.px]=\"8 + node.Level * 16\"\n (click)=\"selectTemplatePermissionTarget(node.RelativePath)\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"Nh\u1EA5n \u0111\u1EC3 c\u1EA5u h\u00ECnh ph\u00E2n quy\u1EC1n ri\u00EAng cho nh\u00E1nh th\u01B0 m\u1EE5c n\u00E0y\" -->\n <nz-icon nzType=\"folder-fill\" style=\"color: #f59e0b; margin-right: 6px\"></nz-icon>\n <span style=\"flex: 1; overflow: hidden; text-overflow: ellipsis\">{{ node.Name }}</span>\n @if (node.BreakInheritance) {\n <nz-tag\n nzColor=\"warning\"\n style=\"margin: 0 2px 0 0; font-size: 10px; line-height: 15px; padding: 0 4px\"\n nz-tooltip\n nzTooltipTitle=\"Ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha\"\n >\n \u0110\u1ED9c l\u1EADp\n </nz-tag>\n }\n @if (node.PermissionsCount > 0) {\n <nz-tag nzColor=\"cyan\" style=\"margin: 0; font-size: 10px; line-height: 15px; padding: 0 5px\">\n \uD83D\uDEE1 {{ node.PermissionsCount }}\n </nz-tag>\n }\n </div>\n }\n </div>\n </div>\n </div>\n\n <!-- ========================================================================= -->\n <!-- 2. C\u1EA4U H\u00CCNH PH\u00C2N QUY\u1EC0N M\u1EB6C \u0110\u1ECANH CHO M\u1EAAU C\u00C2Y TH\u01AF M\u1EE4C (ACL & RBAC) -->\n <!-- ========================================================================= -->\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <div>\n <div style=\"font-weight: 600; font-size: 13px\">\n <nz-icon nzType=\"safety-certificate\" style=\"color: #0284c7; margin-right: 4px\"></nz-icon>\n 2. Ph\u00E2n quy\u1EC1n c\u00E0i s\u1EB5n khi t\u1EA1o m\u1EDBi t\u1EEB M\u1EABu c\u00E2y th\u01B0 m\u1EE5c\n </div>\n <div class=\"quota-sub\">\n @if (selectedTemplatePermTarget() === \"__ROOT__\") {\n \u0110ang c\u1EA5u h\u00ECnh cho: <strong style=\"color: #0284c7\">\uD83C\uDF10 To\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu (Quy\u1EC1n g\u1ED1c)</strong> \u2014 T\u1EF1\n \u0111\u1ED9ng k\u1EBF th\u1EEBa xu\u1ED1ng m\u1ECDi th\u01B0 m\u1EE5c con.\n } @else {\n \u0110ang c\u1EA5u h\u00ECnh ri\u00EAng cho nh\u00E1nh:\n <strong style=\"color: #d97706\">\uD83D\uDCC2 {{ selectedTemplatePermTarget() }}</strong>\n <a style=\"margin-left: 8px; font-weight: 600\" (click)=\"selectTemplatePermissionTarget('__ROOT__')\">\n \u21A9 Quay v\u1EC1 Quy\u1EC1n g\u1ED1c to\u00E0n m\u1EABu\n </a>\n }\n </div>\n </div>\n\n @if (selectedTemplatePermTarget() !== \"__ROOT__\") {\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\n <span style=\"font-size: 12px\">Ng\u1EAFt k\u1EBF th\u1EEBa cha:</span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"activeTemplateTargetBreakInheritance()\"\n (ngModelChange)=\"onToggleTemplateNodeBreakInheritance($event)\"\n nzCheckedChildren=\"\u0110\u1ED9c l\u1EADp\"\n nzUnCheckedChildren=\"K\u1EBF th\u1EEBa\"\n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt \u0110\u1ED9c l\u1EADp: Th\u01B0 m\u1EE5c con n\u00E0y s\u1EBD ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha v\u00E0 ch\u1EC9 \u00E1p d\u1EE5ng danh s\u00E1ch quy\u1EC1n ri\u00EAng b\u00EAn d\u01B0\u1EDBi\"\n ></nz-switch>\n </div>\n }\n </div>\n\n <!-- Thanh ch\u1ECDn \u0110\u1ED1i t\u01B0\u1EE3ng (User / \u0110\u01A1n v\u1ECB / Vai tr\u00F2) & M\u1EE9c quy\u1EC1n -->\n <div nz-flex nzWrap=\"wrap\" [nzGap]=\"6\" nzAlign=\"center\" style=\"margin-top: 6px\">\n <nz-select\n [(ngModel)]=\"templatePermGranteeType\"\n (ngModelChange)=\"onTemplatePermGranteeTypeChange()\"\n nzSize=\"small\"\n style=\"width: 140px\"\n >\n <nz-option [nzValue]=\"DriveGranteeType.Org\" nzLabel=\"\uD83C\uDFE2 \u0110\u01A1n v\u1ECB (Org)\"></nz-option>\n <nz-option [nzValue]=\"DriveGranteeType.Role\" nzLabel=\"\uD83D\uDEE1 Vai tr\u00F2 (Role)\"></nz-option>\n <nz-option [nzValue]=\"DriveGranteeType.User\" nzLabel=\"\uD83D\uDC64 C\u00E1 nh\u00E2n (User)\"></nz-option>\n </nz-select>\n\n <nz-select\n nzShowSearch\n nzServerSearch\n nzSize=\"small\"\n nzPlaceHolder=\"T\u00ECm ch\u1ECDn User / \u0110\u01A1n v\u1ECB / Vai tr\u00F2...\"\n [(ngModel)]=\"templatePermSelectedGrantee\"\n (nzOnSearch)=\"onSearchTemplateGrantee($event)\"\n style=\"flex: 1; min-width: 210px\"\n >\n @for (g of templateGranteeOptions(); track g.GranteeId) {\n <nz-option [nzValue]=\"g\" [nzLabel]=\"g.DisplayName + ' (' + g.Code + ')'\"></nz-option>\n }\n </nz-select>\n\n <nz-select\n [(ngModel)]=\"templatePermAccessLevel\"\n [nzDisabled]=\"templatePermIsDeny\"\n nzSize=\"small\"\n style=\"width: 155px\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"\uD83D\uDC41 Ch\u1EC9 xem (10)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"\u2B07 Xem & T\u1EA3i (20)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"\u2601 Xem & T\u1EA3i l\u00EAn (35)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"\u270E Ch\u1EC9nh s\u1EEDa (40)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Manager\" nzLabel=\"\uD83D\uDC51 Qu\u1EA3n tr\u1ECB (50)\"></nz-option>\n </nz-select>\n\n <label\n nz-checkbox\n [(ngModel)]=\"templatePermIsDeny\"\n nz-tooltip\n nzTooltipTitle=\"C\u1EA5m truy c\u1EADp t\u01B0\u1EDDng minh (Explicit Deny) \u0111\u1ED1i v\u1EDBi \u0111\u1ED1i t\u01B0\u1EE3ng n\u00E0y tr\u00EAn nh\u00E1nh \u0111ang ch\u1ECDn\"\n style=\"font-size: 12px\"\n >\n C\u1EA5m (Deny)\n </label>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"primary\"\n nzSize=\"small\"\n [disabled]=\"!templatePermSelectedGrantee\"\n (click)=\"addPermissionToTemplateTarget()\"\n >\n <nz-icon nzType=\"user-add\"></nz-icon> Th\u00EAm quy\u1EC1n\n </button>\n </div>\n\n <!-- Danh s\u00E1ch c\u00E1c quy\u1EC1n \u0111\u00E3 \u0111\u1EB7t cho m\u1EE5c \u0111ang ch\u1ECDn -->\n @if (activeTemplateTargetPermissions().length === 0) {\n <div class=\"quota-sub\" style=\"padding: 8px 4px 2px\">\n @if (selectedTemplatePermTarget() === \"__ROOT__\") {\n Ch\u01B0a \u0111\u1EB7t quy\u1EC1n m\u1EB7c \u0111\u1ECBnh cho to\u00E0n m\u1EABu. H\u00E3y ch\u1ECDn \u0110\u01A1n v\u1ECB / Vai tr\u00F2 / C\u00E1 nh\u00E2n \u1EDF tr\u00EAn r\u1ED3i b\u1EA5m\n <strong>+ Th\u00EAm quy\u1EC1n</strong> (ho\u1EB7c b\u1EA5m v\u00E0o t\u1EEBng th\u01B0 m\u1EE5c b\u00EAn khung Xem tr\u01B0\u1EDBc \u0111\u1EC3 \u0111\u1EB7t quy\u1EC1n ri\u00EAng cho\n nh\u00E1nh con).\n } @else {\n Nh\u00E1nh <strong>\"{{ selectedTemplatePermTarget() }}\"</strong> ch\u01B0a c\u00F3 quy\u1EC1n ri\u00EAng (m\u1EB7c \u0111\u1ECBnh k\u1EBF th\u1EEBa t\u1EEB th\u01B0\n m\u1EE5c cha).\n }\n </div>\n } @else {\n <nz-table\n #tplPermTable\n [nzData]=\"activeTemplateTargetPermissions()\"\n nzSize=\"small\"\n [nzBordered]=\"true\"\n [nzFrontPagination]=\"false\"\n [nzShowPagination]=\"false\"\n style=\"margin-top: 6px\"\n >\n <thead>\n <tr>\n <th>\u0110\u1ED1i t\u01B0\u1EE3ng nh\u1EADn quy\u1EC1n</th>\n <th nzWidth=\"185px\">M\u1EE9c quy\u1EC1n \u00E1p d\u1EE5ng</th>\n <th nzWidth=\"95px\" class=\"text-center\">T\u1EA3i xu\u1ED1ng</th>\n <th nzWidth=\"65px\" class=\"text-center\">X\u00F3a</th>\n </tr>\n </thead>\n <tbody>\n @for (p of tplPermTable.data; track p.GranteeType + \":\" + p.GranteeId) {\n <tr>\n <td>\n <nz-tag\n [nzColor]=\"\n p.GranteeType === DriveGranteeType.User\n ? 'blue'\n : p.GranteeType === DriveGranteeType.Org\n ? 'cyan'\n : 'purple'\n \"\n >\n {{\n p.GranteeType === DriveGranteeType.User\n ? \"User\"\n : p.GranteeType === DriveGranteeType.Org\n ? \"\u0110\u01A1n v\u1ECB\"\n : \"Role\"\n }}\n </nz-tag>\n <strong>{{ p.GranteeName || p.GranteeId }}</strong>\n </td>\n <td>\n <nz-select\n nzSize=\"small\"\n [ngModel]=\"p.IsDeny ? 'DENY' : p.AccessLevel\"\n (ngModelChange)=\"updateTemplatePermissionLevel(p, $event)\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"\uD83D\uDC41 Ch\u1EC9 xem (10)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"\u2B07 Xem & T\u1EA3i (20)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"\u2601 Xem & T\u1EA3i l\u00EAn (35)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"\u270E Ch\u1EC9nh s\u1EEDa (40)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Manager\" nzLabel=\"\uD83D\uDC51 Qu\u1EA3n tr\u1ECB (50)\"></nz-option>\n <nz-option nzValue=\"DENY\" nzLabel=\"\uD83D\uDEAB C\u1EA5m (Deny)\"></nz-option>\n </nz-select>\n </td>\n <td class=\"text-center\">\n <nz-tag [nzColor]=\"p.CanDownload && !p.IsDeny ? 'green' : 'default'\">\n {{ p.CanDownload && !p.IsDeny ? \"Cho ph\u00E9p\" : \"Ch\u1EB7n\" }}\n </nz-tag>\n </td>\n <td class=\"text-center\">\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n nz-tooltip\n nzTooltipTitle=\"G\u1EE1 quy\u1EC1n n\u00E0y kh\u1ECFi m\u1EABu\"\n (click)=\"removePermissionFromTemplateTarget(p)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n }\n </div>\n </div>\n </ng-container>\n\n <ng-template #templateDrawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (templateDrawerMode === \"edit\" && editingTemplate) {\n <button nz-button nzDanger nzType=\"default\" (click)=\"onDeleteTemplate(editingTemplate)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a m\u1EABu n\u00E0y\n </button>\n }\n </div>\n <div nz-flex [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"templateDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitTemplateDrawer()\">\n <nz-icon nzType=\"save\"></nz-icon>\n {{ templateDrawerMode === \"create\" ? \"L\u01B0u m\u1EABu c\u00E2y th\u01B0 m\u1EE5c\" : \"C\u1EADp nh\u1EADt m\u1EABu\" }}\n </button>\n </div>\n </div>\n </ng-template>\n </nz-drawer>\n}\n", styles: [".drive-shell{display:grid;grid-template-columns:245px 1fr;min-height:calc(100vh - 85px);background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px;overflow:hidden}.drive-sidebar{padding:14px;background:var(--app-sidebar-bg, #f8fafc);border-right:1px solid var(--app-border, #e2e8f0);display:flex;flex-direction:column;gap:14px}.drive-nav{display:flex;flex-direction:column;gap:4px}.drive-nav a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:6px;color:var(--app-text, #334155);cursor:pointer;transition:background .15s}.drive-nav a.space-has-active-child{color:var(--primary-color, #1890ff);font-weight:600;background:color-mix(in srgb,var(--primary-color, #1890ff) 7%,transparent)}.drive-nav a:hover,.drive-nav a.active{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);color:var(--primary-color, #1890ff);font-weight:600}.org-nav-group{display:flex;flex-direction:column;gap:2px}.custom-space-link{padding-left:26px!important;font-size:13px}.custom-space-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.custom-space-badge{margin:0!important;font-size:10px;line-height:16px;padding:0 4px}.nav-inline-btn{border:none;background:transparent;color:inherit;cursor:pointer;padding:2px 4px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;opacity:.7}.nav-inline-btn:hover{opacity:1;background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.storage-mode-box{padding:10px 12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.upload-queue-box{padding:10px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px;max-height:180px;overflow-y:auto}.upload-task-row{margin-bottom:6px}.upload-task-name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quota-box{margin-top:auto;padding:12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.quota-title{font-size:13px;font-weight:600;margin-bottom:6px}.quota-sub{font-size:12px;color:var(--app-text-muted, #64748b);margin-top:4px}.drive-shell.sidebar-wide{grid-template-columns:335px 1fr}.sidebar-tree-header-bar{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;border-radius:6px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0)}.sidebar-tree-header-title{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--app-text, #334155)}.sidebar-tree-header-actions{display:inline-flex;align-items:center;gap:3px}.sidebar-tree-tool-btn{border:none;background:transparent;color:var(--app-text-muted, #64748b);width:22px;height:22px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:12px;transition:background .15s,color .15s}.sidebar-tree-tool-btn:hover,.sidebar-tree-tool-btn.active{background:color-mix(in srgb,var(--primary-color, #1890ff) 14%,transparent);color:var(--primary-color, #1890ff)}.sidebar-tree-filter-box{margin-top:-6px}.nav-item-with-tree{display:flex;flex-direction:column}.nav-caret-btn{border:none;background:transparent;color:inherit;width:18px;height:18px;padding:0;margin-left:-4px;margin-right:-2px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:11px;opacity:.75;flex-shrink:0;transition:transform .15s,background .15s,opacity .15s}.nav-caret-btn:hover{opacity:1;background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.sidebar-tree-container{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px 14px;padding-left:6px;border-left:1.5px dashed var(--app-border, #cbd5e1);max-height:320px;overflow-y:auto;overflow-x:hidden}.drive-shell.sidebar-wide .sidebar-tree-container{max-height:420px}.sidebar-tree-node{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;font-size:12.5px;color:var(--app-text, #334155);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .12s,color .12s;min-width:0}.sidebar-tree-node:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.sidebar-tree-node.active-breadcrumb-ancestor{font-weight:600;color:var(--primary-color, #1890ff)}.sidebar-tree-node.active-tree-node{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);color:var(--primary-color, #1890ff);font-weight:600;box-shadow:inset 2.5px 0 0 var(--primary-color, #1890ff)}.sidebar-tree-node.tree-drop-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 22%,transparent)!important;outline:1.5px dashed var(--primary-color, #1890ff);color:var(--primary-color, #1890ff);font-weight:600}.tree-node-caret{width:16px;height:16px;border:none;background:transparent;color:var(--app-text-muted, #64748b);padding:0;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;cursor:pointer;flex-shrink:0}.tree-node-caret:hover{color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent)}.tree-node-caret-spacer{width:16px;height:16px;display:inline-block;flex-shrink:0}.tree-node-folder-icon{font-size:15px;flex-shrink:0}.tree-node-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}.tree-node-quick-btn{border:none;background:transparent;color:var(--app-text-muted, #64748b);width:20px;height:20px;padding:0;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;opacity:0;cursor:pointer;flex-shrink:0;font-size:11px;transition:opacity .12s,background .12s,color .12s}.sidebar-tree-node:hover .tree-node-quick-btn{opacity:.85}.tree-node-quick-btn:hover{opacity:1!important;color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.sidebar-tree-empty{padding:4px 8px 4px 20px;font-size:11.5px;color:var(--app-text-muted, #94a3b8);font-style:italic}.drive-main{position:relative;padding:16px;display:flex;flex-direction:column;gap:12px;transition:background .15s,border-color .15s}.drive-main.external-drag-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 6%,var(--app-container-bg, #ffffff));outline:2px dashed var(--primary-color, #1890ff);outline-offset:-6px}.external-drop-banner{pointer-events:none;display:flex;align-items:center;gap:14px;padding:12px 18px;border-radius:8px;background:color-mix(in srgb,var(--primary-color, #1890ff) 14%,var(--app-container-bg, #ffffff));border:1px dashed var(--primary-color, #1890ff);color:var(--app-text, #1e293b)}.drop-banner-icon{font-size:28px;color:var(--primary-color, #1890ff)}.drop-banner-title{font-size:14px;font-weight:500}.drop-banner-sub{font-size:12px;color:var(--app-text-muted, #64748b);margin-top:2px}.drive-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--app-border, #f1f5f9)}.trash-info-banner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:9px 14px;border-radius:8px;background:#ef44440f;border:1px solid rgba(239,68,68,.24);font-size:13px;color:var(--app-text, #334155)}.physical-path-bar{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;color:var(--app-text-muted, #64748b)}.toolbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.drive-row{cursor:pointer;transition:background .15s,outline .15s}.drive-row.dragging-row{opacity:.45}.drive-row.drop-target-active>td{background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)!important;border-top:1px dashed var(--primary-color, #1890ff);border-bottom:1px dashed var(--primary-color, #1890ff)}.bc-drop-active,.drive-nav a.nav-drop-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 22%,transparent)!important;outline:1.5px dashed var(--primary-color, #1890ff);color:var(--primary-color, #1890ff);font-weight:600}.node-name-cell{display:flex;align-items:center;gap:8px}.node-icon-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center}.node-icon{font-size:18px}.shortcut-badge{position:absolute;right:-5px;bottom:-3px;width:13px;height:13px;border-radius:50%;background:#7c3aed;color:#fff;font-size:9px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 0 1.5px var(--app-container-bg, #ffffff)}.node-title{font-weight:500}.action-btn-group{display:inline-flex;align-items:center;justify-content:center;gap:4px}.action-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;background:transparent;border-radius:6px;cursor:pointer;font-size:15px;transition:background .15s,transform .1s}.action-icon-btn:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 12%,transparent);transform:translateY(-1px)}.action-icon-btn.color-warn:hover{background:#ef44441f}.sortable-th{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s,color .15s}.sortable-th:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 8%,var(--app-sidebar-bg, #f8fafc))!important;color:var(--primary-color, #1890ff)}.th-sort-wrap{display:inline-flex;align-items:center;gap:6px;width:100%}.th-sort-wrap.justify-center{justify-content:center}.th-sort-wrap.justify-end{justify-content:flex-end}.sort-icon{font-size:13px;opacity:.35;transition:opacity .15s,color .15s}.sort-icon.active{opacity:1;color:var(--primary-color, #1890ff)}.sortable-th:hover .sort-icon{opacity:.85}.drawer-field-label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--app-text, #334155)}.drawer-meta-card{padding:12px 14px;background:var(--app-sidebar-bg, #f8fafc);border:1px solid var(--app-border, #e2e8f0);border-radius:8px;display:flex;flex-direction:column;gap:8px}.drawer-meta-header{display:flex;align-items:center;gap:10px}.drawer-meta-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}.meta-label{color:var(--app-text-muted, #64748b)}.template-sidebar-box{padding:10px 12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.template-chip-list{display:flex;flex-direction:column;gap:6px;max-height:175px;overflow-y:auto}.template-drag-item{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 8px;border-radius:6px;border:1px dashed var(--app-border, #cbd5e1);background:var(--app-sidebar-bg, #f8fafc);cursor:grab;transition:all .15s}.template-drag-item:hover{border-color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.template-item-title{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-item-sub{font-size:10.5px;color:var(--app-text-muted, #64748b)}.template-editor-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:10px}.template-tree-preview{border:1px solid var(--app-border, #e2e8f0);border-radius:6px;padding:10px;background:var(--app-sidebar-bg, #f8fafc);max-height:450px;overflow-y:auto}.preview-tree-row{display:flex;align-items:center;font-size:12.5px;padding:2.5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selectable-preview-row{cursor:pointer;padding:4px 6px;border-radius:5px;transition:background .12s,border-color .12s;border:1px solid transparent}.selectable-preview-row:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.selectable-preview-row.active-perm-target{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);border-color:var(--primary-color, #1890ff);font-weight:600}\n"] }]
34054
+ ], providers: [NzImageService], template: "@if (activeShareToken(); as sToken) {\n <lib-drive-share-viewer [token]=\"sToken\" (backToDrive)=\"closeEmbeddedShareViewer()\"></lib-drive-share-viewer>\n} @else {\n <div class=\"drive-shell\" [class.sidebar-wide]=\"sidebarWideMode() && showSidebarTree()\">\n <!-- SIDEBAR \u0110I\u1EC0U H\u01AF\u1EDANG & QUOTA -->\n <aside class=\"drive-sidebar\">\n <div nz-flex nzVertical nzGap=\"small\">\n <button\n nz-button\n nzType=\"primary\"\n nzBlock\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"fileInput.click()\"\n >\n <nz-icon nzType=\"cloud-upload\"></nz-icon> T\u1EA3i t\u1EADp tin l\u00EAn\n </button>\n <input #fileInput type=\"file\" multiple hidden (change)=\"onFilesSelected($event)\" />\n <button\n nz-button\n nzType=\"default\"\n nzBlock\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"openFolderDrawer('create')\"\n >\n <nz-icon nzType=\"folder-add\"></nz-icon> T\u1EA1o th\u01B0 m\u1EE5c m\u1EDBi\n </button>\n </div>\n <!-- THANH T\u00D9Y CH\u1ECCN HI\u1EC2N TH\u1ECA C\u00C2Y TH\u01AF M\u1EE4C B\u00CAN TR\u00C1I (SIDEBAR FOLDER TREE OPTIONS) -->\n <div class=\"sidebar-tree-header-bar\">\n <span class=\"sidebar-tree-header-title\">\n <nz-icon nzType=\"partition\" style=\"color: var(--primary-color, #1890ff)\"></nz-icon>\n <span>C\u00E2y th\u01B0 m\u1EE5c</span>\n </span>\n <div class=\"sidebar-tree-header-actions\">\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng nhanh c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c\"\n (click)=\"expandAllSidebarTreeNodes()\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c\"\n (click)=\"collapseAllSidebarTreeNodes()\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi c\u00E2y th\u01B0 m\u1EE5c\"\n (click)=\"refreshAllExpandedSidebarTrees()\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"sidebar-tree-tool-btn\"\n [class.active]=\"sidebarWideMode()\"\n nz-tooltip\n [nzTooltipTitle]=\"\n sidebarWideMode() ? 'Thu g\u1ECDn \u0111\u1ED9 r\u1ED9ng c\u1ED9t tr\u00E1i' : 'M\u1EDF r\u1ED9ng \u0111\u1ED9 r\u1ED9ng c\u1ED9t tr\u00E1i \u0111\u1EC3 xem c\u00E2y th\u01B0 m\u1EE5c r\u00F5 h\u01A1n'\n \"\n (click)=\"onToggleSidebarWideMode()\"\n >\n <nz-icon nzType=\"column-width\"></nz-icon>\n </button>\n }\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"showSidebarTree()\"\n (ngModelChange)=\"onToggleSidebarTree($event)\"\n nz-tooltip\n nzTooltipTitle=\"B\u1EADt / T\u1EAFt hi\u1EC3n th\u1ECB c\u00E2y th\u01B0 m\u1EE5c tr\u1EF1c ti\u1EBFp b\u00EAn tr\u00E1i\"\n ></nz-switch>\n </div>\n </div>\n\n @if (showSidebarTree()) {\n <div class=\"sidebar-tree-filter-box\">\n <nz-input-group [nzPrefix]=\"sidebarFilterPrefixTpl\" [nzSuffix]=\"sidebarFilterClearTpl\" nzSize=\"small\">\n <input\n nz-input\n type=\"text\"\n placeholder=\"L\u1ECDc nhanh th\u01B0 m\u1EE5c tr\u00EAn c\u00E2y...\"\n [ngModel]=\"sidebarTreeFilter()\"\n (ngModelChange)=\"onSidebarTreeFilterChange($event)\"\n />\n </nz-input-group>\n <ng-template #sidebarFilterPrefixTpl>\n <nz-icon nzType=\"filter\" style=\"color: var(--app-text-muted, #94a3b8); font-size: 12px\"></nz-icon>\n </ng-template>\n <ng-template #sidebarFilterClearTpl>\n @if (sidebarTreeFilter()) {\n <nz-icon\n nzType=\"close-circle\"\n nzTheme=\"fill\"\n class=\"cursor-pointer\"\n style=\"color: var(--app-text-muted, #94a3b8); font-size: 12px\"\n (click)=\"onSidebarTreeFilterChange('')\"\n ></nz-icon>\n }\n </ng-template>\n </div>\n }\n\n <nav class=\"drive-nav\">\n <!-- 1. DRIVE C\u00C1 NH\u00C2N + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"drive.currentViewMode() === 'MY_DRIVE' && (!drive.currentFolderId() || !showSidebarTree())\"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'MY_DRIVE' && !!drive.currentFolderId() && showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverNavSpace() === 'MY_DRIVE'\"\n (click)=\"switchView('MY_DRIVE')\"\n (dragover)=\"onNavSpaceDragOver($event, 'MY_DRIVE')\"\n (dragleave)=\"onNavSpaceDragLeave('MY_DRIVE')\"\n (drop)=\"onNavSpaceDrop($event, 'MY_DRIVE')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'MY_DRIVE')\"\n [title]=\"\n isSidebarSpaceExpanded('MY_DRIVE') ? 'Thu g\u1ECDn c\u00E2y Drive c\u00E1 nh\u00E2n' : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c Drive c\u00E1 nh\u00E2n'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('MY_DRIVE')\n ? 'loading'\n : isSidebarSpaceExpanded('MY_DRIVE')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"hdd\"></nz-icon>\n <span style=\"flex: 1\">Drive c\u00E1 nh\u00E2n</span>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'MY_DRIVE' }\"></ng-container>\n </div>\n\n <!-- 2. T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA & C\u00C1C M\u1EE4C T\u00D9Y CH\u1EC8NH (CUSTOM SPACES) + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"org-nav-group\">\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"\n drive.currentViewMode() === 'ORG_DRIVE' && (!drive.currentFolderId() || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'ORG_DRIVE' && !!drive.currentFolderId() && showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverNavSpace() === 'ORG_DRIVE'\"\n (click)=\"switchView('ORG_DRIVE')\"\n (dragover)=\"onNavSpaceDragOver($event, 'ORG_DRIVE')\"\n (dragleave)=\"onNavSpaceDragLeave('ORG_DRIVE')\"\n (drop)=\"onNavSpaceDrop($event, 'ORG_DRIVE')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'ORG_DRIVE')\"\n [title]=\"\n isSidebarSpaceExpanded('ORG_DRIVE')\n ? 'Thu g\u1ECDn c\u00E2y T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB'\n : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('ORG_DRIVE')\n ? 'loading'\n : isSidebarSpaceExpanded('ORG_DRIVE')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"apartment\"></nz-icon>\n <span style=\"flex: 1\">T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB</span>\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n nz-tooltip\n nzTooltipTitle=\"Th\u00EAm m\u1EE5c t\u00F9y ch\u1EC9nh b\u00EAn d\u01B0\u1EDBi T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (VD: T\u00E0i li\u1EC7u d\u1EF1 \u00E1n)\"\n (click)=\"$event.stopPropagation(); openCustomSpaceDrawer('create')\"\n >\n <nz-icon nzType=\"plus\"></nz-icon>\n </button>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'ORG_DRIVE' }\"></ng-container>\n </div>\n\n <!-- DANH S\u00C1CH C\u00C1C M\u1EE4C CUSTOM B\u00CAN D\u01AF\u1EDAI \"T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA\" (VD: \"T\u00E0i li\u1EC7u d\u1EF1 \u00E1n\") -->\n @for (sp of drive.customSpaces(); track sp.Id) {\n <div class=\"nav-item-with-tree\">\n <a\n class=\"custom-space-link\"\n [class.active]=\"\n drive.currentViewMode() === 'CUSTOM_SPACE' &&\n drive.currentCustomSpaceId() === sp.Id &&\n (!drive.currentFolderId() || drive.currentFolderId() === sp.Id || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'CUSTOM_SPACE' &&\n drive.currentCustomSpaceId() === sp.Id &&\n !!drive.currentFolderId() &&\n drive.currentFolderId() !== sp.Id &&\n showSidebarTree()\n \"\n [class.nav-drop-active]=\"dragOverCustomSpaceId() === sp.Id\"\n (click)=\"switchCustomSpace(sp)\"\n (dragover)=\"onCustomSpaceDragOver($event, sp)\"\n (dragleave)=\"onCustomSpaceDragLeave(sp)\"\n (drop)=\"onCustomSpaceDrop($event, sp)\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'CUSTOM:' + sp.Id)\"\n [title]=\"\n isSidebarSpaceExpanded('CUSTOM:' + sp.Id) ? 'Thu g\u1ECDn c\u00E2y ' + sp.Name : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c ' + sp.Name\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('CUSTOM:' + sp.Id)\n ? 'loading'\n : isSidebarSpaceExpanded('CUSTOM:' + sp.Id)\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon [nzType]=\"sp.Icon || 'project'\"></nz-icon>\n <span class=\"custom-space-title\" [title]=\"sp.Name\">{{ sp.Name }}</span>\n @if (sp.IsVisibleToAllUsers) {\n <nz-tag nzColor=\"cyan\" class=\"custom-space-badge\">All</nz-tag>\n }\n @if (sp.CanManage || drive.isCurrentUserAdmin()) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n (click)=\"$event.stopPropagation(); openCustomSpaceDrawer('edit', sp)\"\n >\n <nz-icon nzType=\"setting\"></nz-icon>\n </button>\n }\n </a>\n <ng-container\n *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'CUSTOM:' + sp.Id }\"\n ></ng-container>\n </div>\n }\n </div>\n\n <!-- 3. \u0110\u01AF\u1EE2C CHIA S\u1EBA V\u1EDAI T\u00D4I + C\u00C2Y TH\u01AF M\u1EE4C CON -->\n <div class=\"nav-item-with-tree\">\n <a\n [class.active]=\"\n drive.currentViewMode() === 'SHARED_WITH_ME' && (!drive.currentFolderId() || !showSidebarTree())\n \"\n [class.space-has-active-child]=\"\n drive.currentViewMode() === 'SHARED_WITH_ME' && !!drive.currentFolderId() && showSidebarTree()\n \"\n (click)=\"switchView('SHARED_WITH_ME')\"\n >\n @if (showSidebarTree()) {\n <button\n type=\"button\"\n class=\"nav-caret-btn\"\n (click)=\"toggleSidebarSpaceTree($event, 'SHARED_WITH_ME')\"\n [title]=\"\n isSidebarSpaceExpanded('SHARED_WITH_ME')\n ? 'Thu g\u1ECDn c\u00E2y \u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i'\n : 'M\u1EDF c\u00E2y th\u01B0 m\u1EE5c \u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i'\n \"\n >\n <nz-icon\n [nzType]=\"\n isSidebarSpaceLoading('SHARED_WITH_ME')\n ? 'loading'\n : isSidebarSpaceExpanded('SHARED_WITH_ME')\n ? 'caret-down'\n : 'caret-right'\n \"\n ></nz-icon>\n </button>\n }\n <nz-icon nzType=\"share-alt\"></nz-icon>\n <span style=\"flex: 1\">\u0110\u01B0\u1EE3c chia s\u1EBB v\u1EDBi t\u00F4i</span>\n </a>\n <ng-container *ngTemplateOutlet=\"sidebarSpaceTreeTpl; context: { spaceKey: 'SHARED_WITH_ME' }\"></ng-container>\n </div>\n <a [class.active]=\"drive.currentViewMode() === 'RECENT'\" (click)=\"switchView('RECENT')\">\n <nz-icon nzType=\"clock-circle\"></nz-icon> G\u1EA7n \u0111\u00E2y\n </a>\n <a [class.active]=\"drive.currentViewMode() === 'STARRED'\" (click)=\"switchView('STARRED')\">\n <nz-icon nzType=\"star\"></nz-icon> C\u00F3 g\u1EAFn d\u1EA5u sao\n </a>\n <a [class.active]=\"drive.currentViewMode() === 'TRASH'\" (click)=\"switchView('TRASH')\">\n <nz-icon nzType=\"delete\"></nz-icon>\n <span style=\"flex: 1\">Th\u00F9ng r\u00E1c</span>\n @if (drive.currentViewMode() === \"TRASH\" && drive.items().length > 0) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n style=\"color: #ef4444\"\n nz-tooltip\n nzTooltipTitle=\"D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c (X\u00F3a v\u0129nh vi\u1EC5n t\u1EA5t c\u1EA3)\"\n (click)=\"$event.stopPropagation(); onEmptyTrash()\"\n >\n <nz-icon nzType=\"clear\"></nz-icon>\n </button>\n }\n </a>\n </nav>\n\n <!-- TEMPLATE D\u00D9NG CHUNG HI\u1EC2N TH\u1ECA C\u00C2Y TH\u01AF M\u1EE4C \u0110A C\u1EA4P B\u00CAN TR\u00C1I CHO T\u1EEANG KH\u00D4NG GIAN -->\n <ng-template #sidebarSpaceTreeTpl let-spaceKey=\"spaceKey\">\n @if (isSidebarSpaceExpanded(spaceKey)) {\n @if (getSidebarVisibleTreeNodes(spaceKey); as treeNodes) {\n @if (treeNodes.length > 0) {\n <div class=\"sidebar-tree-container\">\n @for (vm of treeNodes; track vm.folderId) {\n <div\n class=\"sidebar-tree-node\"\n [class.active-tree-node]=\"vm.isActive\"\n [class.active-breadcrumb-ancestor]=\"vm.isInActiveBreadcrumb && !vm.isActive\"\n [class.tree-drop-active]=\"dragOverSidebarFolderId() === vm.folderId\"\n [style.padding-left.px]=\"6 + vm.level * 14\"\n [attr.draggable]=\"vm.node.EffectiveAccess >= DriveAccessLevel.Editor\"\n (dragstart)=\"onSidebarTreeNodeDragStart($event, vm)\"\n (dragend)=\"onRowDragEnd()\"\n (dragover)=\"onSidebarTreeNodeDragOver($event, vm)\"\n (dragleave)=\"onSidebarTreeNodeDragLeave($event, vm)\"\n (drop)=\"onSidebarTreeNodeDrop($event, vm)\"\n (click)=\"onSidebarTreeNodeClick(vm)\"\n (contextmenu)=\"onContextMenu($event, menu, vm.node)\"\n >\n @if (!vm.hasKnownNoChildren) {\n <button\n type=\"button\"\n class=\"tree-node-caret\"\n (click)=\"toggleSidebarFolderNode($event, vm)\"\n [title]=\"vm.isExpanded ? 'Thu g\u1ECDn nh\u00E1nh' : 'M\u1EDF r\u1ED9ng th\u01B0 m\u1EE5c con'\"\n >\n <nz-icon\n [nzType]=\"vm.isLoading ? 'loading' : vm.isExpanded ? 'caret-down' : 'caret-right'\"\n ></nz-icon>\n </button>\n } @else {\n <span class=\"tree-node-caret-spacer\"></span>\n }\n\n <nz-icon\n class=\"tree-node-folder-icon\"\n [nzType]=\"vm.isExpanded || vm.isActive ? 'folder-open' : 'folder-fill'\"\n [style.color]=\"vm.isActive ? 'var(--primary-color, #1890ff)' : '#f59e0b'\"\n ></nz-icon>\n\n <span class=\"tree-node-label\" [title]=\"vm.node.Name\">\n {{ vm.node.Name }}\n </span>\n\n @if (vm.node.EffectiveAccess >= DriveAccessLevel.Uploader) {\n <button\n type=\"button\"\n class=\"tree-node-quick-btn\"\n title=\"T\u1EA1o th\u01B0 m\u1EE5c con trong '{{ vm.node.Name }}'\"\n (click)=\"openCreateSubfolderFromSidebar($event, vm)\"\n >\n <nz-icon nzType=\"plus\"></nz-icon>\n </button>\n }\n </div>\n }\n </div>\n } @else if (isSidebarSpaceLoading(spaceKey)) {\n <div class=\"sidebar-tree-empty\">\n <nz-icon nzType=\"loading\" style=\"margin-right: 4px\"></nz-icon> \u0110ang t\u1EA3i c\u00E2y th\u01B0 m\u1EE5c...\n </div>\n } @else if (sidebarTreeFilter().trim()) {\n <!-- <div class=\"sidebar-tree-empty\">Kh\u00F4ng kh\u1EDBp th\u01B0 m\u1EE5c n\u00E0o</div> -->\n } @else {\n <!-- <div class=\"sidebar-tree-empty\">Ch\u01B0a c\u00F3 th\u01B0 m\u1EE5c con</div> -->\n }\n }\n }\n </ng-template>\n <!-- KHUNG M\u1EAAU C\u00C2Y TH\u01AF M\u1EE4C (H\u1ED6 TR\u1EE2 K\u00C9O TH\u1EA2 V\u00C0O TH\u01AF M\u1EE4C \u0110\u00CDCH HO\u1EB6C B\u1EA4M T\u1EA0O NHANH) -->\n @if (drive.isCurrentUserAdmin()) {\n <div class=\"template-sidebar-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <span style=\"font-size: 12px; font-weight: 600\">\n <nz-icon nzType=\"apartment\" style=\"color: #d97706; margin-right: 4px\"></nz-icon>\n M\u1EABu c\u00E2y th\u01B0 m\u1EE5c ({{ drive.folderTemplates().length }})\n </span>\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px\"\n (click)=\"openTemplateDrawer('create')\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"\u0110\u1ECBnh ngh\u0129a m\u1EABu c\u00E2y th\u01B0 m\u1EE5c m\u1EDBi\" -->\n <nz-icon nzType=\"plus\"></nz-icon> T\u1EA1o m\u1EABu\n </button>\n </div>\n\n @if (drive.folderTemplates().length === 0) {\n <div class=\"quota-sub\" style=\"font-size: 11px\">\n Ch\u01B0a c\u00F3 m\u1EABu n\u00E0o. B\u1EA5m <strong>+ T\u1EA1o m\u1EABu</strong> \u0111\u1EC3 \u0111\u1ECBnh ngh\u0129a c\u00E2y th\u01B0 m\u1EE5c chu\u1EA9n.\n </div>\n } @else {\n <div class=\"template-chip-list\">\n @for (tpl of drive.folderTemplates(); track tpl.Id) {\n <div\n class=\"template-drag-item\"\n draggable=\"true\"\n (dragstart)=\"onTemplateDragStart($event, tpl)\"\n (dragend)=\"onTemplateDragEnd()\"\n >\n <!-- nz-tooltip\n [nzTooltipTitle]=\"\n 'K\u00E9o th\u1EA3 m\u1EABu [' +\n tpl.Name +\n '] (' +\n tpl.TotalFolderCount +\n ' th\u01B0 m\u1EE5c) v\u00E0o m\u1ED9t Th\u01B0 m\u1EE5c \u0111\u00EDch tr\u00EAn b\u1EA3ng, ho\u1EB7c b\u1EA5m \u0111\u1EC3 t\u1EA1o t\u1EA1i \u0111\u00E2y'\n \" -->\n <div\n nz-flex\n nzAlign=\"center\"\n [nzGap]=\"6\"\n style=\"flex: 1; min-width: 0\"\n (click)=\"openFolderDrawer('create', undefined, tpl)\"\n >\n <nz-icon nzType=\"folder-add\" style=\"color: #d97706; font-size: 15px\"></nz-icon>\n <div style=\"flex: 1; min-width: 0\">\n <div class=\"template-item-title\">{{ tpl.Name }}</div>\n <div class=\"template-item-sub\">\n <code>{{ tpl.Code }}</code> \u2022 {{ tpl.TotalFolderCount }} m\u1EE5c\n @if (tpl.TotalPermissionCount > 0) {\n <span style=\"color: #0284c7; font-weight: 600\">\n \u2022 \uD83D\uDEE1 {{ tpl.TotalPermissionCount }} quy\u1EC1n</span\n >\n }\n </div>\n </div>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n [disabled]=\"!drive.canUploadCurrentFolder()\"\n (click)=\"$event.stopPropagation(); applyTemplateToTargetFolder(tpl, drive.currentFolderId())\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"\u00C1p d\u1EE5ng ngay v\u00E0o th\u01B0 m\u1EE5c \u0111ang m\u1EDF\" -->\n <nz-icon nzType=\"thunderbolt\" style=\"color: var(--primary-color)\"></nz-icon>\n </button>\n @if (tpl.CanManage || drive.isCurrentUserAdmin()) {\n <button\n type=\"button\"\n class=\"nav-inline-btn\"\n (click)=\"$event.stopPropagation(); openTemplateDrawer('edit', tpl)\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"S\u1EEDa / X\u00F3a m\u1EABu c\u00E2y th\u01B0 m\u1EE5c\" -->\n <nz-icon nzType=\"setting\"></nz-icon>\n </button>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P C\u1EA4U H\u00CCNH CH\u1EBE \u0110\u1ED8 TH\u01AF M\u1EE4C V\u1EACT L\u00DD vs \u1EA2O H\u00D3A -->\n @if (drive.isCurrentUserAdmin() && false) {\n <div class=\"storage-mode-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <span style=\"font-size: 12px; font-weight: 600\">Th\u01B0 m\u1EE5c v\u1EADt l\u00FD (Disk)</span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"drive.usePhysicalFolders()\"\n (ngModelChange)=\"onTogglePhysicalMode($event)\"\n ></nz-switch>\n\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt: T\u1EA1o c\u00E2y th\u01B0 m\u1EE5c & t\u00EAn file th\u1EADt 1-1 tr\u00EAn \u1ED5 c\u1EE9ng m\u00E1y ch\u1EE7\"\n -->\n </div>\n <div class=\"quota-sub\">\n Ch\u1EBF \u0111\u1ED9: <strong>{{ drive.usePhysicalFolders() ? \"V\u1EADt l\u00FD 1:1 (Physical)\" : \"\u1EA2o h\u00F3a (Virtual)\" }}</strong>\n </div>\n @if (drive.usePhysicalFolders()) {\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-top: 8px\">\n <span style=\"font-size: 12px\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt: T\u1EA5t c\u1EA3 User c\u00F9ng d\u00F9ng chung 1 RootPath duy nh\u1EA5t \u0111\u1EC3 l\u01B0u tr\u1EEF t\u00E0i li\u1EC7u d\u1EF1 \u00E1n\"\n -->\n D\u00F9ng chung RootPath\n </span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"drive.useSharedPhysicalRoot()\"\n (ngModelChange)=\"onToggleSharedRootMode($event)\"\n ></nz-switch>\n </div>\n <div class=\"quota-sub\">\n Ph\u1EA1m vi \u0111\u0129a:\n <strong>{{ drive.useSharedPhysicalRoot() ? \"Chung to\u00E0n d\u1EF1 \u00E1n\" : \"T\u00E1ch theo t\u1EEBng User\" }}</strong>\n </div>\n <div nz-flex nzVertical [nzGap]=\"6\" style=\"margin-top: 8px\">\n <button nz-button nzType=\"dashed\" nzSize=\"small\" nzBlock (click)=\"onSyncPhysicalDisk()\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"Qu\u00E9t c\u00E1c file/th\u01B0 m\u1EE5c copy tr\u1EF1c ti\u1EBFp tr\u00EAn \u1ED5 \u0111\u0129a Server \u0111\u1EC3 n\u1EA1p v\u00E0o Drive\"\n -->\n <nz-icon nzType=\"sync\"></nz-icon> \u0110\u1ED3ng b\u1ED9 t\u1EEB \u1ED5 \u0111\u0129a\n </button>\n <button nz-button nzType=\"default\" nzSize=\"small\" nzBlock (click)=\"openRelocateDrawer(null)\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"\u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn RootPath ho\u1EB7c \u00E1nh x\u1EA1 sang \u1ED5 c\u1EE9ng l\u01B0u tr\u1EEF kh\u00E1c\"\n -->\n <nz-icon nzType=\"folder-open\"></nz-icon> \u0110\u1ED5i RootPath / \u1ED4 \u0111\u0129a\n </button>\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P TI\u1EBEN TR\u00CCNH UPLOAD (H\u1ED6 TR\u1EE2 T\u1EA2I TI\u1EBEP KHI L\u1ED6I / T\u1EA0M D\u1EEANG / H\u1EE6Y) -->\n @if (drive.userUploadQueue().length > 0) {\n <div class=\"upload-queue-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <strong>Ti\u1EBFn tr\u00ECnh t\u1EA3i l\u00EAn ({{ drive.userUploadQueue().length }})</strong>\n <a (click)=\"drive.clearCompletedUploads()\" style=\"font-size: 12px\">\u1EA8n \u0111\u00E3 xong</a>\n </div>\n <input #resumeFileInput type=\"file\" hidden (change)=\"onResumeFileSelected($event)\" />\n @for (task of drive.userUploadQueue(); track task.id) {\n <div class=\"upload-task-row\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"4\">\n <div class=\"upload-task-name\" [title]=\"task.fileName\">{{ task.fileName }}</div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n @if (task.status === \"uploading\" && (task.fileSize || 0) >= 20971520) {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzSize=\"small\"\n (click)=\"drive.pauseUploadTask(task.id)\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"T\u1EA1m d\u1EEBng t\u1EA3i l\u00EAn\"\n -->\n <nz-icon nzType=\"pause-circle\"></nz-icon>\n </button>\n }\n @if (task.status === \"error\" || task.status === \"paused\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px; font-weight: 600\"\n (click)=\"onResumeUploadClick(task, resumeFileInput)\"\n >\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"task.errorMessage || 'T\u1EA3i l\u00EAn ti\u1EBFp t\u1EEB ph\u1EA7n tr\u0103m \u0111\u00E3 l\u01B0u (Resume Upload)'\"\n -->\n <nz-icon nzType=\"reload\"></nz-icon> T\u1EA3i ti\u1EBFp\n </button>\n }\n @if (task.status !== \"uploading\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px\"\n (click)=\"drive.removeUploadTask(task.id)\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"X\u00F3a kh\u1ECFi danh s\u00E1ch & h\u1EE7y phi\u00EAn t\u1EA1m\"\n -->\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n }\n </div>\n </div>\n <nz-progress\n [nzPercent]=\"task.progress\"\n nzSize=\"small\"\n [nzStatus]=\"\n task.status === 'error'\n ? 'exception'\n : task.status === 'success'\n ? 'success'\n : task.status === 'paused'\n ? 'normal'\n : 'active'\n \"\n ></nz-progress>\n @if (task.status === \"error\") {\n <div style=\"font-size: 11px; color: #ef4444; margin-top: 2px\">\n {{ task.errorMessage || \"B\u1ECB ng\u1EAFt k\u1EBFt n\u1ED1i.\" }} \u2014 B\u1EA5m <strong>T\u1EA3i ti\u1EBFp</strong> \u0111\u1EC3 n\u1ED1i l\u1EA1i t\u1EEB\n {{ task.progress }}%.\n </div>\n }\n @if (task.status === \"paused\") {\n <div style=\"font-size: 11px; color: #f59e0b; margin-top: 2px\">\n \u0110\u00E3 t\u1EA1m d\u1EEBng \u1EDF {{ task.progress }}% \u2014 B\u1EA5m <strong>T\u1EA3i ti\u1EBFp</strong> \u0111\u1EC3 ti\u1EBFp t\u1EE5c.\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- H\u1ED8P TI\u1EBEN TR\u00CCNH DOWNLOAD (H\u1ED6 TR\u1EE2 THEO D\u00D5I % & H\u1EE6Y T\u1EA2I T\u1EE8C TH\u1EDCI \u0110\u1ED0I V\u1EDAI FILE N\u1EB6NG) -->\n @if (drive.userDownloadQueue().length > 0) {\n <div class=\"upload-queue-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"margin-bottom: 6px\">\n <strong>Ti\u1EBFn tr\u00ECnh t\u1EA3i xu\u1ED1ng ({{ drive.userDownloadQueue().length }})</strong>\n <a (click)=\"drive.clearCompletedDownloads()\" style=\"font-size: 12px\">\u1EA8n \u0111\u00E3 xong</a>\n </div>\n @for (dlTask of drive.userDownloadQueue(); track dlTask.id) {\n <div class=\"upload-task-row\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"4\">\n <div class=\"upload-task-name\" [title]=\"dlTask.fileName\">{{ dlTask.fileName }}</div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"2\">\n @if (dlTask.status === \"downloading\") {\n <button\n type=\"button\"\n nz-button\n nzType=\"link\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px; font-size: 12px; font-weight: 600\"\n (click)=\"drive.cancelDownloadTask(dlTask.id)\"\n >\n <nz-icon nzType=\"stop\"></nz-icon> H\u1EE7y t\u1EA3i\n </button>\n } @else {\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n style=\"padding: 0 4px\"\n (click)=\"drive.removeDownloadTask(dlTask.id)\"\n >\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n }\n </div>\n </div>\n <nz-progress\n [nzPercent]=\"dlTask.progress\"\n nzSize=\"small\"\n [nzStatus]=\"\n dlTask.status === 'error' || dlTask.status === 'cancelled'\n ? 'exception'\n : dlTask.status === 'success'\n ? 'success'\n : 'active'\n \"\n ></nz-progress>\n <div style=\"font-size: 11px; color: var(--app-text-muted, #64748b); margin-top: 2px\">\n @if (dlTask.status === \"downloading\") {\n \u0110ang t\u1EA3i: {{ dlTask.loadedBytes | formatBytes }}\n @if (dlTask.totalBytes) {\n / {{ dlTask.totalBytes | formatBytes }}\n }\n } @else if (dlTask.status === \"cancelled\") {\n <span style=\"color: #f59e0b\">\u0110\u00E3 h\u1EE7y t\u1EA3i xu\u1ED1ng gi\u1EEFa ch\u1EEBng.</span>\n } @else if (dlTask.status === \"error\") {\n <span style=\"color: #ef4444\">{{ dlTask.errorMessage || \"L\u1ED7i khi t\u1EA3i xu\u1ED1ng.\" }}</span>\n } @else {\n <span style=\"color: #10b981\">\u0110\u00E3 t\u1EA3i xu\u1ED1ng ho\u00E0n t\u1EA5t.</span>\n }\n </div>\n </div>\n }\n </div>\n }\n <div class=\"quota-box\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <div class=\"quota-title\" style=\"margin-bottom: 0\">\n <nz-icon nzType=\"cloud\"></nz-icon> Dung l\u01B0\u1EE3ng ({{ drive.quotaPercent() }}%)\n </div>\n @if (drive.isCurrentUserAdmin()) {\n <nz-tag nzColor=\"gold\" style=\"margin-right: 0; font-size: 11px\">Admin</nz-tag>\n }\n </div>\n <nz-progress [nzPercent]=\"drive.quotaPercent()\" nzSize=\"small\" [nzShowInfo]=\"false\"></nz-progress>\n <div class=\"quota-sub\">{{ drive.usedBytes() | formatBytes }} / {{ drive.quotaLimitBytes() | formatBytes }}</div>\n @if (drive.isCurrentUserAdmin()) {\n <button\n nz-button\n nzType=\"dashed\"\n nzSize=\"small\"\n nzBlock\n style=\"margin-top: 8px\"\n (click)=\"openPermissionMatrixDrawer(drive.currentFolderId())\"\n >\n <nz-icon nzType=\"table\"></nz-icon>\n Ma tr\u1EADn ph\u00E2n quy\u1EC1n\n </button>\n <button\n nz-button\n nzType=\"dashed\"\n nzSize=\"small\"\n nzBlock\n style=\"margin-top: 8px\"\n (click)=\"openQuotaAdminDrawer()\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"\u0110\u1EB7t Quota m\u1EB7c \u0111\u1ECBnh to\u00E0n h\u1EC7 th\u1ED1ng v\u00E0 thi\u1EBFt l\u1EADp Quota ri\u00EAng cho t\u1EEBng ng\u01B0\u1EDDi d\u00F9ng (Ch\u1EC9 Admin)\"\n -->\n <nz-icon nzType=\"setting\"></nz-icon> Qu\u1EA3n l\u00FD Quota (Admin)\n </button>\n }\n </div>\n </aside>\n <!-- KHU V\u1EF0C N\u1ED8I DUNG CH\u00CDNH (H\u1ED6 TR\u1EE2 K\u00C9O TH\u1EA2 FILE & FOLDER T\u1EEA FILE EXPLORER) -->\n <main\n class=\"drive-main\"\n [class.external-drag-active]=\"isExternalFileDragging()\"\n (dragenter)=\"onMainDragEnter($event)\"\n (dragover)=\"onMainDragOver($event)\"\n (dragleave)=\"onMainDragLeave($event)\"\n (drop)=\"onMainDrop($event)\"\n >\n @if (isExternalFileDragging()) {\n <div class=\"external-drop-banner\">\n <nz-icon nzType=\"cloud-upload\" class=\"drop-banner-icon\"></nz-icon>\n <div>\n <div class=\"drop-banner-title\">\n @if (dragOverFolderName(); as targetName) {\n Th\u1EA3 t\u1EADp tin / th\u01B0 m\u1EE5c t\u1EEB m\u00E1y t\u00EDnh \u0111\u1EC3 t\u1EA3i th\u1EB3ng v\u00E0o th\u01B0 m\u1EE5c: <strong>\"{{ targetName }}\"</strong>\n } @else {\n Th\u1EA3 t\u1EADp tin ho\u1EB7c th\u01B0 m\u1EE5c t\u1EEB File Explorer v\u00E0o \u0111\u00E2y \u0111\u1EC3 t\u1EA3i l\u00EAn th\u01B0 m\u1EE5c hi\u1EC7n t\u1EA1i\n }\n </div>\n <div class=\"drop-banner-sub\">\n H\u1ED7 tr\u1EE3 k\u00E9o th\u1EA3 nhi\u1EC1u file c\u00F9ng l\u00FAc ho\u1EB7c k\u00E9o nguy\u00EAn c\u1EA3 c\u00E2y th\u01B0 m\u1EE5c t\u1EEB m\u00E1y t\u00EDnh (T\u1EF1 \u0111\u1ED9ng Chunk Upload n\u1EBFu\n file &ge; 20MB)\n </div>\n </div>\n </div>\n }\n <!-- TOOLBAR + PAGINATION -->\n <header class=\"drive-toolbar\">\n <div>\n <nz-breadcrumb>\n <nz-breadcrumb-item\n (click)=\"navigateToFolder(null)\"\n (dragover)=\"onBreadcrumbDragOver($event, '__ROOT__')\"\n (dragleave)=\"onBreadcrumbDragLeave('__ROOT__')\"\n (drop)=\"onBreadcrumbDrop($event, null)\"\n [class.bc-drop-active]=\"dragOverBreadcrumbId() === '__ROOT__'\"\n class=\"cursor-pointer\"\n >\n <!-- \n nz-tooltip\n nzTooltipTitle=\"K\u00E9o th\u1EA3 m\u1EE5c v\u00E0o \u0111\u00E2y \u0111\u1EC3 chuy\u1EC3n v\u1EC1 th\u01B0 m\u1EE5c g\u1ED1c\"\n -->\n <nz-icon nzType=\"home\"></nz-icon>\n {{ getRootTitle() }}\n </nz-breadcrumb-item>\n @for (bc of drive.breadcrumbs(); track bc.Id) {\n @if (drive.currentViewMode() !== \"CUSTOM_SPACE\" || bc.Id !== drive.currentCustomSpaceId()) {\n <nz-breadcrumb-item\n (click)=\"navigateToFolder(bc.Id)\"\n (dragover)=\"onBreadcrumbDragOver($event, bc.Id)\"\n (dragleave)=\"onBreadcrumbDragLeave(bc.Id)\"\n (drop)=\"onBreadcrumbDrop($event, bc.Id)\"\n [class.bc-drop-active]=\"dragOverBreadcrumbId() === bc.Id\"\n class=\"cursor-pointer\"\n >\n {{ bc.Name }}\n </nz-breadcrumb-item>\n }\n }\n </nz-breadcrumb>\n <!-- @if (drive.isCurrentUserAdmin() && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as physPath) {\n <div class=\"physical-path-bar\">\n <nz-icon nzType=\"folder-open\"></nz-icon>\n <span>\n \u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD: <code>{{ physPath }}</code>\n </span>\n <icon-copy [textToCopy]=\"physPath\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD tr\u00EAn Server\"></icon-copy>\n </div>\n } -->\n </div>\n <div class=\"toolbar-actions\">\n <nz-input-group [nzSuffix]=\"suffixIconSearch\" style=\"width: 250px\">\n <input\n type=\"text\"\n nz-input\n placeholder=\"T\u00ECm ki\u1EBFm t\u00E0i li\u1EC7u, th\u01B0 m\u1EE5c...\"\n [ngModel]=\"drive.keyword()\"\n (ngModelChange)=\"drive.keyword.set($event)\"\n (keyup.enter)=\"onSearch()\"\n />\n </nz-input-group>\n <ng-template #suffixIconSearch>\n <nz-icon nzType=\"search\" class=\"cursor-pointer\" (click)=\"onSearch()\"></nz-icon>\n </ng-template>\n <label\n nz-checkbox\n [ngModel]=\"drive.includeSubfolders()\"\n (ngModelChange)=\"onToggleIncludeSubfolders($event)\"\n style=\"user-select: none; white-space: nowrap; font-size: 13px\"\n nz-tooltip\n nzTooltipTitle=\"T\u00ECm c\u1EA3 th\u01B0 m\u1EE5c con\"\n >\n </label>\n <!-- T\u00D9Y CH\u1ECCN CH\u1EBE \u0110\u1ED8 XEM: C\u00C2Y TH\u01AF M\u1EE4C B\u00CAN TR\u00C1I + B\u1EA2NG PH\u1EB2NG vs TREE TABLE -->\n <div class=\"view-mode-switch\" nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"showSidebarTree() ? 'primary' : 'default'\"\n (click)=\"onToggleSidebarTree(!showSidebarTree())\"\n nz-tooltip\n [nzTooltipTitle]=\"\n showSidebarTree()\n ? '\u0110ang b\u1EADt C\u00E2y th\u01B0 m\u1EE5c b\u00EAn tr\u00E1i (Nh\u1EA5n \u0111\u1EC3 \u1EA9n)'\n : 'Hi\u1EC3n th\u1ECB C\u00E2y th\u01B0 m\u1EE5c tr\u1EF1c ti\u1EBFp \u1EDF c\u1ED9t b\u00EAn tr\u00E1i'\n \"\n >\n <nz-icon nzType=\"partition\"></nz-icon>\n </button>\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"!drive.isTreeTableView() ? 'primary' : 'default'\"\n (click)=\"onToggleTreeTableView(false)\"\n nz-tooltip\n nzTooltipTitle=\"Flat Table\"\n >\n <nz-icon nzType=\"unordered-list\"></nz-icon>\n <!-- B\u1EA3ng ph\u1EB3ng -->\n </button>\n <button\n nz-button\n nzSize=\"small\"\n [nzType]=\"drive.isTreeTableView() ? 'primary' : 'default'\"\n (click)=\"onToggleTreeTableView(true)\"\n nz-tooltip\n nzTooltipTitle=\"Tree Table\"\n >\n <nz-icon nzType=\"apartment\"></nz-icon>\n <!-- Tree Table -->\n </button>\n @if (drive.isTreeTableView()) {\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"expandAllTreeFolders()\"\n nz-tooltip\n nzTooltipTitle=\"M\u1EDF r\u1ED9ng\"\n >\n <nz-icon nzType=\"node-expand\"></nz-icon>\n </button>\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"dashed\"\n (click)=\"collapseAllTreeFolders()\"\n nz-tooltip\n nzTooltipTitle=\"Thu g\u1ECDn\"\n >\n <nz-icon nzType=\"node-collapse\"></nz-icon>\n </button>\n }\n </div>\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drive.sortDesc() ? 'A \u2192 Z' : 'Z \u2192 A'\"\n (click)=\"toggleSortDirection()\"\n >\n <nz-icon [nzType]=\"drive.sortDesc() ? 'sort-descending' : 'sort-ascending'\"></nz-icon>\n </button>\n @if (drive.currentViewMode() === \"TRASH\") {\n <button\n type=\"button\"\n nz-button\n nzDanger\n nzType=\"primary\"\n nzSize=\"small\"\n [disabled]=\"drive.items().length === 0 || emptyingTrash()\"\n [nzLoading]=\"emptyingTrash()\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a v\u0129nh vi\u1EC5n to\u00E0n b\u1ED9 c\u00E1c m\u1EE5c trong th\u00F9ng r\u00E1c v\u00E0 gi\u1EA3i ph\u00F3ng dung l\u01B0\u1EE3ng Quota\"\n (click)=\"onEmptyTrash()\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c\n @if (drive.totalCount() > 0) {\n <span>({{ drive.totalCount() }})</span>\n }\n </button>\n }\n <button\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n (click)=\"refreshExplorer()\"\n nz-tooltip\n nzTooltipTitle=\"L\u00E0m m\u1EDBi\"\n >\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n <nz-pagination\n [nzSize]=\"'small'\"\n [nzPageIndex]=\"drive.pageIndex()\"\n [nzPageSize]=\"drive.pageSize()\"\n [nzTotal]=\"drive.totalCount()\"\n [nzShowSizeChanger]=\"true\"\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\n (nzPageIndexChange)=\"drive.loadNodes($event, drive.pageSize())\"\n (nzPageSizeChange)=\"drive.loadNodes(1, $event)\"\n >\n </nz-pagination>\n </div>\n </header>\n @if (drive.currentViewMode() === \"TRASH\" && drive.items().length > 0) {\n <div class=\"trash-info-banner\">\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-icon nzType=\"info-circle\" style=\"color: #ef4444; font-size: 16px\"></nz-icon>\n <span>\n C\u00E1c m\u1EE5c trong th\u00F9ng r\u00E1c v\u1EABn t\u00EDnh v\u00E0o dung l\u01B0\u1EE3ng h\u1EA1n ng\u1EA1ch (Quota) cho \u0111\u1EBFn khi b\u1ECB x\u00F3a v\u0129nh vi\u1EC5n.\n </span>\n </div>\n <button\n type=\"button\"\n nz-button\n nzDanger\n nzType=\"link\"\n nzSize=\"small\"\n style=\"font-weight: 600; padding: 0\"\n [nzLoading]=\"emptyingTrash()\"\n (click)=\"onEmptyTrash()\"\n >\n <nz-icon nzType=\"clear\"></nz-icon> D\u1ECDn s\u1EA1ch th\u00F9ng r\u00E1c ngay\n </button>\n </div>\n }\n <!-- DANH S\u00C1CH T\u1EACP TIN / TH\u01AF M\u1EE4C (H\u1ED6 TR\u1EE2 C\u1EA2 FLAT TABLE V\u00C0 TREE TABLE) -->\n <nz-table\n #explorerTable\n [nzData]=\"displayedTableItems()\"\n [nzLoading]=\"drive.loading()\"\n [nzBordered]=\"true\"\n [nzFrontPagination]=\"false\"\n [nzShowPagination]=\"false\"\n nzSize=\"small\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th class=\"sortable-th\" (click)=\"onSortColumn('Name')\">\n <div class=\"th-sort-wrap\">\n <span>T\u00EAn t\u00E0i li\u1EC7u / Th\u01B0 m\u1EE5c</span>\n <span class=\"sort-icon\" [class.active]=\"drive.sortBy() === 'Name'\">\n <nz-icon\n [nzType]=\"\n drive.sortBy() === 'Name' ? (drive.sortDesc() ? 'sort-descending' : 'sort-ascending') : 'swap'\n \"\n ></nz-icon>\n </span>\n </div>\n </th>\n <th nzWidth=\"150px\" class=\"sortable-th\" (click)=\"onSortColumn('OwnerName')\">\n <div class=\"th-sort-wrap\">\n <span>Ch\u1EE7 s\u1EDF h\u1EEFu</span>\n @if (drive.sortBy() === \"OwnerName\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"130px\" class=\"text-center sortable-th\" (click)=\"onSortColumn('AccessLevel')\">\n <div class=\"th-sort-wrap justify-center\">\n <span>Quy\u1EC1n truy c\u1EADp</span>\n @if (drive.sortBy() === \"AccessLevel\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"110px\" class=\"text-right sortable-th\" (click)=\"onSortColumn('SizeBytes')\">\n <div class=\"th-sort-wrap justify-end\">\n <span>K\u00EDch th\u01B0\u1EDBc</span>\n @if (drive.sortBy() === \"SizeBytes\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <th nzWidth=\"145px\" class=\"text-center sortable-th\" (click)=\"onSortColumn('UpdatedDate')\">\n <div class=\"th-sort-wrap justify-center\">\n <span>C\u1EADp nh\u1EADt cu\u1ED1i</span>\n @if (drive.sortBy() === \"UpdatedDate\") {\n <nz-icon [nzType]=\"drive.sortDesc() ? 'caret-down' : 'caret-up'\" class=\"sort-icon active\"></nz-icon>\n }\n </div>\n </th>\n <!-- <th nzWidth=\"210px\" class=\"text-center\">Thao t\u00E1c</th> -->\n </tr>\n </thead>\n <tbody>\n @for (item of explorerTable.data; track item.Id; let i = $index) {\n <tr\n [attr.draggable]=\"drive.currentViewMode() !== 'TRASH' && item.EffectiveAccess >= DriveAccessLevel.Editor\"\n (dragstart)=\"onRowDragStart($event, item)\"\n (dragend)=\"onRowDragEnd()\"\n (dragover)=\"onRowDragOver($event, item)\"\n (dragleave)=\"onRowDragLeave($event, item)\"\n (drop)=\"onRowDrop($event, item)\"\n (dblclick)=\"onRowDoubleClick(item)\"\n (contextmenu)=\"onContextMenu($event, menu, item)\"\n class=\"drive-row\"\n [class.dragging-row]=\"draggedNode()?.Id === item.Id\"\n [class.drop-target-active]=\"dragOverFolderId() === item.Id\"\n >\n <td class=\"text-center\">{{ i + 1 + (drive.pageIndex() - 1) * drive.pageSize() }}</td>\n <td\n [nzIndentSize]=\"drive.isTreeTableView() ? (item.treeLevel || 0) * 22 : 0\"\n [nzShowExpand]=\"drive.isTreeTableView() && isFolderLike(item) && !item.IsBrokenShortcut\"\n [nzExpand]=\"!!item.treeExpanded\"\n (nzExpandChange)=\"toggleExpandTreeFolder(item, $event)\"\n >\n <div class=\"node-name-cell\">\n <span class=\"node-icon-wrap\">\n <nz-icon\n [nzType]=\"isFolderLike(item) ? 'folder-fill' : getFileIcon(item)\"\n [style.color]=\"isFolderLike(item) ? '#f59e0b' : 'var(--primary-color)'\"\n class=\"node-icon\"\n ></nz-icon>\n @if (item.NodeType === DriveNodeType.Shortcut) {\n <span class=\"shortcut-badge\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'L\u1ED1i t\u1EAFt tr\u1ECF t\u1EDBi: ' + (item.ShortcutTargetName || item.Name)\"\n -->\n <nz-icon nzType=\"select\"></nz-icon>\n </span>\n }\n </span>\n <span\n class=\"node-title link-detail\"\n (click)=\"\n drive.isTreeTableView()\n ? toggleExpandTreeFolder(item, !item.treeExpanded)\n : onRowSingleClick(item)\n \"\n >{{ item.Name }}</span\n >\n @if (drive.keyword().trim() && item.ParentFolderName && item.ParentId !== drive.currentFolderId()) {\n <nz-tag\n nzColor=\"default\"\n style=\"margin-left: 6px; cursor: pointer\"\n (click)=\"$event.stopPropagation(); navigateToFolder(item.ParentId || null)\"\n >\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'\u0110ang n\u1EB1m trong th\u01B0 m\u1EE5c: ' + item.ParentFolderName + ' (Nh\u1EA5n \u0111\u1EC3 m\u1EDF th\u01B0 m\u1EE5c)'\"\n -->\n <nz-icon nzType=\"folder\"></nz-icon> {{ item.ParentFolderName }}\n </nz-tag>\n }\n @if (item.NodeType === DriveNodeType.Shortcut) {\n @if (item.IsBrokenShortcut) {\n <nz-tag nzColor=\"error\" style=\"margin-left: 6px\">M\u1EE5c g\u1ED1c \u0111\u00E3 x\u00F3a</nz-tag>\n } @else {\n <nz-tag nzColor=\"purple\" style=\"margin-left: 6px\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"'\u0110\u00EDch: ' + (item.ShortcutTargetName || item.Name)\"\n -->\n <nz-icon nzType=\"link\"></nz-icon> L\u1ED1i t\u1EAFt\n </nz-tag>\n }\n }\n @if (item.IsStarred) {\n <nz-icon nzType=\"star\" nzTheme=\"fill\" style=\"color: #eab308; margin-left: 4px\"></nz-icon>\n }\n @if (item.IsShared) {\n <nz-tag nzColor=\"processing\" style=\"margin-left: 6px\">\u0110\u00E3 chia s\u1EBB</nz-tag>\n }\n @if (!item.InheritPermissions) {\n <nz-tag nzColor=\"warning\" nz-tooltip nzTooltipTitle=\"\u0110\u00E3 ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha\">\n \u0110\u1ED9c l\u1EADp\n </nz-tag>\n }\n </div>\n </td>\n <td>{{ item.OwnerName || item.OwnerId }}</td>\n <td class=\"text-center\">\n <nz-tag\n [nzColor]=\"\n item.EffectiveAccess >= DriveAccessLevel.Editor\n ? 'green'\n : item.EffectiveAccess >= DriveAccessLevel.Uploader\n ? 'cyan'\n : 'default'\n \"\n >\n {{\n item.EffectiveAccess >= DriveAccessLevel.Manager\n ? \"Qu\u1EA3n tr\u1ECB\"\n : item.EffectiveAccess >= DriveAccessLevel.Editor\n ? \"Ch\u1EC9nh s\u1EEDa\"\n : item.EffectiveAccess >= DriveAccessLevel.Uploader\n ? \"Xem & T\u1EA3i l\u00EAn\"\n : item.CanDownload && item.EffectiveAccess >= DriveAccessLevel.Downloader\n ? \"Xem & T\u1EA3i\"\n : \"Ch\u1EC9 xem\"\n }}\n </nz-tag>\n </td>\n <td class=\"text-right\">\n {{ isFolderLike(item) ? \"\u2014\" : (item.SizeBytes | formatBytes) }}\n </td>\n <td class=\"text-center\">{{ item.UpdatedDate | date: \"dd/MM/yyyy HH:mm\" }}</td>\n <!-- <td class=\"text-center\">\n <div class=\"action-btn-group\">\n @if (drive.currentViewMode() !== \"TRASH\") {\n @if (item.CanShare || item.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openShareDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chia s\u1EBB & Ph\u00E2n quy\u1EC1n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"share-alt\"></nz-icon>\n </button>\n }\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openMoveDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chuy\u1EC3n th\u01B0 m\u1EE5c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"drag\"></nz-icon>\n </button>\n }\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openCopyDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"Sao ch\u00E9p\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"copy\"></nz-icon>\n </button>\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openShortcutDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"T\u1EA1o l\u1ED1i t\u1EAFt\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"link\"></nz-icon>\n </button>\n @if (\n item.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n item.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openRelocateDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD / \u00C1nh x\u1EA1 \u1ED5 c\u1EE9ng l\u01B0u tr\u1EEF\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"hdd\"></nz-icon>\n </button>\n }\n @if (\n isFileLike(item) &&\n !item.IsBrokenShortcut &&\n item.CanDownload &&\n item.EffectiveAccess >= DriveAccessLevel.Downloader\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); onDownloadItem(item)\"\n nz-tooltip\n nzTooltipTitle=\"T\u1EA3i xu\u1ED1ng\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"download\"></nz-icon>\n </button>\n }\n @if (\n isFileLike(item) && !item.IsBrokenShortcut && item.EffectiveAccess >= DriveAccessLevel.Editor\n ) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openVersionDrawer(item)\"\n nz-tooltip\n nzTooltipTitle=\"L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"history\"></nz-icon>\n </button>\n }\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); openFolderDrawer('rename', item)\"\n nz-tooltip\n [nzTooltipTitle]=\"\n item.EffectiveAccess >= DriveAccessLevel.Editor\n ? '\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt'\n : 'Xem chi ti\u1EBFt & Nh\u1EADt k\u00FD'\n \"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon\n [nzType]=\"item.EffectiveAccess >= DriveAccessLevel.Editor ? 'edit' : 'info-circle'\"\n ></nz-icon>\n </button>\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n (click)=\"$event.stopPropagation(); onSoftDelete(item)\"\n nz-tooltip\n nzTooltipTitle=\"Chuy\u1EC3n v\u00E0o th\u00F9ng r\u00E1c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n }\n } @else {\n @if (item.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-primary\"\n (click)=\"$event.stopPropagation(); onRestore(item)\"\n nz-tooltip\n nzTooltipTitle=\"Kh\u00F4i ph\u1EE5c\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"rollback\"></nz-icon>\n </button>\n }\n @if (item.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button\n type=\"button\"\n class=\"action-icon-btn color-warn\"\n (click)=\"$event.stopPropagation(); onPermanentDelete(item)\"\n nz-tooltip\n nzTooltipTitle=\"X\u00F3a v\u0129nh vi\u1EC5n\"\n [nzTooltipMouseEnterDelay]=\"1\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n }\n }\n </div>\n </td> -->\n </tr>\n }\n </tbody>\n </nz-table>\n <!-- CONTEXT MENU CHU\u1ED8T PH\u1EA2I -->\n <nz-dropdown-menu #menu=\"nzDropdownMenu\">\n @if (selectedContextItem(); as ctx) {\n <ul nz-menu>\n @if (drive.currentViewMode() === \"TRASH\") {\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"onRestore(ctx)\"><nz-icon nzType=\"rollback\"></nz-icon> Kh\u00F4i ph\u1EE5c m\u1EE5c n\u00E0y</li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Manager) {\n <li nz-menu-item nzDanger (click)=\"onPermanentDelete(ctx)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a v\u0129nh vi\u1EC5n m\u1EE5c n\u00E0y\n </li>\n }\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"onEmptyTrash()\">\n <nz-icon nzType=\"clear\"></nz-icon> D\u1ECDn s\u1EA1ch to\u00E0n b\u1ED9 th\u00F9ng r\u00E1c...\n </li>\n } @else {\n @if (ctx.NodeType === DriveNodeType.File) {\n <li nz-menu-item (click)=\"previewFile(ctx)\">\n <nz-icon nzType=\"eye\"></nz-icon> Xem tr\u1EF1c ti\u1EBFp (Drawer Preview)\n </li>\n @if (ctx.CanDownload && ctx.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <li nz-menu-item (click)=\"onDownloadItem(ctx)\"><nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng</li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"openVersionDrawer(ctx)\">\n <nz-icon nzType=\"history\"></nz-icon> L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n...\n </li>\n }\n <li nz-menu-divider></li>\n }\n @if (ctx.CanShare || ctx.EffectiveAccess >= DriveAccessLevel.Manager) {\n <li nz-menu-item (click)=\"openShareDrawer(ctx)\">\n <nz-icon nzType=\"usergroup-add\"></nz-icon> Ph\u00E2n quy\u1EC1n & Chia s\u1EBB...\n </li>\n }\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-item (click)=\"openMoveDrawer(ctx)\">\n <nz-icon nzType=\"drag\"></nz-icon> Di chuy\u1EC3n sang th\u01B0 m\u1EE5c kh\u00E1c...\n </li>\n }\n <li nz-menu-item (click)=\"openCopyDrawer(ctx)\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi (Copy to)...\n </li>\n <li nz-menu-item (click)=\"openShortcutDrawer(ctx)\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt (Shortcut)...\n </li>\n @if (\n ctx.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n ctx.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <li nz-menu-item (click)=\"openRelocateDrawer(ctx)\">\n <nz-icon nzType=\"hdd\"></nz-icon> \u0110\u1ED5i \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD / Chuy\u1EC3n \u1ED5 \u0111\u0129a...\n </li>\n }\n <li nz-menu-item (click)=\"openFolderDrawer('rename', ctx)\">\n <nz-icon [nzType]=\"ctx.EffectiveAccess >= DriveAccessLevel.Editor ? 'edit' : 'info-circle'\"></nz-icon>\n {{\n ctx.EffectiveAccess >= DriveAccessLevel.Editor ? \"\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt...\" : \"Xem chi ti\u1EBFt & Nh\u1EADt k\u00FD...\"\n }}\n </li>\n <li nz-menu-item (click)=\"drive.toggleStar(ctx.Id)\">\n <nz-icon nzType=\"star\"></nz-icon> {{ ctx.IsStarred ? \"B\u1ECF d\u1EA5u sao\" : \"Th\u00EAm d\u1EA5u sao\" }}\n </li>\n @if (ctx.EffectiveAccess >= DriveAccessLevel.Editor) {\n <li nz-menu-divider></li>\n <li nz-menu-item nzDanger (click)=\"onSoftDelete(ctx)\">\n <nz-icon nzType=\"delete\"></nz-icon> Chuy\u1EC3n v\u00E0o th\u00F9ng r\u00E1c\n </li>\n }\n @if (ctx.NodeType === DriveNodeType.Folder) {\n <li nz-menu-item (click)=\"openTemplateDrawer('create', undefined, ctx)\">\n <nz-icon nzType=\"apartment\"></nz-icon> L\u01B0u c\u1EA5u tr\u00FAc th\u01B0 m\u1EE5c l\u00E0m M\u1EABu...\n </li>\n }\n }\n </ul>\n }\n </nz-dropdown-menu>\n </main>\n </div>\n <!-- ========================================================================= -->\n <!-- DRAWER 1: CHIA S\u1EBA & PH\u00C2N QUY\u1EC0N (ACL / RBAC / SHARE LINKS) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"shareDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"920\"\n [nzClosable]=\"false\"\n [nzTitle]=\"shareDrawerTitleTpl\"\n [nzFooter]=\"shareDrawerFooterTpl\"\n (nzOnClose)=\"shareDrawerVisible = false\"\n >\n <ng-template #shareDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n @if (activeActionNode(); as node) {\n <nz-icon\n [nzType]=\"node.NodeType === DriveNodeType.Folder ? 'folder-fill' : getFileIcon(node)\"\n [style.color]=\"node.NodeType === DriveNodeType.Folder ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 18px\"\n ></nz-icon>\n <strong>Chia s\u1EBB & Ph\u00E2n quy\u1EC1n: {{ node.Name }}</strong>\n <nz-tag nzColor=\"blue\">{{ node.NodeType === DriveNodeType.Folder ? \"Th\u01B0 m\u1EE5c\" : \"T\u1EADp tin\" }}</nz-tag>\n }\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"shareDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (activeActionNode(); as node) {\n <lib-drive-share-modal [nodeId]=\"node.Id\"></lib-drive-share-modal>\n }\n </ng-container>\n <ng-template #shareDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"shareDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 2: L\u1ECACH S\u1EEC PHI\u00CAN B\u1EA2N T\u1EACP TIN (FILE VERSIONS) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"versionDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"760\"\n [nzClosable]=\"false\"\n [nzTitle]=\"versionDrawerTitleTpl\"\n [nzFooter]=\"versionDrawerFooterTpl\"\n (nzOnClose)=\"versionDrawerVisible = false\"\n >\n <ng-template #versionDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"history\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n: {{ activeActionNode()?.Name }}</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"versionDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (activeActionNode(); as node) {\n <lib-drive-version-modal\n [nodeId]=\"node.Id\"\n [nodeName]=\"node.Name\"\n [canEdit]=\"node.EffectiveAccess >= DriveAccessLevel.Editor\"\n [canDownload]=\"node.CanDownload && node.EffectiveAccess >= DriveAccessLevel.Downloader\"\n (closed)=\"versionDrawerVisible = false\"\n ></lib-drive-version-modal>\n }\n </ng-container>\n <ng-template #versionDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"versionDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 3: T\u1EA0O TH\u01AF M\u1EE4C M\u1EDAI / \u0110\u1ED4I T\u00CAN & CHI TI\u1EBET THU\u1ED8C T\u00CDNH + ACTIVITY LOG -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"folderDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"480\"\n [nzClosable]=\"false\"\n [nzTitle]=\"folderDrawerTitleTpl\"\n [nzFooter]=\"folderDrawerFooterTpl\"\n (nzOnClose)=\"folderDrawerVisible = false\"\n >\n <ng-template #folderDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon\n [nzType]=\"folderDrawerMode === 'create' ? 'folder-add' : canRenameTargetNode() ? 'edit' : 'info-circle'\"\n style=\"font-size: 18px; color: var(--primary-color)\"\n ></nz-icon>\n <strong>\n {{\n folderDrawerMode === \"create\"\n ? \"T\u1EA1o th\u01B0 m\u1EE5c m\u1EDBi\"\n : canRenameTargetNode()\n ? \"\u0110\u1ED5i t\u00EAn & Chi ti\u1EBFt m\u1EE5c\"\n : \"Chi ti\u1EBFt & Nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng\"\n }}\n </strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"folderDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n @if (folderDrawerMode === \"create\" && folderDrawerParentOverride; as parentOverride) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">T\u1EA1o b\u00EAn trong th\u01B0 m\u1EE5c cha:</span>\n <nz-tag nzColor=\"gold\"> <nz-icon nzType=\"folder-open\"></nz-icon> {{ parentOverride.Name }} </nz-tag>\n </div>\n </div>\n }\n <div>\n <label class=\"drawer-field-label\">\n {{ folderDrawerMode === \"create\" ? \"T\u00EAn th\u01B0 m\u1EE5c m\u1EDBi\" : \"T\u00EAn hi\u1EC3n th\u1ECB\" }}\n </label>\n <input\n nz-input\n [(ngModel)]=\"folderDrawerInputName\"\n [disabled]=\"folderDrawerMode === 'rename' && !canRenameTargetNode()\"\n [appAutoFocus]=\"folderDrawerVisible && (folderDrawerMode === 'create' || canRenameTargetNode())\"\n placeholder=\"Nh\u1EADp t\u00EAn th\u01B0 m\u1EE5c / t\u00E0i li\u1EC7u...\"\n (keyup.enter)=\"submitFolderDrawer()\"\n />\n </div>\n @if (folderDrawerMode === \"create\" && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as phys) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EBF \u0111\u1ED9 l\u01B0u tr\u1EEF:</span>\n <nz-tag nzColor=\"green\">Th\u01B0 m\u1EE5c v\u1EADt l\u00FD (Disk)</nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Th\u01B0 m\u1EE5c cha tr\u00EAn \u0111\u0129a:</span>\n <code class=\"break-word\">{{ phys }}</code>\n </div>\n </div>\n }\n @if (folderDrawerMode === \"rename\" && folderDrawerTargetNode; as target) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"target.NodeType === DriveNodeType.Folder ? 'folder-fill' : getFileIcon(target)\"\n [style.color]=\"target.NodeType === DriveNodeType.Folder ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ target.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n {{\n target.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c\"\n : \"T\u1EADp tin (\" + (target.Extension || target.MimeType || \"File\") + \")\"\n }}\n </div>\n </div>\n </div>\n <nz-divider style=\"margin: 10px 0\"></nz-divider>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EE7 s\u1EDF h\u1EEFu:</span>\n <strong>{{ target.OwnerName || target.OwnerId }}</strong>\n </div>\n @if (target.NodeType === DriveNodeType.File) {\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">K\u00EDch th\u01B0\u1EDBc:</span>\n <span>{{ target.SizeBytes | formatBytes }}</span>\n </div>\n }\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Quy\u1EC1n c\u1EE7a b\u1EA1n:</span>\n <nz-tag\n [nzColor]=\"\n target.EffectiveAccess >= DriveAccessLevel.Editor\n ? 'green'\n : target.EffectiveAccess >= DriveAccessLevel.Uploader\n ? 'cyan'\n : 'default'\n \"\n >\n {{\n target.EffectiveAccess >= DriveAccessLevel.Manager\n ? \"Qu\u1EA3n tr\u1ECB (Manager)\"\n : target.EffectiveAccess >= DriveAccessLevel.Editor\n ? \"Ch\u1EC9nh s\u1EEDa (Editor)\"\n : target.EffectiveAccess >= DriveAccessLevel.Uploader\n ? \"Xem & T\u1EA3i l\u00EAn (Uploader)\"\n : target.CanDownload && target.EffectiveAccess >= DriveAccessLevel.Downloader\n ? \"Xem & T\u1EA3i xu\u1ED1ng\"\n : \"Ch\u1EC9 xem (Viewer)\"\n }}\n </nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">K\u1EBF th\u1EEBa quy\u1EC1n:</span>\n <nz-tag [nzColor]=\"target.InheritPermissions ? 'blue' : 'warning'\">\n {{ target.InheritPermissions ? \"\u0110ang k\u1EBF th\u1EEBa\" : \"\u0110\u1ED9c l\u1EADp\" }}\n </nz-tag>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">C\u1EADp nh\u1EADt cu\u1ED1i:</span>\n <span>{{ target.UpdatedDate | date: \"dd/MM/yyyy HH:mm\" }}</span>\n </div>\n @if (target.PhysicalRelativePath) {\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">\u0110\u01B0\u1EDDng d\u1EABn \u0111\u0129a:</span>\n <code class=\"break-word\">{{ target.PhysicalRelativePath }}</code>\n </div>\n }\n @if (drive.isCurrentUserAdmin() && drive.usePhysicalFolders() && drive.currentPhysicalPath(); as physPath) {\n <div class=\"physical-path-bar\">\n <span style=\"word-break: break-all\">\n \u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD: <code style=\"padding-top: 0px\">{{ physPath }}</code>\n </span>\n <icon-copy [textToCopy]=\"physPath\" tooltip=\"Sao ch\u00E9p \u0111\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD tr\u00EAn Server\"></icon-copy>\n </div>\n }\n </div>\n <div>\n <label class=\"drawer-field-label\">Thao t\u00E1c nhanh</label>\n <div nz-flex nzWrap=\"wrap\" [nzGap]=\"8\">\n @if (target.CanShare || target.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openShareDrawer(target)\">\n <nz-icon nzType=\"share-alt\"></nz-icon> Chia s\u1EBB & Ph\u00E2n quy\u1EC1n\n </button>\n }\n @if (target.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openMoveDrawer(target)\">\n <nz-icon nzType=\"drag\"></nz-icon> Di chuy\u1EC3n\n </button>\n }\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openCopyDrawer(target)\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi\n </button>\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openShortcutDrawer(target)\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt\n </button>\n @if (\n target.NodeType === DriveNodeType.Folder &&\n drive.usePhysicalFolders() &&\n target.EffectiveAccess >= DriveAccessLevel.Manager\n ) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openRelocateDrawer(target)\">\n <nz-icon nzType=\"hdd\"></nz-icon> \u0110\u1ED5i \u1ED5 \u0111\u0129a v\u1EADt l\u00FD\n </button>\n }\n @if (target.NodeType === DriveNodeType.File) {\n @if (target.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"folderDrawerVisible = false; openVersionDrawer(target)\">\n <nz-icon nzType=\"history\"></nz-icon> L\u1ECBch s\u1EED phi\u00EAn b\u1EA3n\n </button>\n }\n @if (target.CanDownload && target.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <button nz-button nzSize=\"small\" (click)=\"onDownloadItem(target)\">\n <nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng\n </button>\n }\n }\n <button nz-button nzSize=\"small\" (click)=\"drive.toggleStar(target.Id)\">\n <nz-icon nzType=\"star\" [nzTheme]=\"target.IsStarred ? 'fill' : 'outline'\"></nz-icon>\n {{ target.IsStarred ? \"B\u1ECF sao\" : \"G\u1EAFn sao\" }}\n </button>\n </div>\n </div>\n <!-- NH\u1EACT K\u00DD HO\u1EA0T \u0110\u1ED8NG (ACTIVITY LOG) -->\n <div>\n <label class=\"drawer-field-label\">\n <nz-icon nzType=\"OrderedList\"></nz-icon> Nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng g\u1EA7n \u0111\u00E2y ({{ nodeActivities().length }})\n </label>\n <div class=\"drawer-meta-card\" style=\"max-height: 240px; overflow-y: auto\">\n @if (nodeActivities().length === 0) {\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">Ch\u01B0a c\u00F3 nh\u1EADt k\u00FD ho\u1EA1t \u0111\u1ED9ng.</div>\n } @else {\n @for (act of nodeActivities(); track act.Id) {\n <div style=\"padding: 6px 0; border-bottom: 1px dashed var(--app-border, #e2e8f0); font-size: 12px\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <nz-tag nzColor=\"blue\">{{ formatActivityAction(act.ActionType) }}</nz-tag>\n <span style=\"color: var(--app-text-muted, #64748b)\">{{\n act.CreatedDate | date: \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n </div>\n <div style=\"margin-top: 4px\">\n Th\u1EF1c hi\u1EC7n b\u1EDFi: <strong>{{ act.ActorUserName || act.ActorUserId || \"H\u1EC7 th\u1ED1ng\" }}</strong>\n </div>\n @if (act.DetailJson) {\n <div style=\"margin-top: 2px; color: var(--app-text-muted, #64748b); word-break: break-all\">\n <code>{{ formatActivityDetail(act) }}</code>\n </div>\n }\n </div>\n }\n }\n </div>\n </div>\n }\n @if (folderDrawerMode === \"create\") {\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 0\">\n <nz-icon nzType=\"apartment\" style=\"color: #d97706; margin-right: 4px\"></nz-icon>\n T\u1EA1o nhanh t\u1EEB M\u1EABu c\u00E2y th\u01B0 m\u1EE5c (T\u00F9y ch\u1ECDn)\n </label>\n <a style=\"font-size: 12px\" (click)=\"folderDrawerVisible = false; openTemplateDrawer('create')\">\n + \u0110\u1ECBnh ngh\u0129a m\u1EABu m\u1EDBi\n </a>\n </div>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Kh\u00F4ng d\u00F9ng m\u1EABu (Ch\u1EC9 t\u1EA1o 1 th\u01B0 m\u1EE5c \u0111\u01A1n) --\"\n [(ngModel)]=\"folderDrawerSelectedTemplateId\"\n (ngModelChange)=\"onFolderDrawerTemplateSelect($event)\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Ch\u1EC9 t\u1EA1o 1 th\u01B0 m\u1EE5c \u0111\u01A1n\"></nz-option>\n @for (tpl of drive.folderTemplates(); track tpl.Id) {\n <nz-option\n [nzValue]=\"tpl.Id\"\n [nzLabel]=\"'\uD83D\uDDC2 ' + tpl.Name + ' [' + tpl.Code + '] (' + tpl.TotalFolderCount + ' th\u01B0 m\u1EE5c)'\"\n ></nz-option>\n }\n </nz-select>\n\n @if (folderDrawerSelectedTemplateId) {\n <label nz-checkbox [(ngModel)]=\"folderDrawerUseWrapperFolder\" style=\"font-size: 12px; margin-top: 4px\">\n \u0110\u1EB7t to\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu b\u00EAn trong th\u01B0 m\u1EE5c g\u1ED1c\n <strong>\"{{ folderDrawerInputName || \"...\" }}\"</strong>\n </label>\n <div class=\"quota-sub\" style=\"margin-top: 2px\">\n N\u1EBFu b\u1ECF t\u00EDch, c\u00E1c nh\u00E1nh th\u01B0 m\u1EE5c con c\u1EE7a m\u1EABu s\u1EBD \u0111\u01B0\u1EE3c t\u1EA1o tr\u1EF1c ti\u1EBFp ngay trong th\u01B0 m\u1EE5c \u0111ang m\u1EDF.\n </div>\n }\n </div>\n }\n </div>\n </ng-container>\n <ng-template #folderDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"folderDrawerVisible = false\">\u0110\u00F3ng</button>\n @if (folderDrawerMode === \"create\" || canRenameTargetNode()) {\n <button nz-button nzType=\"primary\" (click)=\"submitFolderDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon>\n {{ folderDrawerMode === \"create\" ? \"T\u1EA1o th\u01B0 m\u1EE5c\" : \"L\u01B0u t\u00EAn m\u1EDBi\" }}\n </button>\n }\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 4: XEM TR\u1EF0C TUY\u1EBEN T\u00C0I LI\u1EC6U (PREVIEW DRAWER) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"previewDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"'75vw'\"\n [nzClosable]=\"false\"\n [nzTitle]=\"previewDrawerTitleTpl\"\n [nzFooter]=\"previewDrawerFooterTpl\"\n (nzOnClose)=\"previewDrawerVisible = false\"\n >\n <ng-template #previewDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"eye\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>{{ previewFileName }}</strong>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n @if (activeActionNode(); as node) {\n @if (node.CanDownload && node.EffectiveAccess >= DriveAccessLevel.Downloader) {\n <button nz-button nzSize=\"small\" nzType=\"primary\" (click)=\"onDownloadItem(node)\">\n <nz-icon nzType=\"download\"></nz-icon> T\u1EA3i xu\u1ED1ng\n </button>\n }\n @if (node.CanShare || node.EffectiveAccess >= DriveAccessLevel.Manager) {\n <button nz-button nzSize=\"small\" (click)=\"previewDrawerVisible = false; openShareDrawer(node)\">\n <nz-icon nzType=\"share-alt\"></nz-icon> Chia s\u1EBB\n </button>\n }\n @if (node.EffectiveAccess >= DriveAccessLevel.Editor) {\n <button nz-button nzSize=\"small\" (click)=\"previewDrawerVisible = false; openVersionDrawer(node)\">\n <nz-icon nzType=\"history\"></nz-icon> Phi\u00EAn b\u1EA3n\n </button>\n }\n }\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"previewDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <extend-view-file-content\n [previewType]=\"previewType\"\n [previewContent]=\"previewContent\"\n ></extend-view-file-content>\n </ng-container>\n <ng-template #previewDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button type=\"button\" nz-button (click)=\"previewDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 5: T\u1EA0O L\u1ED0I T\u1EAET (CREATE SHORTCUT DRAWER CHO FILE & FOLDER) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"shortcutDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"shortcutDrawerTitleTpl\"\n [nzFooter]=\"shortcutDrawerFooterTpl\"\n (nzOnClose)=\"shortcutDrawerVisible = false\"\n >\n <ng-template #shortcutDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"link\" style=\"font-size: 18px; color: #7c3aed\"></nz-icon>\n <strong>T\u1EA1o l\u1ED1i t\u1EAFt (Shortcut)</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"shortcutDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (shortcutSourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.ShortcutTargetName || src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n M\u1EE5c g\u1ED1c: {{ isFolderLike(src) ? \"Th\u01B0 m\u1EE5c\" : \"T\u1EADp tin\" }} \u2022 Ch\u1EE7 s\u1EDF h\u1EEFu:\n {{ src.OwnerName || src.OwnerId }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">T\u00EAn l\u1ED1i t\u1EAFt</label>\n <input\n nz-input\n [(ngModel)]=\"shortcutInputName\"\n [appAutoFocus]=\"shortcutDrawerVisible\"\n placeholder=\"Nh\u1EADp t\u00EAn hi\u1EC3n th\u1ECB c\u1EE7a l\u1ED1i t\u1EAFt...\"\n (keyup.enter)=\"submitShortcutDrawer()\"\n />\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian l\u01B0u l\u1ED1i t\u1EAFt</label>\n <nz-select\n [(ngModel)]=\"shortcutSpaceKey\"\n (ngModelChange)=\"onShortcutSpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Th\u01B0 m\u1EE5c \u0111\u00EDch ch\u1EE9a l\u1ED1i t\u1EAFt</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"shortcutDestFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of availableFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n L\u1ED1i t\u1EAFt tr\u1ECF tr\u1EF1c ti\u1EBFp t\u1EDBi m\u1EE5c g\u1ED1c m\u00E0 kh\u00F4ng t\u1ED1n th\u00EAm dung l\u01B0\u1EE3ng l\u01B0u tr\u1EEF (0 B).\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #shortcutDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"shortcutDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitShortcutDrawer()\">\n <nz-icon nzType=\"link\"></nz-icon> T\u1EA1o l\u1ED1i t\u1EAFt\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 6: DI CHUY\u1EC2N FILE / FOLDER SANG TH\u01AF M\u1EE4C HO\u1EB6C KH\u00D4NG GIAN KH\u00C1C -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"moveDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"moveDrawerTitleTpl\"\n [nzFooter]=\"moveDrawerFooterTpl\"\n (nzOnClose)=\"moveDrawerVisible = false\"\n >\n <ng-template #moveDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"drag\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Di chuy\u1EC3n sang th\u01B0 m\u1EE5c / kh\u00F4ng gian kh\u00E1c</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"moveDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (moveSourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n Lo\u1EA1i:\n {{\n src.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c\"\n : src.NodeType === DriveNodeType.Shortcut\n ? \"L\u1ED1i t\u1EAFt\"\n : \"T\u1EADp tin\"\n }}\n \u2022 Kh\u00F4ng gian hi\u1EC7n t\u1EA1i: {{ src.IsOrgNode ? \"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\" : \"Drive c\u00E1 nh\u00E2n\" }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian \u0111\u00EDch</label>\n <nz-select\n [(ngModel)]=\"moveTargetSpaceKey\"\n (ngModelChange)=\"onMoveSpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Ch\u1ECDn th\u01B0 m\u1EE5c \u0111\u00EDch</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"moveTargetFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of moveTargetFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n M\u1EB9o: B\u1EA1n c\u00F3 th\u1EC3 k\u00E9o th\u1EA3 tr\u1EF1c ti\u1EBFp d\u00F2ng t\u00E0i li\u1EC7u/th\u01B0 m\u1EE5c v\u00E0o m\u1EE5c <strong>\"Drive c\u00E1 nh\u00E2n\"</strong> ho\u1EB7c\n <strong>\"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\"</strong> \u1EDF thanh menu b\u00EAn tr\u00E1i \u0111\u1EC3 chuy\u1EC3n nhanh qua l\u1EA1i gi\u1EEFa 2 kh\u00F4ng gian.\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #moveDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"moveDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitMoveDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon> Di chuy\u1EC3n t\u1EDBi \u0111\u00E2y\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 9: SAO CH\u00C9P T\u1EDAI (COPY TO DRAWER CHO FILE / FOLDER / SHORTCUT) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"copyDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"460\"\n [nzClosable]=\"false\"\n [nzTitle]=\"copyDrawerTitleTpl\"\n [nzFooter]=\"copyDrawerFooterTpl\"\n (nzOnClose)=\"copyDrawerVisible = false\"\n >\n <ng-template #copyDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"copy\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Sao ch\u00E9p t\u1EDBi (Copy To)</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"copyDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n @if (copySourceNode(); as src) {\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon\n [nzType]=\"isFolderLike(src) ? 'folder-fill' : getFileIcon(src)\"\n [style.color]=\"isFolderLike(src) ? '#f59e0b' : 'var(--primary-color)'\"\n style=\"font-size: 22px\"\n ></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ src.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n M\u1EE5c ngu\u1ED3n:\n {{\n src.NodeType === DriveNodeType.Folder\n ? \"Th\u01B0 m\u1EE5c (Sao ch\u00E9p \u0111\u1EC7 quy to\u00E0n b\u1ED9 nh\u00E1nh con)\"\n : src.NodeType === DriveNodeType.Shortcut\n ? \"L\u1ED1i t\u1EAFt\"\n : \"T\u1EADp tin\"\n }}\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">T\u00EAn b\u1EA3n sao (\u0110\u1EC3 tr\u1ED1ng \u0111\u1EC3 h\u1EC7 th\u1ED1ng t\u1EF1 \u0111\u1EB7t t\u00EAn)</label>\n <input\n nz-input\n [(ngModel)]=\"copyCustomName\"\n [appAutoFocus]=\"copyDrawerVisible\"\n placeholder=\"Nh\u1EADp t\u00EAn m\u1EDBi cho b\u1EA3n sao...\"\n (keyup.enter)=\"submitCopyDrawer()\"\n />\n </div>\n <div>\n <label class=\"drawer-field-label\">Kh\u00F4ng gian \u0111\u00EDch</label>\n <nz-select\n [(ngModel)]=\"copyTargetSpaceKey\"\n (ngModelChange)=\"onCopySpaceKeyChange($event)\"\n style=\"width: 100%\"\n >\n <nz-option nzValue=\"MY_DRIVE\" nzLabel=\"Drive c\u00E1 nh\u00E2n (My Drive)\"></nz-option>\n <nz-option nzValue=\"ORG_DRIVE\" nzLabel=\"Kho T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB (Org Drive)\"></nz-option>\n @for (sp of drive.customSpaces(); track sp.Id) {\n <nz-option [nzValue]=\"'CUSTOM:' + sp.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + sp.Name\"></nz-option>\n }\n </nz-select>\n </div>\n <div>\n <label class=\"drawer-field-label\">Ch\u1ECDn th\u01B0 m\u1EE5c \u0111\u00EDch ch\u1EE9a b\u1EA3n sao</label>\n <nz-select\n nzShowSearch\n nzAllowClear\n nzPlaceHolder=\"-- Th\u01B0 m\u1EE5c g\u1ED1c (Root) --\"\n [(ngModel)]=\"copyTargetFolderId\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"null\" nzLabel=\"\uD83D\uDCC1 Th\u01B0 m\u1EE5c g\u1ED1c (Root)\"></nz-option>\n @for (f of copyTargetFolders(); track f.Id) {\n <nz-option [nzValue]=\"f.Id\" [nzLabel]=\"'\uD83D\uDCC2 ' + f.Name\"></nz-option>\n }\n </nz-select>\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n B\u1EA3n sao ho\u00E0n to\u00E0n \u0111\u1ED9c l\u1EADp v\u1EDBi m\u1EE5c g\u1ED1c v\u00E0 \u0111\u01B0\u1EE3c t\u00EDnh v\u00E0o h\u1EA1n ng\u1EA1ch c\u1EE7a ng\u01B0\u1EDDi t\u1EA1o b\u1EA3n sao.\n </div>\n </div>\n </div>\n }\n </ng-container>\n <ng-template #copyDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"copyDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitCopyDrawer()\">\n <nz-icon nzType=\"copy\"></nz-icon> Sao ch\u00E9p t\u1EDBi \u0111\u00E2y\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 7: \u0110\u1ED4I \u0110\u01AF\u1EDCNG D\u1EAAN V\u1EACT L\u00DD / \u00C1NH X\u1EA0 \u1ED4 C\u1EE8NG M\u1EDAI KHI K\u1EBET TH\u00DAC D\u1EF0 \u00C1N -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"relocateDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"500\"\n [nzClosable]=\"false\"\n [nzTitle]=\"relocateDrawerTitleTpl\"\n [nzFooter]=\"relocateDrawerFooterTpl\"\n (nzOnClose)=\"relocateDrawerVisible = false\"\n >\n <ng-template #relocateDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"hdd\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>\n {{ relocateTargetFolder() ? \"\u00C1nh x\u1EA1 / Chuy\u1EC3n \u1ED5 \u0111\u0129a th\u01B0 m\u1EE5c\" : \"C\u1EA5u h\u00ECnh RootPath l\u01B0u tr\u1EEF chung\" }}\n </strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"relocateDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n @if (relocateTargetFolder(); as folder) {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-header\">\n <nz-icon nzType=\"folder-fill\" style=\"font-size: 22px; color: #f59e0b\"></nz-icon>\n <div>\n <div style=\"font-weight: 600\">{{ folder.Name }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n \u0110\u01B0\u1EDDng d\u1EABn hi\u1EC7n t\u1EA1i:\n <code>{{ folder.PhysicalRelativePath || drive.currentPhysicalPath() || \"M\u1EB7c \u0111\u1ECBnh\" }}</code>\n </div>\n </div>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn v\u1EADt l\u00FD m\u1EDBi c\u1EE7a th\u01B0 m\u1EE5c (H\u1ED7 tr\u1EE3 \u1ED5 c\u1EE9ng kh\u00E1c / NAS)</label>\n <input\n nz-input\n [(ngModel)]=\"relocateNewPath\"\n [appAutoFocus]=\"relocateDrawerVisible\"\n placeholder=\"VD: E:Archive_2026DuAn_A ho\u1EB7c \\\\NAS01StorageDuAn_A\"\n (keyup.enter)=\"submitRelocateDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n Khi d\u1EF1 \u00E1n k\u1EBFt th\u00FAc v\u00E0 h\u1EA1 t\u1EA7ng chuy\u1EC3n th\u01B0 m\u1EE5c sang \u1ED5 c\u1EE9ng kh\u00E1c, \u0111\u1EB7t \u0111\u01B0\u1EDDng d\u1EABn m\u1EDBi t\u1EA1i \u0111\u00E2y \u0111\u1EC3 to\u00E0n b\u1ED9 th\u01B0\n m\u1EE5c con v\u00E0 file b\u00EAn trong t\u1EF1 \u0111\u1ED9ng map sang \u1ED5 c\u1EE9ng m\u1EDBi.\n </div>\n </div>\n <div class=\"drawer-meta-card\">\n <label nz-checkbox [(ngModel)]=\"relocateMoveFilesOnDisk\">\n <strong>T\u1EF1 \u0111\u1ED9ng di chuy\u1EC3n d\u1EEF li\u1EC7u v\u1EADt l\u00FD t\u1EEB \u0111\u01B0\u1EDDng d\u1EABn c\u0169 sang \u1ED5 \u0111\u0129a m\u1EDBi</strong>\n </label>\n <div class=\"quota-sub\" style=\"margin-left: 24px\">\n N\u1EBFu b\u1ED9 ph\u1EADn H\u1EA1 t\u1EA7ng \u0111\u00E3 copy/move s\u1EB5n th\u01B0 m\u1EE5c sang \u1ED5 c\u1EE9ng m\u1EDBi r\u1ED3i, h\u00E3y <strong>b\u1ECF ch\u1ECDn</strong> m\u1EE5c n\u00E0y \u0111\u1EC3\n h\u1EC7 th\u1ED1ng ch\u1EC9 c\u1EADp nh\u1EADt l\u1EA1i \u00E1nh x\u1EA1 \u0111\u01B0\u1EDDng d\u1EABn trong Database.\n </div>\n <label nz-checkbox [(ngModel)]=\"relocateSyncNewFiles\" style=\"margin-top: 6px\">\n <strong>\u0110\u1ED3ng b\u1ED9 b\u1ED5 sung c\u00E1c file/folder c\u00F3 s\u1EB5n t\u1EA1i \u0111\u01B0\u1EDDng d\u1EABn m\u1EDBi v\u00E0o Drive</strong>\n </label>\n </div>\n } @else {\n <div class=\"drawer-meta-card\">\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">RootPath hi\u1EC7n t\u1EA1i:</span>\n <code class=\"break-word\">{{ drive.storageRootPath() || drive.currentPhysicalPath() }}</code>\n </div>\n <div class=\"drawer-meta-row\">\n <span class=\"meta-label\">Ch\u1EBF \u0111\u1ED9 th\u01B0 m\u1EE5c g\u1ED1c:</span>\n <nz-tag [nzColor]=\"drive.useSharedPhysicalRoot() ? 'green' : 'blue'\">\n {{\n drive.useSharedPhysicalRoot() ? \"D\u00F9ng chung 1 RootPath cho t\u1EA5t c\u1EA3 User\" : \"T\u00E1ch theo t\u1EEBng Username\"\n }}\n </nz-tag>\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">\u0110\u01B0\u1EDDng d\u1EABn RootPath chung m\u1EDBi tr\u00EAn Server</label>\n <input\n nz-input\n [(ngModel)]=\"relocateNewPath\"\n [appAutoFocus]=\"relocateDrawerVisible\"\n placeholder=\"VD: D:ProjectStorageDriveRoot ho\u1EB7c E:ArchiveDrive\"\n (keyup.enter)=\"submitRelocateDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 6px\">\n T\u1EA5t c\u1EA3 c\u00E1c th\u01B0 m\u1EE5c ch\u01B0a ghim \u1ED5 \u0111\u0129a ri\u00EAng s\u1EBD t\u1EF1 \u0111\u1ED9ng \u0111\u1ECDc/ghi theo RootPath m\u1EDBi n\u00E0y.\n </div>\n </div>\n }\n </div>\n </ng-container>\n <ng-template #relocateDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"relocateDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitRelocateDrawer()\">\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u \u00E1nh x\u1EA1 v\u1EADt l\u00FD\n </button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 8: QU\u1EA2N L\u00DD H\u1EA0N NG\u1EA0CH DUNG L\u01AF\u1EE2NG (DEFAULT QUOTA & PER-USER QUOTA) -->\n <!-- CH\u1EC8 D\u00C0NH RI\u00CANG CHO QU\u1EA2N TR\u1ECA VI\u00CAN (ADMIN) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"quotaAdminDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"980\"\n [nzClosable]=\"false\"\n [nzTitle]=\"quotaAdminDrawerTitleTpl\"\n [nzFooter]=\"quotaAdminDrawerFooterTpl\"\n (nzOnClose)=\"quotaAdminDrawerVisible = false\"\n >\n <ng-template #quotaAdminDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button nz-button nzSize=\"small\" nzType=\"default\" (click)=\"toggleDrawerPlacement()\">\n <!-- \n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n -->\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"pie-chart\" style=\"font-size: 18px; color: var(--primary-color)\"></nz-icon>\n <strong>Qu\u1EA3n l\u00FD H\u1EA1n ng\u1EA1ch Dung l\u01B0\u1EE3ng (Quota Management)</strong>\n <nz-tag nzColor=\"gold\">Ch\u1EC9 Admin</nz-tag>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"quotaAdminDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n <!-- PH\u1EA6N 1: C\u1EA4U H\u00CCNH QUOTA M\u1EB6C \u0110\u1ECANH TO\u00C0N H\u1EC6 TH\u1ED0NG -->\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <div>\n <div style=\"font-size: 14px; font-weight: 600\">\n <nz-icon nzType=\"cloud-server\" style=\"color: var(--primary-color); margin-right: 6px\"></nz-icon>\n 1. C\u1EA5u h\u00ECnh Quota m\u1EB7c \u0111\u1ECBnh (Default Quota)\n </div>\n <div class=\"quota-sub\">\n \u00C1p d\u1EE5ng t\u1EF1 \u0111\u1ED9ng cho ng\u01B0\u1EDDi d\u00F9ng m\u1EDBi ho\u1EB7c ng\u01B0\u1EDDi d\u00F9ng ch\u01B0a \u0111\u01B0\u1EE3c g\u00E1n h\u1EA1n ng\u1EA1ch ri\u00EAng.\n </div>\n </div>\n @if (quotaOverview(); as ov) {\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-tag nzColor=\"blue\">\n M\u1EB7c \u0111\u1ECBnh hi\u1EC7n t\u1EA1i: <strong>{{ ov.DefaultUserQuotaBytes | formatBytes }}</strong>\n </nz-tag>\n <nz-tag nzColor=\"purple\">\n T\u1ED5ng \u0111\u00E3 d\u00F9ng to\u00E0n h\u1EC7 th\u1ED1ng: <strong>{{ ov.TotalSystemUsedBytes | formatBytes }}</strong>\n </nz-tag>\n </div>\n }\n </div>\n <nz-divider style=\"margin: 8px 0\"></nz-divider>\n <div nz-flex nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <span style=\"font-size: 13px; font-weight: 500\">M\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh:</span>\n <input\n nz-input\n type=\"number\"\n min=\"1\"\n [(ngModel)]=\"defaultQuotaInputValue\"\n style=\"width: 120px\"\n placeholder=\"Nh\u1EADp dung l\u01B0\u1EE3ng\"\n />\n <nz-select [(ngModel)]=\"defaultQuotaInputUnit\" style=\"width: 90px\">\n <nz-option nzValue=\"MB\" nzLabel=\"MB\"></nz-option>\n <nz-option nzValue=\"GB\" nzLabel=\"GB\"></nz-option>\n <nz-option nzValue=\"TB\" nzLabel=\"TB\"></nz-option>\n </nz-select>\n <!-- C\u00E1c n\u00FAt ch\u1ECDn nhanh (Quick Presets) -->\n <div nz-flex nzAlign=\"center\" [nzGap]=\"4\">\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(1, 'GB')\">1 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(5, 'GB')\">5 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(10, 'GB')\">10 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(20, 'GB')\">20 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(50, 'GB')\">50 GB</button>\n <button nz-button nzSize=\"small\" (click)=\"setDefaultQuotaPreset(100, 'GB')\">100 GB</button>\n </div>\n <button nz-button nzType=\"primary\" (click)=\"onSaveDefaultQuota()\">\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u Quota m\u1EB7c \u0111\u1ECBnh\n </button>\n </div>\n <div style=\"margin-top: 4px\">\n <label nz-checkbox [(ngModel)]=\"applyDefaultToExistingUsers\">\n \u0110\u1ED3ng th\u1EDDi c\u1EADp nh\u1EADt m\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh m\u1EDBi n\u00E0y cho t\u1EA5t c\u1EA3 c\u00E1c ng\u01B0\u1EDDi d\u00F9ng hi\u1EC7n c\u00F3\n </label>\n </div>\n </div>\n <!-- PH\u1EA6N 2: \u0110\u1EB6T QUOTA RI\u00CANG CHO T\u1EEANG NG\u01AF\u1EDCI D\u00D9NG -->\n <div>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\" style=\"margin-bottom: 10px\">\n <div>\n <div style=\"font-size: 14px; font-weight: 600\">\n <nz-icon nzType=\"team\" style=\"color: var(--primary-color); margin-right: 6px\"></nz-icon>\n 2. Thi\u1EBFt l\u1EADp Quota cho t\u1EEBng ng\u01B0\u1EDDi d\u00F9ng ({{ quotaUsers().length }})\n </div>\n <div class=\"quota-sub\">\n T\u00F9y ch\u1EC9nh h\u1EA1n ng\u1EA1ch dung l\u01B0\u1EE3ng ri\u00EAng cho t\u1EEBng c\u00E1 nh\u00E2n ho\u1EB7c \u0111\u1EB7t l\u1EA1i v\u1EC1 m\u1EE9c m\u1EB7c \u0111\u1ECBnh.\n </div>\n </div>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"8\">\n <nz-input-group [nzSuffix]=\"quotaUserSearchSuffix\" style=\"width: 260px\">\n <input\n nz-input\n type=\"text\"\n placeholder=\"T\u00ECm theo t\u00E0i kho\u1EA3n, h\u1ECD t\u00EAn, email...\"\n [(ngModel)]=\"quotaUserSearchKeyword\"\n (keyup.enter)=\"reloadQuotaOverview()\"\n />\n </nz-input-group>\n <ng-template #quotaUserSearchSuffix>\n <nz-icon nzType=\"search\" class=\"cursor-pointer\" (click)=\"reloadQuotaOverview()\"></nz-icon>\n </ng-template>\n <button nz-button nzType=\"default\" (click)=\"reloadQuotaOverview()\" nz-tooltip nzTooltipTitle=\"T\u1EA3i l\u1EA1i\">\n <nz-icon nzType=\"reload\"></nz-icon>\n </button>\n </div>\n </div>\n <nz-table\n #userQuotaTable\n [nzData]=\"quotaUsers()\"\n [nzLoading]=\"quotaLoading()\"\n nzSize=\"small\"\n [nzBordered]=\"true\"\n [nzPageSize]=\"10\"\n [nzShowPagination]=\"true\"\n >\n <thead>\n <tr>\n <th nzWidth=\"45px\" class=\"text-center\">#</th>\n <th>Ng\u01B0\u1EDDi d\u00F9ng</th>\n <th nzWidth=\"220px\">\u0110\u00E3 d\u00F9ng / H\u1EA1n ng\u1EA1ch</th>\n <th nzWidth=\"105px\" class=\"text-center\">Lo\u1EA1i Quota</th>\n <th nzWidth=\"210px\">\u0110\u1EB7t h\u1EA1n ng\u1EA1ch m\u1EDBi</th>\n <th nzWidth=\"145px\" class=\"text-center\">Thao t\u00E1c</th>\n </tr>\n </thead>\n <tbody>\n @for (u of userQuotaTable.data; track u.UserId; let idx = $index) {\n <tr>\n <td class=\"text-center\">{{ idx + 1 }}</td>\n <td>\n <div style=\"font-weight: 600\">{{ u.FullName || u.UserName }}</div>\n <div style=\"font-size: 12px; color: var(--app-text-muted, #64748b)\">\n <code>{{ u.UserName }}</code>\n @if (u.OrgName) {\n <span> \u2022 {{ u.OrgName }}</span>\n }\n @if (u.Email) {\n <span> \u2022 {{ u.Email }}</span>\n }\n </div>\n </td>\n <td>\n <div nz-flex nzJustify=\"space-between\" style=\"font-size: 12px; margin-bottom: 2px\">\n <span\n >{{ u.UsedBytes | formatBytes }} / <strong>{{ u.QuotaLimitBytes | formatBytes }}</strong></span\n >\n <span>{{ getUserQuotaPercent(u) }}%</span>\n </div>\n <nz-progress\n [nzPercent]=\"getUserQuotaPercent(u)\"\n nzSize=\"small\"\n [nzShowInfo]=\"false\"\n [nzStatus]=\"getUserQuotaPercent(u) >= 95 ? 'exception' : 'normal'\"\n ></nz-progress>\n </td>\n <td class=\"text-center\">\n @if (u.IsCustomQuota) {\n <nz-tag nzColor=\"orange\">T\u00F9y ch\u1EC9nh</nz-tag>\n } @else {\n <nz-tag nzColor=\"default\">M\u1EB7c \u0111\u1ECBnh</nz-tag>\n }\n </td>\n <td>\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\n <input nz-input type=\"number\" min=\"1\" [(ngModel)]=\"u.editQuotaValue\" style=\"width: 90px\" />\n <nz-select [(ngModel)]=\"u.editQuotaUnit\" style=\"width: 80px\">\n <nz-option nzValue=\"MB\" nzLabel=\"MB\"></nz-option>\n <nz-option nzValue=\"GB\" nzLabel=\"GB\"></nz-option>\n <nz-option nzValue=\"TB\" nzLabel=\"TB\"></nz-option>\n </nz-select>\n </div>\n </td>\n <td class=\"text-center\">\n <div nz-flex nzJustify=\"center\" [nzGap]=\"6\">\n <button nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"onSaveUserQuota(u)\">\n <!-- \n nz-tooltip\n nzTooltipTitle=\"L\u01B0u h\u1EA1n ng\u1EA1ch ri\u00EAng cho ng\u01B0\u1EDDi d\u00F9ng n\u00E0y\"\n -->\n <nz-icon nzType=\"check\"></nz-icon> L\u01B0u\n </button>\n <button\n nz-button\n nzType=\"default\"\n nzSize=\"small\"\n [disabled]=\"!u.IsCustomQuota\"\n nz-tooltip\n nzTooltipTitle=\"\u0110\u1EB7t l\u1EA1i v\u1EC1 m\u1EE9c Quota m\u1EB7c \u0111\u1ECBnh c\u1EE7a h\u1EC7 th\u1ED1ng\"\n (click)=\"onResetUserQuota(u)\"\n >\n <nz-icon nzType=\"undo\"></nz-icon>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n </div>\n </div>\n </ng-container>\n <ng-template #quotaAdminDrawerFooterTpl>\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"quotaAdminDrawerVisible = false\">\u0110\u00F3ng</button>\n </div>\n </ng-template>\n </nz-drawer>\n <!-- ========================================================================= -->\n <!-- DRAWER 10: TH\u00CAM / C\u1EA4U H\u00CCNH M\u1EE4C CUSTOM B\u00CAN D\u01AF\u1EDAI \"T\u00C0I LI\u1EC6U \u0110\u01A0N V\u1ECA\" -->\n <!-- (V\u00ED d\u1EE5: \"T\u00E0i li\u1EC7u d\u1EF1 \u00E1n\" - Admin c\u00F3 th\u1EC3 b\u1EADt hi\u1EC3n th\u1ECB cho t\u1EA5t c\u1EA3 User) -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"customSpaceDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"480\"\n [nzClosable]=\"false\"\n [nzTitle]=\"customSpaceDrawerTitleTpl\"\n [nzFooter]=\"customSpaceDrawerFooterTpl\"\n (nzOnClose)=\"customSpaceDrawerVisible = false\"\n >\n <ng-template #customSpaceDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon\n [nzType]=\"customSpaceIcon || 'project'\"\n style=\"font-size: 18px; color: var(--primary-color)\"\n ></nz-icon>\n <strong>{{\n customSpaceDrawerMode === \"create\" ? \"Th\u00EAm m\u1EE5c t\u00F9y ch\u1EC9nh d\u01B0\u1EDBi T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\" : \"C\u1EA5u h\u00ECnh m\u1EE5c t\u00F9y ch\u1EC9nh\"\n }}</strong>\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"customSpaceDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"16\">\n <div>\n <label class=\"drawer-field-label\">T\u00EAn m\u1EE5c hi\u1EC3n th\u1ECB tr\u00EAn thanh menu tr\u00E1i</label>\n <input\n nz-input\n [(ngModel)]=\"customSpaceName\"\n [appAutoFocus]=\"customSpaceDrawerVisible\"\n placeholder=\"V\u00ED d\u1EE5: T\u00E0i li\u1EC7u d\u1EF1 \u00E1n, H\u1ED3 s\u01A1 th\u1EA7u, Quy tr\u00ECnh ISO...\"\n (keyup.enter)=\"submitCustomSpaceDrawer()\"\n />\n <div class=\"quota-sub\" style=\"margin-top: 4px\">\n M\u1EE5c n\u00E0y s\u1EBD xu\u1EA5t hi\u1EC7n ngay b\u00EAn d\u01B0\u1EDBi m\u1EE5c <strong>\"T\u00E0i li\u1EC7u \u0110\u01A1n v\u1ECB\"</strong> tr\u00EAn thanh \u0111i\u1EC1u h\u01B0\u1EDBng b\u00EAn tr\u00E1i.\n </div>\n </div>\n <div>\n <label class=\"drawer-field-label\">Bi\u1EC3u t\u01B0\u1EE3ng (Icon)</label>\n <nz-select [(ngModel)]=\"customSpaceIcon\" style=\"width: 100%\">\n <nz-option nzValue=\"project\" nzLabel=\"\uD83D\uDCCA D\u1EF1 \u00E1n (project)\"></nz-option>\n <nz-option nzValue=\"folder-open\" nzLabel=\"\uD83D\uDCC2 Th\u01B0 m\u1EE5c m\u1EDF (folder-open)\"></nz-option>\n <nz-option nzValue=\"book\" nzLabel=\"\uD83D\uDCD8 T\u00E0i li\u1EC7u / C\u1EA9m nang (book)\"></nz-option>\n <nz-option nzValue=\"safety-certificate\" nzLabel=\"\uD83D\uDEE1 Quy chu\u1EA9n / ISO (safety-certificate)\"></nz-option>\n <nz-option nzValue=\"solution\" nzLabel=\"\uD83D\uDCCB H\u1ED3 s\u01A1 nghi\u1EC7p v\u1EE5 (solution)\"></nz-option>\n <nz-option nzValue=\"database\" nzLabel=\"\uD83D\uDDC4 Kho d\u1EEF li\u1EC7u (database)\"></nz-option>\n </nz-select>\n </div>\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\">\n <div>\n <div style=\"font-weight: 600; font-size: 13px\">Hi\u1EC3n th\u1ECB cho t\u1EA5t c\u1EA3 ng\u01B0\u1EDDi d\u00F9ng (All Users)</div>\n <div class=\"quota-sub\">\n @if (drive.isCurrentUserAdmin()) {\n Khi b\u1EADt: T\u1EA5t c\u1EA3 t\u00E0i kho\u1EA3n trong h\u1EC7 th\u1ED1ng \u0111\u1EC1u nh\u00ECn th\u1EA5y v\u00E0 truy c\u1EADp \u0111\u01B0\u1EE3c m\u1EE5c n\u00E0y b\u00EAn d\u01B0\u1EDBi \"T\u00E0i li\u1EC7u \u0110\u01A1n\n v\u1ECB\".\n } @else {\n Ch\u1EC9 Qu\u1EA3n tr\u1ECB vi\u00EAn (Admin) m\u1EDBi c\u00F3 quy\u1EC1n b\u1EADt hi\u1EC3n th\u1ECB chung cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng.\n }\n </div>\n </div>\n <nz-switch\n [(ngModel)]=\"customSpaceVisibleToAll\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n nzCheckedChildren=\"All Users\"\n nzUnCheckedChildren=\"C\u00E1 nh\u00E2n\"\n ></nz-switch>\n </div>\n @if (customSpaceVisibleToAll) {\n <nz-divider style=\"margin: 8px 0\"></nz-divider>\n <div>\n <label class=\"drawer-field-label\">M\u1EE9c quy\u1EC1n m\u1EB7c \u0111\u1ECBnh cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng</label>\n <nz-select\n [(ngModel)]=\"customSpaceDefaultAccessLevel\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.None\" nzLabel=\"None\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"Ch\u1EC9 xem (Viewer)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"Xem & T\u1EA3i xu\u1ED1ng\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"Xem & T\u1EA3i l\u00EAn (Kh\u00F4ng \u0111\u01B0\u1EE3c x\u00F3a)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"Ch\u1EC9nh s\u1EEDa (Editor)\"></nz-option>\n </nz-select>\n </div>\n }\n </div>\n </div>\n </ng-container>\n <ng-template #customSpaceDrawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (customSpaceDrawerMode === \"edit\" && editingCustomSpace) {\n <button nz-button nzDanger nzType=\"default\" (click)=\"onDeleteCustomSpace(editingCustomSpace)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a m\u1EE5c n\u00E0y\n </button>\n }\n </div>\n <div nz-flex [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"customSpaceDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitCustomSpaceDrawer()\">\n <nz-icon nzType=\"check\"></nz-icon>\n {{ customSpaceDrawerMode === \"create\" ? \"T\u1EA1o m\u1EE5c m\u1EDBi\" : \"L\u01B0u thay \u0111\u1ED5i\" }}\n </button>\n </div>\n </div>\n </ng-template>\n </nz-drawer>\n\n <nz-drawer\n [nzVisible]=\"matrixDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"'92vw'\"\n nzTitle=\"Ma tr\u1EADn Ph\u00E2n quy\u1EC1n T\u00E0i li\u1EC7u & Th\u01B0 m\u1EE5c\"\n (nzOnClose)=\"matrixDrawerVisible = false\"\n >\n <!-- (ACL / RBAC Matrix) -->\n <ng-container *nzDrawerContent>\n <lib-drive-permission-matrix\n [rootFolderId]=\"matrixRootNodeId\"\n [viewMode]=\"\n drive.currentViewMode() === 'ORG_DRIVE'\n ? 'ORG_DRIVE'\n : drive.currentViewMode() === 'CUSTOM_SPACE'\n ? 'CUSTOM_SPACE'\n : 'MY_DRIVE'\n \"\n [customSpaceId]=\"drive.currentCustomSpaceId()\"\n (saved)=\"drive.loadNodes()\"\n (closed)=\"matrixDrawerVisible = false\"\n >\n </lib-drive-permission-matrix>\n </ng-container>\n </nz-drawer>\n\n <!-- ========================================================================= -->\n <!-- DRAWER 11: \u0110\u1ECANH NGH\u0128A & C\u1EA4U H\u00CCNH C\u00C2Y TH\u01AF M\u1EE4C M\u1EAAU K\u00C8M PH\u00C2N QUY\u1EC0N T\u1EF0 \u0110\u1ED8NG -->\n <!-- ========================================================================= -->\n <nz-drawer\n [nzVisible]=\"templateDrawerVisible\"\n [nzPlacement]=\"drawerPlacement\"\n [nzWidth]=\"760\"\n [nzClosable]=\"false\"\n [nzTitle]=\"templateDrawerTitleTpl\"\n [nzFooter]=\"templateDrawerFooterTpl\"\n (nzOnClose)=\"templateDrawerVisible = false\"\n >\n <ng-template #templateDrawerTitleTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div nz-flex nzAlign=\"center\" nzGap=\"small\">\n <button\n nz-button\n nzSize=\"small\"\n nzType=\"default\"\n nz-tooltip\n [nzTooltipTitle]=\"drawerPlacement === 'right' ? 'Chuy\u1EC3n sang b\u00EAn tr\u00E1i' : 'Chuy\u1EC3n sang b\u00EAn ph\u1EA3i'\"\n (click)=\"toggleDrawerPlacement()\"\n >\n <nz-icon [nzType]=\"drawerPlacement === 'right' ? 'arrow-left' : 'arrow-right'\"></nz-icon>\n </button>\n <nz-icon nzType=\"apartment\" style=\"font-size: 18px; color: #d97706\"></nz-icon>\n <strong>\n {{ templateDrawerMode === \"create\" ? \"\u0110\u1ECBnh ngh\u0129a M\u1EABu C\u00E2y Th\u01B0 M\u1EE5c M\u1EDBi\" : \"C\u1EADp nh\u1EADt M\u1EABu C\u00E2y Th\u01B0 M\u1EE5c\" }}\n </strong>\n @if (totalConfiguredTemplatePermissions() > 0) {\n <nz-tag nzColor=\"cyan\">\uD83D\uDEE1 {{ totalConfiguredTemplatePermissions() }} quy\u1EC1n c\u00E0i s\u1EB5n</nz-tag>\n }\n </div>\n <button nz-button nzType=\"text\" nzSize=\"small\" (click)=\"templateDrawerVisible = false\">\n <nz-icon nzType=\"close\"></nz-icon>\n </button>\n </div>\n </ng-template>\n\n <ng-container *nzDrawerContent>\n <div nz-flex nzVertical [nzGap]=\"14\">\n <div nz-flex [nzGap]=\"12\" nzWrap=\"wrap\">\n <div style=\"flex: 1.4; min-width: 220px\">\n <label class=\"drawer-field-label\">T\u00EAn m\u1EABu c\u00E2y th\u01B0 m\u1EE5c *</label>\n <input\n nz-input\n [(ngModel)]=\"templateInputName\"\n [appAutoFocus]=\"templateDrawerVisible\"\n placeholder=\"VD: H\u1ED3 s\u01A1 D\u1EF1 \u00E1n \u0110\u1EA5u th\u1EA7u, H\u1ED3 s\u01A1 H\u1EE3p \u0111\u1ED3ng...\"\n />\n </div>\n <div style=\"flex: 1; min-width: 170px\">\n <label class=\"drawer-field-label\">M\u00E3 m\u1EABu (D\u00F9ng g\u1ECDi API t\u1EEB Module kh\u00E1c)</label>\n <input nz-input [(ngModel)]=\"templateInputCode\" placeholder=\"VD: MAU_DU_AN, MAU_HOP_DONG...\" />\n </div>\n </div>\n\n <div>\n <label class=\"drawer-field-label\">M\u00F4 t\u1EA3 ng\u1EAFn</label>\n <input\n nz-input\n [(ngModel)]=\"templateInputDesc\"\n placeholder=\"M\u00F4 t\u1EA3 m\u1EE5c \u0111\u00EDch s\u1EED d\u1EE5ng ho\u1EB7c ph\u00E2n h\u1EC7 \u00E1p d\u1EE5ng...\"\n />\n </div>\n\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"12\">\n <div style=\"flex: 1\">\n <div style=\"font-weight: 600; font-size: 13px\">T\u1EA1o th\u01B0 m\u1EE5c g\u1ED1c b\u1ECDc ngo\u00E0i khi k\u00E9o th\u1EA3</div>\n <div class=\"quota-sub\">\n Khi b\u1EADt: K\u00E9o th\u1EA3 m\u1EABu v\u00E0o th\u01B0 m\u1EE5c \u0111\u00EDch s\u1EBD t\u1EA1o 1 th\u01B0 m\u1EE5c mang t\u00EAn m\u1EABu r\u1ED3i ch\u1EE9a c\u00E2y con b\u00EAn trong.\n </div>\n </div>\n <nz-switch\n style=\"flex-shrink: 0\"\n [(ngModel)]=\"templateCreateWrapperRoot\"\n nzCheckedChildren=\"C\u00F3 b\u1ECDc g\u1ED1c\"\n nzUnCheckedChildren=\"Bung tr\u1EF1c ti\u1EBFp\"\n ></nz-switch>\n </div>\n\n <nz-divider style=\"margin: 6px 0\"></nz-divider>\n\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" [nzGap]=\"12\">\n <div style=\"flex: 1\">\n <div style=\"font-weight: 600; font-size: 13px\">Chia s\u1EBB m\u1EABu n\u00E0y cho to\u00E0n b\u1ED9 ng\u01B0\u1EDDi d\u00F9ng & ph\u00E2n h\u1EC7</div>\n <div class=\"quota-sub\">Cho ph\u00E9p m\u1ECDi ng\u01B0\u1EDDi d\u00F9ng v\u00E0 c\u00E1c Module nghi\u1EC7p v\u1EE5 kh\u00E1c s\u1EED d\u1EE5ng chung m\u1EABu n\u00E0y.</div>\n </div>\n <nz-switch\n style=\"flex-shrink: 0\"\n [(ngModel)]=\"templateVisibleToAll\"\n [nzDisabled]=\"!drive.isCurrentUserAdmin()\"\n nzCheckedChildren=\"To\u00E0n h\u1EC7 th\u1ED1ng\"\n nzUnCheckedChildren=\"C\u00E1 nh\u00E2n\"\n ></nz-switch>\n </div>\n </div>\n\n <!-- SO\u1EA0N TH\u1EA2O C\u1EA4U TR\u00DAC C\u00C2Y \u0110A C\u1EA4P & XEM TR\u01AF\u1EDAC TR\u1EF0C QUAN (NH\u1EA4N V\u00C0O D\u00D2NG \u0110\u1EC2 G\u00C1N QUY\u1EC0N RI\u00CANG) -->\n <div>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"6\" style=\"margin-bottom: 6px\">\n <label class=\"drawer-field-label\" style=\"margin-bottom: 0\">\n 1. C\u1EA5u tr\u00FAc C\u00E2y th\u01B0 m\u1EE5c (M\u1ED7i d\u00F2ng 1 th\u01B0 m\u1EE5c, th\u1EE5t l\u1EC1 2 kho\u1EA3ng tr\u1EAFng \u0111\u1EC3 t\u1EA1o c\u1EA5p con)\n </label>\n <div nz-flex [nzGap]=\"4\">\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('PROJECT')\">\n M\u1EABu D\u1EF1 \u00E1n\n </button>\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('CONTRACT')\">\n M\u1EABu H\u1EE3p \u0111\u1ED3ng\n </button>\n <button type=\"button\" nz-button nzSize=\"small\" (click)=\"loadPresetTemplateStructure('TRAINING')\">\n M\u1EABu \u0110\u00E0o t\u1EA1o / KHCN\n </button>\n </div>\n </div>\n\n <div class=\"template-editor-grid\">\n <div>\n <textarea\n nz-input\n rows=\"11\"\n [(ngModel)]=\"templateIndentedText\"\n style=\"font-family: monospace; font-size: 12.5px; line-height: 1.55\"\n placeholder=\"- 01. H\u1ED3 s\u01A1 ph\u00E1p l\u00FD&#10; - 01.1. T\u1EDD tr\u00ECnh&#10; - 01.2. Quy\u1EBFt \u0111\u1ECBnh&#10;- 02. H\u1EE3p \u0111\u1ED3ng & Nghi\u1EC7m thu\"\n ></textarea>\n </div>\n\n <div class=\"template-tree-preview\">\n <div\n nz-flex\n nzJustify=\"space-between\"\n nzAlign=\"center\"\n style=\"font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--app-text-muted, #64748b)\"\n >\n <span>Xem tr\u01B0\u1EDBc ({{ previewTemplateFlatNodes().length }} th\u01B0 m\u1EE5c) \u2014 Nh\u1EA5n \u0111\u1EC3 g\u00E1n quy\u1EC1n:</span>\n </div>\n\n <!-- D\u00F2ng ch\u1ECDn Quy\u1EC1n g\u1ED1c to\u00E0n b\u1ED9 m\u1EABu -->\n <div\n class=\"preview-tree-row selectable-preview-row\"\n [class.active-perm-target]=\"selectedTemplatePermTarget() === '__ROOT__'\"\n (click)=\"selectTemplatePermissionTarget('__ROOT__')\"\n >\n <nz-icon nzType=\"global\" style=\"color: #0284c7; margin-right: 6px\"></nz-icon>\n <strong style=\"flex: 1; font-size: 12px\">To\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu (Quy\u1EC1n g\u1ED1c)</strong>\n @if (templateRootPermissions().length > 0) {\n <nz-tag nzColor=\"blue\" style=\"margin: 0; font-size: 10.5px; line-height: 16px; padding: 0 5px\">\n \uD83D\uDEE1 {{ templateRootPermissions().length }}\n </nz-tag>\n }\n </div>\n\n @for (node of previewTemplateFlatNodes(); track node.RelativePath) {\n <div\n class=\"preview-tree-row selectable-preview-row\"\n [class.active-perm-target]=\"selectedTemplatePermTarget() === node.RelativePath\"\n [style.padding-left.px]=\"8 + node.Level * 16\"\n (click)=\"selectTemplatePermissionTarget(node.RelativePath)\"\n >\n <!-- nz-tooltip\n nzTooltipTitle=\"Nh\u1EA5n \u0111\u1EC3 c\u1EA5u h\u00ECnh ph\u00E2n quy\u1EC1n ri\u00EAng cho nh\u00E1nh th\u01B0 m\u1EE5c n\u00E0y\" -->\n <nz-icon nzType=\"folder-fill\" style=\"color: #f59e0b; margin-right: 6px\"></nz-icon>\n <span style=\"flex: 1; overflow: hidden; text-overflow: ellipsis\">{{ node.Name }}</span>\n @if (node.BreakInheritance) {\n <nz-tag\n nzColor=\"warning\"\n style=\"margin: 0 2px 0 0; font-size: 10px; line-height: 15px; padding: 0 4px\"\n nz-tooltip\n nzTooltipTitle=\"Ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha\"\n >\n \u0110\u1ED9c l\u1EADp\n </nz-tag>\n }\n @if (node.PermissionsCount > 0) {\n <nz-tag nzColor=\"cyan\" style=\"margin: 0; font-size: 10px; line-height: 15px; padding: 0 5px\">\n \uD83D\uDEE1 {{ node.PermissionsCount }}\n </nz-tag>\n }\n </div>\n }\n </div>\n </div>\n </div>\n\n <!-- ========================================================================= -->\n <!-- 2. C\u1EA4U H\u00CCNH PH\u00C2N QUY\u1EC0N M\u1EB6C \u0110\u1ECANH CHO M\u1EAAU C\u00C2Y TH\u01AF M\u1EE4C (ACL & RBAC) -->\n <!-- ========================================================================= -->\n <div class=\"drawer-meta-card\">\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" nzWrap=\"wrap\" [nzGap]=\"8\">\n <div>\n <div style=\"font-weight: 600; font-size: 13px\">\n <nz-icon nzType=\"safety-certificate\" style=\"color: #0284c7; margin-right: 4px\"></nz-icon>\n 2. Ph\u00E2n quy\u1EC1n c\u00E0i s\u1EB5n khi t\u1EA1o m\u1EDBi t\u1EEB M\u1EABu c\u00E2y th\u01B0 m\u1EE5c\n </div>\n <div class=\"quota-sub\">\n @if (selectedTemplatePermTarget() === \"__ROOT__\") {\n \u0110ang c\u1EA5u h\u00ECnh cho: <strong style=\"color: #0284c7\">\uD83C\uDF10 To\u00E0n b\u1ED9 c\u00E2y th\u01B0 m\u1EE5c m\u1EABu (Quy\u1EC1n g\u1ED1c)</strong> \u2014 T\u1EF1\n \u0111\u1ED9ng k\u1EBF th\u1EEBa xu\u1ED1ng m\u1ECDi th\u01B0 m\u1EE5c con.\n } @else {\n \u0110ang c\u1EA5u h\u00ECnh ri\u00EAng cho nh\u00E1nh:\n <strong style=\"color: #d97706\">\uD83D\uDCC2 {{ selectedTemplatePermTarget() }}</strong>\n <a style=\"margin-left: 8px; font-weight: 600\" (click)=\"selectTemplatePermissionTarget('__ROOT__')\">\n \u21A9 Quay v\u1EC1 Quy\u1EC1n g\u1ED1c to\u00E0n m\u1EABu\n </a>\n }\n </div>\n </div>\n\n @if (selectedTemplatePermTarget() !== \"__ROOT__\") {\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\n <span style=\"font-size: 12px\">Ng\u1EAFt k\u1EBF th\u1EEBa cha:</span>\n <nz-switch\n nzSize=\"small\"\n [ngModel]=\"activeTemplateTargetBreakInheritance()\"\n (ngModelChange)=\"onToggleTemplateNodeBreakInheritance($event)\"\n nzCheckedChildren=\"\u0110\u1ED9c l\u1EADp\"\n nzUnCheckedChildren=\"K\u1EBF th\u1EEBa\"\n nz-tooltip\n nzTooltipTitle=\"Khi b\u1EADt \u0110\u1ED9c l\u1EADp: Th\u01B0 m\u1EE5c con n\u00E0y s\u1EBD ng\u1EAFt k\u1EBF th\u1EEBa quy\u1EC1n t\u1EEB th\u01B0 m\u1EE5c cha v\u00E0 ch\u1EC9 \u00E1p d\u1EE5ng danh s\u00E1ch quy\u1EC1n ri\u00EAng b\u00EAn d\u01B0\u1EDBi\"\n ></nz-switch>\n </div>\n }\n </div>\n\n <!-- Thanh ch\u1ECDn \u0110\u1ED1i t\u01B0\u1EE3ng (User / \u0110\u01A1n v\u1ECB / Vai tr\u00F2) & M\u1EE9c quy\u1EC1n -->\n <div nz-flex nzWrap=\"wrap\" [nzGap]=\"6\" nzAlign=\"center\" style=\"margin-top: 6px\">\n <nz-select\n [(ngModel)]=\"templatePermGranteeType\"\n (ngModelChange)=\"onTemplatePermGranteeTypeChange()\"\n nzSize=\"small\"\n style=\"width: 140px\"\n >\n <nz-option [nzValue]=\"DriveGranteeType.Org\" nzLabel=\"\uD83C\uDFE2 \u0110\u01A1n v\u1ECB (Org)\"></nz-option>\n <nz-option [nzValue]=\"DriveGranteeType.Role\" nzLabel=\"\uD83D\uDEE1 Vai tr\u00F2 (Role)\"></nz-option>\n <nz-option [nzValue]=\"DriveGranteeType.User\" nzLabel=\"\uD83D\uDC64 C\u00E1 nh\u00E2n (User)\"></nz-option>\n </nz-select>\n\n <nz-select\n nzShowSearch\n nzServerSearch\n nzSize=\"small\"\n nzPlaceHolder=\"T\u00ECm ch\u1ECDn User / \u0110\u01A1n v\u1ECB / Vai tr\u00F2...\"\n [(ngModel)]=\"templatePermSelectedGrantee\"\n (nzOnSearch)=\"onSearchTemplateGrantee($event)\"\n style=\"flex: 1; min-width: 210px\"\n >\n @for (g of templateGranteeOptions(); track g.GranteeId) {\n <nz-option [nzValue]=\"g\" [nzLabel]=\"g.DisplayName + ' (' + g.Code + ')'\"></nz-option>\n }\n </nz-select>\n\n <nz-select\n [(ngModel)]=\"templatePermAccessLevel\"\n [nzDisabled]=\"templatePermIsDeny\"\n nzSize=\"small\"\n style=\"width: 155px\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"\uD83D\uDC41 Ch\u1EC9 xem (10)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"\u2B07 Xem & T\u1EA3i (20)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"\u2601 Xem & T\u1EA3i l\u00EAn (35)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"\u270E Ch\u1EC9nh s\u1EEDa (40)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Manager\" nzLabel=\"\uD83D\uDC51 Qu\u1EA3n tr\u1ECB (50)\"></nz-option>\n </nz-select>\n\n <label\n nz-checkbox\n [(ngModel)]=\"templatePermIsDeny\"\n nz-tooltip\n nzTooltipTitle=\"C\u1EA5m truy c\u1EADp t\u01B0\u1EDDng minh (Explicit Deny) \u0111\u1ED1i v\u1EDBi \u0111\u1ED1i t\u01B0\u1EE3ng n\u00E0y tr\u00EAn nh\u00E1nh \u0111ang ch\u1ECDn\"\n style=\"font-size: 12px\"\n >\n C\u1EA5m (Deny)\n </label>\n\n <button\n type=\"button\"\n nz-button\n nzType=\"primary\"\n nzSize=\"small\"\n [disabled]=\"!templatePermSelectedGrantee\"\n (click)=\"addPermissionToTemplateTarget()\"\n >\n <nz-icon nzType=\"user-add\"></nz-icon> Th\u00EAm quy\u1EC1n\n </button>\n </div>\n\n <!-- Danh s\u00E1ch c\u00E1c quy\u1EC1n \u0111\u00E3 \u0111\u1EB7t cho m\u1EE5c \u0111ang ch\u1ECDn -->\n @if (activeTemplateTargetPermissions().length === 0) {\n <div class=\"quota-sub\" style=\"padding: 8px 4px 2px\">\n @if (selectedTemplatePermTarget() === \"__ROOT__\") {\n Ch\u01B0a \u0111\u1EB7t quy\u1EC1n m\u1EB7c \u0111\u1ECBnh cho to\u00E0n m\u1EABu. H\u00E3y ch\u1ECDn \u0110\u01A1n v\u1ECB / Vai tr\u00F2 / C\u00E1 nh\u00E2n \u1EDF tr\u00EAn r\u1ED3i b\u1EA5m\n <strong>+ Th\u00EAm quy\u1EC1n</strong> (ho\u1EB7c b\u1EA5m v\u00E0o t\u1EEBng th\u01B0 m\u1EE5c b\u00EAn khung Xem tr\u01B0\u1EDBc \u0111\u1EC3 \u0111\u1EB7t quy\u1EC1n ri\u00EAng cho\n nh\u00E1nh con).\n } @else {\n Nh\u00E1nh <strong>\"{{ selectedTemplatePermTarget() }}\"</strong> ch\u01B0a c\u00F3 quy\u1EC1n ri\u00EAng (m\u1EB7c \u0111\u1ECBnh k\u1EBF th\u1EEBa t\u1EEB th\u01B0\n m\u1EE5c cha).\n }\n </div>\n } @else {\n <nz-table\n #tplPermTable\n [nzData]=\"activeTemplateTargetPermissions()\"\n nzSize=\"small\"\n [nzBordered]=\"true\"\n [nzFrontPagination]=\"false\"\n [nzShowPagination]=\"false\"\n style=\"margin-top: 6px\"\n >\n <thead>\n <tr>\n <th>\u0110\u1ED1i t\u01B0\u1EE3ng nh\u1EADn quy\u1EC1n</th>\n <th nzWidth=\"185px\">M\u1EE9c quy\u1EC1n \u00E1p d\u1EE5ng</th>\n <th nzWidth=\"95px\" class=\"text-center\">T\u1EA3i xu\u1ED1ng</th>\n <th nzWidth=\"65px\" class=\"text-center\">X\u00F3a</th>\n </tr>\n </thead>\n <tbody>\n @for (p of tplPermTable.data; track p.GranteeType + \":\" + p.GranteeId) {\n <tr>\n <td>\n <nz-tag\n [nzColor]=\"\n p.GranteeType === DriveGranteeType.User\n ? 'blue'\n : p.GranteeType === DriveGranteeType.Org\n ? 'cyan'\n : 'purple'\n \"\n >\n {{\n p.GranteeType === DriveGranteeType.User\n ? \"User\"\n : p.GranteeType === DriveGranteeType.Org\n ? \"\u0110\u01A1n v\u1ECB\"\n : \"Role\"\n }}\n </nz-tag>\n <strong>{{ p.GranteeName || p.GranteeId }}</strong>\n </td>\n <td>\n <nz-select\n nzSize=\"small\"\n [ngModel]=\"p.IsDeny ? 'DENY' : p.AccessLevel\"\n (ngModelChange)=\"updateTemplatePermissionLevel(p, $event)\"\n style=\"width: 100%\"\n >\n <nz-option [nzValue]=\"DriveAccessLevel.Viewer\" nzLabel=\"\uD83D\uDC41 Ch\u1EC9 xem (10)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Downloader\" nzLabel=\"\u2B07 Xem & T\u1EA3i (20)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Uploader\" nzLabel=\"\u2601 Xem & T\u1EA3i l\u00EAn (35)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Editor\" nzLabel=\"\u270E Ch\u1EC9nh s\u1EEDa (40)\"></nz-option>\n <nz-option [nzValue]=\"DriveAccessLevel.Manager\" nzLabel=\"\uD83D\uDC51 Qu\u1EA3n tr\u1ECB (50)\"></nz-option>\n <nz-option nzValue=\"DENY\" nzLabel=\"\uD83D\uDEAB C\u1EA5m (Deny)\"></nz-option>\n </nz-select>\n </td>\n <td class=\"text-center\">\n <nz-tag [nzColor]=\"p.CanDownload && !p.IsDeny ? 'green' : 'default'\">\n {{ p.CanDownload && !p.IsDeny ? \"Cho ph\u00E9p\" : \"Ch\u1EB7n\" }}\n </nz-tag>\n </td>\n <td class=\"text-center\">\n <button\n type=\"button\"\n nz-button\n nzType=\"text\"\n nzDanger\n nzSize=\"small\"\n nz-tooltip\n nzTooltipTitle=\"G\u1EE1 quy\u1EC1n n\u00E0y kh\u1ECFi m\u1EABu\"\n (click)=\"removePermissionFromTemplateTarget(p)\"\n >\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </td>\n </tr>\n }\n </tbody>\n </nz-table>\n }\n </div>\n </div>\n </ng-container>\n\n <ng-template #templateDrawerFooterTpl>\n <div nz-flex nzJustify=\"space-between\" nzAlign=\"center\" style=\"width: 100%\">\n <div>\n @if (templateDrawerMode === \"edit\" && editingTemplate) {\n <button nz-button nzDanger nzType=\"default\" (click)=\"onDeleteTemplate(editingTemplate)\">\n <nz-icon nzType=\"delete\"></nz-icon> X\u00F3a m\u1EABu n\u00E0y\n </button>\n }\n </div>\n <div nz-flex [nzGap]=\"8\">\n <button nz-button nzType=\"default\" (click)=\"templateDrawerVisible = false\">H\u1EE7y</button>\n <button nz-button nzType=\"primary\" (click)=\"submitTemplateDrawer()\">\n <nz-icon nzType=\"save\"></nz-icon>\n {{ templateDrawerMode === \"create\" ? \"L\u01B0u m\u1EABu c\u00E2y th\u01B0 m\u1EE5c\" : \"C\u1EADp nh\u1EADt m\u1EABu\" }}\n </button>\n </div>\n </div>\n </ng-template>\n </nz-drawer>\n}\n", styles: [".drive-shell{display:grid;grid-template-columns:245px 1fr;min-height:calc(100vh - 85px);background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px;overflow:hidden}.drive-sidebar{padding:14px;background:var(--app-sidebar-bg, #f8fafc);border-right:1px solid var(--app-border, #e2e8f0);display:flex;flex-direction:column;gap:14px}.drive-nav{display:flex;flex-direction:column;gap:4px}.drive-nav a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:6px;color:var(--app-text, #334155);cursor:pointer;transition:background .15s}.drive-nav a.space-has-active-child{color:var(--primary-color, #1890ff);font-weight:600;background:color-mix(in srgb,var(--primary-color, #1890ff) 7%,transparent)}.drive-nav a:hover,.drive-nav a.active{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);color:var(--primary-color, #1890ff);font-weight:600}.org-nav-group{display:flex;flex-direction:column;gap:2px}.custom-space-link{font-size:13px}.custom-space-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.custom-space-badge{margin:0!important;font-size:10px;line-height:16px;padding:0 4px}.nav-inline-btn{border:none;background:transparent;color:inherit;cursor:pointer;padding:2px 4px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;opacity:.7}.nav-inline-btn:hover{opacity:1;background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.storage-mode-box{padding:10px 12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.upload-queue-box{padding:10px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px;max-height:180px;overflow-y:auto}.upload-task-row{margin-bottom:6px}.upload-task-name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quota-box{margin-top:auto;padding:12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.quota-title{font-size:13px;font-weight:600;margin-bottom:6px}.quota-sub{font-size:12px;color:var(--app-text-muted, #64748b);margin-top:4px}.drive-shell.sidebar-wide{grid-template-columns:335px 1fr}.sidebar-tree-header-bar{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;border-radius:6px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0)}.sidebar-tree-header-title{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--app-text, #334155)}.sidebar-tree-header-actions{display:inline-flex;align-items:center;gap:3px}.sidebar-tree-tool-btn{border:none;background:transparent;color:var(--app-text-muted, #64748b);width:22px;height:22px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:12px;transition:background .15s,color .15s}.sidebar-tree-tool-btn:hover,.sidebar-tree-tool-btn.active{background:color-mix(in srgb,var(--primary-color, #1890ff) 14%,transparent);color:var(--primary-color, #1890ff)}.sidebar-tree-filter-box{margin-top:-6px}.nav-item-with-tree{display:flex;flex-direction:column}.nav-caret-btn{border:none;background:transparent;color:inherit;width:18px;height:18px;padding:0;margin-left:-4px;margin-right:-2px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:11px;opacity:.75;flex-shrink:0;transition:transform .15s,background .15s,opacity .15s}.nav-caret-btn:hover{opacity:1;background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.sidebar-tree-container{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px 14px;padding-left:6px;border-left:1.5px dashed var(--app-border, #cbd5e1);max-height:320px;overflow-y:auto;overflow-x:hidden}.drive-shell.sidebar-wide .sidebar-tree-container{max-height:420px}.sidebar-tree-node{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;font-size:12.5px;color:var(--app-text, #334155);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .12s,color .12s;min-width:0}.sidebar-tree-node:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.sidebar-tree-node.active-breadcrumb-ancestor{font-weight:600;color:var(--primary-color, #1890ff)}.sidebar-tree-node.active-tree-node{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);color:var(--primary-color, #1890ff);font-weight:600;box-shadow:inset 2.5px 0 0 var(--primary-color, #1890ff)}.sidebar-tree-node.tree-drop-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 22%,transparent)!important;outline:1.5px dashed var(--primary-color, #1890ff);color:var(--primary-color, #1890ff);font-weight:600}.tree-node-caret{width:16px;height:16px;border:none;background:transparent;color:var(--app-text-muted, #64748b);padding:0;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;cursor:pointer;flex-shrink:0}.tree-node-caret:hover{color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent)}.tree-node-caret-spacer{width:16px;height:16px;display:inline-block;flex-shrink:0}.tree-node-folder-icon{font-size:15px;flex-shrink:0}.tree-node-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}.tree-node-quick-btn{border:none;background:transparent;color:var(--app-text-muted, #64748b);width:20px;height:20px;padding:0;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;opacity:0;cursor:pointer;flex-shrink:0;font-size:11px;transition:opacity .12s,background .12s,color .12s}.sidebar-tree-node:hover .tree-node-quick-btn{opacity:.85}.tree-node-quick-btn:hover{opacity:1!important;color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)}.sidebar-tree-empty{padding:4px 8px 4px 20px;font-size:11.5px;color:var(--app-text-muted, #94a3b8);font-style:italic}.drive-main{position:relative;padding:16px;display:flex;flex-direction:column;gap:12px;transition:background .15s,border-color .15s}.drive-main.external-drag-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 6%,var(--app-container-bg, #ffffff));outline:2px dashed var(--primary-color, #1890ff);outline-offset:-6px}.external-drop-banner{pointer-events:none;display:flex;align-items:center;gap:14px;padding:12px 18px;border-radius:8px;background:color-mix(in srgb,var(--primary-color, #1890ff) 14%,var(--app-container-bg, #ffffff));border:1px dashed var(--primary-color, #1890ff);color:var(--app-text, #1e293b)}.drop-banner-icon{font-size:28px;color:var(--primary-color, #1890ff)}.drop-banner-title{font-size:14px;font-weight:500}.drop-banner-sub{font-size:12px;color:var(--app-text-muted, #64748b);margin-top:2px}.drive-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--app-border, #f1f5f9)}.trash-info-banner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:9px 14px;border-radius:8px;background:#ef44440f;border:1px solid rgba(239,68,68,.24);font-size:13px;color:var(--app-text, #334155)}.physical-path-bar{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;color:var(--app-text-muted, #64748b)}.toolbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.drive-row{cursor:pointer;transition:background .15s,outline .15s}.drive-row.dragging-row{opacity:.45}.drive-row.drop-target-active>td{background:color-mix(in srgb,var(--primary-color, #1890ff) 18%,transparent)!important;border-top:1px dashed var(--primary-color, #1890ff);border-bottom:1px dashed var(--primary-color, #1890ff)}.bc-drop-active,.drive-nav a.nav-drop-active{background:color-mix(in srgb,var(--primary-color, #1890ff) 22%,transparent)!important;outline:1.5px dashed var(--primary-color, #1890ff);color:var(--primary-color, #1890ff);font-weight:600}.node-name-cell{display:flex;align-items:center;gap:8px}.node-icon-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center}.node-icon{font-size:18px}.shortcut-badge{position:absolute;right:-5px;bottom:-3px;width:13px;height:13px;border-radius:50%;background:#7c3aed;color:#fff;font-size:9px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 0 1.5px var(--app-container-bg, #ffffff)}.node-title{font-weight:500}.action-btn-group{display:inline-flex;align-items:center;justify-content:center;gap:4px}.action-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;background:transparent;border-radius:6px;cursor:pointer;font-size:15px;transition:background .15s,transform .1s}.action-icon-btn:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 12%,transparent);transform:translateY(-1px)}.action-icon-btn.color-warn:hover{background:#ef44441f}.sortable-th{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s,color .15s}.sortable-th:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 8%,var(--app-sidebar-bg, #f8fafc))!important;color:var(--primary-color, #1890ff)}.th-sort-wrap{display:inline-flex;align-items:center;gap:6px;width:100%}.th-sort-wrap.justify-center{justify-content:center}.th-sort-wrap.justify-end{justify-content:flex-end}.sort-icon{font-size:13px;opacity:.35;transition:opacity .15s,color .15s}.sort-icon.active{opacity:1;color:var(--primary-color, #1890ff)}.sortable-th:hover .sort-icon{opacity:.85}.drawer-field-label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--app-text, #334155)}.drawer-meta-card{padding:12px 14px;background:var(--app-sidebar-bg, #f8fafc);border:1px solid var(--app-border, #e2e8f0);border-radius:8px;display:flex;flex-direction:column;gap:8px}.drawer-meta-header{display:flex;align-items:center;gap:10px}.drawer-meta-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}.meta-label{color:var(--app-text-muted, #64748b)}.template-sidebar-box{padding:10px 12px;background:var(--app-container-bg, #ffffff);border:1px solid var(--app-border, #e2e8f0);border-radius:6px}.template-chip-list{display:flex;flex-direction:column;gap:6px;max-height:175px;overflow-y:auto}.template-drag-item{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 8px;border-radius:6px;border:1px dashed var(--app-border, #cbd5e1);background:var(--app-sidebar-bg, #f8fafc);cursor:grab;transition:all .15s}.template-drag-item:hover{border-color:var(--primary-color, #1890ff);background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.template-item-title{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-item-sub{font-size:10.5px;color:var(--app-text-muted, #64748b)}.template-editor-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:10px}.template-tree-preview{border:1px solid var(--app-border, #e2e8f0);border-radius:6px;padding:10px;background:var(--app-sidebar-bg, #f8fafc);max-height:450px;overflow-y:auto}.preview-tree-row{display:flex;align-items:center;font-size:12.5px;padding:2.5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selectable-preview-row{cursor:pointer;padding:4px 6px;border-radius:5px;transition:background .12s,border-color .12s;border:1px solid transparent}.selectable-preview-row:hover{background:color-mix(in srgb,var(--primary-color, #1890ff) 10%,transparent)}.selectable-preview-row.active-perm-target{background:color-mix(in srgb,var(--primary-color, #1890ff) 16%,transparent);border-color:var(--primary-color, #1890ff);font-weight:600}\n"] }]
33979
34055
  }], ctorParameters: () => [] });
33980
34056
 
33981
34057
  // ============================================================================