@ezeep/ezeep-js 1.0.239 → 1.0.241

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.
@@ -32840,6 +32840,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32840
32840
  this.printFailed = false;
32841
32841
  this.notSupported = false;
32842
32842
  this.noPrinters = false;
32843
+ this.hubDriverError = false;
32843
32844
  this.userMenuOpen = false;
32844
32845
  this.printStopped = false;
32845
32846
  this.selectedPrinterConfig = {
@@ -32889,6 +32890,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32889
32890
  this.failedFiles = [];
32890
32891
  this.successfulFiles = [];
32891
32892
  this.partialSuccess = false;
32893
+ this.hubDriverError = false;
32892
32894
  this.printCancel.emit();
32893
32895
  };
32894
32896
  this.validateData = (data) => {
@@ -32908,6 +32910,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32908
32910
  this.failedFiles = [];
32909
32911
  this.successfulFiles = [];
32910
32912
  this.partialSuccess = false;
32913
+ this.hubDriverError = false;
32911
32914
  // we have to initialse this obj with empty strings to display the select component
32912
32915
  // but don't want to send any attributes with empty strings to the API
32913
32916
  if (this.selectedPrinterConfig.Trays &&
@@ -32948,7 +32951,13 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32948
32951
  this.printFailed = true;
32949
32952
  this.printProcessing = false;
32950
32953
  }
32951
- if (data.jobid) {
32954
+ else if (this.selectedPrinter.is_queue &&
32955
+ (data.code === 412 || data.code === 500 || data.code === 503)) {
32956
+ // Hub printer specific errors - likely driver not assigned
32957
+ this.hubDriverError = true;
32958
+ this.printProcessing = false;
32959
+ }
32960
+ else if (data.jobid) {
32952
32961
  printStore.state.jobID = data.jobid;
32953
32962
  poll({
32954
32963
  fn: this.printService.getPrintStatus,
@@ -32957,22 +32966,40 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32957
32966
  maxAttempts: this.MAX_POLL_ATTEMPTS,
32958
32967
  }).catch((err) => {
32959
32968
  console.warn(err);
32960
- this.printFailed = true;
32969
+ // Check if this is a hub printer and the error might be driver-related
32970
+ if (this.selectedPrinter.is_queue) {
32971
+ this.hubDriverError = true;
32972
+ }
32973
+ else {
32974
+ this.printFailed = true;
32975
+ }
32961
32976
  this.printProcessing = false;
32962
32977
  });
32963
32978
  }
32964
32979
  else {
32965
- this.printFailed = true;
32980
+ // No job ID returned - check if it's a hub printer
32981
+ if (this.selectedPrinter.is_queue) {
32982
+ this.hubDriverError = true;
32983
+ }
32984
+ else {
32985
+ this.printFailed = true;
32986
+ }
32966
32987
  this.printProcessing = false;
32967
32988
  }
32968
32989
  })
32969
32990
  .catch((error) => {
32970
32991
  console.log(error);
32971
- this.printFailed = true;
32992
+ // Check if this is a hub printer and the error might be driver-related
32993
+ if (this.selectedPrinter.is_queue) {
32994
+ this.hubDriverError = true;
32995
+ }
32996
+ else {
32997
+ this.printFailed = true;
32998
+ }
32972
32999
  this.printProcessing = false;
32973
33000
  });
32974
33001
  }
32975
- if (this.files && this.files.length > 1) {
33002
+ else if (this.files && this.files.length > 1) {
32976
33003
  await this.processMultipleFiles(this.files, cleanPrintProperties);
32977
33004
  }
32978
33005
  else if (this.files && this.files.length === 1) {
@@ -33030,12 +33057,12 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33030
33057
  this.printCancel.emit();
33031
33058
  break;
33032
33059
  case 'print-failed':
33033
- this.printProcessing = false;
33034
33060
  this.printFailed = false;
33035
- this.failedFiles = [];
33036
- this.successfulFiles = [];
33037
33061
  break;
33038
- case 'no-printers':
33062
+ case 'hub-driver-error':
33063
+ this.hubDriverError = false;
33064
+ break;
33065
+ case 'not-supported':
33039
33066
  this.noPrinters = false;
33040
33067
  break;
33041
33068
  }
@@ -33050,6 +33077,11 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33050
33077
  this.printProcessing = false;
33051
33078
  this.handlePrint();
33052
33079
  break;
33080
+ case 'hub-driver-error':
33081
+ this.hubDriverError = false;
33082
+ this.printProcessing = false;
33083
+ this.handlePrint();
33084
+ break;
33053
33085
  }
