@ezeep/ezeep-js 1.0.237 → 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.
Files changed (29) hide show
  1. package/dist/cjs/ezeep.cjs.js +1 -1
  2. package/dist/cjs/ezp-auth_15.cjs.entry.js +265 -109
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +249 -95
  5. package/dist/collection/components/ezp-printing/ezp-printing.js +6 -5
  6. package/dist/collection/components/ezp-upload/ezp-upload.js +13 -11
  7. package/dist/custom-elements/index.js +268 -112
  8. package/dist/directives/proxies.ts +2 -2
  9. package/dist/esm/ezeep.js +1 -1
  10. package/dist/esm/ezp-auth_15.entry.js +265 -109
  11. package/dist/esm/loader.js +1 -1
  12. package/dist/esm-es5/ezeep.js +1 -1
  13. package/dist/esm-es5/ezp-auth_15.entry.js +3 -3
  14. package/dist/esm-es5/loader.js +1 -1
  15. package/dist/ezeep/ezeep.esm.js +1 -1
  16. package/dist/ezeep/{p-62b9b554.system.entry.js → p-0afb1821.system.entry.js} +3 -3
  17. package/dist/ezeep/{p-7b589922.entry.js → p-69fc0c9c.entry.js} +2 -2
  18. package/dist/ezeep/p-84bd195a.system.js +1 -1
  19. package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +11 -3
  20. package/dist/types/components/ezp-printing/ezp-printing.d.ts +1 -1
  21. package/dist/types/components/ezp-upload/ezp-upload.d.ts +1 -1
  22. package/dist/types/components.d.ts +2 -2
  23. package/package.json +1 -1
  24. package/www/build/ezeep.esm.js +1 -1
  25. package/www/build/{p-62b9b554.system.entry.js → p-0afb1821.system.entry.js} +3 -3
  26. package/www/build/{p-7b589922.entry.js → p-69fc0c9c.entry.js} +2 -2
  27. package/www/build/p-84bd195a.system.js +1 -1
  28. package/www/data/locales/de.json +8 -6
  29. package/www/data/locales/en.json +8 -6
@@ -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",
@@ -2890,11 +2892,11 @@ const button_actions$1 = {
2890
2892
  select_printer: "Wähle Drucker"
2891
2893
  };
2892
2894
  const upload$1 = {
2893
- description: "Ziehe eine Datei hier in den Browser ",
2895
+ description: "Ziehe Dateien hier in den Browser ",
2894
2896
  meta_leading: "oder",
2895
- meta_select: "wähle eine Datei aus",
2897
+ meta_select: "wähle Dateien aus",
2896
2898
  meta_trailing: "um mit ezeep Blue zu drucken.",
2897
- selected_file: "Ausgewählte Datei:"
2899
+ selected_files: "Ausgewählte Dateien:"
2898
2900
  };
