tickera-angular-components 0.0.1-dev.21 → 0.0.1-dev.211

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.
package/index.d.ts CHANGED
@@ -1,12 +1,19 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, EnvironmentProviders, WritableSignal, EventEmitter, Injector, Type, OnInit, OnDestroy, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { InjectionToken, EnvironmentProviders, WritableSignal, Signal, EventEmitter, OnChanges, OnDestroy, SimpleChanges, Injector, Type, OnInit, ElementRef, AfterViewInit } from '@angular/core';
3
+ export { TippyDirective } from '@ngneat/helipopper';
4
+ export * from '@ngneat/helipopper/config';
3
5
  import { TranslocoLoader, TranslocoService } from '@jsverse/transloco';
4
6
  import * as rxjs from 'rxjs';
5
7
  import { Observable, Subject } from 'rxjs';
6
- import { ValidatorFn, FormGroup, FormBuilder, ControlValueAccessor, NgControl, Validator, AbstractControl, FormControl } from '@angular/forms';
7
- import { HttpClient, HttpInterceptorFn } from '@angular/common/http';
8
+ import { ShapeConfig, Shape } from 'konva/lib/Shape';
9
+ import { Context } from 'konva/lib/Context';
10
+ import { ValidatorFn, FormGroup, FormBuilder, ControlValueAccessor, NgControl, Validator, AbstractControl, ValidationErrors, FormControl } from '@angular/forms';
11
+ import { HttpClient, HttpErrorResponse, HttpInterceptorFn } from '@angular/common/http';
12
+ import { Stage } from 'konva/lib/Stage';
13
+ import { Router, ActivatedRoute } from '@angular/router';
14
+ import * as tickera_angular_components from 'tickera-angular-components';
8
15
  import { Toolbar, Editor } from 'ngx-editor';
9
- import { Router } from '@angular/router';
16
+ import { StageComponent, CoreShapeComponent } from 'ng2-konva';
10
17
 