33054
33086
  }
33055
33087
  getPropertiesFromLocalStorage() {
@@ -33187,7 +33219,13 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33187
33219
  catch (error) {
33188
33220
  console.error(`Error processing file ${file.name}:`, error);
33189
33221
  this.failedFiles.push(file.name);
33190
- // Continue with the next file instead of stopping
33222
+ // Check if this is a hub driver error
33223
+ if (error.message && error.message.includes('Hub printer driver error')) {
33224
+ this.hubDriverError = true;
33225
+ this.printProcessing = false;
33226
+ return; // Stop processing other files if it's a hub driver issue
33227
+ }
33228
+ // Continue with the next file
33191
33229
  }
33192
33230
  }
33193
33231
  // Determine final status based on results
@@ -33227,6 +33265,11 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33227
33265
  if (data.code === 804) {
33228
33266
  throw new Error(`Print failed for file: ${file.name}`);
33229
33267
  }
33268
+ // Check for hub printer driver errors
33269
+ if (this.selectedPrinter.is_queue &&
33270
+ (data.code === 412 || data.code === 500 || data.code === 503)) {
33271
+ throw new Error(`Hub printer driver error for file: ${file.name}`);
33272
+ }
33230
33273
  if (data.jobid) {
33231
33274
  printStore.state.jobID = data.jobid;
33232
33275
  // Wait for this print job to complete before processing the next file
@@ -33247,34 +33290,36 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33247
33290
  this.uploading = false;
33248
33291
  }
33249
33292
  async waitForPrintCompletion() {
33250
- return new Promise((resolve, reject) => {
33251
- const poll = async () => {
33252
- try {
33253
- const data = await this.printService.getPrintStatus();
33254
- console.log('[waitForPrintCompletion] Poll response:', data);
33255
- if (data.jobstatus === 0) {
33256
- // Success
33257
- resolve();
33258
- }
33259
- else if (data.jobstatus === 1246 || data.jobstatus === 129) {
33260
- // Still processing, keep polling
33261
- setTimeout(poll, this.POLL_INTERVAL);
33262
- }
33263
- else if (data.jobstatus === 3011 || data.jobstatus === 2) {
33264
- // Failure
33265
- reject(new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus)));
33266
- }
33267
- else {
33268
- // Unknown status, treat as failure for safety
33269
- reject(new Error('Unknown print job status: ' + data.jobstatus));
33270
- }
33293
+ while (true) {
33294
+ try {
33295
+ const data = await this.printService.getPrintStatus();
33296
+ console.log('[waitForPrintCompletion] Poll response:', data);
33297
+ if (data.jobstatus === 0) {
33298
+ // Success
33299
+ return;
33271
33300
  }
33272
- catch (error) {
33273
- reject(error);
33301
+ else if (data.jobstatus === 1246 || data.jobstatus === 129) {
33302
+ // Still processing, wait before next poll
33303
+ await new Promise((resolve) => setTimeout(resolve, this.POLL_INTERVAL));
33274
33304
  }
33275
- };
33276
- poll();
33277
- });
33305
+ else if (data.jobstatus === 3011 || data.jobstatus === 2) {
33306
+ // Failure
33307
+ throw new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus));
33308
+ }
33309
+ else if (this.selectedPrinter.is_queue &&
33310
+ (data.jobstatus === 412 || data.jobstatus === 500 || data.jobstatus === 503)) {
33311
+ // Hub printer driver error
33312
+ throw new Error('Hub printer driver error: ' + (data.jobstatusstring || data.jobstatus));
33313
+ }
33314
+ else {
33315
+ // Unknown status, treat as failure for safety
33316
+ throw new Error('Unknown print job status: ' + data.jobstatus);
33317
+ }
33318
+ }
33319
+ catch (error) {
33320
+ throw error;
33321
+ }
33322
+ }
33278
33323
  }