2899
2901
  const user_menu$1 = {
2900
2902
  theme: "Farbschema",
@@ -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",
@@ -2973,11 +2977,11 @@ const button_actions = {
2973
2977
  select_printer: "Select Printer"
2974
2978
  };
2975
2979
  const upload = {
2976
- description: "Drop a file here into the browser ",
2980
+ description: "Drop files here into the browser ",
2977
2981
  meta_leading: "or",
2978
- meta_select: "select a file",
2982
+ meta_select: "select files",
2979
2983
  meta_trailing: "to print with ezeep Blue.",
2980
- selected_file: "Selected File:"
2984
+ selected_files: "Selected Files:"
2981
2985
  };
2982
2986
  const user_menu = {
2983
2987
  theme: "Color theme",
@@ -32770,7 +32774,6 @@ let EzpPrinterSelection = class {
32770
32774
  this.printCancel = index.createEvent(this, "printCancel", 7);
32771
32775
  this.printSubmit = index.createEvent(this, "printSubmit", 7);
32772
32776
  this.logout = index.createEvent(this, "logout", 7);
32773
- this.sasUri = '';
32774
32777
  this.fileExtension = '';
32775
32778
  this.duplexOptions = [
32776
32779
  {
@@ -32794,7 +32797,7 @@ let EzpPrinterSelection = class {
32794
32797
  {
32795
32798
  id: 2,
32796
32799
  title: i18next.t('printer_selection.color_grayscale'),
32797
- }
32800
+ },
32798
32801
  ];
32799
32802
  this.hidemenu = false;
32800
32803
  this.hideheader = false;
@@ -32821,14 +32824,14 @@ let EzpPrinterSelection = class {
32821
32824
  Paper: '',
32822
32825
  Orientation: '',
32823
32826
  Resolution: '',
32824
- Tray: ''
32827
+ Tray: '',
32825
32828
  },
32826
32829
  OrientationsSupported: [],
32827
32830
  PaperFormats: [],
32828
32831
  Resolutions: [],
32829
32832
  DuplexSupported: false,
32830
32833
  Color: false,
32831
- Trays: []
32834
+ Trays: [],
32832
32835
  };
32833
32836
  // needs to be initialised with empty strings
32834
32837
  this.selectedProperties = {
@@ -32846,6 +32849,11 @@ let EzpPrinterSelection = class {
32846
32849
  trayname: '',
32847
32850
  PageRanges: '',
32848
32851
  };
32852
+ this.currentFileIndex = 0;
32853
+ this.totalFiles = 0;
32854
+ this.failedFiles = [];
32855
+ this.successfulFiles = [];
32856
+ this.partialSuccess = false;
32849
32857
  /**
32850
32858
  *
32851
32859
  * Private methods
@@ -32853,6 +32861,9 @@ let EzpPrinterSelection = class {
32853
32861
  */
32854
32862
  /** Description... */
32855
32863
  this.handleCancel = () => {
32864
+ this.failedFiles = [];
32865
+ this.successfulFiles = [];
32866
+ this.partialSuccess = false;
32856
32867
  this.printCancel.emit();
32857
32868
  };
32858
32869
  this.validateData = (data) => {
@@ -32869,9 +32880,14 @@ let EzpPrinterSelection = class {
32869
32880
  this.handlePrint = async () => {
32870
32881
  this.printButton.blur();
32871
32882
  this.printProcessing = true;
32883
+ this.failedFiles = [];
32884
+ this.successfulFiles = [];
32885
+ this.partialSuccess = false;
32872
32886
  // we have to initialse this obj with empty strings to display the select component
32873
32887
  // but don't want to send any attributes with empty strings to the API
32874
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 0 && this.selectedPrinterConfig.Trays[0] == null) {
32888
+ if (this.selectedPrinterConfig.Trays &&
32889
+ this.selectedPrinterConfig.Trays.length >= 0 &&
32890
+ this.selectedPrinterConfig.Trays[0] == null) {
32875
32891
  delete this.selectedProperties.trayname;
32876
32892
  delete this.selectedProperties.defaultSource;
32877
32893
  }
@@ -32931,8 +32947,11 @@ let EzpPrinterSelection = class {
32931
32947
  this.printProcessing = false;
32932
32948
  });
32933
32949
  }
32934
- if (this.file) {
32935
- await this.handleFiles(this.file, 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);
32936
32955
  }
32937
32956
  localStorage.setItem('properties', JSON.stringify(this.selectedProperties));
32938
32957
  localStorage.setItem('printer', JSON.stringify(this.selectedPrinter));
@@ -32980,11 +32999,16 @@ let EzpPrinterSelection = class {
32980
32999
  switch (event.detail) {
32981
33000
  case 'print-success':
32982
33001
  this.printSuccess = false;
33002
+ this.partialSuccess = false;
33003
+ this.failedFiles = [];
33004
+ this.successfulFiles = [];
32983
33005
  this.printCancel.emit();
32984
33006
  break;
32985
33007
  case 'print-failed':
32986
33008
  this.printProcessing = false;
32987
33009
  this.printFailed = false;
33010
+ this.failedFiles = [];
33011
+ this.successfulFiles = [];
32988
33012
  break;
32989
33013
  case 'no-printers':
32990
33014
  this.noPrinters = false;
@@ -33044,18 +33068,23 @@ let EzpPrinterSelection = class {
33044
33068
  .then((data) => {
33045
33069
  var _a, _b, _c, _d, _e, _f, _g;
33046
33070
  this.selectedPrinterConfig = Object.assign(Object.assign({}, this.selectedPrinterConfig), data[0]);
33047
- this.selectedProperties.color = ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color" ? true : false;
33071
+ this.selectedProperties.color =
33072
+ ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == 'color' ? true : false;
33048
33073
  this.selectedProperties.orientation = (_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Orientation;
33049
33074
  this.selectedProperties.resolution = (_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Resolution;
33050
- let defaultPaper = (_d = this.selectedPrinterConfig.PaperFormats) === null || _d === void 0 ? void 0 : _d.find(obj => obj.Default === true);
33075
+ let defaultPaper = (_d = this.selectedPrinterConfig.PaperFormats) === null || _d === void 0 ? void 0 : _d.find((obj) => obj.Default === true);
33051
33076
  this.selectedProperties.paper = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Name;
33052
33077
  this.selectedProperties.paperid = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Id;
33053
- let defaultSource = (_e = this.selectedPrinterConfig.Trays) === null || _e === void 0 ? void 0 : _e.find(obj => obj.Default === true);
33054
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null) {
33078
+ let defaultSource = (_e = this.selectedPrinterConfig.Trays) === null || _e === void 0 ? void 0 : _e.find((obj) => obj.Default === true);
33079
+ if (this.selectedPrinterConfig.Trays &&
33080
+ this.selectedPrinterConfig.Trays.length >= 1 &&
33081
+ this.selectedPrinterConfig.Trays[0] != null) {
33055
33082
  this.selectedProperties.trayname = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Name;
33056
33083
  this.selectedProperties.defaultSource = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Index;
33057
33084
  }
33058
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 0 && this.selectedPrinterConfig.Trays[0] == null) {
33085
+ if (this.selectedPrinterConfig.Trays &&
33086
+ this.selectedPrinterConfig.Trays.length >= 0 &&
33087
+ this.selectedPrinterConfig.Trays[0] == null) {
33059
33088
  delete this.selectedProperties.trayname;
33060
33089
  delete this.selectedProperties.defaultSource;
33061
33090
  }
@@ -33066,7 +33095,8 @@ let EzpPrinterSelection = class {
33066
33095
  // this.setDefaultPaperFormat()
33067
33096
  break;
33068
33097
  case 'color':
33069
- this.selectedProperties.color = eventDetails.title == i18next.t('printer_selection.color_color') ? true : false;
33098
+ this.selectedProperties.color =
33099
+ eventDetails.title == i18next.t('printer_selection.color_color') ? true : false;
33070
33100
  break;
33071
33101
  case 'orientation':
33072
33102
  this.selectedProperties.orientation = eventDetails.id;
@@ -33085,11 +33115,15 @@ let EzpPrinterSelection = class {
33085
33115
  this.selectedProperties.paperwidth = eventDetails.value;
33086
33116
  break;
33087
33117
  case 'tray':
33088
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 0 && this.selectedPrinterConfig.Trays[0] == null) {
33118
+ if (this.selectedPrinterConfig.Trays &&
33119
+ this.selectedPrinterConfig.Trays.length >= 0 &&
33120
+ this.selectedPrinterConfig.Trays[0] == null) {
33089
33121
  delete this.selectedProperties.trayname;
33090
33122
  delete this.selectedProperties.defaultSource;
33091
33123
  }
33092
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null) {
33124
+ if (this.selectedPrinterConfig.Trays &&
33125
+ this.selectedPrinterConfig.Trays.length >= 1 &&
33126
+ this.selectedPrinterConfig.Trays[0] != null) {
33093
33127
  this.selectedProperties.trayname = eventDetails.title;
33094
33128
  this.selectedProperties.defaultSource = eventDetails.id;
33095
33129
  }
@@ -33099,9 +33133,9 @@ let EzpPrinterSelection = class {
33099
33133
  this.pageRangeInvalid = !validatePageRange(this.selectedProperties.PageRanges);
33100
33134
  break;
33101
33135
  case 'duplex':
33102
- if (eventDetails.title == i18next.t('printer_selection.duplex_none')
33103
- || eventDetails.title == i18next.t('printer_selection.duplex_long')
33104
- || eventDetails.title == i18next.t('printer_selection.duplex_short')) {
33136
+ if (eventDetails.title == i18next.t('printer_selection.duplex_none') ||
33137
+ eventDetails.title == i18next.t('printer_selection.duplex_long') ||
33138
+ eventDetails.title == i18next.t('printer_selection.duplex_short')) {
33105
33139
  this.selectedProperties.duplex = true;
33106
33140
  }
33107
33141
  else {
@@ -33112,59 +33146,114 @@ let EzpPrinterSelection = class {
33112
33146
  }
33113
33147
  this.setPaperid();
33114
33148
  }
33115
- async handleFiles(file, printPorperties) {
33149
+ async handleFiles(files, printPorperties) {
33150
+ this.totalFiles = files.length;
33151
+ this.currentFileIndex = 0;
33152
+ this.failedFiles = [];
33153
+ this.successfulFiles = [];
33154
+ // Process each file individually
33155
+ for (let i = 0; i < files.length; i++) {
33156
+ this.currentFileIndex = i;
33157
+ const file = files[i];
33158
+ try {
33159
+ await this.processSingleFile(file, printPorperties);
33160
+ this.successfulFiles.push(file.name);
33161
+ }
33162
+ catch (error) {
33163
+ console.error(`Error processing file ${file.name}:`, error);
33164
+ this.failedFiles.push(file.name);
33165
+ // Continue with the next file instead of stopping
33166
+ }
33167
+ }
33168
+ // Determine final status based on results
33169
+ if (this.failedFiles.length === 0) {
33170
+ // All files processed successfully
33171
+ this.printSuccess = true;
33172
+ this.partialSuccess = false;
33173
+ this.printProcessing = false;
33174
+ }
33175
+ else if (this.successfulFiles.length === 0) {
33176
+ // All files failed
33177
+ this.printFailed = true;
33178
+ this.partialSuccess = false;
33179
+ this.printProcessing = false;
33180
+ }
33181
+ else {
33182
+ // Some files succeeded, some failed - show partial success
33183
+ this.printSuccess = true;
33184
+ this.partialSuccess = true;
33185
+ this.printProcessing = false;
33186
+ }
33187
+ }
33188
+ async processSingleFile(file, printProperties) {
33116
33189
  this.preparingUpload = true;
33117
33190
  const response = await this.printService.prepareFileUpload(authStore.state.accessToken);
33118
33191
  this.preparingUpload = false;
33119
- this.fileid = response.fileid;
33120
- this.sasUri = response.sasUri;
33121
- this.filetype = this.fileExtension;
33122
- let res;
33192
+ const fileid = response.fileid;
33193
+ const sasUri = response.sasUri;
33194
+ const filetype = this.getFileExtension(file.name);
33123
33195
  this.uploading = true;
33124
33196
  try {
33125
- res = await this.printService.uploadBlobFiles(this.sasUri, file);
33126
- }
33127
- catch (error) {
33128
- this.printProcessing = false;
33129
- this.printFailed = true;
33130
- }
33131
- this.uploading = false;
33132
- if (res._response.status === 201) {
33133
- this.printService
33134
- .printByFileID(authStore.state.accessToken, this.fileid, this.filetype, this.selectedPrinter.id, printPorperties, this.filename)
33135
- .then((data) => {
33197
+ // Upload the file
33198
+ const res = await this.printService.uploadBlobFiles(sasUri, file);
33199
+ if (res._response.status === 201) {
33200
+ // Print the file
33201
+ const data = await this.printService.printByFileID(authStore.state.accessToken, fileid, filetype, this.selectedPrinter.id, printProperties, file.name);
33136
33202
  if (data.code === 804) {
33137
- this.printFailed = true;
33138
- this.printProcessing = false;
33203
+ throw new Error(`Print failed for file: ${file.name}`);
33139
33204
  }
33140
33205
  if (data.jobid) {
33141
33206
  printStore.state.jobID = data.jobid;
33142
- poll({
33143
- fn: this.printService.getPrintStatus,
33144
- validate: this.validateData,
33145
- interval: this.POLL_INTERVAL,
33146
- maxAttempts: this.MAX_POLL_ATTEMPTS,
33147
- }).catch((err) => {
33148
- console.log(err);
33149
- this.printFailed = true;
33150
- this.printProcessing = false;
33151
- });
33207
+ // Wait for this print job to complete before processing the next file
33208
+ await this.waitForPrintCompletion();
33152
33209
  }
33153
33210
  else {
33154
- this.printFailed = true;
33155
- this.printProcessing = false;
33211
+ throw new Error(`No job ID returned for file: ${file.name}`);
33156
33212
  }
33157
- })
33158
- .catch((error) => {
33159
- console.log(error);
33160
- this.printFailed = true;
33161
- this.printProcessing = false;
33162
- });
33213
+ }
33214
+ else {
33215
+ throw new Error(`Upload failed for file: ${file.name}`);
33216
+ }
33163
33217
  }
33164
- else {
33165
- this.printFailed = true;
33166
- this.printProcessing = false;
33218
+ catch (error) {
33219
+ this.uploading = false;
33220
+ throw error;
33167
33221
  }
33222
+ this.uploading = false;
33223
+ }
33224
+ async waitForPrintCompletion() {
33225
+ return new Promise((resolve, reject) => {
33226
+ const poll = async () => {
33227
+ try {
33228
+ const data = await this.printService.getPrintStatus();
33229
+ console.log('[waitForPrintCompletion] Poll response:', data);
33230
+ if (data.jobstatus === 0) {
33231
+ // Success
33232
+ resolve();
33233
+ }
33234
+ else if (data.jobstatus === 1246 || data.jobstatus === 129) {
33235
+ // Still processing, keep polling
33236
+ setTimeout(poll, this.POLL_INTERVAL);
33237
+ }
33238
+ else if (data.jobstatus === 3011 || data.jobstatus === 2) {
33239
+ // Failure
33240
+ reject(new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus)));
33241
+ }
33242
+ else {
33243
+ // Unknown status, treat as failure for safety
33244
+ reject(new Error('Unknown print job status: ' + data.jobstatus));
33245
+ }
33246
+ }
33247
+ catch (error) {
33248
+ reject(error);
33249
+ }
33250
+ };
33251
+ poll();
33252
+ });
33253
+ }
33254
+ getFileExtension(filename) {
33255
+ const extension = filename.split('.').pop();
33256
+ return extension ? extension.toLowerCase() : '';
33168
33257
  }
33169
33258
  setDefaultPaperFormat() {
33170
33259
  var _a, _b, _c, _d, _e;
@@ -33189,6 +33278,41 @@ let EzpPrinterSelection = class {
33189
33278
  }
33190
33279
  this.setPaperid();
33191
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
+ }
33192
33316
  /**
33193
33317
  *
33194
33318
  * Lifecycle methods
@@ -33215,18 +33339,23 @@ let EzpPrinterSelection = class {
33215
33339
  .then((data) => {
33216
33340
  var _a, _b, _c, _d, _e, _f, _g;
33217
33341
  this.selectedPrinterConfig = data[0];
33218
- this.selectedProperties.color = ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color" ? true : false;
33342
+ this.selectedProperties.color =
33343
+ ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == 'color' ? true : false;
33219
33344
  this.selectedProperties.orientation = (_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Orientation;
33220
33345
  this.selectedProperties.resolution = (_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Resolution;
33221
- let defaultPaper = (_d = this.selectedPrinterConfig.PaperFormats) === null || _d === void 0 ? void 0 : _d.find(obj => obj.Default === true);
33346
+ let defaultPaper = (_d = this.selectedPrinterConfig.PaperFormats) === null || _d === void 0 ? void 0 : _d.find((obj) => obj.Default === true);
33222
33347
  this.selectedProperties.paper = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Name;
33223
33348
  this.selectedProperties.paperid = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Id;
33224
- let defaultSource = (_e = this.selectedPrinterConfig.Trays) === null || _e === void 0 ? void 0 : _e.find(obj => obj.Default === true);
33225
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null) {
33349
+ let defaultSource = (_e = this.selectedPrinterConfig.Trays) === null || _e === void 0 ? void 0 : _e.find((obj) => obj.Default === true);
33350
+ if (this.selectedPrinterConfig.Trays &&
33351
+ this.selectedPrinterConfig.Trays.length >= 1 &&
33352
+ this.selectedPrinterConfig.Trays[0] != null) {
33226
33353
  this.selectedProperties.trayname = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Name;
33227
33354
  this.selectedProperties.defaultSource = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Index;
33228
33355
  }
33229
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 0 && this.selectedPrinterConfig.Trays[0] == null) {
33356
+ if (this.selectedPrinterConfig.Trays &&
33357
+ this.selectedPrinterConfig.Trays.length >= 0 &&
33358
+ this.selectedPrinterConfig.Trays[0] == null) {
33230
33359
  delete this.selectedProperties.trayname;
33231
33360
  delete this.selectedProperties.defaultSource;
33232
33361
  }
@@ -33248,10 +33377,12 @@ let EzpPrinterSelection = class {
33248
33377
  .then((printerConfig) => {
33249
33378
  this.printerConfig = printerConfig;
33250
33379
  });
33251
- if (this.file) {
33252
- await this.validateFileType(this.filename).then((valid) => {
33253
- this.notSupported = !valid ? true : false;
33254
- });
33380
+ if (this.files && this.files.length > 0) {
33381
+ // Validate all files
33382
+ const validationPromises = this.files.map((file) => this.validateFileType(file.name));
33383
+ const validationResults = await Promise.all(validationPromises);
33384
+ const allValid = validationResults.every((valid) => valid);
33385
+ this.notSupported = !allValid;
33255
33386
  }
33256
33387
  this.loading = false;
33257
33388
  }
@@ -33262,11 +33393,25 @@ let EzpPrinterSelection = class {
33262
33393
  */
33263
33394
  render() {
33264
33395
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
33265
- return this.loading ? (index.h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (index.h(index.Host, { class: { seamless: this.seamless } }, index.h("div", { id: "box", "data-backdrop-surface": true }, !this.printStopped && (index.h(index.Fragment, null, this.printProcessing ? (index.h("ezp-status", { processing: true, description: this.preparingUpload
33266
- ? i18next.t('printer_selection.prepare_upload')
33267
- : this.uploading
33268
- ? i18next.t('printer_selection.uploading')
33269
- : i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.selectedPrinter.is_queue && this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: 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 ? this.filename : '', 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
33396
+ return this.loading ? (index.h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (index.h(index.Host, { class: { seamless: this.seamless } }, index.h("div", { id: "box", "data-backdrop-surface": true }, !this.printStopped && (index.h(index.Fragment, null, this.printProcessing ? (index.h("ezp-status", { processing: true, description: this.totalFiles > 1
33397
+ ? `${i18next.t('printer_selection.print_processing')} (${this.currentFileIndex + 1}/${this.totalFiles})`
33398
+ : this.preparingUpload
33399
+ ? i18next.t('printer_selection.prepare_upload')
33400
+ : this.uploading
33401
+ ? i18next.t('printer_selection.uploading')
33402
+ : i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.selectedPrinter.is_queue && this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: this.totalFiles > 1
33403
+ ? this.failedFiles.length > 0
33404
+ ? `${i18next.t('printer_selection.pull_print_success')} (${this.successfulFiles.length}/${this.totalFiles} files)`
33405
+ : `${i18next.t('printer_selection.pull_print_success')} (${this.totalFiles} files)`
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
33407
+ ? this.partialSuccess
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')})`
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
33411
+ ? this.files && this.files.length > 1
33412
+ ? i18next.t('printer_selection.files_selected', { count: this.files.length })
33413
+ : this.filename
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
33270
33415
  ? i18next.t('printer_selection.select_printer')
33271
33416
  : i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
33272
33417
  id: printer.id,
@@ -33278,27 +33423,29 @@ let EzpPrinterSelection = class {
33278
33423
  id: option.id,
33279
33424
  title: option.title,
33280
33425
  meta: '',
33281
- type: 'color'
33282
- })), preSelected: this.selectedPrinter.id
33283
- && ((_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Color) == "color"
33426
+ type: 'color',
33427
+ })), preSelected: this.selectedPrinter.id && ((_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Color) == 'color'
33284
33428
  ? i18next.t('printer_selection.color_color')
33285
33429
  : i18next.t('printer_selection.color_grayscale'), disabled: !this.selectedPrinterConfig.ColorSupported }), index.h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", placeholder: i18next.t('printer_selection.select_duplex'), toggleFlow: "horizontal", options: (_c = this.duplexOptions) === null || _c === void 0 ? void 0 : _c.map((option) => ({
33286
33430
  id: option.id,
33287
33431
  title: option.title,
33288
33432
  meta: '',
33289
33433
  type: 'duplex',
33290
- })), preSelected: this.selectedPrinter.id && ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_simplex"
33434
+ })), preSelected: this.selectedPrinter.id &&
33435
+ ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == 'duplex_simplex'
33291
33436
  ? i18next.t('printer_selection.duplex_none')
33292
- : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_vertical"
33437
+ : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == 'duplex_vertical'
33293
33438
  ? i18next.t('printer_selection.duplex_long')
33294
- : ((_f = this.selectedPrinterConfig.Default) === null || _f === void 0 ? void 0 : _f.Duplex) == "duplex_horizontal"
33439
+ : ((_f = this.selectedPrinterConfig.Default) === null || _f === void 0 ? void 0 : _f.Duplex) == 'duplex_horizontal'
33295
33440
  ? i18next.t('printer_selection.duplex_short')
33296
- : null, disabled: !this.selectedPrinterConfig.DuplexSupported }), index.h("ezp-select", { label: i18next.t('printer_selection.size'), icon: "size", placeholder: i18next.t('printer_selection.select_size'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.PaperFormats && this.selectedPrinterConfig.PaperFormats.map((format) => ({
33297
- id: format.Id,
33298
- title: format.Name,
33299
- meta: `${format.XRes} x ${format.YRes}`,
33300
- type: 'format',
33301
- })), preSelected: this.selectedPrinter.id && ((_g = this.selectedPrinterConfig.PaperFormats) === null || _g === void 0 ? void 0 : _g.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
33441
+ : null, disabled: !this.selectedPrinterConfig.DuplexSupported }), index.h("ezp-select", { label: i18next.t('printer_selection.size'), icon: "size", placeholder: i18next.t('printer_selection.select_size'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.PaperFormats &&
33442
+ this.selectedPrinterConfig.PaperFormats.map((format) => ({
33443
+ id: format.Id,
33444
+ title: format.Name,
33445
+ meta: `${format.XRes} x ${format.YRes}`,
33446
+ type: 'format',
33447
+ })), preSelected: this.selectedPrinter.id &&
33448
+ ((_g = this.selectedPrinterConfig.PaperFormats) === null || _g === void 0 ? void 0 : _g.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
33302
33449
  ? (_h = this.selectedPrinterConfig.Default) === null || _h === void 0 ? void 0 : _h.Paper
33303
33450
  : null, disabled: !(((_j = this.selectedPrinterConfig.PaperFormats) === null || _j === void 0 ? void 0 : _j.length) > 0) }), this.paperid == PAPER_ID ? (index.h(index.Fragment, null, index.h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }), index.h("ezp-input", { icon: "height", suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null, index.h("ezp-select", { label: i18next.t('printer_selection.orientation'), icon: "orientation", placeholder: i18next.t('printer_selection.select_orientation'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.OrientationsSupported.map((orientation, index) => ({
33304
33451
  id: index + 1,
@@ -33310,14 +33457,20 @@ let EzpPrinterSelection = class {
33310
33457
  title: option,
33311
33458
  meta: '',
33312
33459
  type: 'quality',
33313
- })), preSelected: this.selectedPrinter.id && ((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.includes(this.selectedPrinterConfig.Default.Resolution))
33460
+ })), preSelected: this.selectedPrinter.id &&
33461
+ ((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.includes(this.selectedPrinterConfig.Default.Resolution))
33314
33462
  ? this.selectedPrinterConfig.Default.Resolution
33315
- : null, disabled: !(((_m = this.selectedPrinterConfig.Resolutions) === null || _m === void 0 ? void 0 : _m.length) > 0) }), this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? (index.h("ezp-select", { label: i18next.t('printer_selection.trays'), icon: "trays", placeholder: i18next.t('printer_selection.select_trays'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays.map((trays) => ({
33316
- title: trays.Name,
33317
- id: trays.Index,
33318
- meta: '',
33319
- type: 'tray',
33320
- })), preSelected: this.selectedPrinter.id && ((_o = this.selectedPrinterConfig.Trays) === null || _o === void 0 ? void 0 : _o.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
33463
+ : null, disabled: !(((_m = this.selectedPrinterConfig.Resolutions) === null || _m === void 0 ? void 0 : _m.length) > 0) }), this.selectedPrinterConfig.Trays &&
33464
+ this.selectedPrinterConfig.Trays.length >= 1 &&
33465
+ this.selectedPrinterConfig.Trays[0] != null ? (index.h("ezp-select", { label: i18next.t('printer_selection.trays'), icon: "trays", placeholder: i18next.t('printer_selection.select_trays'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.Trays &&
33466
+ this.selectedPrinterConfig.Trays.length >= 1 &&
33467
+ this.selectedPrinterConfig.Trays.map((trays) => ({
33468
+ title: trays.Name,
33469
+ id: trays.Index,
33470
+ meta: '',
33471
+ type: 'tray',
33472
+ })), preSelected: this.selectedPrinter.id &&
33473
+ ((_o = this.selectedPrinterConfig.Trays) === null || _o === void 0 ? void 0 : _o.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
33321
33474
  ? this.selectedPrinterConfig.Default.Tray
33322
33475
  : null })) : null, index.h("ezp-input", { icon: "paper_range", suffix: "", placeholder: "1-2,4-5,8", value: this.selectedProperties.PageRanges, eventType: "paper_ranges", type: "text", label: i18next.t('printer_selection.page_ranges') })), index.h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })), index.h("div", { id: "footer" }, index.h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel'), class: "action", id: "cancel" }), index.h("ezp-text-button", { disabled: this.selectedPrinter.id === '' || this.printProcessing || this.pageRangeInvalid, type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print'), ref: (button) => (this.printButton = button), class: "action", id: "print" })), !this.hidemenu && index.h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
33323
33476
  }
@@ -33354,6 +33507,7 @@ let EzpPrinting = class {
33354
33507
  this.authOpen = false;
33355
33508
  this.onlyGetSasUri = false;
33356
33509
  this.noDocumentOpen = false;
33510
+ this.files = [];
33357
33511
  }
33358
33512
  /** Watchers */
33359
33513
  watchFileData(newValue, oldValue) {
@@ -33363,7 +33517,7 @@ let EzpPrinting = class {
33363
33517
  for (let i = 0; i < newValue.length; i++) {
33364
33518
  array[i] = newValue.charCodeAt(i);
33365
33519
  }
33366
- this.file = new File([array], this.filename);
33520
+ this.files = [new File([array], this.filename)];
33367
33521
  }
33368
33522
  }
33369
33523
  watchFilename(newValue, oldValue) {
@@ -33415,8 +33569,8 @@ let EzpPrinting = class {
33415
33569
  }
33416
33570
  }
33417
33571
  listenUploadFile(event) {
33418
- this.filename = event.detail[0].name;
33419
- this.file = event.detail[0];
33572
+ this.files = event.detail;
33573
+ this.filename = this.files.length > 0 ? this.files[0].name : '';
33420
33574
  this.open();
33421
33575
  }
33422
33576
  listenDialogClose(event) {
@@ -33547,7 +33701,7 @@ let EzpPrinting = class {
33547
33701
  render() {
33548
33702
  return (index.h(index.Host, { class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
33549
33703
  ? this.systemAppearance
33550
- : userStore.state.appearance} ${this.seamless ? 'seamless' : ''}` }, this.trigger === 'custom' ? (index.h("slot", null)) : this.trigger === 'file' ? (index.h("ezp-upload", null)) : (this.trigger === 'button' && (index.h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))), this.authOpen ? (index.h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (index.h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, file: this.file, hidemenu: this.hidemenu, hideheader: this.hideheader, seamless: this.seamless })) : this.noDocumentOpen ? (index.h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
33704
+ : userStore.state.appearance} ${this.seamless ? 'seamless' : ''}` }, this.trigger === 'custom' ? (index.h("slot", null)) : this.trigger === 'file' ? (index.h("ezp-upload", null)) : (this.trigger === 'button' && (index.h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))), this.authOpen ? (index.h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (index.h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, files: this.files, hidemenu: this.hidemenu, hideheader: this.hideheader, seamless: this.seamless })) : this.noDocumentOpen ? (index.h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
33551
33705
  }
33552
33706
  static get watchers() { return {
33553
33707
  "filedata": ["watchFileData"],
@@ -33895,7 +34049,7 @@ let EzpUpload = class {
33895
34049
  * States
33896
34050
  *
33897
34051
  */
33898
- this.filename = '';
34052
+ this.selectedFiles = [];
33899
34053
  this.dragging = false;
33900
34054
  /**
33901
34055
  *
@@ -33903,8 +34057,9 @@ let EzpUpload = class {
33903
34057
  *
33904
34058
  */
33905
34059
  this.handleInput = () => {
33906
- this.filename = this.input.files[0].name;
33907
- this.uploadFile.emit(this.input.files);
34060
+ const files = Array.from(this.input.files);
34061
+ this.selectedFiles = files;
34062
+ this.uploadFile.emit(files);
33908
34063
  };
33909
34064
  }
33910
34065
  /**
@@ -33927,12 +34082,13 @@ let EzpUpload = class {
33927
34082
  event.stopPropagation();
33928
34083
  event.preventDefault();
33929
34084
  this.dragging = false;
33930
- this.filename = event.dataTransfer.files[0].name;
33931
- this.uploadFile.emit(event.dataTransfer.files);
34085
+ const files = Array.from(event.dataTransfer.files);
34086
+ this.selectedFiles = files;
34087
+ this.uploadFile.emit(files);
33932
34088
  }
33933
34089
  listenPrintCancel() {
33934
34090
  this.form.reset();
33935
- this.filename = '';
34091
+ this.selectedFiles = [];
33936
34092
  }
33937
34093
  /**
33938
34094
  *
@@ -33940,7 +34096,7 @@ let EzpUpload = class {
33940
34096
  *
33941
34097
  */
33942
34098
  render() {
33943
- return (index.h(index.Host, { class: { dragging: this.dragging } }, index.h("form", { id: "form", ref: (form) => (this.form = form) }, index.h("div", { id: "header" }, index.h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }), index.h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }), index.h("div", { id: "meta" }, index.h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }), index.h("label", { htmlFor: "input", id: "select" }, index.h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), index.h("input", { type: "file", name: "input", id: "input", ref: (input) => (this.input = input), onInput: this.handleInput }), index.h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })), this.filename != '' && (index.h(index.Fragment, null, index.h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_file') }), index.h("ezp-label", { level: "tertiary", text: this.filename })))))));
34099
+ return (index.h(index.Host, { class: { dragging: this.dragging } }, index.h("form", { id: "form", ref: (form) => (this.form = form) }, index.h("div", { id: "header" }, index.h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }), index.h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }), index.h("div", { id: "meta" }, index.h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }), index.h("label", { htmlFor: "input", id: "select" }, index.h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), index.h("input", { type: "file", name: "input", id: "input", multiple: true, ref: (input) => (this.input = input), onInput: this.handleInput }), index.h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })), this.selectedFiles.length > 0 && (index.h(index.Fragment, null, index.h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_files') }), this.selectedFiles.map((file, index$1) => (index.h("ezp-label", { key: index$1, level: "tertiary", text: file.name })))))))));
33944
34100
  }
33945
34101
  };
33946
34102
  EzpUpload.style = ezpUploadCss;