@ezeep/ezeep-js 1.0.233 → 1.0.234

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.
@@ -32777,6 +32777,16 @@ let EzpPrinterSelection = class {
32777
32777
  title: i18next.t('printer_selection.duplex_short'),
32778
32778
  },
32779
32779
  ];
32780
+ this.ColorOptions = [
32781
+ {
32782
+ id: 1,
32783
+ title: i18next.t('printer_selection.color_color'),
32784
+ },
32785
+ {
32786
+ id: 2,
32787
+ title: i18next.t('printer_selection.color_grayscale'),
32788
+ }
32789
+ ];
32780
32790
  this.hidemenu = false;
32781
32791
  this.hideheader = false;
32782
32792
  /**
@@ -33212,7 +33222,7 @@ let EzpPrinterSelection = class {
33212
33222
  *
33213
33223
  */
33214
33224
  render() {
33215
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
33225
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
33216
33226
  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
33217
33227
  ? i18next.t('printer_selection.prepare_upload')
33218
33228
  : this.uploading
@@ -33225,68 +33235,50 @@ let EzpPrinterSelection = class {
33225
33235
  meta: printer.location !== '' ? printer.location : '',
33226
33236
  type: 'printer',
33227
33237
  is_queue: printer.is_queue,
33228
- })), preSelected: this.selectedPrinter.id ? this.selectedPrinter.name : null, disabled: !(this.printers.length > 0) })), index.h("div", { id: "options" }, index.h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.Color
33229
- ? [
33230
- {
33231
- id: 1,
33232
- title: i18next.t('printer_selection.color_color'),
33233
- meta: '',
33234
- type: 'color',
33235
- },
33236
- {
33237
- id: 0,
33238
- title: i18next.t('printer_selection.color_grayscale'),
33239
- meta: '',
33240
- type: 'color',
33241
- },
33242
- ]
33243
- : [
33244
- {
33245
- id: 0,
33246
- title: i18next.t('printer_selection.color_grayscale'),
33247
- meta: '',
33248
- type: 'color',
33249
- },
33250
- ], preSelected: this.selectedPrinter.id
33251
- ? ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color"
33252
- ? i18next.t('printer_selection.color_color')
33253
- : i18next.t('printer_selection.color_grayscale')
33254
- : null, 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: (_b = this.duplexOptions) === null || _b === void 0 ? void 0 : _b.map((option) => ({
33238
+ })), preSelected: this.selectedPrinter.id ? this.selectedPrinter.name : null, disabled: !(this.printers.length > 0) })), index.h("div", { id: "options" }, index.h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: (_a = this.ColorOptions) === null || _a === void 0 ? void 0 : _a.map((option) => ({
33239
+ id: option.id,
33240
+ title: option.title,
33241
+ meta: '',
33242
+ type: 'color'
33243
+ })), preSelected: this.selectedPrinter.id
33244
+ && ((_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Color) == "color"
33245
+ ? i18next.t('printer_selection.color_color')
33246
+ : 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) => ({
33255
33247
  id: option.id,
33256
33248
  title: option.title,
33257
33249
  meta: '',
33258
33250
  type: 'duplex',
33259
- })), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Duplex) == "duplex_simplex"
33251
+ })), preSelected: this.selectedPrinter.id && ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_simplex"
33260
33252
  ? i18next.t('printer_selection.duplex_none')
33261
- : ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_vertical"
33253
+ : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_vertical"
33262
33254
  ? i18next.t('printer_selection.duplex_long')
33263
- : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_horizontal"
33255
+ : ((_f = this.selectedPrinterConfig.Default) === null || _f === void 0 ? void 0 : _f.Duplex) == "duplex_horizontal"
33264
33256
  ? i18next.t('printer_selection.duplex_short')