33279
33324
  getFileExtension(filename) {
33280
33325
  const extension = filename.split('.').pop();
@@ -33432,7 +33477,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33432
33477
  ? this.partialSuccess
33433
33478
  ? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} ${i18next.t('printer_selection.files')} - ${this.failedFiles.length} failed`
33434
33479
  : `${i18next.t('printer_selection.print_success')} (${this.totalFiles} ${i18next.t('printer_selection.files')})`
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
33480
+ : 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.hubDriverError ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "hub-driver-error", close: true, 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
33436
33481
  ? this.files && this.files.length > 1
33437
33482
  ? i18next.t('printer_selection.files_selected', { count: this.files.length })
33438
33483
  : this.filename
@@ -34244,7 +34289,7 @@ const EzpIcon = /*@__PURE__*/proxyCustomElement(EzpIcon$1, [1,"ezp-icon",{"name"
34244
34289
  const EzpIconButton = /*@__PURE__*/proxyCustomElement(EzpIconButton$1, [1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}]);
34245
34290
  const EzpInput = /*@__PURE__*/proxyCustomElement(EzpInput$1, [1,"ezp-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[32]}]);
34246
34291
  const EzpLabel = /*@__PURE__*/proxyCustomElement(EzpLabel$1, [1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]);
34247
- const EzpPrinterSelection = /*@__PURE__*/proxyCustomElement(EzpPrinterSelection$1, [1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]]);
34292
+ const EzpPrinterSelection = /*@__PURE__*/proxyCustomElement(EzpPrinterSelection$1, [1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"hubDriverError":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]]);
34248
34293
  const EzpPrinting = /*@__PURE__*/proxyCustomElement(EzpPrinting$1, [1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[32]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]]);
34249
34294
  const EzpSelect = /*@__PURE__*/proxyCustomElement(EzpSelect$1, [1,"ezp-select",{"icon":[1],"label":[1],"optionFlow":[1,"option-flow"],"options":[16],"placeholder":[1],"preSelected":[8,"pre-selected"],"toggleFlow":[1,"toggle-flow"],"disabled":[4],"expanded":[32],"selected":[32]}]);
34250
34295
  const EzpStatus = /*@__PURE__*/proxyCustomElement(EzpStatus$1, [1,"ezp-status",{"description":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}]);
package/dist/esm/ezeep.js CHANGED
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
 
16
16
  patchBrowser().then(options => {
17
17
  globalScripts();
18
- return bootstrapLazy([["ezp-auth_15",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{"clientID":[1025,"client-i-d"],"redirectURI":[1025,"redirect-u-r-i"],"hidelogin":[4],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"selectedFiles":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{"heading":[1],"description":[1],"action":[1],"iconName":[1,"icon-name"],"iconSize":[1,"icon-size"],"iconFramed":[4,"icon-framed"],"instance":[1]}],[1,"ezp-user-menu",{"name":[1],"open":[1028]}],[1,"ezp-select",{"icon":[1],"label":[1],"optionFlow":[1,"option-flow"],"options":[16],"placeholder":[1],"preSelected":[8,"pre-selected"],"toggleFlow":[1,"toggle-flow"],"disabled":[4],"expanded":[32],"selected":[32]}],[1,"ezp-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[32]}],[1,"ezp-stepper",{"icon":[1],"label":[1],"max":[2],"min":[2],"canDecrease":[32],"canIncrease":[32],"focused":[32],"value":[32]}],[1,"ezp-status",{"description":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}],[1,"ezp-backdrop",{"visible":[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[1,"ezp-icon",{"name":[1],"size":[1],"framed":[4]}],[1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]]]], options);
18
+ return bootstrapLazy([["ezp-auth_15",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"hubDriverError":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{"clientID":[1025,"client-i-d"],"redirectURI":[1025,"redirect-u-r-i"],"hidelogin":[4],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"selectedFiles":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{"heading":[1],"description":[1],"action":[1],"iconName":[1,"icon-name"],"iconSize":[1,"icon-size"],"iconFramed":[4,"icon-framed"],"instance":[1]}],[1,"ezp-user-menu",{"name":[1],"open":[1028]}],[1,"ezp-select",{"icon":[1],"label":[1],"optionFlow":[1,"option-flow"],"options":[16],"placeholder":[1],"preSelected":[8,"pre-selected"],"toggleFlow":[1,"toggle-flow"],"disabled":[4],"expanded":[32],"selected":[32]}],[1,"ezp-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[32]}],[1,"ezp-stepper",{"icon":[1],"label":[1],"max":[2],"min":[2],"canDecrease":[32],"canIncrease":[32],"focused":[32],"value":[32]}],[1,"ezp-status",{"description":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}],[1,"ezp-backdrop",{"visible":[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[1,"ezp-icon",{"name":[1],"size":[1],"framed":[4]}],[1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]]]], options);
19
19
  });
@@ -32811,6 +32811,7 @@ let EzpPrinterSelection = class {
32811
32811
  this.printFailed = false;
32812
32812
  this.notSupported = false;
32813
32813
  this.noPrinters = false;
32814
+ this.hubDriverError = false;
32814
32815
  this.userMenuOpen = false;
32815
32816
  this.printStopped = false;
32816
32817
  this.selectedPrinterConfig = {
@@ -32860,6 +32861,7 @@ let EzpPrinterSelection = class {
32860
32861
  this.failedFiles = [];
32861
32862
  this.successfulFiles = [];
32862
32863
  this.partialSuccess = false;
32864
+ this.hubDriverError = false;
32863
32865
  this.printCancel.emit();
32864
32866
  };
32865
32867
  this.validateData = (data) => {
@@ -32879,6 +32881,7 @@ let EzpPrinterSelection = class {
32879
32881
  this.failedFiles = [];
32880
32882
  this.successfulFiles = [];
32881
32883
  this.partialSuccess = false;
32884
+ this.hubDriverError = false;
32882
32885
  // we have to initialse this obj with empty strings to display the select component
32883
32886
  // but don't want to send any attributes with empty strings to the API
32884
32887
  if (this.selectedPrinterConfig.Trays &&
@@ -32919,7 +32922,13 @@ let EzpPrinterSelection = class {
32919
32922
  this.printFailed = true;
32920
32923
  this.printProcessing = false;
32921
32924
  }
32922
- if (data.jobid) {
32925
+ else if (this.selectedPrinter.is_queue &&
32926
+ (data.code === 412 || data.code === 500 || data.code === 503)) {
32927
+ // Hub printer specific errors - likely driver not assigned
32928
+ this.hubDriverError = true;
32929
+ this.printProcessing = false;
32930
+ }
32931
+ else if (data.jobid) {
32923
32932
  printStore.state.jobID = data.jobid;
32924
32933
  poll({
32925
32934
  fn: this.printService.getPrintStatus,
@@ -32928,22 +32937,40 @@ let EzpPrinterSelection = class {
32928
32937
  maxAttempts: this.MAX_POLL_ATTEMPTS,
32929
32938
  }).catch((err) => {
32930
32939
  console.warn(err);
32931
- this.printFailed = true;
32940
+ // Check if this is a hub printer and the error might be driver-related
32941
+ if (this.selectedPrinter.is_queue) {
32942
+ this.hubDriverError = true;
32943
+ }
32944
+ else {
32945
+ this.printFailed = true;
32946
+ }
32932
32947
  this.printProcessing = false;
32933
32948
  });
32934
32949
  }
32935
32950
  else {
32936
- this.printFailed = true;
32951
+ // No job ID returned - check if it's a hub printer
32952
+ if (this.selectedPrinter.is_queue) {
32953
+ this.hubDriverError = true;
32954
+ }
32955
+ else {
32956
+ this.printFailed = true;
32957
+ }
32937
32958
  this.printProcessing = false;
32938
32959
  }
32939
32960
  })
32940
32961
  .catch((error) => {
32941
32962
  console.log(error);
32942
- this.printFailed = true;
32963
+ // Check if this is a hub printer and the error might be driver-related
32964
+ if (this.selectedPrinter.is_queue) {
32965
+ this.hubDriverError = true;
32966
+ }
32967
+ else {
32968
+ this.printFailed = true;
32969
+ }
32943
32970
  this.printProcessing = false;
32944
32971
  });
32945
32972
  }
32946
- if (this.files && this.files.length > 1) {
32973
+ else if (this.files && this.files.length > 1) {
32947
32974
  await this.processMultipleFiles(this.files, cleanPrintProperties);
32948
32975
  }
32949
32976
  else if (this.files && this.files.length === 1) {
@@ -33001,12 +33028,12 @@ let EzpPrinterSelection = class {
33001
33028
  this.printCancel.emit();
33002
33029
  break;
33003
33030
  case 'print-failed':
33004
- this.printProcessing = false;
33005
33031
  this.printFailed = false;
33006
- this.failedFiles = [];
33007
- this.successfulFiles = [];
33008
33032
  break;
33009
- case 'no-printers':
33033
+ case 'hub-driver-error':
33034
+ this.hubDriverError = false;
33035
+ break;
33036
+ case 'not-supported':
33010
33037
  this.noPrinters = false;
33011
33038
  break;
33012
33039
  }
@@ -33021,6 +33048,11 @@ let EzpPrinterSelection = class {
33021
33048
  this.printProcessing = false;
33022
33049
  this.handlePrint();
33023
33050
  break;
33051
+ case 'hub-driver-error':
33052
+ this.hubDriverError = false;
33053
+ this.printProcessing = false;
33054
+ this.handlePrint();
33055
+ break;
33024
33056
  }
33025
33057
  }
33026
33058
  getPropertiesFromLocalStorage() {
@@ -33158,7 +33190,13 @@ let EzpPrinterSelection = class {
33158
33190
  catch (error) {
33159
33191
  console.error(`Error processing file ${file.name}:`, error);
33160
33192
  this.failedFiles.push(file.name);
33161
- // Continue with the next file instead of stopping
33193
+ // Check if this is a hub driver error
33194
+ if (error.message && error.message.includes('Hub printer driver error')) {
33195
+ this.hubDriverError = true;
33196
+ this.printProcessing = false;
33197
+ return; // Stop processing other files if it's a hub driver issue
33198
+ }
33199
+ // Continue with the next file
33162
33200
  }
33163
33201
  }
33164
33202
  // Determine final status based on results
@@ -33198,6 +33236,11 @@ let EzpPrinterSelection = class {
33198
33236
  if (data.code === 804) {
33199
33237
  throw new Error(`Print failed for file: ${file.name}`);
33200
33238
  }
33239
+ // Check for hub printer driver errors
33240
+ if (this.selectedPrinter.is_queue &&
33241
+ (data.code === 412 || data.code === 500 || data.code === 503)) {
33242
+ throw new Error(`Hub printer driver error for file: ${file.name}`);
33243
+ }
33201
33244
  if (data.jobid) {
33202
33245
  printStore.state.jobID = data.jobid;
33203
33246
  // Wait for this print job to complete before processing the next file
@@ -33218,34 +33261,36 @@ let EzpPrinterSelection = class {
33218
33261
  this.uploading = false;
33219
33262
  }
33220
33263
  async waitForPrintCompletion() {
33221
- return new Promise((resolve, reject) => {
33222
- const poll = async () => {
33223
- try {
33224
- const data = await this.printService.getPrintStatus();
33225
- console.log('[waitForPrintCompletion] Poll response:', data);
33226
- if (data.jobstatus === 0) {
33227
- // Success
33228
- resolve();
33229
- }
33230
- else if (data.jobstatus === 1246 || data.jobstatus === 129) {
33231
- // Still processing, keep polling
33232
- setTimeout(poll, this.POLL_INTERVAL);
33233
- }
33234
- else if (data.jobstatus === 3011 || data.jobstatus === 2) {
33235
- // Failure
33236
- reject(new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus)));
33237
- }
33238
- else {
33239
- // Unknown status, treat as failure for safety
33240
- reject(new Error('Unknown print job status: ' + data.jobstatus));
33241
- }
33264
+ while (true) {
33265
+ try {
33266
+ const data = await this.printService.getPrintStatus();
33267
+ console.log('[waitForPrintCompletion] Poll response:', data);
33268
+ if (data.jobstatus === 0) {
33269
+ // Success
33270
+ return;
33242
33271
  }
33243
- catch (error) {
33244
- reject(error);
33272
+ else if (data.jobstatus === 1246 || data.jobstatus === 129) {
33273
+ // Still processing, wait before next poll
33274
+ await new Promise((resolve) => setTimeout(resolve, this.POLL_INTERVAL));
33245
33275
  }
33246
- };
33247
- poll();
33248
- });
33276
+ else if (data.jobstatus === 3011 || data.jobstatus === 2) {
33277
+ // Failure
33278
+ throw new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus));
33279
+ }
33280
+ else if (this.selectedPrinter.is_queue &&
33281
+ (data.jobstatus === 412 || data.jobstatus === 500 || data.jobstatus === 503)) {
33282
+ // Hub printer driver error
33283
+ throw new Error('Hub printer driver error: ' + (data.jobstatusstring || data.jobstatus));
33284
+ }
33285
+ else {
33286
+ // Unknown status, treat as failure for safety
33287
+ throw new Error('Unknown print job status: ' + data.jobstatus);
33288
+ }
33289
+ }
33290
+ catch (error) {
33291
+ throw error;
33292
+ }
33293
+ }
33249
33294
  }
33250
33295
  getFileExtension(filename) {
33251
33296
  const extension = filename.split('.').pop();
@@ -33403,7 +33448,7 @@ let EzpPrinterSelection = class {
33403
33448
  ? this.partialSuccess
33404
33449
  ? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} ${i18next.t('printer_selection.files')} - ${this.failedFiles.length} failed`