11
18
  interface TickeraComponentsConfig {
12
19
  apiUrl: string;
@@ -14,6 +21,7 @@ interface TickeraComponentsConfig {
14
21
  defaultLang?: string;
15
22
  availableLangs?: string[];
16
23
  }
24
+
17
25
  declare const TICKERA_COMPONENTS_CONFIG: InjectionToken<TickeraComponentsConfig>;
18
26
  declare function provideTickeraComponents(config: TickeraComponentsConfig): EnvironmentProviders;
19
27
 
@@ -33,22 +41,21 @@ declare const ALERT_ICONS: {
33
41
  info: string;
34
42
  };
35
43
 
36
- declare const BUTTON_VARIANT_CLASSES: Record<string, string>;
37
- declare const BASE_BUTTON_CLASSES = "btn";
38
- declare const BUTTON_SIZES_CLASSES: Record<string, string>;
39
-
40
- declare const FORM_ERROR_MESSAGES: Record<string, string>;
41
-
42
- declare const BASE_INPUT_CLASSES: string;
43
- declare const ERROR_INPUT_CLASSES: string;
44
-
45
44
  declare const ADMIN_API_ROUTES: {
46
45
  FIND_ALL: string;
47
46
  CREATE: string;
47
+ findOne: (id: number) => string;
48
48
  updateOne: (id: number) => string;
49
49
  deleteOne: (id: number) => string;
50
50
  };
51
51
 
52
+ declare const ADMISSION_API_ROUTES: {
53
+ join: (performanceId: number) => string;
54
+ leave: (performanceId: number) => string;
55
+ status: (performanceId: number) => string;
56
+ events: (performanceId: number) => string;
57
+ };
58
+
52
59
  declare const CITY_API_ENDPOINTS: {
53
60
  findAll: string;
54
61
  create: string;
@@ -79,15 +86,28 @@ declare const PERFORMANCES_API_ROUTES: {
79
86
  createBulk: string;
80
87
  findOneById: (id: number) => string;
81
88
  findOneBookingData: (id: number) => string;
89
+ findOneBookingDataAdmin: (id: number) => string;
82
90
  update: (id: number) => string;
83
91
  delete: (id: number) => string;
84
92
  deleteMany: string;
93
+ bulkPublished: string;
85
94
  cancel: (id: number) => string;
86
95
  publishInventory: (id: number) => string;
87
96
  reserve: (id: number) => string;
88
97
  ticketQrToken: (uuid: string) => string;
89
98
  getAvailableDays: string;
99
+ getAvailableDaysAdmin: string;
90
100
  publicAvailablePerformances: string;
101
+ dailyPerformancesAdmin: string;
102
+ pedagogicList: string;
103
+ pedagogicAvailability: (id: number) => string;
104
+ createPedagogicOrder: (id: number) => string;
105
+ seatEventsTicket: (id: number) => string;
106
+ seatEventsTicketAdmin: (id: number) => string;
107
+ seatEvents: (id: number) => string;
108
+ myQrToken: (ticketUuid: string) => string;
109
+ ticketPdf: (ticketUuid: string) => string;
110
+ myTicketPdf: (ticketUuid: string) => string;
91
111
  };
92
112
 
93
113
  declare const PRICE_ZONES_API_ROUTES: {
@@ -166,172 +186,36 @@ declare const VENUES_API_ROUTES: {
166
186
  deleteOneImage: (venueId: number, imageId: number) => string;
167
187
  };
168
188
 
169
- declare enum FileType {
170
- IMAGE = "image",
171
- PDF = "pdf",
172
- EXCEL = "excel",
173
- WORD = "word",
174
- TEXT = "text",
175
- DEFAULT = "default"
176
- }
177
-
178
- declare enum CouponApplicability {
179
- GENERAL = "GENERAL",
180
- CUSTOMER_EMAIL = "CUSTOMER_EMAIL",
181
- MEMBERSHIP_TYPE = "MEMBERSHIP_TYPE",
182
- SHOWS = "SHOWS",
183
- PERFORMANCES = "PERFORMANCES"
184
- }
185
-
186
- declare enum CouponDiscountType {
187
- PERCENTAGE = "PERCENTAGE",
188
- FIXED = "FIXED"
189
- }
190
-
191
- declare enum CouponStatus {
192
- ACTIVE = "ACTIVE",
193
- INACTIVE = "INACTIVE",
194
- EXPIRED = "EXPIRED",
195
- CONSUMED = "CONSUMED"
196
- }
197
-
198
- declare enum CorporateBondStatus {
199
- ACTIVE = "ACTIVE",
200
- INACTIVE = "INACTIVE",
201
- EXPIRED = "EXPIRED",
202
- CONSUMED = "CONSUMED"
203
- }
204
-
205
- declare enum PerformanceStatus {
206
- ACTIVE = "active",
207
- CANCELLED = "cancelled",
208
- FINISHED = "finished",
209
- POSTPONED = "postponed"
210
- }
211
-
212
- declare enum PerformanceTicketStatus {
213
- AVAILABLE = "available",
214
- RESERVED = "reserved",
215
- SOLD = "sold",
216
- BLOCKED = "blocked"
217
- }
218
-
219
- declare enum RoomMapElementOrientation {
220
- TOP = "top",
221
- RIGHT = "right",
222
- BOTTOM = "bottom",
223
- LEFT = "left",
224
- CENTER = "center"
225
- }
226
-
227
- declare enum RoomMapElementType {
228
- SEAT_BLOCK = "seat_block",
229
- TABLE = "table",
230
- ZONE = "zone",
231
- EXIT = "exit",
232
- STAGE = "stage",
233
- PRODUCTION_AREA = "production_area",
234
- UNAVAILABLE_SPACE = "unavailable_space",
235
- STAIR = "stair",
236
- HALLWAY = "hallway"
237
- }
238
-
239
- declare enum GiftBondStatus {
240
- ACTIVE = "ACTIVE",
241
- INACTIVE = "INACTIVE",
242
- EXPIRED = "EXPIRED",
243
- CONSUMED = "CONSUMED"
244
- }
245
-
246
- declare enum OrderItemType {
247
- TICKET = "TICKET",
248
- PRODUCT = "PRODUCT"
249
- }
250
-
251
- declare enum OrderStatus {
252
- ON_HOLD = "on-hold",
253
- PENDING_PAYMENT = "pending-payment",
254
- PROCESSING = "processing",
255
- COMPLETED = "completed",
256
- FAILED = "failed",
257
- CANCELLED = "cancelled",
258
- REFUNDED = "refunded"
259
- }
260
-
261
- interface RoomMapPosition {
262
- x: number;
263
- y: number;
264
- }
265
-
266
- interface RoomMapSize {
267
- width: number;
268
- height: number;
269
- }
270
-
271
- interface RoomMapBaseElement {
272
- id: string;
273
- type: RoomMapElementType;
274
- position: RoomMapPosition;
275
- size: RoomMapSize;
276
- rotation: number;
277
- name?: string;
278
- isLocked: boolean;
279
- isVisible: boolean;
280
- zIndex: number;
281
- }
282
-
283
- interface RoomMapExitElement extends RoomMapBaseElement {
284
- type: RoomMapElementType.EXIT;
285
- exitName?: string;
286
- exitType: 'emergency' | 'regular';
287
- width: number;
288
- }
289
-
290
- interface RoomMapProductionAreaElement extends RoomMapBaseElement {
291
- type: RoomMapElementType.PRODUCTION_AREA;
292
- areaName?: string;
293
- areaType: 'lighting' | 'sound' | 'backstage' | 'orchestra' | 'custom';
294
- }
295
-
296
- interface RoomMapSeatElement extends RoomMapBaseElement {
297
- type: RoomMapElementType.SEAT_BLOCK;
298
- seatNumber?: string;
299
- isAvailable: boolean;
300
- priceCategory?: string;
301
- }
189
+ declare const VIP_CARDS_API_ROUTES: {
190
+ findAll: string;
191
+ findOne: (id: number) => string;
192
+ activateAdmin: string;
193
+ rechargeAdmin: (id: number) => string;
194
+ updateStatus: (id: number) => string;
195
+ updateTerms: (id: number) => string;
196
+ transactions: (id: number) => string;
197
+ findMy: string;
198
+ activate: string;
199
+ recharge: string;
200
+ };
302
201
 
303
- interface RoomMapStageElement extends RoomMapBaseElement {
304
- type: RoomMapElementType.STAGE;
305
- stageName?: string;
306
- orientation: RoomMapElementOrientation;
307
- isMainStage: boolean;
308
- }
202
+ declare const BUTTON_VARIANT_CLASSES: Record<string, string>;
203
+ declare const BASE_BUTTON_CLASSES = "btn";
204
+ declare const BUTTON_SIZES_CLASSES: Record<string, string>;
309
205
 
310
- interface RoomMapTableElement extends RoomMapBaseElement {
311
- type: RoomMapElementType.TABLE;
312
- tableNumber?: string;
313
- capacity: number;
314
- shape: 'round' | 'rectangular' | 'square';
315
- }
206
+ declare const FORM_ERROR_MESSAGES: Record<string, string>;
316
207
 
317
- interface RoomMapUnavailableElement extends RoomMapBaseElement {
318
- type: RoomMapElementType.UNAVAILABLE_SPACE;
319
- reason?: string;
320
- }
208
+ declare const BASE_INPUT_CLASSES: string;
209
+ declare const ERROR_INPUT_CLASSES: string;
321
210
 
322
- interface RoomMapZoneElement extends RoomMapBaseElement {
323
- type: RoomMapElementType.ZONE;
324
- zoneName: string;
325
- zoneType: 'vip' | 'general' | 'premium' | 'balcony' | 'custom';
326
- color: string;
327
- capacity?: number;
211
+ interface PhoneCountry {
212
+ name: string;
213
+ isoCode: string;
214
+ dialCode: string;
328
215
  }
329
216
 
330
- type RoomMapCanvasElement = RoomMapSeatElement | RoomMapTableElement | RoomMapZoneElement | RoomMapExitElement | RoomMapStageElement | RoomMapProductionAreaElement | RoomMapUnavailableElement;
331
-
332
- type RoomMapSeatDisplayState = 'normal' | 'accessible' | 'non_existent';
333
-
334
- type ShowType = 'play' | 'musical' | 'concert' | 'dance' | 'opera' | 'comedy' | 'other';
217
+ declare function phoneCountryFlag(isoCode: string): string;
218
+ declare const PHONE_COUNTRIES: PhoneCountry[];
335
219
 
336
220
  interface SelectOption {
337
221
  value: any;
@@ -339,7 +223,7 @@ interface SelectOption {
339
223
  disabled?: boolean;
340
224
  }
341
225
 
342
- interface Admin {
226
+ interface Admin extends Auditable {
343
227
  id: number;
344
228
  username: string;
345
229
  email: string;
@@ -355,16 +239,17 @@ interface Admin {
355
239
  reset_password_expires: Date;
356
240
  email_verified_at: Date;
357
241
  last_login: Date;
358
- created_at: Date;
359
- updated_at: Date;
360
- deleted_at: Date;
361
242
  }
362
243
 
363
244
  interface Auditable {
364
245
  created_at: Date;
365
246
  updated_at: Date;
247
+ deleted_at?: Date | null;
366
248
  is_published?: boolean;
367
249
  published_at?: Date;
250
+ published_by?: number;
251
+ deleted_by?: number;
252
+ deleted_by_admin?: Admin;
368
253
  created_by_admin?: Admin;
369
254
  updated_by_admin?: Admin;
370
255
  published_by_admin?: Admin;
@@ -397,30 +282,21 @@ interface DeleteConfirmationOpen {
397
282
  confirmationText: string;
398
283
  }
399
284
 
400
- interface AdminsResponse {
401
- statusCode: number;
402
- data: {
403
- admins: Admin[];
404
- total: number;
405
- };
406
- message: string;
407
- }
408
-
409
285
  interface Country {
410
- id: string;
286
+ id: number;
411
287
  name: string;
412
288
  iso2: string;
413
289
  }
414
290
 
415
291
  interface State {
416
- id: string;
292
+ id: number;
417
293
  name: string;
418
294
  country_id: number;
419
295
  country?: Country;
420
296
  }
421
297
 
422
298
  interface City {
423
- id: string;
299
+ id: number;
424
300
  name: string;
425
301
  search_text: string | null;
426
302
  state_id: number;
@@ -459,33 +335,48 @@ interface Venue extends Auditable {
459
335
  images: VenueImage[];
460
336
  }
461
337
 
462
- interface HallFloor {
338
+ interface HallFloor extends Auditable {
463
339
  id: number;
464
340
  name: string;
465
341
  level: number;
466
342
  max_capacity: number;
467
343
  description: string;
468
344
  hall_id: number;
469
- created_at: Date;
470
- updated_at: Date;
471
- deleted_at: Date | null;
472
345
  }
473
346
 
474
- interface Hall {
347
+ interface Hall extends Auditable {
475
348
  id: number;
476
349
  name: string;
477
350
  venue_id: number;
478
351
  venue?: Venue;
479
352
  hall_floors?: HallFloor[];
480
- created_at: Date;
481
- updated_at: Date;
482
- deleted_at: Date | null;
483
353
  }
484
354
 
485
- interface CountryResponse {
486
- data: Country;
487
- message: string;
488
- status: string;
355
+ interface BreadcrumbStep {
356
+ label: string;
357
+ href?: string;
358
+ icon?: string;
359
+ }
360
+
361
+ interface CommonFetchAllParams {
362
+ id?: number;
363
+ page?: number;
364
+ limit?: number;
365
+ search?: string;
366
+ sort_by?: string;
367
+ sort_order?: 'ASC' | 'DESC';
368
+ is_published?: boolean;
369
+ ids_in?: number[];
370
+ ids_not_in?: number[];
371
+ }
372
+
373
+ interface SidebarMenuItem {
374
+ labelKey: string;
375
+ icon: string;
376
+ path?: string;
377
+ role?: string[];
378
+ isOpen?: boolean;
379
+ submenu?: SidebarMenuItem[];
489
380
  }
490
381
 
491
382
  interface CountriesResponse {
@@ -497,6 +388,21 @@ interface CountriesResponse {
497
388
  status: string;
498
389
  }
499
390
 
391
+ interface CountryResponse {
392
+ data: Country;
393
+ message: string;
394
+ status: string;
395
+ }
396
+
397
+ interface FetchCountriesParams extends CommonFetchAllParams {
398
+ sort_by?: 'country.id' | 'country.name' | 'country.iso2' | 'country.created_at' | 'country.updated_at';
399
+ }
400
+
401
+ interface FetchStatesParams extends CommonFetchAllParams {
402
+ country_id?: number;
403
+ sort_by?: 'state.id' | 'state.name' | 'state.country_id' | 'state.search_text' | 'state.created_at' | 'state.updated_at';
404
+ }
405
+
500
406
  interface StateResponse {
501
407
  data: State;
502
408
  message: string;
@@ -512,28 +418,40 @@ interface StatesResponse {
512
418
  statusCode: number;
513
419
  }
514
420
 
421
+ interface CitiesResponse {
422
+ data: {
423
+ cities: City[];
424
+ total: number;
425
+ };
426
+ message: string;
427
+ status: string;
428
+ }
429
+
515
430
  interface CityResponse {
516
431
  data: City;
517
432
  message: string;
518
433
  status: string;
519
434
  }
520
435
 
521
- interface CitiesResponse {
436
+ interface FetchCitiesParams extends CommonFetchAllParams {
437
+ state_id?: number;
438
+ sort_by?: 'city.id' | 'city.name' | 'city.state_id' | 'city.search_text' | 'city.created_at' | 'city.updated_at';
439
+ }
440
+
441
+ interface AdminsResponse {
442
+ statusCode: number;
522
443
  data: {
523
- cities: City[];
444
+ admins: Admin[];
524
445
  total: number;
525
446
  };
526
447
  message: string;
527
- status: string;
528
448
  }
529
449
 
530
- interface FetchCitiesParams {
531
- stateId?: number;
532
- page?: number;
533
- search?: string;
450
+ interface FetchAdminsParams extends CommonFetchAllParams {
451
+ sort_by?: 'admin.id' | 'admin.username' | 'admin.email' | 'admin.mobile' | 'admin.first_name' | 'admin.last_name' | 'admin.full_name' | 'admin.principal_role' | 'admin.email_verified_at' | 'admin.last_login' | 'admin.created_at' | 'admin.updated_at';
534
452
  }
535
453
 
536
- interface Customer {
454
+ interface Customer extends Auditable {
537
455
  username: string;
538
456
  email: string;
539
457
  mobile: string;
@@ -564,9 +482,6 @@ interface Customer {
564
482
  membership_expires_at: Date | null;
565
483
  id: number;
566
484
  is_active: boolean;
567
- created_at: Date;
568
- updated_at: Date;
569
- deleted_at: Date | null;
570
485
  }
571
486
 
572
487
  interface CustomerResponse {
@@ -584,128 +499,277 @@ interface CustomersResponse {
584
499
  message: string;
585
500
  }
586
501
 
587
- interface FetchShowsParams {
588
- page?: number;
589
- limit?: number;
590
- search?: string;
591
- date?: string;
502
+ interface FetchCustomersParams extends CommonFetchAllParams {
503
+ first_name?: string;
504
+ last_name?: string;
505
+ email?: string;
506
+ username?: string;
507
+ mobile?: string;
508
+ document_type?: Customer['document_type'];
509
+ document_number?: string;
510
+ address?: string;
511
+ sort_by?: 'customer.id' | 'customer.email' | 'customer.mobile' | 'customer.first_name' | 'customer.last_name' | 'customer.birthday_date' | 'customer.document_type' | 'customer.document_number' | 'customer.address' | 'customer.postal_code' | 'customer.country_id' | 'customer.city_id' | 'customer.state_id' | 'customer.phone' | 'customer.created_at';
592
512
  }
593
513
 
594
- interface ShowImage {
595
- id: number;
596
- path: string;
597
- full_url: string;
598
- original_name: string;
599
- extension: string;
600
- size: number;
601
- mime_type: string;
514
+ declare enum OrderItemType {
515
+ TICKET = "TICKET",
516
+ PRODUCT = "PRODUCT",
517
+ GIFT_BOND = "GIFT_BOND",
518
+ CORPORATE_BOND = "CORPORATE_BOND",
519
+ VIP_RECHARGE = "VIP_RECHARGE",
520
+ SUBSCRIPTION_ACTIVATION = "SUBSCRIPTION_ACTIVATION"
521
+ }
522
+
523
+ declare enum OrderStatus {
524
+ ON_HOLD = "on-hold",
525
+ PENDING_PAYMENT = "pending-payment",
526
+ PROCESSING = "processing",
527
+ COMPLETED = "completed",
528
+ FAILED = "failed",
529
+ CANCELLED = "cancelled",
530
+ REFUNDED = "refunded"
531
+ }
532
+
533
+ declare enum CreatorType {
534
+ ADMIN = "admin",
535
+ CUSTOMER = "customer"
536
+ }
537
+
538
+ declare enum PaymentMethod {
539
+ PAYROLL = "payroll",
540
+ CASH = "cash",
541
+ DATAFONO = "datafono",
542
+ INTERNAL_EXCHANGE = "internal_exchange",
543
+ CLIENT_EXCHANGE = "client_exchange",
544
+ MERCADO_PAGO = "mercado_pago",
545
+ COURTESY = "courtesy"
546
+ }
547
+
548
+ declare enum RoomMapElementType {
549
+ SEAT_BLOCK = "seat_block",
550
+ TABLE = "table",
551
+ ZONE = "zone",
552
+ EXIT = "exit",
553
+ STAGE = "stage",
554
+ PRODUCTION_AREA = "production_area",
555
+ UNAVAILABLE_SPACE = "unavailable_space",
556
+ STAIR = "stair",
557
+ HALLWAY = "hallway"
558
+ }
559
+
560
+ interface RoomMapPosition {
561
+ x: number;
562
+ y: number;
563
+ }
564
+
565
+ interface RoomMapSize {
602
566
  width: number;
603
567
  height: number;
604
- show_id: number;
605
- created_at: Date;
606
568
  }
607
569
 
608
- interface Show extends Auditable {
609
- id: number;
610
- title: string;
611
- slug: string;
612
- description: string;
613
- duration_minutes: number | null;
614
- type_of_costs: string | null;
615
- service_fee: number | null;
616
- show_type: ShowType | null;
617
- pulep: string | null;
618
- minimum_age: number | null;
619
- show_category_id: number | null;
620
- default_room_map_id: number | null;
621
- published_at?: Date;
622
- is_published: boolean;
623
- images: ShowImage[];
624
- terms_and_conditions: string;
625
- performances_quantity?: number;
570
+ interface RoomMapBaseElement {
571
+ id: string;
572
+ type: RoomMapElementType;
573
+ position: RoomMapPosition;
574
+ size: RoomMapSize;
575
+ rotation: number;
576
+ name?: string;
577
+ isLocked: boolean;
578
+ isVisible: boolean;
579
+ zIndex: number;
626
580
  }
627
581
 
628
- interface ShowResponse {
629
- statusCode: number;
630
- data: Show;
631
- message: string;
582
+ interface RoomMapExitElement extends RoomMapBaseElement {
583
+ type: RoomMapElementType.EXIT;
584
+ exitName?: string;
585
+ exitType: 'emergency' | 'regular';
586
+ width: number;
632
587
  }
633
588
 
634
- interface ShowsResponseInterface {
635
- statusCode: number;
636
- data: {
637
- shows: Show[];
638
- total: number;
639
- };
640
- message: string;
589
+ interface RoomMapProductionAreaElement extends RoomMapBaseElement {
590
+ type: RoomMapElementType.PRODUCTION_AREA;
591
+ areaName?: string;
592
+ areaType: 'lighting' | 'sound' | 'backstage' | 'orchestra' | 'custom';
641
593
  }
642
594
 
643
- interface ShowCategory extends Auditable {
595
+ interface RoomMapSeatElement extends RoomMapBaseElement {
596
+ type: RoomMapElementType.SEAT_BLOCK;
597
+ seatNumber?: string;
598
+ isAvailable: boolean;
599
+ priceCategory?: string;
600
+ }
601
+
602
+ declare enum RoomMapElementOrientation {
603
+ TOP = "top",
604
+ RIGHT = "right",
605
+ BOTTOM = "bottom",
606
+ LEFT = "left",
607
+ CENTER = "center"
608
+ }
609
+
610
+ interface RoomMapStageElement extends RoomMapBaseElement {
611
+ type: RoomMapElementType.STAGE;
612
+ stageName?: string;
613
+ orientation: RoomMapElementOrientation;
614
+ isMainStage: boolean;
615
+ }
616
+
617
+ interface RoomMapTableElement extends RoomMapBaseElement {
618
+ type: RoomMapElementType.TABLE;
619
+ tableNumber?: string;
620
+ capacity: number;
621
+ shape: 'round' | 'rectangular' | 'square';
622
+ }
623
+
624
+ interface RoomMapUnavailableElement extends RoomMapBaseElement {
625
+ type: RoomMapElementType.UNAVAILABLE_SPACE;
626
+ reason?: string;
627
+ }
628
+
629
+ interface RoomMapZoneElement extends RoomMapBaseElement {
630
+ type: RoomMapElementType.ZONE;
631
+ zoneName: string;
632
+ zoneType: 'vip' | 'general' | 'premium' | 'balcony' | 'custom';
633
+ color: string;
634
+ capacity?: number;
635
+ }
636
+
637
+ type RoomMapCanvasElement = RoomMapSeatElement | RoomMapTableElement | RoomMapZoneElement | RoomMapExitElement | RoomMapStageElement | RoomMapProductionAreaElement | RoomMapUnavailableElement;
638
+
639
+ type RoomMapSeatDisplayState = 'normal' | 'accessible' | 'non_existent';
640
+
641
+ type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
642
+
643
+ type FeedbackModalType = 'loading' | 'success' | 'info' | 'warning' | 'error';
644
+
645
+ type BadgeSize = 'xs' | 'sm' | 'md' | 'lg';
646
+
647
+ type BadgeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
648
+
649
+ type BreadcrumbTheme = 'light' | 'dark';
650
+
651
+ type TextFontSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
652
+
653
+ interface FeedbackModalElement {
644
654
  id: string;
645
- name: string;
646
- slug: string;
655
+ type: FeedbackModalType;
656
+ title: string;
657
+ isOpen: WritableSignal<boolean>;
658
+ message?: string;
659
+ showHeader?: boolean;
660
+ showCloseButton?: boolean;
661
+ showTitle?: boolean;
662
+ closeModal?: void;
647
663
  }
648
664
 
649
- interface ShowCategoriesResponse {
650
- statusCode: number;
651
- data: {
652
- categories: ShowCategory[];
653
- total: number;
654
- };
655
- message: string;
665
+ declare enum FileType {
666
+ IMAGE = "image",
667
+ PDF = "pdf",
668
+ EXCEL = "excel",
669
+ WORD = "word",
670
+ TEXT = "text",
671
+ DEFAULT = "default"
656
672
  }
657
673
 
658
- interface ShowCategoryResponse {
659
- statusCode: number;
660
- data: ShowCategory;
661
- message: string;
674
+ declare enum CouponApplicability {
675
+ GENERAL = "GENERAL",
676
+ CUSTOMER_EMAIL = "CUSTOMER_EMAIL",
677
+ MEMBERSHIP_TYPE = "MEMBERSHIP_TYPE",
678
+ SHOWS = "SHOWS",
679
+ PERFORMANCES = "PERFORMANCES"
662
680
  }
663
681
 
664
- interface ShowGender extends Auditable {
665
- id: number;
666
- name: string;
667
- slug: string;
682
+ declare enum CouponDiscountType {
683
+ PERCENTAGE = "PERCENTAGE",
684
+ FIXED = "FIXED"
668
685
  }
669
686
 
670
- interface ShowGenderResponse {
671
- statusCode: number;
672
- data: ShowGender;
673
- message: string;
687
+ declare enum CouponStatus {
688
+ ACTIVE = "ACTIVE",
689
+ INACTIVE = "INACTIVE",
690
+ EXPIRED = "EXPIRED",
691
+ CONSUMED = "CONSUMED"
674
692
  }
675
693
 
676
- interface ShowGendersResponse {
677
- statusCode: number;
678
- data: {
679
- genders: ShowGender[];
680
- total: number;
681
- };
682
- message: string;
694
+ declare enum CorporateBondStatus {
695
+ ACTIVE = "ACTIVE",
696
+ INACTIVE = "INACTIVE",
697
+ PENDING = "PENDING",
698
+ PAYMENT_FAILED = "PAYMENT_FAILED",
699
+ EXPIRED = "EXPIRED",
700
+ CONSUMED = "CONSUMED"
683
701
  }
684
702
 
685
- interface PriceZone {
686
- id: number;
687
- name: string;
688
- color: string;
689
- normal_price: number | null;
690
- is_active: boolean;
691
- elements: any[];
692
- room_map_id: number | null;
693
- created_at: Date;
694
- updated_at: Date;
695
- created_by: number;
696
- updated_by: number;
703
+ declare enum PerformanceStatus {
704
+ SCHEDULED = "scheduled",
705
+ OPEN = "open",
706
+ CLOSED = "closed",
707
+ CANCELLED = "cancelled",
708
+ COMPLETED = "completed",
709
+ POSTPONED = "postponed"
710
+ }
711
+
712
+ declare enum PerformanceTicketStatus {
713
+ AVAILABLE = "available",
714
+ RESERVED = "reserved",
715
+ SOLD = "sold",
716
+ BLOCKED = "blocked"
717
+ }
718
+
719
+ /**
720
+ * How a Performance is exposed for booking/browsing.
721
+ * Mirrors `PerformanceVisibilityType` in tickera-backend.
722
+ */
723
+ declare enum PerformanceVisibilityType {
724
+ PUBLIC = "public",
725
+ PRIVATE = "private",
726
+ PEDAGOGIC = "pedagogic"
727
+ }
728
+
729
+ declare enum GiftBondStatus {
730
+ ACTIVE = "ACTIVE",
731
+ INACTIVE = "INACTIVE"
732
+ }
733
+
734
+ declare enum GiftBondPurchaseStatus {
735
+ AVAILABLE = "AVAILABLE",
736
+ REDEEMED = "REDEEMED",
737
+ EXPIRED = "EXPIRED",
738
+ CANCELLED = "CANCELLED"
739
+ }
740
+
741
+ declare enum TransactionStatus {
742
+ PENDING = "PENDING",
743
+ APPROVED = "APPROVED",
744
+ REJECTED = "REJECTED",
745
+ ERROR = "ERROR"
697
746
  }
698
747
 
699
- interface FetchProductCategoriesParams {
748
+ declare enum VipCardStatus {
749
+ ACTIVE = "ACTIVE",
750
+ INACTIVE = "INACTIVE",
751
+ EXPIRED = "EXPIRED"
752
+ }
753
+
754
+ declare enum VipTransactionType {
755
+ INITIAL_RECHARGE = "INITIAL_RECHARGE",
756
+ RECHARGE = "RECHARGE",
757
+ PURCHASE_PAYMENT = "PURCHASE_PAYMENT"
758
+ }
759
+
760
+ declare enum MembershipStatus {
761
+ ACTIVE = "ACTIVE",
762
+ INACTIVE = "INACTIVE"
763
+ }
764
+
765
+ interface FetchProductCategoriesParams extends CommonFetchAllParams {
700
766
  name?: string;
701
767
  slug?: string;
702
- page?: number;
703
- limit?: number;
704
- search?: string;
768
+ sort_by?: 'category.id' | 'category.name' | 'category.slug' | 'category.created_at';
705
769
  }
706
770
 
707
771
  interface ProductCategory extends Auditable {
708
- id: string;
772
+ id: number;
709
773
  name: string;
710
774
  slug: string;
711
775
  }
@@ -725,16 +789,14 @@ interface ProductCategoryResponse {
725
789
  message: string;
726
790
  }
727
791
 
728
- interface FetchProductTagsParams {
792
+ interface FetchProductTagsParams extends CommonFetchAllParams {
729
793
  name?: string;
730
794
  slug?: string;
731
- page?: number;
732
- limit?: number;
733
- search?: string;
795
+ sort_by?: 'tag.id' | 'tag.name' | 'tag.slug' | 'tag.created_at';
734
796
  }
735
797
 
736
798
  interface ProductTag extends Auditable {
737
- id: string;
799
+ id: number;
738
800
  name: string;
739
801
  slug: string;
740
802
  }
@@ -754,16 +816,14 @@ interface ProductTagsResponse {
754
816
  message: string;
755
817
  }
756
818
 
757
- interface FetchProductTypesParams {
819
+ interface FetchProductTypesParams extends CommonFetchAllParams {
758
820
  name?: string;
759
821
  slug?: string;
760
- page?: number;
761
- limit?: number;
762
- search?: string;
822
+ sort_by?: 'type.id' | 'type.name' | 'type.slug' | 'type.created_at';
763
823
  }
764
824
 
765
825
  interface ProductType extends Auditable {
766
- id: string;
826
+ id: number;
767
827
  name: string;
768
828
  slug: string;
769
829
  }
@@ -808,7 +868,6 @@ interface Product extends Auditable {
808
868
  slug: string;
809
869
  sku?: string;
810
870
  is_limited_edition: boolean;
811
- is_active: boolean;
812
871
  deleted_at: Date | null;
813
872
  categories?: ProductCategory[];
814
873
  tags?: ProductTag[];
@@ -816,6 +875,31 @@ interface Product extends Auditable {
816
875
  images?: ProductImage[];
817
876
  }
818
877
 
878
+ interface ShowImage {
879
+ id: number;
880
+ path: string;
881
+ full_url: string;
882
+ original_name: string;
883
+ extension: string;
884
+ size: number;
885
+ mime_type: string;
886
+ width: number;
887
+ height: number;
888
+ show_id: number;
889
+ created_at: Date;
890
+ }
891
+
892
+ interface PriceZone extends Auditable {
893
+ id: number;
894
+ name: string;
895
+ color: string;
896
+ normal_price: number | null;
897
+ is_active: boolean;
898
+ elements: any[];
899
+ room_map_id: number | null;
900
+ room_map?: RoomMap;
901
+ }
902
+
819
903
  interface NumerationConfig {
820
904
  start_row_letter: string;
821
905
  row_order: 'TOP_TO_BOTTOM' | 'BOTTOM_TO_TOP';
@@ -851,7 +935,7 @@ interface RoomMapElementTemplate {
851
935
  price_zone?: PriceZone;
852
936
  }
853
937
 
854
- interface RoomMap {
938
+ interface RoomMap extends Auditable {
855
939
  id: number;
856
940
  name: string;
857
941
  canvas_settings: {
@@ -867,8 +951,6 @@ interface RoomMap {
867
951
  related_product_ids: number[];
868
952
  products?: Product[];
869
953
  venue_name?: string;
870
- created_at: Date;
871
- updated_at: Date;
872
954
  }
873
955
 
874
956
  interface RoomMapCanvasConfiguration {
@@ -910,18 +992,153 @@ interface ElementPropertiesTab {
910
992
  elements_access: string[];
911
993
  }
912
994
 
913
- interface Performance {
995
+ interface Performance extends Auditable {
914
996
  id: number;
915
997
  start_time: Date | string;
916
998
  end_time: Date | string;
917
999
  status: PerformanceStatus;
918
1000
  published: boolean;
1001
+ visibility_type?: PerformanceVisibilityType;
1002
+ private_audience_label?: string | null;
1003
+ pedagogic_ticket_price?: number | null;
919
1004
  show_id: number;
920
1005
  show?: Show;
921
1006
  room_map: RoomMap;
922
1007
  room_map_id: number;
923
- created_at: Date;
924
- updated_at: Date;
1008
+ performance_tickets?: PerformanceTicket[];
1009
+ can_delete?: boolean;
1010
+ can_cancel?: boolean;
1011
+ can_modify?: boolean;
1012
+ can_reserve?: boolean;
1013
+ }
1014
+
1015
+ interface FetchShowCategoriesParams extends CommonFetchAllParams {
1016
+ name?: string;
1017
+ slug?: string;
1018
+ sort_by?: 'category.id' | 'category.name' | 'category.slug' | 'category.created_at';
1019
+ }
1020
+
1021
+ interface ShowCategory extends Auditable {
1022
+ id: number;
1023
+ name: string;
1024
+ slug: string;
1025
+ }
1026
+
1027
+ interface ShowCategoriesResponse {
1028
+ statusCode: number;
1029
+ data: {
1030
+ categories: ShowCategory[];
1031
+ total: number;
1032
+ };
1033
+ message: string;
1034
+ }
1035
+
1036
+ interface ShowCategoryResponse {
1037
+ statusCode: number;
1038
+ data: ShowCategory;
1039
+ message: string;
1040
+ }
1041
+
1042
+ interface FetchShowGendersParams extends CommonFetchAllParams {
1043
+ name?: string;
1044
+ slug?: string;
1045
+ sort_by?: 'gender.id' | 'gender.name' | 'gender.slug' | 'gender.created_at';
1046
+ }
1047
+
1048
+ interface ShowGender extends Auditable {
1049
+ id: number;
1050
+ name: string;
1051
+ slug: string;
1052
+ }
1053
+
1054
+ interface ShowGenderResponse {
1055
+ statusCode: number;
1056
+ data: ShowGender;
1057
+ message: string;
1058
+ }
1059
+
1060
+ interface ShowGendersResponse {
1061
+ statusCode: number;
1062
+ data: {
1063
+ genders: ShowGender[];
1064
+ total: number;
1065
+ };
1066
+ message: string;
1067
+ }
1068
+
1069
+ interface FetchShowTypesParams extends CommonFetchAllParams {
1070
+ name?: string;
1071
+ slug?: string;
1072
+ sort_by?: 'type.id' | 'type.name' | 'type.slug' | 'type.created_at';
1073
+ }
1074
+
1075
+ interface ShowType extends Auditable {
1076
+ id: number;
1077
+ name: string;
1078
+ slug: string;
1079
+ }
1080
+
1081
+ interface ShowTypesResponse {
1082
+ statusCode: number;
1083
+ data: {
1084
+ types: ShowType[];
1085
+ total: number;
1086
+ };
1087
+ message: string;
1088
+ }
1089
+
1090
+ interface ShowTypeResponse {
1091
+ statusCode: number;
1092
+ data: ShowType;
1093
+ message: string;
1094
+ }
1095
+
1096
+ interface Show extends Auditable {
1097
+ id: number;
1098
+ title: string;
1099
+ slug: string;
1100
+ description: string;
1101
+ duration_minutes: number | null;
1102
+ type_of_costs: string | null;
1103
+ service_fee: number | null;
1104
+ show_type_id?: number | null;
1105
+ show_type?: ShowType | null;
1106
+ pulep: string | null;
1107
+ minimum_age: number | null;
1108
+ show_gender?: ShowGender | null;
1109
+ show_gender_id: number | null;
1110
+ show_category?: ShowCategory | null;
1111
+ show_category_id: number | null;
1112
+ default_room_map?: RoomMap | null;
1113
+ default_room_map_id: number | null;
1114
+ is_published: boolean;
1115
+ images: ShowImage[];
1116
+ terms_and_conditions: string | null;
1117
+ performances_quantity?: number;
1118
+ performances?: Performance[];
1119
+ next_performance?: Performance;
1120
+ days_of_week?: number[];
1121
+ unique_start_times?: string[];
1122
+ }
1123
+
1124
+ interface FindAllPerformancesParams {
1125
+ roomMapId?: number;
1126
+ showId?: number;
1127
+ hallId?: number;
1128
+ page?: number;
1129
+ search?: string;
1130
+ limit?: number;
1131
+ }
1132
+
1133
+ interface PerformanceBookingDataResponse {
1134
+ statusCode: number;
1135
+ data: {
1136
+ performance: Performance;
1137
+ room_map: RoomMap;
1138
+ show: Show;
1139
+ tickets: PerformanceTicket[];
1140
+ };
1141
+ message: string;
925
1142
  }
926
1143
 
927
1144
  interface PerformanceResponse {
@@ -930,6 +1147,18 @@ interface PerformanceResponse {
930
1147
  message: string;
931
1148
  }
932
1149
 
1150
+ interface PerformanceAvailableDay {
1151
+ date: string;
1152
+ count: number;
1153
+ }
1154
+ interface PerformancesAvailableDaysResponse {
1155
+ statusCode: number;
1156
+ data: {
1157
+ days: PerformanceAvailableDay[];
1158
+ };
1159
+ message: string;
1160
+ }
1161
+
933
1162
  interface PerformancesResponseInterface {
934
1163
  statusCode: number;
935
1164
  data: {
@@ -939,7 +1168,26 @@ interface PerformancesResponseInterface {
939
1168
  message: string;
940
1169
  }
941
1170
 
942
- interface OrderItem {
1171
+ interface PedagogicZoneAvailability {
1172
+ price_zone_id: number | null;
1173
+ price_zone_name: string | null;
1174
+ available: number;
1175
+ occupied: number;
1176
+ }
1177
+ interface PedagogicAvailabilityResponse {
1178
+ data: {
1179
+ zones: PedagogicZoneAvailability[];
1180
+ total_available: number;
1181
+ total_occupied: number;
1182
+ };
1183
+ }
1184
+
1185
+ interface CreatePedagogicOrderPayload {
1186
+ quantity: number;
1187
+ courtesy_beneficiary: string;
1188
+ }
1189
+
1190
+ interface OrderItem extends Auditable {
943
1191
  id: number;
944
1192
  order: Order;
945
1193
  item_type: OrderItemType;
@@ -948,14 +1196,11 @@ interface OrderItem {
948
1196
  quantity: number;
949
1197
  unit_price: number;
950
1198
  normal_price: number;
951
- discounted_price: number;
1199
+ discounted_price: number | null;
952
1200
  ticket_id?: number;
953
1201
  ticket_uuid?: string;
1202
+ ticket?: PerformanceTicket;
954
1203
  item: Show | Product;
955
- created_at: Date;
956
- updated_at: Date;
957
- created_by: number;
958
- updated_by: number;
959
1204
  }
960
1205
 
961
1206
  interface Coupon extends Auditable {
@@ -982,7 +1227,7 @@ interface Coupon extends Auditable {
982
1227
  customers?: Customer[];
983
1228
  }
984
1229
 
985
- interface CorporateBond {
1230
+ interface CorporateBond extends Auditable {
986
1231
  id: number;
987
1232
  name: string;
988
1233
  description?: string;
@@ -992,11 +1237,13 @@ interface CorporateBond {
992
1237
  quantity: number;
993
1238
  status: CorporateBondStatus;
994
1239
  value: number;
1240
+ purchase_value: number;
1241
+ buyer_customer_id: number | null;
1242
+ buyer: Customer | null;
1243
+ order_id: number | null;
1244
+ order: Order | null;
1245
+ payment_method?: PaymentMethod;
995
1246
  codes: CorporateBondCode[];
996
- created_at: Date;
997
- updated_at: Date;
998
- created_by: number;
999
- updated_by: number;
1000
1247
  }
1001
1248
 
1002
1249
  interface CorporateBondCode {
@@ -1005,6 +1252,7 @@ interface CorporateBondCode {
1005
1252
  corporate_bond_id: number;
1006
1253
  code: string;
1007
1254
  is_used: boolean;
1255
+ status: CorporateBondStatus;
1008
1256
  used_at: Date | null;
1009
1257
  created_at: Date;
1010
1258
  }
@@ -1015,49 +1263,205 @@ interface CorporateBondResponse {
1015
1263
  message: string;
1016
1264
  }
1017
1265
 
1018
- interface ValidateCorporateBondResponse {
1266
+ interface ValidateCorporateBondResponse {
1267
+ data: {
1268
+ valid: boolean;
1269
+ message: string;
1270
+ code: string;
1271
+ bond?: CorporateBond;
1272
+ };
1273
+ message: string;
1274
+ statusCode: number;
1275
+ }
1276
+
1277
+ interface GiftBondImage {
1278
+ id: number;
1279
+ path: string;
1280
+ full_url: string;
1281
+ original_name: string;
1282
+ extension: string;
1283
+ size: number;
1284
+ mime_type: string;
1285
+ width: number;
1286
+ height: number;
1287
+ is_featured: boolean;
1288
+ gift_bond_id: number;
1289
+ gift_bond: GiftBond;
1290
+ created_at: Date;
1291
+ }
1292
+
1293
+ interface GiftBond extends Auditable {
1294
+ id: number;
1295
+ name: string;
1296
+ description?: string;
1297
+ slug?: string;
1298
+ status: GiftBondStatus;
1299
+ value: number;
1300
+ duration_days: number;
1301
+ page_content?: string;
1302
+ purchases_total?: number;
1303
+ purchases_redeemed?: number;
1304
+ images?: GiftBondImage[];
1305
+ }
1306
+
1307
+ interface GiftBondResponse {
1308
+ statusCode: number;
1309
+ data: GiftBond;
1310
+ message: string;
1311
+ }
1312
+
1313
+ interface GiftBondsResponse {
1314
+ statusCode: number;
1315
+ data: {
1316
+ gift_bonds: GiftBond[];
1317
+ total: number;
1318
+ };
1319
+ message: string;
1320
+ }
1321
+
1322
+ interface GiftBondPurchase extends Auditable {
1323
+ id: number;
1324
+ code: string;
1325
+ original_value: number;
1326
+ used_value: number | null;
1327
+ lost_value: number | null;
1328
+ beneficiary_email: string;
1329
+ beneficiary: Customer | null;
1330
+ personalized_message: string | null;
1331
+ status: GiftBondPurchaseStatus;
1332
+ purchased_at: string;
1333
+ expires_at: string;
1334
+ redeemed_at: string | null;
1335
+ gift_bond?: GiftBond;
1336
+ gift_bond_id: number;
1337
+ buyer_customer_id: number;
1338
+ buyer: Customer;
1339
+ order: Order | null;
1340
+ order_id: number;
1341
+ redemption_order_id: number | null;
1342
+ redemption_order: Order | null;
1343
+ }
1344
+
1345
+ interface ValidateGiftBondResponse {
1019
1346
  data: {
1020
1347
  valid: boolean;
1021
1348
  message: string;
1022
1349
  code: string;
1023
- bond?: CorporateBond;
1350
+ bond?: GiftBondPurchase;
1024
1351
  };
1352
+ statusCode: number;
1353
+ message: string;
1354
+ }
1355
+
1356
+ interface GiftBondPurchaseResponse {
1357
+ statusCode: number;
1358
+ data: GiftBondPurchase;
1025
1359
  message: string;
1360
+ }
1361
+
1362
+ interface GiftBondPurchasesResponse {
1026
1363
  statusCode: number;
1364
+ data: {
1365
+ items: GiftBondPurchase[];
1366
+ total: number;
1367
+ };
1368
+ message: string;
1369
+ }
1370
+
1371
+ interface Transaction extends Auditable {
1372
+ id: number;
1373
+ status: TransactionStatus;
1374
+ amount: number;
1375
+ currency: string;
1376
+ payment_gateway: string;
1377
+ gateway_transaction_id: string;
1378
+ gateway_response: any;
1379
+ order: Order;
1380
+ }
1381
+
1382
+ interface OrderBillingInfo {
1383
+ first_name: string;
1384
+ last_name: string;
1385
+ email: string;
1386
+ mobile: string;
1387
+ document_type: string;
1388
+ document_number: string;
1389
+ address: string;
1390
+ city_id: number;
1391
+ postal_code?: string;
1392
+ address_notes?: string;
1393
+ payment_method: PaymentMethod;
1394
+ terms_accepted: boolean;
1395
+ data_processing_accepted: boolean;
1396
+ comments?: string;
1397
+ products?: Array<{
1398
+ id: number;
1399
+ quantity: number;
1400
+ }>;
1401
+ }
1402
+
1403
+ interface OrderShowSnapshot {
1404
+ id: number;
1405
+ title: string;
1406
+ description: string | null;
1407
+ service_fee: number | null;
1408
+ }
1409
+
1410
+ interface OrderPerformanceSnapshot {
1411
+ id: number;
1412
+ start_time: Performance['start_time'];
1413
+ end_time: Performance['end_time'];
1414
+ published: boolean;
1415
+ status: PerformanceStatus;
1027
1416
  }
1028
1417
 
1029
- interface Order {
1418
+ interface Order extends Auditable {
1030
1419
  id: number;
1031
1420
  uuid: string;
1032
- customer: Customer;
1421
+ customer_id: number | null;
1422
+ customer: Customer | null;
1033
1423
  customer_name?: string;
1034
1424
  customer_email?: string;
1035
1425
  order_items: OrderItem[];
1036
1426
  order_items_quantity?: number;
1037
- discount_amount: number;
1427
+ transactions: Transaction[];
1428
+ sub_total: number;
1429
+ discount_amount: number | null;
1038
1430
  total: number;
1431
+ sub_total_discounted: number | null;
1039
1432
  total_discounted: number;
1040
- sub_total: number;
1041
- sub_total_discounted: number;
1042
- service_fee: number;
1043
- service_fee_discounted: number;
1044
- coupon: Coupon;
1045
- coupon_snapshot: Record<string, any>;
1046
- corporate_bond_code: CorporateBondCode;
1047
- corporate_bond_code_snapshot: Record<string, any>;
1433
+ service_fee: number | null;
1434
+ service_fee_discounted: number | null;
1435
+ coupon: Coupon | null;
1436
+ coupon_snapshot: Record<string, any> | null;
1048
1437
  status: OrderStatus;
1049
- show_snapshot: Record<string, any>;
1050
- performance_snapshot: Record<string, any>;
1051
- created_at: Date;
1052
- updated_at: Date;
1053
- payment_method: string;
1438
+ show_snapshot: OrderShowSnapshot | null;
1439
+ performance_snapshot: OrderPerformanceSnapshot | null;
1440
+ is_courtesy: boolean;
1441
+ courtesy_beneficiary: string | null;
1442
+ performance_visibility_snapshot: string | null;
1443
+ payment_method: PaymentMethod | null;
1054
1444
  terms_accepted: boolean;
1055
1445
  data_processing_accepted: boolean;
1056
- billing_info: Partial<Customer>;
1057
- comments: string;
1058
- address_notes: string;
1446
+ billing_info: OrderBillingInfo | null;
1447
+ corporate_bond_code_snapshot: Record<string, any> | null;
1448
+ gift_bond_snapshot: Record<string, any> | null;
1449
+ corporate_bond_code: CorporateBondCode | null;
1450
+ corporate_bond_code_id: number | null;
1451
+ gift_bond: GiftBond | null;
1452
+ gift_bond_id: number | null;
1453
+ vip_snapshot: Record<string, any> | null;
1454
+ vip_card_id: number | null;
1455
+ subscription_snapshot: Record<string, any> | null;
1456
+ subscription_id: number | null;
1457
+ subscription_redeemed_tickets_count?: number | null;
1458
+ comments: string | null;
1459
+ address_notes: string | null;
1460
+ mercado_pago_preference_id: string;
1059
1461
  created_by: number;
1462
+ created_by_type: CreatorType;
1060
1463
  updated_by: number;
1464
+ updated_by_type: CreatorType;
1061
1465
  }
1062
1466
 
1063
1467
  interface OrderResponse {
@@ -1075,7 +1479,15 @@ interface OrdersResponse {
1075
1479
  message: string;
1076
1480
  }
1077
1481
 
1078
- interface PerformanceTicket {
1482
+ interface MercadoPagoPreference {
1483
+ data: {
1484
+ id: string;
1485
+ init_point: string;
1486
+ sandbox_init_point: string;
1487
+ };
1488
+ }
1489
+
1490
+ interface PerformanceTicket extends Auditable {
1079
1491
  id: number;
1080
1492
  uuid: string;
1081
1493
  is_accessible: boolean;
@@ -1089,35 +1501,182 @@ interface PerformanceTicket {
1089
1501
  presale_price: number | null;
1090
1502
  status: PerformanceTicketStatus;
1091
1503
  reserved_until: Date | null;
1504
+ reserved_by_type: CreatorType | null;
1505
+ reserved_by: number | null;
1506
+ reserved_by_admin: Admin | null;
1507
+ reserved_by_customer: number | null;
1508
+ reserved_customer: Customer | null;
1509
+ order: Order | null;
1092
1510
  order_id: number | null;
1093
1511
  customer_id: number | null;
1094
1512
  checked_in: boolean;
1095
1513
  checked_in_at: Date | null;
1514
+ checked_in_by: number | null;
1515
+ checked_in_by_admin: Admin | null;
1096
1516
  order_items: OrderItem[];
1097
1517
  element_qty?: number;
1098
- created_at: Date;
1099
- updated_at: Date;
1518
+ blocked_at: Date | null;
1519
+ blocked_by: number | null;
1520
+ blocked_by_admin: Admin | null;
1100
1521
  }
1101
1522
 
1102
- interface PerformanceBookingDataResponse {
1103
- statusCode: number;
1104
- data: {
1105
- performance: Performance;
1106
- room_map: RoomMap;
1107
- show: Show;
1108
- tickets: PerformanceTicket[];
1523
+ interface TicketMapSeatPosition {
1524
+ rowIndex: number;
1525
+ colIndex: number;
1526
+ seatLabel: string;
1527
+ }
1528
+
1529
+ interface TicketMapTableChairPosition {
1530
+ index: number;
1531
+ angle: number;
1532
+ x: number;
1533
+ y: number;
1534
+ }
1535
+
1536
+ interface ElementRenderData {
1537
+ elementId: number;
1538
+ hallFloorId: number | null;
1539
+ priceZoneId: number | null;
1540
+ type: RoomMapElementType;
1541
+ shapeConfig: Record<string, any>;
1542
+ tickets: PerformanceTicket[];
1543
+ ticketByNumeration: Map<string, PerformanceTicket>;
1544
+ elementName: string;
1545
+ seatPositions?: TicketMapSeatPosition[][];
1546
+ chairPositions?: TicketMapTableChairPosition[];
1547
+ zoneCapacity?: number;
1548
+ }
1549
+
1550
+ interface TicketMapTooltipData {
1551
+ x: number;
1552
+ y: number;
1553
+ elementName: string;
1554
+ seatLabel: string | null;
1555
+ price: number;
1556
+ status: PerformanceTicketStatus;
1557
+ statusLabel: string;
1558
+ statusColor: string;
1559
+ isSelected: boolean;
1560
+ ticketId: number;
1561
+ }
1562
+
1563
+ interface TicketMapZoneQuantityState {
1564
+ elementId: number;
1565
+ selectedCount: number;
1566
+ maxCapacity: number;
1567
+ }
1568
+
1569
+ interface ReservePerformanceDto {
1570
+ ticket_ids: number[];
1571
+ products?: {
1572
+ id: number;
1573
+ quantity: number;
1574
+ }[];
1575
+ coupon_code?: string;
1576
+ gift_bond_code?: string;
1577
+ corporate_bond_code?: string;
1578
+ payment_method?: string;
1579
+ billing?: {
1580
+ first_name: string;
1581
+ last_name: string;
1582
+ email: string;
1583
+ mobile: string;
1584
+ document_type: string;
1585
+ document_number: string;
1586
+ address: string;
1587
+ city_id: number;
1588
+ postal_code?: string;
1589
+ address_notes?: string;
1590
+ terms_accepted: boolean;
1591
+ data_processing_accepted: boolean;
1592
+ comments?: string;
1109
1593
  };
1110
- message: string;
1111
1594
  }
1112
1595
 
1113
- interface PerformanceAvailableDay {
1114
- date: string;
1115
- count: number;
1596
+ interface TicketMapZoomConfig {
1597
+ minZoom: number;
1598
+ maxZoom: number;
1599
+ zoomStep: number;
1600
+ scaleBy: number;
1116
1601
  }
1117
- interface PerformancesAvailableDaysResponse {
1602
+
1603
+ interface HallFloorOption {
1604
+ id: number | null;
1605
+ name: string;
1606
+ }
1607
+
1608
+ declare enum SelectedDiscountCardType {
1609
+ COUPON = "COUPON",
1610
+ CORPORATE_BOND = "CORPORATE_BOND",
1611
+ GIFT_BOND = "GIFT_BOND",
1612
+ VIP = "VIP",
1613
+ SUBSCRIPTION = "SUBSCRIPTION"
1614
+ }
1615
+
1616
+ interface SelectedDiscountCard {
1617
+ name: string;
1618
+ type: SelectedDiscountCardType;
1619
+ value: number;
1620
+ discountType: 'percentage' | 'fixed';
1621
+ /**
1622
+ * Si el descuento seleccionado exonera la tarifa de servicio (Tarjeta
1623
+ * VIP o Abono, según su `service_fee_exempt`).
1624
+ */
1625
+ serviceFeeExempt?: boolean;
1626
+ }
1627
+
1628
+ /** Forma compacta de un ticket recibida por SSE (ver
1629
+ * SeatAvailabilitySseService) — sin relaciones, solo lo necesario para
1630
+ * repintar el mapa y validar disponibilidad en el cliente. */
1631
+ interface SeatStatusUpdate {
1632
+ id: number;
1633
+ status: PerformanceTicketStatus;
1634
+ room_map_element_id: number;
1635
+ reserved_until: Date | null;
1636
+ }
1637
+ type SeatEventMessage = {
1638
+ type: 'snapshot';
1639
+ performance_id: number;
1640
+ tickets: SeatStatusUpdate[];
1641
+ ts: number;
1642
+ } | {
1643
+ type: 'heartbeat';
1644
+ ts: number;
1645
+ };
1646
+
1647
+ interface AdmissionStatus {
1648
+ active: boolean;
1649
+ position: number | null;
1650
+ }
1651
+ interface AdmissionJoinResponse extends AdmissionStatus {
1652
+ ticket: string;
1653
+ expires_in: number;
1654
+ }
1655
+ type AdmissionEventMessage = ({
1656
+ type: 'status';
1657
+ } & AdmissionStatus & {
1658
+ ts: number;
1659
+ }) | {
1660
+ type: 'heartbeat';
1661
+ ts: number;
1662
+ };
1663
+
1664
+ interface FetchShowsParams extends CommonFetchAllParams {
1665
+ date?: string;
1666
+ sort_by?: 'show.id' | 'show.created_at' | 'show.title' | 'show.slug' | 'show.type_of_costs' | 'show.pulep' | 'show_category.name' | 'show_gender.name';
1667
+ }
1668
+
1669
+ interface ShowResponse {
1670
+ statusCode: number;
1671
+ data: Show;
1672
+ message: string;
1673
+ }
1674
+
1675
+ interface ShowsResponseInterface {
1118
1676
  statusCode: number;
1119
1677
  data: {
1120
- days: PerformanceAvailableDay[];
1678
+ shows: Show[];
1679
+ total: number;
1121
1680
  };
1122
1681
  message: string;
1123
1682
  }
@@ -1155,6 +1714,8 @@ interface DailyPerformanceItem {
1155
1714
  venue: DailyPerformanceVenue;
1156
1715
  price_zones: DailyPerformancePriceZone[];
1157
1716
  zone_price_cheapest: number | null;
1717
+ visibility_type: PerformanceVisibilityType;
1718
+ private_audience_label: string | null;
1158
1719
  }
1159
1720
 
1160
1721
  interface DailyPerformancesResponse {
@@ -1174,14 +1735,26 @@ interface FetchDailyPerformancesParams {
1174
1735
  limit?: number;
1175
1736
  }
1176
1737
 
1738
+ interface FetchProductsParams extends CommonFetchAllParams {
1739
+ name?: string;
1740
+ category_id?: number;
1741
+ tag_id?: number;
1742
+ type_id?: number;
1743
+ min_price?: number;
1744
+ max_price?: number;
1745
+ min_stock?: number;
1746
+ max_stock?: number;
1747
+ sort_by?: 'product.id' | 'product.name' | 'product.price' | 'product.stock_quantity' | 'product.slug' | 'product.sku' | 'product.created_at' | 'category.name' | 'tag.name' | 'type.name';
1748
+ }
1749
+
1177
1750
  interface ProductResponse {
1178
1751
  statusCode: number;
1179
1752
  data: Product;
1180
1753
  message: string;
1181
1754
  }
1182
1755
 
1183
- interface ProductTaxonomy {
1184
- id: string;
1756
+ interface ProductTaxonomy extends Auditable {
1757
+ id: number;
1185
1758
  name: string;
1186
1759
  slug: string;
1187
1760
  selected?: boolean;
@@ -1221,51 +1794,110 @@ interface PriceZonesResponseInterface {
1221
1794
  }
1222
1795
 
1223
1796
  interface FindAllPriceZoneParams {
1224
- roomMapId?: number;
1797
+ room_map_id?: number;
1798
+ show_ids?: number[];
1225
1799
  page?: number;
1226
1800
  search?: string;
1227
1801
  limit?: number;
1228
1802
  }
1229
1803
 
1230
- interface GiftBond {
1804
+ interface CustomerBenefitApplicableShow {
1805
+ id: number;
1806
+ title: string;
1807
+ }
1808
+
1809
+ interface CustomerBenefitVenueChain {
1810
+ price_zone_id: number;
1811
+ price_zone_name: string;
1812
+ room_map_id: number | null;
1813
+ room_map_name: string | null;
1814
+ hall_id: number | null;
1815
+ hall_name: string | null;
1816
+ venue_id: number | null;
1817
+ venue_name: string | null;
1818
+ }
1819
+
1820
+ interface CustomerBenefitSubscription {
1231
1821
  id: number;
1232
1822
  uuid: string;
1823
+ shows_count: number;
1824
+ shows_redeemed: number;
1825
+ shows_remaining: number;
1826
+ valid_until: string;
1827
+ discount_percentage: number | null;
1828
+ service_fee_exempt: boolean;
1829
+ venue: CustomerBenefitVenueChain;
1830
+ applies_to_all_shows: boolean;
1831
+ applicable_shows: CustomerBenefitApplicableShow[];
1832
+ }
1833
+
1834
+ interface VipCategorySnapshot {
1835
+ membership_id: number;
1233
1836
  name: string;
1234
- description?: string;
1235
- status: GiftBondStatus;
1236
- value: number;
1837
+ discount_percentage: number;
1838
+ service_fee_exempt: boolean;
1839
+ applicable_show_ids: number[] | null;
1840
+ excluded_show_ids: number[] | null;
1841
+ duration_days: number;
1842
+ }
1843
+
1844
+ interface VipCard extends Auditable {
1845
+ id: number;
1846
+ uuid: string;
1237
1847
  customer: Customer;
1238
1848
  customer_id: number;
1239
- created_at: Date;
1240
- updated_at: Date;
1241
- created_by: number;
1242
- updated_by: number;
1849
+ membership: {
1850
+ id: number;
1851
+ name: string;
1852
+ } | null;
1853
+ membership_id: number;
1854
+ category_snapshot: VipCategorySnapshot;
1855
+ balance: number;
1856
+ status: VipCardStatus;
1857
+ activated_at: string | null;
1858
+ last_activity_at: string | null;
1859
+ expires_at: string | null;
1860
+ last_low_balance_alert_at: string | null;
1861
+ last_expiry_alert_at: string | null;
1862
+ }
1863
+
1864
+ interface VipTransaction {
1865
+ id: number;
1866
+ uuid: string;
1867
+ vip_card_id: number;
1868
+ type: VipTransactionType;
1869
+ amount: number;
1870
+ balance_before: number;
1871
+ balance_after: number;
1872
+ order: Order | null;
1873
+ order_id: number | null;
1874
+ description: string | null;
1875
+ created_at: string;
1243
1876
  }
1244
1877
 
1245
- interface GiftBondResponse {
1246
- statusCode: number;
1247
- data: GiftBond;
1248
- message: string;
1878
+ interface VipCardResponse {
1879
+ data: VipCard;
1249
1880
  }
1250
-
1251
- interface GiftBondsResponse {
1252
- statusCode: number;
1881
+ interface VipCardsResponse {
1253
1882
  data: {
1254
- gift_bonds: GiftBond[];
1883
+ vip_cards: VipCard[];
1255
1884
  total: number;
1256
1885
  };
1257
- message: string;
1258
1886
  }
1259
-
1260
- interface ValidateGiftBondResponse {
1887
+ interface VipTransactionsResponse {
1261
1888
  data: {
1262
- valid: boolean;
1263
- message: string;
1264
- code: string;
1265
- bond?: GiftBond;
1889
+ transactions: VipTransaction[];
1890
+ total: number;
1266
1891
  };
1267
- statusCode: number;
1268
- message: string;
1892
+ }
1893
+ interface VipOrderResponse {
1894
+ data: Order;
1895
+ }
1896
+
1897
+ interface CustomerBenefits {
1898
+ subscription: CustomerBenefitSubscription | null;
1899
+ vip_card: VipCard | null;
1900
+ gift_bonds: GiftBondPurchase[];
1269
1901
  }
1270
1902
 
1271
1903
  interface CouponResponse {
@@ -1281,22 +1913,224 @@ interface ValidateCouponResponse {
1281
1913
  };
1282
1914
  }
1283
1915
 
1916
+ interface RecentOrder {
1917
+ id: number;
1918
+ customer_name: string;
1919
+ event: string;
1920
+ total: number;
1921
+ status: string;
1922
+ uuid: string;
1923
+ }
1924
+
1925
+ interface RecentRoomMap {
1926
+ id: number;
1927
+ name: string;
1928
+ capacity: number;
1929
+ created_at: Date;
1930
+ updated_at: Date;
1931
+ }
1932
+
1933
+ interface QrTokenData {
1934
+ token: string;
1935
+ expires_at: string;
1936
+ refresh_in: number;
1937
+ }
1938
+
1939
+ interface QrTokenResponse {
1940
+ statusCode: number;
1941
+ data: QrTokenData;
1942
+ message: string;
1943
+ }
1944
+
1945
+ interface Membership extends Auditable {
1946
+ id: number;
1947
+ name: string;
1948
+ description: string;
1949
+ benefits: string[] | null;
1950
+ price: number;
1951
+ duration_days: number;
1952
+ min_recharge: number;
1953
+ status: MembershipStatus;
1954
+ discount_percentage: number;
1955
+ service_fee_exempt: boolean;
1956
+ applicable_show_ids: number[] | null;
1957
+ excluded_show_ids: number[] | null;
1958
+ }
1959
+
1960
+ interface FetchVipCardsParams extends CommonFetchAllParams {
1961
+ status?: VipCardStatus;
1962
+ membership_id?: number;
1963
+ customer_id?: number;
1964
+ sort_by?: 'vip_card.id' | 'vip_card.uuid' | 'vip_card.customer_id' | 'vip_card.membership_id' | 'vip_card.balance' | 'vip_card.status' | 'vip_card.activated_at' | 'vip_card.last_activity_at' | 'vip_card.expires_at' | 'vip_card.last_low_balance_alert_at' | 'vip_card.last_expiry_alert_at' | 'vip_card.created_at' | 'vip_card.updated_at';
1965
+ }
1966
+
1967
+ interface ActivateVipCardParams {
1968
+ customer_id: number;
1969
+ membership_id: number;
1970
+ amount: number;
1971
+ payment_method?: string | null;
1972
+ terms_accepted: boolean;
1973
+ data_processing_accepted: boolean;
1974
+ }
1975
+
1976
+ interface VipRechargeConfirmPayload {
1977
+ amount: number;
1978
+ payment_method: string;
1979
+ terms_accepted: boolean;
1980
+ data_processing_accepted: boolean;
1981
+ }
1982
+
1983
+ declare const DOCUMENT_TYPES_OPTIONS: SelectOption[];
1984
+
1985
+ declare const PAYMENT_METHODS_OPTIONS: SelectOption[];
1986
+ declare const ORDER_STATUS_COLORS: Record<OrderStatus, {
1987
+ text: string;
1988
+ bg: string;
1989
+ }>;
1990
+ declare const ORDER_ITEM_TYPES_COLORS: Record<OrderItemType, {
1991
+ text: string;
1992
+ bg: string;
1993
+ }>;
1994
+ declare const ORDER_DISCOUNT_COLORS: Record<string, {
1995
+ text: string;
1996
+ bg: string;
1997
+ }>;
1998
+ declare const TRANSACTION_STATUS_COLORS: Record<TransactionStatus, {
1999
+ text: string;
2000
+ bg: string;
2001
+ }>;
2002
+
2003
+ declare const PERFORMANCE_TICKET_STATUS_COLORS: Record<PerformanceTicketStatus, {
2004
+ text: string;
2005
+ bg: string;
2006
+ }>;
2007
+ declare const PERFORMANCE_STATUS_COLORS: Record<PerformanceStatus, {
2008
+ text: string;
2009
+ bg: string;
2010
+ }>;
2011
+
2012
+ declare const TICKET_MAP_LAST_TICKETS_LIMIT = 10;
2013
+ declare const TICKET_ELEMENT_TYPES: RoomMapElementType[];
2014
+ declare const DEFAULT_STAGE_CONFIG: {
2015
+ [x: string]: any;
2016
+ };
2017
+ declare const TICKET_STATUS_COLORS: Record<PerformanceTicketStatus, string>;
2018
+ declare const TICKET_STATUS_FILLS: Record<PerformanceTicketStatus, string>;
2019
+ declare const TICKET_STATUS_LABELS: Record<PerformanceTicketStatus, string>;
2020
+ declare const TICKET_MAP_GRID_SIZE = 30;
2021
+ declare const TICKET_MAP_TITLE_HEIGHT = 30;
2022
+ declare const TICKET_MAP_FLOOR_HOVER_OPACITY = 0.25;
2023
+ declare const TICKET_MAP_FLOOR_HOVER_FADE_MS = 150;
2024
+ declare const TICKET_MAP_PRICE_ZONE_FILTER_OPACITY = 0.25;
2025
+
2026
+ interface KonvaShapeConfig {
2027
+ config: ShapeConfig;
2028
+ layer: 'background' | 'elements' | 'foreground' | 'overlay';
2029
+ }
2030
+
2031
+ declare function drawRoundedRect(con: Context, shape: Shape, x: number, y: number, width: number, height: number, cornerRadius: number): void;
2032
+
2033
+ declare const generateExitScene: (con: Context, shape: Shape) => void;
2034
+
2035
+ declare const generateHallwayScene: (con: Context, shape: Shape) => void;
2036
+
2037
+ declare const generateProductionAreaScene: (con: Context, shape: Shape) => void;
2038
+
2039
+ declare const generateSeatBlockScene: (con: Context, shape: Shape, numerationConfig?: {
2040
+ start_row_letter: string;
2041
+ row_order: "TOP_TO_BOTTOM" | "BOTTOM_TO_TOP";
2042
+ start_column_number: number;
2043
+ column_order: "LEFT_TO_RIGHT" | "RIGHT_TO_LEFT";
2044
+ }) => void;
2045
+
2046
+ declare const generateStageScene: (con: Context, shape: Shape) => void;
2047
+
2048
+ declare const generateStairScene: (con: Context, shape: Shape) => void;
2049
+
2050
+ declare const generateTableScene: (con: Context, shape: Shape) => void;
2051
+
2052
+ declare const generateUnavailableSpaceScene: (con: Context, shape: Shape) => void;
2053
+
2054
+ declare const generateZoneScene: (con: Context, shape: Shape) => void;
2055
+
2056
+ declare const KONVA_SHAPE_MAPPINGS: Record<RoomMapElementType, KonvaShapeConfig>;
2057
+
1284
2058
  declare const getCustomerFullname: (customer: Customer) => string;
1285
2059
 
2060
+ declare const getAdminFullname: (admin: Admin) => string;
2061
+
2062
+ type OrderDiscountType = 'coupon' | 'corporate_bond' | 'gift_bond' | 'vip' | 'subscription';
2063
+ interface OrderDiscountInfo {
2064
+ type: OrderDiscountType | null;
2065
+ code: string | null;
2066
+ name: string | null;
2067
+ value: number;
2068
+ discountType: 'percentage' | 'fixed' | null;
2069
+ icon: string;
2070
+ redeemedTicketsCount?: number | null;
2071
+ serviceFeeExempt: boolean;
2072
+ }
2073
+ declare function getOrderDiscount(order: Order): OrderDiscountInfo;
2074
+
2075
+ interface BenefitToastMessage {
2076
+ title: string;
2077
+ description: string;
2078
+ }
2079
+ type CustomerBenefitsPerspective = 'customer' | 'staff';
2080
+ declare function getCustomerBenefitToasts(benefits: CustomerBenefits, perspective?: CustomerBenefitsPerspective): BenefitToastMessage[];
2081
+
1286
2082
  declare function parseJsonToFormDataAdvanced(imageGallery: any[]): FormData;
1287
2083
 
1288
2084
  declare const transformImageToFile: (image: ShowImage | VenueImage) => UploadedFile;
1289
2085
 
2086
+ declare const transformUrlParams: (params: any) => URLSearchParams;
2087
+
1290
2088
  declare const formatCitiesResponseToSelect: (res: CitiesResponse) => {
1291
- value: string;
2089
+ value: number;
1292
2090
  label: string;
1293
2091
  }[];
1294
2092
 
2093
+ declare function tintColor(hex: string, amount?: number): string;
2094
+
2095
+ declare const drawChairIcon: (con: Context, cx: number, cy: number, size: number) => void;
2096
+
2097
+ declare const drawHappyFace: (con: Context, cx: number, cy: number, size: number) => void;
2098
+
2099
+ declare const drawWheelchairIcon: (con: Context, shape: Shape, cx: number, cy: number, size: number, fillColor?: string, strokeColor?: string) => void;
2100
+
2101
+ declare const numberToLetter: (num: number) => string;
2102
+
2103
+ declare const getItemTypeIcon: (ticket: PerformanceTicket) => string;
2104
+
2105
+ declare const generateSeatBlockTicketScene: (con: Context, shape: Shape, numerationConfig?: {
2106
+ start_row_letter: string;
2107
+ row_order: "TOP_TO_BOTTOM" | "BOTTOM_TO_TOP";
2108
+ start_column_number: number;
2109
+ column_order: "LEFT_TO_RIGHT" | "RIGHT_TO_LEFT";
2110
+ }, ticketStatusMap?: Map<string, PerformanceTicketStatus>) => void;
2111
+
2112
+ declare const generateTableTicketScene: (con: Context, shape: Shape, chairTicketStatuses?: PerformanceTicketStatus[], tableSeats?: RoomMapSeatState[][]) => void;
2113
+
2114
+ declare function processElementsToRenderData(elements: RoomMapElementTemplate[], tickets: PerformanceTicket[], priceZones?: {
2115
+ id: number;
2116
+ color: string;
2117
+ }[]): ElementRenderData[];
2118
+ declare function findTicketAtPosition(renderData: ElementRenderData, relX: number, relY: number): PerformanceTicket | null;
2119
+ declare function findElementAtPosition(renderDataList: ElementRenderData[], stageX: number, stageY: number): {
2120
+ element: ElementRenderData;
2121
+ relX: number;
2122
+ relY: number;
2123
+ } | null;
2124
+
2125
+ declare const ticketCanOpenQr: (order: Order, ticket: PerformanceTicket) => boolean;
2126
+
1295
2127
  declare function MinTodayValidator(controlName: string): ValidatorFn;
1296
2128
  declare function EndDateGreaterThanStartValidator(startDateControlName: string, endDateControlName: string): ValidatorFn;
1297
2129
 
1298
2130
  declare function MustMatchValidator(controlName: string, matchingControlName: string): ValidatorFn;
1299
2131
 
2132
+ declare function emailValidator(): ValidatorFn;
2133
+
1300
2134
  declare class ApiService {
1301
2135
  private http;
1302
2136
  private platformId;
@@ -1307,6 +2141,7 @@ declare class ApiService {
1307
2141
  private validateContentType;
1308
2142
  private handleError;
1309
2143
  get<T>(path: string): Observable<T>;
2144
+ getBlob(path: string): Observable<Blob>;
1310
2145
  post<T>(path: string, body: any): Observable<T>;
1311
2146
  patch<T>(path: string, body: any): Observable<T>;
1312
2147
  put<T>(path: string, body: any): Observable<T>;
@@ -1315,23 +2150,58 @@ declare class ApiService {
1315
2150
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiService>;
1316
2151
  }
1317
2152
 
2153
+ /**
2154
+ * Shared open/close state for the mobile off-canvas sidebar.
2155
+ * On viewports >= lg the sidebar is always visible (see sidebar-menu.component.html),
2156
+ * so this state only has a visual effect below the `lg` breakpoint.
2157
+ */
2158
+ declare class SidebarStateService {
2159
+ isMobileOpen: WritableSignal<boolean>;
2160
+ open(): void;
2161
+ close(): void;
2162
+ toggle(): void;
2163
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarStateService, never>;
2164
+ static ɵprov: i0.ɵɵInjectableDeclaration<SidebarStateService>;
2165
+ }
2166
+
2167
+ /**
2168
+ * Deshabilita el zoom del NAVEGADOR (no el zoom interno del mapa de
2169
+ * asientos, que sigue funcionando igual). Se instancia una sola vez —
2170
+ * inyectarlo en el componente raíz de la app alcanza, porque es
2171
+ * `providedIn: 'root'` — y cubre las cuatro formas en que un navegador
2172
+ * deja hacer zoom:
2173
+ *
2174
+ * - Ctrl/Cmd + rueda del mouse (desktop, todos los navegadores).
2175
+ * - Ctrl/Cmd + "+"/"-"/"0" por teclado (desktop, todos los navegadores).
2176
+ * - Gesto de pellizco en trackpad en Safari, que no dispara `wheel` sino
2177
+ * sus propios eventos `gesture*` (no estándar, solo Safari/WebKit).
2178
+ * - Pellizco con dos dedos en pantallas táctiles, como respaldo además
2179
+ * del `user-scalable=no` del viewport (que ya lo bloquea en la mayoría
2180
+ * de los navegadores, pero no en todos de forma consistente).
2181
+ *
2182
+ * No toca el zoom interno de `TicketMapZoomService` (ese es zoom propio de
2183
+ * la app sobre el SVG del mapa, con sus propios botones +/-, y debe seguir
2184
+ * funcionando tal cual).
2185
+ */
2186
+ declare class BrowserZoomLockService {
2187
+ constructor(platformId: Object);
2188
+ private onWheel;
2189
+ private onKeydown;
2190
+ private onTouchMove;
2191
+ private onGesture;
2192
+ static ɵfac: i0.ɵɵFactoryDeclaration<BrowserZoomLockService, never>;
2193
+ static ɵprov: i0.ɵɵInjectableDeclaration<BrowserZoomLockService>;
2194
+ }
2195
+
1318
2196
  type ToastType = 'success' | 'error' | 'info';
1319
2197
  declare class ToastService {
1320
- show(message: string, type?: ToastType): void;
2198
+ private platformId;
2199
+ constructor(platformId: Object);
2200
+ show(message: string, type?: ToastType, description?: string): void;
1321
2201
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
1322
2202
  static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
1323
2203
  }
1324
2204
 
1325
- declare class LoadingModalService {
1326
- title: WritableSignal<string>;
1327
- isOpen: WritableSignal<boolean>;
1328
- get modalIsOpen(): WritableSignal<boolean>;
1329
- open(title?: string): void;
1330
- close(): void;
1331
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadingModalService, never>;
1332
- static ɵprov: i0.ɵɵInjectableDeclaration<LoadingModalService>;
1333
- }
1334
-
1335
2205
  declare class DeleteConfirmationService {
1336
2206
  title: WritableSignal<string>;
1337
2207
  resourceName: WritableSignal<string>;
@@ -1372,12 +2242,19 @@ declare class DateService {
1372
2242
  static ɵprov: i0.ɵɵInjectableDeclaration<DateService>;
1373
2243
  }
1374
2244
 
2245
+ interface AdminResponse {
2246
+ statusCode: number;
2247
+ data: Admin;
2248
+ message: string;
2249
+ }
2250
+
1375
2251
  declare class AdminService {
1376
2252
  private apiService;
1377
2253
  constructor(apiService: ApiService);
1378
- fetchAdmins(page?: number, search?: string, limit?: number): Observable<AdminsResponse>;
2254
+ fetchAdmins(params: FetchAdminsParams): Observable<AdminsResponse>;
2255
+ fetchOneById(id: number): Observable<AdminResponse>;
1379
2256
  deleteOne(id: number): Observable<any>;
1380
- createOne(data: any): Observable<any>;
2257
+ createOne(data: any): Observable<AdminResponse>;
1381
2258
  updateOne(id: number, data: any): Observable<any>;
1382
2259
  static ɵfac: i0.ɵɵFactoryDeclaration<AdminService, never>;
1383
2260
  static ɵprov: i0.ɵɵInjectableDeclaration<AdminService>;
@@ -1386,7 +2263,7 @@ declare class AdminService {
1386
2263
  declare class CitiesService {
1387
2264
  private apiService;
1388
2265
  constructor(apiService: ApiService);
1389
- fetchCities({ page, search, stateId }: FetchCitiesParams): Observable<CitiesResponse>;
2266
+ fetchCities(params: FetchCitiesParams): Observable<CitiesResponse>;
1390
2267
  createOne(data: City): Observable<CityResponse>;
1391
2268
  updateOne(id: number, data: City): Observable<CityResponse>;
1392
2269
  deleteOne(id: number): Observable<any>;
@@ -1397,7 +2274,7 @@ declare class CitiesService {
1397
2274
  declare class CountryService {
1398
2275
  private apiService;
1399
2276
  constructor(apiService: ApiService);
1400
- fetchCountries(page?: number, search?: string): Observable<CountriesResponse>;
2277
+ fetchCountries(params: FetchCountriesParams): Observable<CountriesResponse>;
1401
2278
  createOne(data: Country): Observable<CountryResponse>;
1402
2279
  updateOne(id: number, data: Country): Observable<CountryResponse>;
1403
2280
  deleteOne(id: number): Observable<any>;
@@ -1408,7 +2285,7 @@ declare class CountryService {
1408
2285
  declare class StatesService {
1409
2286
  private apiService;
1410
2287
  constructor(apiService: ApiService);
1411
- fetchStates(page?: number, search?: string, countryId?: number): Observable<StatesResponse>;
2288
+ fetchStates(params: FetchStatesParams): Observable<StatesResponse>;
1412
2289
  fetchStatesByCountryId(countryId: number): Observable<StatesResponse>;
1413
2290
  createOne(data: State): Observable<StateResponse>;
1414
2291
  updateOne(id: number, data: State): Observable<StateResponse>;
@@ -1422,23 +2299,36 @@ declare class PerformanceService {
1422
2299
  private performancesSubject;
1423
2300
  performances$: Observable<Performance[]>;
1424
2301
  constructor(apiService: ApiService);
1425
- fetchPerformances(showId?: number, search?: string): Observable<PerformancesResponseInterface>;
1426
- fetchDailyPerformances({ show_id, search, limit, date, }: FetchDailyPerformancesParams): Observable<DailyPerformancesResponse>;
2302
+ fetchPerformances({ showId, roomMapId, hallId, search, page, limit, }: FindAllPerformancesParams): Observable<PerformancesResponseInterface>;
2303
+ fetchDailyPerformances({ show_id, search, limit, date }: FetchDailyPerformancesParams, isAdmin?: boolean): Observable<DailyPerformancesResponse>;
1427
2304
  loadPerformances({ showId, search }?: {
1428
2305
  showId?: number;
1429
2306
  search?: string;
1430
2307
  }): void;
1431
2308
  getCurrentPerformances(): Performance[];
1432
2309
  fetchOneById(id: number): Observable<PerformanceResponse>;
1433
- fetchOneBookingData(id: number): Observable<PerformanceBookingDataResponse>;
2310
+ fetchOneBookingData(id: number, isAdmin?: boolean): Observable<PerformanceBookingDataResponse>;
1434
2311
  fetchAvailableDays(params?: {
1435
2312
  show_id?: number;
1436
- }): Observable<PerformancesAvailableDaysResponse>;
2313
+ }, isAdmin?: boolean): Observable<PerformancesAvailableDaysResponse>;
1437
2314
  createOne(data: Performance): Observable<any>;
1438
2315
  createMany(data: Partial<Performance>[]): Observable<any>;
1439
2316
  updateOne(id: number, data: any): Observable<PerformanceResponse>;
1440
2317
  deleteOne(id: number): Observable<any>;
1441
2318
  deleteMany(ids: number[]): Observable<any>;
2319
+ fetchPedagogicPerformances(params?: {
2320
+ page?: number;
2321
+ limit?: number;
2322
+ }): Observable<PerformancesResponseInterface>;
2323
+ fetchPedagogicAvailability(id: number): Observable<PedagogicAvailabilityResponse>;
2324
+ createPedagogicOrder(id: number, payload: CreatePedagogicOrderPayload): Observable<any>;
2325
+ updatePublishedBulk(ids: number[], published: boolean): Observable<{
2326
+ statusCode: number;
2327
+ data: {
2328
+ updated: number[];
2329
+ };
2330
+ message: string;
2331
+ }>;
1442
2332
  cancelPerformance(id: number, notifyUsers: boolean): Observable<any>;
1443
2333
  publishInvenotry(id: number): Observable<any>;
1444
2334
  static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceService, never>;
@@ -1467,7 +2357,7 @@ declare class ShowService {
1467
2357
  constructor(apiService: ApiService);
1468
2358
  loadShows({ page, search }?: FetchShowsParams): void;
1469
2359
  getCurrentShows(): Show[];
1470
- fetchShows({ limit, page, search }: FetchShowsParams): Observable<ShowsResponseInterface>;
2360
+ fetchShows(params: FetchShowsParams): Observable<ShowsResponseInterface>;
1471
2361
  fetchAvailableShows({ date, limit, page, search, }: FetchShowsParams): Observable<ShowsResponseInterface>;
1472
2362
  fetchOneById(id: number): Observable<ShowResponse>;
1473
2363
  createOne(data: Show): Observable<ShowResponse>;
@@ -1488,7 +2378,7 @@ declare class CustomerService {
1488
2378
  private apiService;
1489
2379
  constructor(apiService: ApiService);
1490
2380
  createOne(data: Customer): Observable<CustomerResponse>;
1491
- fetchCustomers(page: number, search: string, limit?: number): Observable<CustomersResponse>;
2381
+ fetchCustomers(params: FetchCustomersParams): Observable<CustomersResponse>;
1492
2382
  fetchOneById(id: number): Observable<CustomerResponse>;
1493
2383
  updateOne(id: number, data: any): Observable<CustomerResponse>;
1494
2384
  deleteOne(id: number): Observable<any>;
@@ -1501,8 +2391,8 @@ declare class PriceZoneService {
1501
2391
  private priceZonesSubject;
1502
2392
  priceZones$: Observable<PriceZone[]>;
1503
2393
  constructor(apiService: ApiService);
1504
- fetchPriceZones({ roomMapId, page, search, limit, }?: FindAllPriceZoneParams): Observable<PriceZonesResponseInterface>;
1505
- loadPriceZones({ roomMapId, page, search, limit }?: FindAllPriceZoneParams): void;
2394
+ fetchPriceZones(params?: FindAllPriceZoneParams): Observable<PriceZonesResponseInterface>;
2395
+ loadPriceZones(params?: FindAllPriceZoneParams): void;
1506
2396
  getCurrentPriceZones(): PriceZone[];
1507
2397
  fetchOneById(id: number): Observable<PriceZoneResponse>;
1508
2398
  createOne(data: PriceZone): Observable<any>;
@@ -1543,7 +2433,7 @@ declare class PriceZoneFormModalService {
1543
2433
  declare class ProductCategoryService {
1544
2434
  private apiService;
1545
2435
  constructor(apiService: ApiService);
1546
- fetchCategories({ page, search, limit, }: FetchProductCategoriesParams): Observable<ProductCategoriesResponse>;
2436
+ fetchCategories(params: FetchProductCategoriesParams): Observable<ProductCategoriesResponse>;
1547
2437
  fetchOneById(id: number): Observable<ProductCategoryResponse>;
1548
2438
  createOne(data: ProductCategory): Observable<any>;
1549
2439
  updateOne(id: number, data: ProductCategory): Observable<ProductCategoryResponse>;
@@ -1555,7 +2445,7 @@ declare class ProductCategoryService {
1555
2445
  declare class ProductTagService {
1556
2446
  private apiService;
1557
2447
  constructor(apiService: ApiService);
1558
- fetchTags({ page, search, limit }: FetchProductTagsParams): Observable<ProductTagsResponse>;
2448
+ fetchTags(params: FetchProductTagsParams): Observable<ProductTagsResponse>;
1559
2449
  fetchOneById(id: number): Observable<ProductTagResponse>;
1560
2450
  createOne(data: ProductTag): Observable<any>;
1561
2451
  updateOne(id: number, data: ProductTag): Observable<ProductTagResponse>;
@@ -1567,7 +2457,7 @@ declare class ProductTagService {
1567
2457
  declare class ProductTypeService {
1568
2458
  private apiService;
1569
2459
  constructor(apiService: ApiService);
1570
- fetchTypes({ page, search, limit }: FetchProductTypesParams): Observable<ProductTypesResponse>;
2460
+ fetchTypes(params: FetchProductTypesParams): Observable<ProductTypesResponse>;
1571
2461
  fetchOneById(id: number): Observable<ProductTypeResponse>;
1572
2462
  createOne(data: ProductType): Observable<any>;
1573
2463
  updateOne(id: number, data: ProductType): Observable<ProductTypeResponse>;
@@ -1576,18 +2466,12 @@ declare class ProductTypeService {
1576
2466
  static ɵprov: i0.ɵɵInjectableDeclaration<ProductTypeService>;
1577
2467
  }
1578
2468
 
1579
- interface FetchProductsParams {
1580
- page?: number;
1581
- limit?: number;
1582
- search?: string;
1583
- }
1584
-
1585
2469
  declare class ProductService {
1586
2470
  private apiService;
1587
2471
  private productsSubject;
1588
2472
  products$: Observable<Product[]>;
1589
2473
  constructor(apiService: ApiService);
1590
- fetchProducts({ page, search, limit, }: FetchProductsParams): Observable<ProductsResponseInterface>;
2474
+ fetchProducts(params: FetchProductsParams): Observable<ProductsResponseInterface>;
1591
2475
  loadProducts(params: FetchProductsParams): void;
1592
2476
  getCurrentProducts(): Product[];
1593
2477
  fetchOneById(id: number): Observable<ProductResponse>;
@@ -1605,6 +2489,514 @@ declare class ProductService {
1605
2489
  static ɵprov: i0.ɵɵInjectableDeclaration<ProductService>;
1606
2490
  }
1607
2491
 
2492
+ declare class BaseModalService {
2493
+ readonly isOpen: WritableSignal<boolean>;
2494
+ get modalIsOpen(): WritableSignal<boolean>;
2495
+ open(): void;
2496
+ close(): void;
2497
+ }
2498
+
2499
+ declare class FeedbackModalService {
2500
+ private _modals;
2501
+ readonly modals: i0.Signal<FeedbackModalElement[]>;
2502
+ addModal(modal: FeedbackModalElement): void;
2503
+ removeModal(id: string): void;
2504
+ removeAllModals(): void;
2505
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackModalService, never>;
2506
+ static ɵprov: i0.ɵɵInjectableDeclaration<FeedbackModalService>;
2507
+ }
2508
+
2509
+ /**
2510
+ * Tope de entradas por selección/compra. Por defecto es `null` (sin límite),
2511
+ * que es lo que necesita el backoffice (admin puede seleccionar todo).
2512
+ * El ecommerce, que sí debe limitar, llama a `load()` una vez al iniciar la
2513
+ * app para traer el valor configurado en el formulario de personalización.
2514
+ */
2515
+ declare class PurchaseLimitService {
2516
+ private apiService;
2517
+ private _maxTicketsPerSelection;
2518
+ readonly maxTicketsPerSelection: i0.Signal<number | null>;
2519
+ constructor(apiService: ApiService);
2520
+ setMaxTicketsPerSelection(max: number | null): void;
2521
+ load(): Observable<number | null>;
2522
+ static ɵfac: i0.ɵɵFactoryDeclaration<PurchaseLimitService, never>;
2523
+ static ɵprov: i0.ɵɵInjectableDeclaration<PurchaseLimitService>;
2524
+ }
2525
+
2526
+ declare class OrderTransactionDetailsModalService {
2527
+ readonly isOpen: WritableSignal<boolean>;
2528
+ transaction: WritableSignal<Transaction | null>;
2529
+ get modalIsOpen(): WritableSignal<boolean>;
2530
+ open(transaction: Transaction): void;
2531
+ close(): void;
2532
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderTransactionDetailsModalService, never>;
2533
+ static ɵprov: i0.ɵɵInjectableDeclaration<OrderTransactionDetailsModalService>;
2534
+ }
2535
+
2536
+ declare class PerformanceBookingDataService {
2537
+ private _show;
2538
+ private _performance;
2539
+ private _roomMap;
2540
+ private _hallFloors;
2541
+ private _selectedHallFloor;
2542
+ private _allRenderData;
2543
+ private _visibleFloorIds;
2544
+ private _hoveredFloorId;
2545
+ private _filteredPriceZoneIds;
2546
+ private _stageConfig;
2547
+ private _lastTickets;
2548
+ readonly show: i0.Signal<Show | null>;
2549
+ readonly hallFloors: i0.Signal<HallFloor[]>;
2550
+ readonly selectedHallFloor: i0.Signal<HallFloor | null>;
2551
+ readonly performance: i0.Signal<Performance | null>;
2552
+ readonly stageConfig: i0.Signal<{
2553
+ [x: string]: any;
2554
+ }>;
2555
+ readonly roomMap: i0.Signal<RoomMap | null>;
2556
+ readonly visibleFloorIds: i0.Signal<Set<number>>;
2557
+ readonly hoveredFloorId: i0.Signal<number | null>;
2558
+ readonly filteredPriceZoneIds: i0.Signal<Set<number>>;
2559
+ readonly priceZoneTicketCounts: i0.Signal<Map<number, {
2560
+ available: number;
2561
+ total: number;
2562
+ }>>;
2563
+ readonly availableFloors: i0.Signal<HallFloor[]>;
2564
+ readonly floorZOrder: i0.Signal<number[]>;
2565
+ readonly renderData: i0.Signal<ElementRenderData[]>;
2566
+ setPerformanceBookingData({ data }: PerformanceBookingDataResponse): void;
2567
+ /** Aplica actualizaciones de estado de tickets recibidas por SSE (ver
2568
+ * SeatAvailabilitySseService) sin volver a pedir todo el booking-data:
2569
+ * parcha `_lastTickets` y vuelve a calcular el render data del mapa con
2570
+ * los mismos `elements`/`price_zones` (que no cambian en vivo). */
2571
+ applySeatStatusUpdates(updates: SeatStatusUpdate[]): void;
2572
+ setRoomMap(roomMap: RoomMap | null): void;
2573
+ setAllRenderData(data: ElementRenderData[]): void;
2574
+ setPerformance(performance: Performance | null): void;
2575
+ setShow(show: Show | null): void;
2576
+ setHallFloors(data: HallFloor[]): void;
2577
+ setSelectedHallFloor(id: number): void;
2578
+ setHoveredFloor(floorId: number | null): void;
2579
+ togglePriceZoneFilter(zoneId: number): void;
2580
+ clearPriceZoneFilter(): void;
2581
+ isPriceZoneFiltered(zoneId: number): boolean;
2582
+ toggleFloorVisibility(floorId: number): void;
2583
+ isFloorVisible(floorId: number): boolean;
2584
+ updateStageConfig(data: {
2585
+ [x: string]: any;
2586
+ }): void;
2587
+ static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceBookingDataService, never>;
2588
+ static ɵprov: i0.ɵɵInjectableDeclaration<PerformanceBookingDataService>;
2589
+ }
2590
+
2591
+ declare class TicketSelectionDetailsService {
2592
+ private _customerEmail;
2593
+ private _customerId;
2594
+ private _paymentMethod;
2595
+ private _billingInformation;
2596
+ readonly customerEmail: i0.Signal<string | null>;
2597
+ readonly customerId: i0.Signal<number | null>;
2598
+ readonly paymentMethod: i0.Signal<string | null>;
2599
+ readonly billingInformation: i0.Signal<Customer | null>;
2600
+ setCustomerEmail(email: string | null): void;
2601
+ setCustomerId(id: number | null): void;
2602
+ setPaymentMethod(method: string | null): void;
2603
+ setBillingInformation(values: Customer): void;
2604
+ clearSelection(): void;
2605
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketSelectionDetailsService, never>;
2606
+ static ɵprov: i0.ɵɵInjectableDeclaration<TicketSelectionDetailsService>;
2607
+ }
2608
+
2609
+ declare class TicketSelectionDiscountService {
2610
+ private _coupon;
2611
+ private _corporateBond;
2612
+ private _corporateBondCode;
2613
+ private _giftBond;
2614
+ private _giftBondCode;
2615
+ private _vipCard;
2616
+ /**
2617
+ * Abono (subscription) como metodo de pago. Solo se usa el campo
2618
+ * `service_fee_exempt`: el valor del descuento es siempre 100% (una obra
2619
+ * del abono cubre el ticket por completo), igual que un cupon del 100%.
2620
+ */
2621
+ private _subscription;
2622
+ readonly coupon: Signal<Coupon | null>;
2623
+ readonly corporateBond: Signal<CorporateBond | null>;
2624
+ readonly corporateBondCode: Signal<string | null>;
2625
+ readonly giftBond: Signal<GiftBondPurchase | null>;
2626
+ readonly giftBondCode: Signal<string | null>;
2627
+ readonly vipCard: Signal<VipCard | null>;
2628
+ readonly subscription: Signal<{
2629
+ service_fee_exempt: boolean;
2630
+ } | null>;
2631
+ readonly selectedDiscount: Signal<SelectedDiscountCard | null>;
2632
+ readonly selectedDiscountType: Signal<SelectedDiscountCardType | undefined>;
2633
+ readonly selectedDiscountValue: Signal<number | undefined>;
2634
+ setCoupon(coupon: Coupon | null): void;
2635
+ setCorporateBond(corporateBond: CorporateBond | null): void;
2636
+ setCorporateBondCode(code: string | null): void;
2637
+ setGiftBond(giftBond: GiftBondPurchase | null): void;
2638
+ setGiftBondCode(code: string | null): void;
2639
+ /**
2640
+ * Saldo VIP como método de pago (VIP-HU-04). Solo debe contar como
2641
+ * descuento "seleccionado" mientras el cliente efectivamente eligió
2642
+ * pagar con su saldo VIP, no solo por tener una tarjeta activa —
2643
+ * llamar con `null` en cuanto deje de ser el método de pago elegido.
2644
+ */
2645
+ setVipCard(card: VipCard | null): void;
2646
+ /**
2647
+ * Abono como metodo de pago (paralelo a `setVipCard`). Llamar con `null`
2648
+ * en cuanto deje de ser el metodo de pago elegido.
2649
+ */
2650
+ setSubscription(subscription: {
2651
+ service_fee_exempt: boolean;
2652
+ } | null): void;
2653
+ clearSelection(): void;
2654
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketSelectionDiscountService, never>;
2655
+ static ɵprov: i0.ɵɵInjectableDeclaration<TicketSelectionDiscountService>;
2656
+ }
2657
+
2658
+ declare class TicketSelectionTotalsService {
2659
+ private bookingDataService;
2660
+ private selectionService;
2661
+ private selectionDiscountService;
2662
+ readonly selectedProductEntries: i0.Signal<{
2663
+ id: number;
2664
+ quantity: number;
2665
+ }[]>;
2666
+ readonly selectedProductCount: i0.Signal<number>;
2667
+ readonly productSubtotal: i0.Signal<number>;
2668
+ readonly ticketSubtotal: i0.Signal<number>;
2669
+ /**
2670
+ * Tarifa de servicio del Show cobrada una vez por cada boleta seleccionada
2671
+ * (no un monto fijo por orden), igual que el backend
2672
+ * (`create-pending-order.service.ts`): 2 boletas x $10.000 = $20.000.
2673
+ * Ya refleja la exoneración de VIP/Abono (retorna 0 en ese caso).
2674
+ */
2675
+ readonly serviceFee: i0.Signal<number>;
2676
+ /**
2677
+ * Valor "crudo" de la tarifa de servicio (sin exonerar), para poder
2678
+ * mostrar explícitamente en la UI el "antes" cuando una membresía o
2679
+ * abono la exonera (en vez de perder el dato mostrando solo $0).
2680
+ */
2681
+ readonly rawServiceFee: i0.Signal<number>;
2682
+ readonly isServiceFeeExempt: i0.Signal<boolean>;
2683
+ /**
2684
+ * El descuento (cupón, bono corporativo, bono de regalo, VIP, abono) se
2685
+ * calcula UNICAMENTE sobre el valor de las boletas: los productos nunca
2686
+ * reciben descuento (ver orders-discounts-applications.md).
2687
+ */
2688
+ readonly discountAmount: i0.Signal<number | null>;
2689
+ subtotalValue(): number;
2690
+ totalValue(): number;
2691
+ totalDiscounted(): number | null;
2692
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketSelectionTotalsService, never>;
2693
+ static ɵprov: i0.ɵɵInjectableDeclaration<TicketSelectionTotalsService>;
2694
+ }
2695
+
2696
+ declare class TicketSelectionService {
2697
+ private bookingDataService;
2698
+ private feedbackModalService;
2699
+ private purchaseLimitService;
2700
+ private selectionDetailsService;
2701
+ private selectionDiscountService;
2702
+ private _zoneQuantities;
2703
+ private _allTickets;
2704
+ private _selectedTickets;
2705
+ private _selectedBlockedTickets;
2706
+ private _products;
2707
+ private _productQuantities;
2708
+ readonly selectedTickets: i0.Signal<PerformanceTicket[]>;
2709
+ readonly selectedBlockedTickets: i0.Signal<PerformanceTicket[]>;
2710
+ readonly selectedCount: i0.Signal<number>;
2711
+ readonly blockedSelectedCount: i0.Signal<number>;
2712
+ readonly selectedTicketIds: i0.Signal<Set<PerformanceTicket>>;
2713
+ readonly selectedBlockedTicketIds: i0.Signal<number[]>;
2714
+ readonly selectedTicketIdList: i0.Signal<number[]>;
2715
+ readonly summaryItems: i0.Signal<PerformanceTicket[]>;
2716
+ readonly products: i0.Signal<Product[]>;
2717
+ readonly productQuantities: i0.Signal<Map<number, number>>;
2718
+ readonly selectedProductEntries: i0.Signal<{
2719
+ id: number;
2720
+ quantity: number;
2721
+ }[]>;
2722
+ readonly selectedProductCount: i0.Signal<number>;
2723
+ readonly serviceFee: i0.Signal<number>;
2724
+ setTickets(tickets: PerformanceTicket[]): void;
2725
+ /** Aplica actualizaciones de estado recibidas por SSE (ver
2726
+ * SeatAvailabilitySseService). Muta los tickets existentes EN VEZ de
2727
+ * reemplazarlos por objetos nuevos: `_selectedTickets`/
2728
+ * `_selectedBlockedTickets` son Sets de referencias de objeto, no de ids,
2729
+ * así que reemplazar el array rompería la selección activa del usuario. */
2730
+ applySeatStatusUpdates(updates: SeatStatusUpdate[]): void;
2731
+ setProducts(products: Product[]): void;
2732
+ updateProductQuantity(productId: number, delta: number): void;
2733
+ getProductQuantity(productId: number): number;
2734
+ private getListByStatus;
2735
+ setSelectedTickets(tickets: PerformanceTicket[]): void;
2736
+ toggle(ticket: PerformanceTicket): void;
2737
+ select(ticket: PerformanceTicket): void;
2738
+ deselect(ticket: PerformanceTicket): void;
2739
+ clearBlockedSelection(): void;
2740
+ clearSelection(): void;
2741
+ isSelected(ticket: PerformanceTicket): boolean;
2742
+ initZoneQuantity(elementId: number, maxCapacity: number): void;
2743
+ getZoneMax(elementId: number): number;
2744
+ getZoneSelectedCount(elementId: number): number;
2745
+ setZoneQuantity(elementId: number, target: number): void;
2746
+ adjustZoneQuantity(elementId: number, delta: number): void;
2747
+ private remainingSelectionAllowance;
2748
+ private canAddMoreToSelection;
2749
+ private notifyPurchaseLimitReached;
2750
+ getZoneTickets(elementId: number): PerformanceTicket[];
2751
+ buildTooltipData(ticket: PerformanceTicket, elementName: string, seatLabel: string | null, x: number, y: number): TicketMapTooltipData;
2752
+ buildReservePerformanceDto(paymentMethod?: string, termsAccepted?: boolean, dataProcessingAccepted?: boolean): ReservePerformanceDto;
2753
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketSelectionService, never>;
2754
+ static ɵprov: i0.ɵɵInjectableDeclaration<TicketSelectionService>;
2755
+ }
2756
+
2757
+ declare class TicketMapZoomService {
2758
+ readonly currentZoom: i0.WritableSignal<number>;
2759
+ private stage?;
2760
+ private bookingDataService;
2761
+ private readonly defaultConfig;
2762
+ constructor();
2763
+ /**
2764
+ * Set the Konva stage instance
2765
+ */
2766
+ setStage(stage: Stage): void;
2767
+ /**
2768
+ * Zoom in by one step
2769
+ */
2770
+ zoomIn(): void;
2771
+ /**
2772
+ * Zoom out by one step
2773
+ */
2774
+ zoomOut(): void;
2775
+ /**
2776
+ * Reset zoom to 100%
2777
+ */
2778
+ resetZoom(): void;
2779
+ /**
2780
+ * Get current zoom as percentage string
2781
+ */
2782
+ getZoomPercentage(): string;
2783
+ /**
2784
+ * Get current zoom value
2785
+ */
2786
+ getCurrentZoom(): number;
2787
+ /**
2788
+ * Apply zoom with center point
2789
+ */
2790
+ private applyZoom;
2791
+ /**
2792
+ * Apply zoom scale with specific center point
2793
+ */
2794
+ private applyZoomScale;
2795
+ /**
2796
+ * Handle mouse wheel zoom toward the cursor position
2797
+ */
2798
+ handleWheelZoom(deltaY: number): void;
2799
+ /**
2800
+ * Fit the content bounds to fill the stage container
2801
+ */
2802
+ fitToContainer(padding?: number): void;
2803
+ /**
2804
+ * Get current stage position
2805
+ */
2806
+ getStagePosition(): {
2807
+ x: number;
2808
+ y: number;
2809
+ };
2810
+ /**
2811
+ * Set stage position (useful for programmatic panning)
2812
+ */
2813
+ setStagePosition(position: {
2814
+ x: number;
2815
+ y: number;
2816
+ }): void;
2817
+ /**
2818
+ * Fit the stage content bounds to the container, centering and scaling
2819
+ * to show the full content with optional padding.
2820
+ */
2821
+ fitToBounds(contentBounds: {
2822
+ x: number;
2823
+ y: number;
2824
+ width: number;
2825
+ height: number;
2826
+ }, containerWidth: number, containerHeight: number, padding?: number): void;
2827
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapZoomService, never>;
2828
+ static ɵprov: i0.ɵɵInjectableDeclaration<TicketMapZoomService>;
2829
+ }
2830
+
2831
+ declare class ConfirmationOrderModalService extends BaseModalService {
2832
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationOrderModalService, never>;
2833
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationOrderModalService>;
2834
+ }
2835
+
2836
+ /**
2837
+ * Transporte SSE del estado de asientos en vivo. Es el único punto de la
2838
+ * librería que sabe de EventSource/HTTP para esto — aplica cada snapshot
2839
+ * recibido sobre PerformanceBookingDataService (repinta el mapa) y
2840
+ * TicketSelectionService (mantiene la disponibilidad al día para
2841
+ * validaciones de zona/límite de compra).
2842
+ *
2843
+ * Cada intento de reconexión pide un ticket NUEVO (el anterior es de un
2844
+ * solo uso y expira a los ~30s), con backoff exponencial acotado.
2845
+ */
2846
+ declare class SeatAvailabilitySseService {
2847
+ private apiService;
2848
+ private bookingDataService;
2849
+ private ticketSelectionService;
2850
+ private platformId;
2851
+ private config;
2852
+ private eventSource;
2853
+ private reconnectTimer;
2854
+ private reconnectAttempts;
2855
+ private currentPerformanceId;
2856
+ private currentIsAdmin;
2857
+ private stopped;
2858
+ constructor(apiService: ApiService, bookingDataService: PerformanceBookingDataService, ticketSelectionService: TicketSelectionService, platformId: Object, config: TickeraComponentsConfig);
2859
+ connect(performanceId: number, opts?: {
2860
+ isAdmin?: boolean;
2861
+ }): void;
2862
+ disconnect(): void;
2863
+ private openConnection;
2864
+ private startStream;
2865
+ private scheduleReconnect;
2866
+ static ɵfac: i0.ɵɵFactoryDeclaration<SeatAvailabilitySseService, never>;
2867
+ static ɵprov: i0.ɵɵInjectableDeclaration<SeatAvailabilitySseService>;
2868
+ }
2869
+
2870
+ /**
2871
+ * Cliente de la cola adaptativa (fase 4). No decide CUÁNDO se activa la
2872
+ * cola — eso es enteramente responsabilidad del backend (AdmissionGuard +
2873
+ * LoadBasedAdmissionPolicy) — este servicio solo sabe reaccionar al 429
2874
+ * `ADMISSION_QUEUE_REQUIRED` que ese guard puede devolver en
2875
+ * /carts/reserve y /orders/checkout.
2876
+ *
2877
+ * Uso típico en el punto de llamada (ver reservation-confirmation y
2878
+ * checkout-form): reintentar la request original dentro de un catchError:
2879
+ *
2880
+ * this.cartService.reserve(dto).pipe(
2881
+ * catchError((err) => {
2882
+ * if (!this.admissionQueueService.isAdmissionRequired(err)) return throwError(() => err);
2883
+ * const performanceId = this.admissionQueueService.getPerformanceId(err)!;
2884
+ * return this.admissionQueueService.waitForAdmission(performanceId).pipe(
2885
+ * switchMap(() => this.cartService.reserve(dto)),
2886
+ * );
2887
+ * }),
2888
+ * )
2889
+ *
2890
+ * Reutiliza el mismo transporte SSE con ticket de un solo uso de la fase 3
2891
+ * (ver SeatAvailabilitySseService) — acá el ticket llega directo en la
2892
+ * respuesta de /join, así que no hace falta un endpoint de ticket aparte;
2893
+ * cada reintento de conexión vuelve a hacer /join (el ticket anterior es
2894
+ * de un solo uso y expira a los ~30s).
2895
+ */
2896
+ declare class AdmissionQueueService {
2897
+ private apiService;
2898
+ private feedbackModalService;
2899
+ private platformId;
2900
+ private config;
2901
+ constructor(apiService: ApiService, feedbackModalService: FeedbackModalService, platformId: Object, config: TickeraComponentsConfig);
2902
+ /** True si el error es el 429 específico de "alta demanda, únete a la fila". */
2903
+ isAdmissionRequired(error: unknown): error is HttpErrorResponse;
2904
+ getPerformanceId(error: HttpErrorResponse): number | null;
2905
+ /**
2906
+ * Se une a la fila de `performanceId` y completa (emite una vez y cierra)
2907
+ * en cuanto el usuario queda admitido. Mientras espera, muestra un modal
2908
+ * ligero con la posición vigente, actualizado por SSE. Si quien se
2909
+ * suscribió se desuscribe antes de ser admitido (el usuario navega a
2910
+ * otro lado, cierra el modal, o el componente se destruye), libera el
2911
+ * lugar en la fila con /leave.
2912
+ */
2913
+ waitForAdmission(performanceId: number): Observable<void>;
2914
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdmissionQueueService, never>;
2915
+ static ɵprov: i0.ɵɵInjectableDeclaration<AdmissionQueueService>;
2916
+ }
2917
+
2918
+ declare class TicketQrService {
2919
+ private apiService;
2920
+ constructor(apiService: ApiService);
2921
+ fetchQrToken(ticketUuid: string): Observable<QrTokenResponse>;
2922
+ fetchMyQrToken(ticketUuid: string): Observable<QrTokenResponse>;
2923
+ downloadTicketPdf(ticketUuid: string): Observable<Blob>;
2924
+ downloadMyTicketPdf(ticketUuid: string): Observable<Blob>;
2925
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketQrService, never>;
2926
+ static ɵprov: i0.ɵɵInjectableDeclaration<TicketQrService>;
2927
+ }
2928
+
2929
+ declare class TicketQrModalService {
2930
+ isOpen: WritableSignal<boolean>;
2931
+ ticketUuid: WritableSignal<string | null>;
2932
+ ticketDescription: WritableSignal<string | null>;
2933
+ open(ticketUuid: string, description?: string): void;
2934
+ close(): void;
2935
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketQrModalService, never>;
2936
+ static ɵprov: i0.ɵɵInjectableDeclaration<TicketQrModalService>;
2937
+ }
2938
+
2939
+ declare class VipCardService {
2940
+ private apiService;
2941
+ constructor(apiService: ApiService);
2942
+ findMy(): Observable<{
2943
+ data: VipCard | null;
2944
+ }>;
2945
+ activate(data: any): Observable<VipOrderResponse>;
2946
+ recharge(data: any): Observable<VipOrderResponse>;
2947
+ fetchAll(params?: FetchVipCardsParams): Observable<VipCardsResponse>;
2948
+ fetchOneById(id: number): Observable<VipCardResponse>;
2949
+ activateAdmin(data: ActivateVipCardParams): Observable<VipOrderResponse>;
2950
+ rechargeAdmin(id: number, data: any): Observable<VipOrderResponse>;
2951
+ updateStatus(id: number, status: VipCardStatus): Observable<VipCardResponse>;
2952
+ updateTerms(id: number): Observable<VipCardResponse>;
2953
+ fetchTransactions(id: number, page?: number, limit?: number): Observable<VipTransactionsResponse>;
2954
+ static ɵfac: i0.ɵɵFactoryDeclaration<VipCardService, never>;
2955
+ static ɵprov: i0.ɵɵInjectableDeclaration<VipCardService>;
2956
+ }
2957
+
2958
+ /**
2959
+ * Servicio genérico de "cambios pendientes" para tablas con edición rápida
2960
+ * + guardado masivo (QTN-49, primer consumidor: Bonos de Regalo en
2961
+ * tickera-backoffice-frontend).
2962
+ *
2963
+ * IMPORTANTE: proveerlo a nivel de componente/página
2964
+ * (`providers: [PendingChangesService]` en el `@Component` que lo usa),
2965
+ * NUNCA en `providedIn: 'root'` — si no, dos tablas con edición rápida
2966
+ * abiertas al mismo tiempo (dos pestañas, o dos listados en la misma
2967
+ * sesión) compartirían el mismo estado de cambios pendientes. Mismo
2968
+ * criterio que ya sigue este repo con GiftBondService, provisto a nivel de
2969
+ * GiftBondDetailsComponent en vez de en 'root'.
2970
+ */
2971
+ declare class PendingChangesService<TValue = any> {
2972
+ private readonly changesSignal;
2973
+ private readonly originalValues;
2974
+ readonly changes: Signal<Map<number, TValue>>;
2975
+ readonly changeCount: Signal<number>;
2976
+ readonly hasChanges: Signal<boolean>;
2977
+ /**
2978
+ * Registra (o actualiza) el cambio pendiente de `id`. `originalValue` es
2979
+ * el valor que tenía la fila antes de cualquier edición en esta sesión de
2980
+ * la tabla — solo se guarda la primera vez que se llama para ese id, así
2981
+ * que no importa pasarlo en cada llamada subsiguiente.
2982
+ *
2983
+ * Si `newValue` termina siendo igual al valor original, el id se
2984
+ * elimina automáticamente de los cambios pendientes (evita que quede
2985
+ * marcado como "modificado" un valor que el usuario cambió y luego
2986
+ * revirtió a mano).
2987
+ */
2988
+ setChange(id: number, originalValue: TValue, newValue: TValue): void;
2989
+ getPendingValue(id: number): TValue | undefined;
2990
+ /** Descarta el cambio pendiente de una fila puntual (botón "Deshacer" por fila, si aplica). */
2991
+ discard(id: number): void;
2992
+ /** Descarta todos los cambios pendientes sin guardar nada (botón "Deshacer" de la barra flotante). */
2993
+ discardAll(): void;
2994
+ /** Llamar después de que el guardado en lote fue exitoso, para limpiar el estado. */
2995
+ clearAfterSave(): void;
2996
+ static ɵfac: i0.ɵɵFactoryDeclaration<PendingChangesService<any>, never>;
2997
+ static ɵprov: i0.ɵɵInjectableDeclaration<PendingChangesService<any>>;
2998
+ }
2999
+
1608
3000
  declare const authInterceptor: HttpInterceptorFn;
1609
3001
 
1610
3002
  declare class AppButtonComponent {
@@ -1617,10 +3009,11 @@ declare class AppButtonComponent {
1617
3009
  size: 'xs' | 'sm' | 'md' | 'lg';
1618
3010
  loadingText: string;
1619
3011
  icon: string;
3012
+ tooltip: string;
1620
3013
  handleClick(): void;
1621
3014
  get buttonClasses(): string;
1622
3015
  static ɵfac: i0.ɵɵFactoryDeclaration<AppButtonComponent, never>;
1623
- static ɵcmp: i0.ɵɵComponentDeclaration<AppButtonComponent, "app-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "type": { "alias": "type"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "text": { "alias": "text"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
3016
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppButtonComponent, "app-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "type": { "alias": "type"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "text": { "alias": "text"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
1624
3017
  }
1625
3018
 
1626
3019
  declare class AppLinkButtonComponent {
@@ -1634,9 +3027,10 @@ declare class AppLinkButtonComponent {
1634
3027
  queryParams: Record<string, any>;
1635
3028
  size: 'xs' | 'sm' | 'md' | 'lg';
1636
3029
  variant: 'primary' | 'secondary' | 'tertiary' | 'success' | 'transparent';
3030
+ tooltip: string;
1637
3031
  get buttonClasses(): string;
1638
3032
  static ɵfac: i0.ɵɵFactoryDeclaration<AppLinkButtonComponent, never>;
1639
- static ɵcmp: i0.ɵɵComponentDeclaration<AppLinkButtonComponent, "app-link-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "target": { "alias": "target"; "required": false; }; "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "route": { "alias": "route"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, true, never>;
3033
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppLinkButtonComponent, "app-link-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "target": { "alias": "target"; "required": false; }; "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "route": { "alias": "route"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, {}, never, never, true, never>;
1640
3034
  }
1641
3035
 
1642
3036
  declare class AppAlertComponent {
@@ -1649,30 +3043,65 @@ declare class AppAlertComponent {
1649
3043
  static ɵcmp: i0.ɵɵComponentDeclaration<AppAlertComponent, "app-alert", never, { "type": { "alias": "type"; "required": false; }; "text": { "alias": "text"; "required": false; }; "closeable": { "alias": "closeable"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
1650
3044
  }
1651
3045
 
1652
- declare class LoadingmModalComponent {
1653
- private loadingModalService;
1654
- constructor(loadingModalService: LoadingModalService);
1655
- get isOpen(): i0.WritableSignal<boolean>;
1656
- get title(): i0.WritableSignal<string>;
3046
+ declare class FeedbackModalComponent implements OnChanges, OnDestroy {
3047
+ isOpen: WritableSignal<boolean>;
3048
+ type: FeedbackModalType;
3049
+ title: string;
3050
+ message: string;
3051
+ showHeader: boolean;
3052
+ showCloseButton: boolean;
3053
+ showTitle: boolean;
3054
+ autoClose: boolean;
3055
+ autoCloseDuration: number;
3056
+ buttonText: string;
3057
+ closed: EventEmitter<void>;
3058
+ private autoCloseTimeout;
3059
+ get defaultButtonText(): string;
3060
+ get resolvedButtonText(): string;
3061
+ get buttonVariant(): 'primary' | 'secondary';
3062
+ ngOnChanges(changes: SimpleChanges): void;
3063
+ ngOnDestroy(): void;
1657
3064
  closeModal(): void;
1658
- onCitySaved(): void;
1659
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadingmModalComponent, never>;
1660
- static ɵcmp: i0.ɵɵComponentDeclaration<LoadingmModalComponent, "loading-modal", never, {}, {}, never, never, true, never>;
3065
+ private scheduleAutoClose;
3066
+ private clearAutoClose;
3067
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackModalComponent, never>;
3068
+ static ɵcmp: i0.ɵɵComponentDeclaration<FeedbackModalComponent, "feedback-modal", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "type": { "alias": "type"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "autoCloseDuration": { "alias": "autoCloseDuration"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
1661
3069
  }
1662
3070
 
3071
+ type DeleteConfirmationStep = 'input' | 'final';
1663
3072
  declare class DeleteConfirmationComponent {
1664
3073
  private fb;
1665
3074
  private deleteConfirmationService;
1666
3075
  protected transloco: TranslocoService;
1667
3076
  deleteConfirmationForm: FormGroup;
3077
+ /**
3078
+ * Two-step flow:
3079
+ * 1. 'input' -> the user must type the resource name to unlock the delete action.
3080
+ * 2. 'final' -> a last feedback/confirmation step is shown before the delete
3081
+ * callback actually runs, so a slip of the mouse on the first
3082
+ * step can never trigger a real deletion by itself.
3083
+ */
3084
+ step: DeleteConfirmationStep;
1668
3085
  constructor(fb: FormBuilder, deleteConfirmationService: DeleteConfirmationService, transloco: TranslocoService);
1669
3086
  get title(): string;
1670
3087
  get resourceName(): string;
1671
3088
  get confirmationText(): string;
1672
3089
  get isOpen(): i0.WritableSignal<boolean>;
1673
3090
  get isConfirmationValid(): boolean;
3091
+ get isFinalStep(): boolean;
3092
+ /** Cancels the whole flow (from either step) without deleting anything. */
1674
3093
  onCloseModal(): void;
3094
+ /** Step 1 submit: only advances to the final confirmation, never deletes. */
1675
3095
  onConfirmDelete(): void;
3096
+ /**
3097
+ * Step 2 cancel: goes back to the input step without touching what the
3098
+ * user typed, so they don't have to retype it if they just want to
3099
+ * double-check before deleting.
3100
+ */
3101
+ onBackToInput(): void;
3102
+ /** Step 2 submit: this is the only place that actually triggers deletion. */
3103
+ onFinalConfirm(): void;
3104
+ private resetState;
1676
3105
  static ɵfac: i0.ɵɵFactoryDeclaration<DeleteConfirmationComponent, never>;
1677
3106
  static ɵcmp: i0.ɵɵComponentDeclaration<DeleteConfirmationComponent, "delete-confirmation", never, {}, {}, never, never, true, never>;
1678
3107
  }
@@ -1680,12 +3109,29 @@ declare class DeleteConfirmationComponent {
1680
3109
  declare class AppModalComponent {
1681
3110
  title: string;
1682
3111
  disableClose: boolean;
3112
+ showHeader: boolean;
3113
+ showCloseButton: boolean;
3114
+ showTitle: boolean;
3115
+ interactiveClose: boolean;
1683
3116
  isOpen: WritableSignal<boolean>;
1684
- size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
3117
+ size: ModalSize;
1685
3118
  closeModal: EventEmitter<void>;
1686
3119
  onCloseModal(): void;
3120
+ onInteractiveClose(): void;
3121
+ onKeydownEscape(): void;
1687
3122
  static ɵfac: i0.ɵɵFactoryDeclaration<AppModalComponent, never>;
1688
- static ɵcmp: i0.ɵɵComponentDeclaration<AppModalComponent, "app-modal", never, { "title": { "alias": "title"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "closeModal": "closeModal"; }, never, ["*"], true, never>;
3123
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppModalComponent, "app-modal", never, { "title": { "alias": "title"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "interactiveClose": { "alias": "interactiveClose"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "closeModal": "closeModal"; }, never, ["*"], true, never>;
3124
+ }
3125
+
3126
+ declare class AppBadgeComponent {
3127
+ text: string;
3128
+ color: BadgeColor;
3129
+ size: BadgeSize;
3130
+ bordered: boolean;
3131
+ backgroundColor: string;
3132
+ textColor: string;
3133
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppBadgeComponent, never>;
3134
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppBadgeComponent, "app-badge", never, { "text": { "alias": "text"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; }, {}, never, never, true, never>;
1689
3135
  }
1690
3136
 
1691
3137
  declare class AuditInformationComponent {
@@ -1694,12 +3140,13 @@ declare class AuditInformationComponent {
1694
3140
  static ɵcmp: i0.ɵɵComponentDeclaration<AuditInformationComponent, "app-audit-information", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
1695
3141
  }
1696
3142
 
1697
- declare class DynamicTableComponent {
3143
+ declare class DynamicTableComponent implements OnChanges {
1698
3144
  private injector;
1699
3145
  constructor(injector: Injector);
1700
3146
  title: string;
1701
3147
  data: any[];
1702
3148
  headers: any[];
3149
+ searcherPlaceholder: string;
1703
3150
  columnComponents: {
1704
3151
  [key: string]: Type<any>;
1705
3152
  };
@@ -1707,17 +3154,116 @@ declare class DynamicTableComponent {
1707
3154
  totalItems: number;
1708
3155
  itemsPerPage: number;
1709
3156
  currentPage: number;
3157
+ searchValue: string;
1710
3158
  pageChange: EventEmitter<number>;
1711
3159
  searchChange: EventEmitter<string>;
3160
+ pageSizeChange: EventEmitter<number>;
3161
+ pageSizeOptions: number[];
1712
3162
  showPagination: boolean;
1713
3163
  showSearch: boolean;
1714
3164
  showTitle: boolean;
1715
3165
  get totalPages(): number;
1716
3166
  onSearch(event: any): void;
1717
3167
  changePage(delta: number): void;
3168
+ changePageSize(event: any): void;
3169
+ private rowInjectors;
3170
+ ngOnChanges(changes: SimpleChanges): void;
1718
3171
  createInjector(row: any): Injector;
1719
3172
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
1720
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "dynamic-table", never, { "title": { "alias": "title"; "required": false; }; "data": { "alias": "data"; "required": false; }; "headers": { "alias": "headers"; "required": false; }; "columnComponents": { "alias": "columnComponents"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; }, { "pageChange": "pageChange"; "searchChange": "searchChange"; }, never, never, true, never>;
3173
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "dynamic-table", never, { "title": { "alias": "title"; "required": false; }; "data": { "alias": "data"; "required": false; }; "headers": { "alias": "headers"; "required": false; }; "searcherPlaceholder": { "alias": "searcherPlaceholder"; "required": false; }; "columnComponents": { "alias": "columnComponents"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "searchValue": { "alias": "searchValue"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; }, { "pageChange": "pageChange"; "searchChange": "searchChange"; "pageSizeChange": "pageSizeChange"; }, never, never, true, never>;
3174
+ }
3175
+
3176
+ declare class TextExpandableComponent implements OnChanges {
3177
+ text: string;
3178
+ maxLength: number;
3179
+ fontSize: TextFontSize;
3180
+ allowHtml: boolean;
3181
+ maxLines?: number;
3182
+ protected expanded: boolean;
3183
+ ngOnChanges(): void;
3184
+ get plainText(): string;
3185
+ get truncated(): boolean;
3186
+ get visibleText(): string;
3187
+ get lines(): number;
3188
+ toggleExpanded(): void;
3189
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextExpandableComponent, never>;
3190
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextExpandableComponent, "text-expandable", never, { "text": { "alias": "text"; "required": true; }; "maxLength": { "alias": "maxLength"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "allowHtml": { "alias": "allowHtml"; "required": false; }; "maxLines": { "alias": "maxLines"; "required": false; }; }, {}, never, never, true, never>;
3191
+ }
3192
+
3193
+ /**
3194
+ * Select genérico para editar un campo (típicamente "estado") directamente
3195
+ * en una celda de tabla, sin guardar de inmediato (QTN-49).
3196
+ *
3197
+ * Este componente es deliberadamente "tonto": no sabe a qué recurso
3198
+ * pertenece la fila ni cómo guardarla — solo muestra `options`, refleja
3199
+ * `value`, y emite `valueChange` cuando el usuario elige otra opción.
3200
+ * El componente que lo envuelve (p. ej. gift-bond-table-status en
3201
+ * tickera-backoffice-frontend) es quien conoce el id de la fila y decide
3202
+ * si guarda de inmediato o acumula el cambio en un
3203
+ * PendingChangesService + bulk-save-bar para guardado masivo.
3204
+ */
3205
+ declare class QuickStatusEditComponent {
3206
+ options: SelectOption[];
3207
+ value: any;
3208
+ /** Resalta visualmente la celda como "modificada, sin guardar". */
3209
+ dirty: boolean;
3210
+ disabled: boolean;
3211
+ valueChange: EventEmitter<any>;
3212
+ onChange(newValue: any): void;
3213
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuickStatusEditComponent, never>;
3214
+ static ɵcmp: i0.ɵɵComponentDeclaration<QuickStatusEditComponent, "quick-status-edit", never, { "options": { "alias": "options"; "required": true; }; "value": { "alias": "value"; "required": false; }; "dirty": { "alias": "dirty"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
3215
+ }
3216
+
3217
+ /**
3218
+ * Barra flotante "Guardar cambios" para guardado masivo (QTN-49).
3219
+ *
3220
+ * No conoce el recurso concreto ni cómo persistir los cambios — el
3221
+ * componente que la usa le pasa `[count]` (típicamente
3222
+ * `pendingChangesService.changeCount()`) y escucha `(save)`/`(discard)`
3223
+ * para llamar al endpoint bulk correspondiente.
3224
+ */
3225
+ declare class BulkSaveBarComponent {
3226
+ count: number;
3227
+ loading: boolean;
3228
+ saveLabel: string;
3229
+ discardLabel: string;
3230
+ save: EventEmitter<void>;
3231
+ discard: EventEmitter<void>;
3232
+ static ɵfac: i0.ɵɵFactoryDeclaration<BulkSaveBarComponent, never>;
3233
+ static ɵcmp: i0.ɵɵComponentDeclaration<BulkSaveBarComponent, "bulk-save-bar", never, { "count": { "alias": "count"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "saveLabel": { "alias": "saveLabel"; "required": false; }; "discardLabel": { "alias": "discardLabel"; "required": false; }; }, { "save": "save"; "discard": "discard"; }, never, never, true, never>;
3234
+ }
3235
+
3236
+ declare class ShowCardComponent {
3237
+ show: Show;
3238
+ linkText: string;
3239
+ linkUrlFn?: (show: Show) => string;
3240
+ linkQueryParams?: Record<string, any>;
3241
+ transloco: TranslocoService;
3242
+ dateService: DateService;
3243
+ formatTimeDate(date: string): Date;
3244
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowCardComponent, never>;
3245
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShowCardComponent, "show-card", never, { "show": { "alias": "show"; "required": true; }; "linkText": { "alias": "linkText"; "required": false; }; "linkUrlFn": { "alias": "linkUrlFn"; "required": false; }; "linkQueryParams": { "alias": "linkQueryParams"; "required": false; }; }, {}, never, never, true, never>;
3246
+ }
3247
+
3248
+ declare class ShowTypeBadgeComponent {
3249
+ show: Show;
3250
+ size: BadgeSize;
3251
+ transloco: TranslocoService;
3252
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowTypeBadgeComponent, never>;
3253
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShowTypeBadgeComponent, "show-type-badge", never, { "show": { "alias": "show"; "required": true; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
3254
+ }
3255
+
3256
+ declare class ShowCardSkeletonComponent {
3257
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowCardSkeletonComponent, never>;
3258
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShowCardSkeletonComponent, "show-card-skeleton", never, {}, {}, never, never, true, never>;
3259
+ }
3260
+
3261
+ declare class AppBreadcumbComponent {
3262
+ homeUrl: string | undefined;
3263
+ steps: BreadcrumbStep[];
3264
+ theme: BreadcrumbTheme;
3265
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppBreadcumbComponent, never>;
3266
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppBreadcumbComponent, "app-breadcrumb", never, { "homeUrl": { "alias": "homeUrl"; "required": false; }; "steps": { "alias": "steps"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, {}, never, never, true, never>;
1721
3267
  }
1722
3268
 
1723
3269
  declare class LanguageSwitcherComponent {
@@ -1730,6 +3276,67 @@ declare class LanguageSwitcherComponent {
1730
3276
  static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSwitcherComponent, "language-switcher", never, {}, {}, never, never, true, never>;
1731
3277
  }
1732
3278
 
3279
+ declare class SidebarMenuComponent implements OnInit {
3280
+ private router;
3281
+ protected sidebarState: SidebarStateService;
3282
+ /** Menu items to render. Each app owns its own routes/roles and passes them in here. */
3283
+ items: SidebarMenuItem[];
3284
+ /** Route the brand/logo link should navigate to (e.g. the dashboard). */
3285
+ homePath: string;
3286
+ /** Optional brand logo shown in the sidebar header. Omit to render no logo. */
3287
+ logoUrl: string;
3288
+ logoAlt: string;
3289
+ private readonly IS_ACTIVE_MATCH_OPTIONS;
3290
+ constructor(router: Router, sidebarState: SidebarStateService);
3291
+ ngOnInit(): void;
3292
+ private updateSubmenuState;
3293
+ isSubmenuActive(item: SidebarMenuItem): boolean;
3294
+ toggleSubmenu(item: SidebarMenuItem): void;
3295
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuComponent, never>;
3296
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarMenuComponent, "sidebar-menu", never, { "items": { "alias": "items"; "required": true; }; "homePath": { "alias": "homePath"; "required": true; }; "logoUrl": { "alias": "logoUrl"; "required": false; }; "logoAlt": { "alias": "logoAlt"; "required": false; }; }, {}, never, never, true, never>;
3297
+ }
3298
+
3299
+ declare class AdminNavbarComponent {
3300
+ protected sidebarState: SidebarStateService;
3301
+ /** Currently logged-in admin, or null while it hasn't loaded yet. */
3302
+ admin: Admin | null;
3303
+ /** Route the "my account" menu item should link to. */
3304
+ myAccountPath: string;
3305
+ /** Emitted when the admin clicks "log out" in the profile menu. */
3306
+ logout: EventEmitter<void>;
3307
+ isProfileMenuOpen: WritableSignal<boolean>;
3308
+ constructor(sidebarState: SidebarStateService);
3309
+ toggleProfileMenu(): void;
3310
+ onLogout(): void;
3311
+ clickout(event: Event): void;
3312
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdminNavbarComponent, never>;
3313
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdminNavbarComponent, "admin-navbar", never, { "admin": { "alias": "admin"; "required": false; }; "myAccountPath": { "alias": "myAccountPath"; "required": false; }; }, { "logout": "logout"; }, never, never, true, never>;
3314
+ }
3315
+
3316
+ /**
3317
+ * Reusable admin shell: sidebar + navbar + router-outlet.
3318
+ *
3319
+ * This component is intentionally free of any auth/session logic — that stays
3320
+ * in the consuming app. Project app-specific global UI (e.g. a session-timeout
3321
+ * modal) through the default content slot.
3322
+ */
3323
+ declare class AdminLayoutComponent {
3324
+ items: SidebarMenuItem[];
3325
+ homePath: string;
3326
+ admin: Admin | null;
3327
+ myAccountPath: string;
3328
+ logoUrl: string;
3329
+ logoAlt: string;
3330
+ logout: EventEmitter<void>;
3331
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdminLayoutComponent, never>;
3332
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdminLayoutComponent, "admin-layout", never, { "items": { "alias": "items"; "required": true; }; "homePath": { "alias": "homePath"; "required": true; }; "admin": { "alias": "admin"; "required": false; }; "myAccountPath": { "alias": "myAccountPath"; "required": false; }; "logoUrl": { "alias": "logoUrl"; "required": false; }; "logoAlt": { "alias": "logoAlt"; "required": false; }; }, { "logout": "logout"; }, never, ["*"], true, never>;
3333
+ }
3334
+
3335
+ declare class PublicLayoutComponent {
3336
+ static ɵfac: i0.ɵɵFactoryDeclaration<PublicLayoutComponent, never>;
3337
+ static ɵcmp: i0.ɵɵComponentDeclaration<PublicLayoutComponent, "app-public-layout", never, {}, {}, never, never, true, never>;
3338
+ }
3339
+
1733
3340
  declare class FormInputComponent implements ControlValueAccessor {
1734
3341
  ngControl: NgControl;
1735
3342
  private transloco;
@@ -1740,12 +3347,14 @@ declare class FormInputComponent implements ControlValueAccessor {
1740
3347
  placeholder: string;
1741
3348
  required: boolean;
1742
3349
  readonly: boolean;
3350
+ maxlength: number | null;
1743
3351
  minlength: number | null;
3352
+ max: number | null;
1744
3353
  min: number | null;
1745
3354
  step: number | null;
1746
3355
  pattern: string | null;
1747
3356
  fieldGroupClass: string;
1748
- autocomplete: boolean;
3357
+ autocomplete: string;
1749
3358
  value: any;
1750
3359
  disabled: boolean;
1751
3360
  onChange: any;
@@ -1762,12 +3371,68 @@ declare class FormInputComponent implements ControlValueAccessor {
1762
3371
  get inputClasses(): string;
1763
3372
  get fieldGroupClasses(): string;
1764
3373
  static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, [{ optional: true; self: true; }, null]>;
1765
- static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "form-input", never, { "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "min": { "alias": "min"; "required": false; }; "step": { "alias": "step"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, {}, never, never, true, never>;
3374
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "form-input", never, { "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "step": { "alias": "step"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, {}, never, never, true, never>;
3375
+ }
3376
+
3377
+ type IdentityDocumentType = 'CC' | 'CE' | 'PA' | 'NIT' | 'TI' | 'RC';
3378
+ /**
3379
+ * Campo de documento de identidad (QTN-44).
3380
+ *
3381
+ * Componente compartido que, dado un `documentType` (CC, CE, PA, NIT, TI, RC),
3382
+ * aplica automáticamente el formato y las validaciones correspondientes a los
3383
+ * lineamientos de documentos de identidad de Colombia: solo dígitos y rango de
3384
+ * longitud para CC/TI/RC/NIT, alfanumérico con longitud máxima para CE/PA, y
3385
+ * validación opcional del dígito de verificación (DV) para NIT.
3386
+ *
3387
+ * Sigue el mismo patrón que `NumberInputComponent`: standalone,
3388
+ * `ControlValueAccessor` + `Validator` vía `NG_VALUE_ACCESSOR`/`NG_VALIDATORS`.
3389
+ */
3390
+ declare class IdentityDocumentInputComponent implements ControlValueAccessor, Validator, OnChanges {
3391
+ transloco: TranslocoService;
3392
+ private injector;
3393
+ private elementRef;
3394
+ label: string;
3395
+ name: string;
3396
+ id: string;
3397
+ placeholder: string;
3398
+ required: boolean;
3399
+ readonly: boolean;
3400
+ fieldGroupClass: string;
3401
+ documentType: IdentityDocumentType | '';
3402
+ validateCheckDigit: boolean;
3403
+ value: string | null;
3404
+ disabled: boolean;
3405
+ onChange: any;
3406
+ onTouched: any;
3407
+ private _ngControl;
3408
+ constructor(transloco: TranslocoService, injector: Injector, elementRef: ElementRef);
3409
+ get ngControl(): NgControl | null;
3410
+ ngOnChanges(changes: SimpleChanges): void;
3411
+ private get rule();
3412
+ get isDigitsOnly(): boolean;
3413
+ get inputMode(): string;
3414
+ get maxLength(): number | null;
3415
+ writeValue(value: any): void;
3416
+ registerOnChange(fn: any): void;
3417
+ registerOnTouched(fn: any): void;
3418
+ setDisabledState(isDisabled: boolean): void;
3419
+ onKeyDown(event: KeyboardEvent): void;
3420
+ onInput(rawValue: string): void;
3421
+ validate(control: AbstractControl): ValidationErrors | null;
3422
+ private validateLength;
3423
+ private validateNitWithCheckDigit;
3424
+ static computeNitCheckDigit(nit: string): number;
3425
+ get inputId(): string;
3426
+ get showError(): boolean;
3427
+ get errorMessage(): string;
3428
+ get fieldGroupClasses(): string;
3429
+ static ɵfac: i0.ɵɵFactoryDeclaration<IdentityDocumentInputComponent, never>;
3430
+ static ɵcmp: i0.ɵɵComponentDeclaration<IdentityDocumentInputComponent, "identity-document-input", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; "documentType": { "alias": "documentType"; "required": false; }; "validateCheckDigit": { "alias": "validateCheckDigit"; "required": false; }; }, {}, never, never, true, never>;
1766
3431
  }
1767
3432
 
1768
3433
  declare class FormSelectComponent implements ControlValueAccessor {
1769
3434
  ngControl: NgControl;
1770
- private transloco;
3435
+ protected transloco: TranslocoService;
1771
3436
  label: string;
1772
3437
  name: string;
1773
3438
  id: string;
@@ -1791,7 +3456,6 @@ declare class FormSelectComponent implements ControlValueAccessor {
1791
3456
  get inputId(): string;
1792
3457
  get showError(): boolean;
1793
3458
  get errorMessage(): string;
1794
- get resolvedDefaultOptionLabel(): string;
1795
3459
  get fieldGroupClasses(): string;
1796
3460
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectComponent, [{ optional: true; self: true; }, null]>;
1797
3461
  static ɵcmp: i0.ɵɵComponentDeclaration<FormSelectComponent, "form-select", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "options": { "alias": "options"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; "showDefaultOption": { "alias": "showDefaultOption"; "required": false; }; "defaultOptionLabel": { "alias": "defaultOptionLabel"; "required": false; }; }, {}, never, never, true, never>;
@@ -1829,6 +3493,105 @@ declare class FormTextareaComponent implements ControlValueAccessor {
1829
3493
  static ɵcmp: i0.ɵɵComponentDeclaration<FormTextareaComponent, "form-textarea", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; }, {}, never, never, true, never>;
1830
3494
  }
1831
3495
 
3496
+ declare class NumberInputComponent implements ControlValueAccessor, Validator, OnChanges {
3497
+ transloco: TranslocoService;
3498
+ private injector;
3499
+ private elementRef;
3500
+ label: string;
3501
+ name: string;
3502
+ id: string;
3503
+ placeholder: string;
3504
+ required: boolean;
3505
+ readonly: boolean;
3506
+ min: number | null;
3507
+ max: number | null;
3508
+ step: number;
3509
+ fieldGroupClass: string;
3510
+ value: number | null;
3511
+ disabled: boolean;
3512
+ onChange: any;
3513
+ onTouched: any;
3514
+ private _ngControl;
3515
+ constructor(transloco: TranslocoService, injector: Injector, elementRef: ElementRef);
3516
+ get ngControl(): NgControl | null;
3517
+ ngOnChanges(changes: SimpleChanges): void;
3518
+ validate(control: AbstractControl): ValidationErrors | null;
3519
+ writeValue(value: any): void;
3520
+ registerOnChange(fn: any): void;
3521
+ registerOnTouched(fn: any): void;
3522
+ setDisabledState(isDisabled: boolean): void;
3523
+ onInput(value: any): void;
3524
+ increment(): void;
3525
+ decrement(): void;
3526
+ get canIncrement(): boolean;
3527
+ get canDecrement(): boolean;
3528
+ get inputId(): string;
3529
+ get showError(): boolean;
3530
+ get errorMessage(): string;
3531
+ get fieldGroupClasses(): string;
3532
+ private clamp;
3533
+ private round;
3534
+ private emitNativeChange;
3535
+ private minValidator;
3536
+ private maxValidator;
3537
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent, never>;
3538
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent, "number-input", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; }, {}, never, never, true, never>;
3539
+ }
3540
+
3541
+ declare class PhoneInputComponent implements ControlValueAccessor, Validator, OnChanges {
3542
+ private transloco;
3543
+ private injector;
3544
+ label: string;
3545
+ name: string;
3546
+ id: string;
3547
+ placeholder: string;
3548
+ required: boolean;
3549
+ readonly: boolean;
3550
+ maxNationalDigits: number | null;
3551
+ minNationalDigits: number | null;
3552
+ defaultCountry: string;
3553
+ fieldGroupClass: string;
3554
+ readonly countries: tickera_angular_components.PhoneCountry[];
3555
+ readonly phoneOptions: {
3556
+ search: string;
3557
+ name: string;
3558
+ isoCode: string;
3559
+ dialCode: string;
3560
+ }[];
3561
+ selectedIso: string;
3562
+ nationalNumber: string;
3563
+ disabled: boolean;
3564
+ onChange: any;
3565
+ onTouched: any;
3566
+ onValidatorChange: () => void;
3567
+ private _ngControl;
3568
+ constructor(transloco: TranslocoService, injector: Injector);
3569
+ get ngControl(): NgControl | null;
3570
+ get selectedCountry(): tickera_angular_components.PhoneCountry;
3571
+ get dialCode(): string;
3572
+ dialCodeOf(isoCode: string): string;
3573
+ get value(): string;
3574
+ ngOnChanges(changes: SimpleChanges): void;
3575
+ registerOnValidatorChange(fn: () => void): void;
3576
+ validate(control: AbstractControl): ValidationErrors | null;
3577
+ writeValue(value: string | null | undefined): void;
3578
+ registerOnChange(fn: any): void;
3579
+ registerOnTouched(fn: any): void;
3580
+ setDisabledState(isDisabled: boolean): void;
3581
+ onInput(event: Event): void;
3582
+ onCountryChange(isoCode: string): void;
3583
+ get inputId(): string;
3584
+ get showError(): boolean;
3585
+ get errorMessage(): string;
3586
+ get effectivePlaceholder(): string;
3587
+ get fieldGroupClasses(): string;
3588
+ flag(isoCode: string): string;
3589
+ private sanitize;
3590
+ private nationalDigits;
3591
+ static ɵfac: i0.ɵɵFactoryDeclaration<PhoneInputComponent, never>;
3592
+ static ɵcmp: i0.ɵɵComponentDeclaration<PhoneInputComponent, "phone-input", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxNationalDigits": { "alias": "maxNationalDigits"; "required": false; }; "minNationalDigits": { "alias": "minNationalDigits"; "required": false; }; "defaultCountry": { "alias": "defaultCountry"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; }, {}, never, never, true, never>;
3593
+ }
3594
+
1832
3595
  declare class FormEditorComponent implements ControlValueAccessor, OnInit, OnDestroy {
1833
3596
  ngControl: NgControl;
1834
3597
  private transloco;
@@ -1846,7 +3609,8 @@ declare class FormEditorComponent implements ControlValueAccessor, OnInit, OnDes
1846
3609
  onChange: any;
1847
3610
  onTouched: any;
1848
3611
  private subscription;
1849
- constructor(ngControl: NgControl, transloco: TranslocoService);
3612
+ isBrowser: boolean;
3613
+ constructor(ngControl: NgControl, transloco: TranslocoService, platformId: object);
1850
3614
  ngOnInit(): void;
1851
3615
  ngOnDestroy(): void;
1852
3616
  writeValue(value: any): void;
@@ -1857,7 +3621,7 @@ declare class FormEditorComponent implements ControlValueAccessor, OnInit, OnDes
1857
3621
  get showError(): boolean;
1858
3622
  get errorMessage(): string;
1859
3623
  get fieldGroupClasses(): string;
1860
- static ɵfac: i0.ɵɵFactoryDeclaration<FormEditorComponent, [{ optional: true; self: true; }, null]>;
3624
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormEditorComponent, [{ optional: true; self: true; }, null, null]>;
1861
3625
  static ɵcmp: i0.ɵɵComponentDeclaration<FormEditorComponent, "form-editor", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "toolbar": { "alias": "toolbar"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; }, {}, never, never, true, never>;
1862
3626
  }
1863
3627
 
@@ -2021,14 +3785,14 @@ declare class FileUploadPreviewComponent {
2021
3785
  interface AsyncSelectConfig<T = any> {
2022
3786
  load: (params?: {
2023
3787
  search?: string;
2024
- parentId?: number;
3788
+ parentId?: number | number[];
2025
3789
  }) => Observable<T>;
2026
3790
  map: (response: T) => SelectOption[];
2027
3791
  }
2028
3792
  declare class AsyncSelectComponent implements OnInit, OnDestroy, OnChanges, ControlValueAccessor {
2029
3793
  config?: AsyncSelectConfig<any>;
2030
3794
  items: SelectOption[];
2031
- parentId?: number | null;
3795
+ parentId?: number | number[] | null;
2032
3796
  label: string;
2033
3797
  placeholder: string;
2034
3798
  name: string;
@@ -2060,6 +3824,7 @@ declare class AsyncSelectComponent implements OnInit, OnDestroy, OnChanges, Cont
2060
3824
  private searchMode;
2061
3825
  private loadAndMap;
2062
3826
  private fetchData;
3827
+ private hasParentId;
2063
3828
  private handleParentIdChange;
2064
3829
  onSearch(event: any): void;
2065
3830
  onSelectChange(value: any): void;
@@ -2471,7 +4236,7 @@ declare class ShowMultiSelectComponent implements OnInit, OnDestroy, ControlValu
2471
4236
  static ɵcmp: i0.ɵɵComponentDeclaration<ShowMultiSelectComponent, "show-multi-select", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
2472
4237
  }
2473
4238
 
2474
- declare class PriceZoneSelectComponent implements OnInit, OnDestroy, ControlValueAccessor, Validator {
4239
+ declare class PriceZoneSelectComponent implements OnInit, OnChanges, OnDestroy, ControlValueAccessor, Validator {
2475
4240
  private platformId;
2476
4241
  private priceZoneService;
2477
4242
  label: string;
@@ -2482,6 +4247,7 @@ declare class PriceZoneSelectComponent implements OnInit, OnDestroy, ControlValu
2482
4247
  showError: boolean;
2483
4248
  customClass: string;
2484
4249
  control?: AbstractControl | null;
4250
+ showIds: number[];
2485
4251
  priceZoneChange: EventEmitter<number | null>;
2486
4252
  priceZones: WritableSignal<SelectOption[]>;
2487
4253
  loading: WritableSignal<boolean>;
@@ -2493,6 +4259,7 @@ declare class PriceZoneSelectComponent implements OnInit, OnDestroy, ControlValu
2493
4259
  onTouched: any;
2494
4260
  constructor(platformId: string, priceZoneService: PriceZoneService);
2495
4261
  ngOnInit(): void;
4262
+ ngOnChanges(changes: SimpleChanges): void;
2496
4263
  get formControl(): FormControl;
2497
4264
  ngOnDestroy(): void;
2498
4265
  onSearchChange(search: string): void;
@@ -2505,7 +4272,29 @@ declare class PriceZoneSelectComponent implements OnInit, OnDestroy, ControlValu
2505
4272
  } | null;
2506
4273
  get isInvalid(): boolean;
2507
4274
  static ɵfac: i0.ɵɵFactoryDeclaration<PriceZoneSelectComponent, never>;
2508
- static ɵcmp: i0.ɵɵComponentDeclaration<PriceZoneSelectComponent, "price-zone-select", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "showError": { "alias": "showError"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, { "priceZoneChange": "priceZoneChange"; }, never, never, true, never>;
4275
+ static ɵcmp: i0.ɵɵComponentDeclaration<PriceZoneSelectComponent, "price-zone-select", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "showError": { "alias": "showError"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "control": { "alias": "control"; "required": false; }; "showIds": { "alias": "showIds"; "required": false; }; }, { "priceZoneChange": "priceZoneChange"; }, never, never, true, never>;
4276
+ }
4277
+
4278
+ declare class PerformanceTicketStatusBadgeComponent {
4279
+ ticket: PerformanceTicket;
4280
+ size: BadgeSize;
4281
+ protected get statusColors(): {
4282
+ text: string;
4283
+ bg: string;
4284
+ };
4285
+ static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceTicketStatusBadgeComponent, never>;
4286
+ static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceTicketStatusBadgeComponent, "performance-ticket-status-badge", never, { "ticket": { "alias": "ticket"; "required": true; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
4287
+ }
4288
+
4289
+ declare class PerformanceStatusBadgeComponent {
4290
+ performance: Performance;
4291
+ size: BadgeSize;
4292
+ protected get statusColors(): {
4293
+ text: string;
4294
+ bg: string;
4295
+ };
4296
+ static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceStatusBadgeComponent, never>;
4297
+ static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceStatusBadgeComponent, "performance-status-badge", never, { "performance": { "alias": "performance"; "required": true; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
2509
4298
  }
2510
4299
 
2511
4300
  declare class DaySelectorGridComponent {
@@ -2514,6 +4303,13 @@ declare class DaySelectorGridComponent {
2514
4303
  protected listEventService: PerformancesListEventsService;
2515
4304
  protected toastService: ToastService;
2516
4305
  displayMode: 'grid' | 'carousel';
4306
+ /**
4307
+ * true cuando este selector se usa desde el canal backoffice: en ese
4308
+ * caso también deben aparecer las funciones PRIVATE (nunca PEDAGOGIC,
4309
+ * que siempre usa su propio flujo). false (por defecto) es el canal
4310
+ * ecommerce, que solo ve funciones PUBLIC.
4311
+ */
4312
+ isAdmin: boolean;
2517
4313
  loadingData: WritableSignal<boolean>;
2518
4314
  days: WritableSignal<PerformanceAvailableDay[]>;
2519
4315
  carouselTrack?: ElementRef<HTMLElement>;
@@ -2523,17 +4319,22 @@ declare class DaySelectorGridComponent {
2523
4319
  onToggle(day: PerformanceAvailableDay): void;
2524
4320
  scrollCarousel(direction: 1 | -1): void;
2525
4321
  static ɵfac: i0.ɵɵFactoryDeclaration<DaySelectorGridComponent, never>;
2526
- static ɵcmp: i0.ɵɵComponentDeclaration<DaySelectorGridComponent, "day-selector-grid", never, { "displayMode": { "alias": "displayMode"; "required": false; }; }, {}, never, never, true, never>;
4322
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaySelectorGridComponent, "day-selector-grid", never, { "displayMode": { "alias": "displayMode"; "required": false; }; "isAdmin": { "alias": "isAdmin"; "required": false; }; }, {}, never, never, true, never>;
2527
4323
  }
2528
4324
 
2529
4325
  declare class PerformanceCardComponent {
2530
4326
  protected listEventService: PerformancesListEventsService;
2531
4327
  card: DailyPerformanceItem;
4328
+ linkText: string;
4329
+ linkUrlFn?: (card: DailyPerformanceItem) => string;
4330
+ linkQueryParams?: Record<string, any>;
4331
+ readonly PerformanceVisibilityType: typeof PerformanceVisibilityType;
2532
4332
  constructor(listEventService: PerformancesListEventsService);
4333
+ get badgeColor(): 'success' | 'error';
2533
4334
  onSelect(): void;
2534
4335
  isSelected(): boolean;
2535
4336
  static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceCardComponent, never>;
2536
- static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceCardComponent, "performance-card", never, { "card": { "alias": "card"; "required": true; }; }, {}, never, never, true, never>;
4337
+ static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceCardComponent, "performance-card", never, { "card": { "alias": "card"; "required": true; }; "linkText": { "alias": "linkText"; "required": false; }; "linkUrlFn": { "alias": "linkUrlFn"; "required": false; }; "linkQueryParams": { "alias": "linkQueryParams"; "required": false; }; }, {}, never, never, true, never>;
2537
4338
  }
2538
4339
 
2539
4340
  declare class PerformanceCardListComponent {
@@ -2541,6 +4342,16 @@ declare class PerformanceCardListComponent {
2541
4342
  protected performanceService: PerformanceService;
2542
4343
  protected listEventService: PerformancesListEventsService;
2543
4344
  protected toastService: ToastService;
4345
+ linkText: string;
4346
+ linkUrlFn?: (card: DailyPerformanceItem) => string;
4347
+ linkQueryParams?: Record<string, any>;
4348
+ /**
4349
+ * true cuando esta lista se usa desde el canal backoffice: en ese caso
4350
+ * también deben aparecer las funciones PRIVATE (nunca PEDAGOGIC, que
4351
+ * siempre usa su propio flujo). false (por defecto) es el canal
4352
+ * ecommerce, que solo ve funciones PUBLIC.
4353
+ */
4354
+ isAdmin: boolean;
2544
4355
  loadingData: WritableSignal<boolean>;
2545
4356
  performances: WritableSignal<DailyPerformanceItem[]>;
2546
4357
  constructor(platformId: object, performanceService: PerformanceService, listEventService: PerformancesListEventsService, toastService: ToastService);
@@ -2548,7 +4359,7 @@ declare class PerformanceCardListComponent {
2548
4359
  private loadData;
2549
4360
  get selectedDayDate(): string | null;
2550
4361
  static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceCardListComponent, never>;
2551
- static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceCardListComponent, "performance-card-list", never, {}, {}, never, never, true, never>;
4362
+ static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceCardListComponent, "performance-card-list", never, { "linkText": { "alias": "linkText"; "required": false; }; "linkUrlFn": { "alias": "linkUrlFn"; "required": false; }; "linkQueryParams": { "alias": "linkQueryParams"; "required": false; }; "isAdmin": { "alias": "isAdmin"; "required": false; }; }, {}, never, never, true, never>;
2552
4363
  }
2553
4364
 
2554
4365
  declare class PerformanceStepperComponent {
@@ -2577,9 +4388,9 @@ declare class ShowsFilterComponent {
2577
4388
  }
2578
4389
 
2579
4390
  interface PriceZoneItem {
2580
- colorClass: string;
4391
+ color: string;
2581
4392
  name: string;
2582
- seatsAvailable: number;
4393
+ available_seats: number;
2583
4394
  price: string;
2584
4395
  }
2585
4396
 
@@ -2595,5 +4406,464 @@ declare class ZonePriceListComponent {
2595
4406
  static ɵcmp: i0.ɵɵComponentDeclaration<ZonePriceListComponent, "zone-price-list", never, { "zones": { "alias": "zones"; "required": true; }; }, {}, never, never, true, never>;
2596
4407
  }
2597
4408
 
2598
- export { ADMIN_API_ROUTES, ALERT_ICONS, AdminSelectComponent, AdminService, ApiService, AppAlertComponent, AppButtonComponent, AppLinkButtonComponent, AppModalComponent, AsyncSelectComponent, AuditInformationComponent, BASE_BUTTON_CLASSES, BASE_INPUT_CLASSES, BUTTON_SIZES_CLASSES, BUTTON_VARIANT_CLASSES, CITY_API_ENDPOINTS, COUNTRY_API_ENDPOINTS, CUSTOMERS_API_ROUTES, ChangePasswordFormComponent, ChangePasswordFormService, CitiesService, CitySelectComponent, ColorPickerComponent, CorporateBondStatus, CountrySelectComponent, CountryService, CouponApplicability, CouponDiscountType, CouponStatus, CustomerSelectComponent, CustomerService, DateInputComponent, DateService, DaySelectorGridComponent, DeleteConfirmationComponent, DeleteConfirmationService, DynamicTableComponent, ERROR_INPUT_CLASSES, EndDateGreaterThanStartValidator, FORM_ERROR_MESSAGES, FileType, FileUploadComponent, FileUploadPreviewComponent, FormEditorComponent, FormInputComponent, FormSelectComponent, FormTextareaComponent, GiftBondStatus, LanguageSwitcherComponent, LoadingModalService, LoadingmModalComponent, MinTodayValidator, MustMatchValidator, OrderItemType, OrderStatus, PERFORMANCES_API_ROUTES, PRICE_ZONES_API_ROUTES, PRODUCTS_API_ROUTES, PRODUCT_CATEGORIES_API_ROUTES, PRODUCT_TAGS_API_ROUTES, PRODUCT_TYPES_API_ROUTES, PerformanceCardComponent, PerformanceCardListComponent, PerformanceMultiSelectComponent, PerformanceSelectComponent, PerformanceService, PerformanceStatus, PerformanceStepperComponent, PerformanceTicketStatus, PerformancesListEventsService, PriceZoneEventService, PriceZoneFormModalService, PriceZoneSelectComponent, PriceZoneService, ProductCategoryService, ProductMultiSelectComponent, ProductSelectComponent, ProductService, ProductTagService, ProductTypeService, RoomMapElementOrientation, RoomMapElementType, SHOWS_API_ROUTES, STATE_API_ENDPOINTS, ShowMultiSelectComponent, ShowSelectComponent, ShowService, ShowsFilterComponent, StateSelectComponent, StatesService, TICKERA_COMPONENTS_CONFIG, TickeraTranslocoLoader, ToastService, ToggleSwitchComponent, VENUES_API_ROUTES, ZonePriceItemComponent, ZonePriceListComponent, authInterceptor, formatCitiesResponseToSelect, getBrowserLanguage, getCustomerFullname, getStoredLanguage, parseJsonToFormDataAdvanced, provideTickeraComponents, resolveLanguage, setStoredLanguage, transformImageToFile };
2599
- export type { Admin, AdminsResponse, AsyncSelectConfig, Auditable, CitiesResponse, City, CityResponse, CorporateBond, CorporateBondCode, CorporateBondResponse, CountriesResponse, Country, CountryResponse, Coupon, CouponResponse, Customer, CustomerResponse, CustomersResponse, DailyPerformanceHall, DailyPerformanceItem, DailyPerformancePriceZone, DailyPerformanceShow, DailyPerformanceVenue, DailyPerformancesResponse, DeleteConfirmationOpen, DragDropEvent, DynamicTableHeader, ElementPropertiesTab, FetchCitiesParams, FetchDailyPerformancesParams, FetchProductCategoriesParams, FetchProductTagsParams, FetchProductTypesParams, FetchShowsParams, FileUploadConfig, FindAllPriceZoneParams, GiftBond, GiftBondResponse, GiftBondsResponse, Hall, HallFloor, NumerationConfig, Order, OrderItem, OrderResponse, OrdersResponse, Performance, PerformanceAvailableDay, PerformanceBookingDataResponse, PerformanceResponse, PerformanceTicket, PerformancesAvailableDaysResponse, PerformancesResponseInterface, PriceZone, PriceZoneResponse, PriceZoneUpdateResponse, PriceZonesResponseInterface, Product, ProductCategoriesResponse, ProductCategory, ProductCategoryResponse, ProductImage, ProductResponse, ProductTag, ProductTagResponse, ProductTagsResponse, ProductTaxonomy, ProductType, ProductTypeResponse, ProductTypesResponse, ProductsResponseInterface, RoomMap, RoomMapBaseElement, RoomMapCanvasConfiguration, RoomMapCanvasElement, RoomMapChairPosition, RoomMapElementTemplate, RoomMapExitElement, RoomMapGridPosition, RoomMapPosition, RoomMapProductionAreaElement, RoomMapSeatDisplayState, RoomMapSeatElement, RoomMapSeatState, RoomMapSize, RoomMapStageElement, RoomMapTableElement, RoomMapUnavailableElement, RoomMapZoneElement, SelectOption, Show, ShowCategoriesResponse, ShowCategory, ShowCategoryResponse, ShowGender, ShowGenderResponse, ShowGendersResponse, ShowImage, ShowResponse, ShowType, ShowsResponseInterface, State, StateResponse, StatesResponse, TickeraComponentsConfig, UploadedFile, ValidateCorporateBondResponse, ValidateCouponResponse, ValidateGiftBondResponse, Venue, VenueImage };
4409
+ declare class TicketMapWidgetComponent {
4410
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapWidgetComponent, never>;
4411
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapWidgetComponent, "ticket-map-widget", never, {}, {}, never, ["*"], true, never>;
4412
+ }
4413
+
4414
+ declare class TicketMapWidgetHeaderComponent {
4415
+ title: string;
4416
+ subtitle: string;
4417
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapWidgetHeaderComponent, never>;
4418
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapWidgetHeaderComponent, "ticket-map-widget-header", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; }, {}, never, ["*"], true, never>;
4419
+ }
4420
+
4421
+ declare class TicketMapZoomControlsComponent {
4422
+ private zoomService;
4423
+ readonly currentZoom: i0.Signal<number>;
4424
+ readonly zoomPercentage: i0.Signal<string>;
4425
+ constructor(zoomService: TicketMapZoomService);
4426
+ zoomIn(): void;
4427
+ zoomOut(): void;
4428
+ resetZoom(): void;
4429
+ fitToContainer(): void;
4430
+ handleZoomAction(action: string): void;
4431
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapZoomControlsComponent, never>;
4432
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapZoomControlsComponent, "ticket-map-zoom-controls", never, {}, {}, never, never, true, never>;
4433
+ }
4434
+
4435
+ declare class TicketMapFloorSelectorComponent {
4436
+ private bookingDataService;
4437
+ readonly availableFloors: i0.Signal<tickera_angular_components.HallFloor[]>;
4438
+ readonly visibleFloorIds: i0.Signal<Set<number>>;
4439
+ readonly hasMultipleVisible: i0.Signal<boolean>;
4440
+ constructor(bookingDataService: PerformanceBookingDataService);
4441
+ isFloorVisible(floorId: number): boolean;
4442
+ canToggleOff(floorId: number): boolean;
4443
+ toggleFloor(floorId: number): void;
4444
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapFloorSelectorComponent, never>;
4445
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapFloorSelectorComponent, "ticket-map-floor-selector", never, {}, {}, never, never, true, never>;
4446
+ }
4447
+
4448
+ declare class PerformanceTicketMapComponent implements OnDestroy, AfterViewInit {
4449
+ private platformId;
4450
+ protected bookingDataService: PerformanceBookingDataService;
4451
+ protected feedbackModalService: FeedbackModalService;
4452
+ protected selectionService: TicketSelectionService;
4453
+ protected zoomService: TicketMapZoomService;
4454
+ selectionChange: EventEmitter<PerformanceTicket[]>;
4455
+ needsLoginError: EventEmitter<any>;
4456
+ readOnly: boolean;
4457
+ needsLogin: boolean;
4458
+ isLoggedIn: boolean;
4459
+ stageComponent?: StageComponent;
4460
+ protected tooltipData: i0.WritableSignal<TicketMapTooltipData | null>;
4461
+ protected renderData: i0.Signal<ElementRenderData[]>;
4462
+ private stageReady;
4463
+ private autoFitDone;
4464
+ private resizeObserver?;
4465
+ protected floorLayerRefs: i0.Signal<readonly CoreShapeComponent[]>;
4466
+ protected floorLayerName(floorId: number): string;
4467
+ protected floorGroups: i0.Signal<{
4468
+ floorId: number;
4469
+ elements: ElementRenderData[];
4470
+ }[]>;
4471
+ constructor(platformId: object, bookingDataService: PerformanceBookingDataService, feedbackModalService: FeedbackModalService, selectionService: TicketSelectionService, zoomService: TicketMapZoomService);
4472
+ protected get isBrowser(): boolean;
4473
+ ngAfterViewInit(): void;
4474
+ private setupResizeObserver;
4475
+ private syncStageToContainer;
4476
+ ngOnDestroy(): void;
4477
+ private getInternalPointer;
4478
+ protected selectHallFloor(floorId: number): void;
4479
+ protected handleStageClick(konvaEvent: any): void;
4480
+ protected handleStageMouseMove(konvaEvent: any): void;
4481
+ protected handleStageMouseLeave(): void;
4482
+ protected handleWheel(konvaEvent: any): void;
4483
+ protected trackByElementId(_index: number, item: ElementRenderData): number;
4484
+ protected trackByFloorId(_index: number, floor: HallFloorOption): HallFloorOption;
4485
+ static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceTicketMapComponent, never>;
4486
+ static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceTicketMapComponent, "performance-ticket-map", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "needsLogin": { "alias": "needsLogin"; "required": false; }; "isLoggedIn": { "alias": "isLoggedIn"; "required": false; }; }, { "selectionChange": "selectionChange"; "needsLoginError": "needsLoginError"; }, never, never, true, never>;
4487
+ }
4488
+
4489
+ declare class TicketMapPriceZonesComponent {
4490
+ protected bookingDataService: PerformanceBookingDataService;
4491
+ protected priceZones: i0.Signal<tickera_angular_components.PriceZone[]>;
4492
+ protected isFilterable: i0.Signal<boolean>;
4493
+ protected hasActiveFilter: i0.Signal<boolean>;
4494
+ protected isZoneFiltered(zoneId: number): boolean;
4495
+ protected ticketCount(zoneId: number): number;
4496
+ protected toggleZone(zoneId: number): void;
4497
+ protected clearFilter(): void;
4498
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapPriceZonesComponent, never>;
4499
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapPriceZonesComponent, "ticket-map-price-zones", never, {}, {}, never, never, true, never>;
4500
+ }
4501
+
4502
+ declare class TicketMapProductSelectionItemComponent {
4503
+ protected selectionService: TicketSelectionService;
4504
+ product: Product;
4505
+ constructor(selectionService: TicketSelectionService);
4506
+ get quantity(): number;
4507
+ get firstImage(): string | undefined;
4508
+ increment(): void;
4509
+ decrement(): void;
4510
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapProductSelectionItemComponent, never>;
4511
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapProductSelectionItemComponent, "ticket-map-product-selection-item", never, { "product": { "alias": "product"; "required": true; }; }, {}, never, never, true, never>;
4512
+ }
4513
+
4514
+ declare class TIcketMapProductSelectionComponent {
4515
+ title: string;
4516
+ subtitle: string;
4517
+ private bookingDataService;
4518
+ readonly products: i0.Signal<tickera_angular_components.Product[]>;
4519
+ static ɵfac: i0.ɵɵFactoryDeclaration<TIcketMapProductSelectionComponent, never>;
4520
+ static ɵcmp: i0.ɵɵComponentDeclaration<TIcketMapProductSelectionComponent, "ticket-map-product-selection", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; }, {}, never, never, true, never>;
4521
+ }
4522
+
4523
+ declare class TicketMapTotalsComponent {
4524
+ protected bookingDataService: PerformanceBookingDataService;
4525
+ protected selectionDetailsService: TicketSelectionDetailsService;
4526
+ protected selectionDiscountService: TicketSelectionDiscountService;
4527
+ protected selectionTotalsService: TicketSelectionTotalsService;
4528
+ protected selectionService: TicketSelectionService;
4529
+ private activatedRoute;
4530
+ title: string;
4531
+ buttonText: string;
4532
+ loadingButtonText: string;
4533
+ isLoading: boolean;
4534
+ onPurchaseClick: EventEmitter<void>;
4535
+ constructor(bookingDataService: PerformanceBookingDataService, selectionDetailsService: TicketSelectionDetailsService, selectionDiscountService: TicketSelectionDiscountService, selectionTotalsService: TicketSelectionTotalsService, selectionService: TicketSelectionService, activatedRoute: ActivatedRoute);
4536
+ get serviceFee(): number;
4537
+ get performanceId(): number;
4538
+ get selectedTicketIds(): number[];
4539
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapTotalsComponent, never>;
4540
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapTotalsComponent, "ticket-map-totals", never, { "title": { "alias": "title"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "loadingButtonText": { "alias": "loadingButtonText"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; }, { "onPurchaseClick": "onPurchaseClick"; }, never, never, true, never>;
4541
+ }
4542
+
4543
+ declare class TicketMapWrapperComponent {
4544
+ selectionChange: EventEmitter<PerformanceTicket[]>;
4545
+ needsLoginError: EventEmitter<any>;
4546
+ readOnly: boolean;
4547
+ needsLogin: boolean;
4548
+ isLoggedIn: boolean;
4549
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapWrapperComponent, never>;
4550
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapWrapperComponent, "ticket-map-wrapper", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "needsLogin": { "alias": "needsLogin"; "required": false; }; "isLoggedIn": { "alias": "isLoggedIn"; "required": false; }; }, { "selectionChange": "selectionChange"; "needsLoginError": "needsLoginError"; }, never, never, true, never>;
4551
+ }
4552
+
4553
+ declare class SeatSelectionEmptySummaryComponent {
4554
+ static ɵfac: i0.ɵɵFactoryDeclaration<SeatSelectionEmptySummaryComponent, never>;
4555
+ static ɵcmp: i0.ɵɵComponentDeclaration<SeatSelectionEmptySummaryComponent, "seat-selection-empty-summary", never, {}, {}, never, never, true, never>;
4556
+ }
4557
+
4558
+ declare class SeatSelectionSummaryComponent {
4559
+ protected selectionService: TicketSelectionService;
4560
+ title: string;
4561
+ clearButtonText: string;
4562
+ constructor(selectionService: TicketSelectionService);
4563
+ trackByItem(item: PerformanceTicket): string | number;
4564
+ static ɵfac: i0.ɵɵFactoryDeclaration<SeatSelectionSummaryComponent, never>;
4565
+ static ɵcmp: i0.ɵɵComponentDeclaration<SeatSelectionSummaryComponent, "seat-selection-summary", never, { "title": { "alias": "title"; "required": false; }; "clearButtonText": { "alias": "clearButtonText"; "required": false; }; }, {}, never, never, true, never>;
4566
+ }
4567
+
4568
+ declare class SeatSelectionSummaryItemComponent {
4569
+ protected selectionService: TicketSelectionService;
4570
+ item: PerformanceTicket;
4571
+ constructor(selectionService: TicketSelectionService);
4572
+ getItemTypeIcon: (ticket: PerformanceTicket) => string;
4573
+ get isZone(): boolean;
4574
+ get zoneMax(): number;
4575
+ onZoneQuantityChange(value: number | null): void;
4576
+ removeItem(ticket: PerformanceTicket): void;
4577
+ static ɵfac: i0.ɵɵFactoryDeclaration<SeatSelectionSummaryItemComponent, never>;
4578
+ static ɵcmp: i0.ɵɵComponentDeclaration<SeatSelectionSummaryItemComponent, "seat-selection-summary-item", never, { "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
4579
+ }
4580
+
4581
+ declare class ConfirmationOrderModalComponent {
4582
+ private confirmationOrderModalService;
4583
+ private selectionDiscountService;
4584
+ private selectionTotalsService;
4585
+ private selectionService;
4586
+ private bookingDataService;
4587
+ modalTitle: string;
4588
+ confirmButtonText: string;
4589
+ confirmButtonTextLoading: string;
4590
+ loading: boolean;
4591
+ onConfirm: EventEmitter<any>;
4592
+ constructor(confirmationOrderModalService: ConfirmationOrderModalService, selectionDiscountService: TicketSelectionDiscountService, selectionTotalsService: TicketSelectionTotalsService, selectionService: TicketSelectionService, bookingDataService: PerformanceBookingDataService);
4593
+ get isOpen(): i0.WritableSignal<boolean>;
4594
+ get showTitle(): string | null;
4595
+ get performanceStartTime(): Date | string | null;
4596
+ get hallName(): string | null;
4597
+ get venueName(): string | null;
4598
+ get ticketItems(): PerformanceTicket[];
4599
+ get selectedProducts(): {
4600
+ product: Product;
4601
+ quantity: number;
4602
+ }[];
4603
+ ticketItemLabel(ticket: PerformanceTicket): string;
4604
+ ticketItemPrice(ticket: PerformanceTicket): number;
4605
+ private elementTypeLabel;
4606
+ get selectedCount(): number;
4607
+ get serviceFee(): number;
4608
+ get subtotalValue(): number;
4609
+ get ticketSubtotal(): number;
4610
+ get productSubtotal(): number;
4611
+ get productCount(): number;
4612
+ get totalValue(): number;
4613
+ get totalDiscounted(): number | null;
4614
+ get coupon(): tickera_angular_components.Coupon | null;
4615
+ get corporateBond(): tickera_angular_components.CorporateBond | null;
4616
+ get giftBond(): tickera_angular_components.GiftBondPurchase | null;
4617
+ get vipCard(): tickera_angular_components.VipCard | null;
4618
+ get subscription(): {
4619
+ service_fee_exempt: boolean;
4620
+ } | null;
4621
+ /**
4622
+ * Monto real del descuento en pesos ya calculado (aplica el % si el
4623
+ * cupón/VIP/abono es porcentual, o el valor fijo si no lo es) sobre el
4624
+ * subtotal de boletas. Se usa para TODAS las fuentes de descuento en el
4625
+ * modal: mostrar `coupon.discount_value` crudo era incorrecto para un
4626
+ * cupón porcentual (mostraba "10%" como si fueran "$10").
4627
+ */
4628
+ get discountAmount(): number;
4629
+ get isPercentageDiscount(): boolean;
4630
+ get rawServiceFee(): number;
4631
+ get isServiceFeeExempt(): boolean;
4632
+ onClose(): void;
4633
+ confirmOrder(): void;
4634
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationOrderModalComponent, never>;
4635
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationOrderModalComponent, "confirmation-order-modal", never, { "modalTitle": { "alias": "modalTitle"; "required": false; }; "confirmButtonText": { "alias": "confirmButtonText"; "required": false; }; "confirmButtonTextLoading": { "alias": "confirmButtonTextLoading"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "onConfirm": "onConfirm"; }, never, never, true, never>;
4636
+ }
4637
+
4638
+ declare class OrderInformationComponent {
4639
+ readonly transloco: TranslocoService;
4640
+ private readonly toastService;
4641
+ order: Order;
4642
+ showPayButton: boolean;
4643
+ createMpPreference?: (order: Order) => Observable<MercadoPagoPreference>;
4644
+ paymentLinkCreated: EventEmitter<MercadoPagoPreference>;
4645
+ isLoading: boolean;
4646
+ constructor(transloco: TranslocoService, toastService: ToastService);
4647
+ get hasServiceFeeExemption(): boolean;
4648
+ get showMpButton(): boolean;
4649
+ payWithMercadoPago(): void;
4650
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderInformationComponent, never>;
4651
+ static ɵcmp: i0.ɵɵComponentDeclaration<OrderInformationComponent, "order-information", never, { "order": { "alias": "order"; "required": true; }; "showPayButton": { "alias": "showPayButton"; "required": false; }; "createMpPreference": { "alias": "createMpPreference"; "required": false; }; }, { "paymentLinkCreated": "paymentLinkCreated"; }, never, never, true, never>;
4652
+ }
4653
+
4654
+ declare class OrderStatusBadgeComponent {
4655
+ protected transloco: TranslocoService;
4656
+ order: Order | RecentOrder;
4657
+ size: BadgeSize;
4658
+ constructor(transloco: TranslocoService);
4659
+ protected get statusColors(): {
4660
+ text: string;
4661
+ bg: string;
4662
+ };
4663
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderStatusBadgeComponent, never>;
4664
+ static ɵcmp: i0.ɵɵComponentDeclaration<OrderStatusBadgeComponent, "order-status-badge", never, { "order": { "alias": "order"; "required": true; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
4665
+ }
4666
+
4667
+ declare class OrderItemTypeBadgeComponent {
4668
+ protected transloco: TranslocoService;
4669
+ item: OrderItem;
4670
+ size: BadgeSize;
4671
+ constructor(transloco: TranslocoService);
4672
+ protected get statusColors(): {
4673
+ text: string;
4674
+ bg: string;
4675
+ };
4676
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderItemTypeBadgeComponent, never>;
4677
+ static ɵcmp: i0.ɵɵComponentDeclaration<OrderItemTypeBadgeComponent, "order-item-type-badge", never, { "item": { "alias": "item"; "required": true; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
4678
+ }
4679
+
4680
+ declare class OrderItemsComponent {
4681
+ private ticketQrModalService;
4682
+ order: Order;
4683
+ isCustomer: boolean;
4684
+ ticketCanOpenQr: (order: Order, ticket: tickera_angular_components.PerformanceTicket) => boolean;
4685
+ constructor(ticketQrModalService: TicketQrModalService);
4686
+ protected get orderItems(): Order['order_items'];
4687
+ protected get products(): Order['order_items'];
4688
+ protected get tickets(): Order['order_items'];
4689
+ protected get giftBonds(): Order['order_items'];
4690
+ protected get corporateBonds(): Order['order_items'];
4691
+ protected get vipRecharges(): Order['order_items'];
4692
+ protected get showActionColumn(): boolean;
4693
+ protected itemTotal(quantity: number, price: number | null): number;
4694
+ protected hasDiscount(): boolean;
4695
+ protected hasServiceFeeExemption(): boolean;
4696
+ protected hasTicketDiscount(item: OrderItem): boolean;
4697
+ protected get totals(): {
4698
+ giftBonds: number;
4699
+ corporateBonds: number;
4700
+ products: number;
4701
+ tickets: number;
4702
+ vipRecharges: number;
4703
+ };
4704
+ openTicketQr(ticketUuid: string, description: string): void;
4705
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderItemsComponent, never>;
4706
+ static ɵcmp: i0.ɵɵComponentDeclaration<OrderItemsComponent, "order-items", never, { "order": { "alias": "order"; "required": true; }; "isCustomer": { "alias": "isCustomer"; "required": false; }; }, {}, never, never, true, never>;
4707
+ }
4708
+
4709
+ declare class OrderDiscountAppliedComponent {
4710
+ order: Order;
4711
+ protected get discountInfo(): OrderDiscountInfo;
4712
+ protected get hasDiscount(): boolean;
4713
+ protected get discountPercentage(): number | null;
4714
+ protected get redeemedTicketsCount(): number | null;
4715
+ protected get serviceFeeExemptValue(): number;
4716
+ protected get badgeColors(): {
4717
+ text: string;
4718
+ bg: string;
4719
+ };
4720
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderDiscountAppliedComponent, never>;
4721
+ static ɵcmp: i0.ɵɵComponentDeclaration<OrderDiscountAppliedComponent, "order-discount-applied", never, { "order": { "alias": "order"; "required": true; }; }, {}, never, never, true, never>;
4722
+ }
4723
+
4724
+ interface BillingField {
4725
+ label: string;
4726
+ value: string | number | null;
4727
+ }
4728
+ declare class OrderBillingInfoComponent {
4729
+ order: Order;
4730
+ protected get fields(): BillingField[];
4731
+ protected get hasFields(): boolean;
4732
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderBillingInfoComponent, never>;
4733
+ static ɵcmp: i0.ɵɵComponentDeclaration<OrderBillingInfoComponent, "order-billing-info", never, { "order": { "alias": "order"; "required": true; }; }, {}, never, never, true, never>;
4734
+ }
4735
+
4736
+ declare class OrderTransactionsComponent {
4737
+ private transactionDetailsModalService;
4738
+ order: Order;
4739
+ constructor(transactionDetailsModalService: OrderTransactionDetailsModalService);
4740
+ protected get transactions(): Transaction[];
4741
+ protected get hasTransactions(): boolean;
4742
+ protected get txColors(): Record<string, {
4743
+ text: string;
4744
+ bg: string;
4745
+ }>;
4746
+ protected openTransaction(transaction: Transaction): void;
4747
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderTransactionsComponent, never>;
4748
+ static ɵcmp: i0.ɵɵComponentDeclaration<OrderTransactionsComponent, "order-transactions", never, { "order": { "alias": "order"; "required": true; }; }, {}, never, never, true, never>;
4749
+ }
4750
+
4751
+ declare class OrderTransactionDetailsModalComponent {
4752
+ private modalService;
4753
+ isOpen: WritableSignal<boolean> | null;
4754
+ transaction: Transaction | null;
4755
+ get modalIsOpen(): WritableSignal<boolean>;
4756
+ get selectedTransaction(): WritableSignal<Transaction | null>;
4757
+ protected get txColors(): Record<TransactionStatus, {
4758
+ text: string;
4759
+ bg: string;
4760
+ }>;
4761
+ protected get gatewayResponse(): string;
4762
+ onClose(): void;
4763
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderTransactionDetailsModalComponent, never>;
4764
+ static ɵcmp: i0.ɵɵComponentDeclaration<OrderTransactionDetailsModalComponent, "order-transaction-details-modal", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "transaction": { "alias": "transaction"; "required": false; }; }, {}, never, never, true, never>;
4765
+ }
4766
+
4767
+ declare class TicketQrComponent implements OnInit, OnDestroy {
4768
+ private ticketQrService;
4769
+ private platformId;
4770
+ ticketUuid: string;
4771
+ isCustomer: boolean;
4772
+ qrCanvas: ElementRef<HTMLCanvasElement>;
4773
+ loading: i0.WritableSignal<boolean>;
4774
+ error: i0.WritableSignal<boolean>;
4775
+ refreshing: i0.WritableSignal<boolean>;
4776
+ countdown: i0.WritableSignal<number>;
4777
+ downloading: i0.WritableSignal<boolean>;
4778
+ private destroy$;
4779
+ private refreshTimeout;
4780
+ private countdownInterval;
4781
+ private isFetching;
4782
+ constructor(ticketQrService: TicketQrService, platformId: Object);
4783
+ ngOnInit(): void;
4784
+ ngOnDestroy(): void;
4785
+ private onVisibilityChange;
4786
+ private onFocus;
4787
+ private refreshFromReenter;
4788
+ retry(): void;
4789
+ downloadPdf(): void;
4790
+ private clearTimers;
4791
+ private fetchAndRender;
4792
+ private scheduleRefresh;
4793
+ private startCountdown;
4794
+ private renderQr;
4795
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketQrComponent, never>;
4796
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketQrComponent, "performance-ticket-qr", never, { "ticketUuid": { "alias": "ticketUuid"; "required": true; }; "isCustomer": { "alias": "isCustomer"; "required": false; }; }, {}, never, never, true, never>;
4797
+ }
4798
+
4799
+ declare class TicketQrModalComponent {
4800
+ private ticketQrModalService;
4801
+ isCustomer: boolean;
4802
+ constructor(ticketQrModalService: TicketQrModalService);
4803
+ get isOpen(): i0.WritableSignal<boolean>;
4804
+ get ticketUuid(): i0.WritableSignal<string | null>;
4805
+ get ticketDescription(): i0.WritableSignal<string | null>;
4806
+ onClose(): void;
4807
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketQrModalComponent, never>;
4808
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketQrModalComponent, "ticket-qr-modal", never, { "isCustomer": { "alias": "isCustomer"; "required": false; }; }, {}, never, never, true, never>;
4809
+ }
4810
+
4811
+ declare class VipBalanceCardComponent {
4812
+ card: VipCard | null;
4813
+ static ɵfac: i0.ɵɵFactoryDeclaration<VipBalanceCardComponent, never>;
4814
+ static ɵcmp: i0.ɵɵComponentDeclaration<VipBalanceCardComponent, "vip-balance-card", never, { "card": { "alias": "card"; "required": false; }; }, {}, never, never, true, never>;
4815
+ }
4816
+
4817
+ declare class VipCardStatusBadgeComponent {
4818
+ protected readonly tranloco: TranslocoService;
4819
+ card: VipCard;
4820
+ get statusColor(): BadgeColor;
4821
+ get statusTranslationKey(): string;
4822
+ static ɵfac: i0.ɵɵFactoryDeclaration<VipCardStatusBadgeComponent, never>;
4823
+ static ɵcmp: i0.ɵɵComponentDeclaration<VipCardStatusBadgeComponent, "vip-card-status-badge", never, { "card": { "alias": "card"; "required": true; }; }, {}, never, never, true, never>;
4824
+ }
4825
+
4826
+ declare class VipRechargeModalComponent implements OnChanges {
4827
+ private fb;
4828
+ protected transloco: TranslocoService;
4829
+ title: string;
4830
+ submitLabel: string;
4831
+ loading: boolean;
4832
+ amountStep: number;
4833
+ minAmount: number;
4834
+ maxAmount: number;
4835
+ isOpen: WritableSignal<boolean>;
4836
+ /**
4837
+ * Cuando es true (uso desde el ecommerce/cliente), el método de pago queda
4838
+ * fijo en Mercado Pago y no se muestra el selector: desde el lado del
4839
+ * cliente no se pueden elegir métodos de pago administrativos (efectivo,
4840
+ * datáfono, nómina, cambios internos, etc.), esos son exclusivos del
4841
+ * backoffice.
4842
+ */
4843
+ restrictToMercadoPago: boolean;
4844
+ closeModal: EventEmitter<void>;
4845
+ confirm: EventEmitter<VipRechargeConfirmPayload>;
4846
+ rechargeForm: FormGroup;
4847
+ paymentMethodOptions: {
4848
+ label: string;
4849
+ value: string;
4850
+ }[];
4851
+ constructor(fb: FormBuilder, transloco: TranslocoService);
4852
+ ngOnChanges(changes: SimpleChanges): void;
4853
+ private applyPaymentMethodRestriction;
4854
+ onClose(): void;
4855
+ onSubmit(): void;
4856
+ static ɵfac: i0.ɵɵFactoryDeclaration<VipRechargeModalComponent, never>;
4857
+ static ɵcmp: i0.ɵɵComponentDeclaration<VipRechargeModalComponent, "vip-recharge-modal", never, { "title": { "alias": "title"; "required": false; }; "submitLabel": { "alias": "submitLabel"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "amountStep": { "alias": "amountStep"; "required": false; }; "minAmount": { "alias": "minAmount"; "required": false; }; "maxAmount": { "alias": "maxAmount"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "restrictToMercadoPago": { "alias": "restrictToMercadoPago"; "required": false; }; }, { "closeModal": "closeModal"; "confirm": "confirm"; }, never, never, true, never>;
4858
+ }
4859
+
4860
+ declare class VipTransactionsTableComponent {
4861
+ transactions: VipTransaction[];
4862
+ loading: boolean;
4863
+ typeLabel(type: VipTransactionType): string;
4864
+ static ɵfac: i0.ɵɵFactoryDeclaration<VipTransactionsTableComponent, never>;
4865
+ static ɵcmp: i0.ɵɵComponentDeclaration<VipTransactionsTableComponent, "vip-transactions-table", never, { "transactions": { "alias": "transactions"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, never>;
4866
+ }
4867
+
4868
+ export { ADMIN_API_ROUTES, ADMISSION_API_ROUTES, ALERT_ICONS, AdminLayoutComponent, AdminNavbarComponent, AdminSelectComponent, AdminService, AdmissionQueueService, ApiService, AppAlertComponent, AppBadgeComponent, AppBreadcumbComponent, AppButtonComponent, AppLinkButtonComponent, AppModalComponent, AsyncSelectComponent, AuditInformationComponent, BASE_BUTTON_CLASSES, BASE_INPUT_CLASSES, BUTTON_SIZES_CLASSES, BUTTON_VARIANT_CLASSES, BaseModalService, BrowserZoomLockService, BulkSaveBarComponent, CITY_API_ENDPOINTS, COUNTRY_API_ENDPOINTS, CUSTOMERS_API_ROUTES, ChangePasswordFormComponent, ChangePasswordFormService, CitiesService, CitySelectComponent, ColorPickerComponent, ConfirmationOrderModalComponent, ConfirmationOrderModalService, CorporateBondStatus, CountrySelectComponent, CountryService, CouponApplicability, CouponDiscountType, CouponStatus, CreatorType, CustomerSelectComponent, CustomerService, DEFAULT_STAGE_CONFIG, DOCUMENT_TYPES_OPTIONS, DateInputComponent, DateService, DaySelectorGridComponent, DeleteConfirmationComponent, DeleteConfirmationService, DynamicTableComponent, ERROR_INPUT_CLASSES, EndDateGreaterThanStartValidator, FORM_ERROR_MESSAGES, FeedbackModalComponent, FeedbackModalService, FileType, FileUploadComponent, FileUploadPreviewComponent, FormEditorComponent, FormInputComponent, FormSelectComponent, FormTextareaComponent, GiftBondPurchaseStatus, GiftBondStatus, IdentityDocumentInputComponent, KONVA_SHAPE_MAPPINGS, LanguageSwitcherComponent, MembershipStatus, MinTodayValidator, MustMatchValidator, NumberInputComponent, ORDER_DISCOUNT_COLORS, ORDER_ITEM_TYPES_COLORS, ORDER_STATUS_COLORS, OrderBillingInfoComponent, OrderDiscountAppliedComponent, OrderInformationComponent, OrderItemType, OrderItemTypeBadgeComponent, OrderItemsComponent, OrderStatus, OrderStatusBadgeComponent, OrderTransactionDetailsModalComponent, OrderTransactionDetailsModalService, OrderTransactionsComponent, PAYMENT_METHODS_OPTIONS, PERFORMANCES_API_ROUTES, PERFORMANCE_STATUS_COLORS, PERFORMANCE_TICKET_STATUS_COLORS, PHONE_COUNTRIES, PRICE_ZONES_API_ROUTES, PRODUCTS_API_ROUTES, PRODUCT_CATEGORIES_API_ROUTES, PRODUCT_TAGS_API_ROUTES, PRODUCT_TYPES_API_ROUTES, PaymentMethod, PendingChangesService, PerformanceBookingDataService, PerformanceCardComponent, PerformanceCardListComponent, PerformanceMultiSelectComponent, PerformanceSelectComponent, PerformanceService, PerformanceStatus, PerformanceStatusBadgeComponent, PerformanceStepperComponent, PerformanceTicketMapComponent, PerformanceTicketStatus, PerformanceTicketStatusBadgeComponent, PerformanceVisibilityType, PerformancesListEventsService, PhoneInputComponent, PriceZoneEventService, PriceZoneFormModalService, PriceZoneSelectComponent, PriceZoneService, ProductCategoryService, ProductMultiSelectComponent, ProductSelectComponent, ProductService, ProductTagService, ProductTypeService, PublicLayoutComponent, PurchaseLimitService, QuickStatusEditComponent, RoomMapElementOrientation, RoomMapElementType, SHOWS_API_ROUTES, STATE_API_ENDPOINTS, SeatAvailabilitySseService, SeatSelectionEmptySummaryComponent, SeatSelectionSummaryComponent, SeatSelectionSummaryItemComponent, SelectedDiscountCardType, ShowCardComponent, ShowCardSkeletonComponent, ShowMultiSelectComponent, ShowSelectComponent, ShowService, ShowTypeBadgeComponent, ShowsFilterComponent, SidebarMenuComponent, SidebarStateService, StateSelectComponent, StatesService, TICKERA_COMPONENTS_CONFIG, TICKET_ELEMENT_TYPES, TICKET_MAP_FLOOR_HOVER_FADE_MS, TICKET_MAP_FLOOR_HOVER_OPACITY, TICKET_MAP_GRID_SIZE, TICKET_MAP_LAST_TICKETS_LIMIT, TICKET_MAP_PRICE_ZONE_FILTER_OPACITY, TICKET_MAP_TITLE_HEIGHT, TICKET_STATUS_COLORS, TICKET_STATUS_FILLS, TICKET_STATUS_LABELS, TIcketMapProductSelectionComponent, TRANSACTION_STATUS_COLORS, TextExpandableComponent, TickeraTranslocoLoader, TicketMapFloorSelectorComponent, TicketMapPriceZonesComponent, TicketMapProductSelectionItemComponent, TicketMapTotalsComponent, TicketMapWidgetComponent, TicketMapWidgetHeaderComponent, TicketMapWrapperComponent, TicketMapZoomControlsComponent, TicketMapZoomService, TicketQrComponent, TicketQrModalComponent, TicketQrModalService, TicketQrService, TicketSelectionDetailsService, TicketSelectionDiscountService, TicketSelectionService, TicketSelectionTotalsService, ToastService, ToggleSwitchComponent, TransactionStatus, VENUES_API_ROUTES, VIP_CARDS_API_ROUTES, VipBalanceCardComponent, VipCardService, VipCardStatus, VipCardStatusBadgeComponent, VipRechargeModalComponent, VipTransactionType, VipTransactionsTableComponent, ZonePriceItemComponent, ZonePriceListComponent, authInterceptor, drawChairIcon, drawHappyFace, drawRoundedRect, drawWheelchairIcon, emailValidator, findElementAtPosition, findTicketAtPosition, formatCitiesResponseToSelect, generateExitScene, generateHallwayScene, generateProductionAreaScene, generateSeatBlockScene, generateSeatBlockTicketScene, generateStageScene, generateStairScene, generateTableScene, generateTableTicketScene, generateUnavailableSpaceScene, generateZoneScene, getAdminFullname, getBrowserLanguage, getCustomerBenefitToasts, getCustomerFullname, getItemTypeIcon, getOrderDiscount, getStoredLanguage, numberToLetter, parseJsonToFormDataAdvanced, phoneCountryFlag, processElementsToRenderData, provideTickeraComponents, resolveLanguage, setStoredLanguage, ticketCanOpenQr, tintColor, transformImageToFile, transformUrlParams };
4869
+ export type { ActivateVipCardParams, Admin, AdminsResponse, AdmissionEventMessage, AdmissionJoinResponse, AdmissionStatus, AsyncSelectConfig, Auditable, BadgeColor, BadgeSize, BenefitToastMessage, BreadcrumbStep, BreadcrumbTheme, CitiesResponse, City, CityResponse, CommonFetchAllParams, CorporateBond, CorporateBondCode, CorporateBondResponse, CountriesResponse, Country, CountryResponse, Coupon, CouponResponse, CreatePedagogicOrderPayload, Customer, CustomerBenefitApplicableShow, CustomerBenefitSubscription, CustomerBenefitVenueChain, CustomerBenefits, CustomerBenefitsPerspective, CustomerResponse, CustomersResponse, DailyPerformanceHall, DailyPerformanceItem, DailyPerformancePriceZone, DailyPerformanceShow, DailyPerformanceVenue, DailyPerformancesResponse, DeleteConfirmationOpen, DragDropEvent, DynamicTableHeader, ElementPropertiesTab, ElementRenderData, FeedbackModalElement, FeedbackModalType, FetchAdminsParams, FetchCitiesParams, FetchCountriesParams, FetchCustomersParams, FetchDailyPerformancesParams, FetchProductCategoriesParams, FetchProductTagsParams, FetchProductTypesParams, FetchProductsParams, FetchShowCategoriesParams, FetchShowGendersParams, FetchShowTypesParams, FetchShowsParams, FetchStatesParams, FetchVipCardsParams, FileUploadConfig, FindAllPerformancesParams, FindAllPriceZoneParams, GiftBond, GiftBondImage, GiftBondPurchase, GiftBondPurchaseResponse, GiftBondPurchasesResponse, GiftBondResponse, GiftBondsResponse, Hall, HallFloor, HallFloorOption, IdentityDocumentType, KonvaShapeConfig, Membership, MercadoPagoPreference, ModalSize, NumerationConfig, Order, OrderBillingInfo, OrderDiscountInfo, OrderDiscountType, OrderItem, OrderPerformanceSnapshot, OrderResponse, OrderShowSnapshot, OrdersResponse, PedagogicAvailabilityResponse, PedagogicZoneAvailability, Performance, PerformanceAvailableDay, PerformanceBookingDataResponse, PerformanceResponse, PerformanceTicket, PerformancesAvailableDaysResponse, PerformancesResponseInterface, PhoneCountry, PriceZone, PriceZoneResponse, PriceZoneUpdateResponse, PriceZonesResponseInterface, Product, ProductCategoriesResponse, ProductCategory, ProductCategoryResponse, ProductImage, ProductResponse, ProductTag, ProductTagResponse, ProductTagsResponse, ProductTaxonomy, ProductType, ProductTypeResponse, ProductTypesResponse, ProductsResponseInterface, QrTokenData, QrTokenResponse, RecentOrder, RecentRoomMap, ReservePerformanceDto, RoomMap, RoomMapBaseElement, RoomMapCanvasConfiguration, RoomMapCanvasElement, RoomMapChairPosition, RoomMapElementTemplate, RoomMapExitElement, RoomMapGridPosition, RoomMapPosition, RoomMapProductionAreaElement, RoomMapSeatDisplayState, RoomMapSeatElement, RoomMapSeatState, RoomMapSize, RoomMapStageElement, RoomMapTableElement, RoomMapUnavailableElement, RoomMapZoneElement, SeatEventMessage, SeatStatusUpdate, SelectOption, SelectedDiscountCard, Show, ShowCategoriesResponse, ShowCategory, ShowCategoryResponse, ShowGender, ShowGenderResponse, ShowGendersResponse, ShowImage, ShowResponse, ShowType, ShowTypeResponse, ShowTypesResponse, ShowsResponseInterface, SidebarMenuItem, State, StateResponse, StatesResponse, TextFontSize, TickeraComponentsConfig, TicketMapSeatPosition, TicketMapTableChairPosition, TicketMapTooltipData, TicketMapZoneQuantityState, TicketMapZoomConfig, Transaction, UploadedFile, ValidateCorporateBondResponse, ValidateCouponResponse, ValidateGiftBondResponse, Venue, VenueImage, VipCard, VipCardResponse, VipCardsResponse, VipCategorySnapshot, VipOrderResponse, VipRechargeConfirmPayload, VipTransaction, VipTransactionsResponse };