@ezeep/ezeep-js 1.0.238 → 1.0.239

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.
@@ -2879,7 +2879,9 @@ const printer_selection$1 = {
2879
2879
  trays: "Papierfach",
2880
2880
  select_trays: "Wähle Papierfach",
2881
2881
  page_ranges: "Druckbereich",
2882
- paper_ranges: "Papier-Ranges"
2882
+ paper_ranges: "Papier-Ranges",
2883
+ files_selected: "{{count}} Dateien ausgewählt",
2884
+ files: "Dateien"
2883
2885
  };
2884
2886
  const button_actions$1 = {
2885
2887
  login: "Anmelden",
@@ -2962,7 +2964,9 @@ const printer_selection = {
2962
2964
  trays: "Tray",
2963
2965
  select_trays: "Select Tray",
2964
2966
  page_ranges: "Page Ranges",
2965
- paper_ranges: "Paper Ranges"
2967
+ paper_ranges: "Paper Ranges",
2968
+ files_selected: "{{count}} files selected",
2969
+ files: "files"
2966
2970
  };
2967
2971
  const button_actions = {
2968
2972
  login: "Sign In",
@@ -32943,8 +32947,11 @@ let EzpPrinterSelection = class {
32943
32947
  this.printProcessing = false;
32944
32948
  });
32945
32949
  }