33265
33257
  : 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) => ({
33266
33258
  id: format.Id,
33267
33259
  title: format.Name,
33268
33260
  meta: `${format.XRes} x ${format.YRes}`,
33269
33261
  type: 'format',
33270
- })), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
33271
- ? (_g = this.selectedPrinterConfig.Default) === null || _g === void 0 ? void 0 : _g.Paper
33272
- : null, disabled: !(((_h = this.selectedPrinterConfig.PaperFormats) === null || _h === void 0 ? void 0 : _h.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) => ({
33262
+ })), 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); }))
33263
+ ? (_h = this.selectedPrinterConfig.Default) === null || _h === void 0 ? void 0 : _h.Paper
33264
+ : 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) => ({
33273
33265
  id: index + 1,
33274
33266
  title: i18next.t(`printer_selection.orientation_${orientation}`),
33275
33267
  meta: '',
33276
33268
  type: 'orientation',
33277
- })), preSelected: this.selectedPrinter.id ? this.selectedProperties.orientation : null, disabled: !(this.selectedPrinterConfig.OrientationsSupported.length > 0) }), index.h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: (_j = this.selectedPrinterConfig.Resolutions) === null || _j === void 0 ? void 0 : _j.map((option, index) => ({
33269
+ })), preSelected: this.selectedPrinter.id ? this.selectedProperties.orientation : null, disabled: !(this.selectedPrinterConfig.OrientationsSupported.length > 0) }), index.h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: (_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.map((option, index) => ({
33278
33270
  id: index,
33279
33271
  title: option,
33280
33272
  meta: '',
33281
33273
  type: 'quality',
33282
- })), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.Default.Resolution))
33274
+ })), preSelected: this.selectedPrinter.id && ((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.includes(this.selectedPrinterConfig.Default.Resolution))
33283
33275
  ? this.selectedPrinterConfig.Default.Resolution
33284
- : null, disabled: !(((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.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) => ({
33276
+ : 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) => ({
33285
33277
  title: trays.Name,
33286
33278
  id: trays.Index,
33287
33279
  meta: '',
33288
33280
  type: 'tray',
33289
- })), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
33281
+ })), preSelected: this.selectedPrinter.id && ((_o = this.selectedPrinterConfig.Trays) === null || _o === void 0 ? void 0 : _o.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
33290
33282
  ? this.selectedPrinterConfig.Default.Tray
33291
33283
  : null })) : null, index.h("ezp-input", { icon: "paper_range", suffix: "", placeholder: "1-2,4-5,8", value: localStorage.getItem('pageRanges') ? 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 }))));
33292
33284
  }
@@ -23,6 +23,16 @@ export class EzpPrinterSelection {
23
23
  title: i18next.t('printer_selection.duplex_short'),
24
24
  },
25
25
  ];
26
+ this.ColorOptions = [
27
+ {
28
+ id: 1,
29
+ title: i18next.t('printer_selection.color_color'),
30
+ },
31
+ {
32
+ id: 2,
33
+ title: i18next.t('printer_selection.color_grayscale'),
34
+ }
35
+ ];
26
36
  this.hidemenu = false;
27
37
  this.hideheader = false;
28
38
  /**
@@ -460,7 +470,7 @@ export class EzpPrinterSelection {
460
470
  *
461
471
  */