33405
33450
  : `${i18next.t('printer_selection.print_success')} (${this.totalFiles} ${i18next.t('printer_selection.files')})`
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
33451
+ : 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.hubDriverError ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "hub-driver-error", close: true, 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
33407
33452
  ? this.files && this.files.length > 1
33408
33453
  ? i18next.t('printer_selection.files_selected', { count: this.files.length })
33409
33454
  : this.filename
@@ -12,7 +12,7 @@ const defineCustomElements = (win, options) => {
12
12
  if (typeof window === 'undefined') return Promise.resolve();
13
13
  return patchEsm().then(() => {
14
14
  globalScripts();
15
- return bootstrapLazy([["ezp-auth_15",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{"clientID":[1025,"client-i-d"],"redirectURI":[1025,"redirect-u-r-i"],"hidelogin":[4],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"selectedFiles":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{"heading":[1],"description":[1],"action":[1],"iconName":[1,"icon-name"],"iconSize":[1,"icon-size"],"iconFramed":[4,"icon-framed"],"instance":[1]}],[1,"ezp-user-menu",{"name":[1],"open":[1028]}],[1,"ezp-select",{"icon":[1],"label":[1],"optionFlow":[1,"option-flow"],"options":[16],"placeholder":[1],"preSelected":[8,"pre-selected"],"toggleFlow":[1,"toggle-flow"],"disabled":[4],"expanded":[32],"selected":[32]}],[1,"ezp-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[32]}],[1,"ezp-stepper",{"icon":[1],"label":[1],"max":[2],"min":[2],"canDecrease":[32],"canIncrease":[32],"focused":[32],"value":[32]}],[1,"ezp-status",{"description":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}],[1,"ezp-backdrop",{"visible":[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[1,"ezp-icon",{"name":[1],"size":[1],"framed":[4]}],[1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]]]], options);
15
+ return bootstrapLazy([["ezp-auth_15",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"hubDriverError":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{"clientID":[1025,"client-i-d"],"redirectURI":[1025,"redirect-u-r-i"],"hidelogin":[4],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"selectedFiles":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{"heading":[1],"description":[1],"action":[1],"iconName":[1,"icon-name"],"iconSize":[1,"icon-size"],"iconFramed":[4,"icon-framed"],"instance":[1]}],[1,"ezp-user-menu",{"name":[1],"open":[1028]}],[1,"ezp-select",{"icon":[1],"label":[1],"optionFlow":[1,"option-flow"],"options":[16],"placeholder":[1],"preSelected":[8,"pre-selected"],"toggleFlow":[1,"toggle-flow"],"disabled":[4],"expanded":[32],"selected":[32]}],[1,"ezp-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[32]}],[1,"ezp-stepper",{"icon":[1],"label":[1],"max":[2],"min":[2],"canDecrease":[32],"canIncrease":[32],"focused":[32],"value":[32]}],[1,"ezp-status",{"description":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}],[1,"ezp-backdrop",{"visible":[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}],[1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}],[1,"ezp-icon",{"name":[1],"size":[1],"framed":[4]}],[1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]]]], options);
16
16
  });
17
17
  };
18
18
 
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-3ac1b749.js";import{g as globalScripts}from"./app-globals-28960cbc.js";var patchBrowser=function(){var e=import.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return promiseResolve(t)};patchBrowser().then((function(e){globalScripts();return bootstrapLazy([["ezp-auth_15",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1025],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],hidemenu:[4],hideheader:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],seamless:[4],printOpen:[32],authOpen:[32],onlyGetSasUri:[32],noDocumentOpen:[32],systemAppearance:[32],files:[32],open:[64],logOut:[64],getSasUri:[64],getAuthUri:[64],checkAuth:[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{clientID:[1,"client-i-d"],redirectURI:[1,"redirect-u-r-i"],filename:[1025],fileurl:[1],filetype:[1025],fileid:[1025],files:[16],hidemenu:[4],hideheader:[4],seamless:[4],loading:[32],printProcessing:[32],pageRangeInvalid:[32],uploading:[32],preparingUpload:[32],printSuccess:[32],printFailed:[32],notSupported:[32],noPrinters:[32],userMenuOpen:[32],printStopped:[32],userName:[32],printers:[32],selectedPrinter:[32],printerConfig:[32],selectedPrinterConfig:[32],selectedProperties:[32],paperid:[32],currentFileIndex:[32],totalFiles:[32],failedFiles:[32],successfulFiles:[32],partialSuccess:[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{clientID:[1025,"client-i-d"],redirectURI:[1025,"redirect-u-r-i"],hidelogin:[4],trigger:[1],code:[1],auth:[32],authURI:[32],accessToken:[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{selectedFiles:[32],dragging:[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{heading:[1],description:[1],action:[1],iconName:[1,"icon-name"],iconSize:[1,"icon-size"],iconFramed:[4,"icon-framed"],instance:[1]}],[1,"ezp-user-menu",{name:[1],open:[1028]}],[1,"ezp-select",{icon:[1],label:[1],optionFlow:[1,"option-flow"],options:[16],placeholder:[1],preSelected:[8,"pre-selected"],toggleFlow:[1,"toggle-flow"],disabled:[4],expanded:[32],selected:[32]}],[1,"ezp-input",{label:[1],value:[1032],type:[1],icon:[1],suffix:[513],eventType:[1,"event-type"],placeholder:[1],focused:[32]}],[1,"ezp-stepper",{icon:[1],label:[1],max:[2],min:[2],canDecrease:[32],canIncrease:[32],focused:[32],value:[32]}],[1,"ezp-status",{description:[1],processing:[4],instance:[1],icon:[1],cancel:[8],close:[8],retry:[8]}],[1,"ezp-backdrop",{visible:[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon-button",{blank:[4],disabled:[4],href:[1],icon:[1],level:[1],type:[1]}],[1,"ezp-text-button",{blank:[4],disabled:[4],href:[1],level:[1],label:[1],type:[1],small:[4]}],[1,"ezp-icon",{name:[1],size:[1],framed:[4]}],[1,"ezp-label",{ellipsis:[4],level:[1],noWrap:[4,"no-wrap"],text:[1],weight:[1]}]]]],e)}));
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-3ac1b749.js";import{g as globalScripts}from"./app-globals-28960cbc.js";var patchBrowser=function(){var e=import.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return promiseResolve(t)};patchBrowser().then((function(e){globalScripts();return bootstrapLazy([["ezp-auth_15",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1025],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],hidemenu:[4],hideheader:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],seamless:[4],printOpen:[32],authOpen:[32],onlyGetSasUri:[32],noDocumentOpen:[32],systemAppearance:[32],files:[32],open:[64],logOut:[64],getSasUri:[64],getAuthUri:[64],checkAuth:[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{clientID:[1,"client-i-d"],redirectURI:[1,"redirect-u-r-i"],filename:[1025],fileurl:[1],filetype:[1025],fileid:[1025],files:[16],hidemenu:[4],hideheader:[4],seamless:[4],loading:[32],printProcessing:[32],pageRangeInvalid:[32],uploading:[32],preparingUpload:[32],printSuccess:[32],printFailed:[32],notSupported:[32],noPrinters:[32],hubDriverError:[32],userMenuOpen:[32],printStopped:[32],userName:[32],printers:[32],selectedPrinter:[32],printerConfig:[32],selectedPrinterConfig:[32],selectedProperties:[32],paperid:[32],currentFileIndex:[32],totalFiles:[32],failedFiles:[32],successfulFiles:[32],partialSuccess:[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{clientID:[1025,"client-i-d"],redirectURI:[1025,"redirect-u-r-i"],hidelogin:[4],trigger:[1],code:[1],auth:[32],authURI:[32],accessToken:[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{selectedFiles:[32],dragging:[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{heading:[1],description:[1],action:[1],iconName:[1,"icon-name"],iconSize:[1,"icon-size"],iconFramed:[4,"icon-framed"],instance:[1]}],[1,"ezp-user-menu",{name:[1],open:[1028]}],[1,"ezp-select",{icon:[1],label:[1],optionFlow:[1,"option-flow"],options:[16],placeholder:[1],preSelected:[8,"pre-selected"],toggleFlow:[1,"toggle-flow"],disabled:[4],expanded:[32],selected:[32]}],[1,"ezp-input",{label:[1],value:[1032],type:[1],icon:[1],suffix:[513],eventType:[1,"event-type"],placeholder:[1],focused:[32]}],[1,"ezp-stepper",{icon:[1],label:[1],max:[2],min:[2],canDecrease:[32],canIncrease:[32],focused:[32],value:[32]}],[1,"ezp-status",{description:[1],processing:[4],instance:[1],icon:[1],cancel:[8],close:[8],retry:[8]}],[1,"ezp-backdrop",{visible:[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon-button",{blank:[4],disabled:[4],href:[1],icon:[1],level:[1],type:[1]}],[1,"ezp-text-button",{blank:[4],disabled:[4],href:[1],level:[1],label:[1],type:[1],small:[4]}],[1,"ezp-icon",{name:[1],size:[1],framed:[4]}],[1,"ezp-label",{ellipsis:[4],level:[1],noWrap:[4,"no-wrap"],text:[1],weight:[1]}]]]],e)}));