32946
- if (this.files && this.files.length > 0) {
32947
- await this.handleFiles(this.files, cleanPrintProperties);
32950
+ if (this.files && this.files.length > 1) {
32951
+ await this.processMultipleFiles(this.files, cleanPrintProperties);
32952
+ }
32953
+ else if (this.files && this.files.length === 1) {
32954
+ await this.processSingleFile(this.files[0], cleanPrintProperties);
32948
32955
  }
32949
32956
  localStorage.setItem('properties', JSON.stringify(this.selectedProperties));
32950
32957
  localStorage.setItem('printer', JSON.stringify(this.selectedPrinter));
@@ -33219,15 +33226,22 @@ let EzpPrinterSelection = class {
33219
33226
  const poll = async () => {
33220
33227
  try {
33221
33228
  const data = await this.printService.getPrintStatus();
33229
+ console.log('[waitForPrintCompletion] Poll response:', data);
33222
33230
  if (data.jobstatus === 0) {
33231
+ // Success
33223
33232
  resolve();
33224
33233
  }
33225
- else if (data.jobstatus === 1) {
33226
- // Still processing, continue polling
33234
+ else if (data.jobstatus === 1246 || data.jobstatus === 129) {
33235
+ // Still processing, keep polling
33227
33236
  setTimeout(poll, this.POLL_INTERVAL);
33228
33237
  }
33238
+ else if (data.jobstatus === 3011 || data.jobstatus === 2) {
33239
+ // Failure
33240
+ reject(new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus)));
33241
+ }
33229
33242
  else {
33230
- reject(new Error('Print job failed'));
33243
+ // Unknown status, treat as failure for safety
33244
+ reject(new Error('Unknown print job status: ' + data.jobstatus));
33231
33245
  }
33232
33246
  }
33233
33247
  catch (error) {
@@ -33264,6 +33278,41 @@ let EzpPrinterSelection = class {
33264
33278
  }
33265
33279
  this.setPaperid();
33266
33280
  }
33281
+ async processMultipleFiles(files, printProperties) {
33282
+ this.totalFiles = files.length;
33283
+ this.currentFileIndex = 0;
33284
+ this.failedFiles = [];
33285
+ this.successfulFiles = [];
33286
+ for (let i = 0; i < files.length; i++) {
33287
+ this.currentFileIndex = i;
33288
+ const file = files[i];
33289
+ try {
33290
+ await this.processSingleFile(file, printProperties);
33291
+ this.successfulFiles.push(file.name);
33292
+ }
33293
+ catch (error) {
33294
+ console.error(`Error processing file ${file.name}:`, error);
33295
+ this.failedFiles.push(file.name);
33296
+ // Continue with the next file
33297
+ }
33298
+ }
33299
+ // Set UI state
33300
+ if (this.failedFiles.length === 0) {
33301
+ this.printSuccess = true;
33302
+ this.partialSuccess = false;
33303
+ this.printProcessing = false;
33304
+ }
33305
+ else if (this.successfulFiles.length === 0) {
33306
+ this.printFailed = true;
33307
+ this.partialSuccess = false;
33308
+ this.printProcessing = false;
33309
+ }
33310
+ else {
33311
+ this.printSuccess = true;
33312
+ this.partialSuccess = true;
33313
+ this.printProcessing = false;
33314
+ }
33315
+ }
33267
33316
  /**
33268
33317
  *
33269
33318
  * Lifecycle methods
@@ -33356,11 +33405,11 @@ let EzpPrinterSelection = class {
33356
33405
  : `${i18next.t('printer_selection.pull_print_success')} (${this.totalFiles} files)`
33357
33406
  : i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (index.h("ezp-status", { icon: this.partialSuccess ? 'exclamation-mark' : 'checkmark-alt', description: this.totalFiles > 1
33358
33407
  ? this.partialSuccess
33359
- ? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} files) - ${this.failedFiles.length} failed`
33360
- : `${i18next.t('printer_selection.print_success')} (${this.totalFiles} files)`
33408
+ ? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} ${i18next.t('printer_selection.files')} - ${this.failedFiles.length} failed`
33409
+ : `${i18next.t('printer_selection.print_success')} (${this.totalFiles} ${i18next.t('printer_selection.files')})`
33361
33410
  : i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), !this.hideheader && (index.h("div", { id: "header" }, index.h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), index.h("ezp-label", { text: !this.notSupported
33362
33411
  ? this.files && this.files.length > 1
33363
- ? `${this.files.length} files selected`
33412
+ ? i18next.t('printer_selection.files_selected', { count: this.files.length })
33364
33413
  : this.filename
33365
33414
  : '', ellipsis: true }), !this.hidemenu && (index.h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu })))), index.h("div", { id: "body" }, index.h("div", { id: "printer" }, index.h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
33366
33415
  ? i18next.t('printer_selection.select_printer')
@@ -180,8 +180,11 @@ export class EzpPrinterSelection {
180
180
  this.printProcessing = false;
181
181
  });
182
182
  }
183
- if (this.files && this.files.length > 0) {
184
- await this.handleFiles(this.files, cleanPrintProperties);
183
+ if (this.files && this.files.length > 1) {
184
+ await this.processMultipleFiles(this.files, cleanPrintProperties);
185
+ }
186
+ else if (this.files && this.files.length === 1) {
187
+ await this.processSingleFile(this.files[0], cleanPrintProperties);
185
188
  }
186
189
  localStorage.setItem('properties', JSON.stringify(this.selectedProperties));
187
190
  localStorage.setItem('printer', JSON.stringify(this.selectedPrinter));
@@ -458,15 +461,22 @@ export class EzpPrinterSelection {
458
461
  const poll = async () => {
459
462
  try {
460
463
  const data = await this.printService.getPrintStatus();
464
+ console.log('[waitForPrintCompletion] Poll response:', data);
461
465
  if (data.jobstatus === 0) {
466
+ // Success
462
467
  resolve();
463
468
  }
464
- else if (data.jobstatus === 1) {
465
- // Still processing, continue polling
469
+ else if (data.jobstatus === 1246 || data.jobstatus === 129) {
470
+ // Still processing, keep polling
466
471
  setTimeout(poll, this.POLL_INTERVAL);
467
472
  }
473
+ else if (data.jobstatus === 3011 || data.jobstatus === 2) {
474
+ // Failure
475
+ reject(new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus)));
476
+ }
468
477
  else {
469
- reject(new Error('Print job failed'));
478
+ // Unknown status, treat as failure for safety
479
+ reject(new Error('Unknown print job status: ' + data.jobstatus));
470
480
  }
471
481
  }
472
482
  catch (error) {
@@ -503,6 +513,41 @@ export class EzpPrinterSelection {
503
513
  }
504
514
  this.setPaperid();
505
515
  }
516
+ async processMultipleFiles(files, printProperties) {
517
+ this.totalFiles = files.length;
518
+ this.currentFileIndex = 0;
519
+ this.failedFiles = [];
520
+ this.successfulFiles = [];
521
+ for (let i = 0; i < files.length; i++) {
522
+ this.currentFileIndex = i;
523
+ const file = files[i];
524
+ try {
525
+ await this.processSingleFile(file, printProperties);
526
+ this.successfulFiles.push(file.name);
527
+ }
528
+ catch (error) {
529
+ console.error(`Error processing file ${file.name}:`, error);
530
+ this.failedFiles.push(file.name);
531
+ // Continue with the next file
532
+ }
533
+ }
534
+ // Set UI state
535
+ if (this.failedFiles.length === 0) {
536
+ this.printSuccess = true;
537
+ this.partialSuccess = false;
538
+ this.printProcessing = false;
539
+ }
540
+ else if (this.successfulFiles.length === 0) {
541
+ this.printFailed = true;
542
+ this.partialSuccess = false;
543
+ this.printProcessing = false;
544
+ }
545
+ else {
546
+ this.printSuccess = true;
547
+ this.partialSuccess = true;
548
+ this.printProcessing = false;
549
+ }
550
+ }
506
551
  /**
507
552
  *
508
553
  * Lifecycle methods
@@ -597,14 +642,14 @@ export class EzpPrinterSelection {
597
642
  : `${i18next.t('printer_selection.pull_print_success')} (${this.totalFiles} files)`
598
643
  : i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (h("ezp-status", { icon: this.partialSuccess ? 'exclamation-mark' : 'checkmark-alt', description: this.totalFiles > 1
599
644
  ? this.partialSuccess
600
- ? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} files) - ${this.failedFiles.length} failed`
601
- : `${i18next.t('printer_selection.print_success')} (${this.totalFiles} files)`
645
+ ? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} ${i18next.t('printer_selection.files')} - ${this.failedFiles.length} failed`
646
+ : `${i18next.t('printer_selection.print_success')} (${this.totalFiles} ${i18next.t('printer_selection.files')})`
602
647
  : i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)),
603
648
  !this.hideheader && (h("div", { id: "header" },
604
649
  h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }),
605
650
  h("ezp-label", { text: !this.notSupported
606
651
  ? this.files && this.files.length > 1
607
- ? `${this.files.length} files selected`
652
+ ? i18next.t('printer_selection.files_selected', { count: this.files.length })
608
653
  : this.filename
609
654
  : '', ellipsis: true }),
610
655
  !this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu })))),
@@ -2888,7 +2888,9 @@ const printer_selection$1 = {
2888
2888
  trays: "Papierfach",
2889
2889
  select_trays: "Wähle Papierfach",
2890
2890
  page_ranges: "Druckbereich",
2891
- paper_ranges: "Papier-Ranges"
2891
+ paper_ranges: "Papier-Ranges",
2892
+ files_selected: "{{count}} Dateien ausgewählt",
2893
+ files: "Dateien"
2892
2894
  };
2893
2895
  const button_actions$1 = {
2894
2896
  login: "Anmelden",
@@ -2971,7 +2973,9 @@ const printer_selection = {
2971
2973
  trays: "Tray",
2972
2974
  select_trays: "Select Tray",
2973
2975
  page_ranges: "Page Ranges",
2974
- paper_ranges: "Paper Ranges"
2976
+ paper_ranges: "Paper Ranges",
2977
+ files_selected: "{{count}} files selected",
2978
+ files: "files"
2975
2979
  };
2976
2980
  const button_actions = {
2977
2981
  login: "Sign In",
@@ -32968,8 +32972,11 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32968
32972
  this.printProcessing = false;
32969
32973
  });
32970
32974
  }
32971
- if (this.files && this.files.length > 0) {
32972
- await this.handleFiles(this.files, cleanPrintProperties);
32975
+ if (this.files && this.files.length > 1) {
32976
+ await this.processMultipleFiles(this.files, cleanPrintProperties);
32977
+ }
32978
+ else if (this.files && this.files.length === 1) {
32979
+ await this.processSingleFile(this.files[0], cleanPrintProperties);
32973
32980
  }
32974
32981
  localStorage.setItem('properties', JSON.stringify(this.selectedProperties));
32975
32982
  localStorage.setItem('printer', JSON.stringify(this.selectedPrinter));
@@ -33244,15 +33251,22 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33244
33251
  const poll = async () => {
33245
33252
  try {
33246
33253
  const data = await this.printService.getPrintStatus();
33254
+ console.log('[waitForPrintCompletion] Poll response:', data);
33247
33255
  if (data.jobstatus === 0) {
33256
+ // Success
33248
33257
  resolve();
33249
33258
  }
33250
- else if (data.jobstatus === 1) {
33251
- // Still processing, continue polling
33259
+ else if (data.jobstatus === 1246 || data.jobstatus === 129) {
33260
+ // Still processing, keep polling
33252
33261
  setTimeout(poll, this.POLL_INTERVAL);
33253
33262
  }
33263
+ else if (data.jobstatus === 3011 || data.jobstatus === 2) {
33264
+ // Failure
33265
+ reject(new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus)));
33266
+ }
33254
33267
  else {
33255
- reject(new Error('Print job failed'));
33268
+ // Unknown status, treat as failure for safety
33269
+ reject(new Error('Unknown print job status: ' + data.jobstatus));
33256
33270
  }
33257
33271
  }
33258
33272
  catch (error) {
@@ -33289,6 +33303,41 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33289
33303
  }
33290
33304
  this.setPaperid();
33291
33305
  }
33306
+ async processMultipleFiles(files, printProperties) {
33307
+ this.totalFiles = files.length;
33308
+ this.currentFileIndex = 0;
33309
+ this.failedFiles = [];
33310
+ this.successfulFiles = [];
33311
+ for (let i = 0; i < files.length; i++) {
33312
+ this.currentFileIndex = i;
33313
+ const file = files[i];
33314
+ try {
33315
+ await this.processSingleFile(file, printProperties);
33316
+ this.successfulFiles.push(file.name);
33317
+ }
33318
+ catch (error) {
33319
+ console.error(`Error processing file ${file.name}:`, error);
33320
+ this.failedFiles.push(file.name);
33321
+ // Continue with the next file
33322
+ }
33323
+ }
33324
+ // Set UI state
33325
+ if (this.failedFiles.length === 0) {
33326
+ this.printSuccess = true;
33327
+ this.partialSuccess = false;
33328
+ this.printProcessing = false;
33329
+ }
33330
+ else if (this.successfulFiles.length === 0) {
33331
+ this.printFailed = true;
33332
+ this.partialSuccess = false;
33333
+ this.printProcessing = false;
33334
+ }
33335
+ else {
33336
+ this.printSuccess = true;
33337
+ this.partialSuccess = true;
33338
+ this.printProcessing = false;
33339
+ }
33340
+ }
33292
33341
  /**
33293
33342
  *
33294
33343
  * Lifecycle methods
@@ -33381,11 +33430,11 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33381
33430
  : `${i18next.t('printer_selection.pull_print_success')} (${this.totalFiles} files)`
33382
33431
  : i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (h("ezp-status", { icon: this.partialSuccess ? 'exclamation-mark' : 'checkmark-alt', description: this.totalFiles > 1
33383
33432
  ? this.partialSuccess
33384
- ? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} files) - ${this.failedFiles.length} failed`
33385
- : `${i18next.t('printer_selection.print_success')} (${this.totalFiles} files)`
33433
+ ? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} ${i18next.t('printer_selection.files')} - ${this.failedFiles.length} failed`
33434
+ : `${i18next.t('printer_selection.print_success')} (${this.totalFiles} ${i18next.t('printer_selection.files')})`
33386
33435
  : i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), !this.hideheader && (h("div", { id: "header" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), h("ezp-label", { text: !this.notSupported
33387
33436
  ? this.files && this.files.length > 1
33388
- ? `${this.files.length} files selected`
33437
+ ? i18next.t('printer_selection.files_selected', { count: this.files.length })
33389
33438
  : this.filename
33390
33439
  : '', ellipsis: true }), !this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu })))), h("div", { id: "body" }, h("div", { id: "printer" }, h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
33391
33440
  ? i18next.t('printer_selection.select_printer')
@@ -2875,7 +2875,9 @@ const printer_selection$1 = {
2875
2875
  trays: "Papierfach",
2876
2876
  select_trays: "Wähle Papierfach",
2877
2877
  page_ranges: "Druckbereich",
2878
- paper_ranges: "Papier-Ranges"
2878
+ paper_ranges: "Papier-Ranges",
2879
+ files_selected: "{{count}} Dateien ausgewählt",
2880
+ files: "Dateien"
2879
2881
  };
2880
2882
  const button_actions$1 = {
2881
2883
  login: "Anmelden",
@@ -2958,7 +2960,9 @@ const printer_selection = {
2958
2960
  trays: "Tray",
2959
2961
  select_trays: "Select Tray",
2960
2962
  page_ranges: "Page Ranges",
2961
- paper_ranges: "Paper Ranges"
2963
+ paper_ranges: "Paper Ranges",
2964
+ files_selected: "{{count}} files selected",
2965
+ files: "files"
2962
2966
  };
2963
2967
  const button_actions = {
2964
2968
  login: "Sign In",
@@ -32939,8 +32943,11 @@ let EzpPrinterSelection = class {
32939
32943
  this.printProcessing = false;
32940
32944
  });
32941
32945
  }
32942
- if (this.files && this.files.length > 0) {
32943
- await this.handleFiles(this.files, cleanPrintProperties);
32946
+ if (this.files && this.files.length > 1) {
32947
+ await this.processMultipleFiles(this.files, cleanPrintProperties);
32948
+ }
32949
+ else if (this.files && this.files.length === 1) {
32950
+ await this.processSingleFile(this.files[0], cleanPrintProperties);
32944
32951
  }
32945
32952
  localStorage.setItem('properties', JSON.stringify(this.selectedProperties));
32946
32953
  localStorage.setItem('printer', JSON.stringify(this.selectedPrinter));
@@ -33215,15 +33222,22 @@ let EzpPrinterSelection = class {
33215
33222
  const poll = async () => {
33216
33223
  try {
33217
33224
  const data = await this.printService.getPrintStatus();
33225
+ console.log('[waitForPrintCompletion] Poll response:', data);
33218
33226
  if (data.jobstatus === 0) {
33227
+ // Success
33219
33228
  resolve();
33220
33229
  }
33221
- else if (data.jobstatus === 1) {
33222
- // Still processing, continue polling
33230
+ else if (data.jobstatus === 1246 || data.jobstatus === 129) {
33231
+ // Still processing, keep polling
33223
33232
  setTimeout(poll, this.POLL_INTERVAL);
33224
33233
  }
33234
+ else if (data.jobstatus === 3011 || data.jobstatus === 2) {
33235
+ // Failure
33236
+ reject(new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus)));
33237
+ }
33225
33238
  else {
33226
- reject(new Error('Print job failed'));
33239
+ // Unknown status, treat as failure for safety
33240
+ reject(new Error('Unknown print job status: ' + data.jobstatus));
33227
33241
  }
33228
33242
  }
33229
33243
  catch (error) {
@@ -33260,6 +33274,41 @@ let EzpPrinterSelection = class {
33260
33274
  }
33261
33275
  this.setPaperid();
33262
33276
  }
33277
+ async processMultipleFiles(files, printProperties) {
33278
+ this.totalFiles = files.length;
33279
+ this.currentFileIndex = 0;
33280
+ this.failedFiles = [];
33281
+ this.successfulFiles = [];
33282
+ for (let i = 0; i < files.length; i++) {
33283
+ this.currentFileIndex = i;
33284
+ const file = files[i];
33285
+ try {
33286
+ await this.processSingleFile(file, printProperties);
33287
+ this.successfulFiles.push(file.name);
33288
+ }
33289
+ catch (error) {
33290
+ console.error(`Error processing file ${file.name}:`, error);
33291
+ this.failedFiles.push(file.name);
33292
+ // Continue with the next file
33293
+ }
33294
+ }
33295
+ // Set UI state
33296
+ if (this.failedFiles.length === 0) {
33297
+ this.printSuccess = true;
33298
+ this.partialSuccess = false;
33299
+ this.printProcessing = false;
33300
+ }
33301
+ else if (this.successfulFiles.length === 0) {
33302
+ this.printFailed = true;
33303
+ this.partialSuccess = false;
33304
+ this.printProcessing = false;
33305
+ }
33306
+ else {
33307
+ this.printSuccess = true;
33308
+ this.partialSuccess = true;
33309
+ this.printProcessing = false;
33310
+ }
33311
+ }
33263
33312
  /**
33264
33313
  *
33265
33314
  * Lifecycle methods
@@ -33352,11 +33401,11 @@ let EzpPrinterSelection = class {
33352
33401
  : `${i18next.t('printer_selection.pull_print_success')} (${this.totalFiles} files)`
33353
33402
  : i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (h("ezp-status", { icon: this.partialSuccess ? 'exclamation-mark' : 'checkmark-alt', description: this.totalFiles > 1
33354
33403
  ? this.partialSuccess
33355
- ? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} files) - ${this.failedFiles.length} failed`
33356
- : `${i18next.t('printer_selection.print_success')} (${this.totalFiles} files)`
33404
+ ? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} ${i18next.t('printer_selection.files')} - ${this.failedFiles.length} failed`
33405
+ : `${i18next.t('printer_selection.print_success')} (${this.totalFiles} ${i18next.t('printer_selection.files')})`
33357
33406
  : i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), !this.hideheader && (h("div", { id: "header" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), h("ezp-label", { text: !this.notSupported
33358
33407
  ? this.files && this.files.length > 1
33359
- ? `${this.files.length} files selected`
33408
+ ? i18next.t('printer_selection.files_selected', { count: this.files.length })
33360
33409
  : this.filename
33361
33410
  : '', ellipsis: true }), !this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu })))), h("div", { id: "body" }, h("div", { id: "printer" }, h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
33362
33411
  ? i18next.t('printer_selection.select_printer')