462
472
  render() {
463
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
473
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
464
474
  return this.loading ? (h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (h(Host, { class: { seamless: this.seamless } },
465
475
  h("div", { id: "box", "data-backdrop-surface": true },
466
476
  !this.printStopped && (h(Fragment, null, this.printProcessing ? (h("ezp-status", { processing: true, description: this.preparingUpload
@@ -484,43 +494,25 @@ export class EzpPrinterSelection {
484
494
  is_queue: printer.is_queue,
485
495
  })), preSelected: this.selectedPrinter.id ? this.selectedPrinter.name : null, disabled: !(this.printers.length > 0) })),
486
496
  h("div", { id: "options" },
487
- h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.Color
488
- ? [
489
- {
490
- id: 1,
491
- title: i18next.t('printer_selection.color_color'),
492
- meta: '',
493
- type: 'color',
494
- },
495
- {
496
- id: 0,
497
- title: i18next.t('printer_selection.color_grayscale'),
498
- meta: '',
499
- type: 'color',
500
- },
501
- ]
502
- : [
503
- {
504
- id: 0,
505
- title: i18next.t('printer_selection.color_grayscale'),
506
- meta: '',
507
- type: 'color',
508
- },
509
- ], preSelected: this.selectedPrinter.id
510
- ? ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color"
511
- ? i18next.t('printer_selection.color_color')
512
- : i18next.t('printer_selection.color_grayscale')
513
- : null, disabled: !this.selectedPrinterConfig.ColorSupported }),
514
- h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", placeholder: i18next.t('printer_selection.select_duplex'), toggleFlow: "horizontal", options: (_b = this.duplexOptions) === null || _b === void 0 ? void 0 : _b.map((option) => ({
497
+ h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: (_a = this.ColorOptions) === null || _a === void 0 ? void 0 : _a.map((option) => ({
498
+ id: option.id,
499
+ title: option.title,
500
+ meta: '',
501
+ type: 'color'
502
+ })), preSelected: this.selectedPrinter.id
503
+ && ((_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Color) == "color"
504
+ ? i18next.t('printer_selection.color_color')
505
+ : i18next.t('printer_selection.color_grayscale'), disabled: !this.selectedPrinterConfig.ColorSupported }),
506
+ 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) => ({
515
507
  id: option.id,
516
508
  title: option.title,
517
509
  meta: '',
518
510
  type: 'duplex',
519
- })), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Duplex) == "duplex_simplex"
511
+ })), preSelected: this.selectedPrinter.id && ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_simplex"
520
512
  ? i18next.t('printer_selection.duplex_none')
521
- : ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_vertical"
513
+ : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_vertical"
522
514
  ? i18next.t('printer_selection.duplex_long')
523
- : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_horizontal"
515
+ : ((_f = this.selectedPrinterConfig.Default) === null || _f === void 0 ? void 0 : _f.Duplex) == "duplex_horizontal"
524
516
  ? i18next.t('printer_selection.duplex_short')
525
517
  : null, disabled: !this.selectedPrinterConfig.DuplexSupported }),
526
518
  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) => ({
@@ -528,9 +520,9 @@ export class EzpPrinterSelection {
528
520
  title: format.Name,
529
521
  meta: `${format.XRes} x ${format.YRes}`,
530
522
  type: 'format',
531
- })), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
532
- ? (_g = this.selectedPrinterConfig.Default) === null || _g === void 0 ? void 0 : _g.Paper
533
- : null, disabled: !(((_h = this.selectedPrinterConfig.PaperFormats) === null || _h === void 0 ? void 0 : _h.length) > 0) }),
523
+ })), 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); }))
524
+ ? (_h = this.selectedPrinterConfig.Default) === null || _h === void 0 ? void 0 : _h.Paper
525
+ : null, disabled: !(((_j = this.selectedPrinterConfig.PaperFormats) === null || _j === void 0 ? void 0 : _j.length) > 0) }),
534
526
  this.paperid == PAPER_ID ? (h(Fragment, null,
535
527
  h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }),
536
528
  h("ezp-input", { icon: "height", suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null,
@@ -540,20 +532,20 @@ export class EzpPrinterSelection {
540
532
  meta: '',
541
533
  type: 'orientation',
542
534
  })), preSelected: this.selectedPrinter.id ? this.selectedProperties.orientation : null, disabled: !(this.selectedPrinterConfig.OrientationsSupported.length > 0) }),
543
- h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: (_j = this.selectedPrinterConfig.Resolutions) === null || _j === void 0 ? void 0 : _j.map((option, index) => ({
535
+ h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: (_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.map((option, index) => ({
544
536
  id: index,
545
537
  title: option,
546
538
  meta: '',
547
539
  type: 'quality',
548
- })), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.Default.Resolution))
540
+ })), preSelected: this.selectedPrinter.id && ((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.includes(this.selectedPrinterConfig.Default.Resolution))
549
541
  ? this.selectedPrinterConfig.Default.Resolution
550
- : null, disabled: !(((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.length) > 0) }),
542
+ : null, disabled: !(((_m = this.selectedPrinterConfig.Resolutions) === null || _m === void 0 ? void 0 : _m.length) > 0) }),
551
543
  this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? (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) => ({
552
544
  title: trays.Name,
553
545
  id: trays.Index,
554
546
  meta: '',
555
547
  type: 'tray',
556
- })), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
548
+ })), preSelected: this.selectedPrinter.id && ((_o = this.selectedPrinterConfig.Trays) === null || _o === void 0 ? void 0 : _o.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
557
549
  ? this.selectedPrinterConfig.Default.Tray
558
550
  : null })) : null,
559
551
  h("ezp-input", { icon: "paper_range", suffix: "", placeholder: "1-2,4-5,8", value: localStorage.getItem('pageRanges') ? this.selectedProperties.PageRanges : '', eventType: "paper_ranges", type: "text", label: i18next.t('printer_selection.page_ranges') })),
@@ -32802,6 +32802,16 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32802
32802
  title: i18next.t('printer_selection.duplex_short'),
32803
32803
  },
32804
32804
  ];
32805
+ this.ColorOptions = [
32806
+ {
32807
+ id: 1,
32808
+ title: i18next.t('printer_selection.color_color'),
32809
+ },
32810
+ {
32811
+ id: 2,
32812
+ title: i18next.t('printer_selection.color_grayscale'),
32813
+ }
32814
+ ];
32805
32815
  this.hidemenu = false;
32806
32816
  this.hideheader = false;
32807
32817
  /**
@@ -33237,7 +33247,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33237
33247
  *
33238
33248
  */
33239
33249
  render() {
33240
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
33250
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
33241
33251
  return this.loading ? (h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (h(Host, { class: { seamless: this.seamless } }, h("div", { id: "box", "data-backdrop-surface": true }, !this.printStopped && (h(Fragment, null, this.printProcessing ? (h("ezp-status", { processing: true, description: this.preparingUpload
33242
33252
  ? i18next.t('printer_selection.prepare_upload')
33243
33253
  : this.uploading
@@ -33250,68 +33260,50 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33250
33260
  meta: printer.location !== '' ? printer.location : '',
33251
33261
  type: 'printer',
33252
33262
  is_queue: printer.is_queue,
33253
- })), preSelected: this.selectedPrinter.id ? this.selectedPrinter.name : null, disabled: !(this.printers.length > 0) })), h("div", { id: "options" }, h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.Color
33254
- ? [
33255
- {
33256
- id: 1,
33257
- title: i18next.t('printer_selection.color_color'),
33258
- meta: '',
33259
- type: 'color',
33260
- },
33261
- {
33262
- id: 0,
33263
- title: i18next.t('printer_selection.color_grayscale'),
33264
- meta: '',
33265
- type: 'color',
33266
- },
33267
- ]
33268
- : [
33269
- {
33270
- id: 0,
33271
- title: i18next.t('printer_selection.color_grayscale'),
33272
- meta: '',
33273
- type: 'color',
33274
- },
33275
- ], preSelected: this.selectedPrinter.id
33276
- ? ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color"
33277
- ? i18next.t('printer_selection.color_color')
33278
- : i18next.t('printer_selection.color_grayscale')
33279
- : null, disabled: !this.selectedPrinterConfig.ColorSupported }), h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", placeholder: i18next.t('printer_selection.select_duplex'), toggleFlow: "horizontal", options: (_b = this.duplexOptions) === null || _b === void 0 ? void 0 : _b.map((option) => ({
33263
+ })), preSelected: this.selectedPrinter.id ? this.selectedPrinter.name : null, disabled: !(this.printers.length > 0) })), h("div", { id: "options" }, h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: (_a = this.ColorOptions) === null || _a === void 0 ? void 0 : _a.map((option) => ({
33264
+ id: option.id,
33265
+ title: option.title,
33266
+ meta: '',
33267
+ type: 'color'
33268
+ })), preSelected: this.selectedPrinter.id
33269
+ && ((_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Color) == "color"
33270
+ ? i18next.t('printer_selection.color_color')
33271
+ : i18next.t('printer_selection.color_grayscale'), disabled: !this.selectedPrinterConfig.ColorSupported }), 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) => ({
33280
33272
  id: option.id,
33281
33273
  title: option.title,
33282
33274
  meta: '',
33283
33275
  type: 'duplex',
33284
- })), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Duplex) == "duplex_simplex"
33276
+ })), preSelected: this.selectedPrinter.id && ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_simplex"
33285
33277
  ? i18next.t('printer_selection.duplex_none')
33286
- : ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_vertical"
33278
+ : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_vertical"
33287
33279
  ? i18next.t('printer_selection.duplex_long')
33288
- : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_horizontal"
33280
+ : ((_f = this.selectedPrinterConfig.Default) === null || _f === void 0 ? void 0 : _f.Duplex) == "duplex_horizontal"
33289
33281
  ? i18next.t('printer_selection.duplex_short')
33290
33282
  : null, disabled: !this.selectedPrinterConfig.DuplexSupported }), 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) => ({
33291
33283
  id: format.Id,
33292
33284
  title: format.Name,
33293
33285
  meta: `${format.XRes} x ${format.YRes}`,
33294
33286
  type: 'format',
33295
- })), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
33296
- ? (_g = this.selectedPrinterConfig.Default) === null || _g === void 0 ? void 0 : _g.Paper
33297
- : null, disabled: !(((_h = this.selectedPrinterConfig.PaperFormats) === null || _h === void 0 ? void 0 : _h.length) > 0) }), this.paperid == PAPER_ID ? (h(Fragment, null, h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }), h("ezp-input", { icon: "height", suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null, 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) => ({
33287
+ })), 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); }))
33288
+ ? (_h = this.selectedPrinterConfig.Default) === null || _h === void 0 ? void 0 : _h.Paper
33289
+ : null, disabled: !(((_j = this.selectedPrinterConfig.PaperFormats) === null || _j === void 0 ? void 0 : _j.length) > 0) }), this.paperid == PAPER_ID ? (h(Fragment, null, h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }), h("ezp-input", { icon: "height", suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null, 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) => ({
33298
33290
  id: index + 1,
33299
33291
  title: i18next.t(`printer_selection.orientation_${orientation}`),
33300
33292
  meta: '',
33301
33293
  type: 'orientation',
33302
- })), preSelected: this.selectedPrinter.id ? this.selectedProperties.orientation : null, disabled: !(this.selectedPrinterConfig.OrientationsSupported.length > 0) }), h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: (_j = this.selectedPrinterConfig.Resolutions) === null || _j === void 0 ? void 0 : _j.map((option, index) => ({
33294
+ })), preSelected: this.selectedPrinter.id ? this.selectedProperties.orientation : null, disabled: !(this.selectedPrinterConfig.OrientationsSupported.length > 0) }), h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: (_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.map((option, index) => ({
33303
33295
  id: index,
33304
33296
  title: option,
33305
33297
  meta: '',
33306
33298
  type: 'quality',
33307
- })), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.Default.Resolution))
33299
+ })), preSelected: this.selectedPrinter.id && ((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.includes(this.selectedPrinterConfig.Default.Resolution))
33308
33300
  ? this.selectedPrinterConfig.Default.Resolution
33309
- : null, disabled: !(((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.length) > 0) }), this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? (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) => ({
33301
+ : 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 ? (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) => ({
33310
33302
  title: trays.Name,
33311
33303
  id: trays.Index,
33312
33304
  meta: '',
33313
33305
  type: 'tray',
33314
- })), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
33306
+ })), preSelected: this.selectedPrinter.id && ((_o = this.selectedPrinterConfig.Trays) === null || _o === void 0 ? void 0 : _o.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
33315
33307
  ? this.selectedPrinterConfig.Default.Tray
33316
33308
  : null })) : null, h("ezp-input", { icon: "paper_range", suffix: "", placeholder: "1-2,4-5,8", value: localStorage.getItem('pageRanges') ? this.selectedProperties.PageRanges : '', eventType: "paper_ranges", type: "text", label: i18next.t('printer_selection.page_ranges') })), h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })), h("div", { id: "footer" }, h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel'), class: "action", id: "cancel" }), 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 && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
33317
33309
  }
@@ -32773,6 +32773,16 @@ let EzpPrinterSelection = class {
32773
32773
  title: i18next.t('printer_selection.duplex_short'),
32774
32774
  },
32775
32775
  ];
32776
+ this.ColorOptions = [
32777
+ {
32778
+ id: 1,
32779
+ title: i18next.t('printer_selection.color_color'),
32780
+ },
32781
+ {
32782
+ id: 2,
32783
+ title: i18next.t('printer_selection.color_grayscale'),
32784
+ }
32785
+ ];
32776
32786
  this.hidemenu = false;
32777
32787
  this.hideheader = false;
32778
32788
  /**
@@ -33208,7 +33218,7 @@ let EzpPrinterSelection = class {
33208
33218
  *
33209
33219
  */
33210
33220
  render() {
33211
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
33221
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
33212
33222
  return this.loading ? (h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (h(Host, { class: { seamless: this.seamless } }, h("div", { id: "box", "data-backdrop-surface": true }, !this.printStopped && (h(Fragment, null, this.printProcessing ? (h("ezp-status", { processing: true, description: this.preparingUpload
33213
33223
  ? i18next.t('printer_selection.prepare_upload')
33214
33224
  : this.uploading
@@ -33221,68 +33231,50 @@ let EzpPrinterSelection = class {
33221
33231
  meta: printer.location !== '' ? printer.location : '',
33222
33232
  type: 'printer',
33223
33233
  is_queue: printer.is_queue,
33224
- })), preSelected: this.selectedPrinter.id ? this.selectedPrinter.name : null, disabled: !(this.printers.length > 0) })), h("div", { id: "options" }, h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.Color
33225
- ? [
33226
- {
33227
- id: 1,
33228
- title: i18next.t('printer_selection.color_color'),
33229
- meta: '',
33230
- type: 'color',
33231
- },
33232
- {
33233
- id: 0,
33234
- title: i18next.t('printer_selection.color_grayscale'),
33235
- meta: '',
33236
- type: 'color',
33237
- },
33238
- ]
33239
- : [
33240
- {
33241
- id: 0,
33242
- title: i18next.t('printer_selection.color_grayscale'),
33243
- meta: '',
33244
- type: 'color',
33245
- },
33246
- ], preSelected: this.selectedPrinter.id
33247
- ? ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color"
33248
- ? i18next.t('printer_selection.color_color')
33249
- : i18next.t('printer_selection.color_grayscale')
33250
- : null, disabled: !this.selectedPrinterConfig.ColorSupported }), h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", placeholder: i18next.t('printer_selection.select_duplex'), toggleFlow: "horizontal", options: (_b = this.duplexOptions) === null || _b === void 0 ? void 0 : _b.map((option) => ({
33234
+ })), preSelected: this.selectedPrinter.id ? this.selectedPrinter.name : null, disabled: !(this.printers.length > 0) })), h("div", { id: "options" }, h("ezp-select", { label: i18next.t('printer_selection.color'), icon: "color", placeholder: i18next.t('printer_selection.select_color'), toggleFlow: "horizontal", options: (_a = this.ColorOptions) === null || _a === void 0 ? void 0 : _a.map((option) => ({
33235
+ id: option.id,
33236
+ title: option.title,
33237
+ meta: '',
33238
+ type: 'color'
33239
+ })), preSelected: this.selectedPrinter.id
33240
+ && ((_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Color) == "color"
33241
+ ? i18next.t('printer_selection.color_color')
33242
+ : i18next.t('printer_selection.color_grayscale'), disabled: !this.selectedPrinterConfig.ColorSupported }), 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) => ({
33251
33243
  id: option.id,
33252
33244
  title: option.title,
33253
33245
  meta: '',
33254
33246
  type: 'duplex',
33255
- })), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Duplex) == "duplex_simplex"
33247
+ })), preSelected: this.selectedPrinter.id && ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_simplex"
33256
33248
  ? i18next.t('printer_selection.duplex_none')
33257
- : ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_vertical"
33249
+ : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_vertical"
33258
33250
  ? i18next.t('printer_selection.duplex_long')
33259
- : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_horizontal"
33251
+ : ((_f = this.selectedPrinterConfig.Default) === null || _f === void 0 ? void 0 : _f.Duplex) == "duplex_horizontal"
33260
33252
  ? i18next.t('printer_selection.duplex_short')
33261
33253
  : null, disabled: !this.selectedPrinterConfig.DuplexSupported }), 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) => ({
33262
33254
  id: format.Id,
33263
33255
  title: format.Name,
33264
33256
  meta: `${format.XRes} x ${format.YRes}`,
33265
33257
  type: 'format',
33266
- })), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
33267
- ? (_g = this.selectedPrinterConfig.Default) === null || _g === void 0 ? void 0 : _g.Paper
33268
- : null, disabled: !(((_h = this.selectedPrinterConfig.PaperFormats) === null || _h === void 0 ? void 0 : _h.length) > 0) }), this.paperid == PAPER_ID ? (h(Fragment, null, h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }), h("ezp-input", { icon: "height", suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null, 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) => ({
33258
+ })), 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); }))
33259
+ ? (_h = this.selectedPrinterConfig.Default) === null || _h === void 0 ? void 0 : _h.Paper
33260
+ : null, disabled: !(((_j = this.selectedPrinterConfig.PaperFormats) === null || _j === void 0 ? void 0 : _j.length) > 0) }), this.paperid == PAPER_ID ? (h(Fragment, null, h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }), h("ezp-input", { icon: "height", suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null, 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) => ({
33269
33261
  id: index + 1,
33270
33262
  title: i18next.t(`printer_selection.orientation_${orientation}`),
33271
33263
  meta: '',
33272
33264
  type: 'orientation',
33273
- })), preSelected: this.selectedPrinter.id ? this.selectedProperties.orientation : null, disabled: !(this.selectedPrinterConfig.OrientationsSupported.length > 0) }), h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: (_j = this.selectedPrinterConfig.Resolutions) === null || _j === void 0 ? void 0 : _j.map((option, index) => ({
33265
+ })), preSelected: this.selectedPrinter.id ? this.selectedProperties.orientation : null, disabled: !(this.selectedPrinterConfig.OrientationsSupported.length > 0) }), h("ezp-select", { label: i18next.t('printer_selection.quality'), icon: "quality", placeholder: i18next.t('printer_selection.select_quality'), toggleFlow: "horizontal", options: (_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.map((option, index) => ({
33274
33266
  id: index,
33275
33267
  title: option,
33276
33268
  meta: '',
33277
33269
  type: 'quality',
33278
- })), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.Default.Resolution))
33270
+ })), preSelected: this.selectedPrinter.id && ((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.includes(this.selectedPrinterConfig.Default.Resolution))
33279
33271
  ? this.selectedPrinterConfig.Default.Resolution
33280
- : null, disabled: !(((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.length) > 0) }), this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? (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) => ({
33272
+ : 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 ? (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) => ({
33281
33273
  title: trays.Name,
33282
33274
  id: trays.Index,
33283
33275
  meta: '',
33284
33276
  type: 'tray',
33285
- })), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
33277
+ })), preSelected: this.selectedPrinter.id && ((_o = this.selectedPrinterConfig.Trays) === null || _o === void 0 ? void 0 : _o.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
33286
33278
  ? this.selectedPrinterConfig.Default.Tray
33287
33279
  : null })) : null, h("ezp-input", { icon: "paper_range", suffix: "", placeholder: "1-2,4-5,8", value: localStorage.getItem('pageRanges') ? this.selectedProperties.PageRanges : '', eventType: "paper_ranges", type: "text", label: i18next.t('printer_selection.page_ranges') })), h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })), h("div", { id: "footer" }, h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel'), class: "action", id: "cancel" }), 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 && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
33288
33280
  }