PageSourceSearch

https://booking.blunavytraghetti.com/ohAnKSSh.js

js blunavytraghetti.com collected 2026-10-01 15:54:56 UTC 572,891 bytes, 5 lines download raw bytes

1import{d as l,D as P,s as $,B as w,w as c,a as h,b as is,c as z,S as M,P as Re,E as Di,T as js,A as Ti,e as Gt,f as Ht,g as di,h as j,I as si,W as Pt,i as rs,j as qs,k as Hi,l as Ga,m as Wa,n as Gs,V as gt,F as Nr,o as As,p as Ha}from"./kv6Ic9bN.js";import{m as Ka,r as Le,a as Za,g as Pe,s as Q,f as ae,b as Ne,c as De,d as Ya,u as Ii,i as kt,e as Ws,h as ss,j as Ki,k as N,l as Qa,o as Hs,n as Ks,p as Ja,q as Xa,t as en}from"./167inXtU.js";let tn=class{constructor(){this.PassengerNeedsSpecialAssistance="The passenger requires special assistance due to a physical disability",this.CheckInToBoardingGate="Assistance needed from the check-in area to the boarding gate",this.BoardingAssistance="Assistance needed to get on and off the unit",this.SeatAssistance="Assistance for sitting down/getting up from the seat",this.HasWheelchair="I am equipped with a wheelchair",this.NeedsWheelchair="I need a wheelchair"}};tn.id="Albatross.Model.Shared.SpecialAssistance";let rn=class{constructor(){this.PassengerNeedsSpecialAssistance="Il passeggero necessita di assistenza speciale per disabilità fisica",this.CheckInToBoardingGate="Assistenza necessaria dall'area di check-in alla porta di imbarco",this.BoardingAssistance="Assistenza necessaria per salire e scendere dall'unità",this.SeatAssistance="Assistenza per sedersi/alzarsi dal sedile",this.HasWheelchair="È munito di sedia a rotelle",this.NeedsWheelchair="Necessita di una sedia a rotelle"}};rn.id="Albatross.Model.Shared.SpecialAssistance";let sn=class{constructor(){this.PassengerNeedsSpecialAssistance="Der Fahrgast benötigt besondere Unterstützung aufgrund einer körperlichen Behinderung",this.CheckInToBoardingGate="Hilfe erforderlich vom Check-in-Bereich zur Boarding-Gate",this.BoardingAssistance="Hilfe erforderlich beim Ein- und Aussteigen aus der Einheit",this.SeatAssistance="Hilfe beim Sitzen/aufstehen vom Sitz",this.HasWheelchair="Ich bin mit einem Rollstuhl ausgestattet",this.NeedsWheelchair="Ich benötige einen Rollstuhl"}};sn.id="Albatross.Model.Shared.SpecialAssistance";class an{constructor(){this.PassengerNeedsSpecialAssistance="Le passager a besoin d'une assistance spéciale en raison d'un handicap physique",this.CheckInToBoardingGate="Assistance nécessaire de la zone d'enregistrement à la porte d'embarquement",this.BoardingAssistance="Assistance nécessaire pour monter et descendre de l'unité",this.SeatAssistance="Assistance pour s'asseoir/se lever du siège",this.HasWheelchair="Je suis équipé(e) d'un fauteuil roulant",this.NeedsWheelchair="J'ai besoin d'un fauteuil roulant"}}an.id="Albatross.Model.Shared.SpecialAssistance";let Zs=class{constructor(){this.NotForSale="Not for sale",this.TripChangesNumber=e=>{switch(e){case 0:return"direct";case 1:return"1 change";default:return`${e} changes`}},this.TripDetailAndChanges="Trip details and changes",this.TravelFrom="Trip from",this.To="to",this.Add="Add",this.ToShoppingCart="to shopping cart",this.Select="Select",this.TheTrip="trip",this.Selection="trip",this.Done="selected",this.Selected="Selected",this.DataDelViaggio="Date",this.DataDelViaggioRitorno="Return date",this.ModificaLaTuaRicerca="Set your search",this.Cerca="Search",this.Aggiorna="Refresh",this.Partenza="Departure",this.Arrival="Arrival",this.PartenzaPlaceholder="FROM:",this.ArrivalPlaceholder="TO:",this.SolaAndata="One way",this.AndataeRitorno="Round trip",this.AndataeRitornoShort="Round trip",this.Passeggero="Passenger",this.Passeggeri="Passengers",this.SelezioneTrattaNavigazione="Select the route",this.LungaPercorrenza="Long distance",this.LineeUrbane="Urban lines",this.AcquistaBiglietti="Buy tickets",this.SoluzioneBloccata="Trip in maintenance",this.CorsaAnnullata="Trip canceled",this.SaleSummary="Reservation info",this.LuggageSlotsDisponibili="Available slots",this.LuggageSlotsEsauriti="Slots not available",this.RemainingLuggageSLots="Slots selling out",this.VehiclesSlotsDisponibili="Available garage",this.VehiclesSlotsEsauriti="Garage full",this.RemainingVehiclesSLots="Garage selling out",this.PostiEsauriti="No seats available",this.PostiDisponibili="Available seats",this.Terminati="unavailable",this.RemainingSeats=e=>{switch(e){case 1:return"1 Seat";default:return`${e} Seats`}},this.RemainingGarageMeters=e=>`${e.toFixed(1)} meters`,this.Seats="Seats",this.Seat="Seat",this.NotAllowed="not allowed",this.AQuestaTariffa="at this price",this.Ore="Hours",this.Minuti="minutes",this.InfoViaggio="Trip details",this.InfoViaggioSolution="Trip details",this.Outbound="Outbound",this.Return="Return",this.Travel="Travel",this.PreviousDates="Previous",this.NextDates="Next",this.TotalPrice="Total price",this.WalletApplied="Wallet credit",this.PriceToPay="To pay",this.TripWithChange="TRIP WITH CHANGES",this.DirectTrip="DIRECT TRIP",this.Hours="hours",this.Minutes="minutes",this.ReturnFareDetailed="A special price for return ticket has been applied for your reservation",this.ReturnFare="Return ticket price",this.ReturnFareSmall="Return price",this.WaitingTime="Waiting time",this.Durata="Duration",this.Cambio="Change",this.Acquista="Buy",this.TripDetails="Trip Details",this.Orari="Timetable",this.NoSolutionsAvailable="No solutions available",this.TornaIndietro="Back",this.Vehicle="Vehicle",this.Vehicles="Vehicles",this.HaiUnVeicolo="Do you have a vehicle?",this.NotAvailable="Not available",this.Trip="Trip",this.AssignedPersonnel="Assigned personnel:",this.CityItems="Urban tickets",this.CityItemsSub
1scriptions="Urban tickets",this.IntercityItems="Intercity tickets",this.TplItems="Public bus transport tickets",this.BuyTplItems="Buy tpl tickets",this.Disponibilita="Availability",this.BestPrice="Best price",this.ReturnPrice="Return price",this.ReturnFareInfo="Price available only with return selected",this.ReturnInSameDays=e=>e>1?`return price within ${e} days`:"return price in same date",this.HomePageMetaDescription=e=>{switch(e){case"blunavy":return"Book your ticket for Blu Navy ferries to Elba. Discover our fares and schedules for all ferries to the island of Elba.";default:return"Book your ticket. Discover our fares and schedules for all travels."}},this.HomePageTitle=e=>{switch(e){case"blunavy":return"Official booking of Blu Navy tickets";default:return"Book your tickets"}},this.TravelSelectionMetaDescription=(e,t,i)=>{switch(e){case"blunavy":return`Book your ferry ticket from ${t} to ${i} today. Take advantage of our competitive fares!`;default:return`Book ticket from ${t} to ${i} today!`}},this.TravelSelectionTitle=(e,t,i)=>{switch(e){case"blunavy":return`Book the ferry from ${t} to ${i}`;default:return`Book from ${t} to ${i}`}},this.TravelTypeDescription=e=>{switch(e){case 1:return"National segment";case 2:return"Regional segment";case 4:return"City segment"}},this.TimeTableView="Timetable",this.TimelineView="Timeline",this.Issuing="Issuing...",this.Min="min",this.Stops="stops",this.StopsLabel="Stops:",this.Expand="Expand",this.Collapse="Collapse",this.SomeProductsNotValidForSelectedDate="Some of the selected products are not valid for the selected date.",this.NoTravelSolutionsAvailable="No travel solutions available for the selected search criteria",this.SelectStopToSeeSolutions="Select the departure and arrival stop to see available trips",this.TripsAfterMidnight=e=>`Trips after midnight (Day ${e})`,this.SelectDepartureStop="SELECT DEPARTURE STOP",this.SelectArrivalStop="SELECT ARRIVAL STOP",this.SolutionsCount=e=>`${e} solutions`,this.GoTo="Go to",this.NextWeek="Next week",this.TwoWeeks="2 weeks",this.NextMonth="Next month",this.ChooseDate="Choose date…",this.SelectedDateAnnouncement=e=>`Selected date: ${e}`}};Zs.id="AlbatrossTravelSolutions";let as=class{constructor(){this.NotForSale="Viaggio non vendibile",this.TripChangesNumber=e=>{switch(e){case 0:return"corsa diretta";case 1:return"1 cambio";default:return`${e} cambi`}},this.TripDetailAndChanges="Dettaglio viaggio e cambi",this.TravelFrom="Viaggio da",this.To="a",this.Add="Aggiungi",this.ToShoppingCart="al carrello",this.Select="Seleziona",this.TheTrip="il viaggio",this.Selection="selezione",this.Done="effettuata",this.Selected="Selezionato",this.DataDelViaggio="Data",this.DataDelViaggioRitorno="Data ritorno",this.Cerca="Cerca",this.ModificaLaTuaRicerca="Modifica la tua ricerca",this.Aggiorna="Aggiorna",this.Partenza="Partenza",this.Arrival="Arrivo",this.PartenzaPlaceholder="DA:",this.ArrivalPlaceholder="A:",this.SolaAndata="Sola andata",this.AndataeRitorno="Andata e ritorno",this.AndataeRitornoShort="Ritorno",this.Passeggero="Passeggero",this.Passeggeri="Passeggeri",this.SelezioneTrattaNavigazione="Seleziona la tratta",this.LungaPercorrenza="Lunga percorrenza",this.LineeUrbane="Linee urbane",this.AcquistaBiglietti="Acquista biglietti",this.SoluzioneBloccata="Corsa in manutenzione",this.CorsaAnnullata="Corsa annullata",this.LuggageSlotsDisponibili="Stiva disponibile",this.LuggageSlotsEsauriti="Stiva terminata",this.RemainingLuggageSLots="Stiva in esaurimento",this.VehiclesSlotsDisponibili="Garage disponibile",this.VehiclesSlotsEsauriti="Garage al completo",this.RemainingVehiclesSLots="Garage in esaurimento",this.PostiEsauriti="Posti terminati",this.PostiDisponibili="Posti disponibili",this.RemainingSeats=e=>{switch(e){case 1:return"Ultimo Posto";default:return`Ultimi ${e} Posti`}},this.RemainingGarageMeters=e=>`Ultimi ${e.toFixed(1)} metri`,this.Seats="Posti",this.Seat="Posto",this.Terminati="Terminati",this.NotAllowed="Non amessi",this.AQuestaTariffa="a questa tariffa",this.Ore="Ore",this.Minuti="minuti",this.InfoViaggio="Info viaggio",this.InfoViaggioSolution="Informazioni sul viaggio",this.SaleSummary="Dettagli prenotazione",this.Outbound="Andata",this.Return="Ritorno",this.Travel="Viaggio",this.PreviousDates="Indietro",this.NextDates="Avanti",this.TotalPrice="Prezzo totale",this.WalletApplied="Credito borsellino",this.PriceToPay="Da pagare",this.TripWithChange="CORSA CON CAMBIO",this.DirectTrip="
1CORSA DIRETTA",this.Hours="ore",this.Minutes="minuti",this.ReturnFareDetailed="Stai usufruendo di una tariffa speciale per l'acquisto di andata e ritorno",this.ReturnFare="Applicato Sconto A/R",this.ReturnFareSmall="Sconto A/R",this.WaitingTime="Attesa",this.Durata="Durata",this.Cambio="Cambio",this.Acquista="Acquista",this.TripDetails="Info viaggio",this.Orari="Orari",this.NoSolutionsAvailable="Nessuna soluzione disponibile",this.TornaIndietro="Indietro",this.Vehicle="Veicolo",this.Vehicles="Veicoli",this.HaiUnVeicolo="Hai un veicolo",this.NotAvailable="Non disponibile",this.Trip="Corsa",this.AssignedPersonnel="Personale assegnato:",this.CityItems="Biglietti urbani",this.CityItemsSubscriptions="Abbonamenti urbani",this.IntercityItems="Biglietti interurbani",this.TplItems="Biglietti trasporto pubblico locale",this.BuyTplItems="Acquista biglietti TPL",this.Disponibilita="Disponibilità",this.BestPrice="Miglior prezzo",this.ReturnPrice="prezzo A/R",this.ReturnFareInfo="Tariffa applicabile all'acquisto di un biglietto andata e ritorno",this.ReturnInSameDays=e=>e==0?"con A/R in giornata":e==1?`con A/R entro ${e} giorno`:`con A/R entro ${e} giorni`,this.HomePageMetaDescription=e=>{switch(e){case"blunavy":return"Prenota il tuo biglietto per i traghetti Blu Navy per l'Elba. Scopri le nostre tariffe e gli orari di tutti i traghetti per l'isola d'Elba";default:return"Prenota il tuo biglietto. Scopri le nostre tariffe e gli orari di tutti i viaggi"}},this.HomePageTitle=e=>{switch(e){case"blunavy":return"Prenotazione ufficiale biglietto Blu Navy, traghetti per l'Elba";default:return"Prenotazione biglietto"}},this.TravelSelectionMetaDescription=(e,t,i)=>{switch(e){case"blunavy":return`Prenota il biglietto del traghetto da ${t} a ${i} oggi stesso. Approfitta delle nostre tariffe competitive!`;default:return`Prenota il biglietto da ${t} a ${i} oggi stesso. Approfitta delle nostre tariffe competitive!`}},this.TravelSelectionTitle=(e,t,i)=>{switch(e){case"blunavy":return`Prenota il traghetto da ${t} a ${i}`;default:return`Prenota da ${t} a ${i}`}},this.TravelTypeDescription=e=>{switch(e){case 1:return"Tratta Nazionale";case 2:return"Tratta Regionale";case 4:return"Tratta Urbana"}},this.TimeTableView="Quadro orari",this.TimelineView="Timeline",this.Issuing="Emissione...",this.Min="min",this.Stops="fermate",this.StopsLabel="Fermate:",this.Expand="Espandi",this.Collapse="Comprimi",this.SomeProductsNotValidForSelectedDate="Alcuni dei prodotti scelti non sono validi per la data selezionata.",this.NoTravelSolutionsAvailable="Nessuna soluzione di viaggio disponibile per i criteri di ricerca selezionati",this.SelectStopToSeeSolutions="Seleziona la fermata di partenza e di arrivo per visualizzare i viaggi disponibili",this.TripsAfterMidnight=e=>`Viaggi dopo la mezzanotte (Giorno ${e})`,this.SelectDepartureStop="SELEZIONA LA FERMATA DI PARTENZA",this.SelectArrivalStop="SELEZIONA LA FERMATA DI ARRIVO",this.SolutionsCount=e=>`${e} soluzioni`,this.GoTo="Vai a",this.NextWeek="Prossima settimana",this.TwoWeeks="2 settimane",this.NextMonth="Prossimo mese",this.ChooseDate="Scegli data…",this.SelectedDateAnnouncement=e=>`Data selezionata: ${e}`}};as.id="AlbatrossTravelSolutions";let Ys=class{constructor(){this.NotForSale="Nicht verkäufliche Reise",this.TripChangesNumber=e=>{switch(e){case 0:return"direkte Fahrt";case 1:return"1 Umstieg";default:return`${e} Umstiege`}},this.TripDetailAndChanges="Reisedetails und Umstiege",this.TravelFrom="Reise von",this.To="nach",this.Add="Hinzufügen",this.ToShoppingCart="dem Warenkorb",this.Select="Auswählen",this.TheTrip="die Reise",this.Selection="Auswahl",this.Done="durchgeführt",this.Selected="Ausgewählt",this.DataDelViaggio="Datum",this.DataDelViaggioRitorno="Datum der Rückfahrt",this.ModificaLaTuaRicerca="Ändern Sie Ihre Suche",this.Cerca="Suchen",this.Aggiorna="Aktualisieren",this.Partenza="Abfahrt",this.Arrival="Ankunft",this.PartenzaPlaceholder="VON:",this.ArrivalPlaceholder="NACH:",this.SolaAndata="Nur Hinfahrt",this.AndataeRitorno="Hin- und Rückfahrt",this.AndataeRitornoShort="Rückfahrt",this.Passeggero="Passagier",this.Passegger
1i="Passagiere",this.SelezioneTrattaNavigazione="Wählen Sie die Strecke",this.LungaPercorrenza="Langstrecke",this.LineeUrbane="Stadtlinien",this.AcquistaBiglietti="Tickets kaufen",this.SoluzioneBloccata="Strecke in Wartung",this.CorsaAnnullata="Trip canceled",this.LuggageSlotsDisponibili="Verfügbare Sitzplätze",this.LuggageSlotsEsauriti="keine Sitzplätze mehr verfügbar",this.RemainingLuggageSLots="Verfügbare Sitzplätze",this.VehiclesSlotsDisponibili="Verfügbare Sitzplätze",this.VehiclesSlotsEsauriti="keine Sitzplätze mehr verfügbar",this.RemainingVehiclesSLots="Verfügbare Sitzplätze",this.PostiEsauriti="keine Sitzplätze mehr verfügbar",this.PostiDisponibili="Verfügbare Sitzplätze",this.RemainingSeats=e=>{switch(e){case 1:return"Letzter Sitzplatz";default:return`Letze ${e} Sitzplätze`}},this.RemainingGarageMeters=e=>`${e.toFixed(1)} meters`,this.Seats="Sitzplätze",this.Seat="Sitzplatz",this.Terminati="Ausverkauft",this.NotAllowed="unstatthaft",this.AQuestaTariffa="zum Tarif",this.Ore="Stunden",this.Minuti="Minuten",this.InfoViaggio="Reiseinformationen",this.InfoViaggioSolution="Informationen in Bezug auf die Reise",this.SaleSummary="Reservierungsinformationen",this.Outbound="Hinfahrt",this.Return="Rückfahrt",this.Travel="Reise",this.PreviousDates="zurück",this.NextDates="weiter",this.TotalPrice="Gesamtpreis",this.WalletApplied="Geldbörse",this.PriceToPay="Zu bezahlen",this.TripWithChange="FAHRSTRECKE MIT UMSTIEG",this.DirectTrip="DIREKTE FAHRSTRECKE",this.Hours="stunden",this.Minutes="minuten",this.ReturnFareDetailed="A special price for return ticket has been applied for your reservation",this.ReturnFare="Return ticket price",this.ReturnFareSmall="Return price",this.WaitingTime="Waiting time",this.Durata="Reisedauer",this.Cambio="Ändern",this.Acquista="Kaufen",this.TripDetails="Reisedetails",this.Orari="Fahrpläne",this.NoSolutionsAvailable="Keine Lösungen verfügbar",this.TornaIndietro="Zurück",this.Vehicle="Fahrzeug",this.Vehicles="Fahrzeuge",this.HaiUnVeicolo="Haben Sie ein Fahrzeug",this.NotAvailable="Nicht verfügbar",this.Trip="Reise",this.AssignedPersonnel="Zugewiesenes Personal:",this.CityItems="Stadttickets",this.CityItemsSubscriptions="Stadtabonnements",this.IntercityItems="Intercity-Tickets",this.TplItems="Public bus transport tickets",this.BuyTplItems="Kaufen tpl tickets",this.Disponibilita="Verfügbarkeit",this.BestPrice="Best price",this.ReturnPrice="Rückgabepreis",this.ReturnFareInfo="Preis nur verfügbar, wenn Rücksendung ausgewählt ist",this.ReturnInSameDays=e=>e>1?`Rückgabepreis in ${e} Tagen`:"Rückgabepreis am selben Tag",this.HomePageMetaDescription=e=>{switch(e){case"blunavy":return"Offizielle Buchung von Blu Navy Tickets";default:return"Offizielle Buchung Tickets"}},this.HomePageTitle=e=>{switch(e){case"blunavy":return"Buchen Sie Ihr Ticket für Blu Navy Fähren nach Elba. Entdecken Sie unsere Tarife und Fahrpläne für alle Fähren zur Insel Elba.";default:return"Buchen Sie Ihr Ticket. Entdecken Sie unsere Tarife und Fahrpläne."}},this.TravelSelectionMetaDescription=(e,t,i)=>{switch(e){case"blunavy":return`Buchen Sie Ihr Fährticket von ${t} zur ${i} noch heute. Profitieren Sie von unseren wettbewerbsfähigen Tarifen!`;default:return`Buchen Sie Ihr Ticket von ${t} zur ${i} noch heute!`}},this.TravelSelectionTitle=(e,t,i)=>{switch(e){case"blunavy":return`Buchen Sie die Fähre von ${t} zur ${i}`;default:return`Buchen Sie die von ${t} zur ${i}`}},this.TravelTypeDescription=e=>{switch(e){case 1:return"National segment";case 2:return"Regional segment";case 4:return"City segment"}},this.TimeTableView="Fahrplan",this.TimelineView="Zeitachse",this.Issuing="Ausstellung...",this.Min="Min",this.Stops="Haltestellen",this.StopsLabel="Haltestellen:",this.Expand="Erweitern",this.Collapse="Einklappen",this.SomeProductsNotValidForSelectedDate="Einige der ausgewählten Produkte sind für das ausgewählte Datum nicht gültig.",this.NoTravelSolutionsAvailable="Keine Reiseoptionen für die ausgewählten Suchkriterien verfügbar",this.SelectStopToSeeSolutions="Wählen Sie die Abfahrts- und Ankunftshaltestelle, um verfügbare Fahrten zu sehen",this.TripsAfterMidnight=e=>`Reisen nach Mitternacht (Tag ${e})`,this.SelectDepartureStop="ABFAHRTSHALTESTELLE WÄHLEN",this.SelectArrivalStop="ANKUNFTSHALTESTELLE WÄHLEN",this.SolutionsCount=e=>`${e} Fahrten`,this.GoTo="Gehe zu",this.NextWeek="Nächste Woche",this.TwoWeeks="2 Wochen",this.NextMonth="Nächster Monat",this.Cho
1oseDate="Datum wählen…",this.SelectedDateAnnouncement=e=>`Ausgewähltes Datum: ${e}`}};Ys.id="AlbatrossTravelSolutions";let Qs=class{constructor(){this.NotForSale="Voyage invendable",this.TripChangesNumber=e=>{switch(e){case 0:return"voyage direct";case 1:return"1 transbordement";default:return`${e} transbordements`}},this.TripDetailAndChanges="Détail voyages et transbordements",this.TravelFrom="Voyage de",this.To="à",this.Add="Ajouter",this.ToShoppingCart="au panier",this.Select="Sélectionner",this.TheTrip="le voyage",this.Selection="sélection",this.Done="effectuée",this.Selected="Choisi",this.DataDelViaggio="Date",this.DataDelViaggioRitorno="Date de retour",this.ModificaLaTuaRicerca="Modifier votre recherche",this.Cerca="Chercher",this.Aggiorna="Actualiser",this.Partenza="Départ",this.Arrival="Arrivée",this.PartenzaPlaceholder="DE:",this.ArrivalPlaceholder="À:",this.SolaAndata="Aller Simple",this.AndataeRitorno="Aller-retour",this.AndataeRitornoShort="Retour",this.Passeggero="Passager",this.Passeggeri="Passagers",this.SelezioneTrattaNavigazione="Sélectionner le trajet",this.LungaPercorrenza="Longue distance",this.LineeUrbane="Lignes urbaines",this.AcquistaBiglietti="Acheter des billets",this.SoluzioneBloccata="Service en cours d’entretien",this.CorsaAnnullata="Service annulée",this.LuggageSlotsDisponibili="Soute disponibles",this.LuggageSlotsEsauriti="Soute épuisées",this.RemainingLuggageSLots="Soute in épuisement",this.VehiclesSlotsDisponibili="Garage disponibles",this.VehiclesSlotsEsauriti="Garage épuisées",this.RemainingVehiclesSLots="Garage in épuisement",this.PostiEsauriti="Places épuisées",this.PostiDisponibili="Places disponibles",this.RemainingSeats=e=>{switch(e){case 1:return"Derière Place";default:return`Dernières ${e} Places`}},this.RemainingGarageMeters=e=>`${e.toFixed(1)} meters`,this.Seats="Places",this.Seat="Place",this.Terminati="épuisées",this.NotAllowed="non autorisé",this.AQuestaTariffa="à ce tarif",this.Ore="Heures",this.Minuti="minutes",this.InfoViaggio="Infos voyage",this.InfoViaggioSolution="Informations sur le voyage",this.Outbound="Aller",this.Return="Retour",this.Travel="Voyage",this.PreviousDates="Retour",this.NextDates="Suivant",this.TotalPrice="Prix total",this.WalletApplied="Portefeuille",this.PriceToPay="A payer",this.SaleSummary="Informations de réservation",this.TripWithChange="TRAJET AVEC TRANSBORDEMENT",this.DirectTrip="VOYAGE DIRECT",this.Hours="heures",this.Minutes="minutes",this.ReturnFareDetailed="A special price for return ticket has been applied for your reservation",this.ReturnFare="Return ticket price",this.ReturnFareSmall="Return price",this.WaitingTime="Temps d'attente",this.Durata="Durée",this.Cambio="Ändern",this.Acquista="Acheter",this.TripDetails="Détails du voyage",this.Orari="Horaires",this.NoSolutionsAvailable="Aucune solution disponible",this.TornaIndietro="Retour",this.Vehicle="Véhicule",this.Vehicles="Véhicules",this.HaiUnVeicolo="Avez vouz un vèhicule",this.NotAvailable="Pas disponible",this.Trip="Voyage",this.AssignedPersonnel="Personnel assigné:",this.CityItems="Billets urbains",this.CityItemsSubscriptions="Abonnements urbains",this.IntercityItems="billets Intercités",this.TplItems="Public transports billets",this.BuyTplItems="Acheter billets tpl",this.Disponibilita="Disponibilité",this.BestPrice="Best price",this.ReturnPrice="Prix de retour",this.ReturnFareInfo="Prix disponible uniquement avec retour sélectionné",this.ReturnInSameDays=e=>e>1?`prix de retour avec ${e} jours`:"prix de retour à la même date",this.HomePageMetaDescription=e=>{switch(e){case"blunavy":return"Réservez votre billet pour les traversées Blu Navy vers l'île d'Elbe. Découvrez nos tarifs et horaires pour toutes les traversées vers l'île d'Elbe.";default:return"Réservez votre billet. Découvrez nos tarifs et horaires."}},this.HomePageTitle=e=>{switch(e){case"blunavy":return"Réservez des billets Blu Navy vers l'île d'Elbe";default:return"Réservez des billets"}},this.TravelSelectionMetaDescription=(e,t,i)=>{switch(e){case"blunavy":return`Réservez votre billet de ferry de ${t} à ${i} dès aujourd'hui. Profitez de nos tarifs compétitifs!`;default:return`Réservez votre billet de ${t} à ${i} dès aujourd'hui!`}},this.TravelSelectionTitle=(e,t,i)=>{switch(e){case"blunavy":return`Réservez le ferry de ${t} à ${i}`;default:return`Réservez de ${t} à ${i}`}},this.TravelTypeDescription=e=>{switch(e){case 1:return"National segment";case 2:return"Regional segment";case 4:return"City segment"}},this.TimeTableView="Horaires",this.TimelineView="Chronologie",this.Issuing="Émission...",this.Min="min",this.Stops="arrêts",this.StopsLabel="Arrêts:",this.Expand="Développer",this.Collapse="Réduire",this.SomeProductsNotValidForSelectedDate="Certains des produits sélectionnés ne sont pas valides pour la date sélectionnée.",this.NoTravelSolutionsAvailable="Aucune solution de voyage disponible pour les critères de recherche sélectionnés",this.SelectStopToSeeSolutions="Sélectionnez l'arrêt de départ et d'arrivée pour voir les voyages disponibles",this.TripsAfterMidnight=e=>`Voyages après minuit (Jour ${e})`,this.SelectDepartureStop="SÉLECTIONNEZ L'ARRÊT DE DÉPART",this.SelectArrivalStop="SÉLECTIONNEZ L'ARRÊT D'ARRIVÉE",this.SolutionsCount=e=>`${e} solutions`,this.GoTo="Aller à",this.NextWeek="Semaine prochaine",this.TwoWeeks="2 semaines",this.NextMonth="Mois prochain",this.Cho
1oseDate="Choisir une date…",this.SelectedDateAnnouncement=e=>`Date sélectionnée : ${e}`}};Qs.id="AlbatrossTravelSolutions";class Js{constructor(){this.NotForSale="No disponible para la venta",this.TripChangesNumber=e=>{switch(e){case 0:return"directo";case 1:return"1 transbordo";default:return`${e} transbordos`}},this.TripDetailAndChanges="Detalles y cambios del viaje",this.TravelFrom="Viaje desde",this.To="a",this.Add="Agregar",this.ToShoppingCart="al carrito",this.Select="Seleccionar",this.TheTrip="viaje",this.Selection="selección",this.Done="seleccionado",this.Selected="Seleccionado",this.DataDelViaggio="Fecha",this.DataDelViaggioRitorno="Fecha de regreso",this.ModificaLaTuaRicerca="Modificar tu búsqueda",this.Cerca="Buscar",this.Aggiorna="Actualizar",this.Partenza="Salida",this.Arrival="Llegada",this.PartenzaPlaceholder="DESDE:",this.ArrivalPlaceholder="A:",this.SolaAndata="Solo ida",this.AndataeRitorno="Ida y vuelta",this.AndataeRitornoShort="Vuelta",this.Passeggero="Pasajero",this.Passeggeri="Pasajeros",this.SelezioneTrattaNavigazione="Selecciona el trayecto",this.LungaPercorrenza="Larga distancia",this.LineeUrbane="Líneas urbanas",this.AcquistaBiglietti="Comprar billetes",this.SoluzioneBloccata="Viaje en mantenimiento",this.CorsaAnnullata="Viaje cancelado",this.SaleSummary="Información de la reserva",this.LuggageSlotsDisponibili="Bodega disponible",this.LuggageSlotsEsauriti="Bodega no disponible",this.RemainingLuggageSLots="Bodega casi completa",this.VehiclesSlotsDisponibili="Garaje disponible",this.VehiclesSlotsEsauriti="Garaje completo",this.RemainingVehiclesSLots="Garaje casi completo",this.PostiEsauriti="No hay asientos disponibles",this.PostiDisponibili="Asientos disponibles",this.Terminati="no disponible",this.RemainingSeats=e=>{switch(e){case 1:return"1 asiento";default:return`${e} asientos`}},this.RemainingGarageMeters=e=>`${e.toFixed(1)} metros`,this.Seats="Asientos",this.Seat="Asiento",this.NotAllowed="no permitido",this.AQuestaTariffa="a este precio",this.Ore="Horas",this.Minuti="minutos",this.InfoViaggio="Detalles del viaje",this.InfoViaggioSolution="Detalles del viaje",this.Outbound="Ida",this.Return="Vuelta",this.Travel="Viaje",this.PreviousDates="Anterior",this.NextDates="Siguiente",this.TotalPrice="Precio total",this.WalletApplied="Crédito de monedero",this.PriceToPay="A pagar",this.TripWithChange="VIAJE CON TRANSBORDOS",this.DirectTrip="VIAJE DIRECTO",this.Hours="horas",this.Minutes="minutos",this.ReturnFareDetailed="Se ha aplicado un precio especial para el billete de vuelta en tu reserva",this.ReturnFare="Precio billete de vuelta",this.ReturnFareSmall="Precio vuelta",this.WaitingTime="Tiempo de espera",this.Durata="Duración",this.Cambio="Transbordo",this.Acquista="Comprar",this.TripDetails="Detalles del viaje",this.Orari="Horarios",this.NoSolutionsAvailable="No hay soluciones disponibles",this.TornaIndietro="Atrás",this.Vehicle="Vehículo",this.Vehicles="Vehículos",this.HaiUnVeicolo="¿Tienes un vehículo?",this.NotAvailable="No disponible",this.Trip="Viaje",this.AssignedPersonnel="Personal asignado:",this.CityItems="Billetes urbanos",this.CityItemsSubscriptions="Abonos urbanos",this.IntercityItems="Billetes interurbanos",this.TplItems="Billetes de autobús público",this.BuyTplItems="Comprar billetes TPL",this.Disponibilita="Disponibilidad",this.BestPrice="Mejor precio",this.ReturnPrice="Precio de vuelta",this.ReturnFareInfo="Precio disponible solo seleccionando ida y vuelta",this.ReturnInSameDays=e=>e>1?`precio de vuelta dentro de ${e} días`:"precio de vuelta en la misma fecha",this.HomePageMetaDescription=e=>{switch(e){case"blunavy":return"Reserva tu billete para los ferris Blu Navy a Elba. Descubre nuestras tarifas y horarios para todos los ferris a la isla de Elba.";default:return"Reserva tu billete. Descubre nuestras tarifas y horarios para todos los viajes."}},this.HomePageTitle=e=>{switch(e){case"blunavy":return"Reserva oficial de billetes Blu Navy";default:return"Reserva tus billetes"}},this.TravelSelectionMetaDescription=(e,t,i)=>{switch(e){case"blunavy":return`Reserva tu billete de ferry de ${t} a ${i} hoy. ¡Aprovecha nuestras tarifas competitivas!`;default:return`¡Reserva el billete de ${t} a ${i} hoy!`}},this.TravelSelectionTitle=(e,t,i)=>{switch(e){case"blunavy":return`Reserva el ferry de ${t} a ${i}`;default:return`Reserva de ${t} a ${i}`}},this.TravelTypeDescription=e=>{switch(e){case 1:return"Tramo nacional";case 2:return"Tramo regional";case 4:return"Tramo urbano"}},this.TimeTableView="Horarios",this.TimelineView="Línea de tiempo",this.Issuing="Emisión...",this.Min="min",this.Stops="paradas",this.StopsLabel="Paradas:",this.Expand="Expandir",this.Collapse="Contraer",this.SomeProductsNotValidForSelectedDate="Algunos de los productos seleccionados no son válidos para la fecha seleccionad
1a.",this.NoTravelSolutionsAvailable="No hay soluciones de viaje disponibles para los criterios de búsqueda seleccionados",this.SelectStopToSeeSolutions="Selecciona la parada de salida y de llegada para ver los viajes disponibles",this.TripsAfterMidnight=e=>`Viajes después de medianoche (Día ${e})`,this.SelectDepartureStop="SELECCIONA LA PARADA DE SALIDA",this.SelectArrivalStop="SELECCIONA LA PARADA DE LLEGADA",this.SolutionsCount=e=>`${e} soluciones`,this.GoTo="Ir a",this.NextWeek="Próxima semana",this.TwoWeeks="2 semanas",this.NextMonth="Próximo mes",this.ChooseDate="Elegir fecha…",this.SelectedDateAnnouncement=e=>`Fecha seleccionada: ${e}`}}Js.id="AlbatrossTravelSolutions";let mr=class{constructor(){this.SubscriptionValidForWholePools1=(e,t)=>`The ticket/subscription you are buying will be valid for all stops of ${e} and ${t}`,this.SubscriptionValidForWholePools2=(e,t)=>`The price for the stops you are requesting is the same as for all stops so the ticket/subscription you are buying will be valid for all stops of ${e} and ${t}`,this.SubscriptionLimited=(e,t)=>`The ticket/subscription you are buying will be limited to the stops of ${e} and ${t} or with equivalent fare`,this.NotFareable="No tickets/subscriptions available for sale for this travel or period",this.Departure="Departure",this.Arrival="Arrival",this.SelectDeparture="select departure",this.SelectArrival="select arrival",this.SubscriptionType="Subscription Type",this.SelectSubscriptionType="select subscription type",this.From="From",this.To="To",this.ValidFrom="valid from",this.ValidTo="to",this.Total="Total Price ",this.TripSummaryLabel="Trip",this.Passengers="Passengers",this.Amount="Amount",this.SubscriptionSummaryLabel="Subscription data",this.Summary="Riepilogo acquisto",this.PartenzaPlaceholder="Select departure",this.DestinazionePlaceholder="Select arrival",this.FareCategory="Fare",this.SolarMonthValidity=e=>{switch(e){case 1:return"Monthly validity";default:return`Validity ${e} months`}},this.PersonRequired="Person required",this.Subscription="Subscription",this.Ticket="Ticket",this.PurchasableTrips="travels",this.DayValidity="day",this.DaysValidity="days",this.MinutesValidity="minutes",this.Validity="Validity",this.Select="Select",this.AreYouSpecialCategory="Are you part of a special category?",this.PleaseInsertYourPerson="insert your card to access the products dedicated to you",this.SpecialSubscriptionForPerson="Special products for card",this.PersonTypeRequested="Person type requested",this.ShowAllSubscriptions="Show all",this.Person="Person",this.InsertPersonForShowSubscriptions="Insert your person for view subscriptions",this.SpecialCategory="Special person",this.StartValidityMonth="Subscription starting month",this.StartValidityDay="Subscription starting date",this.OnlyOneTravel="Only one travel",this.HaiUnaTessera="Do you have a card or belong to a discounted category?",this.AccediArea="Access the reserved area",this.AccediArea2="Access the reserved area to request or use your card and take advantage of dedicated services",this.PaymentMode="Payment mode",this.CouponDissociate="Dissociate",this.CouponApply="Apply",this.CouponApplied="Coupon applied!",this.CannotPurchaseTitle="Attention! You cannot purchase these products.",this.CannotPurchaseDescription="Contact the system administrator for more information.",this.UpdateCard="Update card",this.CardSelected="Selected card",this.SpecifyStops="Specify stops",this.CardRequired="CARD REQUIRED",this.CardRequiredDescription="to purchase the subscription you need to select a card.",this.ClickHereToCreateNew="Click here to create a new one",this.LoginOrRegisterToCreate="Login or register to create one.",this.DepartureStop="Departure stop",this.Quantity="Quantity",this.Name="Name",this.Surname="Surname",this.Email="Email",this.SendSms="Send SMS",this.Mobile="Mobile",this.Notes="Notes",this.Coupon="Coupon:",this.CouponPlaceholder="E.g. AX1234",this.Purchase="Purchase",this.SelectDepartureError="Select the departure",this.SelectArrivalError="Select the arrival",this.SelectDepartureStopError="Select the departure stop",this.SelectSubscriptionTypeError="Select the subscription type",this.SelectStartDateError="Select the subscription start date",this.SelectPersonError="Select the subscription holder",this.PersonNotValidError="Warning: the selected holder is not val
1id",this.PersonNotActiveError="Warning: the selected holder is not active",this.PassengerDataRequiredError="Warning: you must enter passenger data: Name and surname",this.ContactDataRequiredError="Warning: you must enter passenger contact details: email or phone",this.ValidityPeriodError="Warning: the subscription validity period is not included in the card validity",this.FiscalCodeError="Enter the holder's tax code",this.AcceptTermsError="You must accept the terms and conditions",this.SelectPaymentMethodError="Select the payment method",this.SelectMarketingError="Select whether you consent or not",this.InvoiceDataWarning="Warning, billing data is mandatory!",this.ValidityNotIncludedWarning="Warning: the subscription validity period is not included in the card validity",this.PersonPriceInvariantWarning="Using the selected card does not result in price changes, but it can be used for on-board validation.",this.CardNotValidForPeriod="The selected card is not valid for the requested period"}};mr.id="AlbatrossSubscriptions";let Xs=class{constructor(){this.SubscriptionValidForWholePools1=(e,t)=>`L'abbonamento/biglietto sarà valido per tutte le fermate di ${e} e ${t}`,this.SubscriptionValidForWholePools2=(e,t)=>`Il prezzo delle fermate richieste è equivalente al prezzo dell'biglietto/abbonamento completo quindi sarà valido per tutte le fermate di ${e} e ${t}`,this.SubscriptionLimited=(e,t)=>`L'abbonamento/biglietto sarà limitato per le sole fermate di ${e} e ${t} o con tariffa equivalente`,this.NotFareable="Abbonamenti/biglietti non acquistabili per le località o periodo selezionato",this.Departure="Partenza",this.Arrival="Destinazione",this.SelectDeparture="seleziona la partenza",this.SelectArrival="seleziona la destinazione",this.SubscriptionType="Tipo Abbonamento",this.SelectSubscriptionType="seleziona il tipo abbonamento",this.From="Da",this.To="A",this.ValidFrom="valido dal",this.ValidTo="al",this.Total="Prezzo totale",this.TripSummaryLabel="Viaggio",this.Passengers="Passeggeri",this.Amount="Totale",this.SubscriptionSummaryLabel="Dati dell'abbonamento",this.Summary="Riepilogo acquisto",this.PartenzaPlaceholder="Seleziona la partenza",this.DestinazionePlaceholder="Seleziona la destinazione",this.FareCategory="Tariffa",this.SolarMonthValidity=e=>{switch(e){case 1:return"Validità mensile";case 2:return"Validità bimestrale";case 3:return"Validità trimestrale";case 4:return"Validità quadrimestrale";case 6:return"Validità semestrale";default:return`Validità ${e} mesi`}},this.PersonRequired="Tessera richiesta",this.Subscription="Abbonamento",this.Ticket="Biglietto",this.PurchasableTrips="corse acquistabili",this.OnlyOneTravel="1 viaggio disponibile",this.DayValidity="giorno",this.DaysValidity="giorni",this.MinutesValidity="minuti",this.Validity="Validità",this.Select="Seleziona",this.AreYouSpecialCategory="Fai parte di una categoria agevolata?",this.PleaseInsertYourPerson="inserisci la tua tessera per accedere ai prodotti a te dedicati",this.SpecialSubscriptionForPerson="Prodotti specifici per tessera",this.PersonTypeRequested="Tipologia necessaria",this.ShowAllSubscriptions="Mostra tutto",this.Person="Tessera",this.InsertPersonForShowSubscriptions="Inserisci la tessera per visualizzare gli abbonamenti",this.SpecialCategory="Tessera agevolata",this.StartValidityMonth="Mese inizio validità",this.StartValidityDay="Giorno inizio validità",this.HaiUnaTessera="Hai una tessera o fai parte di una categoria agevolata?",this.AccediArea="Accedi all'area riservata",this.AccediArea2="per richiedere o utilizzare la tua tessera e approfittare dei servizi dedicati a te",this.PaymentMode="Modalità pagamento",this.CouponDissociate="Dissocia",this.CouponApply="Applica",this.CouponApplied="Coupon Applicato!",this.CannotPurchaseTitle="Attenzione Non puoi acquistare questi prodotti!",this.CannotPurchaseDescription="Contatta l'amministratore del sistema per richiedere ulteriori informazioni.",this.UpdateCard="Modifica tessera",this.CardSelected="Tessera selezionata",this.SpecifyStops="Specifica fermate",this.CardRequired="TESSERA RICHIESTA",this.CardRequiredDescription="per acquistare l'abbonamento è necessario selezionare una tessera.",this.ClickHereToCreateNew="Clicca qui per crearne una nuova",this.LoginOrRegisterToCreate="Accedi o registrati per crearne una.",this.DepartureStop="Fermata di partenza",this.Quantity="Quantità",this.Name="Nome",this.Surname="Cognome",this.Email="Email",this.SendSms="Invia Sms",this.Mobile="Cellulare",this.Notes="Note",this.Coupon="Coupon:",this.CouponPlaceholder="Es. AX1234",this.Purchase="Acquista",this.SelectDepartureError="Seleziona la partenza",this.SelectArrivalError="Seleziona l'arrivo",this.SelectDepartureStopError="Seleziona la fermata di partenza",this.SelectSubscriptionTypeError="Seleziona il tipo di abbonamento",this.SelectStartDateError="Seleziona la data di partenza dell'abbonamento",this.SelectPersonError="Seleziona l'intestatario dell'abbonamento",this.PersonNotValidError="Attenzione l'intestatario selezionato non è valido",this.PersonNotActiveError="Attenzione l'intestatario selezionato non è attivo",this.PassengerDataRequiredError="Attenzione devi inserire i dati del passeggero: Nome cognome",this.ContactDataRequiredError="Attenzione devi inserire i recapiti del passeggero: email o telefono",this.ValidityPeriodError="Attenzione il periodo di validità dell'abbonamento non è incluso nella validità della tessera",this.FiscalCodeError="Inserisci il codice fiscale dell'intestatario",this.AcceptTermsError="Devi accettare i termini e condizioni",this.SelectPaymentMethodError="Seleziona il metodo di pagamento",this.SelectMarketingError="Seleziona se acconsentire o meno",this.InvoiceDataWarning="Attenzione, i dati di fatturazione sono obbligatori!",this.ValidityNotIncludedWarning="Attenzione il periodo di validità dell'abbonamento non è incluso nella validità della tessera",this.PersonPriceInvariantWarning="L'utilizzo della tessera selezionata non comporta variazioni di prezzo, ma può essere utilizzata per la validazione a bordo.",this.CardNotValidForPeriod="La tessera selezionata non è valida per il periodo richiesto"}};Xs.id="AlbatrossSubscriptions";class ea{constructor(){this.SubscriptionValidForWholePools1=(e,t)=>`El billete/abono que compras será válido para todas las paradas de ${e} y ${t}.`,this.SubscriptionValidForWholePools2=(e,t)=>
1`El precio para las paradas solicitadas es el mismo que para todas las paradas, por lo que el billete/abono que compras será válido para todas las paradas de ${e} y ${t}.`,this.SubscriptionLimited=(e,t)=>`El billete/abono que compras estará limitado a las paradas de ${e} y ${t} o con tarifa equivalente.`,this.NotFareable="No hay billetes/abonos disponibles para la venta para este trayecto o periodo.",this.Departure="Salida",this.Arrival="Llegada",this.SelectDeparture="Seleccionar salida",this.SelectArrival="Seleccionar llegada",this.SubscriptionType="Tipo de abono",this.SelectSubscriptionType="Seleccionar tipo de abono",this.From="Desde",this.To="A",this.ValidFrom="válido desde",this.ValidTo="hasta",this.Total="Precio total",this.TripSummaryLabel="Viaje",this.Passengers="Pasajeros",this.Amount="Cantidad",this.SubscriptionSummaryLabel="Datos del abono",this.Summary="Resumen de compra",this.PartenzaPlaceholder="Seleccionar salida",this.DestinazionePlaceholder="Seleccionar llegada",this.FareCategory="Tarifa",this.SolarMonthValidity=e=>{switch(e){case 1:return"Validez mensual";default:return`Validez de ${e} meses`}},this.PersonRequired="Persona requerida",this.Subscription="Abono",this.Ticket="Billete",this.PurchasableTrips="trayectos",this.DayValidity="día",this.DaysValidity="días",this.MinutesValidity="minutos",this.Validity="Validez",this.Select="Seleccionar",this.AreYouSpecialCategory="¿Perteneces a una categoría especial?",this.PleaseInsertYourPerson="Introduce tu tarjeta para acceder a los productos dedicados a ti",this.SpecialSubscriptionForPerson="Productos especiales para la tarjeta",this.PersonTypeRequested="Tipo de persona requerido",this.ShowAllSubscriptions="Mostrar todo",this.Person="Persona",this.InsertPersonForShowSubscriptions="Introduce tu persona para ver los abonos",this.SpecialCategory="Persona especial",this.StartValidityMonth="Mes de inicio del abono",this.StartValidityDay="Fecha de inicio del abono",this.OnlyOneTravel="Solo un trayecto",this.HaiUnaTessera="¿Tienes una tarjeta o perteneces a una categoría con tarifa reducida?",this.AccediArea="Acceder al área reservada",this.AccediArea2="Accede al área reservada para solicitar o utilizar tu tarjeta y aprovechar los servicios dedicados",this.PaymentMode="Modo de pago",this.CouponDissociate="Desasociar",this.CouponApply="Aplicar",this.CouponApplied="¡Cupón aplicado!",this.CannotPurchaseTitle="¡Atención! No puedes comprar estos productos.",this.CannotPurchaseDescription="Contacta con el administrador del sistema para más información.",this.UpdateCard="Modificar tarjeta",this.CardSelected="Tarjeta seleccionada",this.SpecifyStops="Especificar paradas",this.CardRequired="TARJETA REQUERIDA",this.CardRequiredDescription="para comprar el abono es necesario seleccionar una tarjeta.",this.ClickHereToCreateNew="Haz clic aquí para crear una nueva",this.LoginOrRegisterToCreate="Inicia sesión o regístrate para crear una.",this.DepartureStop="Parada de salida",this.Quantity="Cantidad",this.Name="Nombre",this.Surname="Apellido",this.Email="Email",this.SendSms="Enviar SMS",this.Mobile="Móvil",this.Notes="Notas",this.Coupon="Cupón:",this.CouponPlaceholder="Ej. AX1234",this.Purchase="Comprar",this.SelectDepartureError="Selecciona la salida",this.SelectArrivalError="Selecciona la llegada",this.SelectDepartureStopError="Selecciona la parada de salida",this.SelectSubscriptionTypeError="Selecciona el tipo de abono",this.SelectStartDateError="Selecciona la fecha de inicio del abono",this.SelectPersonError="Selecciona el titular del abono",this.PersonNotValidError="Atención: el titular seleccionado no es válido",this.PersonNotActiveError="Atención: el titular seleccionado no está activo",this.PassengerDataRequiredError="Atención: debes introducir los datos del pasajero: Nombre y apellido",this.ContactDataRequiredError="Atención: debes introducir los datos de contacto del pasajero: email o teléfono",this.ValidityPeriodError="Atención: el período de validez del abono no está incluido en la validez de la tarjeta",this.FiscalCodeError="Introduce el código fiscal del titular",this.AcceptTermsError="Debes aceptar los términos y condiciones",this.SelectPaymentMethodError="Selecciona el método de pago",this.SelectMarketingError="Selecciona si consientes o no",this.InvoiceDataWarning="¡Atención, los datos de facturación son obligatorios!",this.ValidityNotIncludedWarning="Atención: el período de validez del abono no está incluido en la validez de la tarjeta",this.PersonPriceInvariantWarning="El uso de la tarjeta seleccionad
1a no conlleva cambios de precio, pero puede utilizarse para la validación a bordo.",this.CardNotValidForPeriod="La tarjeta seleccionada no es válida para el período solicitado"}}ea.id="AlbatrossSubscriptions";let ta=class{constructor(){this.AccountPage="My account",this.MieiBiglietti="My tickets",this.MieiAbbonamenti="My subscriptions",this.Borsellino="My wallet",this.MyPersons="My cards",this.NewRental="New Rental",this.Name="Name",this.NameLenghtErrors="Name must be at least 3 characters",this.NameErrors="Name must not contain special characters ($,%,&,@,_,-,#)",this.Surname="Surname",this.SurnameLenghtErrors="Surname must be at least 3 characters",this.SurnameErrors="Surname must not contain special characters ($,%,&,@,_,-,#)",this.Company="Company",this.CompanyName="Company Name",this.CompanyNameLenghtError="Write the company Name",this.PrivateUser="Private User",this.VatNumber="Vat Number",this.FiscalCode="Fiscal Code",this.Mail="Email",this.Confirm="Confirm",this.Save="Save",this.Annulla="Cancel",this.EmailLenghtError="Email must be at least 3 characters",this.EmailsNotEquals="The email andresses are not equals",this.IsNotValidEmail="Not valid email",this.ConfirmMail="Confirm EMail",this.PhoneNumber="Mobile Phone Number",this.Password="Password",this.PasswordLenghtError="The password is too short",this.ConfirmPassword="Confirm Password",this.PasswordsNotEqual="The password and confirm password are not equals",this.PhoneNumbersNotEquals="The phone numbers are not equals",this.Nationality="Nationality",this.ConfirmPhoneNumber="Confirm Mobile Phone Number",this.ConfirmEmailError="Could not activate your account. Please contact the administrator.",this.PrivacyNotAccepted="Accept privacy statement to proceed to registration",this.Acconsenti="Allow",this.PrivacyLabel="I accept",this.PrivacyLabelOnlyPrivacy="I have read the",this.PrivacyLinkLabelOnlyPrivacy="Privacy Policy",this.PrivacyLabel2="terms & conditions",this.PrivacyLabel3="and",this.PrivacyLabel4="and privacy policy",this.PrivacyLabelOthers="terms & conditions other carriers",this.MFASetup="Two-factor authentication (MFA)",this.MFAEnableTitle="Enable MFA",this.MFAEnableScanInstruction="Scan the QR code with your authenticator app (e.g. Google Authenticator, Authy).",this.MFAManualKey="Manual key: ",this.MFAEnableButton="Enable",this.MFADisableTitle="Disable MFA",this.MFADisableInstruction="Enter the code from the app to disable two-factor verification.",this.MFADisableButton="Disable",this.MFAEnabledSuccess="MFA successfully enabled",this.MFADisabledSuccess="MFA disabled",this.MFAEnabledStatus="Two-factor authentication enabled",this.MFAInvalidCode="Invalid code",this.MFAInvalidRecoveryCode="Invalid or already used recovery code",this.MFAVerifyTitle="Two-factor authentication",this.MFAVerifyInstruction="Enter the 6-digit code generated by the authenticator app.",this.MFAVerifyButton="Verify",this.PasskeySetup="Passkey Setup",this.PasskeyEnabledStatus="Passkey login enabled",this.PasskeyAddTitle="Add a passkey",this.PasskeyAddInstruction="Use your device's biometric recognition to sign in without a password.",this.PasskeyAddButton="Add passkey",this.PasskeyNameLabel="Device name",this.PasskeyNamePlaceholder="e.g. Marco's iPhone",this.PasskeyLoadError="Unable to load passkeys. Please try again later.",this.PasskeyAddError="Unable to add passkey. Please try again.",this.PasskeyAddSuccess="Passkey added successfully",this.PasskeyRemoveConfirm="Remove this passkey?",this.PasskeyRemoveSuccess="Passkey removed",this.PasskeyRemoveError="Unable to remove passkey. Please try again.",this.PasskeyRenameSuccess="Passkey renamed",this.PasskeyRenameError="Unable to rename passkey. Please try again.",this.PasskeyNoPasskeys="No passkeys registered",this.PasskeyLoginButton="Sign in with passkey",this.PasskeyLoginError="Unable to sign in with passkey. Please try again.",this.PasskeyNameModalTitle="Name your passkey",this.PasskeyNameModalInstruction="Help identify the device this passkey belongs to.",this.PasskeySaveName="Save",this.PasskeyCreatedAt="Created on",this.Disabilitata="disabled",this.Abilitata="enabled",this.Indietro="Back",this.RecoveryCodesTitle="Recovery Codes",this.RecoveryCodesSaveWarning="Save these codes now. They won't be shown again.",this.RecoveryCodesDownload="Download as TXT",this.MFAAuthenticatorButton="Authenticator",this.MFALostCodes="Use recovery code",this.MFARecoveryInstruction="Enter one of your recovery codes.",this.MFARegenerateTitle="Regenerate Recovery Codes",this.MFARegenerateInstruction="Enter your authenticator code to generate new recovery codes. Your existing recovery codes will be invalidated.",this.MFARegenerateButton="Regenerate Codes",this.MFALoadError="Unable to load MFA settings. Please try again.",this.ConfirmPhoneTitle="Confirm your phone number",this.ConfirmPhoneLine1_1="We have sent to your phone number",this.ConfirmPhoneLine1_2="a 6 digits code (Pin)",this.ConfirmPhoneLine2="Insert your Pin and confirm your account",this.ReSendSmsPin="Re-send SMS pin",this.PinEmptyError="Not valid PIN code",this.ConfirmPhoneNumberButton="Confirm Phone",this.ConfirmPhoneError="The phone number is not yet confirmed. Please check the pin sms is correct",this.VatNumberLenghtError="Not valid vat number",this.ChangePassword="Change password",this.ChangeEmailLink="Change email",this.ChangePhone="Change phone number",this.DeleteUser="Delete account",this.ResetPasswordHelp="Enter the email address used for your account, and we’ll help you create a new password",this.ResetPasswordHelp2="Enter and confirm your new password.",this.ResetPassword="Reset Password",this.NewEmail
1="New email",this.ChangeEmail="Confirm email change",this.ConfirmEmail="Confirm email",this.ConfirmEmailText="We sent an email message with link for confirm your account.",this.ResetPasswordText="We sent an email message with link for reset your password.",this.ResetPasswordError="Reset password failed! There are a problems with your account. Please contact the help desk.",this.ResetPasswordErrorEmail="Reset password failed! There are a problems with your account (empty email). Please contact the help desk.",this.ResetPasswordErrorToken="Reset password failed! There are a problems with your account (empty or invalid token). Please contact the help desk.",this.ResetPasswordErrorPassword="Reset password failed! There are a problems with your account (empty or invalid password). Please contact the help desk.",this.ChangeEmailErrorGeneric="It was not possible to change your email address. Please try again or contact support.",this.ChangeEmailErrorToken="The email change link is invalid or has expired. Please request a new one.",this.ChangeEmailErrorDuplicate="The email address entered is already associated with another account.",this.ChangeEmailErrorInvalid="The email address entered is not valid.",this.ChangingEmailTo=e=>`You are changing your email to ${e}`,this.EmailChangedLogoutIn=e=>`Email changed successfully. You will be logged out in ${e} seconds to sign in with your new email.`,this.ForgotPassword="Forgot password?",this.CurrentPassword="Current password",this.BirthDate="Birth Date",this.Day="Day",this.Month="Month",this.Year="Year",this.BirthDateError="Invalid Birth Date",this.PhoneNumberEmpty="The phone number is empty",this.CallingCodeEmpty="The calling code is empty",this.CallingCodePlaceholder="+39",this.CallingCode="Calling Code",this.CompleteRegistration="Complete Registration",this.CompleteRegistrationDescription="Please provide the required information to complete your account setup.",this.RegistrationCompleted="Registration Completed",this.RegistrationCompletedMessage="Your account information has been successfully updated.",this.InvalidAccess="Invalid Access",this.InvalidAccessMessage="Missing completion token or user information. Please use the link from your confirmation email.",this.Loading="Loading...",this.Esci="Cancel",this.FiscalCodeLenghtError="Not valid fiscal code",this.DoNotHaveAnAccount="Do not have an account?",this.CreateAnAccount="Create an account",this.CreateAnAccountWith="Create an account with",this.CreateAnAccountWithFacebook="Create an account with",this.Mandatory="Fields marked with * are mandatory",this.Settings="Settings",this.PasswordRequiresDigit="Password must contain at least a number",this.DuplicateUserName="The email or phone number may already be registered",this.RegistrationFailed="We couldn't complete your registration. Please check your details and try again.",this.InvalidPhoneNumber="The phone number is not valid.",this.EmailNotAllowed="This email address is not allowed.",this.CallingCodeNotAllowed="The selected international dialing code is not allowed.",this.SignIn="Sign In",this.SignUp="Sign Up",this.NoSignIn="Proceed without registration",this.Logout="Logout",this.LoginWith="Sign in with",this.RegisterWith="Sign up with",this.Or="or",this.ResendSmsError="The sms sending can be process only every 30 minutes",this.RegisterInAFewSeconds="Register in a few seconds",this.RegisterFillingForm="Register filling form",this.UserNotFound="User not found",this.EmailSentSuccessfully="Email sent successfully",this.CheckInboxMessage="Please check your inbox. If you don't see the email, check your spam folder. Wait one hour before trying to resend the email.",this.ErrorSendingEmail="Error sending email. Please try again later.",this.Sending="Sending...",this.ResendEmail="Resend Email",this.CalculateFiscalCode="Calculate fiscal code",this.LocalityIncomplete="Complete the city",this.AddressIncomplete="Complete the address",this.CommercialUse="Proceeding with registration",this.CommercialUse2="to the processing of my personal data for the purpose of receiving commercial communications relating to the Company's products and services, special offers, promotions and news relating to them, by e-mail, telephone, SMS, fax, ordinary mail or similar means (so-called marketing purposes).",this.CommercialUse2LibertyLines="to receive promotional communication(s)",this.Acconsento="I agree",this.NonAcconsento="I don't agree",this.CommercialUseNotSelected="Select if agree or not",this.SeiStudente="Sei uno studente?",this.CompilaRichiestaStudente="Compila subito la richiesta di attivazione",this.PecSdiError="Pec o Codice destinatario obbligatori",this.EmailError="Email destinatario obbligatoria",this.PostalCodeRequired="Postal code required",this.Locality="City",this.LocalityDetail="It will be used to send you promotions dedicated to your favorite city (if you have expressed your consent)",this.BrithDateDatail="It will be used to send you promotions dedicated to your age (if you have expressed your consent)",this.AcceptPrivacyAndTravelRules1="I declare that I have read the ",this.AcceptPrivacyAndTravelRules1_2=" and our",this.AcceptPrivacyAndTravelRulesExternal="I declare that I have read the terms and conditions of travel and purchase available at the following links: ",this.RememberMe="Remember me",this.EmailOrPhone="Email or phone",this.ViewPrivacyPolicy="View privacy policy",this.AttachmentDocumentation="Attached documentation",this.CheckCarrierForModulesDetails="Check carrier page for more information abount modules and attachments",this.AttachIdentityDocument="Attach ID document",this.AttachmentRequested="Attachment required",this.AddNewAttachment="Add new file",this.IdPhoto="Id Photo",this.CardData="Card data",this.BirthLocality="Birth locality",this.ResidencyLocality="Residency locality",this.ResidencyAddress="Residency address",this.CardType="Card type",this.RequestRenew="Request renew",this.RenewCard="Renew",this.SendCard="Send card",this.AddChildCard="Add",this.AccountModified="Account modified",this.Delete_Attention="ATTENTION",this.Delete_Sicuro="Are you sure to delete your account?",this.Delete_Irreversibile="PERMANENTLY",this.Delete_Dati="Your account will be deleted",this.Delete_Tickets_1="Your tickets",this.Delete_Tickets_2="will be anonymized",this.WrongPhoneNumber=e=>`Wrong number ${e}?`,this.ChangeIt="Change it!",this.RentalRequest="Request rental",this.Delete_Borsellino=(e,t)=>`Your wallet credit (${e} €) will be transformed in coupon and sent to your email address ${t.toLowerCase()}`,this.LoginPageMetaDescription=e=>{switch(e){case"blunavy":return"Access Blu Navy's booking and reservation system. Manage your ticket reservation conveniently online.";default:return"Access booking and reservation system. Manage your ticket reservation conveniently online."}},this.LoginPageTitle=e=>{switch(e){case"blunavy":return"Blu Navy booking and reservation system login";default:return"Booking and reservation system login"}},this.RegisterPageMetaDescription=e=>{switch(e){case"blunavy":return"Register for Blu Navy's reservation system and quickly and easily purchase your tickets. Take advantage of our affordable fares.";default:return"Register for reservation system and quickly and easily purchase your tickets. Take advantage of our affordable fares."}},this.RegisterPageTitle=e=>{switch(e){case"blunavy":return"Register to book, purchase, and manage tickets on Blu Navy";default:return"Register to book, purchase, and manage tickets"}},this.ForgotPasswordMetaDescription=e=>{switch(e){case"blunavy":return"Forgot your password for Blu Navy booking? Recover it now and manage your tickets.";default:return"Forgot your password for booking? Recover it now and manage your tickets."}},this.ForgotPasswordPageTitle=e=>{switch(e){case"blunavy":return"Recover your password for Blu Navy booking";default:return"Recover your password for booking"}},this.MarketingFlagsTitle="MANIFESTAZIONE DEL CONSENSO AL TRATTAMENTO DEI DATI PERSONALI",this.MarketingFlagsSubTitle="Io sottoscritto, dichiarando di aver letto e compreso l’informativa sopra riportata ai sensi dell’art. 13 del GDPR 2016/679 e presto il mio consenso per le seguenti finalità:",this.MarketingFlags31a="3.1.a) al trattamento dei miei dati personali al fine di ricevere materiale informativo, promozionale e/o partecipare a ricerche di mercato, mediante tutti i mezz
1i di comunicazione disponibili, automatizzati e non;",this.MarketingFlags31b="3.1.b) al trattamento dei miei dati personali al fine di ricevere newsletters, ai recapiti da Lei indicati;",this.LettaLInformativa="Having read the privacy policy",this.LettaLInformativaLibertyLines="Having read",this.GooglePrivacyModalTitle="Complete registration with Google",this.GooglePrivacyModalDescription="To create an account with Google, please accept our privacy policy and set your marketing preferences."}};ta.id="LoginResources";let Ct=class{constructor(){this.AccountPage="Il mio account",this.MieiBiglietti="I miei biglietti",this.MieiAbbonamenti="I miei abbonamenti",this.Borsellino="Il mio borsellino",this.MyPersons="Le mie tessere",this.NewRental="Nuovo noleggio",this.Name="Nome",this.NameLenghtErrors="Il nome deve essere di almeno 3 caratteri",this.NameErrors="Il nome non deve contenere caratteri speciali ($,%,&,@,_,-,#)",this.Surname="Cognome",this.SurnameLenghtErrors="Il cognome deve essere di almeno 3 caratteri",this.SurnameErrors="Il cognome non deve contenere caratteri speciali ($,%,&,@,_,-,#)",this.Company="Azienda",this.CompanyName="Ragione Sociale",this.CompanyNameLenghtError="Specificare la ragione sociale dell'azienda",this.PrivateUser="Privato",this.VatNumber="Partita IVA",this.FiscalCode="Codice Fiscale",this.Mail="Email",this.EmailLenghtError="L'indirizzo email deve avere almeno 3 caratteri",this.EmailsNotEquals="Gli indirizzi email non corrispondono",this.IsNotValidEmail="email non valida",this.ConfirmMail="Conferma Email",this.PhoneNumber="Telefono cellulare",this.Password="Password",this.PasswordLenghtError="La password troppo corta",this.ConfirmPassword="Conferma password",this.PasswordsNotEqual="Le password inserite non corrispondono",this.PhoneNumbersNotEquals="I numeri di telefono non corrispondono",this.Nationality="Nazionalità",this.ConfirmPhoneNumber="Conferma telefono cellulare",this.Acconsenti="Acconsenti",this.Confirm="Conferma",this.Save="Salva",this.Annulla="Annulla",this.ConfirmEmailError="Si sono verificati dei problemi in fase di attivazione dell'account. Rivolgersi ad un amministratore",this.PrivacyNotAccepted="Per effettuare la registrazione è necessario acconsentire alla normativa privacy",this.PrivacyLabel="Accetto i ",this.PrivacyLabelOnlyPrivacy="Dichiaro di aver letto",this.PrivacyLinkLabelOnlyPrivacy="l’informativa privacy",this.PrivacyLabel2="condizioni di viaggio e acquisto",this.PrivacyLabel3="e",this.PrivacyLabel4="l'informativa sulla privacy",this.PrivacyLabelOthers="termini e condizioni altri vettori",this.MFASetup="Autenticazione a due fattori (MFA)",this.PasskeySetup="Configurazione passkey",this.PasskeyEnabledStatus="Login con passkey abilitato",this.PasskeyAddTitle="Aggiungi una passkey",this.PasskeyAddInstruction="Usa il riconoscimento biometrico del tuo dispositivo per accedere senza password.",this.PasskeyAddButton="Aggiungi passkey",this.PasskeyNameLabel="Nome dispositivo",this.PasskeyNamePlaceholder="es. iPhone di Mario",this.PasskeyLoadError="Impossibile caricare le passkey. Riprova più tardi.",this.PasskeyAddError="Impossibile aggiungere la passkey. Riprova.",this.PasskeyAddSuccess="Passkey aggiunta con successo",this.PasskeyRemoveConfirm="Rimuovere la passkey?",this.PasskeyRemoveSuccess="Passkey rimossa",this.PasskeyRemoveError="Impossibile rimuovere la passkey. Riprova.",this.PasskeyRenameSuccess="Passkey rinominata",this.PasskeyRenameError="Impossibile rinominare la passkey. Riprova.",this.PasskeyNoPasskeys="Nessuna passkey registrata",this.PasskeyLoginButton="Accedi con passkey",this.PasskeyLoginError="Impossibile accedere con passkey. Riprova.",this.PasskeyNameModalTitle="Dai un nome alla passkey",this.PasskeyNameModalInstruction="Aiuta a identificare il dispositivo da cui proviene questa passkey.",this.PasskeySaveName="Salva",this.PasskeyCreatedAt="Creata il",this.MFAEnableTitle="Abilita MFA",this.MFAEnableScanInstruction="Scansiona il QR code con la tua app Autenticator (es. Google Authenticator, Authy).",this.MFAManualKey="Chiave manuale: ",this.MFAEnableButton="Abilita",this.MFADisableTitle="Disabilita MFA",this.MFADisableInstruction="Inserisci il codice dall'app per disabilitare la verifica a due fattori.",this.MFADisableButton="Disabilita",this.MFAEnabledSuccess="MFA abilitata con successo",this.MFADisabledSuccess="MFA disabilitata",this.MFAEnabledStatus="Autenticazione a due fattori abilitata",this.MFAInvalidCode="Codice non valido",this.MFAInvalidRecoveryCode="Codice di re
1cupero non valido o già utilizzato",this.MFAVerifyTitle="Autenticazione a due fattori",this.MFAVerifyInstruction="Inserisci il codice a 6 cifre generato dall'app Autenticator.",this.MFAVerifyButton="Verifica",this.Disabilitata="disabilitata",this.Abilitata="abilitata",this.Indietro="Indietro",this.RecoveryCodesTitle="Codici di recupero",this.RecoveryCodesSaveWarning="Salva questi codici ora. Non verranno mostrati di nuovo.",this.RecoveryCodesDownload="Scarica come TXT",this.MFAAuthenticatorButton="Authenticator",this.MFALostCodes="Usa codice di recupero",this.MFARecoveryInstruction="Inserisci uno dei tuoi codici di recupero.",this.MFARegenerateTitle="Rigenera codici di recupero",this.MFARegenerateInstruction="Inserisci il codice dell'app per generare nuovi codici di recupero. I codici esistenti verranno invalidati.",this.MFARegenerateButton="Rigenera codici",this.MFALoadError="Impossibile caricare le impostazioni MFA. Riprova più tardi.",this.ConfirmPhoneTitle="Conferma il tuo numero di telefono",this.ConfirmPhoneLine1_1="Al tuo numero",this.ConfirmPhoneLine1_2="è stato inviato un codice numerico di 6 cifre (Pin)",this.ConfirmPhoneLine2="Inserisci il numero che hai ricevuto qui sotto per confermare il tuo account e accedere ai servizi.",this.ReSendSmsPin="Reinvia Pin",this.PinEmptyError="Devi inserire un PIN valido",this.ConfirmPhoneNumberButton="Conferma telefono",this.ConfirmPhoneError="Il telefono non è stato confermato! Verificare che il pin sms sia corretto.",this.VatNumberLenghtError="Partita iva non valida",this.ChangePassword="Modifica password",this.ChangeEmailLink="Modifica email",this.ChangePhone="Modifica telefono",this.DeleteUser="Elimina account",this.ResetPasswordHelp="Inserisci l'email con cui ti sei registrato, e ti invieremo il necessario per creare una nuova password",this.ResetPasswordHelp2="Inserisci e conferma la tua nuova password.",this.ResetPassword="Reset Password",this.NewEmail="Nuova email",this.ChangeEmail="Conferma cambio email",this.ConfirmEmail="Conferma email",this.ConfirmEmailText="Abbiamo inviato al tuo indirizzo di posta una email contenente il link per effettuare la conferma del tuo account",this.ResetPasswordText="Abbiamo inviato al tuo indirizzo una email contenente il link per effettuare il reset della password",this.ResetPasswordError="Non è stato possibile effettuare il reset della password in quanto ci sono problemi con l'account. Contattare l'assistenza.",this.ResetPasswordErrorEmail="Non è stato possibile effettuare il reset della password in quanto ci sono problemi con l'account (email vuota). Contattare l'assistenza.",this.ResetPasswordErrorToken="Non è stato possibile effettuare il reset della password in quanto ci sono problemi con l'account (token vuoto o non valido). Contattare l'assistenza.",this.ResetPasswordErrorPassword="Non è stato possibile effettuare il reset della password in quanto ci sono problemi con l'account (nuova password non valida). Contattare l'assistenza.",this.ChangeEmailErrorGeneric="Non è stato possibile cambiare l'indirizzo email. Riprova o contatta l'assistenza.",this.ChangeEmailErrorToken="Il link per il cambio email non è valido o è scaduto. Richiedine uno nuovo.",this.ChangeEmailErrorDuplicate="L'indirizzo email inserito è già associato a un altro account.",this.ChangeEmailErrorInvalid="L'indirizzo email inserito non è valido.",this.ChangingEmailTo=e=>`Stai cambiando l'email in ${e}`,this.EmailChangedLogoutIn=e=>`Email modificata con successo. Verrai disconnesso tra ${e} secondi per accedere con la nuova email.`,this.ForgotPassword="Password dimenticata?",this.CurrentPassword="Password corrente",this.BirthDate="Data di nascita",this.Day="Giorno",this.Month="Mese",this.Year="Anno",this.BirthDateError="Data di nascita non valida",this.PhoneNumberEmpty="Il telefono non può essere vuoto.",this.CallingCodeEmpty="Il prefisso non può essere vuoto.",this.CallingCodePlaceholder="+39",this.CallingCode="Prefisso",this.CompleteRegistration="Completa la registrazione",this.CompleteRegistrationDescription="Fornisci le informazioni richieste per completare la configurazione del tuo account.",this.RegistrationCompleted="Registrazione completata",this.RegistrationCompletedMessage="Le informazioni del tuo account sono state aggiornate con successo.",this.InvalidAccess="Accesso non valido",this.InvalidAccessMessage="Token di completamento o informazioni utente mancanti. Utilizza il link dalla tua email di conferma.",this.Loading="Caricamento...",this.Esci="Esci",this.FiscalCodeLenghtError="Codice fiscale non valido",this.DoNotHaveAnAccount="Non hai ancora un account?",this.CreateAnAccount="Registrati",this.Mandatory="I campi con * sono obbligatori",this.CreateAnAccountWith="Registrati con",this.Settings="Impostazioni",this.PasswordRequiresDigit="La password deve contenere lettere e numeri",this.DuplicateUserName="L'email o il numero di telefono potrebbero già essere stati registrati",this.RegistrationFailed="Non è stato possibile completare la registrazione. Verifica i dati inseriti e riprova.",this.InvalidPhoneNumber="Il numero di telefono non è valido.",this.EmailNotAllowed="Questo indirizzo email non è ammesso.",this.CallingCodeNotAllowed="Il prefisso internazionale selezionato non è abilitato.",this.SignIn="Accedi",this.SignUp="Registrati",this.NoSignIn="Procedi senza registrazione",this.Logout="Disconnetti",this.LoginWith="Accedi con",this.RegisterWith="Registrati con",this.Or="o",this.ResendSmsError="Gli sms possono essere inviati solo ogni 30 minuti",this.RegisterInAFewSeconds="Registrati in pochi secondi",this.RegisterFillingForm="Registrati compilando i campi",this.UserNotFound="Utente non trovato",this.EmailSentSuccessfully="Email inviata con successo",this.CheckInboxMessage="Controlla la tua casella di posta. Se non vedi l'email, controlla anche nella cartella spam. Attendere un ora prima di ritentare l'invio.",this.ErrorSendingEmail="Errore nell'invio dell'email. Riprova più tardi.",this.Sending="Invio in corso...",this.ResendEmail="Reinvia Email",this.CalculateFiscalCode="Calcola il tuo codice fiscale",this.LocalityIncomplete="Completa la località",this.AddressIncomplete="Completa l'indirizzo",this.CommercialUse="Proseguendo con la registrazione",this.CommercialUse2="al trattamento dei miei dati personali per la ricezione di comunicazioni commerciali relative ai prodotti e servizi della Società, offerte speciali, promozioni e novità relative agli stessi, a mezzo e-mail, telefono, sms, fax, posta ordinaria o simili (c.d. finalità di marketing).",this.CommercialUse2LibertyLines="al trattamento dei miei dati personali per l’invio di comunicazioni commerciali su prodotti e servizi, offerte speciali, promozioni e novità mediante posta elettronica, sistemi automatizzati di chiamata e messaggi del tipo Mms, Sms, WhatsApp, Telegram o di altro tipo. (c.d. finalità di marketing).",this.Acconsento="Acconsento",this.NonAcconsento="Non acconsento",this.CommercialUseNotSelected="Seleziona se acconsentire o meno",this.SeiStudente="Sei uno studente?",this.CompilaRichiestaStudente="Compila subito la richiesta di attivazione",this.PecSdiError="Pec o Codice destinatario non valido",this.EmailError="Email destinatario obbligatoria",this.PostalCodeRequired="Inserisci il cap",this.Locality="Località",this.LocalityDetail="Per promozioni dedicate alla tua città preferita (se esprimerai il consenso)",this.BrithDateDatail="Per promozioni dedicate alla tua fascia di età (se esprimerai il consenso)",this.AcceptPrivacyAndTravelRules1="dichiaro di aver letto le ",this.AcceptPrivacyAndTravelRules1_2=" e l'informativa",this.AcceptPrivacyAndTravelRulesExternal="dichiaro di aver letto le condizioni di viaggio e acquisto presenti ai seguenti link: ",this.RememberMe="Ricordami per i prossimi accessi",this.EmailOrPhone="Email o telefono",this.ViewPrivacyPolicy="Visualizza informativa",this.AttachmentDocumentation="Documentazione allegata",this.CheckCarrierForModulesDetails="Consulta la pagina del vettore per maggiori dettagli e download dei moduli",this.AttachIdentityDocument="Copia documento identità (fronte-retro)",this.AttachmentRequested="Allegato richiesto",this.AddNewAttachment="Aggiungi nuovo allegato",this.IdPhoto="Foto indentificativa",this.CardData="Anagrafica tessera",this.BirthLocality="Città di nascita",this.ResidencyLocality="Città di residenza",this.ResidencyAddress="Indirizzo di residenza",this.CardType="Tipologia tessera",this.RequestRenew="Richiedi rinnovo",this.RenewCard="Rinnova tessera",this.SendCard="Invio Tessera",this.AddChildCard="Aggiungi",this.AccountModified="Account modificato",this.Delete_Attention="ATTENZIONE",this.Delete_Dati="Il tuo account verrà eliminato in modo",this.Delete_Irreversibile="IRREVERSIBILE",this.Delete_Sicuro="Sei sicuro di voler eliminare il tuo account?",this.Delete_Tickets_1="I biglietti o gli abbonamenti acquistati",this.Delete_Tickets_2="verranno resi anonimi",this.RentalRequest="Richiedi Noleggio",this.WrongPhoneNumber=e=>`Il numero ${e} è sbagliato?`,this.ChangeIt="Cambialo!",this.Delete_Borsellino=(e,t)=>`Il credito del tuo borsellino (${e} €) ti verrà inviato come coupon via mail all'indirizzo ${t.toLowerCase()}`,this.LoginPageMetaDescription=e=>{switch(e){case"blunavy":return"Accedi al sistema di prenotazione e booking di Blu Navy. Gestisci la prenotazione del tuo biglietto comodamente online.";default:return"Accedi al sistema di prenotazione e booking. Gestisci la prenotazione del tuo biglietto comodamente online."}},this.LoginPageTitle=e=>{switch(e){case"blunavy":return"Login sistema di prenotazione e booking Blu Navy";default:return"Login sistema di prenotazione e booking"}},this.RegisterPageMetaDescription=e=>{switch(e){case"blunavy":return"Registrati al sistema di prenotazione di Blu Navy e acquista i tuoi biglietti in modo rapido e semplice. Approfitta delle tariffe convenienti.";default:return"Registrati al sistema di prenotazione e acquista i tuoi biglietti in modo rapido e semplice. Approfitta delle tariffe convenienti."}},this.RegisterPageTitle=e=>{switch(e){case"blunavy":return"Registrati per prenotare, acquistare e gestire biglietti su Blu Navy";default:return"Registrati per prenotare, acquistare e gestire biglietti"}},this.ForgotPasswordMetaDescription=e=>{switch(e){case"blunavy":return"Hai dimenticato la password per il booking di Blu Navy? Recuperala ora e gestisci i tuoi biglietti.";default:return"Hai dimenticato la password per il booking? Recuperala ora e gestisci i tuoi biglietti."}},this.ForgotPasswordPageTitle=e=>{switch(e){case"blunavy":return"Recupera la tua password per il booking di Blu Navy";default:return"Recupera la tua password per il booking"}},this.MarketingFlagsTitle="MANIFESTAZIONE DEL CONSENSO AL TRATTAMENTO DEI DATI PERSONALI",this.MarketingFlagsSubTitle="Io sottoscritto, dichiarando di aver letto e compreso l’informativa sopra riportata ai sensi dell'art. 13 del GDPR 2016/679 e presto il mio consenso per le seguenti finalità:",this.MarketingFlags31a="3.1.a) al trattamento dei miei dati personali al fine di ricevere materiale informativo e promozionale, anche mediante mezzi automatizzati di comunicazione (ad esempio e-mail, SMS, ecc...);",this.MarketingFlags31b="3.1.b) al trattamento dei miei dati personali al fine di ricevere newsletters, ai recapiti da Lei indicati;",this.LettaLInformativa="Letta l’informativa privacy",this.LettaLInformativaLibertyLines="Letta l'informativa sulla privacy:",this.GooglePrivacyModalTitle="Completa la registrazione con Google",this.GooglePrivacyModalDescription="Per creare un account con Google, accetta la nostra informativa sulla privacy e indica le preferenze di marketing."}};
1Ct.id="LoginResources";let ia=class{constructor(){this.AccountPage="Mein Account",this.MieiBiglietti="Meine Fahrkarten",this.MieiAbbonamenti="Meine Abonnements",this.Borsellino="Mein Portemonnaie",this.NewRental="neue Vermietung",this.Name="Name",this.MyPersons="Meine Karten",this.NameLenghtErrors="Der Name muss mindestens über 3 Buchstaben verfügen",this.NameErrors="Der Name darf keine Sonderzeichen enthalten ($,%,&,@,_,-,#)",this.Surname="Nachname",this.SurnameLenghtErrors="Der Nachname muss mindestens über 3 Buchstaben verfügen",this.SurnameErrors="Der Nachname darf keine Sonderzeichen enthalten ($,%,&,@,_,-,#)",this.Company="Unternehmen",this.CompanyName="Firmenbezeichnung",this.CompanyNameLenghtError="Firmenbezeichnung des Unternehmens angeben",this.PrivateUser="Privat",this.VatNumber="MwSt.Nr.",this.FiscalCode="Steuernummer",this.Mail="E-Mail",this.EmailLenghtError="E-Mail Adresse muss mindestens über 3 Buchstaben verfügen",this.EmailsNotEquals="Die E-Mail-Adressen stimmen nicht überein",this.IsNotValidEmail="ungültige E-Mail-Adresse",this.ConfirmMail="E-Mail bestätigen",this.PhoneNumber="Mobiltelefonnummer",this.Password="Passwort",this.Confirm="Bestätigen",this.Save="Speichern",this.Annulla="Abbrechen",this.PasswordLenghtError="Das Passwort ist zu kurz",this.ConfirmPassword="Password bestätigen",this.PasswordsNotEqual="Die eingefügten Passwörter stimmen nicht überein",this.PhoneNumbersNotEquals="Die Telefonnummern sind ungültig",this.Nationality="Nationalität",this.ConfirmPhoneNumber="Mobiltelefonnummer bestätigen",this.Acconsenti="Zustimmen",this.ConfirmEmailError="Fehler, während der Aktivierungsphase Ihres Accounts sind aufgetreten. Wenden Sie sich an einen Verwalter",this.PrivacyNotAccepted="Um die Registrierung durchzuführen, ist es notwendig der Datenschutzerklärung zuzustimmen.",this.PrivacyLabel="Genehmigung der ",this.PrivacyLabelOnlyPrivacy="Ich akzeptiere ",this.PrivacyLinkLabelOnlyPrivacy="Datenschutzbestimmungen",this.PrivacyLabel2="Geschäftsbedingungen",this.PrivacyLabel3="und der",this.PrivacyLabel4="Datenschutzerklärung",this.PrivacyLabelOthers="Geschäftsbedingungen",this.MFASetup="Zwei-Faktor-Authentifizierung (MFA)",this.MFAEnableTitle="MFA aktivieren",this.MFAEnableScanInstruction="Scannen Sie den QR-Code mit Ihrer Authenticator-App (z.B. Google Authenticator, Authy).",this.MFAManualKey="Manueller Schlüssel: ",this.MFAEnableButton="Aktivieren",this.MFADisableTitle="MFA deaktivieren",this.MFADisableInstruction="Geben Sie den Code aus der App ein, um die Zwei-Faktor-Verifizierung zu deaktivieren.",this.MFADisableButton="Deaktivieren",this.MFAEnabledSuccess="MFA erfolgreich aktiviert",this.MFADisabledSuccess="MFA deaktiviert",this.MFAEnabledStatus="Zwei-Faktor-Authentifizierung aktiviert",this.MFAInvalidCode="Ungültiger Code",this.MFAInvalidRecoveryCode="Ungültiger oder bereits verwendeter Wiederherstellungscode",this.MFAVerifyTitle="Zwei-Faktor-Authentifizierung",this.MFAVerifyInstruction="Geben Sie den 6-stelligen Code aus Ihrer Authenticator-App ein.",this.MFAVerifyButton="Verifizieren",this.PasskeySetup="Passkey Setup",this.PasskeyEnabledStatus="Passkey-Anmeldung aktiviert",this.PasskeyAddTitle="Passkey hinzufügen",this.PasskeyAddInstruction="Verwenden Sie die biometrische Erkennung Ihres Geräts, um sich ohne Passwort anzumelden.",this.PasskeyAddButton="Passkey hinzufügen",this.PasskeyNameLabel="Gerätename",this.PasskeyNamePlaceholder="z.B. Marcos iPhone",this.PasskeyLoadError="Passkeys konnten nicht geladen werden. Bitte versuchen Sie es später erneut.",this.PasskeyAddError="Passkey konnte nicht hinzugefügt werden. Bitte versuchen Sie es erneut.",this.PasskeyAddSuccess="Passkey erfolgreich hinzugefügt",this.PasskeyRemoveConfirm="Diesen Passkey entfernen?",this.PasskeyRemoveSuccess="Passkey entfernt",this.PasskeyRemoveError="Passkey konnte nicht entfernt werden. Bitte versuchen Sie es erneut.",this.PasskeyRenameSuccess="Passkey umbenannt",this.PasskeyRenameError="Passkey konnte nicht umbenannt werden. Bitte versuchen Sie es erneut.",this.PasskeyNoPasskeys="Keine Passkeys registriert",this.PasskeyLoginButton="Mit Passkey anmelden",this.PasskeyLoginError="Anmeldung mit Passkey nicht möglich. Bitte versuchen Sie es erneut.",this.PasskeyNameModalTitle="Passkey benennen",this.PasskeyNameModalInstruction="Helfen Sie dabei, das Gerät zu identifizieren, zu dem dieser Passkey gehört.",this.PasskeySaveName="Speichern",this.PasskeyCreatedAt="Erstellt am",this.Disabilitata="deaktiviert",this.Abilitata="aktiviert",this.Indietro="Zurück",this.RecoveryCodesTitle="Wiederherstellungscodes",this.RecoveryCodesSaveWarning="Speichern Sie diese Codes jetzt. Sie werden nicht erneut angezeigt.",this.RecoveryCodesDownload="Als TXT herunterladen",this.MFAAuthenticatorButton="Authenticator",this.MFALostCodes="Wiederherstellungscode verwenden",this.MFARecoveryInstruction="Geben Sie einen Ihrer Wiederherstellungscodes ein.",this.MFARegenerateTitle="Wiederherstellungscodes neu generieren",this.MFARegenerateInstruction="Geben Sie Ihren Authentifizierungscode ein, um neue Wiederherstellungscodes zu generieren. Ihre vorhandenen Codes werden ungültig.",this.MFARegenerateButton="Codes neu generieren",this.MFALoadError="MFA-Einstellungen konnten nicht geladen werden. Bitte versuchen Sie es erneut.",this.ConfirmPhoneTitle="Bestätigen Sie Ihre Telefonnummer",this.ConfirmPhoneLine1_1="Auf Ihre Nummer",this.ConfirmPhoneLine1_2="wurde ein Code mit 6 Zeichen gesandt (Pin):",this.ConfirmPhoneLine2="Die Nummer, die Sie erhalten haben hier einfügen und Ihren Account bestätigen sowie auf das Service zugreifen.",this.ReSendSmsPin="PIN per SMS erneut versenden",this.PinEmptyError="Nicht gültiger PIN-Code",this.ConfirmPhoneNumberButton="Telefonnummer bestätigen",this.ConfirmPhoneError="Ihre Telefonnummer wurde nicht bestätigt! Überprüfen, ob der PIN korrekt ist.",this.VatNumberLenghtError="Ungültige MwSt.Nr",this.ChangePassword="Passwort ändern",this.ChangeEmailLink="E-Mail ändern",this.ChangePhone="Telefonnummer ändern",this.DeleteUser="Konto löschen",this.ResetPasswordHelp="E-Mail-Adresse einfügen, mit der Sie sich registriert haben. Wir werden Ihnen alles Notwendige zusenden, damit Sie ein neues Password erstellen können.",this.ResetPasswordHelp2="Einfügen und Ihr neues Password bestätigen.",this.ResetPassword="Password löschen",this.NewEmail
1="Neue E-Mail",this.ChangeEmail="E-Mail-Änderung bestätigen",this.ConfirmEmail="Bestätigungs-E-Mail",this.ConfirmEmailText="Wir haben eine E-Mail-Nachricht mit dem Link zur Bestätigung Ihres Kontos gesendet.",this.ResetPasswordText="Wir haben auf Ihre E-Mail-Adresse eine E-Mail gesandt, welche den Link beinhaltet, um das Password zu löschen",this.ResetPasswordError="Es war nicht möglich  das Password zu löschen, weil ein Fehler bei Ihrem Account aufgetreten ist. Die Assistenz kontaktieren.",this.ResetPasswordErrorEmail="Es war nicht möglich  das Password zu löschen, weil ein Fehler bei Ihrem Account aufgetreten ist (empty email). Die Assistenz kontaktieren.",this.ResetPasswordErrorToken="Es war nicht möglich  das Password zu löschen, weil ein Fehler bei Ihrem Account aufgetreten ist (empty or invalid token). Die Assistenz kontaktieren.",this.ResetPasswordErrorPassword="Es war nicht möglich  das Password zu löschen, weil ein Fehler bei Ihrem Account aufgetreten ist (empty or invalid password). Die Assistenz kontaktieren.",this.ChangeEmailErrorGeneric="Die E-Mail-Adresse konnte nicht geändert werden. Bitte versuchen Sie es erneut oder kontaktieren Sie den Support.",this.ChangeEmailErrorToken="Der Link zur E-Mail-Änderung ist ungültig oder abgelaufen. Bitte fordern Sie einen neuen an.",this.ChangeEmailErrorDuplicate="Die eingegebene E-Mail-Adresse ist bereits mit einem anderen Konto verknüpft.",this.ChangeEmailErrorInvalid="Die eingegebene E-Mail-Adresse ist ungültig.",this.ChangingEmailTo=e=>`Sie ändern Ihre E-Mail-Adresse in ${e}`,this.EmailChangedLogoutIn=e=>`E-Mail erfolgreich geändert. Sie werden in ${e} Sekunden abgemeldet, um sich mit der neuen E-Mail anzumelden.`,this.ForgotPassword="Password vergessen?",this.CurrentPassword="Momentanes Password",this.BirthDate="Geburtsdatum",this.Day="Tag",this.Month="Monat",this.Year="Jahr",this.BirthDateError="Ungültiges Geburtsdatum",this.PhoneNumberEmpty="Der Bereich für die Telefonnummer wurde nicht ausgefüllt.",this.CallingCodeEmpty="Die Vorwahl fehlt.",this.CallingCodePlaceholder="+39",this.CallingCode="Vorwahl",this.CompleteRegistration="Registrierung abschließen",this.CompleteRegistrationDescription="Bitte geben Sie die erforderlichen Informationen ein, um die Einrichtung Ihres Kontos abzuschließen.",this.RegistrationCompleted="Registrierung abgeschlossen",this.RegistrationCompletedMessage="Ihre Kontoinformationen wurden erfolgreich aktualisiert.",this.InvalidAccess="Ungültiger Zugriff",this.InvalidAccessMessage="Vervollständigungs-Token oder Benutzerinformationen fehlen. Bitte verwenden Sie den Link aus Ihrer Bestätigungs-E-Mail.",this.Loading="Laden...",this.Esci="Logout",this.FiscalCodeLenghtError="Ungültige Steuernummer",this.DoNotHaveAnAccount="Haben Sie noch keinen Account?",this.CreateAnAccount="Registrieren Sie sich unter",this.CreateAnAccountWith="Registrieren Sie sich unter",this.Mandatory="* erforderlich",this.Settings="Einstellungen",this.PasswordRequiresDigit="Das Password muss mindestens über sechs Zeichen verfügen",this.DuplicateUserName="Die E-Mail-Adresse oder die Telefonnummer wurde möglicherweise bereits registriert",this.RegistrationFailed="Die Registrierung konnte nicht abgeschlossen werden. Bitte überprüfen Sie Ihre Angaben und versuchen Sie es erneut.",this.InvalidPhoneNumber="Die Telefonnummer ist ungültig.",this.EmailNotAllowed="Diese E-Mail-Adresse ist nicht zulässig.",this.CallingCodeNotAllowed="Die ausgewählte internationale Vorwahl ist nicht zulässig.",this.SignIn="Anmelden",this.SignUp="Registrieren",this.NoSignIn="Ohne Anmeldung fortfahren",this.Logout="Trennen",this.LoginWith="Verbinden mit",this.RegisterWith="Zugreifen mit",this.Or="Oder",this.ResendSmsError="Die SmS können nur alle 30 Minuten zugesandt werden",this.RegisterInAFewSeconds="Sich innerhalb weniger Sekunden registrieren",this.RegisterFillingForm="Für die Registrierung ist es ausreichend alle Felder auszufüllen",this.UserNotFound="Benutzer nicht gefunden",this.EmailSentSuccessfully="E-Mail erfolgreich gesendet",this.CheckInboxMessage="Überprüfen Sie Ihr Postfach. Falls Sie die E-Mail nicht sehen, prüfen Sie auch Ihren 
1Spam-Ordner. Warten Sie eine Stunde, bevor Sie versuchen, die E-Mail erneut zu senden.",this.ErrorSendingEmail="Fehler beim Senden der E-Mail. Bitte versuchen Sie es später erneut.",this.Sending="Wird gesendet...",this.ResendEmail="E-Mail erneut senden",this.CalculateFiscalCode="Ihre Steuernummer erstellen",this.LocalityIncomplete="den Ort hinzufügen",this.AddressIncomplete="Die Adresse hinzufügen",this.CommercialUse="Mit der Registrierung fortfahren",this.CommercialUse2="der Verarbeitung meiner personenbezogenen Daten zum Erhalt von Werbemitteilungen über die Produkte und Dienstleistungen des Unternehmens, Sonderangebote, Aktionen und Neuigkeiten dazu per E-Mail, Telefon, SMS, Fax, Briefpost oder ähnliche Mittel (sog. Marketingzwecke).",this.CommercialUse2LibertyLines="um Werbekommunikation zu erhalten",this.Acconsento="Ich stimme zu",this.NonAcconsento="Ich stimme nicht zu",this.CommercialUseNotSelected="Wählen Sie, ob Sie zustimmen oder nicht",this.SeiStudente="Sei uno studente?",this.CompilaRichiestaStudente="Compila subito la richiesta di attivazione",this.PecSdiError="Pec oder Empfängercode erforderlich",this.EmailError="Empfänger-E-Mail erforderlich",this.PostalCodeRequired="Postleitzahl erforderlich",this.Locality="Stadt",this.LocalityDetail="Es wird verwendet, um Ihnen Werbeaktionen zu senden, die Ihrer Lieblingsstadt gewidmet sind(wenn Sie Ihre Einwilligung zum Ausdruck gebracht haben).",this.BrithDateDatail="Es wird verwendet, um Ihre Werbeaktionen an Sie zu senden (wenn Sie Ihre Einwilligung zum Ausdruck gebracht haben)",this.AcceptPrivacyAndTravelRules1="Ich erkläre, gelesen zu haben die ",this.AcceptPrivacyAndTravelRules1_2=" und unsere Informationen",this.AcceptPrivacyAndTravelRulesExternal="Ich erkläre, die Reise- und Kaufbedingungen unter den folgenden Links gelesen zu haben: ",this.RememberMe="Angemeldet bleiben",this.EmailOrPhone="E-Mail oder Telefon",this.ViewPrivacyPolicy="Datenschutzrichtlinie ansehen",this.AttachmentDocumentation="Beigefügte Dokumentation",this.CheckCarrierForModulesDetails="Weitere Informationen zu Modulen und Zubehör finden Sie auf der Seite des Anbieters",this.AttachIdentityDocument="Dokument-ID anhängen",this.AttachmentRequested="Anhang erforderlich",this.AddNewAttachment="Neue Datei hinzufügen",this.IdPhoto="Ausweisfoto",this.CardData="Kartendatum",this.BirthLocality="Geburtsort",this.ResidencyLocality="Wohnort",this.ResidencyAddress="Wohnadresse",this.CardType="Speicherkarten-Typ",this.RequestRenew="Verlängerung beantragen",this.RenewCard="Karte erneuern",this.SendCard="Karte senden",this.AddChildCard="Hinzufügen",this.AccountModified="Konto geändert",this.Delete_Attention="ACHTUNG",this.Delete_Sicuro="Sind Sie sicher, dass Sie Ihr Konto löschen möchten?",this.Delete_Irreversibile="DAUERHAFT",this.Delete_Dati="Ihr Konto wird gelöscht",this.Delete_Tickets_1="Ihre Tickets",this.Delete_Tickets_2="werden anonymisiert",this.RentalRequest="Miete anfragen",this.WrongPhoneNumber=e=>`Ist die Nummer ${e} falsch?`,this.ChangeIt="Ändern Sie sie!",this.Delete_Borsellino=(e,t)=>`Ihr Portemonnaie-Guthaben (${e} €) wird in einen Gutschein umgewandelt und an Ihre E-Mail-Adresse ${t.toLowerCase()} gesendet`,this.LoginPageMetaDescription=e=>{switch(e){case"blunavy":return"Greifen Sie auf das Buchungs- und Reservierungssystem von Blu Navy zu. Verwalten Sie Ihre Ticketreservierung bequem online.";default:return"Greifen Sie auf das Buchungs- und Reservierungssystem. Verwalten Sie Ihre Ticketreservierung bequem online."}},this.LoginPageTitle=e=>{switch(e){case"blunavy":return"Anmeldung im Blu Navy Buchungs- und Reservierungssystem";default:return"Anmeldung Buchungs- und Reservierungssystem"}},this.RegisterPageMetaDescription=e=>{switch(e){case"blunavy":return"Registrieren Sie sich für das Buchungssystem von Blu Navy und kaufen Sie Ihre Tickets schnell und einfach. Profitieren Sie von unseren günstigen Tarifen.";default:return"Registrieren Sie sich für das Buchungssystem und kaufen Sie Ihre Tickets schnell und einfach. Profitieren Sie von unseren günstigen Tarifen."}},this.RegisterPageTitle=e=>{switch(e){case"blunavy":return"Registrieren Sie sich für Blu Navy Tickets";default:return"Registrieren Sie sich für Tickets"}},this.ForgotPasswordMetaDescription=e=>{switch(e){case"blunavy":return"Haben Sie Ihr Passwort für die Blu Navy Buchung vergessen? Stellen Sie es jetzt wieder her und verwalten Sie Ihre Tickets.";default:return"Haben Sie Ihr Passwort für die Buchung vergessen? Stellen Sie es jetzt wieder her und verwalten Sie Ihre Tickets."}},this.ForgotPasswordPageTitle=e=>{switch(e){case"blunavy":return"Wiederherstellung Ihres Passworts für die Blu Navy Buchung";default:return"Wiederherstellung Ihres Passworts für die Buchung"}},this.MarketingFlagsTitle="EINWILLIGUNG ZUR VERARBEITUNG PERSONENBEZOGENER DATEN",this.MarketingFlagsSubTitle="Ich, der Unterzeichnete, erkläre, dass ich die oben genannten Informationen gemäß Art. 13 DSGVO 2016/679 gelesen und verstanden habe und gebe meine Einwilligung für die folgenden Zwecke:",this.MarketingFlags31a="3.1.a) zur Verarbeitung meiner personenbezogenen Daten, um Informations- und Werbematerial zu erhalten und/oder an Marktforschung teilzunehmen, über alle verfügbaren Kommunikationsmittel, automatisiert oder nicht;",this.MarketingFlags31b="3.1.b) zur Verarbeitung meiner personenbezogenen Daten, um Newsletter an die von Ihnen angegebenen Adressen zu erhalten;",this.LettaLInformativa="Nachdem ich die Datenschutzerklärung gelesen habe",this.LettaLInformativaLibertyLines="Nachdem ich gelesen habe",this.GooglePrivacyModalTitle="Registrierung mit Google abschließen",this.GooglePrivacyModalDescription="Um ein Konto mit Google zu erstellen, akzeptieren Sie bitte unsere Datenschutzrichtlinie und legen Sie Ihre Marketingpräferenzen fest."}};ia.id="LoginResources";let ra=class{constructor(){this.AccountPage="Mon compte",this.MieiBiglietti="Mes billets",this.MieiAbbonamenti="Mes abonnement",this.Borsellino="Mon porte-monnaie",this.NewRental="nouvelle location",this.Name="Nom",this.MyPersons="Mes cartes",this.NameLenghtErrors="Le nom doit contenir au moins 3 caractères",this.NameErrors="Le nom ne doit pas contenir de caractères spéciaux ($,%,&,@,_,-,#)",this.Surname="Nom de famille",this.SurnameLenghtErrors="Le nom de famille doit contenir au moins 3 caractères",this.SurnameErrors="Le nom de famille ne doit pas contenir de caractères spéciaux ($,%,&,@,_,-,#)",this.Company="Entreprise",this.CompanyName="Raison Sociale",this.CompanyNameLenghtError="Spécifier la raison sociale de l’entreprise",this.PrivateUser="Privé",this.VatNumber="n° TVA",this.FiscalCode="NIF",this.Mail="e-mail",this.EmailLenghtError="L’adresse e-mail doit contenir au moins 3 caractères",this.EmailsNotEquals="Les adresses e-mail ne correspondent pas",this.IsNotValidEmail="e-mail invalide",this.ConfirmMail="Confirmer E-mail",this.Confirm="Confirmer",this.Save="Enregistrer",this.Annulla="Annuler",this.PhoneNumber="Téléphone portable",this.Password="Mot de passe",this.PasswordLenghtError="Le mot de passe est trop court",this.ConfirmPassword="Confirmer le mot de passe",this.PasswordsNotEqual="Les mots de passe saisies ne correspondent pas",this.PhoneNumbersNotEquals="Les numéros de téléphone ne correspondent pas",this.Nationality="Nationalité",this.ConfirmPhoneNumber="Confirmer le téléphone portable",this.Acconsenti="Accepter",this.ConfirmEmailError="Des problèmes se sont produits pendant le processus d’activation de votre compte. Contactez un administrateur",this.PrivacyNotAccepted="Pour procéder à l’enregistrement, vous devez accepter la réglementation relative à la protection de la vie privée",this.PrivacyLabel="J’accepte le ",this.PrivacyLabelOnlyPrivacy="J'accepte ",this.PrivacyLinkLabelO
1nlyPrivacy="les conditions du privacy",this.PrivacyLabel2="termes et conditions",this.PrivacyLabel3="et",this.PrivacyLabel4="la politique de confidentialité",this.PrivacyLabelOthers="termes et conditions",this.MFASetup="Authentification à deux facteurs (MFA)",this.MFAEnableTitle="Activer le MFA",this.MFAEnableScanInstruction="Scannez le code QR avec votre application d'authentification (ex. Google Authenticator, Authy).",this.MFAManualKey="Clé manuelle : ",this.MFAEnableButton="Activer",this.MFADisableTitle="Désactiver le MFA",this.MFADisableInstruction="Saisissez le code de l'application pour désactiver la vérification à deux facteurs.",this.MFADisableButton="Désactiver",this.MFAEnabledSuccess="MFA activé avec succès",this.MFADisabledSuccess="MFA désactivé",this.MFAEnabledStatus="Authentification à deux facteurs activée",this.MFAInvalidCode="Code invalide",this.MFAInvalidRecoveryCode="Code de récupération invalide ou déjà utilisé",this.MFAVerifyTitle="Authentification à deux facteurs",this.MFAVerifyInstruction="Saisissez le code à 6 chiffres généré par l'application d'authentification.",this.MFAVerifyButton="Vérifier",this.PasskeySetup="Configuration passkey",this.PasskeyEnabledStatus="Connexion par passkey activée",this.PasskeyAddTitle="Ajouter une passkey",this.PasskeyAddInstruction="Utilisez la reconnaissance biométrique de votre appareil pour vous connecter sans mot de passe.",this.PasskeyAddButton="Ajouter une passkey",this.PasskeyNameLabel="Nom de l'appareil",this.PasskeyNamePlaceholder="ex. iPhone de Marco",this.PasskeyLoadError="Impossible de charger les passkeys. Veuillez réessayer plus tard.",this.PasskeyAddError="Impossible d'ajouter la passkey. Veuillez réessayer.",this.PasskeyAddSuccess="Passkey ajoutée avec succès",this.PasskeyRemoveConfirm="Supprimer cette passkey ?",this.PasskeyRemoveSuccess="Passkey supprimée",this.PasskeyRemoveError="Impossible de supprimer la passkey. Veuillez réessayer.",this.PasskeyRenameSuccess="Passkey renommée",this.PasskeyRenameError="Impossible de renommer la passkey. Veuillez réessayer.",this.PasskeyNoPasskeys="Aucune passkey enregistrée",this.PasskeyLoginButton="Se connecter avec passkey",this.PasskeyLoginError="Impossible de se connecter avec passkey. Veuillez réessayer.",this.PasskeyNameModalTitle="Nommez votre clé d'accès",this.PasskeyNameModalInstruction="Aidez à identifier l'appareil auquel appartient cette clé d'accès.",this.PasskeySaveName="Enregistrer",this.PasskeyCreatedAt="Créée le",this.Disabilitata="désactivée",this.Abilitata="activée",this.Indietro="Retour",this.RecoveryCodesTitle="Codes de récupération",this.RecoveryCodesSaveWarning="Enregistrez ces codes maintenant. Ils ne seront plus affichés.",this.RecoveryCodesDownload="Télécharger en TXT",this.MFAAuthenticatorButton="Authenticator",this.MFALostCodes="Utiliser un code de récupération",this.MFARecoveryInstruction="Saisissez l'un de vos codes de récupération.",this.MFARegenerateTitle="Régénérer les codes de récupération",this.MFARegenerateInstruction="Saisissez votre code d'authentification pour générer de nouveaux codes de récupération. Vos codes existants seront invalidés.",this.MFARegenerateButton="Régénérer les codes",this.MFALoadError="Impossible de charger les paramètres MFA. Veuillez réessayer.",this.ConfirmPhoneTitle="Confirmez votre numéro de téléphone",this.ConfirmPhoneLine1_1="À votre numéro",this.ConfirmPhoneLine1_2="on vient d’envoyer un code numérique à 6 chiffres (Pin):",this.ConfirmPhoneLine2="Saisissez ci-dessous le numéro que vous venez de recevoir pour confirmer votre compte et accéder aux services.",this.ReSendSmsPin="Renvoyer PIN par SMS",this.PinEmptyError="Code PIN non valide",this.ConfirmPhoneNumberButton="Confirmer téléphone",this.ConfirmPhoneError="Le téléphone n’a pas été confirmé! Assurez-vous que le pin sms soit correct.",this.VatNumberLenghtError="n° TVA invalide",this.ChangePassword="Modifier mot de passe",this.ChangeEmailLink="Modifier l'e-mail",this.ChangePhone="Modifier téléphone",this.DeleteUser="Supprimer le compte",this.ConfirmEmail="Confirmez votre e-mail",this.ConfirmEmailText="Nous avons envoyé un e-mail avec un lien pour confirmer votre compte.",this.ResetPasswordHelp="Saisissez l'e-mail avec lequel vous vous êtes enregistré et nous vous enverrons tout ce dont vous avez besoin pour créer un nouveau mot de passe",this.ResetPasswordHelp2="Saisissez et confirmez votre nouveau mot de passe.",this.ResetPassword="Réinitialisation du Mot de Passe",this.NewEmail
1="Nouvel e-mail",this.ChangeEmail="Confirmer le changement d'e-mail",this.ResetPasswordText="Nous venons d’envoyer un e-mail à votre adresse contenant un lien pour réinitialiser votre mot de passe",this.ResetPasswordError="Il n’a pas été possible de réinitialiser votre mot de passe à cause de problèmes survenus avec votre compte. S’il vous plaît contacter le service de support.",this.ResetPasswordErrorEmail="Il n’a pas été possible de réinitialiser votre mot de passe à cause de problèmes survenus avec votre compte (empty email). S’il vous plaît contacter le service de support.",this.ResetPasswordErrorToken="Il n’a pas été possible de réinitialiser votre mot de passe à cause de problèmes survenus avec votre compte (empty or invalid token). S’il vous plaît contacter le service de support.",this.ResetPasswordErrorPassword="Il n’a pas été possible de réinitialiser votre mot de passe à cause de problèmes survenus avec votre compte (empty or invalid password). S’il vous plaît contacter le service de support.",this.ChangeEmailErrorGeneric="Il n’a pas été possible de modifier votre adresse e-mail. Veuillez réessayer ou contacter le support.",this.ChangeEmailErrorToken="Le lien de modification de l’e-mail n’est pas valide ou a expiré. Veuillez en demander un nouveau.",this.ChangeEmailErrorDuplicate="L’adresse e-mail saisie est déjà associée à un autre compte.",this.ChangeEmailErrorInvalid="L’adresse e-mail saisie n’est pas valide.",this.ChangingEmailTo=e=>`Vous changez votre e-mail en ${e}`,this.EmailChangedLogoutIn=e=>`E-mail modifié avec succès. Vous serez déconnecté dans ${e} secondes pour vous reconnecter avec le nouvel e-mail.`,this.ForgotPassword="Mot de passe oublié?",this.CurrentPassword="Mot de passe actuel",this.BirthDate="Date de naissance",this.Day="Jour",this.Month="Mois",this.Year="Année",this.BirthDateError="Date de naissance invalide",this.PhoneNumberEmpty="Le champ du téléphone ne peut pas être laissé vide.",this.CallingCodeEmpty="Le champ du préfixe ne peut pas être laissé vide.",this.CallingCodePlaceholder="+39",this.CallingCode="Préfixe",this.CompleteRegistration="Terminer l'inscription",this.CompleteRegistrationDescription="Veuillez fournir les informations requises pour terminer la configuration de votre compte.",this.RegistrationCompleted="Inscription terminée",this.RegistrationCompletedMessage="Les informations de votre compte ont été mises à jour avec succès.",this.InvalidAccess="Accès non valide",this.InvalidAccessMessage="Jeton de complétion ou informations utilisateur manquantes. Veuillez utiliser le lien de votre email de confirmation.",this.Loading="Chargement...",this.Esci="Annuler",this.FiscalCodeLenghtError="NIF invalide",this.DoNotHaveAnAccount="Vous ne disposez-pas d’un compte?",this.CreateAnAccount="Enregistrez-vous",this.CreateAnAccountWith="Enregistrez-vous avec",this.Mandatory="* obligatoire",this.Settings="Paramètres",this.PasswordRequiresDigit="Le mot de passe doit contenir au moins un chiffre",this.DuplicateUserName="L'e-mail ou le numéro de téléphone pourraient déjà être enregistrés",this.RegistrationFailed="Impossible de finaliser l'inscription. Vérifiez les informations saisies et réessayez.",this.InvalidPhoneNumber="Le numéro de téléphone n'est pas valide.",this.EmailNotAllowed="Cette adresse e-mail n'est pas autorisée.",this.CallingCodeNotAllowed="L'indicatif international sélectionné n'est pas autorisé.",this.SignIn="Accéder",this.SignUp="S'inscrire",this.NoSignIn="Continuer sans inscription",this.Logout="Déconnecter",this.LoginWith="Accéder avec",this.RegisterWith="Enregistrez-vous avec",this.Or="ou",this.ResendSmsError="Des sms ne peuvent être envoyés que tous les 30 minutes",this.RegisterInAFewSeconds="Enregistrez-vous en quelques secondes",this.RegisterFillingForm="Enregistrez-vous en remplissant les champs",this.UserNotFound="Utilisateur non trouvé",this.EmailSentSuccessfully="E-mail envoyé avec succès",this.CheckInboxMessage="Veuillez vérifier votre boîte de réception. Si vous ne voyez pas l'e-mail, vérifiez aussi votre dossier spam. Attendez une heure avant de réessayer d'envoyer l'e-mail.",this.ErrorSendingEmail="Erreur lors de l'envoi de l'e-mail. Veuillez réessayer plus tard.",this.Sending="Envoi en cours...",this.ResendEmail="Renvoyer l'e-mail",this.CalculateFiscalCode="Calculez votre NIF",this.LocalityIncomplete="Complétez le lieu",this.AddressIncomplete="Complétez l'adresse",this.CommercialUse="En poursuivant l'inscription",this.CommercialUse2="au traitement de mes données personnelles afin de recevoir des communications commerciales relatives aux produits et services de la Société, des offres spéciales, des promotions et des nouveautés les concernant, par e-mail, téléphone, SMS, fax, courrier postal ou moyens similaires (finalités dites de marketing).",this.CommercialUse2LibertyLines="pour recevoir des communications promotionnelles",this.Acconsento="J'accepte",this.NonAcconsento="Je n'accepte pas",this.CommercialUseNotSelected="Sélectionnez si vous acceptez ou non",this.SeiStudente="Sei uno studente?",this.CompilaRichiestaStudente="Compila subito la richiesta di attivazione",this.PecSdiError="Pec o Codice destinatario obbligatori",this.EmailError="Email destinatario obbligatoria",this.PostalCodeRequired="Code postal requis",this.Locality="Ville",this.LocalityDetail="Il sera utilisé pour vous envoyer des promotions dédiées à votre ville préférée (si vous avez exprimé votre consentement)",this.BrithDateDatail="Il sera utilisé pour vous envoyer vos promotions (si vous avez exprimé votre consentement)",this.AcceptPrivacyAndTravelRules1="je déclare avoir lu les ",this.AcceptPrivacyAndTravelRules1_2=" et notre information",this.AcceptPrivacyAndTravelRulesExternal="je déclare avoir lu les conditions de voyage et d'achat présentes aux liens suivants : ",this.RememberMe="Se souvenir de moi",this.EmailOrPhone="Email ou téléphone",this.ViewPrivacyPolicy="Voir la politique de confidentialité",this.AttachmentDocumentation="Documentation jointe",this.CheckCarrierForModulesDetails="Consultez la page du transporteur pour plus d'informations sur les modules et les pièces jointes",this.AttachIdentityDocument="Joindre l'ID du document",this.AttachmentRequested="Pièce jointe requise",this.AddNewAttachment="Ajouter un nouveau fichier",this.IdPhoto="Photo d'identité",this.CardData="Date de la carte",this.BirthLocality="Lieu de naissance",this.ResidencyLocality="Localité de résidence",this.ResidencyAddress="Adresse de résidence",this.CardType="type de carte",this.RequestRenew="Demande de renouvellement",this.RenewCard="renouveler",this.SendCard="Envoyer une carte",this.AddChildCard="Ajouter",this.AccountModified="Compte modifié",this.Delete_Attention="ATTENTION",this.Delete_Sicuro="Êtes-vous sûr de vouloir supprimer votre compte ?",this.Delete_Irreversibile="DÉFINITIVEMENT",this.Delete_Dati="Votre compte sera supprimé",this.Delete_Tickets_1="Vos billets",this.Delete_Tickets_2="seront anonymisés",this.RentalRequest="Demander une location",this.WrongPhoneNumber=e=>`Le numéro ${e} est incorrect?`,this.ChangeIt="Changez-le!",this.Delete_Borsellino=(e,t)=>`Le crédit de votre porte-monnaie (${e} €) sera transformé en coupon et envoyé à votre adresse e-mail ${t.toLowerCase()}`,this.LoginPageMetaDescription=e=>{switch(e){case"blunavy":return"Accédez au système de réservation et de réservation de Blu Navy. Gérez votre réservation de billet en toute simplicité en ligne.";default:return"Accédez au système de réservation et de réservation. Gérez votre réservation de billet en toute simplicité en ligne."}},this.LoginPageTitle=e=>{switch(e){case"blunavy":return"Connexion au système de réservation et de réservation Blu Navy";default:return"Connexion au système de réservation et de réservation"}},this.RegisterPageMetaDescription=e=>{switch(e){case"blunavy":return"Inscrivez-vous au système de réservation de Blu Navy et achetez ra
1pidement et facilement vos billets. Profitez de nos tarifs avantageux.";default:return"Inscrivez-vous au système de réservation et achetez rapidement et facilement vos billets. Profitez de nos tarifs avantageux."}},this.RegisterPageTitle=e=>{switch(e){case"blunavy":return"Inscrivez-vous pour gérer les billets sur Blu NavyTickets";default:return"Inscrivez-vous pour gérer les billets"}},this.ForgotPasswordMetaDescription=e=>{switch(e){case"blunavy":return"Vous avez oublié votre mot de passe pour la réservation Blu Navy ? Récupérez-le maintenant et gérez vos billets.";default:return"Vous avez oublié votre mot de passe pour la réservation ? Récupérez-le maintenant et gérez vos billets."}},this.ForgotPasswordPageTitle=e=>{switch(e){case"blunavy":return"Récupérez votre mot de passe pour la réservation Blu Navy";default:return"Récupérez votre mot de passe pour la réservation"}},this.MarketingFlagsTitle="CONSENTEMENT AU TRAITEMENT DES DONNÉES PERSONNELLES",this.MarketingFlagsSubTitle="Je soussigné, déclarant avoir lu et compris les informations ci-dessus conformément à l'art. 13 du RGPD 2016/679, je donne mon consentement aux fins suivantes :",this.MarketingFlags31a="3.1.a) au traitement de mes données personnelles afin de recevoir du matériel d'information, promotionnel et/ou de participer à des études de marché, par tous les moyens de communication disponibles, automatisés ou non ;",this.MarketingFlags31b="3.1.b) au traitement de mes données personnelles afin de recevoir des newsletters, aux adresses que vous avez indiquées ;",this.LettaLInformativa="Après avoir lu la politique de confidentialité",this.LettaLInformativaLibertyLines="Ayant lu",this.GooglePrivacyModalTitle="Finaliser l'inscription avec Google",this.GooglePrivacyModalDescription="Pour créer un compte avec Google, veuillez accepter notre politique de confidentialité et définir vos préférences marketing."}};ra.id="LoginResources";class sa{constructor(){this.AccountPage="Mi cuenta",this.MieiBiglietti="Mis billetes",this.MieiAbbonamenti="Mis abonos",this.Borsellino="Mi monedero",this.MyPersons="Mis tarjetas",this.NewRental="Nuevo alquiler",this.Name="Nombre",this.NameLenghtErrors="El nombre debe tener al menos 3 caracteres",this.NameErrors="El nombre no debe contener caracteres especiales ($,%,&,@,_,-,#)",this.Surname="Apellido",this.SurnameLenghtErrors="El apellido debe tener al menos 3 caracteres",this.SurnameErrors="El apellido no debe contener caracteres especiales ($,%,&,@,_,-,#)",this.Company="Empresa",this.CompanyName="Razón social",this.CompanyNameLenghtError="Escriba la razón social",this.PrivateUser="Usuario privado",this.VatNumber="NIF",this.FiscalCode="Código fiscal",this.Mail="Correo electrónico",this.Confirm="Confirmar",this.Save="Guardar",this.Annulla="Cancelar",this.EmailLenghtError="El correo electrónico debe tener al menos 3 caracteres",this.EmailsNotEquals="Los correos electrónicos no coinciden",this.IsNotValidEmail="Correo electrónico no válido",this.ConfirmMail="Confirmar correo electrónico",this.PhoneNumber="Número de móvil",this.Password="Contraseña",this.PasswordLenghtError="La contraseña es demasiado corta",this.ConfirmPassword="Confirmar contraseña",this.PasswordsNotEqual="Las contraseñas no coinciden",this.PhoneNumbersNotEquals="Los números de teléfono no coinciden",this.Nationality="Nacionalidad",this.ConfirmPhoneNumber="Confirmar número de móvil",this.ConfirmEmailError="No se pudo activar la cuenta. Contacte con el administrador.",this.PrivacyNotAccepted="Debe aceptar la política de privacidad para registrarse",this.Acconsenti="Consiento",this.PrivacyLabel="Acepto",this.PrivacyLabelOnlyPrivacy="He leído la",this.PrivacyLinkLabelOnlyPrivacy="Política de privacidad",this.PrivacyLabel2="términos y condiciones",this.PrivacyLabel3="y",this.PrivacyLabel4="y política de privacidad",this.PrivacyLabelOthers="términos y condiciones de otros operadores",this.MFASetup="Autenticación de dos factores (MFA)",this.MFAEnableTitle="Habilitar MFA",this.MFAEnableScanInstruction="Escanea el código QR con tu app de autenticación (ej. Google Authenticator, Authy).",this.MFAManualKey="Clave manual: ",this.MFAEnableButton="Habilitar",this.MFADisableTitle="Deshabilitar MFA",this.MFADisableInstruction="Introduce el código de la app para deshabilitar la verificación en dos pasos.",this.MFADisableButton="Deshabilitar",this.MFAEnabledSuccess="MFA habilitada con éxito",this.MFADisabledSuccess="MFA deshabilitada",this.MFAEnabledStatus="Autenticación de dos factores habilitada",this.MFAInvalidCode="Código no válido",this.MFAInvalidRecoveryCode="Código de recuperación no válido o ya utilizado",this.MFAVerifyTitle="Autenticación de dos factores",this.MFAVerifyInstruction="Introduce el código de 6 dígitos de la app de autenticación.",this.MFAVerifyButton="Verificar",this.PasskeySetup="Configuración passkey",this.PasskeyEnabledStatus="Login con passkey habilitado",this.PasskeyAddTitle="Añadir una passkey",this.PasskeyAddInstruction="Use el reconocimiento biométrico de su dispositivo para iniciar sesión sin contraseña.",this.PasskeyAddButton="Añadir passkey",this.PasskeyNameLabel="Nombre del dispositivo",this.PasskeyNamePlaceholder="ej. iPhone de Marco",this.PasskeyLoadError="No se pudieron cargar las passkeys. Inténtelo de nuevo más tarde.",this.PasskeyAddError="No se pudo añadir la passkey. Inténtelo de nuevo.",this.PasskeyAddSuccess="Passkey añadida con éxito",this.PasskeyRemoveConfirm="¿Eliminar esta passkey?",this.PasskeyRemoveSuccess="Passkey eliminada",this.PasskeyRemoveError="No se pudo eliminar la passkey. Inténtelo de nuevo.",this.PasskeyRenameSuccess="Passkey renombrada",this.PasskeyRenameError="No se pudo renombrar la passkey. Inténtelo de nuevo.",this.PasskeyNoPasskeys="No hay passkeys registradas",this.PasskeyLoginButton="Iniciar sesión con passkey",this.PasskeyLoginError="No se pudo iniciar sesión con passkey. Inténtelo de nuevo.",this.PasskeyNameModalTitle="Nombra tu passkey",this.PasskeyNameModalInstruction="Ayuda a identificar el dispositivo al que pertenece esta passkey.",this.PasskeySaveName="Guardar",this.PasskeyCreatedAt="Creada el",this.Disabilitata="deshabilitada",this.Abilitata="habilitada",this.Indietro="Atrás",this.RecoveryCodesTitle="Códigos de recuperación",this.RecoveryCodesSaveWarning="Guarda estos códigos ahora. No se mostrarán de nuevo.",this.RecoveryCodesDownload="Descargar como TXT",this.MFAAuthenticatorButton="Authenticator",this.MFALostCodes="Usar código de recuperación",this.MFARecoveryInstruction="Introduce uno de tus códigos de recuperación.",this.MFARegenerateTitle="Regenerar códigos de recuperación",this.MFARegenerateInstruction="Introduce tu código de autenticación para generar nuevos códigos de recuperación. Tus códigos existentes serán invali
1dados.",this.MFARegenerateButton="Regenerar códigos",this.MFALoadError="No se pudieron cargar los ajustes de MFA. Por favor, inténtalo de nuevo.",this.ConfirmPhoneTitle="Confirma tu número de teléfono",this.ConfirmPhoneLine1_1="Hemos enviado a tu número de teléfono",this.ConfirmPhoneLine1_2="un código de 6 dígitos (Pin)",this.ConfirmPhoneLine2="Introduce tu Pin y confirma tu cuenta",this.ReSendSmsPin="Reenviar pin por SMS",this.PinEmptyError="Pin no válido",this.ConfirmPhoneNumberButton="Confirmar teléfono",this.ConfirmPhoneError="El número de teléfono aún no está confirmado. Verifica que el pin SMS sea correcto",this.VatNumberLenghtError="NIF no válido",this.ChangePassword="Cambiar contraseña",this.ChangeEmailLink="Cambiar correo electrónico",this.ChangePhone="Cambiar número de teléfono",this.DeleteUser="Eliminar cuenta",this.ResetPasswordHelp="Introduce el correo electrónico de tu cuenta y te ayudaremos a crear una nueva contraseña",this.ResetPasswordHelp2="Introduce y confirma tu nueva contraseña.",this.ResetPassword="Restablecer contraseña",this.NewEmail="Nuevo correo electrónico",this.ChangeEmail="Confirmar cambio de correo electrónico",this.ConfirmEmail="Confirmar correo electrónico",this.ConfirmEmailText="Te hemos enviado un correo electrónico con un enlace para confirmar tu cuenta.",this.ResetPasswordText="Te hemos enviado un correo electrónico con un enlace para restablecer tu contraseña.",this.ResetPasswordError="¡Error al restablecer la contraseña! Hay problemas con tu cuenta. Contacta con el soporte.",this.ResetPasswordErrorEmail="¡Error al restablecer la contraseña! Hay problemas con tu cuenta (correo vacío). Contacta con el soporte.",this.ResetPasswordErrorToken="¡Error al restablecer la contraseña! Hay problemas con tu cuenta (token vacío o no válido). Contacta con el soporte.",this.ResetPasswordErrorPassword="¡Error al restablecer la contraseña! Hay problemas con tu cuenta (contraseña vacía o no válida). Contacta con el soporte.",this.ChangeEmailErrorGeneric="No se pudo cambiar la dirección de correo electrónico. Inténtalo de nuevo o contacta con el soporte.",this.ChangeEmailErrorToken="El enlace para cambiar el correo electrónico no es válido o ha caducado. Solicita uno nuevo.",this.ChangeEmailErrorDuplicate="La dirección de correo electrónico introducida ya está asociada a otra cuenta.",this.ChangeEmailErrorInvalid="La dirección de correo electrónico introducida no es válida.",this.ChangingEmailTo=e=>`Estás cambiando tu correo electrónico a ${e}`,this.EmailChangedLogoutIn=e=>`Correo electrónico cambiado con éxito. Se cerrará tu sesión en ${e} segundos para iniciar sesión con el nuevo correo.`,this.ForgotPassword="¿Olvidaste tu contraseña?",this.CurrentPassword="Contraseña actual",this.BirthDate="Fecha de nacimiento",this.Day="Día",this.Month="Mes",this.Year="Año",this.BirthDateError="Fecha de nacimiento no válida",this.PhoneNumberEmpty="El número de teléfono está vacío",this.CallingCodeEmpty="El prefijo está vacío",this.CallingCodePlaceholder="+34",this.CallingCode="Prefijo",this.CompleteRegistration="Completar registro",this.CompleteRegistrationDescription="Proporciona la información requerida para completar la configuración de tu cuenta.",this.RegistrationCompleted="Registro completado",this.RegistrationCompletedMessage="La información de tu cuenta ha sido actualizada con éxito.",this.InvalidAccess="Acceso no válido",this.InvalidAccessMessage="Falta el token de finalización o la información del usuario. Por favor, usa el enlace de tu email de confirmación.",this.Loading="Cargando...",this.Esci="Cancelar",this.FiscalCodeLenghtError="Código fiscal no válido",this.DoNotHaveAnAccount="¿No tienes una cuenta?",this.CreateAnAccount="Crear una cuenta",this.CreateAnAccountWith="Crear una cuenta con",this.CreateAnAccountWithFacebook="Crear una cuenta con Facebook",this.Mandatory="Los campos marcados con * son obligatorios",this.Settings="Configuración",this.PasswordRequiresDigit="La contraseña debe contener al menos un número",this.DuplicateUserName="El correo electrónico o el número de teléfono podrían ya estar registrados",this.RegistrationFailed="No ha sido posible completar el registro. Revisa los datos introducidos e inténtalo de nuevo.",this.InvalidPhoneNumber="El número de teléfono no es válido.",this.EmailNotAllowed="Esta dirección de correo electrónico no está permitida.",this.CallingCodeNotAllowed="El prefijo internacional seleccionado no está habilitado.",this.SignIn="Iniciar sesión",this.SignUp="Registrarse",this.NoSignIn="Continuar sin registrarse",this.Logout="Cerrar sesión",this.LoginWith="Iniciar sesión con",this.RegisterWith="Registrarse con",this.Or="o",this.ResendSmsError="El envío de SMS solo se puede procesar cada 30 minutos",this.RegisterInAFewSeconds="Regístrate en pocos segundos",this.RegisterFillingForm="Regístrate completando el formulario",this.UserNotFound="Usuario no encontrado",this.EmailSentSuccessfully="Correo electrónico enviado con éxito",this.CheckInboxMessage="Por favor, revisa tu bandeja de entrada. Si no ves el correo, revisa también tu carpeta de spam. Espera una hora antes de intentar reenviar el correo.",this.ErrorSendingEmail="Error al enviar el correo electrónico. Por favor, inténtalo más tarde.",this.Sending="Enviando...",this.ResendEmail="Reenviar correo electrónico",this.CalculateFiscalCode="Calcular código fiscal",this.LocalityIncomplete="Completa la ciudad",this.AddressIncomplete="Completa la dirección",this.CommercialUse="Al continuar con el registro",this.CommercialUse2="al tratamiento de mis datos personales para la recepción de comunicaciones comerciales relativas a los productos y servicios de la Sociedad, ofertas especiales, promociones y novedades relacionadas con los mismos, por correo electrónico, teléfono, SMS, fax, correo postal o medios similares (los llamados fines de marketing).",this.CommercialUse2LibertyLines="para recibir comunicaciones promocionales",this.Acconsento="Estoy de acuerdo",this.NonAcconsento="No estoy de acuerdo",this.CommercialUseNotSelected="Selecciona si estás de acuerdo o no",this.SeiStudente="¿Eres estudiante?",this.CompilaRichiestaStudente="Completa la solicitud de activación",this.PecSdiError="Pec o Código destinatario obligatorios",this.EmailError="Correo electrónico del destinatario obligatorio",this.PostalCodeRequired="Código postal obligatorio",this.Locality="Ciudad",this.LocalityDetail="Se utilizará para enviarte promociones dedicadas a tu ciudad favorita (si has dado tu consentimiento)",this.BrithDateDatail="Se utilizará para enviarte promociones dedicadas a tu edad (si has dado tu consentimiento)",this.AcceptPrivacyAndTravelRules1="declaro haber leído las ",this.AcceptPrivacyAndTravelRules1_2=" y nuestra información",this.AcceptPrivacyAndTravelRulesExternal="declaro haber leído las condiciones de viaje y compra presentes en los siguientes enlaces: ",this.RememberMe="Recuérdame",this.EmailOrPhone="Email o teléfono",this.ViewPrivacyPolicy="Ver política de privacidad",this.AttachmentDocumentation="Documentación adjunta",this.CheckCarrierForModulesDetails="Consulta la página del operador para más información sobre módulos y adju
1ntos",this.AttachIdentityDocument="Adjuntar documento de identidad",this.AttachmentRequested="Adjunto requerido",this.AddNewAttachment="Agregar nuevo archivo",this.IdPhoto="Foto de identificación",this.CardData="Datos de la tarjeta",this.BirthLocality="Ciudad de nacimiento",this.ResidencyLocality="Ciudad de residencia",this.ResidencyAddress="Dirección de residencia",this.CardType="Tipo de tarjeta",this.RequestRenew="Solicitar renovación",this.RenewCard="Renovar",this.SendCard="Enviar tarjeta",this.AddChildCard="Agregar",this.AccountModified="Cuenta modificada",this.Delete_Attention="ATENCIÓN",this.Delete_Sicuro="¿Seguro que quieres eliminar tu cuenta?",this.Delete_Irreversibile="PERMANENTE",this.Delete_Dati="Tu cuenta será eliminada",this.Delete_Tickets_1="Tus billetes",this.Delete_Tickets_2="serán anonimizados",this.RentalRequest="Solicitar alquiler",this.WrongPhoneNumber=e=>`¿El número ${e} es incorrecto?`,this.ChangeIt="¡Cámbialo!",this.Delete_Borsellino=(e,t)=>`El crédito de tu monedero (${e} €) se convertirá en un cupón y se enviará a tu correo electrónico ${t.toLowerCase()}`,this.LoginPageMetaDescription=e=>{switch(e){case"blunavy":return"Accede al sistema de reservas de Blu Navy. Gestiona tus billetes cómodamente online.";default:return"Accede al sistema de reservas. Gestiona tus billetes cómodamente online."}},this.LoginPageTitle=e=>{switch(e){case"blunavy":return"Acceso al sistema de reservas de Blu Navy";default:return"Acceso al sistema de reservas"}},this.RegisterPageMetaDescription=e=>{switch(e){case"blunavy":return"Regístrate en el sistema de reservas de Blu Navy y compra tus billetes de forma rápida y sencilla. Aprovecha nuestras tarifas asequibles.";default:return"Regístrate en el sistema de reservas y compra tus billetes de forma rápida y sencilla. Aprovecha nuestras tarifas asequibles."}},this.RegisterPageTitle=e=>{switch(e){case"blunavy":return"Regístrate para reservar, comprar y gestionar billetes en Blu Navy";default:return"Regístrate para reservar, comprar y gestionar billetes"}},this.ForgotPasswordMetaDescription=e=>{switch(e){case"blunavy":return"¿Olvidaste tu contraseña para reservar en Blu Navy? Recupérala ahora y gestiona tus billetes.";default:return"¿Olvidaste tu contraseña para reservar? Recupérala ahora y gestiona tus billetes."}},this.ForgotPasswordPageTitle=e=>{switch(e){case"blunavy":return"Recupera tu contraseña para reservar en Blu Navy";default:return"Recupera tu contraseña para reservar"}},this.MarketingFlagsTitle="CONSENTIMIENTO PARA EL TRATAMIENTO DE DATOS PERSONALES",this.MarketingFlagsSubTitle="Yo, el abajo firmante, declaro haber leído y comprendido la información anterior según el art. 13 del RGPD 2016/679 y doy mi consentimiento para los siguientes fines:",this.MarketingFlags31a="3.1.a) al tratamiento de mis datos personales para recibir material informativo, promocional y/o participar en estudios de mercado, mediante todos los medios de comunicación disponibles, automatizados y no;",this.MarketingFlags31b="3.1.b) al tratamiento de mis datos personales para recibir boletines informativos, a los contactos que usted ha indicado;",this.LettaLInformativa="Habiendo leído la política de privacidad",this.LettaLInformativaLibertyLines="Habiendo leído",this.GooglePrivacyModalTitle="Completar el registro con Google",this.GooglePrivacyModalDescription="Para crear una cuenta con Google, acepte nuestra política de privacidad y configure sus preferencias de marketing."}}sa.id="LoginResources";let vr=class{constructor(){this[4000001]="DeclinedByAcquirer",this[4000002]="DeclinedByInstitution",this[4000003]="AccountInsufficientFunds",this[4000004]="TechnicalProblem",this[4000005]="CommunicationFailure",this[4000006]="AcquirerUnavailable",this[4000007]="DuplicateTransaction",this[4000008]="PaymentCancelledByTheCustomer",this[4000009]="InvalidTransaction",this[4000010]="PleaseCallTheAcquirerSupportCallNumber",this[4000011]="AuthenticationFailed",this[4000012]="NoUidConfigured",this[4010101]="Refusal",this[4010102]="IssuerNotAvailable",this[4010103]="CardInsufficientFunds",this[4010201]="TransactionNotPermitted",this[4010202]="InvalidCardNumber",this[4010203]="UnsupportedCard",this[4010204]="CardExpired",this[4010205]="ExpiryDateIncorrect",this[4010206]="CvcRequired",this[4010207]="CvcError",this[4010301]="AvsFailed",this[4010302]="RetainCard",this[4010303]="LostOrStolenCard",this[4010304]="RestrictedCard",this[4010305]="CardLimitExceeded",this[4010306]="CardBlacklisted",this[4010307]="UnauthorizedIPaddressCountry",this[4010309]="CardNotInAuthorizersDatabase",this[4010310]="ThreeDsRequired"}};vr.id="PaymentReasons";let aa=class{constructor(){this[4000001]="Pagamento rifiutato",this[4000002]="Pagamento rifiutato dall'istituto finanziario",this[4000003]="Fondi insufficienti nell'account",this[4000004]="Si è verificato un problema precessando la transazione",this[4000005]="Errore di comunicazione",this[4000006]="AcquirerUnavailable",this[4000007]="Transazione duplicata",this[4000008]="Pagamento annullato dall'utente",this[4000009]="Transazione non valida",this[4000010]="E' stato rilevato un problema con l'acquirente. Contattare il call center.",this[4000011]="L'autenticazione richiesta dal pagamento è fallita",this[4000012]="La modalità di pagamento selezionata non è supportata",this[4010101]="Pagamento rifiutato dall'emettitore della carta",this[4010102]="Problema temporaneo sui server della banca",this[4010103]="Fondi insufficienti nella carta",this[4010201]="La transazione non è permessa per questo tipo di carta",this[4010202]="Numero di carta di credito errata",this[4010203]="Carta non supportata o sconosciuta",this[4010204]="La carta di credito è scaduta",this[4010205]="La data di scadenza della carta non è corretta",this[4010206]="Non è stato inserito il codice CVC",this[4010207]="Il codice CVC non è corretto",this[4010301]="Errore AVS",this[4010302]="La banca ha bloccato gli acquisti per un problema nell'account del proprietario della carta",this[4010303]="La carta risulta essere rubata o persa",this[4010304]="La carta è stata bloccata",this[4010305]="Limiti mensili superati",this[4010306]="La carta è stata rifutata dal sistema antifrode della banca",this[4010307]="Paese non abilitato",this[4010309]="La carta non è abilitata",this[4010310]="La transazione richiede l'autenticazione 3DSecure, ma la carta non è abilitata"}};aa.id="PaymentReasons";class na{constructor(){this[4000001]="Pago rechazado",this[4000002]="Pago rechazado por la entidad financiera",this[4000003]="Fondos insuficientes en la cuenta",this[4000004]="Se produjo un problema al procesar la transacción",this[4000005]="Error de comunicación",this[4000006]="Adquirente no disponible",this[4000007]="Transacción duplicada",this[4000008]="Pago cancelado por el usuario",this[4000009]="Transacción no válida",this[4000010]="Se detectó un problema con el adquirente. Contacte con el centro de atención.",this[4000011]="La autenticación requerida para el pago ha fallado",this[4000012]="El método de pago seleccionado no es compatible",this[4010101]="Pago rechazado por el emisor de la tarjeta",this[4010102]="Problema temporal en los servidores del banco",this[4010103]="Fondos insuficientes en la tarjeta",this[4010201]="La transacción no está permitida para este tipo de tarjeta",this[4010202]="Número de tarjeta de crédito incorrecto",this[4010203]="Tarjeta no compatible o desconocida",this[4010204]="La tarjeta de crédito ha caducado",this[4010205]="La fecha de caducidad de la tarjeta no es correcta",this[4010206]="No se ha introducido el código CVC",this[4010207]="El código CVC no es correcto",this[4010301]="Error AVS",this[4010302]="El banco ha bloqueado las compras por un problema en la cuenta del titular de la tarjeta",this[4010303]="La tarjeta ha sido reportada como robada o perdida",this[4010304]="La tarjeta ha sido bloqueada",this[4010305]="Límites mensuales superados",this[4010306]="La tarjeta ha sido rechazada por el sistema antifraude del banco",this[4010307]="País no habilitado",this[4010309]="La tarjeta no está habilitada",this[4010310]="La transacción requiere autenticación 3DSecure, pero la tarjeta no está habilitada"}}na.id="PaymentReasons";let oa=class{constructor(){this.AddAddress="Add billing data for this credit card",this.EditAddress="Edit address",this.FirstName="First Name",this.LastName="Last Name",this.Address="Address",this.Locality="City",this.ZipCode="Zip Code",this.Country="Country",this.Save="Confirm and save",this.Psd2="Required for PSD2 legislation",this.Email="Email",this.UserCallingCode="Prefix",this.UserPhone="Phone"}};oa.id="BillingAddressResource1";let la=class{constructor(){this.AddAddress="Aggiungi dati del titolare della carta di credito",this.EditAddress="Modifica indirizzo",this.FirstName="Nome",this.LastName="Cognome",this.Address="Indirizzo",this.Locality="Città",this.ZipCode="Cap",this.Country="Nazione",this.Save="Conferma e salva",this.Psd2="Necessario per la direttiva dei Sistemi di Pagamento PSD2",this.Email="Email",this.UserCallingCode="Prefisso int.",this.UserPhone="Telefono"}};la.id="BillingAddressResource1";let ca=class{constructor(){this.AddAddress="Add billing data for this credit card",this.EditAddress="Edit address",this.FirstName="First Name",this.LastName="Last Name",this.Address="Address",this.Locality="City",this.ZipCode="Zip Code",this.Country="Country",this.Save="Confirm and save",this.Psd2="Erforderlich für die PSD2-Gesetzgebung",this.Email="Email",this.UserCallingCode="Prefix",this.UserPhone="Phone"}};ca.id="BillingAddressResource1";let da=class{constructor(){this.AddAddress="Add billing data for this credit card",this.EditAddress="Edit address",this.FirstName="First Name",this.LastName="Last Name",this.Address="Address",this.Locality="City",this.ZipCode="Zip Code",this.Country="Country",this.Save="Confirm and save",this.Psd2="Requis pour la législation PSD2",this.Email="Email",this.UserCallingCode="Prefix",this.UserPhone="Phone"}};da.id="BillingAddressResource1";class ua{constructor(){this.AddAddress="Agregar datos del titular de la tarjeta de crédito",this.EditAddress="Editar dirección",this.FirstName="Nombre",this.LastName="Apellido",this.Address="Dirección",this.Locality="Ciudad",this.ZipCode="Código postal",this.Country="Paí
1s",this.Save="Confirmar y guardar",this.Psd2="Necesario para la directiva de Sistemas de Pago PSD2",this.Email="Correo electrónico",this.UserCallingCode="Prefijo int.",this.UserPhone="Teléfono"}}ua.id="BillingAddressResource1";let ha=class{constructor(){this.AtLeast=e=>`Insert at least ${e} characters`,this.MustBeBetween=(e,t)=>`Must be greater than ${e} and smaller than ${t}`,this.ParameterNotFound="Parameter not found",this.InsertRequiredParameter="Insert required parameter",this.InvalidDate="Invalid Date",this.InsertName="Enter first name",this.InsertSurname="Enter last name",this.OperationCompleted="Operation completed!",this.ErrorOccurredContactCallCenter="An error occurred! Please contact support",this.SelectCsvToImport="Select the CSV file to import",this.ConfirmNames="Confirm names",this.OperationNotPermetted="Operation not allowed",this.NamesNotEditable="Ticket names can no longer be modified. For more information, please contact support."}};ha.id="Validations";let pa=class{constructor(){this.AtLeast=e=>`Inserisci almeno ${e} caratteri`,this.MustBeBetween=(e,t)=>`Deve essere maggiore di ${e} e minore di ${t}`,this.ParameterNotFound="parametro non trovato",this.InsertRequiredParameter="Inserisci il parametro richiesto",this.InvalidDate="Data non valida",this.InsertName="Inserire il nome",this.InsertSurname="Inserire il cognome",this.OperationCompleted="Operazione completata!",this.ErrorOccurredContactCallCenter="Si è verificato un errore! Contattare l'assistenza",this.SelectCsvToImport="Seleziona il file csv da importare",this.ConfirmNames="Conferma nominativi",this.OperationNotPermetted="Operazione non permessa",this.NamesNotEditable="I nominativi dei biglietti non sono più modificabili, per informazioni contattare l'assistenza."}};pa.id="Validations";let ga=class{constructor(){this.AtLeast=e=>`Geben Sie mindestens ${e} Zeichen ein`,this.MustBeBetween=(e,t)=>`Muss größer als ${e} und kleiner als ${t} sein`,this.ParameterNotFound="Parameter nicht gefunden",this.InsertRequiredParameter="Geben Sie den erforderlichen Parameter ein",this.InvalidDate="Ungültiges Datum",this.InsertName="Vornamen eingeben",this.InsertSurname="Nachnamen eingeben",this.OperationCompleted="Vorgang abgeschlossen!",this.ErrorOccurredContactCallCenter="Ein Fehler ist aufgetreten! Bitte den Support kontaktieren",this.SelectCsvToImport="Wählen Sie die zu importierende CSV-Datei aus",this.ConfirmNames="Namen bestätigen",this.OperationNotPermetted="Vorgang nicht erlaubt",this.NamesNotEditable="Die Namen auf den Tickets können nicht mehr geändert werden. Für weitere Informationen kontaktieren Sie bitte den Support."}};ga.id="Validations";let ma=class{constructor(){this.AtLeast=e=>`entrez au moins ${e} caractères`,this.MustBeBetween=(e,t)=>`Doit être supérieur à ${e} et inférieur à ${t}`,this.ParameterNotFound="paramètre introuvable",this.InsertRequiredParameter="Entrez le paramètre requis",this.InvalidDate="Date non valide",this.InsertName="Saisir le prénom",this.InsertSurname="Saisir le nom de famille",this.OperationCompleted="Opération terminée!",this.ErrorOccurredContactCallCenter="Une erreur s’est produite ! Veuillez contacter l’assistance",this.SelectCsvToImport="Sélectionnez le fichier CSV à importer",this.ConfirmNames="Confirmer les noms",this.OperationNotPermetted="Opération non autorisée",this.NamesNotEditable="Les noms sur les billets ne peuvent plus être modifiés. Pour toute information, veuillez contacter l’assistance."}};ma.id="Validations";class va{constructor(){this.AtLeast=e=>`Introduce al menos ${e} caracteres`,this.MustBeBetween=(e,t)=>`Debe ser mayor que ${e} y menor que ${t}`,this.ParameterNotFound="parámetro no encontrado",this.InsertRequiredParameter="Introduce el parámetro requerido",this.InvalidDate="Fecha no válida",this.InsertName="Introducir el nombre",this.InsertSurname="Introducir el apellido",this.OperationCompleted="¡Operación completada!",this.ErrorOccurredContactCallCenter=" ¡Se ha producido un error! Contacte con el soporte",this.SelectCsvToImport="Selecciona el archivo CSV a importar",this.ConfirmNames="Confirmar los nombres",this.OperationNotPermetted="Operación no permitida",this.NamesNotEditable="Los nombres de los billetes ya no se pueden modificar. Para más información, contacte con el soporte."}}va.id="Validations";let fa=class{constructor(){this.TravelSelection="Localities Selection",this.SolutionSelection="Trip Selection",this.OutboundAndReturnSelection="Outbound and return trip",this.PassengersInsertion="Passengers",this.RegisterOrNot="Register or signin",this.PaymentMethod="Payment method",this.SeatSelection="Seat selection",this.SeatSe="Seat selection",this.ReturnSeatSelection="Return seat selection",this.PaymentMethodSelection="Select payment method",this.Proceed="Proceed",this.Pay="Pay",this.Result="Result",this.Passenger="Passenger",this.OutboundSearchResult="Outbound",this.ReturnSearchResult="Return",this.ChangeSolution="View other solutions",this.Biglietto="Ticket",this.BigliettoAndataRitorno="outbound/return",this.BigliettoRitorno="(return)",this.DataAcquisto="Issued on",this.DataAcquistoSisal="Booked on",this.DataDiScadenza="Expiration date: ",this.DataDiScadenzaPrevista="Attention! The reservation's estimated expiration date is: ",this.HaiTempoPerPagare="Attention! You must complete the payment before: ",this.DataPartenza="Departure date",this.Partenza="Departure",this.Arrivo="Arrival",this.PassengersList="Passengers list",this.Stampa="View tickets",this.StampaSisal="View booking",this.AcquistoOk="Purchase succeedeed!",this.AcquistoKo="Payment not completed!",this.CambioDataOk="Date changed successfully!",this.CambioDataKo="Date not changed",this.CambioCorsaNonPossibile="Change date is not possibile on a canceled, expired or already traveled ticket.",this.CambioCorsaNonPossibile2="Change date is no longer possible.",this.AcquistoOkSisal="Booking succeedeed!",this.VaiInRicevitoria="To confirm the booking, reach a Mooney point with this PNR before its expiration!",this.TripSummaryLabel="Trip",this.Passengers="Passengers",this.Amount="Amount",this.CostoViaggio="Travel price",this.DaPagare="To pay",this.Continua="Continue",this.ContinuaExtended="Proceed with payment",this.Errore_PrenotazioneScaduta="Reservation expired",this.Errore_PostiOccupati="Selected seats n
1ot available",this.Errore_CorsaPiena="Trip full",this.Errore_corsaPartita="Trip already departed!",this.Errore_NonVendibile="Not for sale",this.Posti="{n, plural, =1 {Seat} other {Seats}}",this.SaleSummary="Sale summary",this.OperationSummary="Operation summary",this.Pnr="PNR",this.MessaggioPagaBorsellino="Are you sure to pay with wallet?",this.BackHome="Back to home",this.Conferma="Confirm",this.ConfermaPinSisal="To confirm your Mooney reservation insert the PIN code we sent you by sms to ",this.ConfermaPinSisalTitle="Confirm PIN Mooney",this.ReSendPin="Resend Mooney PIN",this.PinSisalNonRicevuto="If you haven't received the Mooney PIN click here to resend:",this.To="to",this.TitoloAnnullato="Canceled ticket",this.TitoloScaduto="Expired ticket",this.BigliettoOriginale="Original travel",this.NuovoBiglietto="New ticket:",this.PostiNonSelezionati="You must choose the seat for all passengers",this.altaStagione="ATTENTION: FOR DATE SELECTED COULD BE USED SELECTED THIRD PARTY BUSES",this.altaStagioneIntersaj="ATTENTION: FOR DATE SELECTED COULD BE USED ADDITIONAL TRIPS",this.RegistrationChoiceTitle="Proceed with registration",this.RegistrationAdvantages="Sign in to get all registration advantages",this.SeatsChoice="seats choice",this.ReservedArea="reserved area with tickets operations (date changes, cancelations and so on)...",this.ReservedPromotions="reserved promotions",this.Notifications="realtime notifications about delays and stop times changes",this.AllPaymentMethods="more payment methods",this.FidelityAdvantage="loyalty points collection",this.AndMuchMore="...and much more!",this.ReservedAreaShort="tickets operations history (date changes, cancelations and so on)...",this.InformationWarning="IMPORTANT! Used to contact you in case of delay or itinerary change",this.NonFarScaderePrenotazione=e=>`ATTENTION: remember to pay the booking before ${P.getReadableDateString(e)} at ${P.getReadableTimeString(e)}. If Mooney booking expires, payment method will be blocked.`,this.NonFarScaderePrenotazioneViaCash=e=>`ATTENTION: remember to pay the booking before  ${P.getReadableDateString(e)} at ${P.getReadableTimeString(e)}.`,this.NonFarScaderePrenotazionePayByLink=e=>`ATTENTION: remember to pay before  ${P.getReadableDateString(e)} at ${P.getReadableTimeString(e)}.`,this.Agevolazioni="Facilitations:",this.TariffeAccessorie="Extra fares:",this.RemainderCoupon="New coupon",this.TicketManage="Modify and cancel your ticket",this.Services="Additional services",this.OrderDetails="Order details",this.AddPassenger="Add passenger",this.ContactForAdvisories="Contacts for important notice",this.BigliettoElettronico="E-Ticket",this.Change="Change",this.Travel="Travel",this.Cancel="Cancel",this.NotIterestedToRegister="Not interested to additional services?",this.CompletaIlPagamento="Please, complete your payment for your E-Ticket",this.AnnullamentoNonPossibile="Ticket not refundable",this.PagamentoConBorsellino="Fast payment with your wallet",this.SubscriptionDisclaimer="Discover subscriptions available on this route. Choose the one for you.",this.FindOutMore="Find out more",this.DepartureAfterReturn="CAN'T CONTINUE! The return is prior to the outward journey",this.ImageBannerTitle="Travel easy, travel smart",this.ImageBannerDescription="Buy your ticket and turn every journey into an unforgettable experience",this.ImageBannerTitleMarinobus="Your journey is just one click away",this.ImageBannerDescriptionMarinobus="choose the travel solution that best suits your needs and travel with us",this.ImageBannerTitleLiberty="Book your trip now",this.ImageBannerDescriptionLiberty="purchase your ticket now on our fast vehicles to reach your favorite destinations in no time",this.ImageBannerTitleSais="Your trip is just a click away",this.ImageBannerDescriptionSais="Choose your tailor-made solution and leave with us",this.ImageBannerTitleInterSs="Travel easy, travel comfortable, you're on a cruise",this.ImageBannerDescriptionInterSs="",this.SelectTicketToChangeTrip="Select tickets to change",this.SelectedTickets="Selected tickets",this.TicketCount="Ticket count",this.PayByLinkNotValid="Link not val
1id",this.PayByLinkExpired="Link expired",this.PayByLinkCanceled="Tickets are no longer valid",this.FidelityTitle="Fidelity",this.UseFidelity="Riscatta i tuoi punti",this.DismissFidelity="Rimuovi fidelity",this.RetryPayment="Retry payment",this.ManageLuggages="Manage additional services",this.AddLuggages="Add additional services",this.RetryPaymentExpired="Operation no longer allowed, please make a new reservation",this.BackToTicket="Back to the ticket",this.AddLuggagesOkTitle="Operation completed successfully",this.AddLuggagesOkText="The services have been added",this.AddLuggagesKoTitle="Operation not completed",this.AddLuggagesKoText="Unable to complete the requested operation",this.With="with",this.InvoiceErrorLoadingTicket="Errors while loading the ticket",this.InvoiceErrorTicketNotFound="Ticket not found",this.InvoiceErrorSaving="Errors while saving the ticket",this.InvoiceRequestOK="Invoice requested succesfully",this.InvoiceRemoved="Invoice request removed",this.InvoiceRequestOKButElapsed="Invoice requested successfully. The entered data cannot be modified. Changes can only be made within one day of the ticket's issue date.",this.InvoiceElapsedDate="The invoice cannot be requested. It can only be requested within one day of the ticket's issue date.",this.InvoiceSaving="Saving...",this.InvoiceLoading="Loading...",this.CanadaUsUkSmsAlert="Sending or receiving SMS may incur additional charges depending on your mobile plan",this.Paga="Pay",this.Attenzione="Attention",this.NonPuoiCambiareServizi="You cannot change the additional services on the ticket, you can only add them",this.AlmenoUnServizio="You must select at least one additional service to issue or one additional service to cancel",this.SoloUnServizio="You can select only one additional service to replace the existing one",this.SelezionaModalitaRimborso="You must select a refund method",this.InserisciDatiBonifico="Enter the bank account holder's details",this.SelezionaModalitaPagamento="Select a payment method",this.CanadaUsUkSmsAlertFlag="Yes, Sign me up for SMS notifications (message and data rates may apply)",this.Vehicle="Vehicle",this.ChangeDateCardNotValid="The new travel date is outside your card's validity period. Please select a date within the valid period.",this.ChangeDateVehicleOnly="To change the travel date, you must select at least one passenger. Vehicles alone cannot be rescheduled.",this.ChangeDateSameTrip="You have selected the same trip as the original ticket. Please choose a different trip to proceed with the date change.",this.ChangeDateRoundTripRuleSameDay=e=>`Ticket ${e} requires outbound and return travel on the same day. The selected date does not meet this requirement.`,this.ChangeDateRoundTripRuleWithinDays=(e,t)=>`Ticket ${e} requires the return trip within ${t} days of departure. The selected date does not meet this requirement.`,this.ChangeDateMaxDaysExceeded=(e,t,i,a)=>`Ticket ${e} exceeds the maximum date change limit of ${t} days, ${i} hours and ${a} minutes from the original departure.`,this.ChangeDateMaxAllowedDepartureExceeded=(e,t)=>`WARNING: the selected date for ticket ${e} exceeds the maximum allowed departure date for the date change, which is ${t}`,this.IMieiAbbonamenti="My subscriptions",this.NuovoAbbonamento="New subscription",this.ActiveSubscription="Available subscriptions",this.PastSubscription="Past subscriptions",this.NessunAbbonamentoAttivo="No active subscriptions",this.NessunAbbonamento="No subscriptions",this.Last30Days="Last 30 days",this.Last90Days="Last 90 days",this.ThisYear="This year",this.LastYear="Last year",this.ServiceOrLuggageNotAvailable="Luggage or additional service not selectable!",this.TicketsAlreadyPaid="The tickets have already been paid!"}};fa.id="EndUserTicketSale";let ya=class{constructor(){this.TravelSelection="Selezione località",this.SolutionSelection="Selezione Viaggio",this.OutboundAndReturnSelection="Viaggio di andata e ritorno",this.PassengersInsertion="Passegger
1i",this.RegisterOrNot="Registrati o accedi al profilo",this.PaymentMethod="Modalità di pagamento",this.SeatSelection="Scelta del posto di andata",this.SeatSe="Scelta del posto",this.ReturnSeatSelection="Scelta del posto di ritorno",this.PaymentMethodSelection="Seleziona la modalità di pagamento",this.Proceed="Procedi",this.Pay="Vai al pagamento",this.Result="Risultato",this.Passenger="Passeggero",this.OutboundSearchResult="Andata",this.ReturnSearchResult="Ritorno",this.ChangeSolution="Mostra le altre soluzioni",this.Biglietto="Biglietto",this.BigliettoAndataRitorno="andata/ritorno",this.BigliettoRitorno="(ritorno)",this.DataAcquisto="Acquistato il",this.DataAcquistoSisal="Prenotato il",this.DataPartenza="Partenza il",this.DataDiScadenza="Data di scadenza: ",this.DataDiScadenzaPrevista="Attenzione! La data di scadenza stimata della tua prenotazione è: ",this.HaiTempoPerPagare="Attenzione! Per confermare il tuo biglietto devi completare il pagamento entro:  ",this.Partenza="Partenza",this.Arrivo="Arrivo",this.PassengersList="Elenco passeggeri",this.Stampa="Visualizza biglietti",this.StampaSisal="Visualizza prenotazione",this.AcquistoOk="Acquisto avvenuto con successo!",this.AcquistoKo="Pagamento non effettuato!",this.CambioDataOk="Cambio corsa avvenuto con successo!",this.CambioDataKo="Cambio corsa non eseguito",this.CambioCorsaNonPossibile="Non è possibile effettuare cambi corsa su biglietti passati, annullati, scaduti o con data di partenza precedente al giorno attuale.",this.CambioCorsaNonPossibile2="Non è più possibile effettuare cambi corsa.",this.AcquistoOkSisal="Prenotazione avvenuta con successo!",this.VaiInRicevitoria="Per completare il pagamento del biglietto vai in un punto Mooney con questo PNR entro la data di scadenza sopra riportata!",this.TripSummaryLabel="Viaggio",this.Passengers="Passeggeri",this.Amount="Totale",this.CostoViaggio="Costo del viaggio",this.DaPagare="Da pagare",this.Continua="Continua",this.ContinuaExtended="Procedi con il pagamento",this.Errore_PrenotazioneScaduta="Prenotazione scaduta",this.Errore_PostiOccupati="Posti selezionati occupati",this.Errore_CorsaPiena="Corsa piena",this.Errore_corsaPartita="Corsa già partita!",this.Errore_NonVendibile="Non vendibile",this.Posti="{n, plural, =1 {Posto} other {Posti}}",this.SaleSummary="Riepilogo acquisto",this.OperationSummary="Riepilogo operazione",this.Pnr="PNR",this.MessaggioPagaBorsellino="Sei sicuro di voler pagare con il borsellino?",this.BackHome="Torna alla home",this.Conferma="Conferma",this.ConfermaPinSisal="Per confermare la prenotazione Mooney inserisci qui il PIN che ti abbiamo inviato via sms al numero",this.ConfermaPinSisalTitle="Conferma PIN Mooney",this.ReSendPin="Reinvia PIN Mooney",this.PinSisalNonRicevuto="Se non hai ricevuto il PIN Mooney puoi reinviartelo di nuovo cliccando qui:",this.To="a",this.TitoloAnnullato="Biglietto annullato",this.TitoloScaduto="Biglietto scaduto",this.BigliettoOriginale="Viaggio originale",this.NuovoBiglietto="Nuovo biglietto:",this.PostiNonSelezionati="Devi selezionare il posto per tutti i passeggeri",this.altaStagione="ATTENZIONE: PER QUESTA DATA POTRANNO ESSERE UTILIZZATI MEZZI DI VETTORI TERZI SELEZIONATI",this.altaStagioneIntersaj="ATTENZIONE: PER QUESTA DATA POTRANNO ESSERE UTILIZZATE CORSE BIS",this.RegistrationChoiceTitle="Acquisto con registrazione utente",this.RegistrationAdvantages="Effettua il login per sfruttare tutti i vantaggi della registrazione",this.SeatsChoice="scelta del posto",this.ReservedArea="area riservata con consultazione biglietti, cambi data, annullamento e ristampa...",this.ReservedAreaShort="consultazione biglietti e abbonamenti",this.ReservedPromotions="promozioni riservate",this.Notifications="ricezione notifiche ritardi e modifiche di orari in tempo reale",this.AllPaymentMethods="più scelta sui metodi di pagamento",this.FidelityAdvantage="accumulo punti fedeltà",this.AndMuchMore="...e tanto altro ancora!",this.InformationWarning="IMPORTANTE! Inserisci i tuoi recapiti per ricevere comunicazioni in caso di ritardo o di cambio itinerario o variazioni del viaggio",this.NonFarScaderePrenotazione=e=>`Attenzione: ricordati di andare a pagare la tua prenotazione entro il ${P.getReadableDateString(e)} alle ${P.getReadableTimeString(e)}. Se fai scadere le prenotazioni Mooney, la modalità di pagamento verrà bloccata.`,this.NonFarScaderePrenotazioneViaCash=e=>`Attenzione: ricordati di andare a pagare la tua prenotazione entro il ${P.getReadableDateString(e)} alle ${P.getReadableTimeString(e)}.`,this.NonFarScaderePrenotazionePayByLink=e=>`Attenzione: ricordati di pagare la tua prenotazione entro il ${P.getReadableDateString(e)} alle ${P.getReadableTimeString(e)}
1.`,this.Agevolazioni="Agevolazioni:",this.TariffeAccessorie="Tariffe accessorie:",this.RemainderCoupon="Coupon di resto",this.TicketManage="Gestione modifica biglietto, annullamento e ristampa",this.Services="Servizi aggiuntivi",this.NotIterestedToRegister="Non sei interessato ai servizi addizionali?",this.OrderDetails="Dettagli della prenotazione",this.AddPassenger="Aggiungi passeggero",this.ContactForAdvisories="Contatti per avvisi e aggiornamenti",this.BigliettoElettronico="Biglietto elettronico",this.Change="Cambia",this.Travel="Viaggio",this.Cancel="Annulla",this.CompletaIlPagamento="Completa il pagamento per visualizzare il tuo biglietto",this.AnnullamentoNonPossibile="Il biglietto non è rimborsabile",this.PagamentoConBorsellino="Pagamento rapido con borsellino elettronico",this.SubscriptionDisclaimer="Sono disponibili abbonamenti su questa tratta.",this.FindOutMore="Scopri di più",this.DepartureAfterReturn="IMPOSSIBILE CONTINUARE! Il ritorno è precedente all'andata",this.ImageBannerTitle="Viaggia facile, viaggia smart",this.ImageBannerDescription="compra il tuo biglietto e trasforma ogni viaggio in un'esperienza indimenticabile",this.ImageBannerTitleMarinobus="Il tuo viaggio ad un click di distanza",this.ImageBannerDescriptionMarinobus="scegli la soluzione di viaggio più adatta alle tue esigenze e parti con noi",this.ImageBannerTitleLiberty="Prenota adesso il tuo viaggio",this.ImageBannerDescriptionLiberty="acquista ora il tuo biglietto sui nostri mezzi veloci, per raggiungere in un attimo le tue destinazioni preferite",this.ImageBannerTitleSais="Il tuo viaggio è a portata di click.",this.ImageBannerDescriptionSais="Scegli la soluzione su misura per te e parti con noi.",this.ImageBannerTitleInterSs="Viaggia facile, viaggia comodo, sei in crociera",this.ImageBannerDescriptionInterSs="",this.SelectTicketToChangeTrip="Seleziona i biglietti da modificare",this.SelectedTickets="Biglietti selezionati",this.TicketCount="Numero biglietti",this.PayByLinkNotValid="Il link di pagamento non è più valido, i biglietti sono stati modificati.",this.PayByLinkExpired="Il link di pagamento è scaduto",this.PayByLinkCanceled="I biglietti non sono più validi",this.FidelityTitle="Fidelity",this.UseFidelity="Utilizza i tuoi punti",this.DismissFidelity="Rimuovi punti utilizzati",this.RetryPayment="Ritenta pagamento",this.ManageLuggages="Gestisci servizi aggiuntivi",this.AddLuggages="Aggiungi servizi aggiuntivi",this.RetryPaymentExpired="Operazione non più consentita, si prega di effettuare una nuova prenotazione",this.BackToTicket="Torna al biglietto",this.AddLuggagesOkTitle="Operazione effettuata con successo",this.AddLuggagesOkText="I servizi sono stati aggiunti",this.AddLuggagesKoTitle="Operazione non effettuata",this.AddLuggagesKoText="Non è stato possibile concludere l'operazione richiesta",this.With="con",this.InvoiceErrorLoadingTicket="Errore durante il caricamento del ticket",this.InvoiceErrorTicketNotFound="Ticket non trovato",this.InvoiceErrorSaving="Errore durante il salvataggio dei ticket",this.InvoiceRequestOK="Fattura richiesta correttamente",this.InvoiceRemoved="Richiesta rimossa",this.InvoiceRequestOKButElapsed="La fattura è stata richiesta correttamente. I dati inseriti non sono più modificabili. È possibile modificare i dati solo entro un giorno dalla data di emissione del biglietto.",this.InvoiceElapsedDate="Non è possibile richiedere la fattura. La fattura può essere richiesta soltanto entro un giorno dalla data di emissione del biglietto.",this.InvoiceSaving="Salvataggio in corso...",this.InvoiceLoading="Caricamento in corso...",this.CanadaUsUkSmsAlert="L'invio o la ricezione di SMS può comportare costi aggiuntivi a seconda del piano tariffario attivo con il tuo operatore",this.Paga="Paga",this.Attenzione="Attenzione",this.NonPuoiCambiareServizi="Non puoi cambiare i servizi accessori sul biglietto, puoi solo aggiungerli",this.AlmenoUnServizio="Devi selezionare almeno un servizio aggiuntivo da emettere o un servizio aggiuntivo da annullare",this.SoloUnServizio="Puoi selezionare un solo servizio aggiuntivo per sostituire quello esistente",this.SelezionaModalitaRimborso="Devi selezionare una modalità di rimborso",this.InserisciDatiBonifico="Inserisci i dati dell'intestatario del bonifico",this.SelezionaModalitaPagamento="Seleziona una modalità di pagamento",this.CanadaUsUkSmsAlertFlag="Sì, desidero ricevere notifiche via SMS (possono essere applicati costi per messaggi e dati)",this.Vehicle="Veicolo",this.ChangeDateCardNotValid="La nuova data di viaggio non rientra nel periodo di validità della tua tessera. Seleziona una data compresa nel periodo di validità.",this.ChangeDateVehicleOnly="Per modificare la data del viaggio è necessario selezionare almeno un passeggero. Non è possibile cambiare data solo per i veicoli.",this.ChangeDateSameTrip="Hai selezionato la stessa corsa del biglietto originale. Scegli una corsa diversa per procedere con il cambio data.",this.ChangeDateRoundTripRuleSameDay=e=>`Il biglietto ${e} prevede andata e ritorno nella stessa giornata. La data selezionata non rispetta questa condizione.`,this.ChangeDateRoundTripRuleWithinDays=(e,t)=>`Il biglietto ${e} prevede il ritorno entro ${t} giorni dall'andata. La data selezionata non rispetta questa condizione.`,this.ChangeDateMaxDaysExceeded=(e,t,i,a)=>`Il biglietto ${e} supera il limite massimo di cambio data di ${t} giorni, ${i} ore e ${a} minuti dalla partenza originaria.`,this.ChangeDateMaxAllowedDepartureExceeded=(e,t)=>`ATTENZIONE, la data selezionata per il biglietto ${e} supera la data massima di partenza consentita per il cambio data che è di ${t}`,this.IMieiAbbonamenti="I miei abbonamenti",this.NuovoAbbonamento="Acquista abbonamento",this.ActiveSubscription="Abbonamenti attivi",this.PastSubscription="Abbonamenti passati",this.NessunAbbonamentoAttivo="Nessun abbonamento attivo",this.NessunAbbonamento="Nessun abbonamento",this.Last30Days="Ultimi 30 giorni",this.Last90Days="Ultimi 90 giorni",this.ThisYear="Anno corrente",this.LastYear="Anno scorso",this.ServiceOrLuggageNotAvailable="Bagaglio o servizio aggiuntivo non selezionabile!",this.TicketsAlreadyPaid="I biglietti sono stati già pagati!"}};ya.id="EndUserTicketSale";let Sa=class{constructor(){this.TravelSelection="Ort auswählen",this.SolutionSelection="Reise auswählen",this.OutboundAndReturnSelection="Hin- und Rückfahrt",this.PassengersInsertion="Passagiere",this.RegisterOrNot="Registrieren oder Anmelden",this.PaymentMethod="Zahlmodalität",this.SeatSelection="Auswahl des Sitzplatzes für die Hinfahrt",this.SeatSe="Sitzplatzauswahl",this.ReturnSeatSelection="Sitzplatzauswahl Rückfahrt",this.PaymentMethodSelection="Zahlmodalität auswählen",this.Proceed="weiter",this.Pay="zur Zahlung",this.Result="Ergebnis",this.Passenger="Passagier",this.OutboundSearchResult="Hinfahrt",this.ReturnSearchResult="Rückfahrt",this.ChangeSolution="alle Reisemöglichkeiten anzeigen",this.Biglietto="Fahrkarte",this.BigliettoAndataRitorno="outbound/return",this.BigliettoRitorno="(return)",this.DataAcquisto="Erworben am",this.DataAcquistoSisal="Gebucht am",this.DataPartenza="Abfahrt",this.DataDiScadenza="Ablaufdatum: ",this.DataDiScadenzaPrevista="Achtung! Das ungefähre Ablaufdatum Ihrer Buchung ist: ",this.HaiTempoPerPagare="Beachtung! Sie müssen die Zahlung vorher abschließen: ",this.Partenza="Partenza",this.Arrivo="Arrivo",this.PassengersList="Passagierliste",this.Stampa="Fahrkarten anzeigen",this.StampaSisal="Buchung anzeigen",this.AcquistoOk="Fahrkartenerwerb erfolgreich abgeschlossen!",this.AcquistoKo="Zahlung nicht erfolgt",this.CambioDataOk="Datumsänderung erfolgreich abgeschlossen!",this.CambioDataKo="Datumsänderung nicht abgeschlossen",this.CambioCorsaNonPossibile="Bei einem stornierten, abgelaufenen oder bereits gefahrenen Ticket ist keine Datumsänderung möglich.",this.CambioCorsaNonPossibile2="Eine Datumsänderung ist nicht mehr möglich.",this.AcquistoOkSisal="Buchung erfolgreich abgeschlossen!",this.VaiInRicevitoria="Um die Zahlung der Fahrkarten abzuschließen, muss man mit der PNR Nummer zu einer Mooney innerhalb des Ablaufdatums gehen!",this.TripSummaryLabel="Reise",this.Passengers="Passagiere",this.Amount="Gesamt",this.CostoViaggio="Bezahlen",this.DaPagare="Da pagare",this.Continua="weiter",this.ContinuaExtended="Zur Zahlung",this.Errore_PrenotazioneScaduta="Buchung abgelaufen",this.Errore_PostiOccupati="Ausgewählte Sitzplätze besetzt",this.Errore_CorsaPiena="Reise ausgebucht",this.Errore_corsaPartita="Reise bereits abgelaufen!",this.Errore_NonVen
1dibile="Nicht verkaufbar",this.Posti="{n, plural, =1 {Sitzplatz} other {Sitzplätze}}",this.SaleSummary="Zusammenfassung der erworbenen Reise",this.OperationSummary="Zusammenfassung der Vorgänge",this.Pnr="PNR",this.MessaggioPagaBorsellino="Sind Sie sich sicher, mit dem Portemonnaie bezahlen zu wollen?",this.BackHome="Auf Home zurück",this.Conferma="bestätigen",this.ConfermaPinSisal="Um die Mooney Buchung zu bestätigen, den PIN, den wir Ihnen per SM auf die Nummer zugesandt haben, einfügen",this.ConfermaPinSisalTitle="PIN Mooney bestätigen",this.ReSendPin="Erneut PIN Mooney senden",this.PinSisalNonRicevuto="Sollten Sie den PIN Mooney nicht erhalten haben, erneut beantragen. Hier klicken:",this.To="a",this.TitoloAnnullato="Fahrkarte storniert",this.TitoloScaduto="Fahrkarte abgelaufen",this.BigliettoOriginale="Originalfahrkarte",this.NuovoBiglietto="Neue Fahrkarte:",this.PostiNonSelezionati="Sie müssen die Sitzplätze für alle Passagiere auswählen",this.altaStagione="ATTENTION: FOR DATE SELECTED COULD BE USED SELECTED THIRD PARTY BUSES",this.altaStagioneIntersaj="ATTENTION: FOR DATE SELECTED COULD BE USED ADDITIONAL TRIPS",this.RegistrationChoiceTitle="Mit der Registrierung fortfahren",this.RegistrationAdvantages="Melden Sie sich an, um alle Registrierungsvorteile zu nutzen",this.SeatsChoice="seats choice",this.ReservedArea="reservierter Bereich mit Ticketoperationen (Datumsänderungen, Stornierungen usw.)",this.ReservedPromotions="reservierte Aktionen",this.Notifications="Echtzeitbenachrichtigungen über Verzögerungen und Änderungen der Haltezeiten",this.AllPaymentMethods="Mehr Zahlungsmethoden",this.FidelityAdvantage="Sammeln von Treuepunkten",this.AndMuchMore="...und vieles mehr !",this.ReservedAreaShort="Geschichte der Tickets",this.InformationWarning="Nur zur Kontaktaufnahme bei Verspätungen oder Änderungen im Reiseverlauf.",this.NonFarScaderePrenotazione=e=>`Achtung: Denken Sie daran, Ihre Reservierung bis zum ${P.getReadableDateString(e)} um ${P.getReadableTimeString(e)} Uhr zu bezahlen. Wenn Sie Mooney-Reservierungen ablaufen lassen, wird die Zahlungsmethode gesperrt`,this.NonFarScaderePrenotazioneViaCash=e=>`Achtung: Denken Sie daran, Ihre Reservierung bis zum ${P.getReadableDateString(e)} um ${P.getReadableTimeString(e)}.`,this.NonFarScaderePrenotazionePayByLink=e=>`Achtung: Denken Sie daran, Ihre Reservierung bis zum ${P.getReadableDateString(e)} um ${P.getReadableTimeString(e)}.`,this.Agevolazioni="Erleichterung:",this.TariffeAccessorie="Extra fares:",this.RemainderCoupon="Neue coupon",this.TicketManage="Verwaltung von Ticketänderungen, -stornierungen und -nachdrucken",this.Services="Zusatzleistungen ",this.OrderDetails="Bestelldetails",this.AddPassenger="Passagier hinzufügen",this.ContactForAdvisories="Kontakt für wichtige Mitteilungen",this.BigliettoElettronico="E-Ticket",this.Change="ändern",this.Travel="reisen",this.Cancel="Stornieren",this.NotIterestedToRegister="Haben Sie kein Interesse an zusätzlichen Dienstleistungen?",this.CompletaIlPagamento="Bitte schließen Sie die Zahlung für Ihr E-Ticket ab",this.AnnullamentoNonPossibile="Ticket nicht erstattungsfähig",this.PagamentoConBorsellino="Schnelle Zahlung mit elektronischer Geldbörse",this.SubscriptionDisclaimer="Entdecken Sie die auf dieser Route verfügbaren Abonnements. Wählen Sie das für Sie.",this.FindOutMore="Finde mehr heraus",this.DepartureAfterReturn="UNMÖGLICH, WEITERZUWEISEN! Die Rückgabe erfolgt vor der Hinreise",this.ImageBannerTitle="Reise einfach, reise klug",this.ImageBannerDescription="Kaufe dein Ticket und verwandle jede Reise in ein unvergessliches Erlebnis",this.ImageBannerTitleMarinobus="Deine Reise ist nur einen Klick entfernt",this.ImageBannerDescriptionMarinobus="wähle die Reiseoption, die am besten zu deinen Bedürfnissen passt, und reise mit uns",this.ImageBannerTitleLiberty="Buchen Sie jetzt Ihre Reise",this.ImageBannerDescriptionLiberty="kaufen Sie jetzt Ihr Ticket für unsere schnellen Fahrzeuge, um Ihre Lieblingsziele im Handumdrehen zu erreichen",this.ImageBannerTitleSais="Ihre Reise ist nur einen Klick entfernt",this.ImageBannerDescriptionSais="Wählen Sie Ihre maßgeschneiderte Lösung und fahren 
1Sie mit uns",this.ImageBannerTitleInterSs="Reisen Sie einfach, reisen Sie bequem, Sie sind auf einer Kreuzfahrt",this.ImageBannerDescriptionInterSs="",this.SelectTicketToChangeTrip="Wählen Sie die Tickets zum Ändern aus",this.SelectedTickets="Ausgewählte Tickets",this.TicketCount="Ticketanzahl",this.PayByLinkNotValid="Link not valid",this.PayByLinkExpired="Link expired",this.PayByLinkCanceled="Die Tickets sind nicht mehr gültig",this.FidelityTitle="Fidelity",this.UseFidelity="Riscatta i tuoi punti",this.DismissFidelity="Rimuovi fidelity",this.RetryPayment="Zahlung erneut versuchen",this.ManageLuggages="Zusätzliche Dienste verwalten",this.AddLuggages="Zusätzliche Dienstleistungen hinzufügen",this.RetryPaymentExpired="Vorgang nicht mehr zulässig, bitte tätigen Sie eine neue Buchung",this.BackToTicket="Zurück zum Ticket",this.AddLuggagesOkTitle="Vorgang erfolgreich abgeschlossen",this.AddLuggagesOkText="Die Dienste wurden hinzugefügt",this.AddLuggagesKoTitle="Vorgang nicht durchgeführt",this.AddLuggagesKoText="Die angeforderte Aktion konnte nicht abgeschlossen werden",this.With="mit",this.InvoiceErrorLoadingTicket="Fehler beim Laden des Tickets",this.InvoiceErrorTicketNotFound="Ticket nicht gefunden",this.InvoiceErrorSaving="Fehler beim Speichern des Tickets",this.InvoiceRequestOK="Rechnung erfolgreich angefordert",this.InvoiceRemoved="Rechnungsanfrage entfernt",this.InvoiceRequestOKButElapsed="Die Rechnung wurde erfolgreich angefordert. Die eingegebenen Daten können nicht mehr geändert werden. Änderungen sind nur bis einen Tag nach dem Ausstellungsdatum des Tickets möglich.",this.InvoiceElapsedDate="Die Rechnung kann nicht angefordert werden. Sie muss innerhalb eines Tages nach dem Ausstellungsdatum des Tickets angefordert werden.",this.InvoiceSaving="Speichern läuft...",this.InvoiceLoading="Laden läuft...",this.CanadaUsUkSmsAlert="Das Senden oder Empfangen von SMS kann je nach Ihrem Mobilfunktarif zusätzliche Kosten verursachen.",this.Paga="Pay",this.Attenzione="Achtung",this.NonPuoiCambiareServizi="Sie können die Zusatzleistungen auf dem Ticket nicht ändern, sondern nur hinzufügen",this.AlmenoUnServizio="Sie müssen mindestens eine Zusatzleistung zum Ausstellen oder eine zum Stornieren auswählen",this.SoloUnServizio="Sie können nur eine Zusatzleistung auswählen, um die bestehende zu ersetzen",this.SelezionaModalitaRimborso="Sie müssen eine Rückerstattungsmethode auswählen",this.InserisciDatiBonifico="Geben Sie die Daten des Überweisungsempfängers ein",this.SelezionaModalitaPagamento="Wählen Sie eine Zahlungsmethode",this.CanadaUsUkSmsAlertFlag="Ja, ich möchte SMS-Benachrichtigungen erhalten (es können Nachrichten- und Datentarife anfallen)",this.Vehicle="Fahrzeug",this.ChangeDateCardNotValid="Das neue Reisedatum liegt außerhalb des Gültigkeitszeitraums Ihrer Karte. Bitte wählen Sie ein Datum innerhalb des gültigen Zeitraums.",this.ChangeDateVehicleOnly="Um das Reisedatum zu ändern, müssen Sie mindestens einen Passagier auswählen. Fahrzeuge allein können nicht umgebucht werden.",this.ChangeDateSameTrip="Sie haben dieselbe Fahrt wie das Originalticket ausgewählt. Bitte wählen Sie eine andere Fahrt, um mit der Datumsänderung fortzufahren.",this.ChangeDateRoundTripRuleSameDay=e=>`Das Ticket ${e} erfordert Hin- und Rückfahrt am selben Tag. Das ausgewählte Datum erfüllt diese Bedingung nicht.`,this.ChangeDateRoundTripRuleWithinDays=(e,t)=>`Das Ticket ${e} erfordert die Rückfahrt innerhalb von ${t} Tagen nach der Hinfahrt. Das ausgewählte Datum erfüllt diese Bedingung nicht.`,this.ChangeDateMaxDaysExceeded=(e,t,i,a)=>`Das Ticket ${e} überschreitet das maximale Datumsänderungslimit von ${t} Tagen, ${i} Stunden und ${a} Minuten ab der ursprünglichen Abfahrt.`,this.ChangeDateMaxAllowedDepartureExceeded=(e,t)=>`ACHTUNG: Das ausgewählte Datum für Ticket ${e} überschreitet das maximal zulässige Abfahrtsdatum für die Datumsänderung, welches der ${t} ist`,this.IMieiAbbonamenti="Meine Abonnements",this.NuovoAbbonamento="Abonnement kaufen",this.ActiveSubscription="Aktive Abonnements",this.PastSubscription="Vergangene Abonnements",this.NessunAbbonamentoAttivo="Keine aktiven Abonnements",this.NessunAbbonamento="Keine Abonnements",this.Last30Days="Letzte 30 Tage",this.Last90Days="Letzte 90 Tage",this.ThisYear="Dieses Jahr",this.LastYear="Letztes Jahr",this.ServiceOrLuggageNotAvailable="Gepäck oder Zusatzleistung nicht auswählbar!",this.TicketsAlreadyPaid="Die Tickets wurden bereits bezahlt!"}};Sa.id="EndUserTicketSale";let ba=class{constructor(){this.TravelSelection="Sélection lieu",this.SolutionSelection="Sélection Voyage",this.OutboundAndReturnSelection="Voyage aller retour",this.PassengersInsertion="Passagers",this.RegisterOrNot="Inscrivez-vous ou connectez-vous",this.PaymentMethod="Mode de paiement",this.SeatSelection="Sélection de la place d’aller",this.SeatSe="Sélection de la place",this.ReturnSeatSelection="Sélection place de retour",this.PaymentMethodSelection="Sélectionner le mode de paiement",this.Proceed="Continuer",this.Pay="Aller au paiement",this.Result="Résultat",this.Passenger="Passager",this.OutboundSearchResult="Aller",this.ReturnSearchResult="Retour",this.ChangeSolution="afficher toutes les solutions de voyage",this.Biglietto="Billet",this.BigliettoAndataRitorno="aller/retour",this.BigliettoRitorno="(retour)",this.DataAcquisto="Acheté le",this.DataAcquistoSisal="Réservé le",this.DataPartenza="Départ le",this.DataDiScadenza="Date d’expiration: ",this.HaiTempoPerPagare=" Attention! Vous devez compléter le paiement avant: ",this.DataDiScadenzaPrevista="Attention! La date d’expiration estimée de votre réservation est: ",this.Partenza="Partenza",this.Arrivo="Arrivo",this.PassengersList="Liste des passagers",this.Stampa="Voir billets",this.StampaSisal="Voir réservation",this.AcquistoOk="Achat effectué avec succès!",this.AcquistoKo="Paiement non effectué",this.CambioDataOk="Changement de date effectué avec succès!",this.CambioDataKo="Changement de date non effectué",this.CambioCorsaNonPossibile="Le changement de date n'est pas possible sur un billet annulé, expiré ou déjà voyagé.",this.CambioCorsaNonPossibile2="Le changement de date n'est plus possible.",this.AcquistoOkSisal="Réservation effectué avec succès!",this.VaiInRicevitoria="Pour compléter le paiement du billet, rendez-vous à un point Mooney avec ce PNR dans la  date d’expiration indiquée ci-dessus!",this.TripSummaryLabel="Voyage",this.Passengers="Passagers",this.Amount="Total",this.CostoViaggio="Coût du voyage",this.DaPagare="A payer",this.Continua="Continuer",this.ContinuaExtended="Procédez au paiement",this.Errore_PrenotazioneScaduta="Réservation expirée",this.Errore_PostiOccupati="Places sélectionnées occupées",this.Errore_CorsaPiena="Bus plein",this.Errore_corsaPartita="Bus déjà parti!",this.Errore_NonVen
1dibile="Invendable",this.Posti="{n, plural, =1 {Place} other {Places}}",this.SaleSummary="Résumé des achats",this.OperationSummary="Résumé de l’opération",this.Pnr="PNR",this.MessaggioPagaBorsellino="Êtes-vous sûr que vous voulez payer avec le porte-monnaie?",this.BackHome="Retour à l’accueil",this.Conferma="Confirmer",this.ConfermaPinSisal="Pour confirmer la réservation Mooney, saisissez ici le PIN que nous venons de vous envoyer par sms au numéro",this.ConfermaPinSisalTitle="Confirmer PIN Mooney",this.ReSendPin="Renvoyer PIN Mooney",this.PinSisalNonRicevuto="Si vous n’avez pas reçu le PIN Mooney, vous pouvez le recevoir à nouveau en cliquant ici:",this.To="à",this.TitoloAnnullato="Billet annulé",this.TitoloScaduto="Billet expiré",this.BigliettoOriginale="Billet original",this.NuovoBiglietto="Nouveau billet:",this.PostiNonSelezionati="Vous devez sélectionner la place pour tous les passagers",this.altaStagione="ATTENTION: FOR DATE SELECTED COULD BE USED SELECTED THIRD PARTY BUSES",this.altaStagioneIntersaj="ATTENTION: FOR DATE SELECTED COULD BE USED ADDITIONAL TRIPS",this.RegistrationChoiceTitle="Proceed with registration",this.RegistrationAdvantages="Sign in to get all registration advantages",this.SeatsChoice="seats choice",this.ReservedArea="reserved area with tickets operations (date changes, cancelations and so on)...",this.ReservedPromotions="reserved promotions",this.Notifications="realtime notifications about delays and stop times changes",this.AllPaymentMethods="Plus de méthodes de paiement",this.FidelityAdvantage="cumul de points de fidélité",this.AndMuchMore="...and much more!",this.ReservedAreaShort="historique des opérations de tickets",this.InformationWarning="IMPORTANT! Utilisé pour vous contacter en cas de retards ou de changements d'itinéraires.",this.NonFarScaderePrenotazione=e=>`ATTENTION: remember to pay the booking avant le ${P.getReadableDateString(e)} à ${P.getReadableTimeString(e)}. If Mooney booking expires, payment method will be blocked.`,this.NonFarScaderePrenotazioneViaCash=e=>`ATTENTION: remember to pay the booking avant le ${P.getReadableDateString(e)} à ${P.getReadableTimeString(e)}.`,this.NonFarScaderePrenotazionePayByLink=e=>`ATTENTION: remember to pay avant le ${P.getReadableDateString(e)} à ${P.getReadableTimeString(e)}.`,this.Agevolazioni="Facilitation:",this.TariffeAccessorie="Taux accessoires:",this.RemainderCoupon="Nouveau coupon",this.TicketManage="Gestion des modifications, annulations et réimpressions de billets",this.Services="Services et bagages",this.NotIterestedToRegister="Pas intéressé par des services supplémentaires?",this.OrderDetails="détails de la commande",this.AddPassenger="Ajouter un passager",this.ContactForAdvisories="Contact pour avis important",this.BigliettoElettronico="E-Ticket",this.Change="Changer",this.Travel="de voyage",this.Cancel="Annuler",this.CompletaIlPagamento="Veuillez compléter le paiement de votre E-Ticket",this.AnnullamentoNonPossibile="Billet non remboursable",this.PagamentoConBorsellino="Paiement rapide avec porte-monnaie électronique",this.SubscriptionDisclaimer="Découvrez les abonnements disponibles sur ce parcours. Choisissez celui qui vous convient.",this.FindOutMore="En savoir plus",this.DepartureAfterReturn="IMPOSSIBLE DE CONTINUER ! Le retour est antérieur au voyage aller",this.ImageBannerTitle="Voyagez facilement, voyagez intelligemment",this.ImageBannerDescription="Achetez votre billet et transformez chaque voyage en une expérience inoubliable",this.ImageBannerTitleMarinobus="Votre voyage à un clic de distance",this.ImageBannerDescriptionMarinobus="choisissez la solution de voyage qui correspond le mieux à vos besoins et partez avec nous",this.ImageBannerTitleLiberty="Réservez votre voyage maintenant",this.ImageBannerDescriptionLiberty="achetez votre billet dès maintenant sur nos véhicules rapides pour atteindre vos destinations préférées en un rien de temps",this.ImageBannerTitleSais="Votre voyage est à portée de clic",this.ImageBannerDescriptionSais="Choisissez votre solution sur mesure et partez avec nous",this.ImageBannerTitleInterSs="Voyagez facilement, voyagez confortablement, vous êtes en croisière",this.ImageBannerDescriptionInterSs="",this.SelectTicketToChangeTrip="Sélectionnez les tickets à changer",this.SelectedTickets="Billets sélectionnés",this.TicketCount="Numero biglietti",this.PayByLinkNotValid="Le link n'est pas valide",this.PayByLinkExpired="Le link a expiré",this.PayByLinkCanceled="Les billets ne sont plus valables",this.FidelityTitle="Fidelity",this.UseFidelity="Riscatta i tuoi punti",this.DismissFidelity="Rimuovi fidelity",this.RetryPayment="Réessayer le paiement",this.ManageLuggages="Gérer les services et bagages",this.AddLuggages="Ajouter des services supplémentaires",this.RetryPaymentExpired="Opération non autorisée, veuillez effectuer une nouvelle réservation",this.BackToTicket="Retour au billet",this.AddLuggagesOkTitle="Opération effectuée avec succès",this.AddLuggagesOkText="Les services ont été ajoutés",this.AddLuggagesKoTitle="Opération non effectuée",this.AddLuggagesKoText="Impossible de conclure l'opération demandée",this.With="avec",this.InvoiceErrorLoadingTicket="Erreur lors du chargement du billet",this.InvoiceErrorTicketNotFound="Billet introuvable",this.InvoiceErrorSaving="Erreur lors de l'enregistrement du billet",this.InvoiceRequestOK="Facture demandée avec succès",this.InvoiceRemoved="Demande de facture supprimée",this.InvoiceRequestOKButElapsed="La facture a été demandée avec succès. Les données saisies ne peuvent plus être modifiées. Les modifications sont possibles uniquement dans un délai d'un j
1our après la date d'émission du billet.",this.InvoiceElapsedDate="Il n'est pas possible de demander la facture. La demande doit être effectuée dans un délai d'un jour après l'émission du billet.",this.InvoiceSaving="Enregistrement en cours...",this.InvoiceLoading="Chargement en cours...",this.CanadaUsUkSmsAlert="L’envoi ou la réception de SMS peut entraîner des frais supplémentaires selon votre forfait mobile",this.Paga="Payer",this.Attenzione="Attention",this.NonPuoiCambiareServizi="Vous ne pouvez pas modifier les services accessoires sur le billet, vous pouvez seulement en ajouter",this.AlmenoUnServizio="Vous devez sélectionner au moins un service supplémentaire à émettre ou un service supplémentaire à annuler",this.SoloUnServizio="Vous pouvez sélectionner un seul service supplémentaire pour remplacer celui existant",this.SelezionaModalitaRimborso="Vous devez sélectionner un mode de remboursement",this.InserisciDatiBonifico="Saisissez les coordonnées du titulaire du virement",this.SelezionaModalitaPagamento="Sélectionnez un mode de paiement",this.CanadaUsUkSmsAlertFlag="Oui, je souhaite recevoir des notifications par SMS (des frais de messagerie et de données peuvent s'appliquer)",this.Vehicle="Véhicule",this.ChangeDateCardNotValid="La nouvelle date de voyage est en dehors de la période de validité de votre carte. Veuillez sélectionner une date dans la période valide.",this.ChangeDateVehicleOnly="Pour modifier la date du voyage, vous devez sélectionner au moins un passager. Les véhicules seuls ne peuvent pas être reprogrammés.",this.ChangeDateSameTrip="Vous avez sélectionné le même voyage que le billet original. Veuillez choisir un voyage différent pour continuer le changement de date.",this.ChangeDateRoundTripRuleSameDay=e=>`Le billet ${e} nécessite un aller-retour le même jour. La date sélectionnée ne respecte pas cette condition.`,this.ChangeDateRoundTripRuleWithinDays=(e,t)=>`Le billet ${e} nécessite le retour dans les ${t} jours suivant le départ. La date sélectionnée ne respecte pas cette condition.`,this.ChangeDateMaxDaysExceeded=(e,t,i,a)=>`Le billet ${e} dépasse la limite maximale de changement de date de ${t} jours, ${i} heures et ${a} minutes depuis le départ d'origine.`,this.ChangeDateMaxAllowedDepartureExceeded=(e,t)=>`ATTENTION : la date sélectionnée pour le billet ${e} dépasse la date de départ maximale autorisée pour le changement de date, qui est le ${t}`,this.IMieiAbbonamenti="Mes abonnements",this.NuovoAbbonamento="Acheter un abonnement",this.ActiveSubscription="Abonnements disponibles",this.PastSubscription="Abonnements passés",this.NessunAbbonamentoAttivo="Aucun abonnement actif",this.NessunAbbonamento="Aucun abonnement",this.Last30Days="Les 30 derniers jours",this.Last90Days="Les 90 derniers jours",this.ThisYear="Cette année",this.LastYear="L'année dernière",this.ServiceOrLuggageNotAvailable="Bagage ou service supplémentaire non sélectionnable !",this.TicketsAlreadyPaid="Les billets ont déjà été payés !"}};ba.id="EndUserTicketSale";class Pa{constructor(){this.TravelSelection="Selección de localidades",this.SolutionSelection="Selección de viaje",this.OutboundAndReturnSelection="Viaje de ida y vuelta",this.PassengersInsertion="Pasajeros",this.RegisterOrNot="Regístrate o inicia sesión",this.PaymentMethod="Método de pago",this.SeatSelection="Selección de asiento",this.SeatSe="Selección de asiento",this.ReturnSeatSelection="Selección de asiento de regreso",this.PaymentMethodSelection="Selecciona el método de pago",this.Proceed="Proceder",this.Pay="Pagar",this.Result="Resultado",this.Passenger="Pasajero",this.OutboundSearchResult="Ida",this.ReturnSearchResult="Vuelta",this.ChangeSolution="Ver otras soluciones",this.Biglietto="Billete",this.BigliettoAndataRitorno="ida/vuelta",this.BigliettoRitorno="(vuelta)",this.DataAcquisto="Emitido el",this.DataAcquistoSisal="Reservado el",this.DataDiScadenza="Fecha de caducidad: ",this.DataDiScadenzaPrevista="¡Atención! La fecha estimada de caducidad de la reserva es: ",this.HaiTempoPerPagare="¡Atención! Debes completar el pago antes de: ",this.DataPartenza="Fecha de salida",this.Partenza="Salida",this.Arrivo="Llegada",this.PassengersList="Lista de pasajeros",this.Stampa="Ver billetes",this.StampaSisal="Ver reserva",this.AcquistoOk="¡Compra realizada con éxito!",this.AcquistoKo="¡Pago no realizado!",this.CambioDataOk="¡Cambio de fecha realizado con éxito!",this.CambioDataKo="Cambio de fecha no realizado",this.CambioCorsaNonPossibile="No es posible cambiar la fecha en un billete cancelado, caducado o ya utilizado.",this.CambioCorsaNonPossibile2="Ya no es posible cambiar la fecha.",this.AcquistoOkSisal="¡Reserva realizada con éxito!",this.VaiInRicevitoria="Para confirmar la reserva, acude a un punto Mooney con este PNR antes de su caducidad!",this.TripSummaryLabel="Viaje",this.Passengers="Pasajeros",this.Amount="Importe",this.CostoViaggio="Precio del viaje",this.DaPagare="A pagar",this.Continua="Continuar",this.ContinuaExtended="Proceder al pago",this.Errore_PrenotazioneScaduta="Reserva caducada",this.Errore_PostiOccupati="Asientos seleccionados no dis
1ponibles",this.Errore_CorsaPiena="Viaje completo",this.Errore_corsaPartita="¡Viaje ya salido!",this.Errore_NonVendibile="No disponible para la venta",this.Posti="{n, plural, =1 {Asiento} other {Asientos}}",this.SaleSummary="Resumen de venta",this.OperationSummary="Resumen de operación",this.Pnr="PNR",this.MessaggioPagaBorsellino="¿Seguro que quieres pagar con el monedero?",this.BackHome="Volver al inicio",this.Conferma="Confirmar",this.ConfermaPinSisal="Para confirmar tu reserva Mooney, introduce el código PIN que te enviamos por SMS a ",this.ConfermaPinSisalTitle="Confirmar PIN Mooney",this.ReSendPin="Reenviar PIN Mooney",this.PinSisalNonRicevuto="Si no has recibido el PIN Mooney haz clic aquí para reenviar:",this.To="a",this.TitoloAnnullato="Billete cancelado",this.TitoloScaduto="Billete caducado",this.BigliettoOriginale="Viaje original",this.NuovoBiglietto="Nuevo billete:",this.PostiNonSelezionati="Debes elegir el asiento para todos los pasajeros",this.altaStagione="ATENCIÓN: PARA LA FECHA SELECCIONADA PODRÍAN UTILIZARSE AUTOBUSES DE TERCEROS",this.altaStagioneIntersaj="ATENCIÓN: PARA LA FECHA SELECCIONADA PODRÍAN UTILIZARSE VIAJES ADICIONALES",this.RegistrationChoiceTitle="Proceder con el registro",this.RegistrationAdvantages="Inicia sesión para obtener todas las ventajas del registro",this.SeatsChoice="elección de asientos",this.ReservedArea="área reservada con operaciones sobre billetes (cambios de fecha, cancelaciones, etc.)...",this.ReservedPromotions="promociones reservadas",this.Notifications="notificaciones en tiempo real sobre retrasos y cambios de horarios",this.AllPaymentMethods="más métodos de pago",this.FidelityAdvantage="acumulación de puntos de fidelidad",this.AndMuchMore="¡...y mucho más!",this.ReservedAreaShort="historial de operaciones sobre billetes (cambios de fecha, cancelaciones, etc.)...",this.InformationWarning="¡IMPORTANTE! Se utilizará para contactarte en caso de retraso o cambio de itinerario",this.NonFarScaderePrenotazione=e=>`ATENCIÓN: recuerda pagar la reserva antes del ${P.getReadableDateString(e)} a las ${P.getReadableTimeString(e)}. Si la reserva Mooney caduca, el método de pago será bloqueado.`,this.NonFarScaderePrenotazioneViaCash=e=>`ATENCIÓN: recuerda pagar la reserva antes del ${P.getReadableDateString(e)} a las ${P.getReadableTimeString(e)}.`,this.NonFarScaderePrenotazionePayByLink=e=>`ATENCIÓN: recuerda pagar antes del ${P.getReadableDateString(e)} a las ${P.getReadableTimeString(e)}.`,this.Agevolazioni="Facilidades:",this.TariffeAccessorie="Tarifas adicionales:",this.RemainderCoupon="Nuevo cupón",this.TicketManage="Modifica y cancela tu billete",this.Services="Servicios adicionales",this.OrderDetails="Detalles del pedido",this.AddPassenger="Agregar pasajero",this.ContactForAdvisories="Contactos para avisos importantes",this.BigliettoElettronico="Billete electrónico",this.Change="Cambio",this.Travel="Viaje",this.Cancel="Cancelar",this.NotIterestedToRegister="¿No te interesan los servicios adicionales?",this.CompletaIlPagamento="Por favor, completa el pago de tu billete electrónico",this.AnnullamentoNonPossibile="Billete no reembolsable",this.PagamentoConBorsellino="Pago rápido con tu monedero",this.SubscriptionDisclaimer="Descubre los abonos disponibles en esta ruta. Elige el que más te convenga.",this.FindOutMore="Descubre más",this.DepartureAfterReturn="¡NO SE PUEDE CONTINUAR! El regreso es anterior a la ida",this.ImageBannerTitle="Viaja fácil, viaja inteligente",this.ImageBannerDescription="Compra tu billete y convierte cada viaje en una experiencia inolvidable",this.ImageBannerTitleMarinobus="Tu viaje está a un solo clic",this.ImageBannerDescriptionMarinobus="elige la solución de viaje que mejor se adapte a tus necesidades y viaja con nosotros",this.ImageBannerTitleLiberty="Reserva tu viaje ahora",this.ImageBannerDescriptionLiberty="compra tu billete ahora en nuestros vehículos rápidos para llegar a tus destinos favoritos en poco tiempo",this.ImageBannerTitleSais="Tu viaje está a un clic",this.ImageBannerDescriptionSais="Elige tu solución a medida y sal con nosotros",this.ImageBannerTitleInterSs="Viaja fácil, viaja cómodo, estás en un crucero",this.ImageBannerDescriptionInterSs="",this.SelectTicketToChangeTrip="Selecciona los billetes a cambiar",this.SelectedTickets="Billetes seleccionados",this.TicketCount="Número de billetes",this.PayByLinkNotValid="Enlace no válido",this.PayByLinkExpired="Enlace caducado",this.PayByLinkCanceled="Los billetes ya no son válidos",this.FidelityTitle="Fidelidad",this.UseFidelity="Canjea tus puntos",this.DismissFidelity="Eliminar fidelidad",this.RetryPayment="Reintentar el pago",this.ManageLuggages="Gestionar servicios adicionales",this.AddLuggages="Añadir servicios adicionales",this.RetryPaymentExpired="Operación no permitida, por favor realice una nueva reserva",this.BackToTicket="Volver al billete",this.AddLuggagesOkTitle="Operación realizada con éxito",this.AddLuggagesOkText="Los servicios han sido añadidos",this.AddLuggagesKoTitle="Operación no realizada",this.AddLuggagesKoText="No fue posible completar la operación solicitada",this.With="con",this.InvoiceErrorLoadingTicket="Error al cargar el billete",this.InvoiceErrorTicketNotFound="Billete no encontrado",this.InvoiceErrorSaving="Error al guardar el billete",this.InvoiceRequestOK="Factura solicitada correctamente",this.InvoiceRemoved="Solicitud de la factura eliminada",this.InvoiceRequestOKButElapsed="La factura 
1se ha solicitado correctamente. Los datos no se pueden modificar. Solo es posible modificarlos dentro del plazo de un día desde la fecha de emisión del billete.",this.InvoiceElapsedDate="No es posible solicitar la factura. Solo se puede solicitar dentro de un día desde la fecha de emisión del billete.",this.InvoiceSaving="Guardando...",this.InvoiceLoading="Cargando...",this.CanadaUsUkSmsAlert="El envío o la recepción de SMS puede conllevar cargos adicionales según el plan tarifario que tengas con tu operador",this.Paga="Pagar",this.Attenzione="Atención",this.NonPuoiCambiareServizi="No puedes cambiar los servicios adicionales en el billete, solo puedes añadirlos",this.AlmenoUnServizio="Debes seleccionar al menos un servicio adicional para emitir o uno para cancelar",this.SoloUnServizio="Solo puedes seleccionar un servicio adicional para sustituir el existente",this.SelezionaModalitaRimborso="Debes seleccionar un método de reembolso",this.InserisciDatiBonifico="Introduce los datos del titular de la transferencia",this.SelezionaModalitaPagamento="Selecciona un método de pago",this.CanadaUsUkSmsAlertFlag="Sí, quiero recibir notificaciones por SMS (pueden aplicarse tarifas de mensajes y de datos)",this.Vehicle="Vehículo",this.ChangeDateCardNotValid="La nueva fecha de viaje está fuera del período de validez de tu tarjeta. Por favor, selecciona una fecha dentro del período válido.",this.ChangeDateVehicleOnly="Para cambiar la fecha del viaje, debes seleccionar al menos un pasajero. No es posible reprogramar solo los vehículos.",this.ChangeDateSameTrip="Has seleccionado el mismo viaje que el billete original. Por favor, elige un viaje diferente para continuar con el cambio de fecha.",this.ChangeDateRoundTripRuleSameDay=e=>`El billete ${e} requiere ida y vuelta en el mismo día. La fecha seleccionada no cumple con este requisito.`,this.ChangeDateRoundTripRuleWithinDays=(e,t)=>`El billete ${e} requiere el viaje de vuelta dentro de ${t} días desde la salida. La fecha seleccionada no cumple con este requisito.`,this.ChangeDateMaxDaysExceeded=(e,t,i,a)=>`El billete ${e} supera el límite máximo de cambio de fecha de ${t} días, ${i} horas y ${a} minutos desde la salida original.`,this.ChangeDateMaxAllowedDepartureExceeded=(e,t)=>`ATENCIÓN: la fecha seleccionada para el billete ${e} supera la fecha máxima de salida permitida para el cambio de fecha, que es ${t}`,this.IMieiAbbonamenti="Mis abonos",this.NuovoAbbonamento="Nuevo abono",this.ActiveSubscription="Abonos disponibles",this.PastSubscription="Abonos pasados",this.NessunAbbonamentoAttivo="No hay suscripciones activas",this.NessunAbbonamento="No hay suscripciones",this.Last30Days="Últimos 30 días",this.Last90Days="Últimos 90 días",this.ThisYear="Este año",this.LastYear="Año pasado",this.ServiceOrLuggageNotAvailable="¡Equipaje o servicio adicional no seleccionable!",this.TicketsAlreadyPaid="¡Los billetes ya han sido pagados!"}}Pa.id="EndUserTicketSale";let Aa=class{constructor(){this.WaitForRedirectToPayment="Wait... you are being redirected to payment gateway",this.WaitForInternalPayment="Wait... issuing your tickets",this.Wait="Please wait...",this.Customers="User area",this.CustomersLink="https://www.marinobus.it/en/users-area/",this.Agencies="Agency area",this.AgenciesAreaLink="https://www.marinobus.it/en/agency-area/",this.Contacts="Contacts",this.ContactsLink="https://www.marinobus.it/en/contacts/",this.Rental="Rental",this.RentalLink="https://www.marinobus.it/en/agency-area/bus-rental/",this.Company="Company",this.CompanyLink="https://www.marinobus.it/en/marino-company/",this.Promotions="Offers",this.PromotionsLink="https://www.marinobus.it/en/offers-and-promo/",this.DestinationAndStops="Destinations & bus stops",this.DestinationAndStopsLink="https://www.marinobus.it/en/destination-bus-stop/",this.DisposizioniGovernative="check for government decision to combat the Coronavirus:",this.PrimaDiPartire="Before leaving",this.Italia="italy",this.Svizzera="switzerland",this.Germania="germany",this.GreenPass="I accomplish GREEN PASS travel rules",this.GreenPassRules="GREEN PASS rules",this.MaggioriInfo="More infos",this.MyTickets="My tickets",this.MyCoupons="My coupons",this.NoCoupons="No coupons available",this.MyFidelity="My loyalty cards",this.NoFidelity="No loyalty card available",this.FidelityActive="Active",this.FidelityExpired="Expired",this.FidelityActiveLabel="Actives",this.FidelityExpiredLabel="Expireds",this.FidelityAvailableDiscount="Loyalty discount available",this.FidelityPointsNeeded="Still missing",this.FidelityPointsCount="points for next discount",this.FidelityPoints="Points:",this.UserArea="Reserved area",this.MyWallet="My wallet",this.Book="Book",this.NewSearch="New search",this.AgenciesList="Agencies list",this.FindAgencies="Find agencies in your city:",this.PrivacySettings="Privacy Settings",this.Codice="Code",this.EmessoIl="Issued on",this.Passeggero="Passenger",this.Viaggio="Itinerary",this.Prezzo="Price",this.MetodoPagamento="Payment type",this.DataDiEmissioe="Issue date",this.DataDiScadenza="Expiration date ",this.Eta="Age ",this.FareCategory="Fare ",this.Note="notes ",this.Operazioni="Operations",this.Ristampa="Reprint",this.CambioData="Change trip",this.CambioCorsa="Change trip",this.CambioPrenotazione="Change reservations",this.CambioPosto="Change seat",this.CarrelloPieno="The shopping cart is full",this.Annullamento="Cancelation",this.ConfermaOperazione="Confirm operation",this.DettagliTitolo="Ticket details",this.Biglietto="Ticket",this.DataEmissione="Issue date",this.Importo="Amou
1nt",this.Pagato="Payed",this.NonPagato="Not Payed",this.Annullato="Canceled",this.Esci="Exit",this.TicketParts="Ticket parts",this.TicketList="Ticket List",this.CambioCorsaEffettuato="Trip chaged succesfully!",this.StampaBiglietti="Print tickets",this.Tratta="Route",this.Passeggeri="Passengers",this.ScegliPosto="Choose seat",this.PreferenzePerIlPosto="Preferences for the place?",this.ModificaPosti="Change seats",this.SoluzioneNonAcquistabile="Itinerary is not available",this.PostoNumero="Seat n. ",this.Vettore="Operated by: ",this.AnteprimaCostoOperazione="Cancelation preview",this.NuovoBiglietto="New ticket",this.TitoloAnnullato="CANCELLED TICKET!",this.Tessera="Card",this.Biglietti="tickets",this.StaiPerAnnullare="You are about to cancel",this.IssueEmail="Email",this.IssuePhone="Contact Number",this.PrenotazioneSisal="Mooney reservation",this.InvoiceTitle="Invoice",this.PrivacyAndTermConditions="Transport conditions and privacy",this.NotePasseggero="Notes ",this.Nome="Name ",this.Tel="Phone no. ",this.IssueSubscription="Create subscription",this.Riepilogo="Summary ",this.ViaggioAndata="Outbound trip",this.ViaggioRitorno="Return trip",this.TipologiaDiViaggio="Type",this.CorsaSemplice="One way",this.AndataeRitorno="return",this.TotaleOperazione="Total amount ",this.TotalePagato="Already payed amount ",this.Penale="Change recharge",this.TotaleDaRicevere="Amount to receive ",this.TotaleDaPagare="Amount to pay ",this.TotaleRimborso="Total refund",this.Effettua="Do ",this.ImportoPenale="Change recharge ",this.Annulla="Cancel",this.Conferma="Confirm",this.Iban="Iban",this.IntestatarioConto="Account holder",this.SpecificaEmail="Specify other email or phone:",this.CambioCorsa_LCase="trip change",this.Email="Email ",this.TitoliAnnullatiImporto="Canceled tickets' amount ",this.TitoliEmessiImporto="Issued tickets' amount ",this.TotaleDaRestituire="Return to passenger amount ",this.TotaleDaIncassare="Amount to receive ",this.Chiudi="Close",this.Login="Login",this.LogOff="LogOff",this.Register="Signup",this.Errore_PrenotazioneScaduta="Reservation expired",this.Errore_ritenta="Sorry, there was a problem, please retry",this.Errore_postiOccupati="Occupied seats",this.Errore_corsaPiena="Trip full",this.Errore_corsaPartita="Corsa già partita!",this.Errore_nonVendibile="Not available",this.Errore_inserisciPasseggeri="ATTENTION fill in the passenger's data",this.Errore_postiSelezionati="ATTENTION you've already selected the seat for all the passengers",this.Errore_selezionaMetodoPagamento="Attention, you must select a payment method to proceed",this.NoRimborso="WARNING: By proceeding with the operation, the ticket will be canceled but no refund will be issued!",this.VuoiAnnullareTitolo="Are you sure you want to cancel ticket n. ",this.AnnullamentoEffettuato="Cancelation succeedeed",this.Rimborso="Refund",this.RimborsoEffettuato="Refund completed",this.Errore_annullamento="Sorry, there was an error.",this.Errore_ricerca="Sorry, there was a problem in this operation. Please, select a smaller period.",this.Errore_DataNonRientraAbbonamento="Sorry, selected solution is not valid for the subscription.",this.Errore_NonAutorizzato="User unauthorized",this.Errore_DatiBonifico="Check bank transfer data!",this.SelezionaModalitaRimborso="Select the refund mode",this.Errore_TermsAndConditions="Please, accept terms and conditions",this.TermsAndConditionsForPaymentMethods="Please, accept terms and conditions to proceed with the payment",this.MarketingFlags="Select if agree or not",this.Errore_TermsAndConditions_Fidelity="Please accept the loyalty program terms and conditions",this.Data="Data",this.Departure="Departure",this.DepartureDate="Date",this.NotInValiditySubscription="Valid from",this.ExipiredSubscription="Expired",this.ValidSubscription="Valid",this.CercaPerDataPartenza="Search for departure date",this.Obbligatorio="Mandatory",this.EmailObbligatoria="Invalid e-mail",this.TelefonoObbligatorio="Invalid phone number",this.PasseggeriNonValidi="Fill passengers data",this.VeicoliNonValidi="Fill vehicles data",this.PaymentMethodRequired="Payment method required",this.BillingAddressRequired="Billing address required",this.InvoiceDataRequired="Invoice data required",this.MostraAnnullatiScaduti="Show canceled",this.Adeguamento="Price adjustment",this.Servizi="Servizi",this.Loading="Loading",this.Indietro="Back",this.ScaricaPdf="Download PDF",this.TrattaEseguitaDa="Journey executed by",this.SelectSeatTitle="Cho
1ose your favourite seat on our vehicles for each part of the trip",this.SelectSeatDisclaimer="Your actual assigned seat may change close to departure time.",this.ProssimiViaggi="Next trips",this.ViaggiPrecedenti="Previous trips",this.Filtra="Search",this.NessunViaggioPianificato="No trips planned",this.NonCiSonoViaggiFuturi="You have no future trips booked. You can consult the history of tickets already traveled or buy others",this.NonCiSonoViaggiPassati="There are no previously traveled trips",this.PrenotaIlTuoViaggio="Book your next trip",this.Prenota="Book",this.InvoiceRequestDisclaimer="WARNING: You can request invoice only in this phase; after this it will no longer possibile",this.InvoiceRequestDisclaimerMarinoBus="Per soggetti tenuti all’applicazione dello Split Payment (Art. 17-ter DPR 633/72) come la Pubblica Amministrazione, l'acquisto dei biglietti e la relativa richiesta di fattura è disponibile solo chiamando al seguente numero:0803112335",this.VeicoliSelezionati="Selected vehicles",this.AltriVeicoliAccessori="Other vehicles",this.PayByLink="Pay your tickets",this.PayByLinkReservation="Pay your change",this.PayByLinkExpired="Payment link has expired",this.RefundByLinkExpired="Refund link has expired",this.Trip="Trip",this.Origine="Origin",this.Mezzo="Vehicle",this.Ritardo="Delay",this.CorsaAnnullata="TRIP CANCELED",this.ProssimePartenze="Next departures:",this.NessunArrivo="No arrivals available",this.NessunArrivoExtended="No trips available for selected arrival",this.Arrival="Arrival",this.NessunaPartenza="No departures available",this.NessunaPartenzaExtended="No trips available for selected departure",this.MyRental="My Rentals",this.RentalRequest="Rental Request",this.RentalRequestSent="Rental request sent!",this.RentalRequestSentDescription="Thank you! Your rental request has been successfully sent. We will contact you as soon as possible to confirm the details.",this.BusPreference="Bus Preference?",this.NoBusSelected="No bus selected",this.FidelityMarinobus="I declare that I have read the",this.FidelityMarinobus2="MarinoBus Loyalty Program Terms and Conditions"}};Aa.id="EndUser1";let Ca=class{constructor(){this.WaitForRedirectToPayment="Attendi... stai per essere reindirizzato al sito di pagamento",this.WaitForInternalPayment="Attendi... Acquisto in corso",this.Wait="Please wait...",this.Agencies="Area agenzie",this.AgenciesAreaLink="https://www.marinobus.it/area-agenzia/",this.Customers="Area clienti",this.CustomersLink="https://www.marinobus.it/area-clienti/",this.Contacts="Contatti",this.ContactsLink="https://www.marinobus.it/contatti/",this.Rental="Noleggio",this.RentalLink="https://www.marinobus.it/area-agenzia/noleggio-autobus/",this.Company="Azienda",this.CompanyLink="https://www.marinobus.it/azienda-marino/",this.Promotions="Offerte",this.PromotionsLink="https://www.marinobus.it/offerte-e-promo/",this.DestinationAndStops="Destinazioni e fermate",this.DestinationAndStopsLink="https://www.marinobus.it/destinazioni-fermate/",this.DisposizioniGovernative="verifica eventuali disposizioni governative per il contrasto al Coronavirus:",this.PrimaDiPartire="Prima di partire",this.Italia="italia",this.Svizzera="svizzera",this.Germania="germania",this.GreenPass="Dichiaro di essere in regola con il GREEN PASS",this.GreenPassRules="Informativa GREEN PASS",this.MaggioriInfo="Maggiori informazioni",this.UserArea="Area riservata",this.MyTickets="I miei biglietti",this.MyCoupons="I miei coupon",this.NoCoupons="Nessun coupon presente",this.MyFidelity="Le mie fidelity",this.NoFidelity="Nessuna fidelity disponibile",this.FidelityActive="Attiva",this.FidelityExpired="Scaduta",this.FidelityActiveLabel="Attive",this.FidelityExpiredLabel="Scadute",this.FidelityAvailableDiscount="Sconto fidelity disponibile",this.FidelityPointsNeeded="Mancano ancora",this.FidelityPointsCount="punti per il prossimo sconto",this.FidelityPoints="Punti:",this.MyWallet="Il mio borsellino",this.Book="Prenota",this.NewSearch="Nuova ricerca",this.AgenciesList="Elenco agenzie",this.FindAgencies="Cerca l'agenzia nella tua città:",this.PrivacySettings="Gestione consensi",this.Codice="Codice",this.EmessoIl="Emesso il",this.Passeggero="Passeggero",this.Viaggio="Viaggio",this.Prezzo="Prezzo",this.MetodoPagamento="Metodo di pagamento",this.DataDiEmissioe="Data di acquisto",this.Eta="Età ",this.FareCategory="Tariffa ",this.Note="note ",this.Operazioni="Operazioni",this.Ristampa="Ristampa",this.CambioCorsa="Cambio corsa",this.CambioPrenotazione="Gestisci prenotazioni",this.CambioPosto="Cambio posto",this.CarrelloPieno="Carrello pieno",this.Annullamento="Annullamento",this.ConfermaOperazione="Conferma Operazione",this.DettagliTitolo="Dettagli del titolo",this.Biglietto="Biglietto",this.DataEmissione="Data acquisto",this.Importo="Importo",this.DataDiScadenza="Data di scadenza",this.Pagato="Pagato",this.NonPagato="Non pagato",this.Annullato="Annullato",this.Esci="Esci",this.TicketParts="Ticket parts",this.TicketList="Elenco biglietti",this.CambioCorsaEffettuato="Cambio corsa effettuato con successo!",this.StampaBiglietti="Stampa biglietti",this.Tratta="Tratta",this.Passegger
1i="Passeggeri",this.ScegliPosto="Scegli il posto",this.PreferenzePerIlPosto="Preferenze per il posto?",this.ModificaPosti="Modifica posti",this.SoluzioneNonAcquistabile="La soluzione di viaggio selezionata non è acquistabile",this.PostoNumero="Posto n. ",this.AnteprimaCostoOperazione="Anteprima annullamento",this.Vettore="Vettore: ",this.NuovoBiglietto="Nuovo biglietto",this.TitoloAnnullato="TITOLO ANNULLATO!",this.Tessera="Tessera",this.Biglietti="biglietti",this.StaiPerAnnullare="Stai per annullare",this.IssueEmail="Recapito email",this.IssuePhone="Recapito telefonico",this.PrenotazioneSisal="Prenotazione Mooney",this.InvoiceTitle="Fattura",this.PrivacyAndTermConditions="Condizioni di trasporto e privacy",this.NotePasseggero="Note ",this.Nome="Nome ",this.Tel="Tel. ",this.Riepilogo="Riepilogo ",this.ViaggioAndata="Viaggio di andata",this.ViaggioRitorno="Viaggio di ritorno",this.TipologiaDiViaggio="Tipologia di viaggio",this.CorsaSemplice="Corsa semplice",this.AndataeRitorno="Andata e Ritorno",this.TotaleOperazione="Totale operazione ",this.TotalePagato="Totale già pagato ",this.Penale="Penale ",this.TotaleDaRicevere="Totale da ricevere ",this.TotaleDaPagare="Totale da pagare ",this.TotaleRimborso="Totale rimborso",this.Effettua="Effettua ",this.Adeguamento="Adeguamento viaggio",this.CambioCorsa_LCase="cambio corsa",this.Email="Email ",this.TitoliAnnullatiImporto="Titoli annullati per un importo di ",this.TitoliEmessiImporto="Titoli emessi per un importo di ",this.TotaleDaRestituire="Totale da restituire all'utente ",this.TotaleDaIncassare="Totale da incassare ",this.Chiudi="Chiudi",this.ImportoPenale="Penale applicata ",this.Annulla="Annulla",this.Conferma="Conferma",this.Iban="Iban",this.IntestatarioConto="Intestatario conto",this.SpecificaEmail="Specifica email o telefono diversi:",this.Login="Accedi",this.LogOff="Esci",this.Register="Registrati",this.Errore_PrenotazioneScaduta="Prenotazione scaduta",this.Errore_ritenta="Si sono verificati errori, ritenta",this.Errore_postiOccupati="Posti selezionati occupati",this.Errore_corsaPiena="Corsa piena",this.Errore_corsaPartita="Corsa già partita!",this.Errore_nonVendibile="Non vendibile",this.Errore_inserisciPasseggeri="ATTENZIONE inserisci prima i passeggeri",this.Errore_postiSelezionati="ATTENZIONE hai selezionato il posto per tutti i passeggeri",this.Errore_selezionaMetodoPagamento="Attenzione, per proseguire è necessario selezionare una modalità di pagamento",this.VuoiAnnullareTitolo="Vuoi veramente annullare il biglietto numero ",this.NoRimborso="ATTENZIONE: Procedendo con l'operazione il biglietto verrà annullato ma non verrà erogato nessun rimborso!",this.AnnullamentoEffettuato="Annullamento effettuato",this.Rimborso="Rimborso",this.RimborsoEffettuato="Rimborso effettuato",this.Errore_annullamento="Si è verificato un errore.",this.Errore_ricerca="Si è verificato un errore nella ricerca. Ritenta selezionando un periodo più breve.",this.Errore_DataNonRientraAbbonamento="ATTENZIONE la soluzione selezionata non rientra nella validità dell'abbonamento.",this.Errore_NonAutorizzato="Utente non autorizzato",this.Errore_DatiBonifico="Verifica i dati per il bonifico bancario!",this.SelezionaModalitaRimborso="Seleziona la modalità di rimborso",this.Errore_TermsAndConditions="Acconsenti i termini e condizioni",this.TermsAndConditionsForPaymentMethods="Acconsenti i termini e condizioni per pocedere al pagamento",this.Errore_TermsAndConditions_Fidelity="Acconsenti il regolamento del programma fidelity",this.Data="Data",this.Departure="Partenza",this.DepartureDate="Data partenza",this.NotInValiditySubscription="Valido dal",this.ExipiredSubscription="Scaduto",this.ValidSubscription="In vigore",this.IssueSubscription="Nuovo abbonamento",this.CercaPerDataPartenza="Filtra per data di partenza",this.Obbligatorio="Obbligatorio",this.EmailObbligatoria="Inserire un email valida",this.TelefonoObbligatorio="Inserire un contatto telefonico",this.PasseggeriNonValidi="Completa i dati dei passeggeri",this.VeicoliNonValidi="Completa i dati dei veicoli",this.PaymentMethodRequired="Seleziona un modalità di pagamento",this.BillingAddressRequired="Inserisci l'indirizzo del titolare della carta",this.InvoiceDataRequired="Completa i dati per la fattura",this.MostraAnnullatiScaduti="Mostra annullati",this.InvoiceRequestDisclaimer="ATTENZIONE: È possibile richiedere la fattura solo in questa fase; successivamente non sarà più possibile ottenerla.",this.InvoiceRequestDisclaimerMarinoBus="Per soggetti tenuti all’applicazione dello Split Payment (Art. 17-ter DPR 633/72) come la Pubblica Amministrazione, l'acquisto dei biglietti e la relativa richiesta di fattura è disponibile solo chiamando al seguente numero:0803112335",this.MarketingFlags="Seleziona se acconsentire o meno",this.Servizi="Servizi",this.Loading="Caricamento in corso",this.Indietro="Indietro",this.ScaricaPdf="Scarica PDF",this.TrattaEseguitaDa="Viaggio eseguito da",this.SelectSeatTitle="Seleziona il posto che preferisci sui nostri mezzi per ogni tratta del tuo viaggio",this.SelectSeatDisclaimer="In prossimità della partenza il posto effettivo assegnato per il viaggio potrebbe variare.",this.ProssimiViaggi="Prossimi viaggi",this.ViaggiPrecedenti="Viaggi precedenti",this.Filtra="Ricerca",this.NessunViaggioPianificato="Non hai viaggi prenotati",this.NonCiSonoViaggiFuturi="Non hai viaggi futuri prenotati. Puoi consultare lo storico dei biglietti già viaggiati oppure acquistarne altri",this.NonCiSonoViaggiPassati="Non hai prenotazioni viaggiate",this.PrenotaIlTuoViaggio="Prenota il tuo prossimo viaggio",this.Prenota="Prenota",this.VeicoliSelezionati="Veicoli selezionati",this.AltriVeicoliAccessori="Altri veicoli",this.PayByLink="Paga 
1i tuoi biglietti",this.PayByLinkReservation="Paga il tuo cambio corsa",this.PayByLinkExpired="Il link di pagamento è scaduto",this.RefundByLinkExpired="Il link di rimborso è scaduto",this.Trip="Corsa",this.Origine="Origine",this.Mezzo="Mezzo",this.Ritardo="Ritardo",this.CorsaAnnullata="CORSA ANNULLATA",this.ProssimePartenze="Prossime Partenze:",this.NessunArrivo="Nessun arrivo disponibile",this.NessunArrivoExtended="Non sono ancora previste corse per la fermata selezionata",this.Arrival="Arrivo",this.NessunaPartenza="Nessuna partenza disponibile",this.NessunaPartenzaExtended="Non sono ancora previste corse dalla fermata selezionata",this.MyRental="I Miei Noleggi",this.RentalRequest="Richiesta Noleggio",this.RentalRequestSent="Richiesta di noleggio inviata!",this.RentalRequestSentDescription="Grazie! La tua richiesta di noleggio è stata Ricevuta con successo. Ti ricontatteremo al più presto per confermare i dettagli.",this.BusPreference="Preferenze sul Mezzo?",this.NoBusSelected="Nessun mezzo selezionato",this.FidelityMarinobus="Dichiaro di aver preso visione del",this.FidelityMarinobus2="Regolamento del Programma Fedeltà MarinoBus"}};Ca.id="EndUser1";let Ea=class{constructor(){this.WaitForRedirectToPayment="Einen Moment… wir leiten Sie zur Webseite in Bezug auf die Zahlung weiter",this.WaitForInternalPayment="Einen Moment... Kaufvorgang in Bearbeitung",this.Wait="Pleasewait...",this.Customers="Kundenbereich",this.CustomersLink="https://www.marinobus.it/de/kundenbereich/",this.Agencies="REISEBÜROS",this.AgenciesAreaLink="https://www.marinobus.it/de/bereich-fur-reiseburos/",this.Contacts="KONTAKTE",this.ContactsLink="https://www.marinobus.it/de/kontakte/",this.Rental="VERMIETUNG",this.RentalLink="https://www.marinobus.it/de/bereich-fur-reiseburos/reisebusvermietung/",this.Company="UNTERNEHMEN",this.CompanyLink="https://www.marinobus.it/de/unternehmen/",this.Promotions="ANGEBOTE",this.PromotionsLink="https://www.marinobus.it/de/angebote-und-promotionen/",this.DestinationAndStops="ZIELORTE & HALTESTELLEN",this.DestinationAndStopsLink="https://www.marinobus.it/de/zielorte-und-haltestellen/",this.DisposizioniGovernative="ob Regierungsentscheidungen zur Bekämpfung des Coronavirus getroffen wurden:",this.PrimaDiPartire="Überprüfen Sie vor Ihrer Abreise",this.Italia="italien",this.Svizzera="schveiz",this.Germania="deutschland",this.GreenPass="I accomplish GREEN PASS travel rules",this.GreenPassRules="GREEN PASS rules",this.MaggioriInfo="More infos",this.UserArea="Reservierter Bereich",this.MyTickets="Meine fahrkarten",this.MyCoupons="Meine coupons",this.NoCoupons="Kein Gutschein vorhanden",this.MyFidelity="Meine Treuekarten",this.NoFidelity="Keine Treuekarten verfügbar",this.FidelityActive="Aktiv",this.FidelityExpired="Abgelaufen",this.FidelityActiveLabel="Aktive",this.FidelityExpiredLabel="Abgelaufene",this.FidelityAvailableDiscount="Treuerabatt verfügbar",this.FidelityPointsNeeded="Es fehlen noch",this.FidelityPointsCount="Punkte bis zum nächsten Rabatt",this.FidelityPoints="Punkte:",this.MyWallet="Mein Portemonnaie",this.Book="Buchen",this.NewSearch="Neue Suche",this.IssueSubscription="Abonnement erstellen",this.AgenciesList="Liste der Agenturen",this.FindAgencies="Agenturen in Ihrer Stadt finden:",this.PrivacySettings="Datenschutzeinstellungen",this.Codice="Code",this.EmessoIl="ausgestellt am",this.Passeggero="Passagier",this.Viaggio="Reise",this.Prezzo="Preis",this.MetodoPagamento="Zahlmethode",this.DataDiEmissioe="Kaufdatum",this.Eta="Alter ",this.FareCategory="Tarif ",this.Note="Anmerkung ",this.Operazioni="Vorgänge",this.Ristampa="Erneuter Ausdruck",this.CambioCorsa="Datum ändern",this.CambioData="Datum ändern",this.CambioPrenotazione="Reservierungen verwalten",this.CambioPosto="Sitzplatz ändern",this.CarrelloPieno="Der warenkorb ist voll",this.Annullamento="Bestätigen Sie den Vorgang",this.DettagliTitolo="Re
1isedetails",this.Biglietto="Fahrkarte",this.DataEmissione="Kaufdatum",this.Importo="betrag",this.DataDiScadenza="Ablaufdatum ",this.Pagato="Bezahlt",this.NonPagato="Nicht bezahlt",this.Annullato="Storniert",this.Esci="Logout",this.TicketParts="Ticket parts",this.TicketList="Fahrkartenliste",this.CambioCorsaEffettuato="Änderung der Fahrstrecke erfolgreich abgeschlossen!",this.StampaBiglietti="Fahrkarten ausdrucken",this.Tratta="Strecke",this.Passeggeri="Passagiere",this.ScegliPosto="Sitzplatz wählen",this.PreferenzePerIlPosto="Vorlieben für den Ort?",this.ModificaPosti="Sitze tauschen",this.SoluzioneNonAcquistabile="Diese ausgewählte Reise kann nicht erworben werden",this.PostoNumero="Sitzplatz Nr. ",this.Vettore="Operated by: ",this.AnteprimaCostoOperazione="Vorschau der Stornierung",this.NuovoBiglietto="Neue Fahrkarte",this.TitoloAnnullato="REISE STORNIERT!",this.Tessera="Karte",this.Biglietti="Fahrkarten",this.StaiPerAnnullare="Sie sind dabei zu stornieren",this.IssueEmail="E-Mail-Adresse",this.IssuePhone="Telefonnummer",this.PrenotazioneSisal="Mooney Buchung",this.InvoiceTitle="Rechnung",this.PrivacyAndTermConditions="Transportbedingungen und Datenschutz",this.NotePasseggero="Anmerkungen ",this.Nome="Name ",this.Tel="Tel. ",this.Riepilogo="Zusammenfassung ",this.ViaggioAndata="Hinfahrt",this.ViaggioRitorno="Rückfahrt",this.TipologiaDiViaggio="Reisetypologie",this.CorsaSemplice="Einfache Fahrt",this.AndataeRitorno="Gesamtvorgang",this.TotaleOperazione="schon bezahlter Gesamtbetrag ",this.TotalePagato="Änderungszuschlag ",this.Penale="Supplemento cambio ",this.TotaleDaRicevere="Zu erhaltener Gesamtbetrag ",this.TotaleDaPagare="Zu bezahlender Gesamtbetrag ",this.TotaleRimborso="Gesamte Rückerstattung",this.Effettua="durchführen ",this.CambioCorsa_LCase="Strecke ändern",this.Email="E-Mail ",this.TitoliAnnullatiImporto="Fahrkarten, mit folgendem Betrag storniert ",this.TitoliEmessiImporto="Ausgestellte Fahrkarten, mit einem Betrag von ",this.TotaleDaRestituire="Gesamtbetrag, der dem Benutzer zurückgegeben werden muss ",this.TotaleDaIncassare="Zu erhaltener Gesamtbetrag ",this.Chiudi="schließen",this.ImportoPenale="Änderungszuschlag ",this.Annulla="löschen",this.Conferma="bestätigen",this.Iban="Iban",this.IntestatarioConto="Account owner",this.SpecificaEmail="Andere E-Mail oder Telefonnummer:",this.Login="Zugreifen",this.LogOff="Trennen",this.Register="Sich registrieren",this.Errore_PrenotazioneScaduta="Buchung abgelaufen",this.Errore_ritenta="Ein Fehler ist aufgetreten, erneut probieren",this.Errore_postiOccupati="Ausgewählte Sitzplätze besetzt",this.Errore_corsaPiena="Reise ausgebucht",this.Errore_corsaPartita="Reise bereits abgelaufen!",this.Errore_nonVendibile="Nicht verkaufbar",this.Errore_inserisciPasseggeri="ACHTUNG Fügen sie zuerst die Passagiere ein",this.Errore_postiSelezionati="ACHTUNG Sie haben einen Sitzplatz für alle Passagiere ausgewählt",this.Errore_selezionaMetodoPagamento="Achtung, um weiterzufahren ist es notwendig die Zahlmodalität auszuwählen",this.NoRimborso="ACHTUNG: Mit dem Fortfahren der Operation wird das Ticket storniert, aber es wird keine Rückerstattung gewährt!",this.VuoiAnnullareTitolo="Wollen Sie wirklich die Fahrt stornieren ",this.AnnullamentoEffettuato="Stornierung abgeschlossen",this.Rimborso="Erstattung",this.RimborsoEffettuato="Erstattung abgeschlossen",this.Errore_annullamento="Ein Fehler ist aufgetreten.",this.Errore_ricerca="Ein Fehler ist bei der Suche aufgetreten. Versuchen Sie es erneut mit einem kürzeren Zeitraum.",this.Errore_DataNonRientraAbbonamento="ACHTUNG die ausgewählte Lösung ist nicht mit dem Abo gültig.",this.Errore_NonAutorizzato="Nicht autorisierter Benutzer",this.Errore_DatiBonifico="Bankkontodaten prüfen",this.SelezionaModalitaRimborso="Wählen Sie die Modalität für die Rückzahlung aus",this.Errore_TermsAndConditions="Bitte akzeptieren Sie die Allgemeinen Geschäftsbedingungen",this.TermsAndConditionsForPaymentMethods="Bitte akzeptieren Sie die Allgemeinen Geschäftsbedingungen, um mit der Zahlung fortzufahren",this.MarketingFlags="Select if agree or not",this.Errore_TermsAndConditions_Fidelity="Bitte akzeptieren Sie die Bedingungen des Treueprogramms",this.Data="Datum",this.Departure="Abfa
1hrt",this.DepartureDate="Datum der Abfahrt",this.NotInValiditySubscription="gültig von",this.ExipiredSubscription="abgelaufen",this.ValidSubscription="Inkrafttreten",this.CercaPerDataPartenza="Search for departure date",this.Obbligatorio="erforderlich",this.EmailObbligatoria="E-Mail ungültig",this.TelefonoObbligatorio="Telefon nicht gültig",this.PasseggeriNonValidi="vollständige Passagierdaten",this.VeicoliNonValidi="Fill vehicles data",this.PaymentMethodRequired="Wählen Sie eine Zahlungsmethode aus",this.BillingAddressRequired="Kreditkartenabrechnungsdaten erforderlich",this.InvoiceDataRequired="Rechnungsdaten erforderlich",this.MostraAnnullatiScaduti="Show abgesagt",this.Adeguamento="Preisanpassung",this.Servizi="Servizi",this.Loading="Loading",this.Indietro="Zurück",this.ScaricaPdf="PDF Herunterladen",this.TrattaEseguitaDa="Reise ausgeführt von",this.SelectSeatTitle="Wählen Sie für jeden Teil der Reise Ihren Lieblingsplatz in unseren Fahrzeugen",this.SelectSeatDisclaimer="Kurz vor der Abfahrt kann sich der tatsächlich zugewiesene Platz für die Reise ändern",this.ProssimiViaggi="Nächste Reisen",this.ViaggiPrecedenti="Frühere Reisen",this.Filtra="Suche",this.NessunViaggioPianificato="Keine Reisen geplant",this.NonCiSonoViaggiFuturi="Sie haben keine zukünftigen Reisen gebucht. Sie können den Verlauf der bereits gefahrenen Tickets einsehen oder andere kaufen",this.NonCiSonoViaggiPassati="Es liegen keine bereits zurückgelegten Reisen vor",this.PrenotaIlTuoViaggio="Réservez votre prochain voyage",this.Prenota="Reise",this.InvoiceRequestDisclaimer="ACHTUNG: Nur in dieser Phase können Sie eine Rechnung anfordern; danach ist es nicht mehr möglich",this.InvoiceRequestDisclaimerMarinoBus="Per soggetti tenuti all’applicazione dello Split Payment (Art. 17-ter DPR 633/72) come la Pubblica Amministrazione, l'acquisto dei biglietti e la relativa richiesta di fattura è disponibile solo chiamando al seguente numero:0803112335",this.VeicoliSelezionati="Ausgewählte Fahrzeuge",this.AltriVeicoliAccessori="Anderes Fahrzeug oder Zubehör",this.PayByLink="Bezahlen Sie Ihre Tickets",this.PayByLinkReservation="Bezahlen Sie Strecke ändern",this.PayByLinkExpired="Der Zahlungslink ist abgelaufen",this.RefundByLinkExpired="Der Rückerstattungslink ist abgelaufen",this.Trip="Fahrtreise",this.Origine="Origin",this.Mezzo="Vehicle",this.Ritardo="Delay",this.CorsaAnnullata="TRIP CANCELED",this.ProssimePartenze="Next departures:",this.NessunArrivo="No arrivals available",this.NessunArrivoExtended="No trips available for selected arrival",this.Arrival="Arrival",this.NessunaPartenza="No departures available",this.NessunaPartenzaExtended="No trips available for selected departure",this.MyRental="Mein Vermietungen",this.RentalRequest="Mietanfrage",this.RentalRequestSent="Mietanfrage gesendet!",this.RentalRequestSentDescription="Danke! Ihre Mietanfrage wurde erfolgreich gesendet. Wir werden Sie so schnell wie möglich kontaktieren, um die Details zu bestätigen.",this.BusPreference="Busvorliebe?",this.NoBusSelected="Kein Bus ausgewählt",this.FidelityMarinobus="Ich erkläre, Kenntnis genommen zu haben vom",this.FidelityMarinobus2="Reglement des MarinoBus-Treueprogramms"}};Ea.id="EndUser1";let Ra=class{constructor(){this.WaitForRedirectToPayment="Attendez... vous allez être redirigé vers le site de paiement",this.WaitForInternalPayment="Attendez... Achat en cours",this.Wait="Pleasewait...",this.Customers="User area",this.CustomersLink="https://www.marinobus.it/en/users-area/",this.Agencies="Agency area",this.AgenciesAreaLink="https://www.marinobus.it/en/agency-area/",this.Contacts="Contacts",this.ContactsLink="https://www.marinobus.it/en/contacts/",this.Rental="Rental",this.RentalLink="https://www.marinobus.it/en/agency-area/bus-rental/",this.Company="Company",this.CompanyLink="https://www.marinobus.it/en/marino-company/",this.Promotions="Offers",this.PromotionsLink="https://www.marinobus.it/en/offers-and-promo/",this.DestinationAndStops="Destinations & bus stops",this.DestinationAndStopsLink="https://www.marinobus.it/en/destination-bus-stop/",this.DisposizioniGovernative="vérifiez les décisions du gouvernement pour lutter contre le Coronavirus:",this.PrimaDiPartire="Avant de partir",this.Italia="italie",this.Svizzera="suisse",this.Germania="allemagne",this.GreenPass="I accomplish GREEN PASS travel rules",this.GreenPassRules="GREEN PASS rules",this.MaggioriInfo="More infos",this.UserArea="Espace réservé",this.MyTickets="Mes billets",this.MyCoupons="Mon coupon",this.NoCoupons="Aucun coupon disponible",this.MyFidelity="Mes fidélités",this.NoFidelity="Aucune carte de fidélité disponible",this.FidelityActive="Active",this.FidelityExpired="Expirée",this.FidelityActiveLabel="Actives",this.FidelityExpiredLabel="Expirées",this.FidelityAvailableDiscount="Réduction fidélité disponible",this.FidelityPointsNeeded="Il en manque encore",this.FidelityPointsCount="points pour la prochaine réduction",this.FidelityPoints="Points:",this.MyWallet="Mon porte-monnaie",this.Book="Réserver",this.NewSearch="Nouvelle recherche",this.IssueSubscription="Create subscription",this.AgenciesList="Agencies list",this.FindAgencies="Find agencies in your city:",this.PrivacySettings="Paramètres de confidentialité",this.Codice="Code",this.EmessoIl="Émis le",this.Passeggero="Passager",this.Viaggio="Voyage",this.Prezzo="Prix",this.MetodoPagamento="Mode de paiement",this.DataDiEmissioe="Date d’achat",this.Eta="âge ",this.FareCategory="Tarif ",this.Note="notes ",this.Operazioni="Réimpression",this.Ristampa="Ristampa",this.CambioCorsa="Changer date",this.CambioData="Changer date",this.CambioPrenotazione="Changer réservations",this.CambioPosto="Changer place",this.CarrelloPieno="le panier est plein",this.Annullamento="Annuler",this.ConfermaOperazione="Confirmer l'opération",this.DettagliTitolo="Détails du document",this.Biglietto="Billet",this.DataEmissione="Date d’achat",this.Importo="Montant",this.DataDiScadenza="Date d’expiration ",this.Pagato="Payé",this.NonPagato="Non payé",this.Annullato="Annulé",this.Esci="Quitter",this.TicketParts="Ticket parts",this.TicketList="Liste billets",this.CambioCorsaEffettuato="Changement de voyage effectué avec succès!",this.StampaBiglietti="Impression billet",this.Tratta="Trajet",this.Passegger
1i="Passagers",this.ScegliPosto="Choisissez votre place",this.PreferenzePerIlPosto="Préférences pour le lieu?",this.ModificaPosti="Changer de siège",this.SoluzioneNonAcquistabile="La solution de voyage sélectionnée ne peut pas être achetée",this.PostoNumero="Place n° ",this.Vettore="Operated by: ",this.AnteprimaCostoOperazione="Aperçu de l’annulation",this.NuovoBiglietto="Nouveau billet",this.TitoloAnnullato="DOCUMENT ANNULÉ!",this.Tessera="Carte",this.Biglietti="billets",this.StaiPerAnnullare="Vous êtes sur le point d'annuler",this.IssueEmail="Adresse e-mail",this.IssuePhone="Numéro de téléphone",this.PrenotazioneSisal="Réservation Mooney",this.InvoiceTitle="Facture",this.PrivacyAndTermConditions="Conditions de transport et confidentialité",this.NotePasseggero="Notes ",this.Nome="Nom ",this.Tel="Tél. ",this.Riepilogo="Résumé ",this.ViaggioAndata="Voyage aller",this.ViaggioRitorno="Voyage retour",this.TipologiaDiViaggio="Type de voyage",this.CorsaSemplice="Aller simple",this.AndataeRitorno="Aller-Retour",this.TotaleOperazione="Total opération ",this.TotalePagato="Total déjà payé ",this.Penale="Supplément changement ",this.TotaleDaRicevere="Total à recevoir ",this.TotaleDaPagare="Total à payer ",this.TotaleRimborso="Remboursement total",this.Effettua="Effectuer ",this.CambioCorsa_LCase="changement voyage",this.Email="Email ",this.TitoliAnnullatiImporto="Documents annulés pour un montant de ",this.TitoliEmessiImporto="Documents émis pour un montant de ",this.TotaleDaRestituire="Total à rembourser à l’utilisateur ",this.TotaleDaIncassare="Total à encaisser ",this.Chiudi="Fermer",this.ImportoPenale="Supplément changement ",this.Annulla="Annuler",this.Conferma="Confirmer",this.Iban="Iban",this.IntestatarioConto="Account owner",this.SpecificaEmail="Spécifier e-mail ou téléphone différents:",this.Login="Accedi",this.LogOff="Esci",this.Register="Registrati",this.Errore_PrenotazioneScaduta="Réservation expirée",this.Errore_ritenta="Une erreur est survenue, S’il vous plaît essayer à nouveau",this.Errore_postiOccupati="Places sélectionnées occupées",this.Errore_corsaPiena="Bus plein",this.Errore_corsaPartita="Bus déjà parti!",this.Errore_nonVendibile="Invendable",this.Errore_inserisciPasseggeri="ATTENTION saisissez d’abord les passagers",this.Errore_postiSelezionati="ATTENTION vous avez sélectionné la place pour tous les passagers",this.Errore_selezionaMetodoPagamento="Attention, pour continuer vous devez sélectionner un mode de paiement",this.NoRimborso="ATTENTION : En procédant à l'opération, le billet sera annulé mais aucun remboursement ne sera effectué !",this.VuoiAnnullareTitolo="Voulez-vous vraiment annuler le document numéro ",this.AnnullamentoEffettuato="Annulement effectué",this.Rimborso="Remboursement",this.RimborsoEffettuato="Remboursement effectué",this.Errore_annullamento="Une erreur est survenue.",this.Errore_ricerca="Une erreur est survenue pendant la recherche. S’il vous plaît essayez à nouveau en sélectionnant une période plus courte.",this.Errore_DataNonRientraAbbonamento="ATTENTION la solution sélectionnée n’entre pas dans la validité de l’abonnement.",this.Errore_NonAutorizzato="Utilisateur non autorisé",this.Errore_DatiBonifico="Vérifier les données du compte bancaire!",this.SelezionaModalitaRimborso="Sélectionnez le mode de remboursement",this.Errore_TermsAndConditions="Veuillez accepter les termes et conditions",this.TermsAndConditionsForPaymentMethods="Veuillez accepter les termes et conditions pour procéder au paiement",this.MarketingFlags="Select if agree or not",this.Errore_TermsAndConditions_Fidelity="Veuillez accepter le règlement du programme de fidélité",this.Data="Date",this.Departure="départ",this.DepartureDate="Date de départ",this.NotInValiditySubscription="Valable du",this.ExipiredSubscription="Expiré",this.ValidSubscription="En vigueur",this.CercaPerDataPartenza="Recherche pour departure date",this.Obbligatorio="required",this.EmailObbligatoria="e-mail non valide",this.TelefonoObbligatorio="téléphone non valide",this.Passegger
1iNonValidi="complétez les données des passagers",this.VeicoliNonValidi="complétez les données des véhicule",this.PaymentMethodRequired="Choisissez une méthode de paiement",this.BillingAddressRequired="Données de facturation de carte de crédit requises",this.InvoiceDataRequired="données de facturation requises",this.MostraAnnullatiScaduti="Spectacle annulé",this.Adeguamento="Ajustement de prix",this.Servizi="Servizi",this.Loading="Loading",this.Indietro="Retour",this.ScaricaPdf="Télécharger le PDF",this.TrattaEseguitaDa="Voyage effectué par",this.SelectSeatTitle="Choisissez votre siège préféré sur nos véhicules pour chaque partie du voyage",this.SelectSeatDisclaimer="A l'approche du départ, la place effectivement attribuée pour le voyage pourrait changer.",this.ProssimiViaggi="Prochains voyages",this.ViaggiPrecedenti="Voyages précédents",this.Filtra="Chercher",this.NessunViaggioPianificato="Aucun déplacement prévu",this.NonCiSonoViaggiFuturi="Vous n'avez pas de futurs voyages réservés. Vous pouvez consulter l'historique des billets déjà parcourus ou en acheter d'autres",this.NonCiSonoViaggiPassati="Il n'y a pas de voyages déjà effectués",this.PrenotaIlTuoViaggio="Réservez votre prochain voyage",this.Prenota="Réserver",this.InvoiceRequestDisclaimer="ATTENTION : Vous ne pouvez demander une facture que dans cette phase ; après ce ne sera plus possible",this.InvoiceRequestDisclaimerMarinoBus="Per soggetti tenuti all’applicazione dello Split Payment (Art. 17-ter DPR 633/72) come la Pubblica Amministrazione, l'acquisto dei biglietti e la relativa richiesta di fattura è disponibile solo chiamando al seguente numero:0803112335",this.VeicoliSelezionati="Véhicules sélectionnés",this.AltriVeicoliAccessori="Autre véhicule ou accessoires",this.PayByLink="Payer vos billets",this.PayByLinkReservation="Payer votre changement",this.PayByLinkExpired="Le lien de paiement a expiré",this.RefundByLinkExpired="Le lien de remboursement a expiré",this.Trip="Trajet de voyage",this.Origine="Origin",this.Mezzo="Vehicle",this.Ritardo="Delay",this.CorsaAnnullata="TRIP CANCELED",this.ProssimePartenze="Next departures:",this.NessunArrivo="No arrivals available",this.NessunArrivoExtended="No trips available for selected arrival",this.Arrival="Arrival",this.NessunaPartenza="No departures available",this.NessunaPartenzaExtended="No trips available for selected departure",this.MyRental="Mes Locations",this.RentalRequest="Demande de location",this.RentalRequestSent="Demande de location envoyée !",this.RentalRequestSentDescription="Merci ! Votre demande de location a été envoyée avec succès. Nous vous contacterons dès que possible pour confirmer les détails.",this.BusPreference="Préférence de bus ?",this.NoBusSelected="Aucun bus sélectionné",this.FidelityMarinobus="Je déclare avoir pris connaissance du",this.FidelityMarinobus2="Règlement du Programme de Fidélité MarinoBus"}};Ra.id="EndUser1";class Da{constructor(){this.WaitForRedirectToPayment="Wait... you are being redirected to payment gateway",this.WaitForInternalPayment="Wait... issuing your tickets",this.Wait="Please wait...",this.Customers="User area",this.CustomersLink="https://www.marinobus.it/en/users-area/",this.Agencies="Agency area",this.AgenciesAreaLink="https://www.marinobus.it/en/agency-area/",this.Contacts="Contacts",this.ContactsLink="https://www.marinobus.it/en/contacts/",this.Rental="Rental",this.RentalLink="https://www.marinobus.it/en/agency-area/bus-rental/",this.Company="Company",this.CompanyLink="https://www.marinobus.it/en/marino-company/",this.Promotions="Offers",this.PromotionsLink="https://www.marinobus.it/en/offers-and-promo/",this.DestinationAndStops="Destinations & bus stops",this.DestinationAndStopsLink="https://www.marinobus.it/en/destination-bus-stop/",this.DisposizioniGovernative="check for government decision to combat the Coronavirus:",this.PrimaDiPartire="Before leaving",this.Italia="italy",this.Svizzera="switzerland",this.Germania="germany",this.GreenPass="I accomplish GREEN PASS travel rules",this.GreenPassRules="GREEN PASS rules",this.MaggioriInfo="More infos",this.MyTickets="My tickets",this.MyCoupons="My coupons",this.NoCoupons="No coupons available",this.MyFidelity="Mis tarjetas de fidelidad",this.NoFidelity="No se dispone de ninguna tarjeta de fidelidad",this.FidelityActive="Activa",this.FidelityExpired="Caducada",this.FidelityActiveLabel="Activas",this.FidelityExpiredLabel="Caducadas",this.FidelityAvailableDiscount="Descuento de fidelidad disponible",this.FidelityPointsNeeded="Aún faltan",this.FidelityPointsCount="puntos para el próximo descuento",this.FidelityPoints="Puntos:",this.UserArea="Área reservada",this.MyWallet="Mi cartera",this.Book="Reservar",this.NewSearch="Nueva búsqueda",this.AgenciesList="Lista de agencias",this.FindAgencies="Encuentra agencias en tu ciudad:",this.PrivacySettings="Configuración de privacidad",this.Codice="Code",this.EmessoIl="Issued on",this.Passeggero="Passenger",this.Viaggio="Itinerary",this.Prezzo="Price",this.MetodoPagamento="Payment type",this.DataDiEmissioe="Issue date",this.DataDiScadenza="Expiration date ",this.Eta="Age ",this.FareCategory="Fare ",this.Note="notes ",this.Operazioni="Operations",this.Ristampa="Reprint",this.CambioData="Change trip",this.CambioCorsa="Change trip",this.CambioPrenotazione="Change reservations",this.CambioPosto="Change seat",this.CarrelloPieno="The shopping cart is full",this.Annullamento="Cancelation",this.DettagliTitolo="Ticket details",this.Biglietto="Ticket",this.DataEmissione="Issue date",this.Importo="Amou
1nt",this.Pagato="Payed",this.NonPagato="Not Payed",this.Annullato="Canceled",this.Esci="Exit",this.TicketParts="Ticket parts",this.TicketList="Ticket List",this.CambioCorsaEffettuato="Trip chaged succesfully!",this.StampaBiglietti="Print tickets",this.Tratta="Route",this.Passeggeri="Passengers",this.ScegliPosto="Elige el lugar",this.PreferenzePerIlPosto="Preferences for the place?",this.ModificaPosti="Change seats",this.SoluzioneNonAcquistabile="Itinerary is not available",this.PostoNumero="Seat n. ",this.Vettore="Operated by: ",this.AnteprimaCostoOperazione="Cancelation preview",this.NuovoBiglietto="New ticket",this.TitoloAnnullato="CANCELLED TICKET!",this.Tessera="Card",this.Biglietti="billetes",this.StaiPerAnnullare="Estás a punto de cancelar",this.IssueEmail="Email",this.IssuePhone="Contact Number",this.PrenotazioneSisal="Mooney reservation",this.InvoiceTitle="Factura",this.PrivacyAndTermConditions="Condiciones de transporte y privacidad",this.NotePasseggero="Notes ",this.Nome="Name ",this.Tel="Phone no. ",this.IssueSubscription="Create subscription",this.Riepilogo="Summary ",this.ViaggioAndata="Outbound trip",this.ViaggioRitorno="Return trip",this.TipologiaDiViaggio="Type",this.CorsaSemplice="One way",this.AndataeRitorno="return",this.TotaleOperazione="Total amount ",this.TotalePagato="Already payed amount ",this.Penale="Change recharge",this.TotaleDaRicevere="Amount to receive ",this.TotaleDaPagare="Amount to pay ",this.TotaleRimborso="Reembolso total",this.Effettua="Do ",this.ImportoPenale="Change recharge ",this.Annulla="Cancel",this.Conferma="Confirm",this.Iban="Iban",this.IntestatarioConto="Account holder",this.SpecificaEmail="Specify other email or phone:",this.CambioCorsa_LCase="trip change",this.Email="Email ",this.TitoliAnnullatiImporto="Canceled tickets' amount ",this.TitoliEmessiImporto="Issued tickets' amount ",this.TotaleDaRestituire="Return to passenger amount ",this.TotaleDaIncassare="Amount to receive ",this.Chiudi="Close",this.Login="Iniciar sesión",this.LogOff="Cerrar sesión",this.Register="Registrarse",this.Errore_PrenotazioneScaduta="Reserva caducada",this.Errore_ritenta="Lo sentimos, ha habido un problema, por favor inténtalo de nuevo",this.Errore_postiOccupati="Asientos ocupados",this.Errore_corsaPiena="Viaje completo",this.Errore_corsaPartita="¡Viaje ya salido!",this.Errore_nonVendibile="No disponible",this.Errore_inserisciPasseggeri="¡ATENCIÓN! Completa los datos del pasajero",this.Errore_postiSelezionati="¡ATENCIÓN! Ya has seleccionado el asiento para todos los pasajeros",this.Errore_selezionaMetodoPagamento="Atención, debes seleccionar un método de pago para continuar",this.NoRimborso="¡ATENCIÓN! Si continúas, el billete será cancelado pero no se emitirá ningún reembolso.",this.VuoiAnnullareTitolo="¿Seguro que quieres cancelar el billete n. ",this.AnnullamentoEffettuato="Cancelación realizada con éxito",this.Rimborso="Reembolso",this.RimborsoEffettuato="Reembolso completado",this.Errore_annullamento="Lo sentimos, ha ocurrido un error.",this.Errore_ricerca="Lo sentimos, ha habido un problema en esta operación. Por favor, selecciona un periodo más corto.",this.Errore_DataNonRientraAbbonamento="Lo sentimos, la solución seleccionada no es válida para el abono.",this.Errore_NonAutorizzato="Usuario no autorizado",this.Errore_DatiBonifico="¡Verifica los datos de la transferencia bancaria!",this.SelezionaModalitaRimborso="Selecciona el modo de reembolso",this.Errore_TermsAndConditions="Por favor, acepta los términos y condiciones",this.TermsAndConditionsForPaymentMethods="Por favor, acepta los términos y condiciones para continuar con el pago",this.MarketingFlags="Selecciona si estás de acuerdo o no",this.Errore_TermsAndConditions_Fidelity="Por favor, acepta el reglamento del programa de fidelidad",this.Data="Fecha",this.Departure="Salida",this.DepartureDate="Fecha",this.NotInValiditySubscription="Válido desde",this.ExipiredSubscription="Caducado",this.ValidSubscription="Válido",this.CercaPerDataPartenza="Buscar por fecha de salida",this.Obbligatorio="Obligatorio",this.EmailObbligatoria="Correo electrónico no válido",this.TelefonoObbligatorio="Número de teléfono no válido",this.Passegger
1iNonValidi="Completa los datos de los pasajeros",this.VeicoliNonValidi="Completa los datos de los vehículos",this.PaymentMethodRequired="Método de pago requerido",this.BillingAddressRequired="Dirección de facturación requerida",this.InvoiceDataRequired="Datos de factura requeridos",this.MostraAnnullatiScaduti="Mostrar cancelados",this.Adeguamento="Ajuste de precio",this.Servizi="Servicios",this.Loading="Cargando",this.Indietro="Atrás",this.ScaricaPdf="Descargar PDF",this.TrattaEseguitaDa="Trayecto realizado por",this.SelectSeatTitle="Elige tu asiento favorito en nuestros vehículos para cada parte del viaje",this.SelectSeatDisclaimer="Cerca de la salida, el asiento efectivamente asignado para el viaje podría cambiar",this.ProssimiViaggi="Próximos viajes",this.ViaggiPrecedenti="Viajes anteriores",this.Filtra="Buscar",this.NessunViaggioPianificato="No hay viajes planificados",this.NonCiSonoViaggiFuturi="No tienes viajes futuros reservados. Puedes consultar el historial de billetes ya viajados o comprar otros",this.NonCiSonoViaggiPassati="No hay viajes realizados anteriormente",this.PrenotaIlTuoViaggio="Reserva tu próximo viaje",this.Prenota="Reservar",this.InvoiceRequestDisclaimer="¡ATENCIÓN! Puedes solicitar la factura solo en esta fase; después ya no será posible",this.InvoiceRequestDisclaimerMarinoBus="Para sujetos obligados a la aplicación del Split Payment (Art. 17-ter DPR 633/72) como la Administración Pública, la compra de billetes y la solicitud de factura solo está disponible llamando al siguiente número:0803112335",this.VeicoliSelezionati="Vehículos seleccionados",this.AltriVeicoliAccessori="Otros vehículos",this.PayByLink="Paga tus billetes",this.PayByLinkReservation="Paga tu cambio",this.PayByLinkExpired="El enlace de pago ha expirado",this.RefundByLinkExpired="El link de reembolso ha expirado",this.Trip="Viaje",this.Origine="Origin",this.Mezzo="Vehicle",this.Ritardo="Delay",this.CorsaAnnullata="TRIP CANCELED",this.ProssimePartenze="Next departures:",this.NessunArrivo="No arrivals available",this.NessunArrivoExtended="No trips available for selected arrival",this.Arrival="Arrival",this.NessunaPartenza="No departures available",this.NessunaPartenzaExtended="No trips available for selected departure",this.MyRental="Mis alquileres",this.RentalRequest="Solicitud de alquiler",this.RentalRequestSent="¡Solicitud de alquiler enviada!",this.RentalRequestSentDescription="¡Gracias! Tu solicitud de alquiler ha sido enviada correctamente. Nos pondremos en contacto contigo lo antes posible para confirmar los detalles.",this.BusPreference="¿Preferencia de autobús?",this.NoBusSelected="Ningún autobús seleccionado",this.FidelityMarinobus="Declaro haber leído el",this.FidelityMarinobus2="Reglamento del Programa de Fidelidad MarinoBus"}}Da.id="EndUser1";const Vc=s=>{$(s,"it",as),$(s,"en",Zs),$(s,"fr",Qs),$(s,"de",Ys),$(s,"es",Js),$(s,"it",Xs),$(s,"en",mr),$(s,"fr",mr),$(s,"de",mr),$(s,"es",ea),$(s,"en",ta),$(s,"en",vr),$(s,"en",oa),$(s,"en",ha),$(s,"it",Ct),$(s,"it",aa),$(s,"it",la),$(s,"it",pa),$(s,"de",ia),$(s,"de",vr),$(s,"de",ca),$(s,"de",ga),$(s,"fr",ra),$(s,"fr",vr),$(s,"fr",da),$(s,"fr",ma),$(s,"es",sa),$(s,"es",na),$(s,"es",ua),$(s,"es",va),$(s,"it",ya),$(s,"en",fa),$(s,"fr",ba),$(s,"de",Sa),$(s,"es",Pa),$(s,"it",Ca),$(s,"en",Aa),$(s,"fr",Ra),$(s,"de",Ea),$(s,"es",Da)};class nn extends w{registerAgency(e){return c.post(l.serverUrl+"auth/registerAgency",e)}moveOperatorToBroker(e){return c.get(l.serverUrl+`auth/toBroker?operatorId=${e??""}`)}confirmUser(e,t,i,a,r){return c.get(l.serverUrl+`auth/ConfirmUser?userId=${e??""}&activationToken=${t??""}&errorPage=${i??""}&loginPage=${a??""}&nov=${r??""}`).catch(this.asServerError)}confirmAgency(e,t,i,a){return c.get(l.serverUrl+`auth/ConfirmAgency?userId=${e??""}&activationToken=${t??""}&errorPage=${i??""}&loginPage=${a??""}`).catch(this.asServerError)}confirmLastContract(e,t){return c.post(l.serverUrl+`auth/acceptLastContract?securityStamp=${t??""}`,e).catch(this.asServerError)}deleteAccount(){return c.delete(l.serverUrl+"auth").catch(this.asServerError)}checkFirstUfLoginCampaign(e){return c.post(l.serverUrl+"auth/checkFirstUfLoginCampaign",e).catch(this.asServerError)}}
1class ns extends w{get(){return c.get(l.serverUrl+"auth").catch(this.asServerError)}logOff(){return c.post(l.serverUrl+"auth/logOff").catch(this.asServerError)}setVersion(){return c.post(l.serverUrl+"auth").catch(this.asServerError)}resendConfirmationEmail(e){return c.post(l.serverUrl+"auth/ResendConfirmationEmail",e)}loginMobile(e){return c.post(l.serverUrl+"auth/mobile/login",e).catch(this.asServerError)}login(e){return c.post(l.serverUrl+"auth/login",e).catch(this.asServerError)}userLogin(e){return c.post(l.serverUrl+"auth/userlogin",e).catch(this.asServerError)}phoneNumberUserLogin(e){return c.post(l.serverUrl+"auth/phoneNumberUserlogin",e).catch(this.asServerError)}googleSignIn(e){return c.post(l.serverUrl+"auth/google",e).catch(this.asServerError)}uploadAgencyDocument(e,t){const i=new FormData;return i.append("file",t),c.upload(l.serverUrl+`auth/upload/document?agencyId=${e??""}`,i).catch(this.asServerError)}getAccountDetail(){return c.get(l.serverUrl+"auth/detail").catch(this.asServerError)}sendChangeEmailLink(e){return c.post(l.serverUrl+"auth/SendChangeEmailLink",e).catch(this.asServerError)}changeEmail(e){return c.post(l.serverUrl+"auth/ChangeEmail",e).catch(this.asServerError)}updateAccount(e){return c.post(l.serverUrl+"auth/UpdateAccount",e).catch(this.asServerError)}registerMobile(e){return c.post(l.serverUrl+"auth/mobile/register",e)}register2(e){return c.post(l.serverUrl+"auth/register2",e)}resendSmsPin(e){return c.post(l.serverUrl+"auth/ResendSmsPin",e)}changePassword(e){return c.post(l.serverUrl+"auth/ChangePassword",e).catch(this.asServerError)}getAllowedCallingCodes(){return c.get(l.serverUrl+"auth/allowedCallingCodes").catch(this.asServerError)}confirmUserPhone(e,t,i){return c.get(l.serverUrl+`auth/ConfirmUserPhone/${e}/${i}?operatorId=${t??""}`)}changePhoneNumber(e){return c.post(l.serverUrl+"auth/ChangePhoneNumber",e).catch(this.asServerError)}forgotPassword(e){return c.post(l.serverUrl+"auth/ForgotPassword",e).catch(this.asServerError)}resetPassword(e){return c.post(l.serverUrl+"auth/ResetPassword",e)}setPushToken(e){return c.post(l.serverUrl+`auth/setPushToken/${e}`).catch(this.asServerError)}getUserForCompletion(e,t){return c.get(l.serverUrl+`auth/getUserForCompletion?token=${e??""}&userId=${t??""}`).catch(this.asServerError)}completeMissingData(e){return c.post(l.serverUrl+"auth/completeMissingData",e).catch(this.asServerError)}passwordIsValid(e){return c.post(l.serverUrl+"auth/PasswordIsValid",e).catch(this.asServerError)}getAgencyRegisterEmailContent(e){return c.get(l.serverUrl+`auth/agencyContract?c=${e??""}`).catch(this.asServerError)}getBrokerRegisterEmailContent(e){return c.get(l.serverUrl+`auth/brokerContract?c=${e??""}`).catch(this.asServerError)}mfaSetup(){return c.get(l.serverUrl+"auth/mfa/setup").catch(this.asServerError)}mfaEnable(e){return c.post(l.serverUrl+"auth/mfa/enable",e).catch(this.asServerError)}mfaDisable(e){return c.post(l.serverUrl+"auth/mfa/disable",e).catch(this.asServerError)}mfaRegenerateCodes(e){return c.post(l.serverUrl+"auth/mfa/recovery-codes/regenerate",e).catch(this.asServerError)}mfaVerify(e){return c.post(l.serverUrl+"auth/mfa/verify",e).catch(this.asServerError)}mfaVerifyRecovery(e){return c.post(l.serverUrl+"auth/mfa/verify-recovery",e).catch(this.asServerError)}mfaSelectOperator(e){return c.post(l.serverUrl+"auth/mfa/select-operator",e).catch(this.asServerError)}loginWithPasskey(e){return c.post(l.serverUrl+"auth/passkey/login",e).catch(this.asServerError)}passkeySelectOperator(e){return c.post(l.serverUrl+"auth/passkey/select-operator",e).catch(this.asServerError)}removePasskey(e){return c.post(l.serverUrl+"auth/passkey/remove",e).catch(this.asServerError)}renamePasskey(e){return c.post(l.serverUrl+"auth/passkey/rename",e).catch(this.asServerError)}getPasskeyAssertionOptions(){return c.get(l.serverUrl+"auth/passkey/assertion-options").catch(this.asServerError)}getPasskeyCreationOptions(){return c.get(l.serverUrl+"auth/passkey/creation-options").catch(this.asServerError)}confirmPasskey(e){return c.post(l.serverUrl+"auth/passkey/confirm",e).catch(this.asServerError)}getPasskeys(){return c.get(l.serverUrl+"auth/passkey/list").catch(this.asServerError)}mobileLoginWithPasskey(e){return c.post(l.serverUrl+"auth/mobile/passkey/login",e).catch(this.asServerError)}mobilePasskeySelectOperator(e){return c.post(l.serverUrl+"auth/mobile/passkey/select-operator",e).catch(this.asServerError)}mobileRemovePasskey(e){return c.post(l.serverUrl+"auth/mobile/passkey/remove",e).catch(this.asServerError)}mobileRenamePasskey(e){return c.post(l.serverUrl+"auth/mobile/passkey/rename",e).catch(this.asServerError)}mobileGetPasskeyAssertionOptions(){return c.get(l.serverUrl+"auth/mobile/passkey/assertion-options").catch(this.asServerError)}mobileGetPasskeyCreationOptions(){return c.get(l.serverUrl+"auth/mobile/passkey/creation-options").catch(this.asServerError)}mobileConfirmPasskey(e){return c.post(l.serverUrl+"auth/mobile/passkey/confirm",e).catch(this.asServerError)}mobileGetPasskeys(){return c.get(l.serverUrl+"auth/mobile/passkey/list").catch(this.asServerError)}}class on extends w{all(){return c.get(l.serverUrl+"agencyContracts").catch(this.asServerError)}allCurrentTenant(){return c.get(l.serverUrl+"agencyContracts/forCurrentTenant").catch(this.asServerError)}getLasts(e){return c.get(l.serverUrl+`agencyContracts/${e}`).catch(this.asServerError)}save(e){return c.post(l.serverUrl+"agencyContracts/",e).catch(this.asServerError)}delete(e,t,i){return c.delete(l.serverUrl+`agencyContracts/${e}/${t}/${i}`).catch(this.asServerError)}}var Zi=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Be=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Li=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class Ye{getAllCurrentTenant(){return Li(this,void 0,void 0,function*(){return yield Ye.service.all()})}getAll(){return Li(this,void 0,void 0,function*(){return yield Ye.service.allCurrentTenant()})}save(e){return Li(this,void 0,void 0,function*(){return yield Ye.service.save(e)})}delete(e,t,i){return Li(this,void 0,void 0,function*(){let a=new Date(i).toJSON();return yield Ye.service.delete(e,t,a),{agencyCategory:e,hl:t,date:i}})}getLastsContracts(e){return Li(this,void 0,void 0,function*(){return yield Ye.service.getLasts(e)})}}Ye.service=new on;Zi([h,Be("design:type",Function),Be("design:paramtypes",[]),Be("design:returntype",Promise)],Ye.prototype,"getAllCurrentTenant",null);Zi([h,Be("design:type",Function),Be("design:paramtypes",[]),Be("design:returntype",Promise)],Ye.prototype,"getAll",null);Zi([h,Be("design:type",Function),Be("design:paramtypes",[Object]),Be("design:returntype",Promise)],Ye.prototype,"save",null);Zi([h,Be("design:type",Function),Be("design:paramtypes",[String,String,Date]),Be("design:returntype",Promise)],Ye.prototype,"delete",null);Zi([h,Be("design:type",Function),Be("design:paramtypes",[String]),Be("design:returntype",Promise)],Ye.prototype,"getLastsContracts",null);const ln=new Ye;var ie=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},R=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},gi=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})},Fr=new nn,re=new ns;class ee{loginWithoutRecaptcha(e){return re.login(e)}login(e){return re.userLogin(e)}logOff(){return re.logOff()}getAccountInfo(){return re.get()}updateLastVersion(){return gi(this,void 0,void 0,function*(){yield re.setVersion()})}confirmPhone(e,t,i){return gi(this,void 0,void 0,function*(){return yield re.confirmUserPhone(e,t,i),yield re.get()})}register(e,t){return e.h=Ka(e.password+e.name+"AlB4Tr055"),e.recaptchaResponse=t,re.register2(e)}registerAgency(e,t){return gi(this,void 0,void 0,function*(){const i=yield Fr.registerAgency(e);try{if(t!=null&&t.length>0)for(let a=0;a<t.length;a++)yield re.uploadAgencyDocument(i,t[a])}catch(a){throw a}})}updateAccount(e){return gi(this,void 0,void 0,function*(){return yield re.updateAccount(e),yield re.get()})}resendSmsCode(e){return re.resendSmsPin(e)}resetPassword(e){return re.resetPassword(e)}changePassword(e){return re.changePassword(e)}changePhoneNumber(e){return re.changePhoneNumber(e)}resendConfirmationEmail(e){return re.resendConfirmationEmail(e)}changeEmail(e){return re.changeEmail(e)}sendChangeEmailLink(e){return re.sendChangeEmailLink(e)}completeMissingData(e){return re.completeMissingData(e)}setPushToken(e){return re.setPushToken(e)}deleteAccount(){return Fr.deleteAccount()}confirmLastContract(e,t){return Fr.confirmLastContract(e,t)}getLastsContracts(e){return gi(this,void 0,void 0,function*(){return yield ln.getLastsContracts(e)})}getUserForCompletion(e,t){return gi(this,void 0,void 0,function*(){return yield re.getUserForCompletion(e,t)})}loginWithPasskeyAndOperator(e){return re.passkeySelectOperator(e)}mfaVerify(e,t,i,a){return re.mfaVerify({userId:e,mfaToken:t,totpCode:a,operatorId:i||void 0})}mfaVerifyRecovery(e,t,i,a){return re.mfaVerifyRecovery({userId:e,mfaToken:t,operatorId:i||void 0,recoveryCode:a})}mfaRegenerateCodes(e){return re.mfaRegenerateCodes(e)}}ie([h,R("design:type",Function),R("design:paramtypes",[Object]),R("design:returntype",void 0)],ee.prototype,"loginWithoutRecaptcha",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object]),R("design:returntype",void 0)],ee.prototype,"login",null);ie([h,R("design:type",Function),R("design:paramtypes",[]),R("design:returntype",void 0)],ee.prototype,"logOff",null);ie([h,R("design:type",Function),R("design:paramtypes",[]),R("design:returntype",void 0)],ee.prototype,"getAccountInfo",null);ie([h,R("design:type",Function),R("design:paramtypes",[]),R("design:returntype",Promise)],ee.prototype,"updateLastVersion",null);ie([h,R("design:type",Function),R("design:paramtypes",[String,String,Number]),R("design:returntype",Promise)],ee.prototype,"confirmPhone",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object,String]),R("design:returntype",void 0)],ee.prototype,"register",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object,Array]),R("design:returntype",Promise)],ee.prototype,"registerAgency",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object]),R("design:returntype",Promise)],ee.prototype,"updateAccount",null);ie([h,R("design:type",Function),R("design:paramtypes",[String]),R("design:returntype",void 0)],ee.prototype,"resendSmsCode",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object]),R("design:returntype",void 0)],ee.prototype,"resetPassword",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object]),R("design:returntype",void 0)],ee.prototype,"changePassword",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object]),R("design:returntype",void 0)],ee.prototype,"changePhoneNumber",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object]),R("design:returntype",void 0)],ee.prototype,"resendConfirmationEmail",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object]),R("design:returntype",void 0)],ee.prototype,"changeEmail",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object]),R("design:returntype",void 0)],ee.prototype,"sendChangeEmailLink",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object]),R("design:returntype",void 0)],ee.prototype,"completeMissingData",null);ie([h,R("design:type",Function),R("design:paramtypes",[String]),R("design:returntype",void 0)],ee.prototype,"setPushToken",null);ie([h,R("design:type",Function),R("design:paramtypes",[]),R("design:returntype",void 0)],ee.prototype,"deleteAccount",null);ie([h,R("design:type",Function),R("design:paramtypes",[String,String]),R("design:returntype",void 0)],ee.prototype,"confirmLastContract",null);ie([h,R("design:type",Function),R("design:paramtypes",[String]),R("design:returntype",Promise)],ee.prototype,"getLastsContracts",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object,Object]),R("design:returntype",Promise)],ee.prototype,"getUserForCompletion",null);ie([h,R("design:type",Function),R("design:paramtypes",[Object]),R("design:returntype",void 0)],ee.prototype,"loginWithPasskeyAndOperator",null);ie([h,R("design:type",Function),R("design:paramtypes",[String,String,Object,String]),R("design:returntype",void 0)],ee.prototype,"mfaVerify",null);ie([h,R("design:type",Function),R("design:paramtypes",[String,String,Object,String]),R("design:returntype",void 0)],ee.prototype,"mfaVerifyRecovery",null);ie([h,R("design:type",Function),R("design:paramtypes",[String]),R("design:returntype",void 0)],ee.prototype,"mfaRegenerateCodes",null);const he=new ee;class cn extends is{constructor(){super(),this._loginStatus=null,this.useRoles=()=>{const[e,t]=Le.useState(this.getRoles());return this.useStore(()=>{let i=this.getRoles();t(i)}),Le.useEffect(()=>{this.isInitialized()||he.getAccountInfo()},[]),e},this.useEnabledCarriers=()=>{const[e,t]=Le.useState(this.getCarries());return this.useStore(()=>{let i=this.getCarries();t(i)}),Le.useEffect(()=>{this.isInitialized()||he.getAccountInfo()},[]),e},this.useLogin=()=>{const[e,t]=Le.useState(this.get());return this.useStore(()=>{let i=this.get();t(i)}),e},z.onfunction(he.login,e=>this.set(e)).onfunction(he.loginWithoutRecaptcha,e=>this.set(e)).onfunction(he.logOff,e=>this.set(e)).onfunction(he.getAccountInfo,e=>this.set(e)).onfunction(he.confirmPhone,e=>this.set(e)).onfunction(he.updateAccount,e=>this.set(e)).onfunction(he.mfaVerify,e=>this.set(e)).onfunction(he.mfaVerifyRecovery,e=>this.set(e)).onfunction(he.loginWithPasskeyAndOperator,e=>this.set(e))}get(){return this._loginStatus}getUser(){return this._loginStatus&&this._loginStatus.data||null}getRoles(){return this._loginStatus&&this._loginStatus.roles||[]}getCarries(){return this._loginStatus&&this._loginStatus.carriers||[]}isInitialized(){return this._loginStatus!=null}set(e){this._loginStatus=e,this.Changed.emit()}}const me=new cn;class bt{constructor(e){this.surname="",this.name="",this.notes="",this.fareCategoryId=void 0,this.nominal=!1,this.excludedCategoriesIds=[],this.hasDisabilities=!1,this.specialAssistanceIds=void 0,e&&Za(this,e)}static fromAccount(e){var t=new bt;return t.surname=e.surname,t.name=e.name,t}}bt.FromPassengerReservations=s=>s.map(e=>{const t=e.passenger;return{surname:t.surname,name:t.name,notes:t.notes,fareCategoryId:t.fareCategoryId,nominal:!1,excludedCategoriesIds:[],hasDisabilities:t.hasDisabilities,personId:t.personId,extraData:t.extraData,specialAssistanceIds:t.specialAssistanceIds}});bt.PassengerContactIsValid=(s,e,t,i)=>{if(i!==0){const a=!M.isNullOrWhiteSpace(e)&&!M.isNullOrWhiteSpace(s)&&e.length>=8&&e.length<20,r=!M.isNullOrWhiteSpace(t)&&M.isValidEmail(t);switch(i){case 1:return{ok:a||r,error:"Telefono o email passeggero obbligatorio"};case 2:return{ok:a,error:"Telefono passeggero obbligatorio"};case 3:return{ok:r,error:"Email passeggero obbligatoria"};case 4:return{ok:a&&r,error:"Telefono e email passeggero obbligatori"}}}return{ok:!0,error:""}};bt.PassengerContactIsValidTemp=(s,e,t,i,a)=>{var r=0;if(i==17&&(a=="sais"||a=="salemi"?r=4:r=1),r!==0){const n=!M.isNullOrWhiteSpace(e)&&!M.isNullOrWhiteSpace(s)&&e.length>=8&&e.length<20,o=!M.isNullOrWhiteSpace(t)&&M.isValidEmail(t);switch(r){case 1:return{ok:n||o,error:"Telefono o email passeggero obbligatorio"};case 4:return{ok:n&&o,e
1rror:"Telefono e email passeggero obbligatori"}}}return{ok:!0,error:""}};bt.MultiplePersonsUsed=s=>{var e=Pe(s.filter(a=>(a.personId||"").length>0),a=>a.personId),i=Object.keys(e).filter(a=>e[a].length>1);return i.length>0};class Cs{}class F{}F.PENALTIESFORMULAVARIABLES=["Value","ValueWithExtra"];F.LUGGAGESFORMULAVARIABLES=["TPr","TNum"];F.SUBSCRIPTIONSFORMULAVARIABLES=["Tpr"];F.SUBSCRIPTIONSSTATSFORMULAVARIABLES=["SubscriptionValue","Trips","Days"];F.TRAVELSOLUTIONMODIFIERSFORMULAVARIABLES=["GroupSize","BasePrice","IsRoundTripSale","TicketsCount"];F.FIDELITYMODIFIERSFORMULAVARIABLES=["Calc"];F.PERSONCODEREGEX="^(([0-9A-z]{4}-[0-9A-z]{4})|([0-9A-z]{4}-[0-9]{5})|([0-9]{4})|([0-9]{5}))$";F.FOLLOWLINEREGISTRATIONTYPE="FollowLineRegistrationType";F.UNKNOWNDEPOTID="234eec93-75ae-4549-be51-7cf5746ddaa6";F.STOPENTITYFOREXTRADATA="stop";F.AGENCYENTITYFOREXTRADATA="agency";F.EMPLOYEEENTITYFOREXTRADATA="employee";F.SERVICEMONITORFOREXTRADATA="servicemonitorreport";F.TRAVELCONDITIONRULETICKETVARIABLE="Value";F.EXTRAPARAMBIRTHDATEKEY="DateOfBirth";F.DATEOFBIRTHKEY="DateOfBirth";F.DOCUMENTNUMBERKEY="DocumentNumber";F.DOCUMENTTYPEKEY="DocumentType";F.GENDERKEY="Gender";F.NATIONALITYKEY="Nationality";F.BIRTHCOUNTRYKEY="BirthCountry";F.RENTALSOLUTIONMODIFIERSFORMULAVARIABLES=["DriversCount","BasePrice","BussesCount","Km","RentalDays","SegmentsCount","NightTimeTravels"];F.EMAILPERSONVARIABLES=["{name} | nome proprietario tessera","{code} | codice tessera","{description} | descrizione categoria tessera","{reason} | motivo di rigetto richiesta (se disponibile)","{link} | link pdf nuova tessera(se disponibile)","{active} | attivata / disattivata (tradotto lato server) ","{block} | bloccata / sbloccata ( tradotto lato server) ","{type} | categoria tessera (se disponibile)"];F.EMAILPRODUCTVARIABLES=["{code} | Codice biglietto/abbonamento","{coupon} | messaggio coupon di resto(se disponibile) Tradotto automaticamente lato server","{date} | data di scadenza pagamento o scadenza dell'abbonamento","{details} | dettagli biglietti / abbonamento (se disponibili)","{link} | Link di Pagamento o link del PDF","{name} | nome passegero","{pnr} | pnr biglietto(se disponibile)","{service} | servizio mooney","{pay} | totale da pagare in caso di biglietto con Mooney o PayByLink","{ticket} | del/dei Biglietto/i / dell'/degli Abbonamento/i / della/delle Prenotazione/i / del/dei Bagaglio/i(Tradotto dal server)"];F.EMAILWALLETVARIABLES=["{amount}| totale ricaricato","{money}| Nuovo totale","{date}| data transazione","{pay}| totale precedente","{name}| Email / nome account"];F.EMAILREGISTRATIONVARIABLES=["{brandname} | nome tenant corrente","{businessname} | Ragione sociale","{password} | nuova password","{link} | link di registrazione / recupero password","{name} | nome utente / nome operatore / email"];F.EMAILUSERVARIABLES=["{brandname} | tenant","{businessname} | nome agenzia","{date} | data di attivazione","{type} | Società / ditta individuale ","{link} | link di registrazione","{name} | nome proprietario tessera","{code} | Codice tessera","{specialcategory} | categoria tessera"];F.EMAILCHANGEDATEVARIABLES=["{date} | data partenza biglietto","{brandname} | tenant","{link} | link pdf","{pnr} | pnr biglietto","{code} | codice biglietto"];F.EMAILCANCELVARIABLES=["{details} | dettagli annullamento","{coupon} | messaggio di rimborso coupon","{name} | nome passegero","{code} | codici biglietti","{ticket} | del/dei Biglietto/i / dell'/degli Abbonamento/i / della/delle Prenotazione/i / del/dei Bagaglio/i(Tradotto dal server)","{date} | scadenza coupon(se disponibile)","{amount} | totale rimborsato","{iban} | iban del conto corrente(in caso di rimboso con bonifico)","{owner} | intestatario del conto corrente(in caso di rimboso con bonifico)","{link} | link di rimborso(in caso di RefundByLink)"];F.RENTALSCOMMUNICATIONSPLACEHOLDER=["[name]","[email]","[price]","[expiration]","[paths]","[phone]","[passengers]","[arrivaldate]","[days]","[departuredate]","[km]","[description]","[shortdescription]","[title]"];F.RENTALSPREVENTIVEPLACEHOLDER=["[name]","[email]","[price]","[phone]","[arrivaldate]","[departuredate]","[description]","[shortdescription]","[title]"];F.TRAVELSOLUTIONMODIFIERSBASEPRICE="BasePrice";F.ALBATROSSVERSIONHEADER="Albatross-Version";F.DEFAULTFARECATEGORYDESCRIPTION="adulti";F.DEFAULTFARECATEGORYDESCRIPTIONEN="adults";F.DEFAULTFARECATEGORYDESCRIPTIONFR="adulte";F.DEFAULTFARECATEGORYDESCRIPTIONDE="erwachsener";F.DEFAULTFARECATEGORYDESCRIPTIONES="maduro";F.FINANCIALREASONCUSTCREDIT="cust-credit";F.FINANCIALREASONMOBYRIPR="moby-ripr";F.FINANCIALREASONNOSHOW="no-show";class Ta{}Ta.TICKETISSUED="ticketIssued";Ta.POSITIONUPDATE="PositionUpdate";let Ft=class{constructor(e,t){this.id="",this.description="",this.descriptionEn="",this.descriptionFr="",this.descriptionDe="",this.detailedDescription=void 0,this.detailedDescriptionEn=void 0,this.detailedDescriptionFr=void 0,this.detailedDescriptionDe=void 0,this.link=void 0,this.subtitle="",this.order=0,this.special=!1,this.nominal=!1,this.enabled=!0,this.enabledForSubscriptions=!0,this.validForTickets=!0,this.validForPersons=!1,this.validForSubscriptions=!1,this.privateForPersons=!1,this.occupation="1",this.requiresAttachment=!1,this.lineIds=[],this.agenciesIds=[],this.agencyCategoriesIds=[],this.operatorsI
1ds=[],this.frontendIcon="",this.imageUrl=void 0,this.tags=[],this.extraParams=[],this.hideFromStandardCategories=!1,this.parents=[],this.isShippedLuggage=!1,this.isTicketLuggage=!1,this.useParentVat=!1,this.salableOnBooking=!0,this.applyToAllGroup=!1,this.excludeFromTotalCounts=!1,this.linkableCategories=[],this.allowMultipleTicketsInSameTrip=!1,this.itemType=e,t&&(this.id=t.id,this.description=t.id,this.hideFromStandardCategories=t.hideFromStandardCategories,this.lineIds=t.lineIds,this.agenciesIds=t.agenciesIds,this.agencyCategoriesIds=t.agencyCategoriesIds,this.operatorsIds=t.operatorsIds,this.extraParams=t.extraParams,this.parents=t.parents)}static GetDescription(e,t=null){return t=="en"?e&&e.id?e.descriptionEn||e.description:F.DEFAULTFARECATEGORYDESCRIPTIONEN:t=="fr"?e&&e.id?e.descriptionFr||e.description:F.DEFAULTFARECATEGORYDESCRIPTIONFR:t=="de"?e&&e.id?e.descriptionDe||e.description:F.DEFAULTFARECATEGORYDESCRIPTIONDE:t=="es"?e&&e.id?e.descriptionEs||e.description:F.DEFAULTFARECATEGORYDESCRIPTIONES:e&&e.id?e.description:F.DEFAULTFARECATEGORYDESCRIPTION}static GetDetailedDescription(e,t=null){var i,a,r,n,o,p,u,d,m;return t=="en"?(a=(i=e==null?void 0:e.detailedDescriptionEn)!==null&&i!==void 0?i:e==null?void 0:e.detailedDescription)!==null&&a!==void 0?a:"":t=="fr"?(n=(r=e==null?void 0:e.detailedDescriptionFr)!==null&&r!==void 0?r:e==null?void 0:e.detailedDescription)!==null&&n!==void 0?n:"":t=="de"?(p=(o=e==null?void 0:e.detailedDescriptionDe)!==null&&o!==void 0?o:e==null?void 0:e.detailedDescription)!==null&&p!==void 0?p:"":t=="es"?(d=(u=e==null?void 0:e.detailedDescriptionEs)!==null&&u!==void 0?u:e==null?void 0:e.detailedDescription)!==null&&d!==void 0?d:"":(m=e==null?void 0:e.detailedDescription)!==null&&m!==void 0?m:""}static GetPersonPrivacyFlagLabel(e,t=null){return t=="en"?e&&e.personPrivacyFlag?e.personPrivacyFlag.labelEn||e.personPrivacyFlag.label:"":t=="fr"?e&&e.personPrivacyFlag?e.personPrivacyFlag.labelFr||e.personPrivacyFlag.label:"":t=="de"?e&&e.personPrivacyFlag?e.personPrivacyFlag.labelDe||e.personPrivacyFlag.label:"":t=="es"?e&&e.personPrivacyFlag?e.personPrivacyFlag.labelEs||e.personPrivacyFlag.label:"":e&&e.personPrivacyFlag?e.personPrivacyFlag.label:""}static GetPersonPrivacyFlagLink(e,t=null){return t=="en"?e&&e.personPrivacyFlag?e.personPrivacyFlag.linkEn||e.personPrivacyFlag.link:"":t=="fr"?e&&e.personPrivacyFlag?e.personPrivacyFlag.linkFr||e.personPrivacyFlag.link:"":t=="de"?e&&e.personPrivacyFlag?e.personPrivacyFlag.linkDe||e.personPrivacyFlag.link:"":t=="es"?e&&e.personPrivacyFlag?e.personPrivacyFlag.linkEs||e.personPrivacyFlag.link:"":e&&e.personPrivacyFlag?e.personPrivacyFlag.link:""}static GetLocalizedString(e,t=null){return e?t=="en"?e.En||e.It:t=="fr"?e.Fr||e.It:t=="de"?e.De||e.It:t=="es"&&e.Es||e.It:""}static GetDefaultFareCategory(){return{id:null,description:F.DEFAULTFARECATEGORYDESCRIPTION,descriptionEn:F.DEFAULTFARECATEGORYDESCRIPTIONEN,descriptionFr:F.DEFAULTFARECATEGORYDESCRIPTIONFR,descriptionDe:F.DEFAULTFARECATEGORYDESCRIPTIONDE,order:-1,special:!1,nominal:!1,enabled:!0,enabledForSubscriptions:!0,lines:[],expiration:void 0,link:void 0,subtitle:"",detailedDescription:void 0,detailedDescriptionEn:void 0,detailedDescriptionFr:void 0,detailedDescriptionDe:void 0,validForTickets:!0,validForPersons:!0,privateForPersons:!1,validForSubscriptions:!0,attachmentsNotes:"",requiresAttachment:!1,frontendIcon:"",imageUrl:void 0,extraParams:[],showWithStandardCategories:!1,tenants:[],parents:[],validity:void 0,defaultOccupation:1,maxOccupation:void 0,minOccupation:void 0,tags:[],type:0,applyToAllGroup:!1,searchGroup:void 0,statsGroup:void 0,personPrivacyFlag:void 0,autoActivatePersons:!1,requiresPhoto:!0,requiresBirthDate:!1,externalCode:void 0,linkableCategories:[],idDocumentRequired:!1,requiresFiscalCode:!1,arrivalStops:[],departureStops:[],allowOnThisStops:!1,requiredCargoTypes:[],descriptionEs:void 0,detailedDescriptionEs:void 0,value:void 0,bookingGroupDescription:void 0}}static GetDefaultFareCategoryEditor(){return{id:null,cargoType:[],description:F.DEFAULTFARECATEGORYDESCRIPTION,descriptionEn:F.DEFAULTFARECATEGORYDESCRIPTIONEN,descriptionFr:F.DEFAULTFARECATEGORYDESCRIPTIONFR,descriptionDe:F.DEFAULTFARECATEGORYDESCRIPTIONDE,order:-1,nominal:!1,link:void 0,subtitle:"",detailedDescription:void 0,detailedDescriptionEn:void 0,detailedDescriptionFr:void 0,detailedDescriptionDe:void 0,validForTickets:!0,validForSubscriptions:!0,validForPersons:!0,privateForPersons:!1,personValidity:void 0,occupation:"1",attachmentsNotes:"",requiresAttachment:!1,frontendIcon:"",imageUrl:void 0,agenciesIds:[],agencyCategoriesIds:[],lineIds:[],operatorsI
1ds:[],tags:[],extraParams:[],hideFromStandardCategories:!1,parents:[],validity:void 0,itemType:0,isShippedLuggage:!1,isTicketLuggage:!1,useParentVat:!1,salableOnBooking:!0,applyToAllGroup:!1,excludeFromTotalCounts:!1,searchGroup:void 0,statsGroup:void 0,personPrivacyFlag:void 0,autoActivatePersons:!1,requiresPhoto:!0,requiresBirthDate:!1,externalCode:void 0,linkableCategories:[],idDocumentRequired:!1,dismissed:!1,requiresFiscalCode:!1,arrivalStops:[],departureStops:[],allowOnThisStops:!1,descriptionEs:void 0,detailedDescriptionEs:void 0,value:void 0,bookingGroupDescription:void 0,allowMultipleTicketsInSameTrip:!1}}};Ft.GetTypeDescription=s=>{switch(s){case 0:return"Passeggeri";case 1:return"Bagagli & Accessori";case 2:return"Veicoli"}};class x{constructor(){this.id="",this.extraParams=[],this.rules=[]}static GetParamDescription(e,t=null){var i;return t=="en"?e?e.descriptionEn||e.description:"":t=="fr"?e?e.descriptionFr||e.description:"":t=="de"?e?e.descriptionDe||e.description:"":(i=e==null?void 0:e.description)!==null&&i!==void 0?i:""}static GetParamDetailedDescription(e,t=null,i=null){return t=="en"?e?(i==!0?e.detailedDescriptionEn2:e.detailedDescriptionEn)||(i==!0?e.detailedDescription2:e.detailedDescription):"":t=="fr"?e?(i==!0?e.detailedDescriptionFr2:e.detailedDescriptionFr)||(i==!0?e.detailedDescription2:e.detailedDescription):"":t=="de"?e?(i==!0?e.detailedDescriptionDe2:e.detailedDescriptionDe)||(i==!0?e.detailedDescription2:e.detailedDescription):"":e?i==!0?e.detailedDescription2:e.detailedDescription:""}static GetParamLink(e){return e?e.link:""}static getExtraDataTypeDescription(e){switch(e){case 0:return"stringa";case 1:return"scelta multipla";case 2:return"check";case 3:return"intero";case 4:return"decimale";case 5:return"data";default:return""}}static getExtraDataVisualizerDescription({type:e,visualizer:t}){switch(e){case 0:return"stringa";case 1:return"combobox";case 2:return t==3?"checkbox":"button";case 3:return"intero";case 4:return"decimale";case 5:return"data";default:return""}}}x.getStringValue=(s,e)=>{let t=null;switch(s.Data.type){case 0:return t=x.getTextValue(s.Data.key,e),t??"";case 2:return t=x.getBoolValue(s.Data.key,e),t?"SI":"NO";case 3:case 4:return t=x.getNumberValue(s.Data.key,e),t?M.toDecimalString(t):"";case 5:{const i=x.ParsePlainDate(e[s.Data.key]);return i?P.getReadableDateString(i):""}case 1:return t=x.getTextValue(s.Data.key,e),t??"";default:return""}};x.getTextValue=(s,e)=>{var t;return(t=e[s])!==null&&t!==void 0?t:void 0};x.isoDateRegex=/^(\d{4})-(\d{2})-(\d{2})(?:[T ]\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?(Z|[+-]\d{2}:?\d{2})?)?$/;x.defaultTimezone="Europe/Rome";x.ParsePlainDate=s=>{if(s==null)return;if(s instanceof Temporal.PlainDate)return s;if(s instanceof Date)return Number.isNaN(s.valueOf())?void 0:P.ToPlainDateInTimezone(s,x.defaultTimezone);const e=String(s).trim().replace(/^"+|"+$/g,"").trim();if(!e)return;const t=x.isoDateRegex.exec(e);if(t&&!t[4])return new Temporal.PlainDate(Number(t[1]),Number(t[2]),Number(t[3]));const i=new Date(e);if(!Number.isNaN(i.valueOf()))return t?P.ToPlainDateInTimezone(i,x.defaultTimezone):P.ToPlainDate(i)};x.parseDateValue=s=>{const e=x.ParsePlainDate(s);return e?P.PlainDateToDate(e):void 0};x.getNumberValue=(s,e)=>{const t=e[s];if(!t)return;const i=Number.parseFloat(t);if(!Number.isNaN(i))return i};x.getBoolValue=(s,e)=>{const t=e[s];return t==="true"||t==="1"};x.extraParamsErrors=(s,e,t,i,a)=>{var r,n;if(!e)return;let o;const p=(u,d)=>{o||(o={}),o[u]=d};for(const u of e){const d=s[u.key];if(!d){p(u.key,i(b=>b.ParameterNotFound));continue}const m=t==null?void 0:t[u.key];if(m==null||m==""){u.mandatory&&p(u.key,i(b=>b.InsertRequiredParameter));continue}if(d.type==3){const b=x.getMinInteger(u),D=x.getMaxInteger(u),T=parseInt(m);if(isNaN(T)){p(u.key,i(A=>A.InsertRequiredParameter));continue}if(b!=null&&T<b||D!=null&&T>D){p(u.key,i(A=>A.MustBeBetween(b,D)));continue}}else if(d.type==4){const b=x.getMinFloat(u),D=x.getMaxFloat(u),T=parseFloat(m);if(isNaN(T)){p(u.key,i(A=>A.InsertRequiredParameter));continue}if(b!=null&&T<b||D!=null&&T>D){p(u.key,i(A=>A.MustBeBetween(b,D)));continue}}else if(d.type==0){const b=x.getMinLengthString(u),D=x.getMaxLengthString(u),T=m;if(b!=null&&((r=T==null?void 0:T.length)!==null&&r!==void 0?r:0)<b){p(u.key,i(A=>A.AtLeast(b)));continue}if(D!=null&&((n=T==null?void 0:T.length)!==null&&n!==void 0?n:0)>D){p(u.key,i(A=>A.InsertRequiredParameter));continue}}else if(d.type==5&&a){const b=x.getDateRange(u,a);if(b){const D=x.parseDateValue(m);if(D&&!b.contains(D)){p(u.key,i(T=>T.InvalidDate));continue}}}}return o};x.generateDefault=s=>{const e={};for(const t of s)e[t.key]=t.type==2?"false":"";return e};x.getMinLengthString=s=>{const e=s;if(e.min==null)return null;const t=Math.ceil(e.min);return isNaN(t)?null:t};x.getMaxLengthString=s=>{const e=s;if(e.max==null)return null;const t=Math.ceil(e.max);return isNaN(t)?null:t};x.getMinInteger=s=>{const e=s;if(e.min==null)return null;const t=Math.ceil(e.min);return isNaN(t)?null:t};x.getMaxInteger=s=>{const e=s;if(e.max==null)return null;const t=Math.ceil(e.max);return isNaN(t)?null:t};x.getMinFloat=s=>{const e=s;if(e.min==null)return null;const t=e.min;return isNaN(t)?null:t};x.getMaxFloat=s=>{const e=s;if(e.max==null)return null;const t=e.max;return isNaN(t)?null:t};x.getDateRange=(s,e)=>{const t=s;if(t.min==null||t.max==null)return null;try{const i=e?P.ToDate(e):P.Today();return Re.Create(P.AddDays(P.AddYears(i,-t.max),1),P.AddYears(i,-t.min))}catch{return null}};var Qe;class Kt{static getAvailableSubluggages(e,t,i){return i.filter(a=>{if(a.type==0)return!1;const r=a.parents.find(o=>o.id==e.id);if(r==null)return!1;if(r.max==null)return!0;const n=t.filter(o=>o.category.id==r.id).length;return t.filter(o=>o.category.id==a.id).length<r.max*n})}static canAddDynamicLuggage(e,t,i){const a=t.parents.filter(p=>p.type===0),r=t.parents.filter(p=>p.type===1),n=e.find(p=>Qe.canAddDynamicLuggageInternal(a,r,p,e,t,i));return n??(a.find(p=>p.required)?{extra:{},subGroupId:Math.max(...e.map(p=>p.subGroupId)),category:t,cardId:null}:null)}static canAddDynamicLuggageSingle(e,t,i,a){const r=i.parents.filter(o=>o.type===0),n=i.parents.filter(o=>o.type===1);return Qe.canAddDynamicLuggageInternal(r,n,e,t,i,a)}static isVehicleNonDependantOnAnotherVehicle(e,t){const i=t.find(a=>a.id==e);return!i||i.type!=2?!1:i.parents.length==0||i.parents.every(a=>{var r;return((r=t.find(n=>n.id==a.id))===null||r===void 0?void 0:r.type)!=2})}static canAddDynamicLuggageInternal(e,t,i,a,r,n){const o=a.filter(u=>u.subGroupId==i.subGroupId&&u.category.type==0);if(e.length==0&&t.length==0)return r.type!=2?!0:a.filter(u=>Qe.isVehicleNonDependantOnAnotherVehicle(u.category.id,n)).length<o.length;const p=a.filter(u=>u.category.type!=0&&u.subGroupId==i.subGroupId);for(const u of e)if(i.category.id==u.id){if(r.type!=2){if(u.max==null||p.filter(d=>d.category.id==r.id).length<u.max*o.length)return!0}else if(p.filter(m=>Qe.isVehicleNonDependantOnAnotherVehicle(m.category.id,n)).length<o.length)return!0}for(const u of t){const d=p.filter(m=>m.category.id==u.id).length;if(d!=0&&(u.max==null||p.filter(m=>m.category.id==r.id).length<u.max*d))return!0}return!1}}Qe=Kt;Kt.onChange=(s,e,t,i,a,r,n,o)=>{var p,u,d,m,b,D,T,A,I;let C=[...t];const q=C.filter(L=>L.category.id==(s==null?void 0:s.id)&&(r==null||r==L.subGroupId));if(q.length<e)for(let L=q.length;L<e;L++){let G=C.length>0?Math.max(...C.map(Y=>Y.subGroupId))+1:0;const Ce=s.parents.filter(Y=>Y.required);if(Ce.length>0){const Y=Ce[0],V=i.find(H=>H.id==Y.id);C.push({category:V,extra:n??x.generateDefault((T=(p=V.extraParams)===null||p===void 0?void 0:p.map(H=>a[H.key]).filter(H=>H).map(H=>H))!==null&&T!==void 0?T:[]),subGroupId:V.type==0?G:(u=Qe.getElegibleParent(V,C)[0])===null||u===void 0?void 0:u.subGroupId,cardId:o??null}),G=C.length>0?Math.max(...C.map(H=>H.subGroupId))+1:0}r=r??(s.type==0?G:(d=Qe.getElegibleParent(s,C)[0])===null||d===void 0?void 0:d.subGroupId),C.push({category:s,extra:s!=null&&s.extraParams?n??x.generateDefault((A=(m=s.extraParams)===null||m===void 0?void 0:m.map(Y=>a[Y.key]).filter(Y=>Y).map(Y=>Y))!==null&&A!==void 0?A:[]):null,subGroupId:r,cardId:o??null}),G=C.length>0?Math.max(...C.map(Y=>Y.subGroupId))+1:0;var ce=i.filter(Y=>Y.parents.find(V=>V.id==(s==null?void 0:s.id)&&V.required));for(const Y of ce)C.push({category:Y,extra:n??x.generateDefault((I=(b=Y.extraParams)===null||b===void 0?void 0:b.map(V=>a[V.key]).filter(V=>V).map(V=>V))!==null&&I!==void 0?I:[]),subGroupId:Y.type==0?G:(D=Qe.getElegibleParent(Y,C)[0])===null||D===void 0?void 0:D.subGroupId,cardId:o??null}),G=C.length>0?Math.max(...C.map(V=>V.subGroupId))+1:0}else if(q.length>e){const L=q.slice(0,e),G=q.slice(e);let Ce=C.filter(V=>V.category.id!=(s==null?void 0:s.id)||r!=null&&r!=V.subGroupId);s.type==0&&(Ce=Ce.filter(V=>!G.some(H=>
1H.subGroupId==V.subGroupId))),C=[...Ce,...L];var ce=i.filter(V=>V.parents.find(H=>H.id==(s==null?void 0:s.id)));return ce.forEach(V=>{var H=C.filter(pi=>pi.category.id==V.id);if(H.length>0){const pi=Q(V.parents.map(ur=>{var kr,ja=C.filter(qa=>qa.category.id==ur.id).length;return((kr=ur.max)!==null&&kr!==void 0?kr:100)*ja}),ur=>ur);H.length>pi&&(C=Qe.onChange(V,pi,C,i,a,r,n))}else C=Qe.onChange(V,0,C,i,a,r,n)}),s.type==0?ae(Ne(Pe(C,V=>V.subGroupId),V=>V).map((V,H)=>V.map(pi=>Object.assign(Object.assign({},pi),{subGroupId:H})))):C}return C};Kt.onAdd=(s,e,t,i,a,r,n)=>{const o=e.filter(p=>p.category.id==s.id&&(a==null||a==p.subGroupId)).length+1;return Qe.onChange(s,o,e,t,i,a,r,n)};Kt.onRemove=(s,e,t,i)=>{const a=e.filter(r=>r.category.id==s.id&&(i==null||i==r.subGroupId)).length-1;return Qe.onChange(s,a,e,t,{},i)};Kt.getElegibleParent=(s,e)=>{const t=e.filter(o=>o.category.id==s.id),i=Pe(t,o=>o.subGroupId),a=Pe(e,o=>o.subGroupId),r=s.parents.length==0?e:e.filter(o=>s.parents.some(p=>p.id==o.category.id));return De(r,o=>{var p,u;return(u=(p=i[o.subGroupId])===null||p===void 0?void 0:p.length)!==null&&u!==void 0?u:0},o=>{var p,u;return(u=(p=a[o.subGroupId])===null||p===void 0?void 0:p.length)!==null&&u!==void 0?u:0}).filter(o=>s.parents.length==0?!0:s.parents.some(p=>{var u,d;return p.id==o.category.id&&(p.max==null||p.max>((d=(u=i[o.subGroupId])===null||u===void 0?void 0:u.length)!==null&&d!==void 0?d:0))}))};Kt.FareCategoryReservationValidator=(s,e,t)=>{let i=[];const a=e.findIndex(u=>(u==null?void 0:u.id)==(t==null?void 0:t.id)),r=[...e.slice(0,a),...e.slice(a+1)];s.forEach(u=>{if(u.parents==null||u.parents.length==0)i.push(u);else{const d=u.parents.filter(b=>r.find(D=>D.id==b.id)),m=r.filter(b=>d.find(D=>D.id==b.id)).length;if(m>0){const b=u.parents.some(T=>T.max&&T.max>0)?Q(d.map(T=>{var A;return(A=T.max)!==null&&A!==void 0?A:0}),T=>T)*m:Number.MAX_SAFE_INTEGER,D=r.filter(T=>T.id==u.id).length;b>D&&i.push(u)}}});const n=a!==-1?r:e,o=n.filter(u=>Qe.isVehicleNonDependantOnAnotherVehicle(u==null?void 0:u.id,s)).length,p=n.filter(u=>(u==null?void 0:u.type)===0).length;return o>=p&&(i=i.filter(u=>u.type!==2)),i};Kt.isStaticLuggage=s=>(s.parents==null||s.parents.length===0)&&(s.extraParams==null||Object.keys(s.extraParams).length===0||!s.extraParams.some(e=>e.mandatory));var Ia;class Nt{static getOccupation(e){const t=e.find(a=>a.category.description.toLowerCase().indexOf("bambini")>=0),i=e.filter(a=>a.category.type!=0).map(a=>a.category.id);return{adults:t?e.filter(a=>t.category.id!=a.category.id&&(a.category.id==null||i.indexOf(a.category.id)<0)).length:e.length,children:t?e.filter(a=>t.category.id==a.category.id).length:0}}static getCategories(e,t,i){var a,r,n;const o=[];for(let p=0;p<e.length;++p){const u=e[p],d=t.find(b=>b.id==u.fareCategoryId);o.push({category:d??Ft.GetDefaultFareCategory(),extra:(a=u.extraData)!==null&&a!==void 0?a:{},subGroupId:p,cardId:null});const m=i.filter(b=>b.subGroupId==p);for(let b=0;b<((r=m==null?void 0:m.length)!==null&&r!==void 0?r:0);++b){const D=m[b];o.push({category:D.category,extra:(n=D.extra)!==null&&n!==void 0?n:{},subGroupId:p,cardId:null})}}return o}static getSelectedQty(e,t){return t.filter(i=>i.category.id==e.id).length}static maxVehiclesForUmansReached(e,t){const i=e.filter(r=>r.category.type==0),a=e.filter(r=>r.category.type==2&&Kt.isVehicleNonDependantOnAnotherVehicle(r.category.id,t));return i.length<=a.length}static getMaxSelectableQuantity(e,t){let i;if(e.parents.length>0){var a=e.parents.filter(n=>t.some(o=>o.category.id==n.id)||n.required);if(a.length==0)return"parentsneeded";var r=t.filter(n=>a.find(o=>o.id==n.category.id)).length;a.every(n=>n.max)&&(i=Ya(a.map(n=>{var o;return(o=n.max)!==null&&o!==void 0?o:0}))*r)}return i}static ToRequest(e){return{fId:e.category.id,extra:e.extra,subGroupId:e.subGroupId}}static FromRequest(e,t){const i=t.find(r=>r.id==e.fId);if(!i)throw"Category not found on request to selectedfarecategory conversion";let a=e.extra;if(i.extraParams.some(r=>r.mandatory)&&Object.keys(a??{}).length==0)for(const r of i.extraParams.filter(n=>n.mandatory&&n.min))a[r.key]=r.min.toString();return{category:i,extra:a,subGroupId:e.subGroupId}}static ToPassengers(e,t){return e.filter(i=>i.category.type==0).map(i=>{var a;return Object.assign(Object.assign({},(a=t[i.subGroupId])!==null&&a!==void 0?a:new bt),{fareCategoryId:i.category.id,extraData:i.extra})})}static FromPassengers(e,t){const i=[Ft.GetDefaultFareCategory(),...t];return e.map((a,r)=>
1({category:i.find(n=>n.id==a.passenger.fareCategoryId),extra:a.passenger.extraData,subGroupId:a.subGroupId}))}}Ia=Nt;Nt.Default={subGroupId:0,extra:{},category:Ft.GetDefaultFareCategory()};Nt.DefaultSelection=()=>l.environmentName=="blunavy"||l.environmentName=="ichnusa"?[]:[Ia.Default];class Ae{constructor(e){this.storage=e,this.Changed=new Di,this.OnError=new js,this.passengers=Nt.ToPassengers(Nt.DefaultSelection(),[]),this.latestPassengers=null,this._loading=!1,this._linkedTickets=null,this._linkedTicket=null,this._luggageSelection=[],e.get()&&(this.passengers=this.getPassengers())}get loading(){return this._loading}set loading(e){this._loading!==e&&(this._loading=e,this.Changed.emit())}get linkedTickets(){return this._linkedTickets}set linkedTickets(e){this._linkedTickets!==e&&(this._linkedTickets=e,this.Changed.emit())}get linkedTicket(){return this._linkedTicket}set linkedTicket(e){this._linkedTicket!==e&&(this._linkedTicket=e,this.Changed.emit())}getLines(){const e=this.get();if(!e)return[];const t=e.passengerReservations[0];return Ii(ae(t.tickets.map(a=>a.segments)).map(a=>a.lineId)).filter(a=>a!=null).map(a=>a)}clear(){this.storage.set(null),this.passengers=Nt.ToPassengers(Nt.DefaultSelection(),[]),this.luggageSelection=[],this.loading=!1,this.Changed.emit()}get(){return this.storage.get()}applyReservationData(e){this.storage.set(e),this.Changed.emit()}applyPassengers(e){this.passengers=e,this.latestPassengers=e,this.Changed.emit()}get selectedSeats(){const e=this.get();return e?Ae.GetSelectedSeats(e):[]}static getSolutionId(e){const t=e.passengerReservations[0],i=t.tickets[0];if(!t||!i||i.segments.length==0)return;let a=i.segments[0],r=i.segments[i.segments.length-1];return`${a.departureId.substr(0,18)}-${r.arrivalId.substr(0,18)}`}static getReturnSolutionId(e){const t=e.passengerReservations[0],i=t.tickets[1];if(!t||!i)return;let a=i.segments[0],r=i.segments[i.segments.length-1];return`${a.departureId.substr(0,18)}_${r.arrivalId.substr(0,18)}`}getPassengers(){return Ae.Passengers(this.get())}static Passengers(e){return e&&e.passengerReservations.map(t=>new bt(t.passenger))||[new bt]}assignSeats(e,t){Ae.assignSeats(e,t)}static assignSeats(e,t){var i;for(const a of e)for(let r=0;r<t.passengerReservations.length;r++){const n=t.passengerReservations[r];for(let o=0;o<n.tickets.length;o++){const p=n.tickets[o];for(const u of p.segments)u.tripId===a.tripId&&(u.seatNumbers=(i=a.passengers.find(d=>d.passengerIndex==r&&d.ticketIndex==o))===null||i===void 0?void 0:i.seats)}}}static GetSelectedSeats(e){if(!e)return[];const t=ae(ae(e.passengerReservations.map((i,a)=>i.tickets.map((r,n)=>r.segments.filter(o=>o.seatChosen).map(o=>({segment:o,ticketIndex:n,passengerIndex:a}))))));return Ne(Pe(t,i=>i.segment.tripId),(i,a)=>({tripId:a,passengers:i.map(r=>({passengerIndex:r.passengerIndex,ticketIndex:r.ticketIndex,seats:r.segment.seatNumbers}))}))}static GetSelectedSeatsForTrip(e,t){var i,a;return(a=(i=this.GetSelectedSeats(e))===null||i===void 0?void 0:i.find(r=>r.tripId==t))!==null&&a!==void 0?a:null}getSelectedSeats(){const e=this.get();return e?Ae.GetSelectedSeats(e):[]}static Solutions(e){return e&&e.passengerReservations[0].tickets.map(t=>t.segments)||[]}getSolutions(){return Ae.Solutions(this.get())}price(){var e=this.storage.get();return e&&e.price||null}get luggageSelection(){return this._luggageSelection}set luggageSelection(e){kt(this._luggageSelection,e)||(this._luggageSelection=e,this.Changed.emit())}getPricedLuggages(e){const t=this.storage.get();return t?Ae.ToLuggageSelection(t,e):[]}getExtraFares(){const e=this.storage.get();return e?Ae.ExtraFares(e):[]}static SumExtraFares(e){return Ne(Pe(e,t=>t.key),(t,i)=>({key:i,price:Q(t,a=>a.price)}))}static ExtraFares(e){if(!e)return[];const t=ae(ae(ae(e.passengerReservations.map(a=>a.tickets)).map(a=>{var r;return(r=a.luggages)===null||r===void 0?void 0:r.map(n=>{var o;return(o=n.extraFares)!==null&&o!==void 0?o:[]})}).filter(a=>a))),i=ae(ae(ae(e.passengerReservations.map(a=>a.tickets)).map(a=>a.extraFaresForVisualization)));return Ae.SumExtraFares(i.concat(t))}getExtraParams(e){const t=this.storage.get();if(!t)return[];var i=t.passengerReservations.find(a=>a.passenger.fareCategoryId==e.fareCategoryId);return!i&&e.fareCategoryId==null&&(i=t.passengerReservations.find(a=>a.passenger.fareCategoryId==null)),Ws((i==null?void 0:i.extraParams)||[],a=>a.key)}getMaxDepartureDate(){const e=this.storage.get();return e?ss(ae(e.passengerReservations.map(t=>t.tickets)).map(t=>t.segments[0].departureTime)):null}getMinDepartureDate(){const e=this.storage.get();return e?Ki(ae(e.passengerReservations.map(t=>t.tickets)).map(t=>t.segments[0].departureTime)):null}getBillingOperator(){var e;const t=this.storage.get();return t&&(e=t.billingOperator)!==null&&e!==void 0?e:null}isShipment(){const e=this.storage.get();return e?e.isShipping:!1}static GetAmountToShow(e,t){var i;return e.changeDateDetail!=null?Ae.getChangeDateTotalPrice(e,t):Math.max(0,e.price-((i=e.reliefTotalAmount)!==null&&i!==void 0?i:0))}GetAmountToShow(e){const t=this.get();return t?Ae.GetAmountToShow(t,e):0}static getChangeDateTotalPrice(e,t){if(!e.changeDateDetail)return 0;const i=e.changeDateDetail.tobepayed+(t??e.changeDateDetail.calculatedPenalty)-e.changeDateDetail.calculatedPenalty;return Math.round(i*100)/100}}Ae.getCountDescription=s=>s<=1?null:s==2?"a/r":`(${s} tratte)`;Ae.getItemsDetails=s=>{const e=Ne(Pe(s.passengerReservations,n=>`${n.passenger.fareCategoryId}_${n.tickets.length}`),n=>({price:Q(n,o=>Q(o.tickets,p=>Q(p.segments,u=>u.basePrice))),count:n.length,category:n[0].passenger.fareCategoryId,tkts:n[0].tickets.length,faresInfo:n.flatMap(o=>o.tickets.map(p=>p.faresInfo))})),t=ae(s.passengerReservations.map(n=>ae(n.tickets.map(o=>{var p,u;return(u=(p=o.luggages)===null||p===void 0?void 0:p.map(d=>({tkts:n.tickets.length,luggage:d})))!==null&&u!==void 0?u:[]})))),i=Ne(Pe(t,n=>`${n.luggage.luggageId}_${n.tkts}`),n=>({price:Q(n,o=>{var p;return o.luggage.price-Q((p=o.luggage.extraFares)!==null&&p!==void 0?p:[],u=>u.price)}),count:n.length/n[0].tkts,category:n[0].luggage.luggageId,tkts:n[0].tkts,faresInfo:n.map(o=>o.luggage.faresInfo)})),a=ae(ae(s.passengerReservations.flatMap(n=>n.tickets.map(o=>{var p,u,d;return((u=o.extraFaresForVisualization)!==null&&u!==void 0?u:[]).concat((d=(p=o.luggages)===null||p===void 0?void 0:p.flatMap(m=>{var b;return(b=m.extraFares)!==null&&b!==void 0?b:[]}))!==null&&d!==void 0?d:[])})))),r=Ne(Pe(a,n=>n.key),n=>({price:Q(n,o=>o.price),count:n.length,category:n[0].key}));return{categories:e,items:i,extraFares:r}};Ae.ToLuggageSelection=(s,e)=>s?ae(s.passengerReservations.map((i,a)=>{var r,n,o;return(o=(n=(r=i.tickets[0])===null||r===void 0?void 0:r.luggages)===null||n===void 0?void 0:n.map((p,u)=>{var d;const m=i.tickets.map(b=>{var D;return(D=b.luggages)===null||D===void 0?void 0:D[u]});return{passenger:i.passenger,subGroupId:a,category:(d=e.find(b=>b.id==p.luggageId))!==null&&d!==void 0?d:Ft.GetDefaultFareCategory(),extra:p.extraData,price:Q(m,b=>{var D;return(D=b==null?void 0:b.price)!==null&&D!==void 0?D:0}),faresInfo:p.faresInfo,extraFares:p.extraFares,cardId:p.cardId}}))!==null&&o!==void 0?o:[]})):[];let Zr=null;const _c=s=>{Zr||(Zr=new Ae(s))},E=()=>Zr;class os extends w{getSubscriptionsDepartures(e){return c.get(l.serverUrl+`subscriptions/subscriptionsDepartures?saleGroupId=${e??""}`).catch(this.asServerError)}getSubscriptionsArrivals(e,t){return c.get(l.serverUrl+`subscriptions/subscriptionsArrivals?departureLocalityId=${e??""}&saleGroupId=${t??""}`).catch(this.asServerError)}getSubscriptionsPaths(e){return c.get(l.serverUrl+`subscriptions/paths/${e}`).catch(this.asServerError)}getSubscriptionTypes(e,t){return c.get(l.serverUrl+`subscriptions/types?departure=${e??""}&arrival=${t??""}`).catch(this.asServerError)}getSubscriptionPreviewWithChoicesForSearch(e,t,i){return c.get(l.serverUrl+`subscriptions/previews/search?departure=${e??""}&arrival=${t??""}&salesChannelDto=${i??""}`).catch(this.asServerError)}getSubscriptionPreviewsWithChoicesAsync(e,t,i,a,r){return c.get(l.serverUrl+`subscriptions/previews?departure=${e??""}&arrival=${t??""}&subscriptionTypes=${i??""}&salesChannel=${a??""}&personId=${r??""}`).catch(this.asServerError)}calculateInfos(e){return c.post(l.serverUrl+"subscriptions/price",e).catch(this.asServerError)}issue(e){return c.post(l.serverUrl+"subscriptions/",e).catch(this.asServerError)}issueAnonymous(e){return c.post(l.serverUrl+"subscriptions/anonymous",e).catch(this.asServerError)}issueMultiple(e){return c.post(l.serverUrl+"subscriptions/issueMultiple",e).catch(this.asServerError)}issueMultipleAnonymous(e){return c.post(l.serverUrl+"subscriptions/issueMultipleAnonymous",e).catch(this.asServerError)}activate(e){return c.post(l.serverUrl+"subscriptions/activate",e).catch(this.asServerError)}massiveFilter(e){return c.post(l.serverUrl+"subscriptions/massivefilter",e).catch(this.asServerError)}changeSubscriptionData(e){return c.post(l.serverUrl+"subscriptions/change",e).catch(this.asServerError)}active(){return c.get(l.serverUrl+"subscriptions/active").catch(this.asServerError)}
1enabled(){return c.get(l.serverUrl+"subscriptions/enabled").catch(this.asServerError)}get(e){return c.get(l.serverUrl+`subscriptions/${e}`).catch(this.asServerError)}getDetailed(e){return c.get(l.serverUrl+`subscriptions/detailed/${e}`).catch(this.asServerError)}getByPersonId(e){return c.get(l.serverUrl+`subscriptions/forPerson/${e}`).catch(this.asServerError)}getByGroupId(e){return c.get(l.serverUrl+`subscriptions/group/${e}`).catch(this.asServerError)}cancelPreview(e){return c.post(l.serverUrl+"subscriptions/cancelPreview",e).catch(this.asServerError)}cancel(e){return c.post(l.serverUrl+"subscriptions/cancel",e).catch(this.asServerError)}sendMessages(e){return c.post(l.serverUrl+"subscriptions/sendMessages",e).catch(this.asServerError)}wholeEventsUpdate(e){return c.get(l.serverUrl+`subscriptions/wholeeventsupdate/${e}`)}compensation(e){return c.get(l.serverUrl+`subscriptions/compensation/${e}`)}changePaymentMethod(e){return c.post(l.serverUrl+"subscriptions/changepaymentmethod",e)}addInvoiceData(e){return c.post(l.serverUrl+"subscriptions/addinvoicedata",e).catch(this.asServerError)}anonymousCanRequestInvoice(e){return c.post(l.serverUrl+"subscriptions/canRequestInvoice",e).catch(this.asServerError)}removeInvoiceData(e){return c.post(l.serverUrl+"subscriptions/removeinvoicedata",e).catch(this.asServerError)}cancelMultiple(e){return c.post(l.serverUrl+"subscriptions/cancelmultiple",e).catch(this.asServerError)}payToBePayed(e){return c.post(l.serverUrl+"subscriptions/payToBePayed",e).catch(this.asServerError)}payPaymentLink(e){return c.post(l.serverUrl+"subscriptions/payPaymentLink",e).catch(this.asServerError)}searchLight(e){return c.post(l.serverUrl+`subscriptions/lotconsole/search/${e}`).catch(this.asServerError)}payForLotConsole(e){return c.post(l.serverUrl+"subscriptions/lotconsole/pay",e).catch(this.asServerError)}getPrintInfoForLotConsole(e){return c.post(l.serverUrl+"subscriptions/lotconsole/print",e).catch(this.asServerError)}searchForMassiveRenew(e){return c.get(l.serverUrl+"subscriptions/searchformassiverenew?"+this.jsonToQueryString(e)).catch(this.asServerError)}syncTicketSearch(e){return c.get(l.serverUrl+`subscriptions/sync-tickets-search/${e}`)}recalculateUsages(e){return c.get(l.serverUrl+`subscriptions/recalc-usage/${e}`)}getBankTransfersToRefund(e){return c.get(l.serverUrl+`subscriptions/bankTransfersToRefund?ids=${e??""}`).catch(this.asServerError)}confirmPosRefund(e){return c.post(l.serverUrl+"subscriptions/confirmposrefund",e).catch(this.asServerError)}}var Ge=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},U=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},zr=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};let Fe=class ze{SUBSCRIPTION_DETAIL_REQUESTED(e){return ze.service.getDetailed(e)}SUBSCRIPTION_REQUESTED(e){return ze.service.get(e)}getByGroupId(e){return zr(this,void 0,void 0,function*(){var t=yield ze.service.getByGroupId(e);return{groupId:e,items:t}})}CHANGE_DATA(e){return ze.service.changeSubscriptionData(e)}SUBSCRIPTION_DELETED(e){return ze.service.cancel(e)}AddInvoiceData(e){return ze.service.addInvoiceData(e)}RemoveInvoiceData(e){return ze.service.removeInvoiceData(e)}sendMessages(e){return ze.service.sendMessages(e)}changePaymentMethod(e){return ze.service.changePaymentMethod(e).then(t=>t)}activate(e,t){return ze.service.activate({ids:e,startValidity:t})}payToBePayed(e){return ze.service.payToBePayed(e)}payPaymentLink(e){return ze.service.payPaymentLink(e)}CANCEL_MULTIPLE(e){return ze.service.cancelMultiple(e)}searchForMassiveRenew(e,t){return zr(this,void 0,void 0,function*(){var i=yield ze.service.searchForMassiveRenew({subscriptionTypes:e,expirationPeriod:t});return i})}getSubscriptionsPaths(e){return zr(this,void 0,void 0,function*(){var t=yield ze.service.getSubscriptionsPaths(e);return t})}};Fe.service=new os;Ge([h,U("design:type",Function),U("design:paramtypes",[String]),U("design:returntype",void 0)],Fe.prototype,"SUBSCRIPTION_DETAIL_REQUESTED",null);Ge([h,U("design:type",Function),U("design:paramtypes",[String]),U("design:returntype",void 0)],Fe.prototype,"SUBSCRIPTION_REQUESTED",null);Ge([h,U("design:type",Function),U("design:paramtypes",[String]),U("design:returntype",Promise)],Fe.prototype,"getByGroupId",null);Ge([h,U("design:type",Function),U("design:paramtypes",[Object]),U("design:returntype",void 0)],Fe.prototype,"CHANGE_DATA",null);Ge([h,U("design:type",Function),U("design:paramtypes",[Object]),U("design:returntype",void 0)],Fe.prototype,"SUBSCRIPTION_DELET
1ED",null);Ge([h,U("design:type",Function),U("design:paramtypes",[Object]),U("design:returntype",void 0)],Fe.prototype,"AddInvoiceData",null);Ge([h,U("design:type",Function),U("design:paramtypes",[String]),U("design:returntype",void 0)],Fe.prototype,"RemoveInvoiceData",null);Ge([h,U("design:type",Function),U("design:paramtypes",[Object]),U("design:returntype",void 0)],Fe.prototype,"sendMessages",null);Ge([h,U("design:type",Function),U("design:paramtypes",[Object]),U("design:returntype",void 0)],Fe.prototype,"changePaymentMethod",null);Ge([h,U("design:type",Function),U("design:paramtypes",[Array,Date]),U("design:returntype",void 0)],Fe.prototype,"activate",null);Ge([h,U("design:type",Function),U("design:paramtypes",[Object]),U("design:returntype",void 0)],Fe.prototype,"payToBePayed",null);Ge([h,U("design:type",Function),U("design:paramtypes",[Object]),U("design:returntype",void 0)],Fe.prototype,"payPaymentLink",null);Ge([h,U("design:type",Function),U("design:paramtypes",[Object]),U("design:returntype",void 0)],Fe.prototype,"CANCEL_MULTIPLE",null);Ge([h,U("design:type",Function),U("design:paramtypes",[Array,Object]),U("design:returntype",Promise)],Fe.prototype,"searchForMassiveRenew",null);Ge([h,U("design:type",Function),U("design:paramtypes",[String]),U("design:returntype",Promise)],Fe.prototype,"getSubscriptionsPaths",null);const dn=new Fe;class un extends Ti{constructor(){super(e=>e.id),z.onfunction(dn.SUBSCRIPTION_DETAIL_REQUESTED,e=>this.add(e))}}const Es=new un;class hn extends w{createOrUpdate2(e){return c.post(l.serverUrl+"subscriptionsReservations/createOrUpdate2",e).catch(this.asServerError)}selectSeat(e){return c.post(l.serverUrl+"subscriptionsReservations/seatsSelection",e).catch(this.asServerError)}setPassengers(e){return c.post(l.serverUrl+"subscriptionsReservations/pasengers",e).catch(this.asServerError)}selectPaymentMethod(e){return c.post(l.serverUrl+"subscriptionsReservations/paymentMethod",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`subscriptionsReservations?reservationId=${e??""}`).catch(this.asServerError)}issueReservation(e){return c.post(l.serverUrl+"subscriptionsReservations/issue",e)}}var wi=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Te=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class Me{Issue(e){return Me.service.issueReservation(e)}Reserve(e){return Me.service.createOrUpdate2(e)}Delete(e){return Me.service.delete(e)}SelectSeat(e,t){return Me.service.selectSeat({caller:Gt.environmentName,reservationId:e,seats:t})}SetPassengers(e,t){return Me.service.setPassengers({caller:Gt.environmentName,reservationId:e,passengers:t})}SelectPaymentMethod(e,t,i,a){return Me.service.selectPaymentMethod({caller:Gt.environmentName,reservationId:e,paymentMethod:t,paymentDataId:i,savePaymentData:a})}}Me.service=new hn;wi([h,Te("design:type",Function),Te("design:paramtypes",[Object]),Te("design:returntype",void 0)],Me.prototype,"Issue",null);wi([h,Te("design:type",Function),Te("design:paramtypes",[Object]),Te("design:returntype",void 0)],Me.prototype,"Reserve",null);wi([h,Te("design:type",Function),Te("design:paramtypes",[String]),Te("design:returntype",void 0)],Me.prototype,"Delete",null);wi([h,Te("design:type",Function),Te("design:paramtypes",[String,Array]),Te("design:returntype",void 0)],Me.prototype,"SelectSeat",null);wi([h,Te("design:type",Function),Te("design:paramtypes",[String,Array]),Te("design:returntype",void 0)],Me.prototype,"SetPassengers",null);wi([h,Te("design:type",Function),Te("design:paramtypes",[String,Number,String,Boolean]),Te("design:returntype",void 0)],Me.prototype,"SelectPaymentMethod",null);const fi=new Me;class pn{constructor(){this.Changed=new Di,this.OnError=new js,this.callBack=e=>{e.errorCode!=null?(this.OnError.emit({code:e.errorCode,validatedMessage:e.message}),this.reservation=null):e.data&&(this.reservation=e.data)},this.onChanged=()=>{this.Changed.emit()},this.subscriptionId=null,this._solutions=[],this._reservation=null,Es.Changed.register(this.onChanged),z.onfunction(fi.Reserve,this.callBack).onfunction(fi.SelectSeat,this.callBack).onfunction(fi.SelectPaymentMethod,this.callBack).onfunction(fi.Issue,()=>this.reservation=null).onfunction(fi.Delete,()=>this.reservation=null)}get subscription(){return this.subscriptionId&&Es.get(this.subscriptionId)||null}get solutions(){return this._solutions}set solutions(e){this._solutions!==e&&(this._solutions=e,this.onChanged())}get reservation(){return this._reservation}set reservation(e){this._reservation!==e&&(this._reservation=e,this.onChanged())}getSelectedSeatsForSolution(e){if(this._reservation==null)return[];const t=e.map(r=>r.trip.tripId).join(),a=this._reservation.passengerReservations[0].tickets.map((r,n)=>({ticket:r,tIx:n})).find(r=>r.ticket.segments[0].departureId==e[0].departureStopId&&r.ticket.segments[0].departureTime==e[0].departureDateTime&&r.ticket.segments[r.ticket.segments.length-1].arrivalId==e[e.length-1].arrivalStopId&&r.ticket.segments.map(n=>n.tripId).join()==t);return a==null?void 0:a.ticket.segments.filter(r=>r.seatChosen).map(r=>({tripId:r.tripId,passengers:[{passengerIndex:0,ticketIndex:a.tIx,seats:r.seatNumbers}]}))}}let gn=new pn;const jc=()=>gn;class g{}g.agencycanmanageoperatordebts={name:"AgencyCanManageOperatorDebts",description:"L'agenzia può gestire il debito di tutte le agenzie e operatori"};g.agencyposrefund={name:"AgencyPosRefund",description:"Può rimborsate con il POS dell'agenzia (Viene utilizzata la cassa dell'agenzia)"};g.alwaysviewpassengerstotals={name:"AlwaysViewPassengersTotals",description:"Visualizza sempre il totale passeggeri nelle soluzioni"};g.autocheckin={name:"AutoCheckin",description:"Può effettuare il checkin automaticamente in fase di emissione da Agenzia"};g.automaticlinkticket={name:"AutomaticLinkTicket",description:"Collega in automatico un biglietto ad un gruppo esistente (UF)"};g.busdocintegration={name:"BusDocIntegration",description:"Abilita integrazione BusDoc su Garage"};g.busstatus={name:"BusStatus",description:"Può gestire lo stato mezzi"};g.canactivateagencies={name:"CanActivateAgencies",description:"Può attivare, bloccare e sbloccare le agenzie"};g.canaddbuswashing={name:"CanAddBusWashing",description:"Può gestire i lavaggi"};g.canaddrechargeoperationsonwallet={name:"CanAddRechargeOperationsOnWallet",description:"Può inserire operazioni di ricarica manuale sul borsellino"};g.canaddrefundoperationsonwallet={name:"CanAddRefundOperationsOnWallet",description:"Può inserire operazioni di storno sul borsellino"};
1g.canassignvehicleontrip={name:"CanAssignVehicleOnTrip",description:"Permette l'assegnazione del mezzo alla corsa"};g.cancancelallsubscriptions={name:"CanCancelAllSubscriptions",description:"Annullamento abbonamenti emessi da qualsiasi agenzia"};g.cancancelallsubscriptionsreservations={name:"CanCancelAllSubscriptionsReservations",description:"Annullamento prenotazioni su abbonamento emessi da qualsiasi agenzia"};g.cancancelalltickets={name:"CanCancelAllTickets",description:"Annullamento biglietti emessi da qualsiasi agenzia"};g.cancancelcheckedintickets={name:"CanCancelCheckedInTickets",description:"Può annullare biglietti validati"};g.cancanceldepartedsubscriptionsreservations={name:"CanCancelDepartedSubscriptionsReservations",description:"Annullamento prenotazioni abbonamento dopo l'orario di partenza"};g.cancanceldepartedtickets={name:"CanCancelDepartedTickets",description:"Annullamento biglietti dopo l'orario di partenza"};g.cancancelreservations={name:"CanCancelReservations",description:"Può cancellare le reservation"};g.cancancelshippedluggages={name:"CanCancelShippedLuggages",description:"Può annullare i bagagli e servizi non accompagnati (spedizioni)"};g.cancancelsubscription={name:"CanCancelSubscription",description:"Annullamento abbonamenti dopo minuti annullamento"};g.cancancelsubscriptionsreservations={name:"CanCancelSubscriptionsReservations",description:"Annullamento prenotazioni abbonamento dopo minuti annullamento"};g.cancancelticketoperations={name:"CanCancelTicketOperations",description:"Può eliminare le operazioni sui biglietti"};g.cancanceltickets={name:"CanCancelTickets",description:"Annullamento biglietti dopo minuti annullamento"};g.cancancelwithspecifieddate={name:"CanCancelWithSpecifiedDate",description:"Può simulare la data di annullamento"};g.canchangebusmaponbustrip={name:"CanChangeBusMapOnBusTrip",description:"Permette l'assegnazione del modello del mezzo alla corsa"};g.canchangedateonalltickets={name:"CanChangeDateOnAllTickets",description:"Cambio corsa su biglietti emessi da qualsiasi agenzia"};g.canchangedateoncheckin={name:"CanChangeDateOnCheckIn",description:"Può effettuare cambi corsa (no tratta) contestualmente al checkin a bordo"};g.canchangedateondepartedtickets={name:"CanChangeDateOnDepartedTickets",description:"Cambio corsa sempre permesso dopo l'orario di partenza o su posti liberati (bypass Condizioni di viaggio)"};g.canchangedateonticketsdeparted={name:"CanChangeDateOnTicketsDeparted",description:"Cambio corsa su biglietti validati"};g.canchangefarecategoryontickets={name:"CanChangeFareCategoryOnTickets",description:"Può modificare la categoria tariffaria sui biglietti"};g.canchangeseat={name:"CanChangeSeat",description:"Cambio posto"};g.canchangesubscriptionstartvalidity={name:"CanChangeSubscriptionStartValidity",description:"Può selezionare la data di inizio validità abbonamento"};g.canchangetriponcheckin={name:"CanChangeTripOnCheckIn",description:"Può effettuare cambi tratta contestualmente al checkin a bordo"};g.canchangetriponsubscriptionsreservations={name:"CanChangeTripOnSubscriptionsReservations",description:"Può effettuare cambi tratta sulle prenotazioni su abbonamento"};g.cancheckin={name:"CanCheckin",description:"Può fare il checkin dei passeggeri"};g.canchoosepaymentexpiration={name:"CanChoosePaymentExpiration",description:"Può selezionare la scadenza delle prenotazioni a tempo"};g.canconfigrental={name:"CanConfigRental",description:"Può gestire la configurazione nel settore Noleggi"};g.canconfigurecommissions={name:"CanConfigureCommissions",description:"Può configurare le provvigioni per le agenzie"};g.canconfigurecontracts={name:"CanConfigureContracts",description:"Può modificare, eliminare o creare contratti per le agenzie"};g.canconfirmposrefund={name:"CanConfirmPosRefund",description:"Può marcare i rimborsi pos come effettuati"};g.cancreatebistripsonboard={name:"CanCreateBisTripsOnBoard",description:"Può creare corse BIS da AppOnBoard"};g.candeleteoperations={name:"CanDeleteOperations",description:"Può eliminare le operazioni su biglietti/abbonamenti/bagagli"};g.candirectissue={name:"CanDirectIssue",description:"Può emettere da app autisti"};g.candisablerelief={name:"CanDisableRelief",description:"Può disabilitare le agevolazioni in fase di acquisto"};g.candodisinfection={name:"CanDoDisinfection",description:"Può effettuare la sanificazione dei mezzi"};
1g.candopartialpayments={name:"CanDoPartialPayments",description:"Può pagare acconti"};g.candoticketoperationsonbehalfof={name:"CanDoTicketOperationsOnBehalfOf",description:"Può effettuare operazioni per conto di un altro operatore"};g.candownloadexternalstops={name:"CanDownloadExternalStops",description:"Può effettuare il download delle fermate esterne"};g.caneditbusodometervalue={name:"CanEditBusOdometerValue",description:"Può modificare il valore dell'odometro dei mezzi"};g.caneditsaleconfiguration={name:"CanEditSaleConfiguration",description:"Può modificare la configurazione vendita"};g.canenableticketscancelation={name:"CanEnableTicketsCancelation",description:"Attiva 'Abilita annullamento biglietti' "};g.canforcepriceonissue={name:"CanForcePriceOnIssue",description:"Può forzare l'importo su emissione biglietti e penali"};g.canfreeseat={name:"CanFreeSeat",description:"Libera posto"};g.canhandlebusescertificates={name:"CanHandleBusesCertificates",description:"Può gestire i certificati digitali associati ai mezzi"};g.canhandlebusodometeroffset={name:"CanHandleBusOdometerOffset",description:"Può gestire i chilometri iniziali dell'odometro"};g.canhandlefuelcards={name:"CanHandleFuelCards",description:"Può gestire le carte carburante"};g.canhandleprivatevehicles={name:"CanHandlePrivateVehicles",description:"Può vedere veicoli privati"};g.canhandlerefuels={name:"CanHandleRefuels",description:"Può gestire i rifornimenti"};g.canhideticketsprice={name:"CanHideTicketsPrice",description:"Può emettere biglietti con prezzo nascosto"};g.caninsertpassengercard={name:"CanInsertPassengerCard",description:"Può selezionare la tessera in fase di compilazione dati passeggero"};g.caninsertpassengernotes={name:"CanInsertPassengerNotes",description:"Può inserire le note in fase di compilazione dati dei passeggeri e tessere"};g.caninsertrefuels={name:"CanInsertRefuels",description:"Può inserire i rifornimenti"};g.canissue={name:"CanIssue",description:"Emissione"};g.canissuearticketsonboard={name:"CanIssueARTicketsOnBoard",description:"Emissione AR a bordo"};g.canissuecitysubscriptions={name:"CanIssueCitySubscriptions",description:"Emissione Abbonamenti e Biglietti urbani"};g.canissuecoupon={name:"CanIssueCoupon",description:"Può emettere coupon"};g.canissueluggages={name:"CanIssueLuggages",description:"Può emettere bagagli e servizi accompagnati"};g.canissueonexpiredstops={name:"CanIssueOnExpiredStops",description:"Può emettere su fermate scadute"};g.canissueonprivatetrips={name:"CanIssueOnPrivateTrips",description:"Emissione su corse private"};g.canissueonreservedseats={name:"CanIssueOnReservedSeats",description:"Può emettere su posti riservati"};g.canissueopentickets={name:"CanIssueOpenTickets",description:"Emissione biglietti open"};g.canissuepassengerwithdisabilities={name:"CanIssuePassengerWithDisabilities",description:"Può emettere biglietti per passeggeri disabili"};g.canissueprivatecards={name:"CanIssuePrivateCards",description:"Può emettere tessere private"};g.canissuesubscriptions={name:"CanIssueSubscriptions",description:"Emissione Abbonamenti"};g.canlinkticket={name:"CanLinkTicket",description:"Può collegare o aggiungere un biglietto ad un gruppo esistente"};g.canmanageagencyexcludedlines={name:"CanManageAgencyExcludedLines",description:"Può escludere le linee alle agenzie"};g.canmanagebanktransfer={name:"CanManageBankTransfer",description:"Può gestire le richieste di annullamento tramite bonifico bancario"};g.canmanagecampaigns={name:"CanManageCampaigns",description:"Può gestire le campagne promozionali"};g.canmanagecostcentres={name:"CanManageCostCentres",description:"Può gestire i centri di costo"};g.canmanagecoupons={name:"CanManageCoupons",description:"Può gestire i coupons"};g.canmanagecustomnotifications={name:"CanManageCustomNotifications",description:"Può gestire testi custom email/sms"};g.canmanageexternalstops={name:"CanManageExternalStops",description:"Può gestire le fermate esterne"};g.canmanagefidelities={name:"CanManageFidelities",description:"Può gestire le fidelity"};g.canmanageinvoicerequests={name:"CanManageInvoiceRequests",description:"Può gestire le richieste di fattura degli utenti e permette di aggiungere una richiesta di fattura anche nelle giornate successive"};g.canmanageluggagesaftercheckin={name:"CanManageLuggagesAfterCheckIn",description:"Può gestire bagagli e servizi accompagnati anche dopo il checkin"};g.canmanageonboardprinters={name:"CanManageOnboardPrinters",description:"Gestione e rinomina stampanti onboard"};g.canmanageoperatorsdebt={name:"CanManageOperatorsDebt",description:"Può gestire il debito degli operatori"};g.canmanageowninvoice={name:"CanManageOwnInvoice",description:"Può visualizzare e salvare le proprie fatture"};g.canmanagepenalties={name:"CanManagePenalties",description:"Creazione/Modifica Penali"};g.canmanagepushnotificationscampaigns={name:"CanManagePushNotificationsCampaigns",description:"Può gestire le campagne promozionali con notifiche push"};g.canmanagereservedseats={name:"CanManageReservedSeats",description:"Può gestire i posti riservati"};g.canmanageshifts={name:"CanManageShifts",description:"Può gestire i turni degli autisti"};g.canmanagesmartphones={name:"CanManageSmartphones",description:"Gestione smartphones AppOnBoard"};g.canmanagesubscriptiontypes={name:"CanManageSubscriptionTypes",description:"Creazione/Modifica Tipi Abbonamento"};g.canmanagetripassignement={name:"CanManageTripAssignement",description:"Può inserire la vestizione autistimezzo"};g.canmanagevehicletypes={name:"CanManageVehicleTypes",description:"Può gestire le tipologie mezzi"};g.canmanagewalletcharge={name:"CanManageWalletCharge",description:"Può gestire le anagrafiche delle ricariche del borsellino"};g.canmanagewalletoperations={name:"CanManageWalletOperations",description:"Può ricercare le ricariche del borsellino"};g.canmodifyinvoicedatalist={name:"CanModifyInvoiceDataList",description:"Può modificare l'anagrafica fatturazione"};g.canmodifyrolesgroups={name:"CanModifyRolesGroups",description:"Può modificare i ruoli all'interno dei gruppi"};g.canmodifysubscriptiondeparturearrival={name:"CanModifySubscriptionDepartureArrival",description:"Può modificare la partenza e arrivo di un abbonamento emesso"};g.canmodifyticketdata={name:"CanModifyTicketData",description:"Può modificare i dati di biglietti e abbonamenti (nome, cognome, email, telefono e nota, validità, parametri aggiuntivi
1)"};g.canmodifyticketexpiration={name:"CanModifyTicketExpiration",description:"Può modificare la data di scadenza dei biglietti (non possibile se già scaduti)"};g.cannotviewpassengerphonenumber={name:"CannotViewPassengerPhoneNumber",description:"Non può visualizzare i contatti del passeggero"};g.canoperateifissuedbyexclusiveagency={name:"CanOperateIfIssuedByExclusiveAgency",description:"Operazioni su emissioni da agenzie con gestione esclusiva dei biglietti"};g.canpaybycash={name:"CanPayByCash",description:"Può emettere in contanti"};g.canpaybycreditcard={name:"CanPayByCreditCard",description:"Può emettere con carta di credito"};g.canpaybymanualpos={name:"CanPayByManualPos",description:"Può pagare con il POS  MANUALE su AppOnBoard (senza integrazione con il pos fisico)"};g.canpaybypaypal={name:"CanPayByPaypal",description:"Può emettere con Paypal"};g.canpaybypos={name:"CanPayByPos",description:"Può emettere con il POS del vettore (Viene utilizzata la cassa Pos del vettore)"};g.canpaybysisal={name:"CanPayBySisal",description:"Può emettere con Mooney"};g.canpaylater={name:"CanPayLater",description:"Può emettere prenotazioni a tempo"};g.canpayonboard={name:"CanPayOnBoard",description:"Può pagare a bordo"};g.canpaywithagencypos={name:"CanPayWithAgencyPos",description:"Può emettere utilizzando il pos dell'agenzia (cassa specifica dell'agenzia)"};g.canpaywithbanktransfer={name:"CanPayWithBankTransfer",description:"Può emettere con Bonifico bancario"};g.canpaywithheylight={name:"CanPayWithHeylight",description:"Può emettere con HeyLight"};g.canpaywithinvoice={name:"CanPayWithInvoice",description:"Può emettere con fattura differita"};g.canpaywithpaybylink={name:"CanPayWithPayByLink",description:"Può emettere con PayByLink di SITRAP"};g.canpaywithsatispay={name:"CanPayWithSatisPay",description:"Può emettere con SatisPay"};g.canpaywithscalapay={name:"CanPayWithScalaPay",description:"Può emettere con ScalaPay"};g.canpaywithviacash={name:"CanPayWithViaCash",description:"Può emettere con ViaCash"};g.canprintnotpaidtickets={name:"CanPrintNotPaidTickets",description:"Può stampare biglietti non pagati"};g.canreadadminreports={name:"CanReadAdminReports",description:"Può visualizzare i report admin"};g.canreaddrivers={name:"CanReadDrivers",description:"Può recuperare i dati degli autisti"};g.canreadhelpdesktickets={name:"CanReadHelpDeskTickets",description:"Può visualizzare i tickets aperti a Sitrap dall'area HelpDesk di admin"};g.canreadmessageslogs={name:"CanReadMessagesLogs",description:"Può visualizzare l'analitico sms e ed email inviati"};g.canrearrangecovid={name:"CanRearrangeCovid",description:"Può gestire la riorganizzazione Covid"};g.canrechargewallet={name:"CanRechargeWallet",description:"Può ricaricare il borsellino"};g.canrefundbylink={name:"CanRefundByLink",description:"Può rimborsare tramite RefundByLink di SITRAP"};g.canrefundpaymenttransactions={name:"CanRefundPaymentTransactions",description:"Può stornare le transazioni carta di credito/paypal"};g.canrefundsatispaytransactions={name:"CanRefundSatisPayTransactions",description:"Può stornare le transazioni SatisPay"};g.canregisteruserfromexternalapi={name:"CanRegisterUserFromExternalApi",description:"Abilita le api di registrazione utenti"};g.canrenewsubscriptions={name:"CanRenewSubscriptions",description:"Rinnovo Abbonamenti"};g.canreopenclosedorders={name:"CanReopenClosedOrders",description:"Può riaprire le commesse chiuse"};g.canreopenexportedorders={name:"CanReopenExportedOrders",description:"Può annullare commesse esportate"};g.canreprint={name:"CanReprint",description:"Può effettuare la ristampa dei biglietti"};g.canrequestbanktransfer={name:"CanRequestBankTransfer",description:"Può richiedere annullamento tramite bonifico"};g.canrequestinvoice={name:"CanRequestInvoice",description:"Le aziende possono richiedere fattura in fase di acquisto"};g.canrequestinvoiceforprivateusers={name:"CanRequestInvoiceForPrivateUsers",description:"Gli utenti privati e persone fisiche possono richiedere fattura in fase di acquisto"};g.canresendemail={name:"CanResendEmail",description:"Può reinviare la mail o l'sms (se abilitato sms) con il biglietto da web"};g.canreservesubscriptionsoncheckin={name:"CanReserveSubscriptionsOnCheckIn",description:"Può emettere prenotazioni contestualmente al checkin a bordo"};g.canresetpriceonissue={name:"CanResetPriceOnIssue",description:"Può forzare solo a 0 l'importo su emissione biglietti e penali"};g.canrestorepaymenttransactions={name:"CanRestorePaymentTransactions",description:"Può ripristinare transazioni di pagamento"};g.cansearchallticketsbycode={name:"CanSearchAllTicketsByCode",description:"Ricerca biglietti per codice/pnr/id emessi da qualsiasi agenzia"};g.cansearchpersons={name:"CanSearchPersons",description:"Ricerca persone per dati sensibili"};g.cansearchprivateusersoninvoicerequests={name:"CanSearchPrivateUsersOn
1InvoiceRequests",description:"Può cercare anche gli utenti privati sulle anagrafiche di richiesta fattura"};g.cansearchsolutionsonpreviousdates={name:"CanSearchSolutionsOnPreviousDates",description:"Può emettere biglietti dopo l'orario di partenza della corsa"};g.canseealltripsmobile={name:"CanSeeAllTripsMobile",description:"Può visualizzare le corse non assegnate su AppOnBoard"};g.canseedriverscheckingpspositions={name:"CanSeeDriversCheckinGPSPositions",description:"Permette la visualizzazione della posizione GPS di validazione (se effettuata a bordo)"};g.canseeexcludedsolutions={name:"CanSeeExcludedSolutions",description:"Può visualizzare le soluzioni escluse"};g.canseefarecategoryicons={name:"CanSeeFareCategoryIcons",description:"Può vedere le icone personalizzate delle categorie tariffarie"};g.canseerental={name:"CanSeeRental",description:"Può Vedere il settore Noleggi"};g.canseestagingprices={name:"CanSeeStagingPrices",description:"Può visualizzare le anteprime di modifica del tariffario"};g.canselfassignownshiftsonboard={name:"CanSelfAssignOwnShiftsOnBoard",description:"Può assegnarsi da solo i propri turni su AppOnBoard"};g.cansendrentalrequestfrombookingname={name:"CanSendRentalRequestFromBookingName",description:"Può richiedere un noleggio dalla form di booking"};g.cansendsms={name:"CanSendSms",description:"Può inviare via sms"};g.cansentcustommessages={name:"CanSentCustomMessages",description:"Può inviare comunicazioni personalizzate ai passeggeri"};g.cansettleowndebt={name:"CanSettleOwnDebt",description:"Abilita il versamento del proprio debito agenzia"};g.canshipluggages={name:"CanShipLuggages",description:"Può emettere bagagli e servizi non accompagnati"};g.canskipbusselection={name:"CanSkipBusSelection",description:"Può evitare la selezione del mezzo sulla corsa"};g.canskipvalidationmessagesifpossible={name:"CanSkipValidationMessagesIfPossible",description:"Permette di evitare la visualizzazione dei messaggi di validazione ok su biglietti standard (no gruppi, no bagagli, no tariffe non standard)"};g.canswapotheroperatorshiftsonboard={name:"CanSwapOtherOperatorShiftsOnBoard",description:"Può assegnarsi da solo i propri turni sottraendoli da altri operatori su AppOnBoard"};g.canthermalprint={name:"CanThermalPrint",description:"Può usare stampanti termiche"};g.canuseagency={name:"CanUseAgency",description:"Può accedere all'area agenzie"};g.canusebiexternalapi={name:"CanUseBiExternalApi",description:"Api Business intelligence"};g.canusebonustrasporti={name:"CanUseBonusTrasporti",description:"Può applicare il bonus trasporti alle vendite degli abbonamenti"};g.canusecartadocenti={name:"CanUseCartaDocenti",description:"Può utilizzare la carta docenti in fase di acquisto"};g.canusedriversmobile={name:"CanUseDriversMobile",description:"Può usare AppOnBoard"};g.canuseexternalapigtfsdata={name:"CanUseExternalApiGtfsData",description:"Può esportare il gtfs e le informazioni dei mezzi associate alle corse dalle api esterne"};g.canusefleetmonitor={name:"CanUseFleetMonitor",description:"Può utilizzare monitor flotte"};g.canusegarage={name:"CanUseGarage",description:"Può usare l'applicazione garage"};g.canusegenericapi={name:"CanUseGenericApi",description:"Può utilizzare le API esterne"};g.canuseinvoiceadminmode={name:"CanUseInvoiceAdminMode",description:"Gestione admin su fatture"};g.canuselotconsole={name:"CanUseLotConsole",description:"Può utilizzare la console lotti"};g.canusemanagement={name:"CanUseManagement",description:"Può accedere all' area admin"};g.canusemultitenantbookingapi={name:"CanUseMultiTenantBookingApi",description:"Può utilizzare le booking API multitenant"};g.canusenetwork={name:"CanUseNetwork",description:"Può utilizzare il network agenzie"};g.canusepagopa={name:"CanUsePagoPA",description:"Può pagare con PagoPA"};g.canuseposlistener={name:"CanUsePosListener",description:"Può utilizzare l'integrazione Albatross POS Nexi"};g.canuserental={name:"CanUseRental",description:"Può Usare il settore Noleggi"};g.canusesuperusertools={name:"CanUseSuperUserTools",description:"Può utilizzare gli strumenti super user"};g.canuseswitchboardexternalapi={name:"CanUseSwitchboardExternalApi",description:"Api Centralino"};g.canusewallet={name:"CanUseWallet",description:"Può usare il borsellino"};g.canvalidatebystation={name:"CanValidateByStation",description:"Visualizza l'elenco delle fermate da selezionare in fase di validazione da app"};g.canvalidateofftrip={name:"CanValidateOffTrip",description:"Può effettuare cambi tratta nei cambi corsa da web"};g.canverifytickets={name:"CanVerifyTickets",description:"Può verificare i biglietti a bordo"};g.canviewagencyticket={name:"CanViewAgencyTicket",description:"Può visualizzare tutti i biglietti emessi dalla propria agenzia"};g.canviewalltickets={name:"CanViewAllTickets",description:"Può visualizzare i biglietti emessi da altri operatori e agenzie"};g.canviewalltripsdates={name:"CanViewAllTripsDates",description:"Non ha limiti di date su AppOnBoard"};g.canviewamountsonpassengerlist={name:"CanViewAmountsOnPassengerList",description:"Può visualizzare gli importi sulle liste passeggeri da agenzia"};g.canviewchangetrackinginfo={name:"CanViewChangeTrackingInfo",description:"Può visualizzare lo storico delle modifiche"};g.canviewcheckinoperationinfo={name:"CanViewCheckInOperationInfo",description:"Può visualizzare le informazioni di checkin del biglietto"};g.canviewfreeluggagesslots={name:"CanViewFreeLuggagesSlots",description:"Può visualizzare il numero di slot bagagli e servizi residui in fase di acquisto"};
1g.canviewfreeluggagesslotsonsearch={name:"CanViewFreeLuggagesSlotsOnSearch",description:"Può visualizzare il numero di slot bagagli e servizi residui sulle soluzioni di viaggio"};g.canviewfullsolutioninfo={name:"CanViewFullSolutionInfo",description:"Può visualizzare l'info soluzione completa"};g.canviewhygiene={name:"CanViewHygiene",description:"Può gestire l'igienizzazione a bordo bus"};g.canviewotheragenciesoperators={name:"CanViewOtherAgenciesOperators",description:"Può visualizzare i nomi degli operatori di tutte le agenzie"};g.canviewpassengerlist={name:"CanViewPassengerList",description:"Può visualizzare le liste passeggeri da agenzia"};g.canviewpassengerphotos={name:"CanViewPassengerPhotos",description:"Può vedere le foto dei passeggeri"};g.canviewpaymenttransactions={name:"CanViewPaymentTransactions",description:"Può visualizzare lo stato delle transazioni bancarie/paypal"};g.canviewremaindercoupons={name:"CanViewRemainderCoupons",description:"Può visualizzare i coupon di resto"};g.canviewreservedseats={name:"CanViewReservedSeats",description:"Può visualizzare i posti riservati in fase di emissione"};g.canviewroundtripadjustment={name:"CanViewRoundTripAdjustment",description:"Può visualizzare ignora adeguamento A/R"};g.canviewservicemonitorreport={name:"CanViewServiceMonitorReport",description:"Abilita report monitoraggio del servizio"};g.canviewvehicleinfo={name:"CanViewVehicleInfo",description:"Può visualizzare l'associazione con il mezzo sulla soluzione"};g.canviewvehicletypes={name:"CanViewVehicleTypes",description:"Può visualizzare le tipologie mezzi"};g.canviewwithdisabilitiesseats={name:"CanViewWithDisabilitiesSeats",description:"Può visualizzare i posti con passeggeri disabili in fase di emissione"};g.carrierposrefund={name:"CarrierPosRefund",description:"Può rimborsare con il POS del vettore (Verrà utilizzata la cassa Pos del vettore)"};g.carrierscostmanager={name:"CarriersCostManager",description:"Può gestire la configurazione dei costi dei Vettori"};g.cashrefund={name:"CashRefund",description:"Può rimborsare in contanti"};g.covidsale={name:"CovidSale",description:"[COVID] Può specificare che il gruppo sia un gruppo familiare"};g.externalagencypayment={name:"ExternalAgencyPayment",description:"Può utilizzare il pagamento esterno per le API"};g.faresdetailsvisualization={name:"FaresDetailsVisualization",description:"Può visualizzare i dettagli della composizione delle tariffe"};g.faresmanagement={name:"FaresManagement",description:"Gestione delle tariffe"};g.management={name:"Management",description:"Gestione del vettore"};g.mustviewbusselectionpage={name:"MustViewBusSelectionPage",description:"Visualizza sempre la selezione del mezzo prima di andare ai passeggeri"};g.onboardautomaticcheckin={name:"OnBoardAutomaticCheckIn",description:"Può effettuare il checkin automaticamente in fase di emissione da AppOnBoard"};g.paytobepayed={name:"PayToBePayed",description:"Può pagare i biglietti attivi ma non ancora pagati"};g.personsadminmode={name:"PersonsAdminMode",description:"Gestione tessere admin. (può modificare la validità delle tessere, e bypassare i controlli in fase di salvataggio)"};g.purchaseorderrequestmanager={name:"PurchaseOrderRequestManager",description:"Può gestire le richieste di acquisto"};g.purchaseorderrequestsinsert={name:"PurchaseOrderRequestsInsert",description:"Può inserire richieste di acquisto"};g.rentalsmanager={name:"RentalsManager",description:"Può gestire la configurazione dei noleggiatori"};g.sisalchangedatepayment={name:"SisalChangeDatePayment",description:"Può effettuare cambi corsa con Mooney"};g.syncinvoicewithfattureincloud={name:"SyncInvoiceWithFattureInCloud",description:"Può utilizzare l'integrazione con Fatture in Cloud"};g.warehousemanager={name:"WarehouseManager",description:"Può gestire i magazzini"};class Z{}Z.accidents={read:{name:"Accidents.Read",description:"Accidents (Lettura)"},write:{name:"Accidents.Write",description:"Accidents (Scrittura)"},delete:{name:"Accidents.Delete",description:"Accidents (Delete)"}};Z.advisories={read:{name:"Advisories.Read",description:"Advisories (Lettura)"},write:{name:"Advisories.Write",description:"Advisories (Scrittura)"},delete:{name:"Advisories.Delete",description:"Advisories (Delete)"}};
1Z.agencies={read:{name:"Agencies.Read",description:"Agencies (Lettura)"},write:{name:"Agencies.Write",description:"Agencies (Scrittura)"},delete:{name:"Agencies.Delete",description:"Agencies (Delete)"}};Z.agencycategories={read:{name:"AgencyCategories.Read",description:"AgencyCategories (Lettura)"},write:{name:"AgencyCategories.Write",description:"AgencyCategories (Scrittura)"},delete:{name:"AgencyCategories.Delete",description:"AgencyCategories (Delete)"}};Z.archiviazionedocumentale={read:{name:"ArchiviazioneDocumentale.Read",description:"ArchiviazioneDocumentale (Lettura)"},write:{name:"ArchiviazioneDocumentale.Write",description:"ArchiviazioneDocumentale (Scrittura)"},delete:{name:"ArchiviazioneDocumentale.Delete",description:"ArchiviazioneDocumentale (Delete)"}};Z.bustrips={read:{name:"BusTrips.Read",description:"BusTrips (Lettura)"},write:{name:"BusTrips.Write",description:"BusTrips (Scrittura)"},delete:{name:"BusTrips.Delete",description:"BusTrips (Delete)"}};Z.customers={read:{name:"Customers.Read",description:"Customers (Lettura)"},write:{name:"Customers.Write",description:"Customers (Scrittura)"},delete:{name:"Customers.Delete",description:"Customers (Delete)"}};
1Z.custommessages={read:{name:"CustomMessages.Read",description:"CustomMessages (Lettura)"},write:{name:"CustomMessages.Write",description:"CustomMessages (Scrittura)"},delete:{name:"CustomMessages.Delete",description:"CustomMessages (Delete)"}};Z.depots={read:{name:"Depots.Read",description:"Depots (Lettura)"},write:{name:"Depots.Write",description:"Depots (Scrittura)"},delete:{name:"Depots.Delete",description:"Depots (Delete)"}};Z.employees={read:{name:"Employees.Read",description:"Employees (Lettura)"},write:{name:"Employees.Write",description:"Employees (Scrittura)"},delete:{name:"Employees.Delete",description:"Employees (Delete)"}};Z.endusersmanagement={read:{name:"EndUsersManagement.Read",description:"EndUsersManagement (Lettura)"},write:{name:"EndUsersManagement.Write",description:"EndUsersManagement (Scrittura)"},delete:{name:"EndUsersManagement.Delete",description:"EndUsersManagement (Delete)"}};Z.externalgarages={read:{name:"ExternalGarages.Read",description:"ExternalGarages (Lettura)"},write:{name:"ExternalGarages.Write",description:"ExternalGarages (Scrittura)"},delete:{name:"ExternalGarages.Delete",description:"ExternalGarages (Delete)"}};Z.lines={read:{name:"Lines.Read",description:"Lines (Lettura)"},write:{name:"Lines.Write",description:"Lines (Scrittura)"},delete:{name:"Lines.Delete",description:"Lines (Delete)"}};Z.localities={read:{name:"Localities.Read",description:"Localities (Lettura)"},write:{name:"Localities.Write",description:"Localities (Scrittura)"},delete:{name:"Localities.Delete",description:"Localities (Delete)"}};Z.logbooks={read:{name:"Logbooks.Read",description:"Logbooks (Lettura)"},write:{name:"Logbooks.Write",description:"Logbooks (Scrittura)"},delete:{name:"Logbooks.Delete",description:"Logbooks (Delete)"}};Z.orders={read:{name:"Orders.Read",description:"Orders (Lettura)"},write:{name:"Orders.Write",description:"Orders (Scrittura)"},delete:{name:"Orders.Delete",description:"Orders (Delete)"}};Z.percorsi={read:{name:"Percorsi.Read",description:"Percorsi (Lettura)"},write:{name:"Percorsi.Write",description:"Percorsi (Scrittura)"},delete:{name:"Percorsi.Delete",description:"Percorsi (Delete)"}};Z.persons={read:{name:"Persons.Read",description:"Persons (Lettura)"},write:{name:"Persons.Write",description:"Persons (Scrittura)"},delete:{name:"Persons.Delete",description:"Persons (Delete)"}};Z.piantinebus={read:{name:"PiantineBus.Read",description:"PiantineBus (Lettura)"},write:{name:"PiantineBus.Write",description:"PiantineBus (Scrittura)"},delete:{name:"PiantineBus.Delete",description:"PiantineBus (Delete)"}};Z.reliefs={read:{name:"Reliefs.Read",description:"Reliefs (Lettura)"},write:{name:"Reliefs.Write",description:"Reliefs (Scrittura)"},delete:{name:"Reliefs.Delete",description:"Reliefs (Delete)"}};Z.rental={read:{name:"Rental.Read",description:"Rental (Lettura)"},write:{name:"Rental.Write",description:"Rental (Scrittura)"},delete:{name:"Rental.Delete",description:"Rental (Delete)"}};Z.saleconfigs={read:{name:"SaleConfigs.Read",description:"SaleConfigs (Lettura)"},write:{name:"SaleConfigs.Write",description:"SaleConfigs (Scrittura)"},delete:{name:"SaleConfigs.Delete",description:"SaleConfigs (Delete)"}};Z.stops={read:{name:"Stops.Read",description:"Stops (Lettura)"},write:{name:"Stops.Write",description:"Stops (Scrittura)"},delete:{name:"Stops.Delete",description:"Stops (Delete)"}};Z.stopspools={read:{name:"StopsPools.Read",description:"StopsPools (Lettura)"},write:{name:"StopsPools.Write",description:"StopsPools (Scrittura)"},delete:{name:"StopsPools.Delete",description:"StopsPools (Delete)"}};Z.suppliers={read:{name:"Suppliers.Read",description:"Suppliers (Lettura)"},write:{name:"Suppliers.Write",description:"Suppliers (Scrittura)"},delete:{name:"Suppliers.Delete",description:"Suppliers (Delete)"}};Z.vatconfigurations={read:{name:"VatConfigurations.Read",description:"VatConfigurations (Lettura)"},write:{name:"VatConfigurations.Write",description:"VatConfigurations (Scrittura)"},delete:{name:"VatConfigurations.Delete",description:"VatConfigurations (Delete)"}};Z.vehiclebrands={read:{name:"VehicleBrands.Read",description:"VehicleBrands (Lettura)"},write:{name:"VehicleBrands.Write",description:"VehicleBrands (Scrittura)"},delete:{name:"VehicleBrands.Delete",description:"VehicleBrands (Delete)"}};
1Z.vehiclemodels={read:{name:"VehicleModels.Read",description:"VehicleModels (Lettura)"},write:{name:"VehicleModels.Write",description:"VehicleModels (Scrittura)"},delete:{name:"VehicleModels.Delete",description:"VehicleModels (Delete)"}};Z.veicoli={read:{name:"Veicoli.Read",description:"Veicoli (Lettura)"},write:{name:"Veicoli.Write",description:"Veicoli (Scrittura)"},delete:{name:"Veicoli.Delete",description:"Veicoli (Delete)"}};class mn extends w{getCredit(){return c.get(l.serverUrl+"wallet/credit").catch(this.asServerError)}forOperator(e){return c.get(l.serverUrl+`wallet/forOperator/${e}`).catch(this.asServerError)}forAgency(e){return c.get(l.serverUrl+`wallet/forAgency/${e}`).catch(this.asServerError)}filterOperations(e,t,i){return c.get(l.serverUrl+`wallet/filterOperations?operatorId=${e??""}&agencyId=${t??""}&`+this.jsonToQueryString(i)).catch(this.asServerError)}rechargeWallet(e){return c.post(l.serverUrl+"wallet/rechargePayment",e).catch(this.asServerError)}getReceiptUrl(e){return c.get(l.serverUrl+`wallet/receiptUrl/${e}`).catch(this.asServerError)}search(e){return c.get(l.serverUrl+`wallet/search?literal=${e??""}`).catch(this.asServerError)}refund(e){return c.post(l.serverUrl+"wallet/refund",e).catch(this.asServerError)}manualCharge(e){return c.post(l.serverUrl+"wallet/manualCharge",e).catch(this.asServerError)}}var Vt=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},J=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},mi=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class de{get(){return de.service.getCredit()}rechargeWallet(e){return de.service.rechargeWallet(e)}forAgency(e){return mi(this,void 0,void 0,function*(){const t=yield de.service.forAgency(e);return{agencyId:e,wallet:t}})}forOperator(e){return mi(this,void 0,void 0,function*(){const t=yield de.service.forOperator(e);return{operatorId:e,wallet:Object.assign(Object.assign({},t),{operatorId:e})}})}filterOperations(e,t,i){return mi(this,void 0,void 0,function*(){const a=yield de.service.filterOperations(e,t,i);return{operatorId:e,agencyId:t,period:i,operations:a.sort((r,n)=>n.date.valueOf()-r.date.valueOf()).filter(r=>r.operationStatus.ok)}})}search(e){return de.service.search(e)}refund(e){return mi(this,void 0,void 0,function*(){return yield de.service.refund(e),e.operatorId&&(yield this.forOperator(e.operatorId)),e.agencyId&&(yield this.forAgency(e.agencyId)),this.filterOperations(e.operatorId,e.agencyId,Re.Today())})}manualcharge(e){return mi(this,void 0,void 0,function*(){return yield de.service.manualCharge(e),e.operatorId&&(yield de.service.forOperator(e.operatorId)),e.agencyId&&(yield de.service.forAgency(e.agencyId)),this.filterOperations(e.operatorId,e.agencyId,Re.Today())})}getReceiptUrl(e){return mi(this,void 0,void 0,function*(){var t=yield de.service.getReceiptUrl(e);return t.pdfUrl})}}de.service=new mn;Vt([h,J("design:type",Function),J("design:paramtypes",[]),J("design:returntype",void 0)],de.prototype,"get",null);Vt([h,J("design:type",Function),J("design:paramtypes",[Object]),J("design:returntype",void 0)],de.prototype,"rechargeWallet",null);Vt([h,J("design:type",Function),J("design:paramtypes",[String]),J("design:returntype",Promise)],de.prototype,"forAgency",null);Vt([h,J("design:type",Function),J("design:paramtypes",[String]),J("design:returntype",Promise)],de.prototype,"forOperator",null);Vt([h,J("design:type",Function),J("design:paramtypes",[Object,Object,Object]),J("design:returntype",Promise)],de.prototype,"filterOperations",null);Vt([h,J("design:type",Function),J("design:paramtypes",[String]),J("design:returntype",void 0)],de.prototype,"search",null);Vt([h,J("design:type",Function),J("design:paramtypes",[Object]),J("design:returntype",Promise)],de.prototype,"refund",null);Vt([h,J("design:type",Function),J("design:paramtypes",[Object]),J("design:returntype",Promise)],de.prototype,"manualcharge",null);Vt([h,J("design:type",Function),J("design:paramtypes",[String]),J("design:returntype",Promise)],de.prototype,"getReceiptUrl",null);const ls=new de;class qc{constructor(){this.email="",this.password="",this.callingCode="+39",this.phoneNumber="",this.name="",this.surname="",this.company=!1,this.companyName="",this.vatNumber="",this.fiscalCode="",this.commercialUse=!1,this.emailConfirmed=!1,this.phoneNumberConfirmed=!1,this.country={name:"Italia",isoCode:"IT"},this.roles=[],this.succeeded=!1,this.operatorid="",this.agencyActive=!0,this.userActive=!0,this.address="",this.localityid="",this.iban="",this.bic="",this.sisalPaymentLocked=!1,this.sisalPaymentLockTimes=0,this.phoneNumberFisso="",this.indirectMarketing=!1,this.directMarketing=!1,this.multifactorEnabled=!1,this.passkeyEnabled=!1}}class vn{constructor(e,t){this.loginPage=e,this.mailConfirmErrorPage=t,this.email="",this.phoneNumber="",this.name="",this.surname="",this.company=!1,this.companyName="",this.vatNumber="",this.fiscalCode="",this.country={name:"Italia",isoCode:"IT"},this.callingCode="+39",this.localityid=void 0,this.privacyAccepted=!1,this.indirectMarketing=void 0,this.directMarketing=void 0}}class Gc extends vn{constructor(){super(...arguments),this.recaptchaResponse="",this.password="",this.confirmPassword="",this.h=""}}let _t=class{constructor(){this.email="",this.confirmEmail="",this.password="",this.name="",this.surname="",this.companyName="",this.vatNumber="",this.fiscalCode="",this.mobilePhoneNumber="",this.phoneNumber="",this.confirmPhoneNumber="",this.nation="",this.privacyAccepted="",this.commercial="",this.contract="",this.contract2="",this.birthDate="",this.server="",this.address="",this.locality="",this.postalCode="",this.fax="",this.iban="",this.bic="",this.pec="",this.vatSystemId="",this.commercialUse="",this.documents="",this.completionToken="",this.callingCode=""}};function Kc(s,e){return class extends Le.Component{constructor(){super(...arguments),this.listener=()=>{this.forceUpdate()}}componentDidMount(){me.Changed.register(this.listener),me.isInitialized()||he.getAccountInfo()}componentWillUnmount(){me.Changed.unregister(this.listener)}render(){const i=e&&e.loading;if(!me.isInitialized())return i?N.jsx(i,{}):null;const a=me.getUser();if(a==null){if(!e)return null;const{loggetOut:o}=e;return o&&o(this.props)||null}var r=s;const n=this.props;return N.jsx(r,Object.assign({},n,{user:a}))}}}function fn(s,e){return class extends Le.Component{constructor(){super(...arguments),this.listener=()=>{this.forceUpdate()}}componentDidMount(){me.Changed.register(this.listener),me.isInitialized()||he.getAccountInfo()}componentWillUnmount(){me.Changed.unregister(this.listener)}render(){const i=e;if(!me.isInitialized()&&i)return N.jsx(i,{});const a=me.getRoles();var r=s;const n=this.props;return N.jsx(r,Object.assign({},n,{roles:a}))}}}function Qc(s,e){return class extends Le.Component{constructor(){super(...arguments),this.listener=()=>{this.forceUpdate()}}componentDidMount(){me.Changed.register(this.listener),me.isInitialized()||he.getAccountInfo()}componentWillUnmount(){me.Changed.unregister(this.listener)}render(){const i=e;if(!me.isInitialized()&&i)return N.jsx(i,{});const a=me.getUser();var r=s;return N.jsx(r,Object.assign({},this.props,{user:a}))}}}function Xc(s,e){return class extends Le.Component{constructor(){super(...arguments),this.listener=()=>{this.forceUpdate()}}componentDidMount(){me.Changed.register(this.listener),me.isInitialized()||he.getAccountInfo()}componentWillUnmount(){me.Changed.unregister(this.listener)}render(){const i=e;if(!me.isInitialized())return i&&N.jsx(i,{})||null;const a=me.get();var r=s;return N.jsx(r,Object.assign({},this.props,{loginStatus:a}))}}}class ed extends w{get(){return c.get(l.serverUrl+"countries").catch(this.asServerError)}}class yn extends w{get(e){return c.get(l.serverUrl+`localities/${e}`).catch(this.asServerError)}search(e){return c.get(l.serverUrl+`localities/search/${e}`).catch(this.asServerError)}getManyByIds(e){return c.post(l.serverUrl+"localities/manyById",e).catch(this.asServerError)}save(e){return c.post(l.serverUrl+"localities/save",e).catch(this.asServerError)}}var wa=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Pi=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class Wt{constructor(){this.getManyAccumulated=Ht(di(150,e=>Wt.localitiesService.getManyByIds(e.filter(t=>t).join(","))))}search(e){return Wt.localitiesService.search(e).then(t=>({searchValue:e,localities:t}))}get(e){return Wt.localitiesService.get(e)}}Wt.localitiesService=new yn;wa([h,Pi("design:type",Function),Pi("design:paramtypes",[String]),Pi("design:returntype",void 0)],Wt.prototype,"search",null);wa([h,Pi("design:type",Function),Pi("design:paramtypes",[String]),Pi("design:returntype",void 0)],Wt.prototype,"get",null);var hr=new Wt;class Sn extends w{getAll(){return c.get(l.serverUrl+"config").catch(this.asServerError)}saveConfig(e){return c.post(l.serverUrl+"config/",e).catch(this.asServerError)}getConfiguration(){return c.get(l.serverUrl+"config/current").catch(this.asServerError)}getTenantStyleCdn(e){return c.get(l.serverUrl+`config/cdn/style/${e}`).catch(this.asServerError)}getServerData(e){return c.get(l.serverUrl+`config/server-data?tenant=${e??""}`).catch(this.asServerError)}}class bn extends w{getApplicationConfig(){return c.get(l.serverUrl+"applicationconfig").catch(this.asServerError)}}class Pn extends w{getAgencyConfig(){return c.get(l.serverUrl+"agencyconfig").catch(this.asServerError)}}class An extends w{getAppBookingConfig(){return c.get(l.serverUrl+"appbookingconfig").catch(this.asServerError)}}class Cn extends w{sslRenew(e){return c.post(l.serverUrl+"appgatewayconfig/sslrenew/",e).catch(this.asServerError)}checkApiDns(e){return c.post(l.serverUrl+"appgatewayconfig/checkapidns/",e).catch(this.asServerError)}configureApplicationGateway(e){return c.post(l.serverUrl+"appgatewayconfig/configuregateway/",e).catch(this.asServerError)}}var xt=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},X=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},En=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class te{getTenantConfig(){return te.service.getConfiguration()}getAll(){return te.service.getAll()}save(e){return En(this,void 0,void 0,function*(){return yield te.
1service.saveConfig(e),te.service.getAll()})}getApplicationConfig(){return te.applicationConfigService.getApplicationConfig()}getAgencyConfig(){return te.agencyConfigService.getAgencyConfig()}getAppBookingConfig(){return te.appBokingConfigService.getAppBookingConfig()}configureGateway(e,t){return te.appGatewayConfigService.configureApplicationGateway({tenant:e,host:t})}checkDnsForHost(e,t){return te.appGatewayConfigService.checkApiDns({tenant:e,host:t})}sslRenew(e,t){return te.appGatewayConfigService.sslRenew({tenant:e,host:t})}}te.service=new Sn;te.applicationConfigService=new bn;te.agencyConfigService=new Pn;te.appBokingConfigService=new An;te.appGatewayConfigService=new Cn;xt([h,X("design:type",Function),X("design:paramtypes",[]),X("design:returntype",void 0)],te.prototype,"getTenantConfig",null);xt([h,X("design:type",Function),X("design:paramtypes",[]),X("design:returntype",void 0)],te.prototype,"getAll",null);xt([h,X("design:type",Function),X("design:paramtypes",[Object]),X("design:returntype",Promise)],te.prototype,"save",null);xt([h,X("design:type",Function),X("design:paramtypes",[]),X("design:returntype",void 0)],te.prototype,"getApplicationConfig",null);xt([h,X("design:type",Function),X("design:paramtypes",[]),X("design:returntype",void 0)],te.prototype,"getAgencyConfig",null);xt([h,X("design:type",Function),X("design:paramtypes",[]),X("design:returntype",void 0)],te.prototype,"getAppBookingConfig",null);xt([h,X("design:type",Function),X("design:paramtypes",[String,String]),X("design:returntype",void 0)],te.prototype,"configureGateway",null);xt([h,X("design:type",Function),X("design:paramtypes",[String,String]),X("design:returntype",void 0)],te.prototype,"checkDnsForHost",null);xt([h,X("design:type",Function),X("design:paramtypes",[String,String]),X("design:returntype",void 0)],te.prototype,"sslRenew",null);const Rs=new te;class Rn extends is{constructor(){super(),this._config=null,this.useApplicationConfig=()=>this.useWithActionBase(()=>Rs.getApplicationConfig(),()=>this._config),z.onfunction(Rs.getApplicationConfig,e=>this.setConfig(e))}setConfig(e){this._config=e,this.Changed.emit()}}const Dn=new Rn;class Tn extends w{logError(e){return c.post(l.serverUrl+"frontend/logerror",e).catch(this.asServerError)}}var In=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Or=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class Yi{logError(e){return Yi.service.logError(e)}}Yi.service=new Tn;In([h,Or("design:type",Function),Or("design:paramtypes",[Object]),Or("design:returntype",void 0)],Yi.prototype,"logError",null);const wn=new Yi;function td(s,e=null,t){var i,a;let r="Unknown error",n;s instanceof Error?(r=s.message,n=s.stack):typeof s=="object"&&s!==null&&"message"in s&&(r=String(s.message));const o=(a=(i=window==null?void 0:window.location)===null||i===void 0?void 0:i.href)!==null&&a!==void 0?a:"unknown location",p=`${r??""} at ${o}`;wn.logError({level:4,message:p,source:n??"",loggerName:t})}class kn extends w{getMany(e){return c.post(l.serverUrl+"fareCategories/many",e).catch(this.asServerError)}getAllEnabled(){return c.get(l.serverUrl+"fareCategories").catch(this.asServerError)}getAll(){return c.get(l.serverUrl+"fareCategories/all").catch(this.asServerError)}getByCarriers(e){return c.get(l.serverUrl+`fareCategories/byCarriers?commaSeparatedCarriers=${e??""}`).catch(this.asServerError)}}var Pr=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},nt=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Nn=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class vt{constructor(){this.getManyAccumulated=Ht(di(150,e=>vt.service.getMany(e.filter(t=>t))))}get(e){return ge.getManyAccumulated([e]).then(t=>{var i;return(i=t.find(a=>a.id==e))!==null&&i!==void 0?i:null})}GetEnabledFareCategories(){return vt.service.getAllEnabled()}GetAll(){return vt.service.getAll()}GetAllByCarriers(e){return Nn(this,void 0,void 0,function*(){const t=yield vt.service.getByCarriers(e.join(","));return{carriers:e,categories:t}}
1)}}vt.service=new kn;Pr([h,nt("design:type",Function),nt("design:paramtypes",[String]),nt("design:returntype",void 0)],vt.prototype,"get",null);Pr([h,nt("design:type",Function),nt("design:paramtypes",[]),nt("design:returntype",void 0)],vt.prototype,"GetEnabledFareCategories",null);Pr([h,nt("design:type",Function),nt("design:paramtypes",[]),nt("design:returntype",void 0)],vt.prototype,"GetAll",null);Pr([h,nt("design:type",Function),nt("design:paramtypes",[Array]),nt("design:returntype",Promise)],vt.prototype,"GetAllByCarriers",null);const ge=new vt,Ds=()=>{const s=me.getUser();return s==null?null:`${s.id}|${s.operatorid}|${s.agencyId}`};function Fn(s){let e=Ds();me.Changed.register(()=>{const t=Ds();t!==e&&(e=t,s())})}class ji extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>ge.GetEnabledFareCategories()),this.useForSearchWithLuggages=(e,t,i)=>{const a=this.useAll();return a==null?null:this.filterForSearch(a,e,t,i)},this.useForSearch=(e,t,i)=>{var a;return(a=this.useForSearchWithLuggages(e,t,i))===null||a===void 0?void 0:a.filter(r=>r.type==0)},z.onfunction(ge.GetEnabledFareCategories,e=>this.setAll(e)),Fn(()=>this.reloadForCurrentSession())}reloadForCurrentSession(){this.isInitialized()&&(this.clear(),ge.GetEnabledFareCategories())}static isEnabled(e,t,i,a){return!e.validForTickets||!ji.matchesValidity(e,i,a)?!1:(!e.special||e.showWithStandardCategories)&&e.lines.length===0?!0:t!=null&&t.some(n=>n.length>0)&&(e.special||e.showWithStandardCategories)&&e.lines.length>0&&e.showWithStandardCategories&&t.some(n=>n.every(o=>e.lines.indexOf(o)!=-1))}filterForSearch(e,t,i,a){const r=e.filter(n=>{var o,p;return ji.isEnabled(n,(p=(o=t==null?void 0:t.p2pTickets)===null||o===void 0?void 0:o.lines)!==null&&p!==void 0?p:null,i,a)});return De(r,n=>n.order)}static matchesValidity(e,t,i){return e.validity==null||t&&e.validity.from<=t&&e.validity.to>=t&&(i==null||e.validity.from<=i&&e.validity.to>=i)}getTicketsFareCategories(e,t,i){return this.getAllFareCategories(e,t,i,[0])}getAllFareCategories(e,t,i,a){var n=(a?this.getall().filter(o=>a.indexOf(o.type)!=-1):this.getall()).filter(o=>o.validForTickets&&(o.enabled||!o.special||e.length>0&&e.every(p=>o.lines.indexOf(p)!==-1)));return n=n.filter(o=>ji.matchesValidity(o,t,i)),De(n,o=>o.order)}getSubscriptionsFareCategories(e,t){var a=this.getall().filter(r=>r.type==0).filter(r=>r.validForSubscriptions&&(r.enabledForSubscriptions||!r.special)&&e.onlyCategories!=null&&e.onlyCategories.includes(r.id));return a=a.filter(r=>r.validity==null||t&&r.validity.from<=t&&r.validity.to>=t),e.disableDefaultCategory||(a=[Ft.GetDefaultFareCategory(),...a]),De(a,r=>r.order)}}const zn=new ji;var Ts=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class On extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>ge.GetAll()),this.use=e=>this.useWithAction(()=>ge.GetAll(),e),this.safeGet=e=>Ts(this,void 0,void 0,function*(){var t,i;return this.isInitialized()?(t=this.get(e))!==null&&t!==void 0?t:Ft.GetDefaultFareCategory():(yield ge.GetAll(),(i=this.get(e))!==null&&i!==void 0?i:Ft.GetDefaultFareCategory())}),this.safeGetAll=()=>Ts(this,void 0,void 0,function*(){return this.isInitialized()?this.getall():(yield ge.GetAll(),this.getall())}),z.onfunction(ge.GetAll,e=>this.setAll(e))}getall(){return[Ft.GetDefaultFareCategory(),...De(super.getall(),e=>e.order)]}}const fr=new On;class cs extends w{getFrom(e,t){return c.get(l.serverUrl+`locations/from?arrival=${e??""}&saleGroupId=${t??""}`).catch(this.asServerError)}getStopsFrom(e){return c.get(l.serverUrl+`locations/stopsFrom?saleGroupId=${e??""}`).catch(this.asServerError)}getTo(e,t){return c.get(l.serverUrl+`locations/to?departure=${e??""}&saleGroupId=${t??""}`).catch(this.asServerError)}getStopsTo(e,t){return c.get(l.serverUrl+`locations/stopsTo?departure=${e??""}&saleGroupId=${t??""}`).catch(this.asServerError)}}var Ln=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Lr=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class Qi{getDepartureLocalities(e){return Qi.service.getFrom(null,e).then(t=>({saleGroupId:e??null,departures:t}))}}Qi.service=new cs;Ln([h,Lr("design:type",Function),Lr("design:paramtypes",[Object]),Lr("design:returntype",void 0)],Qi.prototype,"getDepartureLocalities",null);const ka=new Qi;var Mn=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Mr=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Un=new cs;class Na{getarrivalLocalities(e,t){return Un.getTo(e,t).then(i=>({departureId:e,saleGroupId:t??null,arrivals:i}))}}Mn([h,Mr("design:type",Function),Mr("design:paramtypes",[String,Object]),Mr("design:returntype",void 0)],Na.prototype,"getarrivalLocalities",null);const Yr=new Na;class Bn extends is{constructor(){super(),this._departuresStorage=new si,this._allDeparturesStorage=new si,this._arrivalsStorage=new si,this.getI18nStopDescription=(e,t)=>{var i,a,r,n;const o=(r=t==null?void 0:t.toUpperCase().trim())!==null&&r!==void 0?r:"IT";return(n=(a=(i=e.names)===null||i===void 0?void 0:i.find(p=>p.country===o))===null||a===void 0?void 0:a.name)!==null&&n!==void 0?n:e.description},this.sortStopByDescriptions=(e,t,i)=>this.getI18nStopDescription(e,i).toLowerCase()<this.getI18nStopDescription(t,i).toLowerCase()?-1:this.getI18nStopDescription(e,i).toLowerCase()>this.getI18nStopDescription(t,i).toLowerCase()?1:0,this.findDepartureByDescription=(e,t)=>{var i,a;const r=M.removeDiacritics(t.toLowerCase());return(a=(i=e.find(n=>M.removeDiacritics(n.description.toLowerCase().substring(0,t.length))==r))!==null&&i!==void 0?i:e.f
1ind(n=>n.names!=null?n.names.some(o=>M.removeDiacritics(o.name.toLowerCase().substring(0,t.length))==r):!1))!==null&&a!==void 0?a:null},this.findArrivalByDescription=(e,t)=>{var i,a;const r=M.removeDiacritics(t.toLowerCase());return(a=(i=e.find(n=>M.removeDiacritics(n.description.toLowerCase().substring(0,t.length))==r))!==null&&i!==void 0?i:e.find(n=>n.names!=null?n.names.some(o=>M.removeDiacritics(o.name.toLowerCase().substring(0,t.length))==r):!1))!==null&&a!==void 0?a:null},z.onfunction(ka.getDepartureLocalities,e=>{var t;const i=(t=e.saleGroupId)!==null&&t!==void 0?t:"__default__",a=this._departuresStorage.get()||{},r=this._allDeparturesStorage.get()||{};a[i]=e.departures,r[i]=e.departures,this._departuresStorage.set(a),this._allDeparturesStorage.set(r),this.Changed.emit()}),z.onfunction(Yr.getarrivalLocalities,e=>{var t;const i=(t=e.saleGroupId)!==null&&t!==void 0?t:"__default__",a=this._arrivalsStorage.get()||{};a[i]||(a[i]={}),a[i][e.departureId]=e.arrivals,this._arrivalsStorage.set(a),this.Changed.emit()})}getDepartureByDescription(e,t,i){if(!e)return null;const a=this.getDepartures(t,i);return a?this.findDepartureByDescription(a,e):null}getArrivalByDescriptions(e,t,i,a){if(!t||!e)return null;const r=this.getDepartureByDescription(e,i,a);return r?this.findArrivalByDescription(this.getArrivals(r.id,i,a),t):null}getDepartures(e,t){const i=t??"__default__",a=this._departuresStorage.get();if(!a)return null;const r=a[i];return r?r.sort((n,o)=>this.sortStopByDescriptions(n,o,e)):null}allDepartures(e){const t=e??"__default__",i=this._allDeparturesStorage.get();if(!i)return null;const a=i[t];return a?a.sort((r,n)=>this.sortStopByDescriptions(r,n)):null}getArrivals(e,t,i){const a=i??"__default__",r=this._arrivalsStorage.get();return!r||!r[a]?[]:(r[a][e]||[]).sort((n,o)=>this.sortStopByDescriptions(n,o,t))}}const Dt=new Bn;var $n=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};const id=(s,e)=>{const[t,i]=Dt.useState(()=>Dt.getDepartureByDescription(s)),[a,r]=Dt.useState(()=>(t!=null&&Dt.getArrivals(t.id).length==0&&Yr.getarrivalLocalities(t.id,null),Dt.getArrivalByDescriptions(s,e))),n=()=>$n(void 0,void 0,void 0,function*(){Dt.allDepartures()==null&&(yield ka.getDepartureLocalities(null)),t!=null&&Dt.getArrivals(t.id).length==0&&(yield Yr.getarrivalLocalities(t.id,null)),i(Dt.getDepartureByDescription(s)),r(Dt.getArrivalByDescriptions(s,e))});return Le.useEffect(()=>{n()},[s,e]),{dep:t,arr:a}};class Vn extends w{getAll(){return c.get(l.serverUrl+"exdata").catch(this.asServerError)}post(e){return c.post(l.serverUrl+"exdata/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`exdata/${e}`).catch(this.asServerError)}}var Ar=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},ot=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Ur=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};let ki=class _i{add(e){return Ur(this,void 0,void 0,function*(){return yield _i.service.post(e),Object.assign(Object.assign({},e),{isCustom:!0})})}save(e){return Ur(this,void 0,void 0,function*(){return yield _i.service.post(e),Object.assign(Object.assign({},e),{isCustom:!0})})}del(e){return Ur(this,void 0,void 0,function*(){return yield _i.service.delete(e),e})}requestAll(){return _i.service.getAll()}};ki.service=new Vn;Ar([h,ot("design:type",Function),ot("design:paramtypes",[Object]),ot("design:returntype",Promise)],ki.prototype,"add",null);Ar([h,ot("design:type",Function),ot("design:paramtypes",[Object]),ot("design:returntype",Promise)],ki.prototype,"save",null);Ar([h,ot("design:type",Function),ot("design:paramtypes",[String]),ot("design:returntype",Promise)],ki.prototype,"del",null);Ar([h,ot("design:type",Function),ot("design:paramtypes",[]),ot("design:returntype",void 0)],ki.prototype,"requestAll",null);const ti=new ki;class xn extends j{constructor(){super(e=>e.key),this.useAll=()=>this.useAllWithAction(()=>ti.requestAll()),this.use=e=>this.useWithAction(()=>ti.requestAll(),e),z.onfunction(ti.requestAll,e=>this.setAll(e)).onfunction(ti.add,e=>this.add(e)).onfunction(ti.save,e=>this.update(e)).onfunction(ti.del,e=>this.delete(e))}}const _n=new xn,rd=(s,e)=>Pt(s,_n,()=>ti.requestAll(),e);class ds extends w{getMany(e){return c.post(l.serverUrl+"cards/many",e).catch(this.asServerError)}get(e){return c.get(l.serverUrl+`cards?id=${e??""}`).catch(this.asServerError)}
1getManyForMassiveRenew(e){return c.post(l.serverUrl+"cards/manyformassiverenew",e).catch(this.asServerError)}byCode(e){return c.get(l.serverUrl+`cards/byCode?code=${e??""}`).catch(this.asServerError)}operations(e){return c.get(l.serverUrl+`cards/operations?id=${e??""}`).catch(this.asServerError)}children(e){return c.get(l.serverUrl+`cards/children?id=${e??""}`).catch(this.asServerError)}manyChildren(e){return c.get(l.serverUrl+`cards/manychildren?ids=${e??""}`).catch(this.asServerError)}byUser(){return c.get(l.serverUrl+"cards/byuser").catch(this.asServerError)}getDefaultValidityForCategory(e){return c.get(l.serverUrl+`cards/default-validity-period?fareCategoryId=${e??""}`).catch(this.asServerError)}getDefaultValidityForCard(e){return c.get(l.serverUrl+`cards/default-card-validity?personId=${e??""}`).catch(this.asServerError)}search(e){return c.post(l.serverUrl+"cards/search",e).catch(this.asServerError)}getForWidget(){return c.get(l.serverUrl+"cards/widget").catch(this.asServerError)}searchForMassiveRenew(e,t,i,a,r){return c.get(l.serverUrl+`cards/searchformassiverenew?literal=${e??""}&fareCategoryId=${t??""}&extraParams=${i??""}&status=${a??""}&`+this.jsonToQueryString(r)).catch(this.asServerError)}activate(e){return c.post(l.serverUrl+"cards/activate",e).catch(this.asServerError)}pay(e){return c.post(l.serverUrl+"cards/pay",e).catch(this.asServerError)}refund(e){return c.post(l.serverUrl+"cards/refund",e).catch(this.asServerError)}markAsChecked(e){return c.post(l.serverUrl+"cards/markAsChecked",e).catch(this.asServerError)}reject(e){return c.post(l.serverUrl+"cards/reject",e).catch(this.asServerError)}removeReject(e){return c.post(l.serverUrl+"cards/removeReject",e).catch(this.asServerError)}exist(e){return c.get(l.serverUrl+"cards/exist?"+this.jsonToQueryString(e)).catch(this.asServerError)}add(e){return c.post(l.serverUrl+"cards/add",e).catch(this.asServerError)}update(e){return c.put(l.serverUrl+"cards/update",e).catch(this.asServerError)}import(e){return c.post(l.serverUrl+"cards/import",e).catch(this.asServerError)}saveChild(e){return c.post(l.serverUrl+"cards/saveChild",e).catch(this.asServerError)}lockUnlock(e){return c.post(l.serverUrl+"cards/lockUnlock",e).catch(this.asServerError)}requestRenew(e){return c.post(l.serverUrl+"cards/requestRenew",e).catch(this.asServerError)}acceptRenew(e){return c.post(l.serverUrl+"cards/acceptRenew",e).catch(this.asServerError)}sendPersonCreatedEmail(e){return c.post(l.serverUrl+"cards/sendPersonCreatedEmail",e).catch(this.asServerError)}uploadPhoto(e,t){const i=new FormData;return i.append("file",t),c.upload(l.serverUrl+`cards/upload/photo?personId=${e??""}`,i).catch(this.asServerError)}uploadBase64Photo(e){return c.post(l.serverUrl+"cards/upload/base64photo",e).catch(this.asServerError)}uploadDocument(e,t,i,a){const r=new FormData;return r.append("file",a),c.upload(l.serverUrl+`cards/upload/document?personId=${e??""}&isIdentityDocument=${t?"true":"false"}&changeStatus=${i?"true":"false"}`,r).catch(this.asServerError)}uploadBase64Document(e){return c.post(l.serverUrl+"cards/upload/base64document",e).catch(this.asServerError)}deleteDocument(e,t,i){return c.delete(l.serverUrl+`cards/deletefile?personId=${e??""}&fileName=${t??""}&isIdentityDocumentType=${i?"true":"false"}`).catch(this.asServerError)}getFareCategoriesForPersons(){return c.get(l.serverUrl+"cards/farecategories").catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`cards/${e}`).catch(this.asServerError)}sendEmail(e){return c.post(l.serverUrl+"cards/sendEmail",e).catch(this.asServerError)}massiveRenew(e){return c.post(l.serverUrl+"cards/massiveRenew",e).catch(this.asServerError)}generateMassiveRenew(e){return c.post(l.serverUrl+"cards/generatemassiverenew",e).catch(this.asServerError)}replay(e,t){return c.get(l.serverUrl+`cards/replay/${e}?skipFinancialMovements=${t?"true":"false"}`)}eventManualUpdate(e){return c.get(l.serverUrl+`cards/eventmanualupdate/${e}`)}fixCodes(e){return c.get(l.serverUrl+`cards/fixcodes/${e}`)}syncTicketSearch(e){return c.get(l.serverUrl+`cards/sync-tickets-search/${e}`)}addInvoiceData(e){return c.post(l.serverUrl+"cards/addinvoicedata",e).catch(this.asServerError)}removeInvoiceData(e){return c.post(l.serverUrl+"cards/removeinvoicedata",e).catch(this.asServerError)}refundModes(e){return c.get(l.serverUrl+`cards/refundModes?id=${e??""}`).catch(this.asServerError)}}var jn=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Br=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class Ji{getFareCategoriesForPersons(){return Ji.service.getFareCategoriesForPersons()}}Ji.service=new ds;jn([h,Br("design:type",Function),Br("design:paramtypes",[]),Br("design:returntype",void 0)],Ji.prototype,"getFareCategoriesForPersons",null);const yr=new Ji;class qn extends j{constructor(){super(e=>e.id),this.usePersonsFareCategories=e=>{const t=this.useAllWithAction(()=>yr.getFareCategoriesForPersons()),i=t==null?void 0:t.filter(a=>a.enabled&&(e||!a.privateForPersons));return this.isInitialized()?De(i??[],a=>a.order):[]},this.withAll=e=>Pt(e,this,()=>yr.getFareCategoriesForPersons()),z.onfunction(yr.getFareCategoriesForPersons,e=>this.setAll(e))}getPersonsFareCategories(e){const t=this.getall().filter(i=>i.type==0&&i.validForPersons&&i.enabled&&(e||!i.privateForPersons));return this.isInitialized()?De(t,i=>i.order):[]}}const Gn=new qn,sd=s=>Pt(s,fr,()=>ge.GetAll()),ad=s=>Pt(s,zn,()=>ge.GetEnabledFareCategories()),nd=s=>Pt(s,Gn,()=>yr.getFareCategoriesForPersons());var _=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},y=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},se=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class S{constructor(){this.getManyAccumulated=Ht(di(150,e=>S.service.getMany(e)))}search(e){var t,i,a;return S.service.search({literal:e.literal,fareCategoryId:(t=e.fareCategoryId)!==null&&t!==void 0?t:void 0,extraParams:(i=e.extraParams)!==null&&i!==void 0?i:void 0,status:e.status!=null?[e.status]:void 0,includeDeleted:(a=e.includeDeleted)!==null&&a!==void 0?a:!1,toPay:e.toPay}).then(r=>({filter:e,persons:r}))}searchForMassiveRenew(e){return S.service.searchForMassiveRenew(e.literal,e.fareCategoryId,e.extraParams,e.status,e.period).then(t=>({filter:e,persons:t}))}get(e){return se(this,void 0,void 0,function*(){return yield S.service.get(e)})}getOperations(e){return se(this,void 0,void 0,function*(){return yield S.service.operations(e)})}delete(e){return se(this,void 0,void 0,function*(){return{success:yield S.service.delete(e),id:e}})}getByCode(e){return S.service.byCode(e)}getByUser(){return S.service.byUser()}activate(e,t,i){return se(this,void 0,void 0,function*(){if(yield S.service.activate({id:e.id,period:t,sendEmail:i}),e.parentId){yield this.children(e.parentId);var a=yield S.service.getMany([e.parentId]);return a[0]}else{yield this.children(e.id);var a=yield S.service.getMany([e.id]);return a[0]}})}fareCategories(){return S.service.getFareCategoriesForPersons()}deleteAttachment(e,t,i){return S.service.deleteDocument(e,t,i)}save(e,t,i,a,r){return se(this,void 0,void 0,function*(){const n=r?yield S.service.add(Object.assign({},e)):yield S.service.update(e);try{if(t!=null&&(yield S.service.uploadPhoto(n,t)),i!=null&&i.length>0)for(let o=0;o<i.length;o++){const p=i[o];yield S.service.uploadDocument(n,p.isIdentityDocumentType,!1,p.file)}}catch(o){throw yield S.service.delete(n),o}return a&&(r?(e.id=n,yield S.service.sendPersonCreatedEmail(e)):yield S.service.sendEmail({id:n,email:e.email})),yield S.service.get(n)})}saveMobile(e,t,i,a,r){return se(this,void 0,void 0,function*(){const n=r?yield S.service.add(Object.assign({},e)):yield S.service.update(e);try{if(t!=null&&(yield S.service.uploadBase64Photo({personId:n,base64:t.base64,fileName:t.fileName})),i!=null&&i.length>0)for(let o=0;o<i.length;o++){const p=i[o];yield S.service.uploadBase64Document({personId:n,base64:p.base64,fileName:p.fileName,isIdentityDocument:p.isIdentityDocumentType,changeStatus:!1})}}catch(o){throw yield S.service.delete(n),o}return a&&(r?(e.id=n,yield S.service.sendPersonCreatedEmail(e)):yield S.service.sendEmail({id:n,email:e.email})),(yield S.service.getMany([n]))[0]})}addAttachments(e,t){return se(this,void 0,void 0,function*(){if(t!=null&&t.length>0)for(let i=0;i<t.length;i++){const a=t[i];yield S.service.uploadDocument(e,a.isIdentityDocumentType,!0,a.file)}})}renewWithAttachments(e,t){return se(this,void 0,void 0,function*(){if(t!=null&&t.length>0)for(let a=0;a<t.length;a++){const r=t[a];yield S.service.uploadDocument(e,r.isIdentityDocumentType,!0,r.file)}yield S.service.requestRenew(e);var i=yield S.service.getMany([e]);return i})}sendEmail(e){return se(this,void 0,void 0,function*(){yield S.service.sendEmail(e)})}massiveRenew(e){return se(this,void 0,void 0,function*(){var t=yield S.service.massiveRenew(e),i=t.map(r=>r.personId).filter(r=>r!==void 0),a=yield S.service.getManyForMassiveRenew(i);return{result:t,persons:a}})}generateMassiveRenew(e){return S.service.generateMassiveRenew(e)}
1getManyForMassiveRenew(e){return S.service.getManyForMassiveRenew(e)}markAsChecked(e){return se(this,void 0,void 0,function*(){return yield S.service.markAsChecked(e),e.id})}acceptRenew(e){return se(this,void 0,void 0,function*(){yield S.service.acceptRenew(e);var t=yield S.service.getMany([e]);return t})}reject(e){return se(this,void 0,void 0,function*(){yield S.service.reject(e);var t=(yield S.service.getMany([e.id]))[0];return t})}removeReject(e){return se(this,void 0,void 0,function*(){yield S.service.removeReject(e);var t=(yield S.service.getMany([e]))[0];return t})}removeRejectFromChild(e,t){return se(this,void 0,void 0,function*(){return yield S.service.removeReject(e),t})}getForWidget(){return S.service.getForWidget()}lockUnlock(e,t,i){return se(this,void 0,void 0,function*(){var a=yield S.service.lockUnlock({personId:e,locked:t,sendEmail:i});return a})}saveChild(e,t,i){return se(this,void 0,void 0,function*(){const a=yield S.service.saveChild(e);try{if(t!=null&&(yield S.service.uploadPhoto(a,t)),i!=null&&i.length>0)for(let r=0;r<i.length;r++){const n=i[r];yield S.service.uploadDocument(a,n.isIdentityDocumentType,!1,n.file)}}catch(r){throw yield S.service.delete(a),r}return e.parentId&&(yield ye.get(e.parentId),this.children(e.parentId)),a})}children(e){return se(this,void 0,void 0,function*(){const t=yield S.service.children(e);return{parentId:e,children:t}})}manychildren(e){return se(this,void 0,void 0,function*(){return yield S.service.manyChildren(e.join(","))})}deleteChild(e,t){return se(this,void 0,void 0,function*(){const i=yield S.service.delete(e);return t&&(yield ye.get(t),this.children(t)),{success:i,id:e,parentId:t}})}pay(e,t,i){return se(this,void 0,void 0,function*(){return yield S.service.pay({id:e,forcedPrice:t,sendEmail:!1,billingOperatorId:void 0,paymentMethodInfo:i}),S.service.get(e)})}refund(e,t,i){return se(this,void 0,void 0,function*(){return yield S.service.refund({id:e,amount:t,sendEmail:!1,billingOperatorId:void 0,refundMode:i}),yield S.service.get(e)})}addInvoiceData(e){return se(this,void 0,void 0,function*(){return yield S.service.addInvoiceData(e),yield S.service.get(e.cardId)})}removeInvoiceData(e){return se(this,void 0,void 0,function*(){return yield S.service.removeInvoiceData(e),yield S.service.get(e)})}getRefundModes(e){return se(this,void 0,void 0,function*(){return yield S.service.refundModes(e)})}}S.service=new ds;_([h,y("design:type",Function),y("design:paramtypes",[Object]),y("design:returntype",void 0)],S.prototype,"search",null);_([h,y("design:type",Function),y("design:paramtypes",[Object]),y("design:returntype",void 0)],S.prototype,"searchForMassiveRenew",null);_([h,y("design:type",Function),y("design:paramtypes",[String]),y("design:returntype",Promise)],S.prototype,"get",null);_([h,y("design:type",Function),y("design:paramtypes",[String]),y("design:returntype",Promise)],S.prototype,"getOperations",null);_([h,y("design:type",Function),y("design:paramtypes",[String]),y("design:returntype",Promise)],S.prototype,"delete",null);_([h,y("design:type",Function),y("design:paramtypes",[String]),y("design:returntype",void 0)],S.prototype,"getByCode",null);_([h,y("design:type",Function),y("design:paramtypes",[]),y("design:returntype",void 0)],S.prototype,"getByUser",null);_([h,y("design:type",Function),y("design:paramtypes",[Object,Object,Boolean]),y("design:returntype",Promise)],S.prototype,"activate",null);_([h,y("design:type",Function),y("design:paramtypes",[]),y("design:returntype",void 0)],S.prototype,"fareCategories",null);_([h,y("design:type",Function),y("design:paramtypes",[String,String,Boolean]),y("design:returntype",void 0)],S.prototype,"deleteAttachment",null);_([h,y("design:type",Function),y("design:paramtypes",[Object,Object,Object,Boolean,Boolean]),y("design:returntype",Promise)],S.prototype,"save",null);_([h,y("design:type",Function),y("design:paramtypes",[Object,Object,Object,Boolean,Boolean]),y("design:returntype",Promise)],S.prototype,"saveMobile",null);_([h,y("design:type",Function),y("design:paramtypes",[String,Object]),y("design:returntype",Promise)],S.prototype,"addAttachments",null);_([h,y("design:type",Function),y("design:paramtypes",[String,Object]),y("design:returntype",Promise)],S.prototype,"renewWithAttachments",null);_([h,y("design:type",Function),y("design:paramtypes",[Object]),y("design:returntype",Promise)],S.prototype,"sendEmail",null);_([h,y("design:type",Function),y("design:paramtypes",[Array]),y("design:returntype",Promise)],S.prototype,"massiveRenew",null);_([h,y("design:type",Function),y("design:paramtypes",[Array]),y("design:returntype",void 0)],S.prototype,"generateMassiveRenew",null);_([h,y("design:type",Function),y("design:paramtypes",[Array]),y("design:returntype",void 0)],S.prototype,"getManyForMassiveRenew",null);_([h,y("design:type",Function),y("design:paramtypes",[Object]),y("design:returntype",Promise)],S.prototype,"markAsChecked",null);_([h,y("design:type",Function),y("design:paramtypes",[String]),y("design:returntype",Promise)],S.prototype,"acceptRenew",null);_([h,y("design:type",Function),y("design:paramtypes",[Object]),y("design:returntype",Promise)],S.prototype,"reject",null);_([h,y("design:type",Function),y("design:paramtypes",[String]),y("design:returntype",Promise)],S.prototype,"removeReject",null);_([h,y("design:type",Function),y("design:paramtypes",[String,String]),y("design:returntype",Promise)],S.prototype,"removeRejectFromChild",null);_([h,y("design:type",Function),y("design:paramtypes",[]),y("design:returntype",void 0)],S.prototype,"getForWidget",null);_([h,y("design:type",Function),y("design:paramtypes",[String,Boolean,Boolean]),y("design:returntype",Promise)],S.prototype,"lockUnlock",null);_([h,y("design:type",Function),y("design:paramtypes",[Object,Object,Object]),y("design:returntype",Promise)],S.prototype,"saveChild",null);_([h,y("design:type",Function),y("design:paramtypes",[String]),y("design:returntype",Promise)],S.prototype,"children",null);_([h,y("design:type",Function),y("design:paramtypes",[Array]),y("design:returntype",Promise)],S.prototype,"manychildren",null);_([h,y("design:type",Function),y("design:paramtypes",[String,String]),y("design:returntype",Promise)],S.prototype,"deleteChild",null);_([h,y("design:type",Function),y("design:paramtypes",[String,Object,Object]),y("design:returntype",Promise)],S.prototype,"pay",null);_([h,y("design:type",Function),y("design:paramtypes",[String,Number,Number]),y("design:returntype",Promise)],S.prototype,"refund",null);_([h,y("design:type",Function),y("design:paramtypes",[Object]),y("design:returntype",Promise)],S.prototype,"addInvoiceData",null);_([h,y("design:type",Function),y("design:paramtypes",[String]),y("design:returntype",Promise)],S.prototype,"removeInvoiceData",null);_([h,y("design:type",Function),y("design:paramtypes",[String]),y("design:returntype",Promise)],S.prototype,"getRefundModes",null);const ye=new S;var Wn=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class Hn extends Ti{constructor(){super(e=>e.id),this.use=e=>this.useWithAction(()=>e?ye.getManyAccumulated([e]):null,e),z.onfunction(ye.save,e=>this.updateOrAdd(e)).onfunction(ye.getManyAccumulated,e=>this.updateOrAddAll(e)).onfunction(ye.get,e=>this.updateOrAdd(e)).onfunction(ye.delete,e=>e.success&&this.delete(e.id)).onfunction(ye.activate,e=>this.updateOrAdd(e)).onfunction(ye.getByCode,e=>{e.length==1&&this.updateOrAdd(e[0])}).onfunction(ye.renewWithAttachments,e=>this.updateOrAddAll(e)).onfunction(ye.acceptRenew,e=>this.updateOrAddAll(e)).onfunction(ye.reject,e=>this.updateOrAdd(e)).onfunction(ye.removeReject,e=>this.updateOrAdd(e)).onfunction(ye.pay,e=>this.updateOrAdd(e)).onfunction(ye.refund,e=>this.updateOrAdd(e)).onfunction(ye.addInvoiceData,e=>this.updateOrAdd(e)).onfunction(ye.removeInvoiceData,e=>this.updateOrAdd(e))}
1getOrRequest(e){return Wn(this,void 0,void 0,function*(){var t;return(t=this.get(e))!==null&&t!==void 0?t:yield ye.get(e)})}}const od=new Hn;class Kn extends j{constructor(){super(e=>e.id),this.getallforcurrenttenant=()=>De(this.getall().filter(e=>e.tenants.some(t=>t==l.environmentName)),e=>e.order),this.useAllForCurrentTenant=()=>{var e;return(e=this.useAllWithAction(()=>ge.GetAll()))===null||e===void 0?void 0:e.filter(t=>t.tenants.some(i=>i==l.environmentName))},this.use=e=>{var t;return(t=this.useAllWithAction(()=>ge.GetAll()))===null||t===void 0?void 0:t.find(i=>i.id==e)},z.onfunction(ge.GetAll,e=>this.updateOrAddAll(e.filter(t=>t.type!=0))).onfunction(ge.getManyAccumulated,e=>this.updateOrAddAll(e.filter(t=>t.type!=0)))}getAllTags(){return this.isInitialized()?Ii(ae(this.getall().filter(e=>e.tenants.some(t=>t==l.environmentName)).map(e=>e.tags))).sort():[]}}const ld=new Kn;class cd extends w{fixStopsMissingForTickets(e){return c.get(l.serverUrl+`trips/FixForMissingTickets?tripId=${e??""}`).catch(this.asServerError)}freeSeats(e){return c.post(l.serverUrl+"trips/freeSeats",e).catch(this.asServerError)}cleanTrip(e){return c.post(l.serverUrl+"trips/clean",e).catch(this.asServerError)}googleGtfs(){return c.get(l.serverUrl+"trips/googleGtfs").catch(this.asServerError)}gtfs(e){return c.get(l.serverUrl+"trips/gtfs?"+this.jsonToQueryString(e)).catch(this.asServerError)}uploadGtfs(e,t,i,a){const r=new FormData;return r.append("file",a),c.upload(l.serverUrl+`trips/gtfs?busMapId=${e??""}&canChooseSeats=${t??""}&canAssignSeat=${i??""}`,r).catch(this.asServerError)}get(e){return c.get(l.serverUrl+`trips/${e}`).catch(this.asServerError)}canChooseSeats(e){return c.get(l.serverUrl+`trips/canchooseseats/${e}`).catch(this.asServerError)}getMany(e){return c.get(l.serverUrl+`trips/many?ids=${e??""}`).catch(this.asServerError)}getTripStatus(e){return c.get(l.serverUrl+`trips/${e}/status`).catch(this.asServerError)}getTripOptimizations(e){return c.get(l.serverUrl+`trips/${e}/optimizations`).catch(this.asServerError)}optimizeTrips(e,t){return c.post(l.serverUrl+`trips/${e}/optimize`,t).catch(this.asServerError)}getActiveReservations(e){return c.get(l.serverUrl+`trips/${e}/activereservations`).catch(this.asServerError)}addRemoveTags(e){return c.post(l.serverUrl+"trips/tags",e).catch(this.asServerError)}enableAutoCheckout(e){return c.post(l.serverUrl+"trips/enableautocheckout",e).catch(this.asServerError)}detailed(e){return c.post(l.serverUrl+"trips/detailed/",e).catch(this.asServerError)}add(e){return c.post(l.serverUrl+"trips/add",e).catch(this.asServerError)}edit(e){return c.post(l.serverUrl+"trips/edit",e).catch(this.asServerError)}exclusions(e){return c.post(l.serverUrl+"trips/exclusions",e).catch(this.asServerError)}getExclusions(e){return c.get(l.serverUrl+`trips/exclusions?tripIdsString=${e??""}`).catch(this.asServerError)}getExclusionsFromRoute(e){return c.get(l.serverUrl+`trips/routeExclusions?routeCode=${e??""}`).catch(this.asServerError)}execute(e){return c.post(l.serverUrl+"trips/",e).catch(this.asServerError)}rearrangeGroups(e){return c.post(l.serverUrl+"trips/rearrangeGroups",e).catch(this.asServerError)}delete(e){return c.post(l.serverUrl+"trips/delete",e).catch(this.asServerError)}rearrangePreview(e){return c.post(l.serverUrl+"trips/rearrangePreview",e)}
1changeBusMapPreview(e){return c.get(l.serverUrl+"trips/changeBusMapPreview?"+this.jsonToQueryString(e)).catch(this.asServerError)}changeBus(e){return c.post(l.serverUrl+"trips/changeBus",e).catch(this.asServerError)}rearrange(e){return c.post(l.serverUrl+"trips/rearrange",e).catch(this.asServerError)}splitMerge(e){return c.post(l.serverUrl+"trips/splitmerge",e)}allocations(e){return c.get(l.serverUrl+`trips/allocations/${e}`).catch(this.asServerError)}setAllocations(e,t){return c.post(l.serverUrl+`trips/allocations/${e}`,t).catch(this.asServerError)}deleteOverrideAllocations(e){return c.delete(l.serverUrl+`trips/allocations/${e}`).catch(this.asServerError)}setAllotments(e){return c.post(l.serverUrl+"trips/allotments",e).catch(this.asServerError)}changeTripNotes(e){return c.post(l.serverUrl+"trips/updatenotes",e).catch(this.asServerError)}importTicketsTemp(e){return c.post(l.serverUrl+"trips/importTicketsTemp",e).catch(this.asServerError)}getHistory(e){return c.get(l.serverUrl+`trips/history?busTripId=${e??""}`).catch(this.asServerError)}}class dd extends w{filter(e){return c.post(l.serverUrl+"trips/filter",e).catch(this.asServerError)}}class Zn extends w{get(e){return c.get(l.serverUrl+`reservations/${e}`).catch(this.asServerError)}createOrUpdate(e){return c.post(l.serverUrl+"reservations/",e).catch(this.asServerError)}applyCoupon(e,t){return c.post(l.serverUrl+`reservations/${t}/coupon`,e).catch(this.asServerError)}applyFidelity(e,t){return c.post(l.serverUrl+`reservations/${t}/fidelity`,e).catch(this.asServerError)}removeFidelity(e){return c.post(l.serverUrl+`reservations/${e}/removefidelity`).catch(this.asServerError)}applyBillingOperator(e,t){return c.post(l.serverUrl+`reservations/${t}/billingoperator`,e).catch(this.asServerError)}removeBillingOperator(e){return c.post(l.serverUrl+`reservations/${e}/removebillingoperator`).catch(this.asServerError)}disableRelief(e){return c.post(l.serverUrl+`reservations/${e}/disableRelief`).catch(this.asServerError)}enableRelief(e){return c.post(l.serverUrl+`reservations/${e}/enableRelief`).catch(this.asServerError)}applyInvoiceData(e,t){return c.post(l.serverUrl+`reservations/${t}/invoicedata`,e).catch(this.asServerError)}removeInvoiceData(e){return c.post(l.serverUrl+`reservations/${e}/removeinvoicedata`).catch(this.asServerError)}getFareableLuggages(e){return c.get(l.serverUrl+`reservations/${e}/fareableLuggages`).catch(this.asServerError)}setLuggages(e,t){return c.post(l.serverUrl+`reservations/${t}/luggages`,e).catch(this.asServerError)}setPassengers(e,t,i,a){return c.post(l.serverUrl+`reservations/${t}/passengers?caller=${i??""}&isFamily=${a??""}`,e).catch(this.asServerError)}selectSeats(e,t,i){return c.post(l.serverUrl+`reservations/${t}/seatsSelection?caller=${i??""}`,e).catch(this.asServerError)}selectPaymentMethod(e,t,i,a,r){return c.post(l.serverUrl+`reservations/${t}/paymentMethod?paymentDataId=${i??""}&savePaymentData=${a??""}&subPaymentMethod=${r??""}`,e).catch(this.asServerError)}forcePrice(e,t){return c.post(l.serverUrl+`reservations/${t}/forcedPrice`,e).catch(this.asServerError)}forcePriceDetailed(e,t){return c.post(l.serverUrl+`reservations/${t}/forcedPriceDetailed`,e).catch(this.asServerError)}deleteForcedPrice(e,t){return c.post(l.serverUrl+`reservations/${e}/deleteForcedPrice?caller=${t??""}`).catch(this.asServerError)}extendExpiration(e){return c.post(l.serverUrl+`reservations/${e}/extendExpiration`).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`reservations/${e}`).catch(this.asServerError)}getActiveReservations(e){return c.post(l.serverUrl+"reservations/byTrips",e).catch(this.asServerError)}deleteByTrip(e,t){return c.post(l.serverUrl+`reservations/deleteByTrips/${t}`,e).catch(this.asServerError)}}class ud extends w{getAll(){return c.get(l.serverUrl+"routes").catch(this.asServerError)}getShift(e){return c.get(l.serverUrl+`routes/${e}/shift`).catch(this.asServerError)}getRoutesThatContainsStops(e){return c.get(l.serverUrl+`routes/thatContainsStop/${e}`).catch(this.asServerError)}getRouteLegs(e){return c.get(l.serverUrl+`routes/legs/${e}`).catch(this.asServerError)}getRouteByLeg(e){return c.get(l.serverUrl+`routes/byleg/${e}`).catch(this.asServerError)}}class hd extends w{get(e){return c.get(l.serverUrl+`routeseditor/${e}`).catch(this.asServerError)}getMany(e){return c.post(l.serverUrl+"routeseditor/many",e).catch(this.asServerError)}add(e){return c.post(l.serverUrl+"routeseditor/",e).catch(this.asServerError)}update(e,t){return c.put(l.serverUrl+`routeseditor/${t}`,e).catch(this.asServerError)}cloneRoute(e){return c.post(l.serverUrl+"routeseditor/clone",e).catch(this.asServerError)}reverseRoute(e){return c.post(l.serverUrl+"routeseditor/reverse",e).catch(this.asServerError)}getExclusions(e){return c.get(l.serverUrl+`routeseditor/exclusions?routeCodes=${e??""}`).catch(this.asServerError)}saveExclusions(e){return c.post(l.serverUrl+"routeseditor/exclusions",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`routeseditor/${e}`).catch(this.asServerError)}}var Ke;class pt{constructor(){this.dict={}}set(e,t){this.dict[e.toString()]=t}get(e){return this.dict[e.toString()]}static AreReturnSolutions(e){return e.length!=2||!e[0]||!e[1]?!1:e[0].trips[0].departureLocality==e[1].trips[e[1].trips.length-1].arrivalLocality&&e[1].trips[0].departureLocality==e[0].trips[e[0].trips.length-1].arrivalLocality}static getTripDetails(e){const{trips:t,remainingSeats:i}=e,a=t.some(p=>p.trip.blocked),r=t.some(p=>p.trip.canceled),n=t.find(p=>p.excludedRoute),o=t.find(p=>p.excludedTrip);return{isBlocked:a,remainingSeats:i,canceled:r,exclusion:{trip:o==null?void 0:o.trip.tripId,route:n==null?void 0:n.trip.routeId}}}static getSolutionId(e){return`${e.departureStopId.substr(0,18)}-${e.arrivalStopId.substr(0,18)}`}static solutionsIsPurchasable(e,t){var i=!1;return e&&(i=!0),i}static SolutionSelectable(e,t,i){var a,r,n;if(e.trips.some(I=>I.trip.blocked||I.trip.canceled||I.excludedRoute||I.excludedTrip))return{selectable:!1,limitation:void 0,notAllowed:void 0,canSelectSeat:!1,luggagesOrVehiclesSelectable:!1};const o=t??[Nt.Default],p=this.GetTotalPassengers(o),u=this.GetTotalLuggagesAndVehicles(o),d=Ke.GetRemainingSlots(e.trips);if(u>0&&d<u)return{selectable:!1,limitation:void 0,notAllowed:void 0,canSelectSeat:!1,luggagesOrVehiclesSelectable:!1};if(i=="passengers"&&e.remainingSeats!=null&&e.remainingSeats<p&&!o.every(I=>{var C;return((C=I.category)===null||C===void 0?void 0:C.defaultOccupation)==0}))return{selectable:!1,limitation:void 0,notAllowed:void 0,canSelectSeat:!1,luggagesOrVehiclesSelectable:!0};const m=e.limitations.map(I=>{var C=o.filter(q=>I.FareCategoriesIds.indexOf(q.category.id)!=-1);return{current:C,limitation:I}}).filter(I=>I.current.length>0).find(I=>I.current.length>I.limitation.NumberOfSeats),b=o.filter(I=>I.category.id&&I.category.lines.length>0),D=e.trips.map(I=>I.trip.lineId).flatMap(I=>b.filter(C=>!C.category.lines.includes(I??"")));if(D.length>0)return{selectable:!1,limitation:void 0,notAllowed:(a=D[0])===null||a===void 0?void 0:a.category.id,canSelectSeat:!1,luggagesOrVehiclesSelectable:!0};if(m!=null){var T=m.limitation.FareCategoriesIds.find(I=>o.map(C=>C.category.id).indexOf(I)!=-1);if(T){var A=(n=(r=o.find(I=>I.category.id==T))===null||r===void 0?void 0:r.category)===null||n===void 0?void 0:n.id;return{selectable:!1,limitation:A,notAllowed:void 0,canSelectSeat:!1,luggagesOrVehiclesSelectable:!0}}}return{selectable:!0,limitation:void 0,notAllowed:void 0,canSelectSeat:e.trips.some(I=>I.trip.canSelectSeat),luggagesOrVehiclesSelectable:!0}}static areEqual(e,t){return!e&&!t?!0:e&&!t||!e&&t?!1:e.departureStopId===t.departureStopId&&e.arrivalStopId===t.arrivalStopId&&kt(e.trips.map(Ke.getTr
1ipKey),t.trips.map(Ke.getTripKey))}static areEqual2(e,t){return!e&&!t?!0:e&&!t||!e&&t?!1:e.trips[0].departureStopId===t.trips[0].departureStopId&&e.trips[e.trips.length-1].arrivalStopId===t.trips[t.trips.length-1].arrivalStopId&&kt(e.trips.map(Ke.getTripKey),t.trips.map(Ke.getTripKey))}static matchSolutionPassengerReservation(e,t){return e.departureStopId===t.tickets[0].segments[0].departureId&&e.arrivalStopId===t.tickets[0].segments[t.tickets[0].segments.length-1].arrivalId&&kt(e.trips.map(Ke.getTripKey),t.tickets[0].segments.map(Ke.getReservationKey))}static matchTripByDateTicketReservation(e,t){return e.trips[0].departureStopId===t.segments[0].departureId&&e.trips[e.trips.length-1].arrivalStopId===t.segments[t.segments.length-1].arrivalId&&kt(e.trips.map(Ke.getTripKey),t.segments.map(Ke.getReservationKey))}static matchSolutionTicketReservation(e,t){return e.trips[0].departureStopId===t.segments[0].departureId&&e.trips[e.trips.length-1].arrivalStopId===t.segments[t.segments.length-1].arrivalId&&kt(e.trips.map(Ke.getTripKey),t.segments.map(Ke.getReservationKey))}static bestPriceByCategories(e){let t=999999;return e.forEach(i=>{i.priceInfo!=null&&t>i.priceInfo.totalPrice&&(t=i.priceInfo.totalPrice)}),t<999999?t:void 0}static bestRequestedPrice(e){var t,i;const a=e.filter(o=>!o.trips.some(p=>p.trip.blocked));if(a.length==0)return null;const r=a.some(o=>{var p,u,d;return((p=o.priceInfo)===null||p===void 0?void 0:p.totalPrice)!=null&&((u=o.priceInfo)===null||u===void 0?void 0:u.totalPrice)<((d=o.priceInfo)===null||d===void 0?void 0:d.fullPrice)}),n=(i=(t=Ki(a,o=>{var p,u;return(u=(p=o.priceInfo)===null||p===void 0?void 0:p.totalPrice)!==null&&u!==void 0?u:999999}).priceInfo)===null||t===void 0?void 0:t.totalPrice)!==null&&i!==void 0?i:null;return n!=null?{hasPromo:r,bestPrice:n}:null}static getBestPriceSolutions(e){var t,i;const a=Ne(Pe(e,r=>{var n;return(n=r.priceInfo)===null||n===void 0?void 0:n.totalPrice}),(r,n)=>({price:n?parseInt(n):Number.MAX_SAFE_INTEGER,solutions:r}));return a.length<2?[]:(i=(t=Qa(Hs(a,r=>r.price)))===null||t===void 0?void 0:t.solutions)!==null&&i!==void 0?i:[]}}Ke=pt;pt.GetTotalPassengers=s=>s.filter(e=>e.category.type==0).length;pt.GetTotalLuggagesAndVehicles=s=>{const e=s.filter(t=>t.category.type!==0);return Ke.GetSlotsOccupationForSelection(e)};pt.GetSlotsOccupationForSelection=s=>Q(s,t=>{if(t.extra&&t.extra.Lunghezza){const i=parseFloat(t.extra.Lunghezza);if(i&&!isNaN(i)&&i>0)return i}else if(t.category.defaultOccupation>0)return t.category.defaultOccupation;return 0});pt.GetRemainingSlots=s=>Q(s,e=>Q(e.trip.luggagesSlots,t=>t.Allotment!=null?Math.max(0,t.Units):t.Units));pt.GetRemainingSlotsByType=s=>{const t=s.flatMap(i=>Ne(Pe(i.trip.luggagesSlots,a=>a.CargoType),a=>({CargoType:a[0].CargoType,Units:Q(a.filter(r=>r.Allotment!=null?r.Units>0:!0),r=>r.Units)}))).map(i=>({CargoType:i.CargoType,remaining:i.Units}));return Q(t,i=>i.remaining)<=0?[]:t.filter(i=>i.remaining>0||i.CargoType!=null)};pt.GetAllottedSpace=s=>Q(s,e=>Q(e.trip.luggagesSlots.filter(t=>t.Allotment!=null),t=>t.Units));pt.getTripKey=s=>({tripId:s.trip.tripId,departure:s.departureStopId,departureTime:s.departureDateTime.valueOf(),arrival:s.arrivalStopId,arrivalTime:s.arrivalDateTime.valueOf()});pt.getReservationKey=s=>({tripId:s.tripId,departure:s.departureId,departureTime:s.departureTime.valueOf(),arrival:s.arrivalId,arrivalTime:s.arrivalTime.valueOf()});var Yn=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class Qn extends rs{constructor(){super(e=>e.id),this.use=e=>this.useWithAction(()=>ge.GetAll(),e),this.withAll=e=>Pt(e,this,()=>ge.GetAll()),z.onfunction(ge.getManyAccumulated,e=>this.updateOrAddAll(e)).onfunction(ge.GetAll,e=>{this.initialized=!0,this.updateOrAddAll(e)}).onfunction(ge.GetEnabledFareCategories,e=>this.updateOrAddAll(e))}getOrRequest(e){return Yn(this,void 0,void 0,function*(){this.isInitialized()||(yield ge.GetAll());const t=this.get(e);return t||(yield ge.getManyAccumulated([e])).find(a=>a.id==e)})}}const pd=new Qn;class Jn extends w{getCargoTypes(){return c.get(l.serverUrl+"cargotype").catch(this.asServerError)}getOneCargoType(e){return c.get(l.serverUrl+`cargotype/${e}`).catch(this.asServerError)}deleteCargoType(e){return c.delete(l.serverUrl+`cargotype/${e}`).catch(this.asServerError)}postCargoType(e){return c.post(l.serverUrl+"cargotype/",e).catch(this.asServerError)}putCargoType(e,t){return c.put(l.serverUrl+`cargotype/${t}`,e).catch(this.asServerError)}}var Xi=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},$e=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Mi=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class Ee{getAll(){return Mi(this,void 0,void 0,function*(){return(yield Ee.Service.getCargoTypes()).map(t=>Ee.toCargoTypeDto(t))})}get(e){return Mi(this,void 0,void 0,function*(){const t=yield Ee.Service.getOneCargoType(parseInt(e));return Ee.toCargoTypeDto(t)})}post(e){return Mi(this,void 0,void 0,function*(){const t=Ee.toCargoType(e);var i=yield Ee.Service.postCargoType(t);return e.id=i.id.toString(),e})}put(e){return Mi(this,void 0,void 0,function*(){return yield Ee.Service.putCargoType(e,parseInt(e.id)),e})}delete(e){return Mi(this,void 0,void 0,function*(){return yield Ee.Service.deleteCargoType(e),e.toString()})}}Ee.Service=new Jn;Ee.toCargoType=s=>({id:parseInt(s.id),description:s.description,title:s.title});Ee.toCargoTypeDto=s=>({id:s.id.toString(),description:s.description,title:s.title});Xi([h,$e("design:type",Function),$e("design:paramtypes",[]),$e("design:returntype",Promise)],Ee.prototype,"getAll",null);Xi([h,$e("design:type",Function),$e("design:paramtypes",[String]),$e("design:returntype",Promise)],Ee.prototype,"get",null);Xi([h,$e("design:type",Function),$e("design:paramtypes",[Object]),$e("design:returntype",Promise)],Ee.prototype,"post",null);Xi([h,$e("design:type",Function),$e("design:paramtypes",[Object]),$e("design:returntype",Promise)],Ee.prototype,"put",null);Xi([h,$e("design:type",Function),$e("design:paramtypes",[Number]),$e("design:returntype",Promise)],Ee.prototype,"delete",null);const Xt=new Ee;class Xn extends j{constructor(){super(e=>e.id),this.use=e=>this.useWithAction(()=>Xt.getAll(),e),this.useAll=()=>{const e=this.useAllWithAction(()=>Xt.getAll());return e?e.map(t=>({description:t.description,id:parseInt(t.id),title:t.title})):null},z.onfunction(Xt.getAll,e=>this.setAll(e)).onfunction(Xt.get,e=>this.updateOrAdd(e)).onfunction(Xt.post,e=>this.updateOrAdd(e)).onfunction(Xt.put,e=>this.update(e)).onfunction(Xt.delete,e=>this.delete(e))}}const gd=new Xn;class md extends w{getAll(){return c.get(l.serverUrl+"saleGroups").catch(this.asServerError)}save(e){return c.post(l.serverUrl+"saleGroups/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`saleGroups/${e}`).catch(this.asServerError)}}var Fa=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Ai=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};
1class ni{GetDepartures(e){return ni.service.getStopsFrom(e).then(t=>({saleGroupId:e,departures:t}))}GetArrivals(e,t){return ni.service.getStopsTo(e,t).then(i=>({departureId:e,saleGroupId:t,arrivals:i}))}}ni.service=new cs;Fa([h,Ai("design:type",Function),Ai("design:paramtypes",[Object]),Ai("design:returntype",void 0)],ni.prototype,"GetDepartures",null);Fa([h,Ai("design:type",Function),Ai("design:paramtypes",[String,Object]),Ai("design:returntype",void 0)],ni.prototype,"GetArrivals",null);const bi=new ni;class eo{constructor(){this.Changed=new Di,this._departuresStorage=new si,this._arrivalsStorage=new si,z.onfunction(bi.GetDepartures,e=>{var t;const i=(t=e.saleGroupId)!==null&&t!==void 0?t:"__default__",a=this._departuresStorage.get()||{};a[i]=e.departures,this._departuresStorage.set(a);const r=this._arrivalsStorage.get()||{};r[i]=[],this._arrivalsStorage.set(r),this.Changed.emit()}).onfunction(bi.GetArrivals,e=>{var t;const i=(t=e.saleGroupId)!==null&&t!==void 0?t:"__default__",a=this._arrivalsStorage.get()||{};
1a[i]=e.arrivals,this._arrivalsStorage.set(a),this.Changed.emit()})}getDeparture(e,t){var i;if(!e)return null;const a=t??"__default__",r=this._departuresStorage.get();if(!r)return null;const n=r[a];return(i=n==null?void 0:n.find(o=>o.id==e))!==null&&i!==void 0?i:null}getArrival(e,t){var i;if(!e)return null;const a=t??"__default__",r=this._arrivalsStorage.get();if(!r)return null;const n=r[a];return(i=n==null?void 0:n.find(o=>o.id==e))!==null&&i!==void 0?i:null}getDepartures(e){const t=e??"__default__",i=this._departuresStorage.get();if(!i)return null;const a=i[t];return a?a.sort((r,n)=>r.description.toLowerCase()<n.description.toLowerCase()?-1:r.description.toLowerCase()>n.description.toLowerCase()?1:0):null}getArrivals(e){const t=e??"__default__",i=this._arrivalsStorage.get();if(!i)return null;const a=i[t];return a?a.filter(r=>r.subscription!=null||r.open!=null).sort((r,n)=>r.description.toLowerCase()<n.description.toLowerCase()?-1:r.description.toLowerCase()>n.description.toLowerCase()?1:0):null}}const yi=new eo;var $r=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class za extends Le.PureComponent{constructor(){super(...arguments),this.onSelectDeparture=e=>$r(this,void 0,void 0,function*(){var t;e?yield bi.GetArrivals(e.id,(t=this.props.saleGroupId)!==null&&t!==void 0?t:null):this.setState({arrivals:[]}),this.props.onSelect(e||null,null)}),this.onSelectArrival=e=>{var t,i;this.props.onSelect((i=yi.getDeparture(this.props.selectedDeparture,(t=this.props.saleGroupId)!==null&&t!==void 0?t:null))!==null&&i!==void 0?i:null,e??null)}}componentDidUpdate(e){return $r(this,void 0,void 0,function*(){var t;this.props.selectedDeparture&&e.selectedDeparture!=this.props.selectedDeparture&&(yield bi.GetArrivals(this.props.selectedDeparture,(t=this.props.saleGroupId)!==null&&t!==void 0?t:null))})}componentDidMount(){return $r(this,void 0,void 0,function*(){var e,t;(this.props.departures==null||this.props.departures.length==0)&&(yield bi.GetDepartures((e=this.props.saleGroupId)!==null&&e!==void 0?e:null)),this.props.selectedDeparture&&(yield bi.GetArrivals(this.props.selectedDeparture,(t=this.props.saleGroupId)!==null&&t!==void 0?t:null))})}render(){var e,t,i;const a=this.props.component,r=(e=this.props.saleGroupId)!==null&&e!==void 0?e:null,n=this.props.selectedDeparture&&yi.getDeparture(this.props.selectedDeparture,r)||null,o=this.props.selectedArrival&&yi.getArrival(this.props.selectedArrival,r)||null;let{departures:p,arrivals:u}=this.props;return this.props.filter&&(p=(t=p==null?void 0:p.filter(this.props.filter))!==null&&t!==void 0?t:null,u=(i=u==null?void 0:u.filter(this.props.filter))!==null&&i!==void 0?i:null),N.jsx(a,{departures:p,arrivals:this.props.selectedDeparture&&u||[],departureValue:n,arrivalValue:o,onSelectDeparture:this.onSelectDeparture,onSelectArrival:this.onSelectArrival,disable:this.props.disable,onExchangeDepartureArrival:()=>{const d=yi.getArrival(this.props.selectedArrival,r);return this.props.onSelect(d,Object.assign(Object.assign({},yi.getDeparture(this.props.selectedDeparture,r)),{subscription:d==null?void 0:d.subscription,open:d==null?void 0:d.open,p2pTickets:d==null?void 0:d.p2pTickets}))},wrap:this.props.wrap})}}za.getSelector=s=>s.description;const vd=qs(za,yi,(s,e)=>{var t,i;return{departures:s.getDepartures((t=e.saleGroupId)!==null&&t!==void 0?t:null),arrivals:s.getArrivals((i=e.saleGroupId)!==null&&i!==void 0?i:null)}});class to extends w{getAll(){return c.get(l.serverUrl+"Stops").catch(this.asServerError)}getNearDepartureStops(e,t){return c.get(l.serverUrl+`Stops/nearDepartureStops?lat=${e??""}&lon=${t??""}`).catch(this.asServerError)}getInfomobility(){return c.get(l.serverUrl+"Stops/infoMobility").catch(this.asServerError)}get(e){return c.get(l.serverUrl+`Stops/${e}`).catch(this.asServerError)}getManyByIds(e){return c.post(l.serverUrl+"Stops/manyById",e).catch(this.asServerError)}getByGlobalStops(e){return c.get(l.serverUrl+`Stops/getByGlobalStop/${e}`).catch(this.asServerError)}post(e){return c.post(l.serverUrl+"Stops/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`Stops/${e}`).catch(this.asServerError)}}class io extends w{get(e){return c.get(l.serverUrl+`extraData/get/${e}`).catch(this.asServerError)}}var Zt=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},oe=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class be{constructor(){this.getManyAccumulated=Ht(di(150,e=>be.service.getManyByIds(e.filter(t=>t).join(","))))}add(e){return be.service.post(e)}get(e){return st.getManyAccumulated([e]).then(t=>{var i;return(i=t.find(a=>a.id==e))!==null&&i!==void 0?i:null})}save(e){return be.service.post(e)}requestAll(){return be.service.getAll()}getByGlobalStop(e){return be.service.getByGlobalStops(e)}delete(e){return be.service.delete(e).then(()=>e)}getNearDepartures(e,t){return be.service.getNearDepartureStops(e,t)}getInfoMobility(){return be.service.getInfomobility()}}be.service=new to;be.extraDataService=new io;Zt([h,oe("design:type",Function),oe("design:paramtypes",[Object]),oe("design:returntype",void 0)],be.prototype,"add",null);Zt([h,oe("design:type",Function),oe("design:paramtypes",[String]),oe("design:returntype",void 0)],be.prototype,"get",null);Zt([h,oe("design:type",Function),oe("design:paramtypes",[Object]),oe("design:returntype",void 0)],be.prototype,"save",null);Zt([h,oe("design:type",Function),oe("design:paramtypes",[]),oe("design:returntype",void 0)],be.prototype,"requestAll",null);Zt([h,oe("design:type",Function),oe("design:paramtypes",[String]),oe("design:returntype",void 0)],be.prototype,"getByGlobalStop",null);Zt([h,oe("design:type",Function),oe("design:paramtypes",[String]),oe("design:returntype",void 0)],be.prototype,"delete",null);Zt([h,oe("design:type",Function),oe("design:paramtypes",[Number,Number]),oe("design:returntype",void 0)],be.prototype,"getNearDepartures",null);Zt([h,oe("design:type",Function),oe("design:paramtypes",[]),oe("design:returntype",void 0)],be.prototype,"getInfoMobility",null);const st=new be;class ro extends w{getAllGlobal(){return c.get(l.serverUrl+"globalStops/all").catch(this.asServerError)}get(e){return c.get(l.serverUrl+`globalStops/${e}`).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`globalStops/${e}`).catch(this.asServerError)}merge(e){return c.post(l.serverUrl+"globalStops/merge",e).catch(this.asServerError)}separate(e){return c.post(l.serverUrl+"globalStops/separate",e).catch(this.asServerError)}}var er=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Ve=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Vr=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class Je{getAll(){return Je.service.getAllGlobal()}get(e){return Je.service.get(e)}delete(e){return Vr(this,void 0,void 0,function*(){return yield Je.service.delete(e),e})}merge(e,t){return Vr(this,void 0,void 0,function*(){return yield Je.service.merge({masterStopId:e,stopsToMergeIds:t}),{masterStopId:e,stopsToMergeIds:t}})}separate(e,t){return Vr(this,void 0,void 0,function*(){const i=yield Je.service.separate({globalStopId:e,stopsToSeparate:t});return{globalStopId:e,stopsToSeparate:t,newGlobalStop:i}})}}Je.service=new ro;er([h,Ve("design:type",Function),Ve("design:paramtypes",[]),Ve("design:returntype",void 0)],Je.prototype,"getAll",null);er([h,Ve("design:type",Function),Ve("design:paramtypes",[String]),Ve("design:returntype",void 0)],Je.prototype,"get",null);er([h,Ve("design:type",Function),Ve("design:paramtypes",[String]),Ve("design:returntype",Promise)],Je.prototype,"delete",null);er([h,Ve("design:type",Function),Ve("design:paramtypes",[String,Array]),Ve("design:returntype",Promise)],Je.prototype,"merge",null);er([h,Ve("design:type",Function),Ve("design:paramtypes",[String,Array]),Ve("design:returntype",Promise)],Je.prototype,"separate",null);const Is=new Je;var so=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class ao extends rs{constructor(){super(e=>e.id),this.use=e=>this.useWithAction(()=>e&&st.getManyAccumulated([e]),e),this.useAll=()=>this.useAllWithAction(()=>st.requestAll()),z.onfunction(st.add,e=>this.add(e)).onfunction(st.getManyAccumulated,e=>this.updateOrAddAll(e)).onfunction(st.save,e=>this.update(e)).onfunction(st.requestAll,e=>{this.initialized=!0,this.setAll(e)}
1).onfunction(st.delete,e=>this.delete(e)).onfunction(Is.merge,e=>{for(const t of e.stopsToMergeIds){const i=this.get(t);i&&(i.globalStopId=e.masterStopId,this.update(i))}}).onfunction(Is.separate,e=>{for(const t of e.stopsToSeparate){const i=this.get(t);i&&(i.globalStopId=e.newGlobalStop.id,this.update(i))}})}getSearchResult(e){if(e!==void 0){var t=this.getall().filter(i=>!i.External);return t.filter(i=>!i.isExternal&&i.description&&M.contains(i.description,e))}else return[]}}var wt=new ao;class no extends rs{static descriptionWithExtraData(e){var t;return e.description+(((t=e.extraDatas)===null||t===void 0?void 0:t.extraDatas)!=null&&Object.keys(e.extraDatas.extraDatas).length>0?` (${Object.keys(e.extraDatas.extraDatas).map(i=>{var a;return(a=e.extraDatas)===null||a===void 0?void 0:a.extraDatas[i]}).join(",")})`:"")}static get(e){return so(this,void 0,void 0,function*(){wt.isInitialized()||(yield st.requestAll());const t=wt.get(e);return t||(yield st.getManyAccumulated([e])).find(a=>a.id==e)})}}class oo extends w{getAll(){return c.get(l.serverUrl+"StopsPool").catch(this.asServerError)}getManyByIds(e){return c.post(l.serverUrl+"StopsPool/manyById",e).catch(this.asServerError)}save(e){return c.post(l.serverUrl+"StopsPool/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`StopsPool/${e}`).catch(this.asServerError)}renegerateAllLinePools(){return c.get(l.serverUrl+"StopsPool").catch(this.asServerError)}}var Cr=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},lt=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Ui=new oo;class tr{constructor(){this.getManyAccumulated=Ht(di(250,e=>Ui.getManyByIds(e.filter(t=>t).join(","))))}add(e){return Ui.save(e)}save(e){return Ui.save(e)}del(e){return Ui.delete(e).then(()=>e)}requestAll(){return Ui.getAll()}}Cr([h,lt("design:type",Function),lt("design:paramtypes",[Object]),lt("design:returntype",void 0)],tr.prototype,"add",null);Cr([h,lt("design:type",Function),lt("design:paramtypes",[Object]),lt("design:returntype",void 0)],tr.prototype,"save",null);Cr([h,lt("design:type",Function),lt("design:paramtypes",[String]),lt("design:returntype",void 0)],tr.prototype,"del",null);Cr([h,lt("design:type",Function),lt("design:paramtypes",[]),lt("design:returntype",void 0)],tr.prototype,"requestAll",null);const mt=new tr;var lo=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class co extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>mt.requestAll()),this.use=e=>this.useWithAction(()=>e&&mt.getManyAccumulated([e]),e),z.onfunction(mt.add,e=>this.add(e)).onfunction(mt.save,e=>this.update(e)).onfunction(mt.del,e=>this.delete(e)).onfunction(mt.requestAll,e=>this.updateOrAddAll(e)).onfunction(mt.getManyAccumulated,e=>this.updateOrAddAll(e))}getCustoms(){this.getall().filter(e=>e.type===0)}getSearchResult(e){if(e!==void 0){var t=this.getall();return t.filter(i=>i.description&&M.contains(i.description,e))}else return[]}}const Tt=new co;class ws extends j{static get(e){return lo(this,void 0,void 0,function*(){const t=Tt.get(e);return t||(yield mt.getManyAccumulated([e])).find(a=>a.id==e)})}}ws.stopOrPool=s=>s.stopId?no.get(s.stopId):ws.get(s.poolId);class uo extends w{getAllMultiTenant(){return c.get(l.serverUrl+"lines/multitenant").catch(this.asServerError)}getAll(e){return c.get(l.serverUrl+`lines?activeOnly=${e?"true":"false"}`).catch(this.asServerError)}get(e){return c.get(l.serverUrl+`lines/${e}`).catch(this.asServerError)}getTenants(e){return c.get(l.serverUrl+`lines/tenants/${e}`).catch(this.asServerError)}post(e){return c.post(l.serverUrl+"lines/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`lines/${e}`).then(t=>e).catch(this.asServerError)}}var Er=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},ct=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class ft{add(e){return ft.linesService.post(e)}save(e){return ft.linesService.post(e)}del(e){return ft.linesService.delete(e)}requestAll(e){return ft.linesService.getAll(e??null)}}ft.linesService=new uo;Er([h,ct("design:type",Function),ct("design:paramtypes",[Object]),ct("design:returntype",void 0)],ft.prototype,"add",null);Er([h,ct("design:type",Function),ct("design:paramtypes",[Object]),ct("design:returntype",void 0)],ft.prototype,"save",null);Er([h,ct("design:type",Function),ct("design:paramtypes",[String]),ct("design:returntype",void 0)],ft.prototype,"del",null);Er([h,ct("design:type",Function),ct("design:paramtypes",[Boolean]),ct("design:returntype",void 0)],ft.prototype,"requestAll",null);const ei=new ft;var ho=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class po extends j{constructor(){super(e=>e.id),this.notDismissed=()=>De(this.getall().filter(e=>!e.dismissed),e=>e.description),this.use=e=>this.useWithAction(()=>ei.requestAll(),e),this.useAll=()=>this.useAllWithAction(()=>ei.requestAll()),this.getOrRequest=e=>ho(this,void 0,void 0,function*(){var t;return(t=this.get(e))!==null&&t!==void 0?t:ei.requestAll().then(i=>i.find(a=>a.id==e))}),z.onfunction(ei.requestAll,e=>this.setAll(e)).onfunction(ei.add,e=>this.add(e)).onfunction(ei.save,e=>this.update(e)).onfunction(ei.del,e=>this.delete(e))}}const fd=new po;class yd extends w{getTimeTables(e,t){return c.get(l.serverUrl+`routestimetables/timetable?lineIds=${e??""}&date=${t&&this.toDateString(t)||""}`).catch(this.asServerError)}getActiveStopIds(e,t){return c.get(l.serverUrl+`routestimetables/activeStops?lineIds=${e??""}&date=${t&&this.toDateString(t)||""}`).catch(this.asServerError)}getRoutesForTimeTable(e,t,i){return c.get(l.serverUrl+`routestimetables/timetable/departure/${e}?lineIds=${t??""}&refDate=${i&&this.toDateString(i)||""}`).catch(this.asServerError)}getAllOperatingCalendars(){return c.get(l.serverUrl+"routestimetables/getAllOperatingCalendars").catch(this.asServerError)}getHolidays(e,t){return c.get(l.serverUrl+`routestimetables/holidays?fromDate=${e&&this.toDateString(e)||""}&toDate=${t&&this.toDateString(t)||""}`).catch(this.asServerError)}}class Rr extends w{getPendingRefunds(e){return c.get(l.serverUrl+"tickets/pendingRefunds?"+this.jsonToQueryString(e)).catch(this.asServerError)}
1getNotCheckedInTickets(e){return c.get(l.serverUrl+`tickets/notCheckedIn?date=${e&&this.toDateString(e)||""}`).catch(this.asServerError)}subscriptionOrTicket(e){return c.get(l.serverUrl+`tickets/subscriptionOrTicket?id=${e??""}`).catch(this.asServerError)}detailed(e){return c.get(l.serverUrl+`tickets/detailed?ticketId=${e??""}`).catch(this.asServerError)}payByLinkDetailByGroupId(e){return c.get(l.serverUrl+`tickets/paybylink/detailed/group/${e}`).catch(this.asServerError)}payByLinkDetailByTicketIds(e){return c.get(l.serverUrl+`tickets/paybylink/detailed/ticket/${e}`).catch(this.asServerError)}tickets(e){return c.post(l.serverUrl+"tickets/tickets",e).catch(this.asServerError)}ticketByCode(e){return c.get(l.serverUrl+`tickets/ticketbycode?ticketCode=${e??""}`).catch(this.asServerError)}replayOccupations(e){return c.get(l.serverUrl+`tickets/replayOccupations/${e}`)}compensation(e,t){return c.get(l.serverUrl+`tickets/compensation/${e}?dateTime=${t&&this.toDateString(t)||""}`)}fixStops(e){return c.get(l.serverUrl+`tickets/FixStops/${e}`)}rewrite(e){return c.get(l.serverUrl+`tickets/rewrite/${e}`)}userRestore(e){return c.get(l.serverUrl+`tickets/userRestore?ticketId=${e??""}`).catch(this.asServerError)}userCancelChangeDate(e){return c.get(l.serverUrl+`tickets/userCancelChangeDate?ticketId=${e??""}`).catch(this.asServerError)}changeValue(e){return c.post(l.serverUrl+"tickets/changeValue",e).catch(this.asServerError)}modify(e){return c.post(l.serverUrl+"tickets/modify",e).catch(this.asServerError)}modifyLuggage(e){return c.post(l.serverUrl+"tickets/modifyLuggage",e).catch(this.asServerError)}modifyExpiration(e){return c.post(l.serverUrl+"tickets/modifyExpiration",e).catch(this.asServerError)}restore(e){return c.get(l.serverUrl+`tickets/restore/${e}`)}ticketGroup(e){return c.get(l.serverUrl+`tickets/group?ticketGroupId=${e??""}`).catch(this.asServerError)}ticketGroupDetailed(e){return c.get(l.serverUrl+`tickets/groupDetailed?ticketGroupId=${e??""}`).catch(this.asServerError)}ticketGroupDetailedByIdForChangeDate(e){return c.get(l.serverUrl+`tickets/groupDetailedByIdForChangeDate?ticketId=${e??""}`).catch(this.asServerError)}ticketGroupDetailedById(e){return c.get(l.serverUrl+`tickets/groupDetailedById?ticketId=${e??""}`).catch(this.asServerError)}ticketGroupDetailedForPrinting(e){return c.get(l.serverUrl+`tickets/groupDetailedForPrinting?ticketGroupId=${e??""}`).catch(this.asServerError)}cancel(e){return c.post(l.serverUrl+"tickets/cancel2",e).catch(this.asServerError)}bookingCancel(e){return c.post(l.serverUrl+"tickets/bookingCancel",e).catch(this.asServerError)}cancelPreview(e){return c.get(l.serverUrl+"tickets/cancelPreview?"+this.jsonToQueryString(e)).catch(this.asServerError)}bookingCancelPreview(e){return c.get(l.serverUrl+"tickets/bookingCancelPreview?"+this.jsonToQueryString(e)).catch(this.asServerError)}refundPreview(e){return c.get(l.serverUrl+`tickets/refundPreview?ticketIds=${e??""}`).catch(this.asServerError)}refundOnly(e){return c.post(l.serverUrl+"tickets/refundOnly",e).catch(this.asServerError)}enableCancelation2(e){return c.post(l.serverUrl+"tickets/enableCancelation2",e).catch(this.asServerError)}enableCancelationMulti2(e){return c.post(l.serverUrl+"tickets/enableCancelationMulti2",e).catch(this.asServerError)}issue(e){return c.post(l.serverUrl+"tickets/issue",e)}payToBePayedCommissionsKept(e){return c.post(l.serverUrl+"tickets/payToBePayedCommissionsKept",e).catch(this.asServerError)}payToBePayed(e){return c.post(l.serverUrl+"tickets/payToBePayed",e).catch(this.asServerError)}ensureCanPayToBePayed(e){return c.post(l.serverUrl+`tickets/ensurePayToBePayed/${e}`).catch(this.asServerError)}payPaymentLink(e){return c.post(l.serverUrl+"tickets/payPaymentLink",e).catch(this.asServerError)}issueAnonymous(e){return c.post(l.serverUrl+"tickets/issueAnonymous",e)}sendTicketMessages(e){return c.post(l.serverUrl+"tickets/sendTicketMessages",e).catch(this.asServerError)}changeDate(e){return c.post(l.serverUrl+"tickets/changedate",e)}payChangeDate(e){return c.post(l.serverUrl+"tickets/paychangedate",e)}changeSeats(e){return c.post(l.serverUrl+"tickets/changeseats",e)}freeSeat(e){return c.post(l.serverUrl+"tickets/freeSeat",e)}reassignSeat(e){return c.post(l.serverUrl+"tickets/reassignSeat",e)}changePaymentMethod(e){return c.post(l.serverUrl+"tickets/changepaymentmethod",e)}getCompatiblePayments(e){return c.get(l.serverUrl+`tickets/getcompatiblepayments?groupId=${e??""}`)}cancelCheckIn(e){return c.post(l.serverUrl+"tickets/cancelcheckin",e)}refund(e){return c.post(l.serverUrl+"tickets/refund",e)}checkin(e){return c.post(l.serverUrl+"tickets/checkin",e)}confirmPagoPA(){return c.post(l.serverUrl+"tickets/confirmPagoPA").catch(this.asServerError)}eventManualUpdate(e){return c.get(l.serverUrl+`tickets/manualeventupdate/${e}`)}syncTicketSearch(e){return c.get(l.serverUrl+`tickets/sync-tickets-search/${e}`)}wholeEventsUpdate(e){return c.get(l.serverUrl+`tickets/wholeeventsupdate/${e}`)}addInvoiceData(e){return c.post(l.serverUrl+"tickets/addinvoicedata",e).catch(this.asServerError)}removeInvoiceData(e){return c.post(l.serverUrl+"tickets/removeinvoicedata",e).catch(this.asServerError)}removeInvoicesData(e){return c.post(l.serverUrl+"tickets/removeinvoicesdata",e).catch(this.asServerError)}getLinkableTickets(e){return c.get(l.serverUrl+`tickets/linkableTickets/${e}`).catch(this.asServerError)}getPricedLuggagesForTicket(e,t){return c.get(l.serverUrl+`tickets/pricedluggagesforticket/${e}?billingOperatorId=${t??""}`).catch(this.asServerError)}getLuggagesForTicket(e,t){return c.get(l.serverUrl+`tickets/luggagesforticket/${e}?billingOperatorId=${t??""}`).catch(this.asServerError)}getServicesPrices(e){return c.post(l.serverUrl+"tickets/servicesPrices",e).catch(this.asServerError)}getCancelTicketLuggagePreview(e){return c.get(l.serverUrl+`tickets/cancelticketluggagepreview/${e}`).catch(this.asServerError)}getCancelTicketLuggagesPreviewForBooking(e){return c.post(l.serverUrl+"tickets/cancelticketluggagesbookingpreview",e).catch(this.asServerError)}getCancelTicketLuggagesPreview(e){return c.post(l.serverUrl+"tickets/cancelticketluggagespreview",e).catch(this.asServerError)}changeTicketLuggageOnATicket(e){return c.post(l.serverUrl+"tickets/changeticketluggage",e).catch(this.asServerError)}modifyTicketLuggagesOnATicketForBooking(e){return c.post(l.serverUrl+"tickets/modifyticketluggages",e).catch(this.asServerError)}addToCalendar(e){return c.get(l.serverUrl+`tickets/addToCalendar/${e}`).catch(this.asServerError)}getExtraParams(e){return c.get(l.serverUrl+`tickets/extraparams?id=${e??""}`).catch(this.asServerError)}getTicketAndOpensForBooking(e){return c.get(l.serverUrl+`tickets/bookingAll?previous=${e?"true":"false"}`).catch(this.asServerError)}getBankTransfersToRefund(e){return c.get(l.serverUrl+`tickets/bankTransfersToRefund?ids=${e??""}`).catch(this.asServerError)}confirmPosRefund(e){return c.post(l.serverUrl+"tickets/confirmposrefund",e).catch(this.asServerError)}modifyBankTransferData(e){return c.post(l.serverUrl+"tickets/modifyBankTransferData",e).catch(this.asServerError)}getAddPassengersInGroupInfos(e){return c.post(l.serverUrl+"tickets/addPassengersInGroupInfo",e).catch(this.asServerError)}getReservationToPay(e){return c.get(l.serverUrl+`tickets/reservationToPay?reservationId=${e??""}`).catch(this.asServerError)}
1getPreexistingExternalCodes(e){return c.post(l.serverUrl+"tickets/preexistingExternalCodes",e)}getByPersonId(e){return c.get(l.serverUrl+`tickets/forPerson/${e}`).catch(this.asServerError)}riprotezione(e){return c.post(l.serverUrl+"tickets/riprotezione",e).catch(this.asServerError)}cancelOnly(e){return c.post(l.serverUrl+"tickets/cancelOnly",e).catch(this.asServerError)}changeUser(e){return c.post(l.serverUrl+"tickets/changeUser",e).catch(this.asServerError)}hasFullChangeDatePenalty(e){return c.get(l.serverUrl+`tickets/hasFullChangeDatePenalty?ticketId=${e??""}`).catch(this.asServerError)}}class go extends w{getLight(e){return c.get(l.serverUrl+"tickets/light?"+this.jsonToQueryString(e)).catch(this.asServerError)}replay(e,t,i,a,r,n,o,p,u,d,m,b,D,T){return c.get(l.serverUrl+`tickets/replay/${e}?skipFinancialMovements=${t?"true":"false"}&skipCommissionsData=${i?"true":"false"}&force=${a?"true":"false"}&skipStats=${r?"true":"false"}&skipCheckinOperations=${n?"true":"false"}&skipNotifications=${o?"true":"false"}&skipInvoiceRequests=${p?"true":"false"}&skipFidelities=${u?"true":"false"}&skipOccupations=${d?"true":"false"}&skipSubscriptionUsage=${m?"true":"false"}&skipRefreshAzureSearch=${b?"true":"false"}&skipRefundLogic=${D?"true":"false"}&skipReadModel=${T?"true":"false"}`)}replaceGuids(e){return c.get(l.serverUrl+`tickets/replacer/${e}`)}moveDatabase(){return c.get(l.serverUrl+"tickets/move-database")}checkAlreadyIssueTicketsWithSameDataNoDeserialize(e){return c.get(l.serverUrl+`tickets/unbalance-infos/${e}`)}}var O=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},v=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},jt=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class f{constructor(){this.getManyAccumulated=Ht(di(150,e=>f.service.tickets(e))),this.getManyAnonymous=Ht(e=>f.service.payByLinkDetailByTicketIds(e.join(",")))}TICKETS_SEARCHED(e){return f.gatewayService.getLight(e).then(t=>({tickets:t,filter:e}))}ticket(e){return Ze.getManyAccumulated([e]).then(t=>{var i;return(i=t.find(a=>a.id==e))!==null&&i!==void 0?i:null})}ticketDetail(e){return f.service.detailed(e).then(t=>({ticket:t,id:e}))}getSubscriptionOrTicket(e){return f.service.subscriptionOrTicket(e)}ticketGroup(e){return f.service.ticketGroup(e).then(t=>({tickets:t.tickets,urlPdf:t.urlPdf,id:e}))}ticketGroupDetailed(e){return f.service.ticketGroupDetailed(e).then(t=>({tickets:t.tickets,urlPdf:t.urlPdf}))}ticketGroupDetailedByTicketID(e){return f.service.ticketGroupDetailedById(e).then(t=>({tickets:t.tickets,urlPdf:t.urlPdf}))}ticketGroupDetailedByIdForChangeDate(e){return f.service.ticketGroupDetailedByIdForChangeDate(e).then(t=>({tickets:t.tickets,urlPdf:t.urlPdf}))}ticketGroupDetailedForPrinting(e){return f.service.ticketGroupDetailedForPrinting(e).then(t=>({tickets:t.tickets,urlPdf:t.urlPdf,id:e}))}cancel(e){return f.service.cancel(e)}bookingCancel(e){return f.service.bookingCancel(e)}refundOnly(e){return f.service.refundOnly(e)}TICKET_ENABLE_CANCELATION_MULTI2(e,t,i){return f.service.enableCancelationMulti2({ticketIds:e,changeDateOnly:t,changeDateIsFree:i}).then(()=>e)}CHANGE_DATE(e){return jt(this,void 0,void 0,function*(){const t=E().get();if(!t)throw"reservation null";const i=yield f.service.changeDate(Object.assign(Object.assign({},e),{reservationId:t.reservationId,addressData:void 0,requestedExpiration:e.requestedExpiration}));return E().clear(),i})}changeSeats(e){return f.service.changeSeats(e)}freeSeat(e){return f.service.freeSeat(e)}sendTicketMessages(e){return f.service.sendTicketMessages(e)}getByCode(e){return f.service.ticketByCode(e)}cancelCheckIn(e,t,i){let a={tripId:t,salesChannel:i,ticketIds:[e]};return f.service.cancelCheckIn(a)}reassignSeat(e,t){let i={ticketId:e,tripId:t};return f.service.reassignSeat(i)}cancelCheckIns(e,t,i){let a={tripId:t,salesChannel:i,ticketIds:e};return f.service.cancelCheckIn(a)}checkIn(e,t,i,a){let r={tripId:t,salesChannel:i,ticketIds:[e],billingOperatorId:a};return f.service.checkin(r)}checkIns(e,t,i,a){let r={ticketIds:e,tripId:t,salesChannel:i,billingOperatorId:a};return f.service.checkin(r)}ModifyTicketData(e){return f.service.modify(e)}ModifyTicketExpiration(e){return f.service.modifyExpiration(e)}ModifyItemData(e){return f.service.modifyLuggage(e)}AddInvoiceData(e){return f.service.addInvoiceData(e)}RemoveInvoiceData(e){return f.service.removeInvoiceData(e)}RemoveInvoicesData(e){return f.service.removeInvoicesData(e)}changePaymentMethod(e){return f.service.changePaymentMethod(e)}GetLinkableTickets(e){return jt(this,void 0,void 0,function*(){return yield f.service.getLinkableTickets(e)})}getCancelTicketLuggagePreview(e){return f.service.getCancelTicketLuggagePreview(e)}getCancelTicketLuggagesPreview(e,t){var i={ticketId:e,selectedLuggages:t};return f.service.getCancelTicketLuggagesPreview(i)}getCancelTicketLuggagesPreviewForBooking(e,t){var i={ticketId:e,selectedLuggages:t};return f.service.getCancelTicketLuggagesPreviewForBooking(i)}changeTicketLuggageOnATicket(e){return f.service.changeTicketLuggageOnATicket(e)}modifyTicketLuggagesOnATicketForBooking(e){return f.service.modifyTicketLuggagesOnATicketForBooking(e)}payToBePayed(e){return f.service.payToBePayed(e)}ensurepayToBePayed(e){return f.service.ensureCanPayToBePayed(e)}userRestore(e){return f.service.userRestore(e)}userCancelChangeDate(e){return f.service.userCancelChangeDate(e)}getExtraParams(e){return f.service.getExtraParams(e)}refund(e){return f.service.refund(e)}getBankTransfersToRefund(e){return f.service.getBankTransfersToRefund(e.join(","))}confirmPosRefund(e){return f.service.confirmPosRefund(e)}modifyBankTransferData(e){return f.service.modifyBankTransferData(e)}getAddPassengersInGroupInfos(e){return f.service.getAddPassengersInGroupInfos(e)}PAY_CHANGE_DATE_RESERVATION(e){return jt(this,void 0,void 0,function*(){return yield f.service.payChangeDate(e)})}getReservationToPay(e){return jt(this,void 0,void 0,function*(){return yield f.service.getReservationToPay(e)})}payPaymentLink(e){return f.service.payPaymentLink(e)}getCompatiblePayments(e){return f.service.getCompatiblePayments(e)}getByPersonId(e){return jt(this,void 0,void 0,function*(){var t=yield f.service.getByPersonId(e);return{personId:e,result:t}})}changeUser(e,t){return jt(this,void 0,void 0,function*(){yield f.service.changeUser({UserId:e,TicketIds:t})})}payToBePayedCommissionsKept(e){return jt(this,void 0,void 0,function*(){return yield f.service.payToBePayedCommissionsKept(e)}
1)}hasFullPenalty(e){return jt(this,void 0,void 0,function*(){return yield f.service.hasFullChangeDatePenalty(e)})}}f.service=new Rr;f.gatewayService=new go;O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"TICKETS_SEARCHED",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"ticket",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"ticketDetail",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"getSubscriptionOrTicket",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"ticketGroup",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"ticketGroupDetailed",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"ticketGroupDetailedByTicketID",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"ticketGroupDetailedByIdForChangeDate",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"ticketGroupDetailedForPrinting",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"cancel",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"bookingCancel",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"refundOnly",null);O([h,v("design:type",Function),v("design:paramtypes",[Array,Boolean,Boolean]),v("design:returntype",void 0)],f.prototype,"TICKET_ENABLE_CANCELATION_MULTI2",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",Promise)],f.prototype,"CHANGE_DATE",null);O([h,v("design:type",Function),v("design:paramtypes",[Array]),v("design:returntype",void 0)],f.prototype,"changeSeats",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"freeSeat",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"sendTicketMessages",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"getByCode",null);O([h,v("design:type",Function),v("design:paramtypes",[String,String,Number]),v("design:returntype",void 0)],f.prototype,"cancelCheckIn",null);O([h,v("design:type",Function),v("design:paramtypes",[String,String]),v("design:returntype",void 0)],f.prototype,"reassignSeat",null);O([h,v("design:type",Function),v("design:paramtypes",[Array,String,Number]),v("design:returntype",void 0)],f.prototype,"cancelCheckIns",null);O([h,v("design:type",Function),v("design:paramtypes",[String,String,Number,Object]),v("design:returntype",void 0)],f.prototype,"checkIn",null);O([h,v("design:type",Function),v("design:paramtypes",[Array,String,Number,Object]),v("design:returntype",void 0)],f.prototype,"checkIns",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"ModifyTicketData",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"ModifyTicketExpiration",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"ModifyItemData",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"AddInvoiceData",null);O([h,h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"RemoveInvoiceData",null);O([h,v("design:type",Function),v("design:paramtypes",[Array]),v("design:returntype",void 0)],f.prototype,"RemoveInvoicesData",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"changePaymentMethod",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",Promise)],f.prototype,"GetLinkableTickets",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"getCancelTicketLuggagePreview",null);O([h,v("design:type",Function),v("design:paramtypes",[String,Array]),v("design:returntype",void 0)],f.prototype,"getCancelTicketLuggagesPreview",null);O([h,v("design:type",Function),v("design:paramtypes",[String,Array]),v("design:returntype",void 0)],f.prototype,"getCancelTicketLuggagesPreviewForBooking",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"changeTicketLuggageOnATicket",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"modifyTicketLuggagesOnATicketForBooking",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"payToBePayed",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"ensurepayToBePayed",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"userRestore",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"userCancelChangeDate",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"getExtraParams",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"refund",null);O([h,v("design:type",Function),v("design:paramtypes",[Array]),v("design:returntype",void 0)],f.prototype,"getBankTransfersToRefund",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"confirmPosRefund",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"modifyBankTransferData",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"getAddPassengersInGroupInfos",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",Promise)],f.prototype,"PAY_CHANGE_DATE_RESERVATION",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",Promise)],f.prototype,"getReservationToPay",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",void 0)],f.prototype,"payPaymentLink",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",void 0)],f.prototype,"getCompatiblePayments",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",Promise)],f.prototype,"getByPersonId",null);O([h,v("design:type",Function),v("design:paramtypes",[String,Array]),v("design:returntype",Promise)],f.prototype,"changeUser",null);O([h,v("design:type",Function),v("design:paramtypes",[Object]),v("design:returntype",Promise)],f.prototype,"payToBePayedCommissionsKept",null);O([h,v("design:type",Function),v("design:paramtypes",[String]),v("design:returntype",Promise)],f.prototype,"hasFullPenalty",null);const Ze=new f;var ve=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},k=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},fe=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};let ne=class B{static needsReservation(e,t){if(e.length!==t.length)return!0;for(let i=0;i<e.length;++i){const a=e[i],r=t[i];
1if(a.fareCategoryId!=r.fareCategoryId||!kt(a.extraData||null,r.extraData||null)||a.hasDisabilities!=r.hasDisabilities||a.personId!=r.personId||!kt(a.specialAssistanceIds,r.specialAssistanceIds))return!0}return!1}applyCoupon(e){return fe(this,void 0,void 0,function*(){const t=E().get();t&&(E().loading=!0,B.reservationAction(yield B.service.applyCoupon(e,t.reservationId)),E().loading=!1)})}applyFidelity(e){return fe(this,void 0,void 0,function*(){const t=E().get();t&&(E().loading=!0,B.reservationAction(yield B.service.applyFidelity(e,t.reservationId)),E().loading=!1)})}removeFidelity(){return fe(this,void 0,void 0,function*(){const e=E().get();e&&(E().loading=!0,B.reservationAction(yield B.service.removeFidelity(e.reservationId)),E().loading=!1)})}applyBillingOperator(e){return fe(this,void 0,void 0,function*(){const t=E().get();t&&(E().loading=!0,e?B.reservationAction(yield B.service.applyBillingOperator(e,t.reservationId)):B.reservationAction(yield B.service.removeBillingOperator(t.reservationId)),E().loading=!1)})}applyInvoiceData(e){return fe(this,void 0,void 0,function*(){const t=E().get();t&&(E().loading=!0,e?B.reservationAction(yield B.service.applyInvoiceData(e,t.reservationId)):B.reservationAction(yield B.service.removeInvoiceData(t.reservationId)),E().loading=!1)})}getFareableLuggages(e){return fe(this,void 0,void 0,function*(){return yield B.service.getFareableLuggages(e)})}get(e){return fe(this,void 0,void 0,function*(){var t=yield B.service.get(e);t&&E().applyReservationData(t)})}setLuggages(e){return fe(this,void 0,void 0,function*(){let t=E().get();if(!t){const r=e.filter(n=>n.category.type!=0);E().luggageSelection=r;return}E().loading=!0;const i=t.passengerReservations.map((r,n)=>({passengerIndex:n,selectedLuggages:e.filter(o=>o.subGroupId==n).map(o=>({id:o.category.id,extraData:o.extra,cardId:o.cardId}))}));B.reservationAction(yield B.service.setLuggages(i,t.reservationId)),t=E().get();const a=yield fr.safeGetAll();E().luggageSelection=Ae.ToLuggageSelection(t,a),E().loading=!1})}setPassengersForIssue(e,t){const i=e.map(a=>({passenger:a,options:[],luggages:void 0}));return this.setPassengers(i,t)}setPassengersForIssueWithLuggages(e,t,i){return fe(this,void 0,void 0,function*(){const a=Ne(Pe(e,r=>r.subGroupId),r=>({passenger:t[r[0].subGroupId],luggages:r.filter(n=>n.category.type!=0).map(n=>
1({id:n.category.id,extraData:n.extra}))}));return yield this.setLuggages(e.filter(r=>r.category.type!=0)),this.setPassengers(a,i)})}setPassengers(e,t){return fe(this,void 0,void 0,function*(){const i=e.map(({passenger:r})=>({surname:r.surname,name:r.name,notes:r.notes,fareCategoryId:r.fareCategoryId,nominal:!1,excludedCategoriesIds:[],hasDisabilities:r.hasDisabilities,personId:r.personId,extraData:r.extraData,specialAssistanceIds:r.specialAssistanceIds})),a=E().get();if(a){const r=(t==null?void 0:t.force)||t.isFamily!=null&&t.isFamily!=a.isFamily||B.needsReservation(e.map(n=>n.passenger),E().getPassengers());if(a&&r&&i.length>0){E().loading=!0;const n=yield B.service.setPassengers(e,a.reservationId,null,t.isFamily);if(B.reservationAction(n),n.data){const o=bt.FromPassengerReservations(n.data.passengerReservations);E().applyPassengers(o);const p=yield fr.safeGetAll();E().luggageSelection=Ae.ToLuggageSelection(a,p)}else E().applyPassengers(i);E().loading=!1}else E().applyPassengers(i);return r}else E().applyPassengers(i);return!1})}selectSeats(e){return fe(this,void 0,void 0,function*(){const t=E().get();t&&(E().loading=!0,B.reservationAction(yield B.service.selectSeats(e,t.reservationId)),E().loading=!1)})}selectPaymentMethod(e,t,i,a){return fe(this,void 0,void 0,function*(){const r=E().get();r&&(E().loading=!0,B.reservationAction(yield B.service.selectPaymentMethod(e,r.reservationId,t??null,i??!1,a??null)),E().loading=!1)})}forcePrice(e){return fe(this,void 0,void 0,function*(){const t=E().get();t&&(E().loading=!0,B.reservationAction(yield B.service.forcePrice(e,t.reservationId)),E().loading=!1)})}forcePriceDetail(e){return fe(this,void 0,void 0,function*(){const t=E().get();t&&(E().loading=!0,B.reservationAction(yield B.service.forcePriceDetailed(e,t.reservationId)),E().loading=!1)})}deleteForcedPrice(){return fe(this,void 0,void 0,function*(){const e=E().get();e&&(E().loading=!0,B.reservationAction(yield B.service.deleteForcedPrice(e.reservationId)),E().loading=!1)})}disableRelief(){return fe(this,void 0,void 0,function*(){const e=E().get();if(!e)return;E().loading=!0;const t=yield B.service.disableRelief(e.reservationId);B.reservationAction(t),E().loading=!1})}enableRelief(){return fe(this,void 0,void 0,function*(){const e=E().get();e&&(E().loading=!0,B.reservationAction(yield B.service.enableRelief(e.reservationId)),E().loading=!1)})}extendExpiration(){return fe(this,void 0,void 0,function*(){const e=E().get();e&&(E().loading=!0,B.reservationAction(yield B.service.extendExpiration(e.reservationId)),E().loading=!1)})}delete(){return fe(this,void 0,void 0,function*(){const e=E().get();e&&(E().loading=!0,yield B.service.delete(e.reservationId),E().clear())})}createOrUpdate(e,t,i,a,r,n){return fe(this,void 0,void 0,function*(){const o=E().get(),p=E().passengers.map((m,b)=>{var D,T,A,I;const C=ae((I=(T=(D=o==null?void 0:o.passengerReservations[b])===null||D===void 0?void 0:D.tickets)===null||T===void 0?void 0:T.map(L=>L.segments))!==null&&I!==void 0?I:[]),q=t.map(L=>({segments:L.trips.map(G=>{var Ce,Y,V;return{departureId:G.departureStopId,departureTime:G.departureDateTime,arrivalId:G.arrivalStopId,arrivalTime:G.arrivalDateTime,carrierId:G.trip.carrierId,tripId:G.trip.tripId,seatNumbers:ae(C==null?void 0:C.filter(H=>H.tripId==G.trip.tripId).map(H=>H.seatNumbers)),seatChosen:(V=(Y=(Ce=C==null?void 0:C.filter(H=>H.tripId==G.trip.tripId))===null||Ce===void 0?void 0:Ce.find(H=>H.seatChosen==!0))===null||Y===void 0?void 0:Y.seatChosen)!==null&&V!==void 0?V:!1}})})),ce=(A=i==null?void 0:i.filter(L=>L.subGroupId==b&&L.category.type!=0))===null||A===void 0?void 0:A.map(L=>({id:L.category.id,extraData:L.extra}));return{passenger:m,tickets:q,luggages:ce}});let u={reservationId:o&&o.reservationId||void 0,passengers:p,salesChannel:e,caller:Gt.environmentName,changeDate:!1,forcedReferral:a,groupId:r,useReservedSeats:n};E().loading=!0,E().linkedTicket=null;const d=yield B.service.createOrUpdate(u);if(d.data&&d.data.passengerReservations.length!=u.passengers.length){const m=d.data.passengerReservations.map(({passenger:b})=>({surname:b.surname,name:b.name,notes:b.notes,fareCategoryId:b.fareCategoryId,nominal:!1,excludedCategoriesIds:[],hasDisabilities:b.hasDisabilities,personId:b.personId,extraData:b.extraData,specialAssistanceIds:b.specialAssistanceIds}));E().applyPassengers(m)}d.data&&(E().linkedTickets=yield Ze.GetLinkableTickets(d.data.reservationId)),B.reservationAction(d),E().luggageSelection.length>0&&i==null&&(yield this.setLuggages(E().luggageSelection)),E().loading=!1})}createOrUpdateForChangeDate(e,t,i){return fe(this,void 0,void 0,function*(){const a=E().get();let r={reservationId:a&&a.reservationId||void 0,salesChannel:t,groupId:i,caller:Gt.environmentName,changeDate:!0,passengers:e.map(u=>({passenger:u.passenger,luggages:void 0,tickets:u.tickets.map(d=>({ticketId:d.ticketId,segments:d.solution.trips.map(m=>({departureId:m.departureStopId,departureTime:m.departureDateTime,arrivalId:m.arrivalStopId,arrivalTime:m.arrivalDateTime,carrierId:m.trip.carrierId,tripId:m.trip.tripId}))}))}))};E().loading=!0,E().linkedTicket=null;const n=yield B.service.createOrUpdate(r);E().loading=!1,n.data&&(E().linkedTickets=yield Ze.GetLinkableTickets(n.data.reservationId)),B.reservationAction(n);const o=yield fr.safeGetAll(),p=n.data?Ae.ToLuggageSelection(n.data,o):[];E().luggageSelection=p})}};ne.service=new Zn;ne.reservationAction=s=>{var e;const t=E().get();if(s.errorCode==null)E().applyReservationData(s.data);else if(E().OnError.emit(s.errorCode),t){E().applyReservationData(t);const i=bt.FromPassengerReservations((e=t==null?void 0:t.passengerReservations)!==null&&e!==void 0?e:[]);E().passengers=i}};ve([h,k("design:type",Function),k("design:paramtypes",[String]),k("design:returntype",Promise)],ne.prototype,"applyCoupon",null);ve([h,k("design:type",Function),k("design:paramtypes",[String]),k("design:returntype",Promise)],ne.prototype,"applyFidelity",null);ve([h,k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",Promise)],ne.prototype,"removeFidelity",null);ve([h,k("design:type",Function),k("design:paramtypes",[Object]),k("design:returntype",Promise)],ne.prototype,"applyBillingOperator",null);ve([h,k("design:type",Function),k("design:paramtypes",[Object]),k("design:returntype",Promise)],ne.prototype,"applyInvoiceData",null);ve([h,k("design:type",Function),k("design:paramtypes",[String]),k("design:returntype",Promise)],ne.prototype,"getFareableLuggages",null);ve([h,k("design:type",Function),k("design:paramtypes",[String]),k("design:returntype",Promise)],ne.prototype,"get",null);ve([h,k("design:type",Function),k("design:paramtypes",[Array]),k("design:returntype",Promise)],ne.prototype,"setLuggages",null);ve([h,k("design:type",Function),k("design:paramtypes",[Array,Object]),k("design:returntype",void 0)],ne.prototype,"setPassengersForIssue",null);ve([h,k("design:type",Function),k("design:paramtypes",[Array,Array,Object]),k("design:returntype",Promise)],ne.prototype,"setPassengersForIssueWithLuggages",null);ve([h,k("design:type",Function),k("design:paramtypes",[Array,Object]),k("design:returntype",Promise)],ne.prototype,"setPassengers",null);ve([h,k("design:type",Function),k("design:paramtypes",[Array]),k("design:returntype",Promise)],ne.prototype,"selectSeats",null);ve([h,k("design:type",Function),k("design:paramtypes",[Number,String,Boolean,String]),k("design:returntype",Promise)],ne.prototype,"selectPaymentMethod",null);ve([h,k("design:type",Function),k("design:paramtypes",[Number]),k("design:returntype",Promise)],ne.prototype,"forcePrice",null);ve([h,k("design:type",Function),k("design:paramtypes",[Object]),k("design:returntype",Promise)],ne.prototype,"forcePriceDetail",null);ve([h,k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",Promise)],ne.prototype,"deleteForcedPrice",null);ve([h,k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",Promise)],ne.prototype,"disableRelief",null);ve([h,k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",Promise)],ne.prototype,"enableRelief",null);ve([h,k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",Promise)],ne.prototype,"extendExpiration",null);ve([h,k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",Promise)],ne.prototype,"delete",null);ve([h,k("design:type",Function),k("design:paramtypes",[Number,Array,Array,String,String,Boolean]),k("design:returntype",Promise)],ne.prototype,"createOrUpdate",null);ve([h,k("design:type",Function),k("design:paramtypes",[Array,Number,String]),k("design:returntype",Promise)],ne.prototype,"createOrUpdateForChangeDate",null);const mo=new ne;class us extends w{autocomplete(e){return c.get(l.serverUrl+`search/autocomplete?query=${e??""}`).catch(this.asServerError)}
1getNearDepartureLocalities(e,t){return c.get(l.serverUrl+`search/nearDepartureLocalities?lat=${e??""}&lon=${t??""}`).catch(this.asServerError)}post(e,t,i,a,r,n,o,p,u,d,m,b,D,T,A,I){return c.post(l.serverUrl+`search/s/${e}/${t}/${this.toDateString(i)}/${this.toDateString(a)}?channel=${r??""}&reservationId=${o??""}&inStaging=${p?"true":"false"}&isReturn=${u?"true":"false"}&excludeExternals=${d?"true":"false"}&partial=${m?"true":"false"}&caller=${b??""}&changeDate=${D?"true":"false"}&locale=${T??""}&coupon=${A??""}&useReservedSeats=${I?"true":"false"}`,n).catch(this.asServerError)}weeklySearch(e,t,i){return c.get(l.serverUrl+`search/weekly?departure=${e??""}&arrival=${t??""}&excludeExternals=${i?"true":"false"}`).catch(this.asServerError)}postNoPrice(e,t,i,a,r,n,o,p,u,d,m,b,D,T,A){return c.post(l.serverUrl+`search/no-price?departure=${e??""}&arrival=${t??""}&dateFrom=${i&&this.toDateString(i)||""}&dateTo=${a&&this.toDateString(a)||""}&channel=${r??""}&reservationId=${o??""}&inStaging=${p?"true":"false"}&isReturn=${u?"true":"false"}&excludeExternals=${d?"true":"false"}&partial=${m?"true":"false"}&caller=${b??""}&changeDate=${D?"true":"false"}&subscriptionTypeId=${T??""}&locale=${A??""}`,n).catch(this.asServerError)}byTrip(e,t,i,a,r,n){return c.get(l.serverUrl+`search/trip/${e}/${t}?skipValidator=${i?"true":"false"}&excludeNotPurchasable=${a?"true":"false"}&allowPartial=${r?"true":"false"}&allowBlocked=${n?"true":"false"}`).catch(this.asServerError)}byTripMov(e,t,i,a){return c.get(l.serverUrl+`search/tripmov/${e}?skipValidator=${t?"true":"false"}&excludeNotPurchasable=${i?"true":"false"}&allowPartial=${a?"true":"false"}`).catch(this.asServerError)}arrivingToTrip(e,t,i,a,r,n){return c.get(l.serverUrl+`search/toTrip/${e}/${t}?skipValidator=${i?"true":"false"}&excludeNotPurchasable=${a?"true":"false"}&allowPartial=${r?"true":"false"}&allowBlocked=${n?"true":"false"}`).catch(this.asServerError)}arrivingToTripMov(e,t,i,a){return c.get(l.serverUrl+`search/toTripMov/${e}?skipValidator=${t?"true":"false"}&excludeNotPurchasable=${i?"true":"false"}&allowPartial=${a?"true":"false"}`).catch(this.asServerError)}tripInfo(e){return c.post(l.serverUrl+"search/tripInfo/",e).catch(this.asServerError)}}var vo=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},xr=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},fo=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};let hs=class Oa{searchWeek(e,t){return fo(this,void 0,void 0,function*(){const i=yield Oa.Service.weeklySearch(e,t,!1);return{departure:e,arrival:t,solutions:i}})}};hs.Service=new us;vo([h,xr("design:type",Function),xr("design:paramtypes",[String,String]),xr("design:returntype",Promise)],hs.prototype,"searchWeek",null);const ks=new hs;let yo=class extends Hi{constructor(){super(),this.use=(e,t)=>this.useStoreWithAction(`${e}-${t}`,()=>e&&t?ks.searchWeek(e,t):[]),z.onfunction(ks.searchWeek,e=>this.set(`${e.departure}-${e.arrival}`,e.solutions))}};const bd=new yo,Pd=s=>s.id?N.jsx($t,{id:s.id,selector:e=>e.shortDescription}):null,Ad=s=>s.id?N.jsx($t,{id:s.id,selector:e=>e.address}):null,Cd=s=>N.jsx($t,{id:s.id,selector:e=>e.description}),Ed=s=>N.jsx($t,{id:s.id,selector:e=>P.getTimeString(s.date,{timezone:e.timezone})}),Rd=s=>N.jsx($t,{id:s.id,selector:e=>M.capitalize(P.getShortFriendlyDate(s.date,s.hl,{timezone:e.timezone}))});class $t extends Le.Component{constructor(e){super(e),this.listener=()=>{const t=wt.get(this.props.id);this.state.stop!=t&&this.setState({stop:t})},this.state={stop:wt.get(e.id)}}componentDidMount(){wt.Changed.register(this.listener),this.state.stop||st.getManyAccumulated([this.props.id])}UNSAFE_componentWillReceiveProps(e){if(this.props.id!==e.id){let t=wt.get(e.id);t?this.setState({stop:t}):st.getManyAccumulated([e.id])}}componentWillUnmount(){wt.Changed.unregister(this.listener)}static getStop(e){return wt.get(e)}render(){var e;return this.state.stop?N.jsx(N.Fragment,{children:this.props.selector(this.state.stop)}):(e=this.props.else)!==null&&e!==void 0?e:null}}let So=class extends w{getAllNotFiltered(){return c.get(l.serverUrl+"carriers/allnotfiltered").cat
1ch(this.asServerError)}getAll(e){return c.get(l.serverUrl+`carriers?isCarrier=${e??""}`).catch(this.asServerError)}get(e){return c.get(l.serverUrl+`carriers/${e}`).catch(this.asServerError)}getAllRentals(){return c.get(l.serverUrl+"carriers/allrentals").catch(this.asServerError)}saveRental(e){return c.post(l.serverUrl+"carriers/saverental",e).catch(this.asServerError)}setRental(e){return c.post(l.serverUrl+`carriers/setrental/${e}`).catch(this.asServerError)}removeRental(e){return c.delete(l.serverUrl+`carriers/removerental?carrierId=${e??""}`).catch(this.asServerError)}};var Ni=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Ie=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};let Yt=class ii{getAllForTenant(){return ii.service.getAll()}getAllRentals(){return ii.service.getAllRentals()}saveRental(e){return ii.service.saveRental(e)}setRental(e){return ii.service.setRental(e)}deleteRental(e){return ii.service.removeRental(e)}getAll(){return ii.service.getAllNotFiltered()}};Yt.service=new So;Ni([h,Ie("design:type",Function),Ie("design:paramtypes",[]),Ie("design:returntype",void 0)],Yt.prototype,"getAllForTenant",null);Ni([h,Ie("design:type",Function),Ie("design:paramtypes",[]),Ie("design:returntype",void 0)],Yt.prototype,"getAllRentals",null);Ni([h,Ie("design:type",Function),Ie("design:paramtypes",[Object]),Ie("design:returntype",void 0)],Yt.prototype,"saveRental",null);Ni([h,Ie("design:type",Function),Ie("design:paramtypes",[String]),Ie("design:returntype",void 0)],Yt.prototype,"setRental",null);Ni([h,Ie("design:type",Function),Ie("design:paramtypes",[String]),Ie("design:returntype",void 0)],Yt.prototype,"deleteRental",null);Ni([h,Ie("design:type",Function),Ie("design:paramtypes",[]),Ie("design:returntype",void 0)],Yt.prototype,"getAll",null);const He=new Yt;let bo=class extends j{constructor(){super(e=>e.id),this.temporarycompanies=[{id:"openjob",name:"OpenJob"},{id:"temporary",name:"Temporary"}],this.useAll=()=>this.useAllWithAction(()=>He.getAll()),this.useAllTenant=()=>this.useAllWithAction(()=>He.getAllForTenant()),z.onfunction(He.getAllForTenant,e=>this.setAll(e)).onfunction(He.setRental,e=>this.updateOrAdd(e)).onfunction(He.deleteRental,e=>this.updateOrAdd(e))}getAll(){return this.getall()}get(e){return this.getAll().find(t=>t.id===e)||null}getDefault(){return this.getAll().find(e=>e.isDefault)}getAllTemporary(){return this.temporarycompanies}getTemporary(e){return this.temporarycompanies.find(t=>t.id===e)}formatCompany(e){var t="";if(e.driverType.employed&&(t="Di ruolo"),e.driverType.temporary){let a=this.getTemporary(e.temporarycompanyid);a!==void 0&&(t=a.name);var i=0;e.workingPeriods.forEach(r=>{i=i+P.differenceInDays(r.to,r.from).days}),t=t+" (Giorni lavorati: "+i+")"}return t}};const La=new bo;let Po=class extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>He.getAllForTenant()),z.onfunction(He.getAll,e=>this.setAll(e))}};const Ao=new Po;let Co=class extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>He.getAllRentals()),z.onfunction(He.getAllRentals,e=>this.setAll(e)).onfunction(He.saveRental,e=>this.updateOrAdd(e)).onfunction(He.setRental,e=>this.updateOrAdd(e)).onfunction(He.deleteRental,e=>this.delete(e.id))}};new Co;function Eo(s){return Ga(s,La,He.getAllForTenant)}let Ro=(s,e)=>Pt(s,Ao,()=>He.getAll(),e);var Do=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},_r=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class ir{tripInfo(e){return ir.service.tripInfo(e)}}ir.service=new us;Do([h,_r("design:type",Function),_r("design:paramtypes",[Array]),_r("design:returntype",void 0)],ir.prototype,"tripInfo",
1null);const kd=new ir;class Nd extends w{getDrivers(){return c.get(l.serverUrl+"drivers/light").catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`drivers/${e}`).catch(this.asServerError)}getAll(){return c.get(l.serverUrl+"drivers").catch(this.asServerError)}search(e){return c.get(l.serverUrl+"drivers/search?"+this.jsonToQueryString(e)).catch(this.asServerError)}}class Fd extends w{get(e){return c.get(l.serverUrl+`drivers/${e}`).catch(this.asServerError)}post(e){return c.post(l.serverUrl+"drivers/",e).catch(this.asServerError)}}var Qt=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},le=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},pr=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class pe{GetDepartures(){return pe.service.getSubscriptionsDepartures()}GetArrivals(e){return pe.service.getSubscriptionsArrivals(e)}REQUEST_INFO(e){const{departureStopOrPool:t,arrivalId:i,subscriptionTypeId:a,date:r,personId:n,saleChannel:o,paymentMethod:p,coupon:u,vatNumber:d,ministeroVoucherData:m,qty:b,billingOperator:D,fareCategoryId:T,extraData:A}=e;return pe.service.calculateInfos({subscriptionTypeId:a,departurePool:t,arrivalPool:i,startValidity:r??void 0,personId:n??void 0,salesChannel:o,paymentMethod:p??void 0,couponCode:u,vatNumber:d??void 0,ministeroVoucherData:m??void 0,qty:b??1,billingOperator:D??void 0,fareCategoryId:T??void 0,extraData:A})}getfor(e,t){return pe.service.getSubscriptionTypes(e,t).then(i=>({departureId:e,arrivalId:t,types:i}))}ISSUE(e,t,i,a,r){return pr(this,void 0,void 0,function*(){var n,o,p,u,d,m,b,D,T,A,I,C,q,ce,L;if(e.items.length>1){const G={departureStopOrPool:e.departure,arrivalPool:e.arrival,startValidity:e.date,subscriptionTypeId:((n=e.subscriptionType)===null||n===void 0?void 0:n.id)||"",paymentMethod:(b=e.paymentMethod)!==null&&b!==void 0?b:void 0,okUrl:t,koUrl:i,useWallet:e.useWallet,salesChannel:e.saleChannel,invoiceData:(D=e.invoiceData)!==null&&D!==void 0?D:void 0,forcedPrice:e.forcedPrice,paymentDataId:(T=e.paymentDataId)!==null&&T!==void 0?T:void 0,savePaymentData:e.savePaymentData,items:e.items,callingCode:e.callingCode,phoneNumber:e.phoneNumber,email:e.email,addressData:void 0,couponCode:e.couponCode,transactionCode:a,bonusTrasportiData:e.ministeroVoucherData,billingOperator:e.billingOperator,clientIntegrationPaymentId:e.clientIntegrationPaymentId,paymentUrl:r||"",fiscalCode:e.fiscalCode730,sendSms:(A=e.sendSms)!==null&&A!==void 0?A:!1,numContratto:e.numContratto,nexiApmResponse:e.nexiApmResponse,subPaymentMethod:e.subPaymentMethod};return yield e.anonymous?pe.service.issueMultipleAnonymous(G):pe.service.issueMultiple(G)}else{const G={departureStopOrPool:e.departure,arrivalPool:e.arrival,startValidity:e.date,personId:(o=e.person)===null||o===void 0?void 0:o.id,subscriptionTypeId:((p=e.subscriptionType)===null||p===void 0?void 0:p.id)||"",paymentMethod:(I=e.paymentMethod)!==null&&I!==void 0?I:void 0,okUrl:t,koUrl:i,useWallet:e.useWallet,salesChannel:e.saleChannel,invoiceData:(C=e.invoiceData)!==null&&C!==void 0?C:void 0,forcedPrice:e.forcedPrice,paymentDataId:(q=e.paymentDataId)!==null&&q!==void 0?q:void 0,savePaymentData:e.savePaymentData,name:(u=e.items[0])===null||u===void 0?void 0:u.name,surname:(d=e.items[0])===null||d===void 0?void 0:d.surname,notes:(ce=(m=e.items[0])===null||m===void 0?void 0:m.notes)!==null&&ce!==void 0?ce:"",callingCode:e.callingCode,phoneNumber:e.phoneNumber,email:e.email,addressData:void 0,couponCode:e.couponCode,transactionCode:a,bonusTrasportiData:e.ministeroVoucherData,billingOperator:e.billingOperator,fareCategoryId:e.fareCategoryId,clientIntegrationPaymentId:e.clientIntegrationPaymentId,paymentUrl:r||"",fiscalCode:e.fiscalCode730,sendSms:(L=e.sendSms)!==null&&L!==void 0?L:!1,extraData:e.extraData,numContratto:e.numContratto,nexiApmResponse:e.nexiApmResponse,subPaymentMethod:e.subPaymentMethod};return yield e.anonymous?pe.service.issueAnonymous(G):pe.service.issue(G)}})}getPreviewForSearch(e,t,i){return pr(this,void 0,void 0,function*(){var a=yield pe.service.getSubscriptionPreviewWithChoicesForSearch(e,t,i);return{departure:e,arrival:t,saleChannel:i,result:a}})}getPreviewForTypes(e,t,i,a,r){return pr(this,void 0,void 0,function*(){return!i||i.length==0?null:yield pe.service.getSubscriptionPreviewsWithChoicesAsync(e,t,i.join(","),a,r)})}payToBePayed(e){return pr(this,void 0,void 0,function*(){return pe.service.payToBePayed(e)})}}pe.service=new os;Qt([h,le("design:type",Function),le("design:paramtypes",[]),le("design:returntype",void 0)],pe.prototype,"GetDepartures",null);Qt([h,le("design:type",Function),le("design:paramtypes",[String]),le("design:returntype",void 0)],pe.prototype,"GetArrivals",null);Qt([h,le("design:type",Function),le("design:paramtypes",[Object]),le("design:returntype",void 0)],pe.prototype,"REQUEST_INFO",null);Qt([h,le("design:type",Function),le("design:paramtypes",[String,String]),le("design:returntype",void 0)],pe.prototype,"getfor",null);Qt([h,le("design:type",Function),le("design:paramtypes",[Object,String,String,Object,String]),le("design:returntype",Promise)],pe.prototype,"ISSUE",null);Qt([h,le("design:type",Function),le("design:paramtypes",[String,String,Number]),le("design:returntype",Promise)],pe.prototype,"getPreviewForSearch",null);Qt([h,le("design:type",Function),le("design:paramtypes",[String,String,Array,Number,Object]),le("design:returntype",Promise)],pe.prototype,"getPreviewForTypes",null);Qt([h,le("design:type",Function),le("design:paramtypes",[Object]),le("design:returntype",Promise)],pe.prototype,"payToBePayed",null);const ai=new pe;class To extends w{getAll(e){return c.get(l.serverUrl+`paymentmethods?price=${e??""}`).catch(this.asServerError)}getForSubscriptionSale(e,t,i){return c.get(l.serverUrl+`paymentmethods/subscriptions?price=${e??""}&channel=${t??""}&vatNumber=${i??""}`).catch(this.asServerError)}getGeneral(e,t){return c.get(l.serverUrl+`paymentmethods/general?price=${e??""}&carriers=${t??""}`).catch(this.asServerError)}getForShippedLuggagesSale(e){return c.post(l.serverUrl+"paymentmethods/shippedLuggages",e).catch(this.asServerError)}getForReservation(e,t){return c.get(l.serverUrl+`paymentmethods/reservations/${e}?changeDate=${t?"true":"false"}`).catch(this.asServerError)}getForPayByLink(e){return c.get(l.serverUrl+`paymentmethods/payByLink/${e}`).catch(this.asServerError)}getForWalletCharge(){return c.get(l.serverUrl+"paymentmethods/walletcharge").catch(this.asServerError)}getForCardPayment(){return c.get(l.serverUrl+"paymentmethods/card").cat
1ch(this.asServerError)}getForPayToBePayed(e){return c.post(l.serverUrl+"paymentmethods/paytobepayed",e).catch(this.asServerError)}deletePaymentData(e){return c.delete(l.serverUrl+`paymentmethods/paymentData/${e}`).catch(this.asServerError)}}var Rt=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},K=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},At=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class ue{delete(e){return At(this,void 0,void 0,function*(){return yield ue.service.deletePaymentData(e.id),e.id})}get(e){return At(this,void 0,void 0,function*(){const t=yield ue.service.getAll(e);return{price:e,result:t}})}getForReservation(e,t){return At(this,void 0,void 0,function*(){return yield ue.service.getForReservation(e,t)})}getForSubscriptionSale(e,t,i){return At(this,void 0,void 0,function*(){return yield ue.service.getForSubscriptionSale(e,t,i)})}getGeneral(e,t){return At(this,void 0,void 0,function*(){return yield ue.service.getGeneral(e,t==null?void 0:t.join(","))})}getForShippedLuggagesSale(e,t,i){return At(this,void 0,void 0,function*(){return yield ue.service.getForShippedLuggagesSale({price:e,dateTimeDto:P.ToDateTimeDto(t),carriers:i==null?void 0:i.join(",")})})}getForWalletCharge(){return At(this,void 0,void 0,function*(){return yield ue.service.getForWalletCharge()})}getForPayToBePayed(e){return At(this,void 0,void 0,function*(){return yield ue.service.getForPayToBePayed(e)})}getForPayByLink(e){return At(this,void 0,void 0,function*(){return yield ue.service.getForPayByLink(e)})}getForCard(){return At(this,void 0,void 0,function*(){return yield ue.service.getForCardPayment()})}}ue.service=new To;Rt([h,K("design:type",Function),K("design:paramtypes",[Object]),K("design:returntype",Promise)],ue.prototype,"delete",null);Rt([h,K("design:type",Function),K("design:paramtypes",[Number]),K("design:returntype",Promise)],ue.prototype,"get",null);Rt([h,K("design:type",Function),K("design:paramtypes",[String,Boolean]),K("design:returntype",Promise)],ue.prototype,"getForReservation",null);Rt([h,K("design:type",Function),K("design:paramtypes",[Number,Number,Object]),K("design:returntype",Promise)],ue.prototype,"getForSubscriptionSale",null);Rt([h,K("design:type",Function),K("design:paramtypes",[Number,Array]),K("design:returntype",Promise)],ue.prototype,"getGeneral",null);Rt([h,K("design:type",Function),K("design:paramtypes",[Number,Date,Array]),K("design:returntype",Promise)],ue.prototype,"getForShippedLuggagesSale",null);Rt([h,K("design:type",Function),K("design:paramtypes",[]),K("design:returntype",Promise)],ue.prototype,"getForWalletCharge",null);Rt([h,K("design:type",Function),K("design:paramtypes",[Object]),K("design:returntype",Promise)],ue.prototype,"getForPayToBePayed",null);Rt([h,K("design:type",Function),K("design:paramtypes",[String]),K("design:returntype",Promise)],ue.prototype,"getForPayByLink",null);Rt([h,K("design:type",Function),K("design:paramtypes",[]),K("design:returntype",Promise)],ue.prototype,"getForCard",null);const zd=new ue;class Io{constructor(){this.wallet=void 0,this.Changed=new Di,z.onfunction(ls.get,e=>this.setWallet(e)).onfunction(he.logOff,()=>this.setWallet(void 0))}setWallet(e){this.wallet=e,this.Changed.emit()}getWallet(){return this.wallet}}const Ns=new Io;let Od=s=>Wa(s,()=>Ns.getWallet(),Ns.Changed,()=>ls.get());class Ld extends w{createPaypalOrderSubscription(e){return c.post(l.serverUrl+"paypal/create-paypal-order-subscription",e).catch(this.asServerError)}createPaypalOrder(e){return c.post(l.serverUrl+"paypal/create-paypal-order",e).catch(this.asServerError)}createPaypalOrderChangeDate(e){return c.post(l.serverUrl+"paypal/create-paypal-order-changedate",e).catch(this.asServerError)}createPaypalOrderWalletCharge(e){return c.post(l.serverUrl+"paypal/create-paypal-order-wallet-charge",e).catch(this.asServerError)}createPaypalOrderPayToBePayed(e){return c.post(l.serverUrl+"paypal/create-paypal-order-pay-to-be-payed",e).catch(this.asServerError)}createPaypalOrderAddLuggages(e){return c.post(l.serverUrl+"paypal/create-paypal-order-add-luggages",e).catch(this.asServerError)}transactionInfo(e){return c.get(l.serverUrl+`paypal/transactionInfo?code=${e??""}`).catch(this.asServerError)}}class Md extends w{calculateIssueInput(e){return c.post(l.serverUrl+"NexiClient/calculateIssueInput",e).catch(this.asServerError)}calculateChangeDateInput(e){return c.post(l.serverUrl+"NexiClient/calculateChangeDateInput",e).catch(this.asServerError)}calculateWalletChargeInput(e){return c.post(l.serverUrl+"NexiClient/calculateWalletChargeInput",e).catch(this.asServerError)}calculatePayToBePayedInput(e){return c.post(l.serverUrl+"NexiClient/calculatePayToBePayedInput",e).catch(this.asServerError)}calculateSubscriptionInput(e){return c.post(l.serverUrl+"NexiClient/calculateSubscriptionInput",e).catch(this.asServerError)}calculateAddLuggagesInput(e){return c.post(l.serverUrl+"NexiClient/calculateAddLuggagesInput",e).catch(this.asServerError)}}class Ud extends w{createOrderSubscription(e){return c.post(l.serverUrl+"client-payments/create-order-subscription",e).catch(this.asServerError)}createOrderTickets(e){return c.post(l.serverUrl+"client-payments/create-order-tickets",e).catch(this.asServerError)}createOrderChangeDate(e){return c.post(l.serverUrl+"client-payments/create-order-changedate",e).catch(this.asServerError)}createOrderWalletCharge(e){return c.post(l.serverUrl+"client-payments/create-order-wallet-charge",e).catch(this.asServerError)}createOrderPayToBePayed(e){return c.post(l.serverUrl+"client-payments/create-order-pay-to-be-payed",e).catch(this.asServerError)}createOrderAddLuggages(e){return c.post(l.serverUrl+"client-payments/create-order-add-luggages",e).catch(this.asServerError)}}class wo extends Ti{constructor(){super(e=>{var t;return(t=e.operatorId)!==null&&t!==void 0?t:""}),z.onfunction(ls.forOperator,e=>this.updateOrAdd(e.wallet))}getByOperatorId(e){return this.get(e)}}const Bd=new wo;class ko extends w{getAll(){return c.get(l.serverUrl+"reliefs").catch(this.asServerError)}getAllInfo(){return c.get(l.serverUrl+"reliefs/infos").catch(this.asServerError)}get(e){return c.get(l.serverUrl+`reliefs/${e}`).catch(this.asServerError)}post(e){return c.post(l.serverUrl+"reliefs/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`reliefs/${e}`).catch(this.asServerError)}}var rr=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},xe=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},No=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class Xe{add(e){return Xe.reliefsService.post(e)}save(e){return Xe.reliefsService.post(e)}del(e){return No(this,void 0,void 0,function*(){return yield Xe.reliefsService.delete(e),e})}requestAll(){return Xe.reliefsService.getAll()}requestAllInfos(){return Xe.reliefsService.getAllInfo()}}Xe.reliefsService=new ko;rr([h,xe("design:type",Function),xe("design:paramtypes",[Object]),xe("design:returntype",void 0)],Xe.prototype,"add",null);rr([h,xe("design:type",Function),xe("design:paramtypes",[Object]),xe("design:returntype",void 0)],Xe.prototype,"save",null);rr([h,xe("design:type",Function),xe("design:paramtypes",[String]),xe("design:returntype",Promise)],Xe.prototype,"del",null);rr([h,xe("design:type",Function),xe("design:paramtypes",[]),xe("design:returntype",void 0)],Xe.prototype,"requestAll",null);rr([h,xe("design:type",Function),xe("design:paramtypes",[]),xe("design:returntype",void 0)],Xe.prototype,"requestAllInfos",null);const at=new Xe;class Fo extends j{constructor(){super(e=>e.id),this.use=e=>this.useWithAction(()=>at.requestAll(),e),this.useAll=()=>this.useAllWithAction(()=>at.requestAll()),z.onfunction(at.requestAllInfos,e=>this.setAll(e)).onfunction(at.add,e=>this.add(e)).onfunction(at.save,e=>this.update(e)).onfunction(at.del,e=>this.delete(e))}}const $d=new Fo;class zo extends j{constructor(){super(e=>e.id),this.use=e=>this.useWithAction(()=>at.requestAll(),e),this.useAll=()=>this.useAllWithAction(()=>at.requestAll()),z.onfunction(at.requestAll,e=>this.setAll(e)).onfunction(at.add,e=>this.add(e)).onfunction(at.save,e=>this.update(e)).onfunction(at.del,e=>this.delete(e))}}new zo;class ps{}ps.getRemainingTrips=s=>s.tripsNumber!=null?s.tripsNumber-s.tripsUsed:null;ps.showValidity=s=>s.activationStatus==!1?!1:(s.validity.to.valueOf()-new Date().valueOf())/(1e3*60*60*24)<180;ps.getMinMaxDate=(s,e,t)=>{const a=e.find(d=>d===g.cansearchsolutionsonpreviousdates.name)!=null?Temporal.Now.plainDateISO().add({days:t.limitGraphPreviosDays}):Temporal.Now.plainDateISO(),r=Temporal.Now.plainDateISO().add({months:12}),n=P.ToPlainDate(s.validity.from),o=P.ToPlainDate(s.validity.to),p=Temporal.PlainDate.compare(n,a)>0?n:a,u=Temporal.PlainDate.compare(o,r)>0?r:o;return Gs.Create(p,u)};class Oo extends w{getAll(){return c.get(l.serverUrl+"extraFares").catch(this.asServerError)}post(e){return c.post(l.serverUrl+"extraFares/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`extraFares/${e}`).catch(this.asServerError)}}var gs=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},zt=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Lo=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};let sr=class Sr{requestAll(){return Sr.service.getAll()}save(e){return Lo(this,void 0,void 0,function*(){return yield Sr.service.post(e),e})}delete(e){return Sr.service.delete(e).then(()=>e)}};sr.service=new Oo;gs([h,zt("design:type",Function),zt("design:paramtypes",[]),zt("design:returntype",void 0)],sr.prototype,"requestAll",null);gs([h,zt("design:type",Function),zt("design:paramtypes",[Object]),zt("design:returntype",Promise)],sr.prototype,"save",null);gs([h,zt("design:type",Function),zt("design:paramtypes",[String]),zt("design:returntype",void 0)],sr.prototype,"delete",null);const Bi=new sr;class Mo extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>Bi.requestAll()),this.use=e=>this.useWithAction(()=>Bi.requestAll(),e),z.onfunction(Bi.save,e=>this.updateOrAdd(e)).onfunction(Bi.delete,e=>this.delete(e)).onfunction(Bi.requestAll,e=>{this.setAll(e)}
1)}}const Vd=new Mo;var Uo=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};const xd=s=>N.jsx(Qr,{id:s.id,selector:e=>{var t;return(t=e.shortDescription)!==null&&t!==void 0?t:e.description}});class Qr extends Le.Component{constructor(e){super(e),this.listener=()=>{const t=Tt.get(this.props.id);this.state.stop!=t&&this.setState({stop:t})},this.state={stop:Tt.get(e.id)}}componentDidMount(){Tt.Changed.register(this.listener),this.state.stop||this.request(this.props.id)}componentDidUpdate(e){if(this.props.id!==e.id){let t=Tt.get(this.props.id);t?this.setState({stop:t}):Tt.isInitialized()?mt.getManyAccumulated([this.props.id]):this.request(this.props.id)}}request(e){return Uo(this,void 0,void 0,function*(){(yield mt.requestAll()).find(i=>i.id==e)||(yield mt.getManyAccumulated([e]))})}componentWillUnmount(){Tt.Changed.unregister(this.listener)}static getStopsPool(e){return Tt.get(e)}render(){return this.state.stop?N.jsx("span",{children:this.props.selector(this.state.stop)}):N.jsx("span",{})}}const _d=s=>N.jsx(ms,{id:s.id,selector:(e,t)=>{var i;return N.jsx("span",{children:(i=e==null?void 0:e.description)!==null&&i!==void 0?i:t==null?void 0:t.description})}}),jd=s=>N.jsx(ms,{id:s.id,selector:(e,t)=>{var i,a;return N.jsx("span",{children:(a=(i=e==null?void 0:e.shortDescription)!==null&&i!==void 0?i:t==null?void 0:t.shortDescription)!==null&&a!==void 0?a:t==null?void 0:t.description})}}),qd=s=>N.jsx(ms,{id:s.id,selector:(e,t)=>{var i,a;return N.jsx("span",{children:(a=(i=e==null?void 0:e.description)!==null&&i!==void 0?i:t==null?void 0:t.shortDescription)!==null&&a!==void 0?a:t==null?void 0:t.description})}}),ms=s=>wt.get(s.id)!=null?N.jsx($t,{id:s.id,selector:i=>s.selector(i,void 0)}):Tt.get(s.id)!=null?N.jsx(Qr,{id:s.id,selector:i=>s.selector(void 0,i)}):N.jsx($t,{id:s.id,selector:i=>s.selector(i,void 0),else:N.jsx(Qr,{id:s.id,selector:i=>s.selector(void 0,i)})});class Bo extends w{getAll(){return c.get(l.serverUrl+"subscriptionTypes").catch(this.asServerError)}getForPersons(e){return c.post(l.serverUrl+"subscriptionTypes/forPerson",e).catch(this.asServerError)}save(e){return c.post(l.serverUrl+"subscriptionTypes/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`subscriptionTypes/${e}`).catch(this.asServerError)}}var vs=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Ot=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class Et{constructor(){this.getManyAccumulatedForPerson=Ht(di(150,e=>Et.service.getForPersons(e)))}getall(){return Et.service.getAll()}delete(e){return Et.service.delete(e)}save(e){return Et.service.save(e).then(t=>(e.id=t,e))}}Et.service=new Bo;vs([h,Ot("design:type",Function),Ot("design:paramtypes",[]),Ot("design:returntype",void 0)],Et.prototype,"getall",null);vs([h,Ot("design:type",Function),Ot("design:paramtypes",[String]),Ot("design:returntype",void 0)],Et.prototype,"delete",null);vs([h,Ot("design:type",Function),Ot("design:paramtypes",[Object]),Ot("design:returntype",void 0)],Et.prototype,"save",null);const et=new Et;let $o=class extends j{constructor(){super(e=>e.id),this.use=e=>{var t;return(t=this.useAllWithAction(()=>et.getall()))===null||t===void 0?void 0:t.find(i=>i.id==e)},this.useAll=()=>this.useAllWithAction(()=>et.getall()),z.onfunction(et.save,e=>{e.type===0&&this.updateOrAdd(e)}).onfunction(et.getall,e=>this.setAll(e.filter(t=>t.type===0)))}};const Vo=new $o;var xo=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};let _o=class extends j{constructor(){super(e=>e.id),this.use=e=>{var t;return(t=this.useAllWithAction(()=>et.getall()))===null||t===void 0?void 0:t.find(i=>i.id==e)},this.useAll=()=>this.useAllWithAction(()=>et.getall()),this.safeGetAll=()=>xo(this,void 0,void 0,function*(){return this.isInitialized()?this.getall():(yield et.getall(),this.getall())}),z.onfunction(et.save,e=>this.updateOrAdd(e)).onfunction(et.getall,e=>this.setAll(e))}};const jo=new _o;class qo extends j{constructor(){super(e=>e.id),z.onfunction(et.save,e=>{e.type===1&&this.updateOrAdd(e)}).onfunction(et.getall,e=>this.setAll(e.filter(t=>t.type===1)))}}new qo;const Hd=s=>Pt(s,Vo,()=>et.getall()),Kd=s=>Pt(s,jo,()=>et.getall());class Zd{constructor(e){this.id="",this.description="",this.salePeriod=Re.Always,this.enabledLines=[],this.accountingLine="",this.disableDefaultCategory=!1,this.personRequired=!1,this.showPricePreview=!1,this.subscriptionLocalities=[],this.syncronizedWithPersonValidity=!1,this.maxKm=void 0,this.isCity=!1,this.calculateValidityOnFirstReservation=!1,this.solarMonthNumber=void 0,this.descriptionDe="",this.descriptionEn="",this.descriptionFr="",this.descriptionEs="",this.adminDescription="",this.enabledLinesOnCheckIn=[],this.zones={},this.enable730Transmission=!1,this.validDates=[],this.oneWay=!1,this.nominal=!1,this.solarYear=!1,this.allowMultipleTicketsInSameTrip=!1,this.type=e}static GetDescription(e,t=null,i){var a=e.description;return t=="en"&&(a=e.descriptionEn||e.description),t=="fr"&&(a=e.descriptionFr||e.description),t=="de"&&(a=e.descriptionDe||e.description),t=="es"&&(a=e.descriptionEs||e.description),i&&e.adminDescription&&(a+=` (${e.adminDescription})`),a}}class Yd{constructor(e){this.name="",this.surname="",this.email="",this.companyName="",this.address="",this.countryIsoCode="IT",this.fiscalCode="",this.postalCode="",this.localityId="",this.localityDescription="",this.prov="",this.vatNumber="",this.pec="",this.sdi="",this.isCompany=!0,this.isCompany=e}}class Go{constructor(){this.name="",this.surname="",this.companyName="",this.fiscalCode="",this.vatNumber="",this.address="",this.localityId="",this.sdi="",this.pec="",this.email="",this.postalCode=""}}class Wo extends w{get(e){return c.get(l.serverUrl+`invoicerequests?id=${e??""}`).catch(this.asServerError)}process(e,t){return c.post(l.serverUrl+`invoicerequests/process?processDate=${t&&this.toDateString(t)||""}`,e)}filter(e){return c.get(l.serverUrl+"invoicerequests/filter?"+this.jsonToQueryString(e)).catch(this.asServerError)}myInvoicesData(){return c.get(l.serverUrl+"invoicerequests/myinvoices").catch(this.asServerError)}searchInvoiceData(e){return c.get(l.serverUrl+`invoicerequests/search?search=${e??""}`).catch(this.asServerError)}allCompaniesInvoiceData(){return c.get(l.serverUrl+"invoicerequests/allcompanies").catch(this.asServerError)}saveInvoiceData(e){return c.post(l.serverUrl+"invoicerequests/saveinvoicedata",e).catch(this.asServerError)}deleteInvoiceData(e,t){return c.delete(l.serverUrl+`invoicerequests/deleteinvoicedata?fiscalCode=${e??""}&vatNumber=${t??""}`).catch(this.asServerError)}}var Fi=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},we=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class Ue{get(e){return Ue.service.get(e).then(t=>t)}filter(e){return Ue.service.filter(e).then(t=>t)}process(e){return Ue.service.process(e)}myInvoicesData(){return Ue.service.myInvoicesData().then(e=>e)}search(e){return Ue.service.searchInvoiceData(encodeURIComponent(e)).then(t=>({search:e,result:t}))}all(){return Ue.service.allCompaniesInvoiceData().then(e=>e)}}Ue.service=new Wo;Fi([h,we("design:type",Function),we("design:paramtypes",[String]),we("design:returntype",void 0)],Ue.prototype,"get",null);Fi([h,we("design:type",Function),we("design:paramtypes",[Object]),we("design:returntype",void 0)],Ue.prototype,"filter",null);Fi([h,we("design:type",Function),we("design:paramtypes",[Array]),we("design:returntype",void 0)],Ue.prototype,"process",null);Fi([h,we("design:type",Function),we("design:paramtypes",[]),we("design:returntype",void 0)],Ue.prototype,"myInvoicesData",null);Fi([h,we("design:type",Function),we("design:paramtypes",[String]),we("design:returntype",void 0)],Ue.prototype,"search",null);Fi([h,we("design:type",Function),we("design:paramtypes",[]),we("design:returntype",void 0)],Ue.prototype,"all",null);const Qd=new Ue;class Jd{constructor(e){this.i18nObject=e}validate(e){var t,{formatMessage:i}=this.i18nObject.get(Ct),a=new gt(Go);let r=Nr.getRegEx(e.countryIsoCode);if(M.isNullOrWhiteSpace(e.fiscalCode)&&e.countryIsoCode=="IT"&&(a.errors.fiscalCode=i(n=>n.FiscalCodeLenghtError),a.isValid=!1),(M.isNullOrWhiteSpace(e.address)||e.address.length<3)&&(a.errors.address=i(n=>n.AddressIncomplete),a.isValid=!1),e.localityId||(a.errors.localityId=i(n=>n.LocalityIncomplete),a.isValid=!1),e.postalCode||(a.errors.postalCode=i(n=>n.PostalCodeRequired),a.isValid=!1),e.isCompany){(M.isNullOrWhiteSpace(e.companyName)||e.companyName.length<3)&&(a.errors.companyName=i(d=>d.CompanyNameLenghtError),a.isValid=!1),e.countryIsoCode=="IT"&&((M.isNullOrWhiteSpace(e.fiscalCode)||!r.test(e.fiscalCode.toUpperCase())&&!As.Validate(e.fiscalCode,e.countryIsoCode))&&(a.isValid=!1,a.errors.fiscalCode=i(d=>d.FiscalCodeLenghtError)),e.fiscalCode.length===16&&!Nr.checksum(e.fiscalCode)&&(a.errors.fiscalCode=i(d=>d.FiscalCodeLenghtError),a.isValid=!1)),(M.isNullOrWhiteSpace(e.vatNumber)||!As.Validate(e.vatNumber,e.countryIsoCode))&&(a.errors.vatNumber=i(d=>d.VatNumberLenghtError),a.isValid=!1);const{sdi:n,pec:o}=e;let p=o&&M.isValidEmail(o)||!1,u=n&&M.isValidSdiCode(n)||!1;!p&&!u&&(a.errors.sdi=i(d=>d.PecSdiError),a.errors.pec=i(d=>d.PecSdiError),a.isValid=!1),(!n||!u)&&!p&&(a.errors.pec=i(d=>d.PecSdiError),a.isValid=!1),(!o||!p)&&(n=="000000"||n=="0000000"||!u)&&(a.errors.sdi=i(d=>d.PecSdiError),a.isValid=!1),n&&!u&&(a.errors.sdi=i(d=>d.PecSdiError),a.isValid=!1)}else(M.isNullOrWhiteSpace(e.name)||e.name.length<3)&&(a.errors.name=i(n=>n.NameLenghtErrors),a.isValid=!1),(M.isNullOrWhiteSpace(e.surname)||e.surname.length<3)&&(a.errors.surname=i(n=>n.SurnameLenghtErrors),a.isValid=!1),(!e.email||e.email.length<3)&&(a.errors.email=i(n=>n.EmailError),a.isValid=!1),e.countryIsoCode==="IT"&&(r.test((t=e.fiscalCode)===null||t===void 0?void 0:t.toUpperCase())||(a.errors.fiscalCode=i(n=>n.FiscalCodeLenghtError),a.isValid=!1),e.fiscalCode.length===16&&!Nr.checksum(e.fiscalCode)&&(a.errors.fiscalCode=i(n=>n.FiscalCodeLenghtError),a.isValid=!1));return a}}var Ho=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};const Fs=new ds;class qi{constructor(){this.id="",this.name="",this.surname="",this.email="",this.phoneNumber="",this.birthDate=void 0,this.address="",this.callingCode="+39",this.birthLocalityId=null,this.fareCategoryDescription="",this.urlPdf="",this.locked=!1,this.validForSubscriptions=!0,this.validForTickets=!0,this.notes="",this.subscriptionTypeId=void 0,this.subscriptionDeparture=void 0,this.subscriptionArrivalPool=void 0,this.subscriptionStartValidity=void 0,this.subscriptionEndValidity=void 0,this.toCheck=!1,this.toRenew=!1,this.adminNotes="",this.renewRejected=!1,this.status=0,this.deleted=!1,this.paymentMethod=void 0}static Description(e){return qi.isActive(e)?`${e.code} - ${e.name} ${e.surname}`:`${e.name} ${e.surname} - (NON ATTIVA)`}static getDocumentTypeDescription(e){switch(e){case 0:return"Carta di identità";case 1:return"Patente di guida";case 2:return"Passaporto"}}static getDefaultValidityPeriod(e){return Ho(this,void 0,void 0,function*(){var t;return e.id?Fs.getDefaultValidityForCard(e.id):Fs.getDefaultValidityForCategory((t=e.fareCategoryId)!==null&&t!==void 0?t:null)})}static isActive(e,t){var i,a;const r=t||P.NowWithMinutePrecision(),n=e.status==null||e.status==1||e.status==3,o=e.validity!=null&&new Re({from:P.BeginOfDay((i=e.validity)===null||i===void 0?void 0:i.from),to:P.
1EndOfDay((a=e.validity)===null||a===void 0?void 0:a.to)}).contains(r);return!e.deleted&&o&&n}static canRequestRenew(e,t){var i,a;const r=t||P.NowWithMinutePrecision();return!e.deleted&&e.validity!=null&&e.status!==5&&e.status!==3&&(Re.Create(P.AddMonths((i=e.validity)===null||i===void 0?void 0:i.to,-3),(a=e.validity)===null||a===void 0?void 0:a.to).contains(r)||this.isExpired(e))}static canRenew(e,t){var i,a;const r=t||P.NowWithMinutePrecision();return!e.deleted&&e.validity!=null&&e.status==3&&(Re.Create(P.AddMonths((i=e.validity)===null||i===void 0?void 0:i.to,-3),(a=e.validity)===null||a===void 0?void 0:a.to).contains(r)||this.isExpired(e))}static canApprove(e,t){return!e.deleted&&e.validity!=null&&e.status==3&&!this.canRenew(e,t)}static isExpired(e,t){const i=t||P.NowWithMinutePrecision();return e.validity!=null&&i.valueOf()>e.validity.to.valueOf()||e.status==2}static isValid(e,t){return!e.deleted&&!this.isExpired(e,t)&&e.status!=5}static validityExpired(e){const t=P.NowWithMinutePrecision();return e!=null&&t.valueOf()>e.to.valueOf()}static canActivate(e){const t=P.NowWithMinutePrecision(),i=e.status==null||e.status==0||e.status==3;return!e.deleted&&i&&(e.validity==null||e.validity.to<t)&&e.isPayed}static canReject(e){return!e.deleted&&(e.status==3||e.status==0)}static canRefund(e){const t=this.canActivate(e),i=e.status==null||e.status==5;return t||i}static canRefundOnDelete(e){var t;return((t=e.value)!==null&&t!==void 0?t:0)>0&&e.isPayed}static isValidForSubscriptionIssue(e,t){return!(e.deleted||!e.validForSubscriptions||t==null||e.fareCategoryId==null&&t.disableDefaultCategory||t.onlyCategories!=null&&t.onlyCategories.length>0&&e.fareCategoryId!=null&&t.onlyCategories.indexOf(e.fareCategoryId)===-1)}static isValidForSubscriptionPeriodIssue(e,t,i){if(e.deleted||!e.validForSubscriptions)return!1;if(t==null)return qi.isActive(e);if(e.validity){var a=new Re(e.validity),r=new Re(t);if(i)return qi.isActive(e,t.from);if(t.to>a.to||r.to<a.from)return!1}return!0}static ProfilePhotoAcceptedExtensions(){return[".jpg",".jpeg",".png",".gif"]}static PersonAttchmentsAccptedExtensions(){return[".pdf",".jpg",".jpeg",".doc",".docx",".png"]}static CanAddChildren(e,t){if(e.deleted)return!1;const i=e.fareCategoryId!=null?t[e.fareCategoryId]:void 0;return i!=null&&i.linkableCategories.map(r=>t[r.categoryId]).filter(r=>r!=null&&(r.type==2||r.type==1)).length>0}static CanRequestInvoice(e,t){return!e.invoiceRequested&&e.isPayed&&(t.indexOf(g.canmanageinvoicerequests.name)!=-1||t.some(i=>i==g.canrequestinvoice.name||i==g.canrequestinvoiceforprivateusers.name)&&e.paymentDateTime&&P.getReadableCompactDateString(e.paymentDateTime)==P.getReadableCompactDateString(new Date))}static CanRemoveInvoice(e,t){return e.invoiceRequested&&(t.indexOf(g.canmanageinvoicerequests.name)!=-1||t.some(i=>i==g.canrequestinvoice.name||i==g.canrequestinvoiceforprivateusers.name))}}qi.maxAttachmentSize=5242880;let Xd=class{};class tu extends w{verify(e){return c.get(l.serverUrl+"ministerovoucher/verify?"+this.jsonToQueryString(e)).catch(this.asServerError)}}class Wi extends Hi{constructor(){super(),this.use=(e,t,i)=>this.useStoreWithAction(Wi.BuidKey(e,t,i),a=>a?ai.getPreviewForSearch(e,t,i):()=>[]),z.onfunction(ai.getPreviewForSearch,e=>this.set(Wi.BuidKey(e.departure,e.arrival,e.saleChannel),e.result))}}Wi.BuidKey=(s,e,t)=>`${s}-${e}-${t}`;const iu=new Wi;class ru extends w{creditCardTransactionInfo(e){return c.get(l.serverUrl+`paymentInfo/creditCard?code=${e??""}`).catch(this.asServerError)}checkPaymentTransaction(e){return c.post(l.serverUrl+"paymentInfo/checkpaymenttransaction",e).catch(this.asServerError)}}var Jr=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};function Ko(s,e,t){return Jr(this,void 0,void 0,function*(){var{formatMessage:i}=t.get(Ct);let a=yield new ns().passwordIsValid({password:s,username:e});if(!a.success){switch(a.errorCode){case"PasswordRequiresDigit":a.errorCode=i(r=>r.PasswordRequiresDigit);break;case"PasswordTooShort":a.errorCode=i(r=>r.PasswordLenghtError);break;default:a.errorCode=i(r=>r.PasswordLenghtError);break}return a}return a})}class su{constructor(e){this.i18nObject=e,this.manageError=t=>{var i,{formatMessage:a}=this.i18nObject.get(Ct);let r=new _t;r.server=a(o=>o.RegistrationFailed);const n=(i=t.message)!==null&&i!==void 0?i:"";return n==="InvalidPhoneNumber"?r.phoneNumber=a(o=>
1o.InvalidPhoneNumber):n==="CallingCodeNotAllowed"?r.phoneNumber=a(o=>o.CallingCodeNotAllowed):n==="EmailNotAllowed"?r.email=a(o=>o.EmailNotAllowed):n==="PasswordRequiresDigit"?r.password=a(o=>o.PasswordRequiresDigit):n.startsWith("Password")?r.password=a(o=>o.PasswordLenghtError):t.message==="DuplicateUserName"&&(r.server=a(o=>o.DuplicateUserName)),r},this.validateRegistrationData=(t,i)=>Jr(this,void 0,void 0,function*(){var{formatMessage:a}=this.i18nObject.get(Ct),r=new gt(_t);const n=/[$,%,&,@,_,-,#]/;if(!t.name||t.name.length<3?(r.errors.name=a(o=>o.NameLenghtErrors),r.isValid=!1):n.test(t.name)&&(r.errors.name=a(o=>o.NameErrors),r.isValid=!1),!t.surname||t.surname.length<3?(r.errors.surname=a(o=>o.SurnameLenghtErrors),r.isValid=!1):n.test(t.surname)&&(r.errors.surname=a(o=>o.SurnameErrors),r.isValid=!1),(!t.email||t.email.length<3)&&(r.errors.email=a(o=>o.EmailLenghtError),r.isValid=!1),M.isValidEmail(t.email)||(r.errors.email=a(o=>o.IsNotValidEmail),r.isValid=!1),i){const o=t;r=yield this.validatePassword(o.password,o.confirmPassword,o.email,this.i18nObject,r)}return r=this.validatePhoneNumber(t.callingCode,t.phoneNumber,r),t.company&&(r=this.validateCompany(t.companyName,t.vatNumber,t.fiscalCode,t.localityid,!1,r)),t.privacyAccepted||(r.errors.privacyAccepted=a(o=>o.PrivacyNotAccepted),r.isValid=!1),t.indirectMarketing==null&&(r.errors.commercialUse=a(o=>o.CommercialUseNotSelected),r.isValid=!1),r}),this.validatePassword=(t,i,a,r,n)=>Jr(this,void 0,void 0,function*(){var o,{formatMessage:p}=this.i18nObject.get(Ct);n||(n=new gt(_t));const u=yield Ko(t,a,r);return u.success||(n.errors.password=(o=u.errorCode)!==null&&o!==void 0?o:p(d=>d.PasswordLenghtError),n.isValid=!1),t!=i&&(n.errors.password=p(d=>d.PasswordsNotEqual),n.isValid=!1),n}),this.validatePhoneNumber=(t,i,a)=>{a||(a=new gt(_t));var{formatMessage:r}=this.i18nObject.get(Ct);return a||(a=new gt(_t)),t.length===0&&(a.errors.phoneNumber=r(n=>n.CallingCodeEmpty),a.isValid=!1),i.length===0&&(a.errors.phoneNumber=r(n=>n.PhoneNumberEmpty),a.isValid=!1),a},this.validateCompany=(t,i,a,r,n,o)=>{o||(o=new gt(_t));var{formatMessage:p}=this.i18nObject.get(Ct);return o||(o=new gt(_t)),!n&&!t?(o.errors.companyName=p(u=>u.CompanyNameLenghtError),o.isValid=!1):!n&&(!i||i.length<11||i.length>13)?(o.errors.vatNumber=p(u=>u.VatNumberLenghtError),o.isValid=!1):!n&&!a?(o.errors.fiscalCode=p(u=>u.FiscalCodeLenghtError),o.isValid=!1):!n&&a!==i&&(a.length>16||a.length<15)?(o.errors.fiscalCode=p(u=>u.FiscalCodeLenghtError),o.isValid=!1):(r==null||!r)&&(o.errors.locality=p(u=>u.LocalityIncomplete),o.isValid=!1),o},this.validateAccountUpdate=t=>{var{formatMessage:i}=this.i18nObject.get(Ct),a=new gt(_t);return t.type===1&&(t.name.length<3&&(a.errors.name=i(r=>r.NameLenghtErrors),a.isValid=!1),t.surname.length<3&&(a.errors.surname=i(r=>r.SurnameLenghtErrors),a.isValid=!1)),(t.company||t.type===3||t.type===2)&&(a=this.validateCompany(t.companyName,t.vatNumber,t.fiscalCode,t.localityid,!0,a)),a}}}const Zo=new ns;let jr=null;function au(){return jr==null&&(jr=Zo.getAllowedCallingCodes().then(s=>s??[]).catch(()=>[])),jr}class nu extends w{getAll(){return c.get(l.serverUrl+"vatSystems").catch(this.asServerError)}}function ou(s){const{formatMessage:e}=s.i18n.get(as);var t=e(i=>i.ReturnPrice);return s.returnPriceDaysConfigured!==void 0&&(t=e(i=>i.ReturnInSameDays(s.returnPriceDaysConfigured))),`€ ${M.toDecimalString(s.returnPrice)} ${t}`}class Yo extends w{getAll(){return c.get(l.serverUrl+"customMessages").catch(this.asServerError)}get(e){return c.get(l.serverUrl+`customMessages/${e}`).catch(this.asServerError)}getPublic(e){return c.get(l.serverUrl+`customMessages/public/${e}`).catch(this.asServerError)}post(e){return c.post(l.serverUrl+"customMessages/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`customMessages/${e}`).catch(this.asServerError)}}var ar=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},_e=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Qo=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class tt{getPublic(e){return tt.service.getPublic(e.join(","))}add(e){return tt.service.post(e)}save(e){return tt.service.post(e)}del(e){return Qo(this,void 0,void 0,function*(){return yield tt.service.delete(e),e})}requestAll(){return tt.service.getAll()}}tt.service=new Yo;ar([h,_e("design:type",Function),_e("design:paramtypes",[Array]),_e("design:returntype",void 0)],tt.prototype,"getPublic",null);ar([h,_e("design:type",Function),_e("design:paramtypes",[Object]),_e("design:returntype",void 0)],tt.prototype,"add",null);ar([h,_e("design:type",Function),_e("design:paramtypes",[Object]),_e("design:returntype",void 0)],tt.prototype,"save",null);ar([h,_e("design:type",Function),_e("design:paramtypes",[String]),_e("design:returntype",Promise)],tt.prototype,"del",null);ar([h,_e("design:type",Function),_e("design:paramtypes",[]),_e("design:returntype",void 0)],tt.prototype,"requestAll",null);const Xr=new tt;class Jo extends j{constructor(){super(e=>
1e.id),this.useMany=e=>this.useManyWithAction(()=>Xr.getPublic(e),e),z.onfunction(Xr.getPublic,e=>this.updateOrAddAll(e))}}const Xo=new Jo,lu=Ha(s=>{var e,t,i,a,r,n,o,p;const{message:u,hl:d}=s;switch(d){case"en":return(t=(e=u.messageEn)!==null&&e!==void 0?e:u.message)!==null&&t!==void 0?t:"";case"fr":return(a=(i=u.messageFr)!==null&&i!==void 0?i:u.message)!==null&&a!==void 0?a:"";case"de":return(n=(r=u.messageDe)!==null&&r!==void 0?r:u.message)!==null&&n!==void 0?n:"";case"es":return(p=(o=u.messageEs)!==null&&o!==void 0?o:u.message)!==null&&p!==void 0?p:"";default:return u.message}}),Ma=["be8fa557-d1f1-4224-ac2b-0fe1010ce8f6","230a6ed9-ecb8-4191-b4a5-0fe1011799b6","29f536fb-67d6-4eaa-88dd-10040115a1fa"];class zs{static GetSolutionCarriers(e){const t=n=>({carrierId:e[n].carrierId,departure:e[n].departure,arrival:e[n].arrival,travelMode:e[n].travelMode,vehicleDescription:e[n].vehicleDescription,lineId:e[n].lineId});let i=t(0);if(e.length===1)return[i];let a=[];for(let n=1;n<e.length;n++){const o=e[n];var r=o.carrierId;const p=o.travelMode;r!=i.carrierId||p!=i.travelMode?(a.push(i),i=t(n)):(i.arrival=o.arrival,!i.vehicleDescription&&o.vehicleDescription&&(i.vehicleDescription=o.vehicleDescription)),n==e.length-1&&a.push(i)}return a}static NeedExternalCarrierInfos(e,t,i){if(e.some(r=>r.lineId!=null&&Ma.some(n=>n==r.lineId)))return!0;const a=Ii(e.map(r=>r.carrierId));return!((t==null?void 0:t.alwaysShowCarriersOnSolutions)!=!0&&a.length==1&&a[0]==i)}}let el=class extends Le.PureComponent{render(){var e;let t=this.props.companies[this.props.companyId];return t==null?(e=this.props.fallBack)!==null&&e!==void 0?e:N.jsx("span",{}):N.jsx("span",{children:this.props.template(t)})}};const fs=Ro(el)(s=>s.allByKey(),"companies"),Os=s=>{var e;return N.jsx(fs,{companyId:s.carrierId,template:t=>{var i;return N.jsx("img",{style:{marginRight:5,height:(i=s.height)!==null&&i!==void 0?i:30},src:"/images/carriers/"+s.carrierId+".png",title:t.description})},fallBack:N.jsx("img",{style:{marginRight:5,height:(e=s.height)!==null&&e!==void 0?e:30},src:"/images/carriers/"+s.carrierId+".png",title:s.carrierId})})},du=s=>{var e;return N.jsx("div",{style:{backgroundColor:"#fff",border:"1em",borderStyle:"solid",borderRadius:"45px"},children:N.jsx(fs,{companyId:s.carrierId,template:t=>{var i;return N.jsx("img",{style:{height:(i=s.height)!==null&&i!==void 0?i:30},src:"/images/carriers/"+s.carrierId+".png",title:t.description})},fallBack:N.jsx("img",{style:{height:(e=s.height)!==null&&e!==void 0?e:30},src:"/images/carriers/"+s.carrierId+".png",title:s.carrierId})})})},uu=fn(Eo(s=>{var e,t,i;const{trips:a,roles:r}=s,n=Dn.useApplicationConfig();if(n==null||Gt.environmentName=="frecciaroma")return null;const o=(t=(e=La.getDefault())===null||e===void 0?void 0:e.id)!==null&&t!==void 0?t:"",p=zs.GetSolutionCarriers(a);if(!zs.NeedExternalCarrierInfos(a,n,o))return null;const u=p.map((d,m)=>{var b;const D=Ma.indexOf((b=d.lineId)!==null&&b!==void 0?b:"")!=-1,T=D?N.jsx(Os,{carrierId:"marinofdg"}):N.jsx(Os,{carrierId:d.carrierId}),A=D?N.jsx("span",{children:"Soc.Marino srl e F.del Gargano"}):N.jsx(fs,{companyId:d.carrierId,template:I=>I.description});return N.jsxs("div",{className:`d-flex ${m<a.length-1?"me-3":""}`,children:[T,N.jsxs("div",{children:[N.jsxs("div",{className:"fontsize-2d",children:[N.jsx($t,{id:d.departure,selector:I=>N.jsx("span",{className:"text-uppercase",children:I.shortDescription.substring(0,3)})}),N.jsx("i",{className:"fa-solid fa-arrow-right mx-1"}),N.jsx($t,{id:d.arrival,selector:I=>N.jsx("span",{className:"text-uppercase",children:I.shortDescription.substring(0,3)})})]}),d.vehicleDescription&&r.find(I=>I===g.canviewvehicleinfo.name)!=null?N.jsx("div",{className:"fontsize-2d",children:d.vehicleDescription}):N.jsx("div",{className:"text-nowrap fontsize-5d",children:A})]})]},d.carrierId+m)});return N.jsx("div",{className:`${(i=s.containerClassName)!==null&&i!==void 0?i:""}  d-flex flex-wrap`,children:u})})),es=s=>P.getReadableCompactDateString(s)==P.getReadableCompactDateString(new Date),Ls=s=>({allowed:!0,pastIssueDate:es(s)?null:s}),Ms=(s,e)=>{const t=De(s.flatMap(o=>o.allowed&&o.pastIssueDate?[o.pastIssueDate]:[]),o=>o.valueOf()),i=Ii(t.map(o=>P.getReadableDateString(o)));if(i.length==0)return null;const a=i.length==1,r=i.join(", "),n=e=="request"?"Inserendo la ric
1hiesta di fattura":"Eliminando la richiesta di fattura";return[a?`ATTENZIONE: il titolo di viaggio è stato emesso il ${r}, non oggi.`:`ATTENZIONE: i titoli di viaggio sono stati emessi nei giorni ${r}, non oggi.`,`${n} si modificano a posteriori i dati contabili ${a?"di quel giorno":"di quei giorni"}: i totali già registrati o comunicati (incassi e fatture) potrebbero non corrispondere più.`,`Se procedi, avvisa l'ufficio contabilità che i dati ${a?"del":"dei giorni"} ${r} potrebbero cambiare.`].join(`
2
3`)};class W{static getValidParts(e){return De((e.parts||[]).filter(t=>!t.isCanceled&&!t.isFreed),t=>t.departureDate.valueOf())}static isCancelledAndRefundable(e){return e.isCanceled&&e.yetToBePayedOrRefunded<0}static isEnabledForCancelation(e,t,i){if(i.isCanceled)return W.isCancelledAndRefundable(i)?e.some(n=>n===g.cancanceltickets.name||n===g.canusesuperusertools.name):!1;if(i.expired||t==null||!i.cancellationEnabled)return!1;if(i.isEnabledForCancelation)return!0;if(e.find(n=>n===g.canusesuperusertools.name)==null&&i.price>0&&i.payedAmount===0&&(i.paymentMethod===3||i.paymentMethod===4))return!1;const a=W.getDepartureDate(i),r=new Date;return a!=null&&a<=r?e.find(n=>n===g.cancanceldepartedtickets.name)!=null:e.find(n=>n===g.cancanceltickets.name)!=null?!0:t.cancelationTimeLimit!=0&&P.differenceInMinutes(r,i.issueDate)<=t.cancelationTimeLimit}static isLuggageEnabledForCancelation(e,t,i){if(i.isCanceled||t==null||i.price>0&&i.payedAmount===0&&(i.paymentMethod===3||i.paymentMethod===4))return!1;if(e.find(r=>r===g.cancancelshippedluggages.name)!=null)return!0;const a=new Date;return t.cancelationTimeLimit!=0&&P.differenceInMinutes(a,i.issueDate)<=t.cancelationTimeLimit}static isEnableForChangeSeat(e,t,i){return i.isCanceled||i.expired||t==null?!1:e.find(a=>a===g.canchangeseat.name)!=null}static canIssueLuggages(e,t,i){return(i.isCanceled||i.expired||t==null)&&!e.find(a=>a===g.management.name)?!1:e.find(a=>a===g.canissueluggages.name)!=null}static canManageLuggagesAfterCheckIn(e,t,i){return(i.isCanceled||i.expired||t==null)&&!e.find(a=>a===g.management.name)?!1:e.find(a=>a===g.canmanageluggagesaftercheckin.name)!=null}static canFreeSeats(e,t){return t.some(i=>W.canFreeSeat(e,i))}static canFreeSeat(e,t){return t.isCanceled||t.expired?!1:e.find(i=>i===g.canfreeseat.name)!=null}static canChangeTicketData(e,t){return t?e.find(i=>i===g.canmodifyticketdata.name)!=null:!1}static getLimitedARPeriodWithOtherDirectionCheck(e,t,i){if(!e)return null;if(i){const a=P.ToDate(t),r=P.AddDays(a,e);return Re.Create(a,r).fullDays()}else{const a=P.AddDays(P.ToDate(t),-e),r=P.ToDate(t);return Re.Create(a,r).fullDays()}}static getLimitedARPeriod(e,t){if(!e)return null;const i=P.AddDays(P.ToDate(t),-e),a=P.AddDays(P.ToDate(t),e);return Re.Create(i,a).fullDays()}static checkInvoiceRequest(e,t){var i;if(t.invoiceRequested)return{allowed:!1};const a=es(t.issueDate);return e.some(o=>o==g.canmanageinvoicerequests.name)?Ls(t.issueDate):(t.payedAmount+((i=t.discount)!==null&&i!==void 0?i:0)>0||!t.isPayed)&&a&&e.some(o=>o==g.canrequestinvoice.name||o==g.canrequestinvoiceforprivateusers.name)?{allowed:!0,pastIssueDate:null}:{allowed:!1}}static canRequestInvoice(e,t){return W.checkInvoiceRequest(e,t).allowed}static getInvoiceRequestWarning(e,t){return Ms(t.map(i=>W.checkInvoiceRequest(e,i)),"request")}static checkInvoiceRemoval(e,t){if(t.paymentMethod==19||!t.invoiceRequested)return{allowed:!1};const i=es(t.issueDate);return e.indexOf(g.canmanageinvoicerequests.name)!=-1?Ls(t.issueDate):i&&e.some(r=>r==g.canrequestinvoice.name||r==g.canrequestinvoiceforprivateusers.name)?{allowed:!0,pastIssueDate:null}:{allowed:!1}}static canRemoveInvoice(e,t){return W.checkInvoiceRemoval(e,t).allowed}static getInvoiceRemovalWarning(e,t){return Ms(t.map(i=>W.checkInvoiceRemoval(e,i)),"removal")}static canResendAndReprintTicket(e){return!e.isCanceled&&!e.isCheckedOut&&!e.expired&&(e.payedAmount>0||e.price-e.reliefAmount==0||e.paymentMethod===2||e.paymentMethod===7||e.paymentMethod===10||e.paymentMethod===17||e.price>0&&e.payedAmount+e.discount>0)}static canResendAndReprintTickets(e){return e.map(i=>
3this.canResendAndReprintTicket(i)).find(i=>i==!0)}static canSendLinkForCompletePassengerNames(e,t){return t.some(i=>g.canmodifyticketdata.name==i)&&Ws(e,i=>i.passengerIndex).length>1}static printableTickets(e){return e.filter(t=>W.canResendAndReprintTicket(t)==!0)}static getToBePayedAmount(e){const t=e.filter(i=>i.toPay>0&&!i.expired&&!i.isCanceled);return Q(t,i=>i.toPay)}static canPayToBePayed(e,t){const i=this.getToBePayedAmount(e);return t.find(a=>a===g.paytobepayed.name)&&i>0}}W.getTicketValidParts=s=>De(s.parts.filter(e=>!e.isCanceled),e=>e.departureDate.valueOf());W.canEnableCancelation=(s,e,t)=>t.isCanceled||t.expired||e==null?!1:s.some(i=>i===g.canenableticketscancelation.name);W.canEnableCancelationOnTickets=(s,e,t)=>t.some(i=>W.canEnableCancelation(s,e,i));W.getDepartureDate=s=>{var e=W.getTicketValidParts(s);if(e.length>0)return e[0].departureDate};W.getArrivalDate=s=>{var e=W.getTicketValidParts(s);if(e.length>0)return e[e.length-1].arrivalDate};W.getMinDepartureDate=s=>{var e=[];return s.map(t=>{var i=W.getTicketValidParts(t);i.length>0&&e.push(i[0].departureDate)}),e.length>0?Hs(e,t=>t)[0]:void 0};W.GetTicketTravelKey=s=>`${(s.isCanceled?s.parts:W.getTicketValidParts(s))[0].departureDate.valueOf()}|${s.departureId}|${s.arrivalId}`;W.ParseTicketTravelKey=s=>{if(!s)return null;const e=s.split("|");return{departureDate:new Date(parseInt(e[0])),departureId:e[1],arrivalId:e[2]}};W.isEnableForChangeDate=(s,e,t,i)=>{if(!t.changeDateEnabled||t.isCanceled||t.expired&&t.paymentMethod!=2||e==null||t.paymentMethod==2&&t.payedAmount===0&&!t.expired&&!s.find(r=>r===g.management.name)||t.paymentMethod==2&&t.payedAmount===0&&t.expired&&!s.find(r=>r===g.management.name))return!1;let a=s.find(r=>r===g.canchangedateonticketsdeparted.name)!=null;if(t.parts.some(r=>r.checkedInAt!=null)&&!a)return!1;if(t.isEnabledForCancelation)return!0;if(s.some(r=>r===g.canissue.name)){const r=e.agencyId!=t.agencyId&&e.agencyId!=t.billingAgencyId,n=s.some(u=>u==g.canchangedateonalltickets.name);if(r&&!n)return!1;const o=!r&&e.operatorid!=t.operatorId&&e.operatorid!=t.billingOperatorId;if(!n&&o&&!s.some(u=>u==g.canviewagencyticket.name)||t.remainingChangeDates!=null&&t.remainingChangeDates<=0||W.getDepartureDate(t)==null||!t.isPayed&&i&&t.paymentMethod!=7)return!1}return!0};W.isDetailed=s=>
3s.parts!=null;W.hasSameTravelSpecs=(s,e)=>{var t,i;return e.departureStopId==s.departureId&&e.trips[0].departureDateTime.valueOf()==((t=s.parts.find(a=>a.departureId==s.departureId))===null||t===void 0?void 0:t.departureDate.valueOf())&&e.arrivalStopId==s.arrivalId&&e.trips[e.trips.length-1].arrivalDateTime.valueOf()==((i=s.parts.find(a=>a.arrivalId==s.arrivalId))===null||i===void 0?void 0:i.arrivalDate.valueOf())&&e.trips.length==s.parts.length};W.HasVehicleTickets=s=>{if(Gt.environmentName=="ichnusa")return!0;const e=s.some(t=>t.leastDepartureDateTime!=null&&t.leastDepartureDateTime>=new Date(2026,0,1));return Gt.environmentName=="blunavy"&&e};W.calculateLuggageOperationAmount=(s,e,t,i)=>{if(!s)return 0;const a=Q(t.filter(n=>n.selected),n=>{var o;return n.value-((o=n.forcedPenalty)!==null&&o!==void 0?o:0)});return Q(i,n=>{if(n.item.forcedPrice!=null){const o=n.item.forcedPrice.ExtraFares!=null?Q(Ne(n.item.forcedPrice.ExtraFares,p=>p),p=>p):Q(n.extraFares,p=>p.price);return n.item.forcedPrice.BasePrice+o}else return n.price})+e-a};W.toTicketLuggages=(s,e)=>s.flatMap(i=>i.luggages.map((a,r)=>({ticket:i,luggage:a,lIndex:r}))).map(i=>{var a;return{id:e?i.ticket.id:`${i.ticket.id}-${i.luggage.id}-${i.lIndex}`,code:i.ticket.code,payedAmount:e?i.ticket.payedAmount:Us(i.luggage.valueDetail),paymentMethod:i.ticket.paymentMethod,passengerName:`${i.ticket.passenger.name} ${i.ticket.passenger.surname}`,agencyId:i.ticket.agencyId,operatorId:i.ticket.operatorId,luggageDescription:i.luggage.description,luggageId:i.luggage.id,phonenumber:i.ticket.phone,email:i.ticket.email,notes:"",operatordescription:i.ticket.operatorDescription,value:Us(i.luggage.valueDetail),checkedInAt:i.ticket.part.checkedInAt,freed:i.ticket.part.isFreed,isCheckedIn:i.ticket.part.checkedInAt!=null,isPayed:i.ticket.isPayed,isExternal:!1,tripId:i.ticket.part.tripId,tripDailyCode:i.ticket.part.tripDailyCode,tripCode:i.ticket.part.tripCode,departure:i.ticket.departureId,departureTime:i.ticket.departureTime,arrival:i.ticket.arrivalId,arrivalTime:i.ticket.arrivalTime,partDeparture:i.ticket.tripDeparture,partArrival:i.ticket.tripArrival,ownerTicket:e?void 0:i.ticket,mainTicket:e?i.ticket:void 0,extraData:i.luggage.extraData,allotment:(a=i.luggage.allotments)===null||a===void 0?void 0:a.filter(r=>r!=null)[0],fromTrip:i.ticket.fromTrip,toTrip:i.ticket.toTrip,occupationUnits:i.luggage.occupationUnits,issueDate:i.ticket.issueDate,cargoType:i.ticket.cargoType}});const Us=s=>s.BasePrice+(s.ExtraFares&&s.ExtraFares?Q(Ne(s.ExtraFares,e=>e),e=>e):0);var Ua=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Ci=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class oi{getPreviousTickets(){return oi.service.getTicketAndOpensForBooking(!0)}getNextTickets(){return oi.service.getTicketAndOpensForBooking(!1)}}oi.service=new Rr;Ua([h,Ci("design:type",Function),Ci("design:paramtypes",[]),Ci("design:returntype",void 0)],oi.prototype,"getPreviousTickets",null);Ua([h,Ci("design:type",Function),Ci("design:paramtypes",[]),Ci("design:returntype",void 0)],oi.prototype,"getNextTickets",null);const yt=new oi;class tl extends w{cancel(e,t){return c.post(l.serverUrl+`anonymoustickets/cancel/${e}`,t).catch(this.asServerError)}bookingCancel(e,t){return c.post(l.serverUrl+`anonymoustickets/bookingCancel/${e}`,t).catch(this.asServerError)}cancelPreview(e,t){return c.get(l.serverUrl+`anonymoustickets/cancelPreview/${e}?`+this.jsonToQueryString(t)).catch(this.asServerError)}}var ys=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Lt=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class Mt{cancelPreview(e,t){return Mt.service.cancelPreview(e,t)}cancel(e,t){return Mt.service.cancel(e,t)}bookingCancel(e,t){return Mt.service.bookingCancel(e,t)}}Mt.service=new tl;ys([h,Lt("design:type",Function),Lt("design:paramtypes",[String,Object]),Lt("design:returntype",void 0)],Mt.prototype,"cancelPreview",null);ys([h,Lt("design:type",Function),Lt("design:paramtypes",[String,Object]),Lt("design:returntype",void 0)],Mt.prototype,"cancel",null);ys([h,Lt("design:type",Function),Lt("design:paramtypes",[String,Object]),Lt("design:returntype",void 0)],Mt.prototype,"bookingCancel",null);const Ba=new Mt;let il=class extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>yt.getNextTickets()),z.onfunction(yt.getNextTickets,e=>this.setAll(e.p2pTickets)).onfunction(he.logOff,e=>this.clear).onfunction(he.login,e=>this.clear).onfunction(Ze.cancel,e=>yt.getNextTickets()).onfunction(Ba.cancel,e=>yt.getNextTickets()).onfunction(fi.Issue,e=>{this.isInitialized()&&this.clear()})}};const pu=new il;let rl=class extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>yt.getPreviousTickets()),z.onfunction(yt.getPreviousTickets,e=>this.setAll(e.p2pTickets)).onfunction(he.logOff,e=>this.clear).onfunction(he.login,e=>this.clear)}
3};const mu=new rl;class sl extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>yt.getNextTickets()),z.onfunction(yt.getNextTickets,e=>this.setAll(e.openTickets)).onfunction(Ze.cancel,e=>yt.getNextTickets()).onfunction(Ba.cancel,e=>{this.isInitialized()&&this.clear()})}}const vu=new sl;class al extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>yt.getPreviousTickets()),z.onfunction(yt.getPreviousTickets,e=>this.setAll(e.openTickets)).onfunction(he.logOff,e=>this.clear).onfunction(he.login,e=>this.clear)}}const fu=new al;class nl extends w{generatedByUser(){return c.get(l.serverUrl+"endusercoupons/forUser").catch(this.asServerError)}}var ol=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},qr=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},ll=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class nr{generatedByUser(){return ll(this,void 0,void 0,function*(){var e=yield nr.service.generatedByUser();return e})}}nr.service=new nl;ol([h,qr("design:type",Function),qr("design:paramtypes",[]),qr("design:returntype",Promise)],nr.prototype,"generatedByUser",null);const Bs=new nr;class cl extends j{constructor(){super(e=>e.id),this.useGeneratedByUser=()=>this.useAllWithAction(()=>Bs.generatedByUser()),z.onfunction(Bs.generatedByUser,e=>this.updateOrAddAll(e))}}const yu=new cl;class dl extends w{getAll(){return c.get(l.serverUrl+"endUserFidelities").catch(this.asServerError)}manyForReservation(e){return c.get(l.serverUrl+`endUserFidelities/manyForReservation/${e}`).catch(this.asServerError)}getValidForReservation(e){return c.get(l.serverUrl+`endUserFidelities/validForReservation/${e}`).catch(this.asServerError)}movementsForOperator(e){return c.get(l.serverUrl+`endUserFidelities/movementsForOperator?operatorId=${e??""}`).catch(this.asServerError)}movementsForCurrentOperator(){return c.get(l.serverUrl+"endUserFidelities/movementsForCurrentOperator").catch(this.asServerError)}fidelityInfosForCurrentOperator(){return c.get(l.serverUrl+"endUserFidelities/fidelityInfosForCurrentOperator").catch(this.asServerError)}hasActiveFidelities(){return c.get(l.serverUrl+"endUserFidelities/hasActiveFidelities").catch(this.asServerError)}post(e){return c.post(l.serverUrl+"endUserFidelities/manualmovement",e).catch(this.asServerError)}}var or=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},je=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},gr=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})},$i=new dl;let zi=class{getAll(){return gr(this,void 0,void 0,function*(){return yield $i.getAll()})}forReservation(e){return gr(this,void 0,void 0,function*(){return yield $i.manyForReservation(e)})}movementsForOperator(e){return gr(this,void 0,void 0,function*(){return{operatorId:e,data:yield $i.movementsForOperator(e)}})}fidelityInfosForCurrentOperator(){return gr(this,void 0,void 0,function*(){return yield $i.fidelityInfosForCurrentOperator()})}CurrentOperatorHasFidelity(){return $i.hasActiveFidelities()}};or([h,je("design:type",Function),je("design:paramtypes",[]),je("design:returntype",Promise)],zi.prototype,"getAll",null);or([h,je("design:type",Function),je("design:paramtypes",[String]),je("design:returntype",Promise)],zi.prototype,"forReservation",null);or([h,je("design:type",Function),je("design:paramtypes",[String]),je("design:returntype",Promise)],zi.prototype,"movementsForOperator",null);or([h,je("design:type",Function),je("design:paramtypes",[]),je("design:returntype",Promise)],zi.prototype,"fidelityInfosForCurrentOperator",null);or([h,je("design:type",Function),je("design:paramtypes",[]),je("design:returntype",void 0)],zi.prototype,"CurrentOperatorHasFidelity",null);const Gi=new zi;class Ss{constructor(e,t){var i;this.departure="",this.arrival="",this.passengers=[],this.isReturn=!1,this.changeDate=!1,this.useReservedSeats=!1,this.departure=e.departure,this.arrival=e.arrival,this.searchPeriod={from:e.dateFrom,to:e.dateTo},this.channel=e.channel,this.passengers=(i=e.passengers)===null||i===void 0?void 0:i.map(a=>Nt.ToRequest(a)),this.reservationId=t,this.isReturn=e.isReturn,this.changeDate=e.changeDate,this.subscriptionTypeId=e.subscriptionTypeId,this.locale=e.locale,this.coupon=e.coupon,this.useReservedSeats=e.useReservedSeats}}var Dr=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},dt=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},ul=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class it{TRAVEL_SOLUTION_SEARCHED(e){return it.service.post(e.departure,e.arrival,P.ToPlainDate(e.searchPeriod.from),P.ToPlainDate(e.searchPeriod.to),e.channel,e.passengers,e.reservationId,!1,e.isReturn,null,null,null,e.changeDate,e.locale,e.coupon,e.useReservedSeats).then(t=>({request:e,result:t}))}TRAVEL_SOLUTION_SEARCHED_NOPRICE(e){return it.service.postNoPrice(e.departure,e.arrival,e.searchPeriod.from,e.searchPeriod.to,e.channel,e.passengers,e.reservationId,!1,e.isReturn,null,null,null,e.changeDate,e.subscriptionTypeId,e.locale).then(t=>({request:e,result:t}))}TRAVEL_SOLUTION_SEARCHED_WITH_STAGING(e){return it.service.post(e.departure,e.arrival,P.ToPlainDate(e.searchPeriod.from),P.ToPlainDate(e.searchPeriod.to),e.channel,e.passengers,e.reservationId,!0,e.isReturn,e.changeDate).then(t=>({request:e,result:t}))}ISSUE(e){return ul(this,void 0,void 0,function*(){var t;const i=E().get();if(!i)throw"reservation not created";const a=Object.assign(Object.assign({},e),{reservationId:i.reservationId,sendTicketToCustomer:!0,pinSisal:-1,groupIdToLink:e.groupIdToLink,addressData:e.addressData,transactionCode:e.transactionCode,hidePrice
3:e.hidePrice,clientIntegrationPaymentId:(t=e.clientIntegrationPaymentId)!==null&&t!==void 0?t:void 0,autoCheckin:e.autoCheckin,payByLinkUrl:e.payByLinkUrl,numContratto:e.numContratto,nexiApmResponse:e.nexiApmResponse,directMarketing:e.directMarketing,indirectMarketing:e.indirectMarketing,privacyPolicyVersion:e.privacyPolicyVersion});kt(E().passengers,Ae.Passengers(i))||(yield mo.setPassengersForIssue(E().passengers,{force:!0}));try{const r=e.user==null?yield it.ticketsService.issueAnonymous(a):yield it.ticketsService.issue(a);return E().clear(),r}catch(r){return E().OnError.emit(r.type),Promise.reject(r)}})}}it.service=new us;it.ticketsService=new Rr;Dr([h,dt("design:type",Function),dt("design:paramtypes",[Ss]),dt("design:returntype",void 0)],it.prototype,"TRAVEL_SOLUTION_SEARCHED",null);Dr([h,dt("design:type",Function),dt("design:paramtypes",[Ss]),dt("design:returntype",void 0)],it.prototype,"TRAVEL_SOLUTION_SEARCHED_NOPRICE",null);Dr([h,dt("design:type",Function),dt("design:paramtypes",[Ss]),dt("design:returntype",void 0)],it.prototype,"TRAVEL_SOLUTION_SEARCHED_WITH_STAGING",null);Dr([h,dt("design:type",Function),dt("design:paramtypes",[Object]),dt("design:returntype",Promise)],it.prototype,"ISSUE",null);const bs=new it;var Gr=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};function hl(s,e){var t;return{date:P.ToPlainDateInTimezone(s.trips[0].departureDateTime,s.timezone),departureStopId:s.trips[0].departureStopId,arrivalStopId:s.trips[s.trips.length-1].arrivalStopId,priceInfo:!e&&{totalPrice:s.calculatedPrice,fullPrice:s.fullPrice,returnPriceAvailable:s.returnPriceAvailable,returnPriceDaysConfigured:s.returnPriceDaysConfigured,returnPrice:s.returnPrice,onWayPrice:s.oneWayPrice}||void 0,trips:s.trips,returnPriceDaysConfigured:s.returnPriceDaysConfigured,remainingSeats:s.remainingSeats,limitations:(t=s.limitations)!==null&&t!==void 0?t:[],customMessages:s.customMessageIds,timezone:s.timezone}}class $a{constructor(e){this._items={},this.Changed=new Di,z.onfunction(e,t=>Gr(this,void 0,void 0,function*(){return yield this.setAll(t.request,t.result,!1)})).onfunction(bs.TRAVEL_SOLUTION_SEARCHED_NOPRICE,t=>Gr(this,void 0,void 0,function*(){return yield this.setAll(t.request,t.result,!0)}))}getSearchPeriod(e){var t=P.PlainDateToDate(e),i=P.AddDays(t,-2),a=P.AddDays(i,5);return Re.Create(i,a)}flexibleSearch(e){const t=e.departure,i=e.arrival,a=this._items[t];if(!a)return new Re(e.searchPeriod);const r=a[i];if(!r)return new Re(e.searchPeriod);const n=new Re(e.searchPeriod).dates().filter(o=>r.get(P.ToPlainDate(o))==null);return n.length===0?r:Re.Create(Ki(n,o=>o.valueOf()),ss(n,o=>o.valueOf()))}setAll(e,t,i){return Gr(this,void 0,void 0,function*(){var a;this._items[e.departure]||(this._items[e.departure]={});let r=this._items[e.departure][e.arrival];r?r=Ks(r):(r=new pt,this._items[e.departure][e.arrival]=r);const n=Gs.Create(P.ToPlainDate(e.searchPeriod.from),P.ToPlainDate(e.searchPeriod.to)).dates();for(var o of n){const p=De(t.filter(A=>P.ToPlainDateInTimezone(A.trips[0].departureDateTime,A.timezone).equals(o)).map(A=>hl(A,i)),A=>A.trips[0].departureDateTime.valueOf()),u=Ii(p.flatMap(A=>{var I;return(I=A.customMessages)!==null&&I!==void 0?I:[]}));let d=u.map(A=>Xo.get(A)).filter(A=>A!=null).map(A=>A);const m=u.filter(A=>!d.some(I=>I.id==A));if(m.length>0){const A=yield Xr.getPublic(m);for(const I of A)d.push(I)}const b=p.flatMap(A=>A.customMessages.length==0?null:A.customMessages.map(I=>{var C;return(C=d.find(q=>q.type==0&&q.id==I))!==null&&C!==void 0?C:null})),D=Pe(b,A=>A==null?void 0:A.id);Object.keys(D).length==1?(r.set(o,{customMessages:(a=p[0].customMessages)===null||a===void 0?void 0:a.filter(A=>{var I;return((I=d.find(C=>C.id==A))===null||I===void 0?void 0:I.type)==0}),solutions:p}),p.forEach(A=>{var I;A.customMessages=(I=A.customMessages)===null||I===void 0?void 0:I.filter(C=>{var q;return((q=d.find(ce=>ce.id==C))===null||q===void 0?void 0:q.type)!=0})}
3)):r.set(o,{customMessages:void 0,solutions:p})}this._items[e.departure][e.arrival]=r,this.Changed.emit()})}clear(){this._items={}}}class pl extends $a{constructor(){super(bs.TRAVEL_SOLUTION_SEARCHED)}}class gl extends $a{constructor(){super(bs.TRAVEL_SOLUTION_SEARCHED_WITH_STAGING)}}var bu=new pl;new gl;class ml extends w{getAll(){return c.get(l.serverUrl+"BusMaps")}getAllByCarriers(e){return c.get(l.serverUrl+`BusMaps/allByCarriers/${e}`)}isUsed(e){return c.get(l.serverUrl+`BusMaps/isUsed/${e}`).catch(this.asServerError)}get(e,t){return c.get(l.serverUrl+`BusMaps/${e}?carrierId=${t??""}`).catch(this.asServerError)}save(e){return c.post(l.serverUrl+"BusMaps/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`BusMaps/${e}`).catch(this.asServerError)}getBusMapByBusTrip(e,t,i,a,r,n,o,p,u){return c.get(l.serverUrl+`BusMaps/seats/${e}?departureStopId=${t??""}&arrivalStopId=${i??""}&reservationId=${a??""}&carrierId=${r??""}&pickupChange=${n?"true":"false"}&dropOffChange=${o?"true":"false"}&departureDateTime=${p??""}&arrivalDateTime=${u??""}`).catch(this.asServerError)}}var ui=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Se=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class ke{isUsed(e){return ke.busMapService.isUsed(e)}REQUEST_ONE(e,t){return ke.busMapService.get(e,t||"")}REQUEST_ALL(){return ke.busMapService.getAll()}ADD_ONE(e){return ke.busMapService.save(e)}SAVE_ONE(e){return ke.busMapService.save(e)}DELETE_ONE(e){return ke.busMapService.delete(e).then(()=>e)}getBusMapByBusTrip(e,t,i,a,r,n,o,p,u){return ke.busMapService.getBusMapByBusTrip(e,i||null,a||null,r||null,t,n,o,P.compactUTCDateWithMinutesString(p),P.compactUTCDateWithMinutesString(u))}}ke.busMapService=new ml;ui([h,Se("design:type",Function),Se("design:paramtypes",[String]),Se("design:returntype",void 0)],ke.prototype,"isUsed",null);ui([h,Se("design:type",Function),Se("design:paramtypes",[String,Object]),Se("design:returntype",void 0)],ke.prototype,"REQUEST_ONE",null);ui([h,Se("design:type",Function),Se("design:paramtypes",[]),Se("design:returntype",void 0)],ke.prototype,"REQUEST_ALL",null);ui([h,Se("design:type",Function),Se("design:paramtypes",[Object]),Se("design:returntype",void 0)],ke.prototype,"ADD_ONE",null);ui([h,Se("design:type",Function),Se("design:paramtypes",[Object]),Se("design:returntype",void 0)],ke.prototype,"SAVE_ONE",null);ui([h,Se("design:type",Function),Se("design:paramtypes",[String]),Se("design:returntype",void 0)],ke.prototype,"DELETE_ONE",null);ui([h,Se("design:type",Function),Se("design:paramtypes",[String,String,String,String,Object,Boolean,Boolean,Date,Date]),Se("design:returntype",void 0)],ke.prototype,"getBusMapByBusTrip",null);const It=new ke;var vl=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class fl extends j{constructor(){super(e=>e.id),this.use=e=>this.useWithAction(()=>It.REQUEST_ALL(),e),this.getOrRequest=e=>vl(this,void 0,void 0,function*(){var t;return(t=this.get(e))!==null&&t!==void 0?t:It.REQUEST_ALL().then(i=>i.find(a=>a.id==e))}),z.onfunction(It.ADD_ONE,e=>this.add(e)).onfunction(It.SAVE_ONE,e=>this.update(e)).onfunction(It.DELETE_ONE,e=>this.delete(e)).onfunction(It.REQUEST_ALL,e=>this.setAll(e)).onfunction(It.REQUEST_ONE,e=>this.updateOrAdd(e))}getBusMapsForChangeBus(e,t,i){return i?this.getall().filter(a=>a.id!=e&&a.totalSeats>=t):this.getall().filter(a=>a.id!=e&&a.totalSeats-a.reservedSeats>=t)}}const yl=new fl;var $s=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};const Pu=(s,e,t,i,a,r,n)=>{const o=Ks(s??[]);let p=o.find(u=>u.tripId===t);if(p){const u=p.passengers.findIndex(d=>d.passengerIndex==i&&d.ticketIndex==a);r?u<0?p.passengers.push({passengerIndex:i,ticketIndex:a,seats:n}):p.passengers[u].seats=n:p.passengers.splice(u,1)}else o.push({tripId:t,passengers:[{passengerIndex:i,ticketIndex:a,seats:n}]});return o};function Au(s,e,t){return $s(this,void 0,void 0,function*(){return yield Promise.all(s.filter(a=>a.tripId!=="").map((a,r)=>
3$s(this,void 0,void 0,function*(){var n,o;if(a.canSelectSeat){const m={carrierId:a.carrierId,data:yield It.getBusMapByBusTrip(a.tripId,a.carrierId,a.departureId,a.arrivalId,t,r!=0,r!=s.length-1,a.departureDateTime,a.arrivalDateTime)},b=m.data;yl.get(b.busmapid)||(yield It.REQUEST_ONE(b.busmapid,m.carrierId));var p=ae(ae((o=(n=e.find(T=>T.tripId==b.tripid))===null||n===void 0?void 0:n.passengers.map(T=>{var A;return(A=T.seats)!==null&&A!==void 0?A:[]}))!==null&&o!==void 0?o:[])).flat();if(p)for(var u of p){var d=b.seatoccupation.find(T=>T.seatnumber==u);d&&(d.occupation={reserved:d.occupation.reserved,occupationNumber:0,hasDisabilities:d.occupation.hasDisabilities,categoriesId:d.occupation.categoriesId})}return b}else return{busmapid:"",luggagesSlots:[],seatoccupation:[],tripid:a.tripId,travelMode:a.travelMode}})))})}function*Sl(s,e){for(const t of s.matrix){let i=[];for(const a of De(t,r=>r.col))a.available?(i=[...i,a],i.length==e&&(yield i,i=[])):i=[]}}function*Cu(s,e,t,i){const a=t.filter(o=>!i&&o.occupation.reserved||o.occupation.occupationNumber>0),r=Sl(s,e);let n=r.next();for(;!n.done;)n.value.some(o=>a.find(p=>o.number==p.seatnumber))||(yield n.value),n=r.next()}class Eu extends w{get(e){return c.get(l.serverUrl+`coupons/${e}`).catch(this.asServerError)}verify(e){return c.post(l.serverUrl+"coupons/verify",e).catch(this.asServerError)}filter(e){return c.post(l.serverUrl+"coupons/filter",e).catch(this.asServerError)}filter2(e){return c.post(l.serverUrl+"coupons/filter2",e).catch(this.asServerError)}forAgency(e){return c.post(l.serverUrl+"coupons/forAgency",e).catch(this.asServerError)}save(e){return c.post(l.serverUrl+"coupons/",e).catch(this.asServerError)}generate2(e){return c.post(l.serverUrl+"coupons/generate2",e).catch(this.asServerError)}generate(e){return c.post(l.serverUrl+"coupons/generate",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`coupons/${e}`).catch(this.asServerError)}reactivate(e){return c.post(l.serverUrl+"coupons/reactivate",e).catch(this.asServerError)}reactivateForOperator(e){return c.post(l.serverUrl+"coupons/reactivateForOperator",e).catch(this.asServerError)}getPromotions(){return c.get(l.serverUrl+"coupons/promotions").catch(this.asServerError)}operationsDetails(e){return c.post(l.serverUrl+"coupons/operations",e).catch(this.asServerError)}}let bl=class extends Ti{constructor(){super(e=>e.id),this.useBooking=e=>this.useWithAction(()=>Ze.getManyAnonymous([e]),e),z.onfunction(Ze.getManyAnonymous,e=>this.updateOrAddAll(e.tickets))}addChangeListener(e){this.Changed.register(e)}removeChangeListener(e){this.Changed.unregister(e)}getTicketPartsForUser(e){const t=[];return e.parts.forEach(i=>{i.isCanceled||t.push(i)}),t}getTicketOfGroup(e){var t=this.getall();return t.filter(i=>i.groupid===e)}getValidParts(e){return De(e.parts.filter(t=>!t.isCanceled),t=>t.departureDate.valueOf())}getValidPartsFromReservation(e){return De(e.segments,t=>t.departureTime.valueOf())}getTicketValidParts(e){return W.getTicketValidParts(e)}getTicketDepartureDate(e){var t=this.getTicketValidParts(e);if(t.length>0)return t[0].departureDate}getTicketArrivalDate(e){var t=this.getTicketValidParts(e);return t[t.length-1].arrivalDate}};const Du=new bl;class Tu extends w{getStopLiveDepartureStatus(e){return c.get(l.serverUrl+`stoplivestatus/departure/${e}`).catch(this.asServerError)}getStopLiveStatusForArrival(e){return c.get(l.serverUrl+`stoplivestatus/arrival/${e}`).catch(this.asServerError)}getStopLiveStatusForTicket(e){return c.get(l.serverUrl+`stoplivestatus/ticket/${e}`).catch(this.asServerError)}}var Va=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Ei=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Pl=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class li{getPricedLuggagesForTicket(e,t){return Pl(this,void 0,void 0,function*(){const i=yield li.ticketsService.getLuggagesForTicket(e,t);return{ticketId:e,billingOperatorId:t,luggages:i}})}getServicesPrices(e){return li.ticketsService.getServicesPrices(e)}}li.ticketsService=new Rr;Va([h,Ei("design:type",Function),Ei("design:paramtypes",[String,Object]),Ei("design:returntype",Promise)],li.prototype,"getPricedLuggagesForTicket",null);Va([h,Ei("design:type",Function),Ei("design:paramtypes",[Object]),Ei("design:returntype",void 0)],li.prototype,"getServicesPrices",null);const ts=new li;class Al extends Hi{constructor(){super(),this.useForTicket=(e,t)=>this.useStoreWithAction(this.getKey(e,t),i=>ts.getPricedLuggagesForTicket(this.getDataFromKey(i).ticketId,this.getDataFromKey(i).billingOperatorId)),z.onfunction(ts.getPricedLuggagesForTicket,e=>this.set(this.getKey(e.ticketId,e.billingOperatorId),[e.luggages]))}getKey(e,t){return`${e}|${t??""}`}getDataFromKey(e){const t=e.split("|");return{ticketId:t[0],billingOperatorId:t[1]||""}}}const Iu=new Al;function wu(s,e,t,i){var a,r,n,o;if(e==null)return 0;let p=i.find(D=>D.id===s);if(!p.defaultOccupation)return Number.MAX_SAFE_INTEGER;const u=e.map(D=>({cargoType:D.CargoType,units:D.Units})),d=p.requiredCargoTypes!=null?u.filter(D=>{var T;return p.requiredCargoTypes.includes((T=D.cargoType)!==null&&T!==void 0?T:-1)}):[],m=((r=(a=p.requiredCargoTypes)===null||a===void 0?void 0:a.length)!==null&&r!==void 0?r:0)>0?[]:u.filter(D=>D.cargoType==null),b=Q(d.concat(m),D=>D.units);return Math.floor(b/((o=(n=p.defaultOccupation)!==null&&n!==void 0?n:p.minOccupation)!==null&&o!==void 0?o:0))}function ku(s){const e=ae(s.map(a=>Ne(Pe(a,r=>r.CargoType),r=>({CargoType:r[0].CargoType,Units:Q(r,n=>n.Units)})))),t=Pe(e,a=>a.CargoType);return Ne(t,a=>({CargoType:a[0].CargoType,Units:Ki(a.map(r=>r.Units))}))}
3class Cl extends Hi{constructor(){super(),this.getMany=e=>{var t;let i={};for(const a of e)i[a]=(t=this.get(a))!==null&&t!==void 0?t:[];return i},this.use=e=>this.useStoreWithAction(e,ye.children),z.onfunction(ye.children,e=>this.set(e.parentId,e.children)).onfunction(ye.manychildren,e=>{Ja(Pe(e,t=>t.parentId),(t,i)=>{this.set(i,t)})})}}const Nu=new Cl;class El extends Ti{constructor(){super(e=>e.id),this.use=e=>this.useWithAction(()=>Ze.ticketDetail(e),e),this.useForGroup=e=>this.useManyWithAction(()=>Ze.ticketGroupDetailed(e),[e]),z.onfunction(Ze.ticketDetail,e=>this.updateOrAdd(e.ticket)).onfunction(Ze.ticketGroupDetailed,e=>this.updateOrAddAll(e.tickets)).onfunction(Ze.ticketGroupDetailedByTicketID,e=>this.updateOrAddAll(e.tickets)).onfunction(Ze.getByCode,e=>this.updateOrAdd(e))}addChangeListener(e){this.Changed.register(e)}removeChangeListener(e){this.Changed.unregister(e)}getTicketPartsForUser(e){const t=[];return e.parts.forEach(i=>{i.isCanceled||t.push(i)}),t}getTicketOfGroup(e){var t=this.getall();return t.filter(i=>i.groupid===e)}getValidParts(e){return De(e.parts.filter(t=>!t.isCanceled),t=>t.departureDate.valueOf())}getValidPartsFromReservation(e){return De(e.segments,t=>t.departureTime.valueOf())}getTicketValidParts(e){return W.getTicketValidParts(e)}getTicketDepartureDate(e){var t=this.getTicketValidParts(e);if(t.length>0)return t[0].departureDate}getTicketArrivalDate(e){var t=this.getTicketValidParts(e);return t[t.length-1].arrivalDate}}const Fu=new El,Rl=s=>({extraData:s.extraData,luggageId:s.luggageId,occupationUnits:s.occupationUnits,minOccupation:s.minOccupation,maxOccupation:s.maxOccupation,cardId:s.cardId,price:0,faresInfo:[],extraFares:[],excluded:!0}),zu=s=>[...s.priced.luggages,...s.excluded.map(Rl)];var Dl=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};const Ou=(s,e,t)=>Dl(void 0,void 0,void 0,function*(){const i=yield ts.getServicesPrices({ticketId:s,services:e.map(n=>{var o,p;return{id:n.category.id,extraData:(o=n.extra)!==null&&o!==void 0?o:null,cardId:(p=n.cardId)!==null&&p!==void 0?p:void 0}}),billingOperatorId:t}),a=e.length>0&&!e.every(n=>i.luggages.find(o=>n.category.id==o.luggageId));return{items:i.luggages.map(n=>({item:{id:n.luggageId,extraData:n.extraData,forcedPrice:void 0,cardId:n.cardId},price:n.price,extraFares:n.extraFares})),hasUnavailable:a}});class Tr{}Tr.canProceed=(s,e,t,i,a)=>{var r,n;const o=((r=s==null?void 0:s.metadata)===null||r===void 0?void 0:r.type)=="paypal"&&(s==null?void 0:s.metadata.clientIntegration),p=((n=s==null?void 0:s.metadata)===null||n===void 0?void 0:n.type)=="creditCard"&&i==null&&(s==null?void 0:s.metadata.clientIntegration)&&!a;return o?(e||"").length>0:p?(t||"").length>0:s!==null&&(s==null?void 0:s.type)!==null&&(s==null?void 0:s.type)!==0};Tr.canProceedReservationAndPrice=(s,e,t,i)=>{var a,r;if(s<=0)return!0;const n=((a=e.paymentMethodMetadata)===null||a===void 0?void 0:a.type)=="paypal"&&e.paymentMethodMetadata.clientIntegration,o=((r=e.paymentMethodMetadata)===null||r===void 0?void 0:r.type)=="creditCard"&&e.subPaymentMethod==null&&e.paymentMethodMetadata.clientIntegration&&!e.paymentDataId;return n?(t||"").length>0:o?(i||"").length>0:s>0&&e.paymentMethod!==null&&e.paymentMethod!==0};Tr.canProceedReservation=(s,e)=>{var t,i;const a=((t=s==null?void 0:s.paymentMethodMetadata)===null||t===void 0?void 0:t.type)=="paypal"&&s.paymentMethodMetadata.clientIntegration;return((i=s==null?void 0:s.price)!==null&&i!==void 0?i:0)==0?!0:a?(e||"").length>0:s!==null&&s.price>0&&s.paymentMethod!==null&&s.paymentMethod!==0};Tr.blockRefundWithoutEmailNorSms=(s,e)=>l.environmentName!=="libertylines"?!1:!s&&!e;class Tl extends w{getAllNotFiltered(){return c.get(l.serverUrl+"carriers/allnotfiltered").catch(this.asServerError)}getAll(e){return c.get(l.serverUrl+`carriers?isCarrier=${e??""}`).catch(this.asServerError)}get(e){return c.get(l.serverUrl+`carriers/${e}`).catch(this.asServerError)}getAllRentals(){return c.get(l.serverUrl+"carriers/allrentals").catch(this.asServerError)}saveRental(e){return c.post(l.serverUrl+"carriers/saverental",e).catch(this.asServerError)}setRental(e){return c.post(l.serverUrl+`carriers/setrental/${e}`).catch(this.asServerError)}removeRental(e){return c.delete(l.serverUrl+`carriers/removerental?carrierId=${e??""}`).catch(this.asServerError)}}var Il=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,Oi=(s,e,t,i)=>{for(var a=i>1?void 0:i?wl(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&Il(e,t,a),a};const Jt=class ri{getAllForTenant(){return ri.service.getAll()}getAllRentals(){return ri.service.getAllRentals()}saveRental(e){return ri.service.saveRental(e)}setRental(e){return ri.service.setRental(e)}deleteRental(e){return ri.service.removeRental(e)}getAll(){return ri.service.getAllNotFiltered()}};Jt.service=new Tl;Oi([h],Jt.prototype,"getAllForTenant",1);Oi([h],Jt.prototype,"getAllRentals",1);Oi([h],Jt.prototype,"saveRental",1);Oi([h],Jt.prototype,"setRental",1);Oi([h],Jt.prototype,"deleteRental",1);Oi([h],Jt.prototype,"getAll",1);let kl=Jt;const rt=new kl;let Nl=class extends j{constructor(){super(e=>e.id),this.temporarycompanies=[{id:"openjob",name:"OpenJob"},{id:"temporary",name:"Temporary"}],this.useAll=()=>this.useAllWithAction(()=>rt.getAll()),this.useAllTenant=()=>this.useAllWithAction(()=>rt.getAllForTenant()),z.onfunction(rt.getAllForTenant,e=>this.setAll(e)).onfunction(rt.setRental,e=>this.updateOrAdd(e)).onfunction(rt.deleteRental,e=>this.updateOrAdd(e))}getAll(){return this.getall()}get(e){return this.getAll().find(t=>
3t.id===e)||null}getDefault(){return this.getAll().find(e=>e.isDefault)}getAllTemporary(){return this.temporarycompanies}getTemporary(e){return this.temporarycompanies.find(t=>t.id===e)}formatCompany(e){var t="";if(e.driverType.employed&&(t="Di ruolo"),e.driverType.temporary){let a=this.getTemporary(e.temporarycompanyid);a!==void 0&&(t=a.name);var i=0;e.workingPeriods.forEach(r=>{i=i+P.differenceInDays(r.to,r.from).days}),t=t+" (Giorni lavorati: "+i+")"}return t}};new Nl;class Fl extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>rt.getAllForTenant()),z.onfunction(rt.getAll,e=>this.setAll(e))}}const zl=new Fl;class Ol extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>rt.getAllRentals()),z.onfunction(rt.getAllRentals,e=>this.setAll(e)).onfunction(rt.saveRental,e=>this.updateOrAdd(e)).onfunction(rt.setRental,e=>this.updateOrAdd(e)).onfunction(rt.deleteRental,e=>this.delete(e.id))}}new Ol;let Ll=(s,e)=>Pt(s,zl,()=>rt.getAll(),e);class Ml extends Le.PureComponent{render(){var e;let t=this.props.companies[this.props.companyId];return t==null?(e=this.props.fallBack)!=null?e:N.jsx("span",{}):N.jsx("span",{children:this.props.template(t)})}}const Mu=Ll(Ml)(s=>s.allByKey(),"companies");class Ul{constructor(){this.Changed=new Di,this._departuresStorage=new si,this._arrivalsStorage=new si,z.onfunction(ai.GetDepartures,e=>{this._departuresStorage.set(e),this._arrivalsStorage.set([]),this.Changed.emit()}).onfunction(ai.GetArrivals,e=>{this._arrivalsStorage.set(e),this.Changed.emit()})}getDepartureByDescription(e){if(!e)return null;const t=this.getDepartures();return t&&t.find(i=>M.removeDiacritics(i.description.toLowerCase().substring(0,e.length))==M.removeDiacritics(e.toLowerCase()))||null}getArrivalByDescription(e){if(!e)return null;const t=this.getArrivals();return t&&t.find(i=>M.removeDiacritics(i.description.toLowerCase().substring(0,e.length))==M.removeDiacritics(e.toLowerCase()))||null}getDepartures(){const e=this._departuresStorage.get();return e?e.sort((t,i)=>t.description.toLowerCase()<i.description.toLowerCase()?-1:t.description.toLowerCase()>i.description.toLowerCase()?1:0):null}getArrivals(){const e=this._arrivalsStorage.get();return e?e.sort((t,i)=>t.description.toLowerCase()<i.description.toLowerCase()?-1:t.description.toLowerCase()>i.description.toLowerCase()?1:0):null}}const We=new Ul;var Wr=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class xa extends Le.PureComponent{constructor(){super(...arguments),this.listener=()=>{if(We.getDepartureByDescription(this.props.selectedDeparture)){var t=We.getArrivalByDescription(this.props.selectedArrival);t&&this.onSelectArrival(t)}},this.onSelectDeparture=e=>Wr(this,void 0,void 0,function*(){e?e.isZoneType||(yield ai.GetArrivals(e.id)):this.setState({arrivals:[]}),this.props.onSelect(e||null,e!=null&&e.isZoneType?e:null)}),this.onSelectArrival=e=>{const t=We.getDepartureByDescription(this.props.selectedDeparture);this.props.onSelect(t,e||null)}}componentDidUpdate(e){return Wr(this,void 0,void 0,function*(){if(!this.props.selectedDeparture)this.props.app&&this.props.onSelect(null,null);else if(e.selectedDeparture!==this.props.selectedDeparture&&this.props.selectedArrival!==this.props.selectedArrival){const t=We.getDepartureByDescription(this.props.selectedDeparture);if(t){const i=We.getArrivalByDescription(this.props.selectedArrival);i?this.props.onSelect(t,i):this.props.app||this.props.onSelect(t,null)}}else M.invariantEquals(e.selectedDeparture,this.props.selectedDeparture)?M.invariantEquals(e.selectedArrival,this.props.selectedArrival)||this.onSelectArrival(We.getArrivalByDescription(this.props.selectedArrival)):this.onSelectDeparture(We.getDepartureByDescription(this.props.selectedDeparture))})}componentDidMount(){return Wr(this,void 0,void 0,function*(){We.Changed.register(this.listener);var e=We.getDepartures();e||(yield ai.GetDepartures());const t=We.getDepartureByDescription(this.props.selectedDeparture);t&&this.props.selectedArrival&&(yield ai.GetArrivals(t.id))})}componentWillUnmount(){We.Changed.unregister(this.listener)}render(){const e=We.getDepartureByDescription(this.props.selectedDeparture),t=We.getArrivalByDescription(this.props.selectedArrival),i=this.props.component;return N.jsx(i,{departures:this.props.departures,arrivals:e&&this.props.arrivals||[],departureValue:e,arrivalValue:t,onSelectDeparture:this.onSelectDeparture,onSelectArrival:this.onSelectArrival,disable:this.props.disable,onExchangeDepartureArrival:()=>{},wrap:this.props.wrap})}}xa.getSelector=s=>s.description;const Uu=qs(xa,We,s=>({departures:s.getDepartures(),arrivals:s.getArrivals()}));var lr=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},qe=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Bl=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};let hi=class Si{ActiveSubscriptions(){return Si.service.active()}FilterSubscriptions(e){return Si.service.massiveFilter(e)}GetByPersonId(e){return Bl(this,void 0,void 0,function*(){const t=yield Si.service.getByPersonId(e);return{personId:e,result:t}})}confirmPosRefund(e){return Si.service.confirmPosRefund(e)}getBankTransfersToRefund(e){return Si.service.getBankTransfersToRefund(e.join(","))}};hi.service=new os;lr([h,qe("design:type",Function),qe("design:paramtypes",[]),qe("design:returntype",void 0)],hi.prototype,"ActiveSubscriptions",null);lr([h,qe("design:type",Function),qe("design:paramtypes",[Object]),qe("design:returntype",void 0)],hi.prototype,"FilterSubscriptions",null);lr([h,qe("design:type",Function),qe("design:paramtypes",[String]),qe("design:returntype",Promise)],hi.prototype,"GetByPersonId",null);lr([h,qe("design:type",Function),qe("design:paramtypes",[Object]),qe("design:returntype",void 0)],hi.prototype,"confirmPosRefund",null);lr([h,qe("design:type",Function),qe("design:paramtypes",[Array]),qe("design:returntype",void 0)],hi.prototype,"getBankTransfersToRefund",null);const Bu=new hi;class $l extends w{getPastSubscriptionsByUser(e){return c.get(l.serverUrl+`bookingsubscriptions/past?period=${e??""}`).catch(this.asServerError)}}var Vl=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Hr=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class cr{getPastSubscriptionsByUser(e){return cr.service.getPastSubscriptionsByUser(e)}}cr.service=new $l;Vl([h,Hr("design:type",Function),Hr("design:paramtypes",[Number]),Hr("design:returntype",void 0)],cr.prototype,"getPastSubscriptionsByUser",null);
3const $u=new cr;class Vs{constructor(){this.CountryIsoCode="it"}}Vs.ForUser=s=>{var e;const t=new Vs;return t.Email=s==null?void 0:s.email,t.CallingCode=(e=s==null?void 0:s.callingCode)!==null&&e!==void 0?e:"+39",t.PhoneNumber=s==null?void 0:s.phoneNumber,t};class xl{}class _l extends w{getAll(){return c.get(l.serverUrl+"addressData").catch(this.asServerError)}post(e){return c.post(l.serverUrl+"addressData/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`addressData/${e}`).catch(this.asServerError)}}var Ps=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Ut=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},xs=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class Bt{getAll(){return Bt.service.getAll()}save(e){return xs(this,void 0,void 0,function*(){const t=yield Bt.service.post(e);return Object.assign(Object.assign({},e),{id:t})})}delete(e){return xs(this,void 0,void 0,function*(){return yield Bt.service.delete(e),e})}}Bt.service=new _l;Ps([h,Ut("design:type",Function),Ut("design:paramtypes",[]),Ut("design:returntype",void 0)],Bt.prototype,"getAll",null);Ps([h,Ut("design:type",Function),Ut("design:paramtypes",[Object]),Ut("design:returntype",Promise)],Bt.prototype,"save",null);Ps([h,Ut("design:type",Function),Ut("design:paramtypes",[Number]),Ut("design:returntype",Promise)],Bt.prototype,"delete",null);const Vi=new Bt;class jl extends j{constructor(){super(e=>e.id.toString()),this.use=e=>this.useWithAction(()=>Vi.getAll(),e),this.useAll=()=>this.useAllWithAction(()=>Vi.getAll()),z.onfunction(Vi.getAll,e=>this.setAll(e)).onfunction(Vi.save,e=>this.update(e)).onfunction(Vi.delete,e=>this.delete(e.toString()))}}const Vu=new jl;class xu{validate(e){var t=new gt(xl);return M.isNullOrWhiteSpace(e.FirstName)&&(t.errors.FirstName="*",t.isValid=!1),M.isNullOrWhiteSpace(e.LastName)&&(t.errors.LastName="*",t.isValid=!1),M.isNullOrWhiteSpace(e.Address)&&(t.errors.Address="*",t.isValid=!1),(M.isNullOrWhiteSpace(e.City)||e.City.length<3)&&(t.errors.City="*",t.isValid=!1),M.isNullOrWhiteSpace(e.CountryIsoCode)&&(t.errors.CountryIsoCode="*",t.isValid=!1),M.isNullOrWhiteSpace(e.ZipCode)&&(t.errors.ZipCode="*",t.isValid=!1),t}}class _u extends w{getUser(e){return c.get(l.serverUrl+`users/${e}`).catch(this.asServerError)}changeActivation(e,t){return c.post(l.serverUrl+`users/changeActivation?agencyId=${t??""}`,e).catch(this.asServerError)}}class ql extends Ti{constructor(){super(e=>e.id),this.searchedLocalities={},this.useMany=e=>this.useManyWithAction(t=>hr.getManyAccumulated(t),e),z.onfunction(hr.search,e=>{this.searchedLocalities[e.searchValue.toLowerCase()]=e.localities,this.updateOrAddAll(e.localities)}).onfunction(hr.get,e=>this.updateOrAdd(e)).onfunction(hr.getManyAccumulated,e=>this.updateOrAddAll(e))}getSearchResult(e,t){var i=this.searchedLocalities[e.toLowerCase()];return i===void 0?[]:t?i.filter(a=>a.countryCode===t):i}}const ju=new ql;var Gl=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})},Oe;(function(s){s[s.NotPayedSubscription=0]="NotPayedSubscription",s[s.CanceledSubscription=1]="CanceledSubscription",s[s.ValidityPeriodExceeded=2]="ValidityPeriodExceeded",s[s.RemainingTripsExceeded=3]="RemainingTripsExceeded",s[s.OutboundDayTripsLimitExceeded=4]="OutboundDayTripsLimitExceeded",s[s.InboundDayTripsLimitExceeded=5]="InboundDayTripsLimitExceeded",s[s.DayNotIncluded=6]="DayNotIncluded"})(Oe||(Oe={}));class Wl{static validate(e,t,i){if(e.isCanceled)return{isValid:!1,errorCode:Oe.CanceledSubscription};if(!e.isPayed)return{isValid:!1,errorCode:Oe.NotPayedSubscription};var a=ae(i.map(C=>C.trips)),r=Ki(a,C=>C.departureDateTime).departureDateTime,n=ss(a,C=>C.departureDateTime).departureDateTime,o=new Re(e.validity);if(!o.contains(r)||!o.contains(n))return{isValid:!1,errorCode:Oe.ValidityPeriodExceeded};var p=e.reservations.filter(C=>!C.isCanceled&&!C.isExpired);if(e.tripsNumber!=null){var u=i.length+p.length;if(u>e.tripsNumber)return{isValid:!1,errorCode:Oe.RemainingTripsExceeded}}if(e.tripsNumberOutboundPerDay!=null||e.tripsNumberInboundPerDay!=null){var d=Ne(Pe(p,C=>JSON.stringify({departure:C.departure,arrival:C.arrival,date:P.ToDate(C.departureDate)})),(C,q)=>{const ce=JSON.parse(q);
3return{departure:ce.departureLocality,arrival:ce.arrivalLocality,date:new Date(ce.date),tot:C.length}}),m=Ne(Pe(i,C=>JSON.stringify({departure:C.trips[0].departureLocality,arrival:C.trips[C.trips.length-1].arrivalLocality,date:P.ToDate(C.trips[0].departureDateTime)})),(C,q)=>{const ce=JSON.parse(q);return{departure:ce.departure,arrival:ce.arrival,date:new Date(ce.date),tot:C.length}});if(e.tripsNumberOutboundPerDay!=null){const C=e.departureStopOrPool==e.arrivalPool?e.tripsNumberOutboundPerDay*2:e.tripsNumberOutboundPerDay,q=[...d,...m].filter(L=>L.departure==e.departureStopOrPool&&L.arrival==e.arrivalPool);var b=Ne(Pe(q,L=>L.date.toISOString()),(L,G)=>({date:new Date(G),tot:Q(L,Ce=>Ce.tot)})).filter(L=>L.tot>C);const ce=i.filter(L=>{const G=L.trips[0].departureLocality,Ce=L.trips[L.trips.length-1].arrivalLocality,Y=P.ToDate(L.trips[0].departureDateTime);return b.map(H=>H.date.valueOf()).indexOf(Y.valueOf())!=-1&&G==e.departureStopOrPool&&Ce==e.arrivalPool});if(b.length>0)return{isValid:!1,errorCode:Oe.OutboundDayTripsLimitExceeded,notValidItems:ce}}if(e.tripsNumberInboundPerDay!=null){const C=e.departureStopOrPool==e.arrivalPool?e.tripsNumberInboundPerDay*2:e.tripsNumberInboundPerDay,q=[...d,...m].filter(L=>L.departure==e.arrivalPool&&L.arrival==e.departureStopOrPool);var D=Ne(Pe(q,L=>L.date.toISOString()),(L,G)=>({date:new Date(G),tot:Q(L,Ce=>Ce.tot)})).filter(L=>L.tot>C);const ce=i.filter(L=>{const G=L.trips[0].departureLocality,Ce=L.trips[L.trips.length-1].arrivalLocality,Y=P.ToDate(L.trips[0].departureDateTime);return D.map(H=>H.date.valueOf()).indexOf(Y.valueOf())!=-1&&G==e.arrivalPool&&Ce==e.departureStopOrPool});if(D.length>0)return{isValid:!1,errorCode:Oe.InboundDayTripsLimitExceeded,notValidItems:ce}}}if(t&&t.enabledDaysOfWeek){var T=Ii(ae(i.map(C=>C.trips.map(q=>P.getDayOfWeekName(q.departureDateTime,"it"))))),A=[];t.enabledDaysOfWeek.monday||A.push("lun"),t.enabledDaysOfWeek.tuesday||A.push("mar"),t.enabledDaysOfWeek.wednesday||A.push("mer"),t.enabledDaysOfWeek.thursday||A.push("gio"),t.enabledDaysOfWeek.friday||A.push("ven"),t.enabledDaysOfWeek.saturday||A.push("sab"),t.enabledDaysOfWeek.sunday||A.push("dom");var I=T.find(C=>A.find(q=>q==C));if(I!=null&&I.length||0>0)return{isValid:!1,errorCode:Oe.DayNotIncluded}}return{isValid:!0,errorCode:null}}}class Hl{getNewSelection(e,t,i,a,r){return Gl(this,void 0,void 0,function*(){let n=[...i];const o=Wl.validate(e,t,i);if(!o.isValid)switch(o.errorCode){case Oe.NotPayedSubscription:case Oe.CanceledSubscription:{r("Impossibile aggiungere prenotazioni: l'abbonamento non è valido"),n=[];break}case Oe.ValidityPeriodExceeded:{r("Impossibile aggiungere prenotazioni: l'abbonamento non è valido"),n.pop();const{validity:p}=e;n=n.filter(u=>u.trips[0].departureDateTime>=p.from&&u.trips[0].departureDateTime<=p.to);break}case Oe.RemainingTripsExceeded:{let p=n[0].trips[0];const u=e.tripsNumber-e.reservations.length;(yield a(`Hai terminato il massimo di ${e.tripsNumber} corse selezionabili.
4                        Vuoi continuare liberando la corsa del ${P.getReadableDateTimeString(p.departureDateTime)} 
5                        altrimenti verrà ignorata l'ultima selezione`))?n=n.slice(n.length-u):n=n.slice(0,u)}break;case Oe.OutboundDayTripsLimitExceeded:case Oe.InboundDayTripsLimitExceeded:{n=Xa(n,[o.notValidItems.reverse()[0]],pt.areEqual2);break}case Oe.DayNotIncluded:{r("Il giorno selezionato non è prenotabile!"),n.pop();break}}return en(n,pt.areEqual2)})}}const qu=new Hl;function Gu(s,e,t){return{tripId:s.trip.tripId,carrierId:s.trip.carrierId,departureId:s.departureStopId,departureDateTime:s.departureDateTime,arrivalId:s.arrivalStopId,arrivalDateTime:s.arrivalDateTime,canSelectSeat:s.trip.canSelectSeat,travelMode:s.trip.travelMode,pickupChange:e,dropOffChange:t}}class Kl extends w{getAll(){return c.get(l.serverUrl+"fidelities").catch(this.asServerError)}get(e){return c.get(l.serverUrl+`fidelities/${e}`).catch(this.asServerError)}post(e){return c.post(l.serverUrl+"fidelities/",e).catch(this.asServerError)}put(e){return c.put(l.serverUrl+"fidelities/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`fidelities/${e}`).catch(this.asServerError)}}var Ir=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},ut=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},Zl=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})},xi=new Kl;class dr{requestAll(){return xi.getAll()}get(e){return xi.get(e)}save(e){return xi.post(e)}update(e){return xi.put(e)}delete(e){return Zl(this,void 0,void 0,function*(){return yield xi.delete(e),e})}}Ir([h,ut("design:type",Function),ut("design:paramtypes",[]),ut("design:returntype",void 0)],dr.prototype,"requestAll",null);Ir([h,ut("design:type",Function),ut("design:paramtypes",[String]),ut("design:returntype",void 0)],dr.prototype,"get",null);Ir([h,ut("design:type",Function),ut("design:paramtypes",[Object]),ut("design:returntype",void 0)],dr.prototype,"save",null);Ir([h,ut("design:type",Function),ut("design:paramtypes",[String]),ut("design:returntype",Promise)],dr.prototype,"delete",null);const vi=new dr;class Yl extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>vi.requestAll()),z.onfunction(vi.save,e=>this.updateOrAdd(e)).onfunction(vi.update,e=>this.updateOrAdd(e)).onfunction(vi.requestAll,e=>this.setAll(e)).onfunction(vi.get,e=>this.updateOrAdd(e)).onfunction(vi.delete,e=>this.delete(e))}}new Yl;class Ql extends j{constructor(){super(e=>e.id),this.useAll=()=>this.useAllWithAction(()=>Gi.getAll()),this.useForOperator=e=>this.useWithAction(()=>Gi.movementsForOperator(e),e),z.onfunction(Gi.getAll,e=>this.setAll(e))}}const Wu=new Ql;class Jl extends Hi{constructor(){super(),this.useForOperator=e=>this.useStoreWithAction(e,t=>Gi.movementsForOperator(t)),z.onfunction(Gi.movementsForOperator,e=>this.set(e.operatorId,e.data))}}new Jl;class Hu{validateName(e,t,i){var a=new gt(Cs);return t==0||(t==1&&i.length>1&&i.every(r=>M.isNullOrWhiteSpace(r.name)&&M.isNullOrWhiteSpace(r.surname))&&(a.errors.name="Inserisci almeno il nominativo di un passeggero",a.isValid=!1),(t==2||i.length==1)&&((M.isNullOrWhiteSpace(e.name)||e.name.length<2)&&(a.errors.name="Inserisci il nome del passeggero",a.isValid=!1),(M.isNullOrWhiteSpace(e.surname)||e.surname.length<2)&&(a.errors.surname="Inserisci il cognome del passeggero",a.isValid=!1))),a}validate(e,t,i,a,r,n,o,p=2){var u,d,m=new gt(Cs);const b=x.extraParamsErrors(t,i,e.extraData,n);b!=null&&(m.errors.extraParams=b,m.isValid=!1);const D=(d=(u=r.find(T=>T.id==e.fareCategoryId))===null||u===void 0?void 0:u.type)!==null&&d!==void 0?d:0;if(o||D==0){const T=this.validateName(e,p,a);T.isValid||(m.isValid=!1,Object.assign(m.errors,T.errors))}return m}}class Ku extends w{getTicket(e){return c.get(l.serverUrl+`appleWalletPass/ticket/${e}`).catch(this.asServerError)}getSubscription(e){return c.get(l.serverUrl+`appleWalletPass/subscription/${e}`).catch(this.asServerError)}}class Zu extends w{getTicket(e){return c.get(l.serverUrl+`googleWalletPass/ticket/${e}`).catch(this.asServerError)}getSubscription(e){return c.get(l.serverUrl+`googleWalletPass/subscription/${e}`).catch(this.asServerError)}}
5class Yu extends w{getByTicketGroupId(e){return c.get(l.serverUrl+`anonymousinvoicerequests/getByTicketGroupId?id=${e??""}`).catch(this.asServerError)}anonymousCanRequestInvoice(e){return c.post(l.serverUrl+"anonymousinvoicerequests/anonymousCanRequestInvoice",e).catch(this.asServerError)}anonymousAddInvoiceData(e){return c.post(l.serverUrl+"anonymousinvoicerequests/anonymousaddinvoicedata",e).catch(this.asServerError)}anonymousRemoveInvoiceData(e){return c.post(l.serverUrl+"anonymousinvoicerequests/anonymousremoveinvoicedata",e).catch(this.asServerError)}}class Xl extends w{getAll(){return c.get(l.serverUrl+"walletcharges").catch(this.asServerError)}get(e){return c.get(l.serverUrl+`walletcharges/${e}`).catch(this.asServerError)}search(e){return c.get(l.serverUrl+`walletcharges/${e}`).catch(this.asServerError)}post(e){return c.post(l.serverUrl+"walletcharges/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`walletcharges/${e}`).then(t=>e).catch(this.asServerError)}}var wr=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},ht=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)};class St{getAll(){return St.service.getAll()}get(e){return St.service.get(e)}delete(e){return St.service.delete(e)}post(e){return St.service.post(e)}}St.service=new Xl;wr([h,ht("design:type",Function),ht("design:paramtypes",[]),ht("design:returntype",void 0)],St.prototype,"getAll",null);wr([h,ht("design:type",Function),ht("design:paramtypes",[String]),ht("design:returntype",void 0)],St.prototype,"get",null);wr([h,ht("design:type",Function),ht("design:paramtypes",[String]),ht("design:returntype",void 0)],St.prototype,"delete",null);wr([h,ht("design:type",Function),ht("design:paramtypes",[Object]),ht("design:returntype",void 0)],St.prototype,"post",null);const br=new St;class ec extends j{constructor(){super(e=>e.id),z.onfunction(br.getAll,e=>this.setAll(e)).onfunction(br.delete,e=>this.delete(e)).onfunction(br.post,e=>this.update(e))}}const tc=new ec;let Qu=s=>Pt(s,tc,()=>br.getAll());class ic extends w{get(e){return c.get(l.serverUrl+`agencies/${e}`).catch(this.asServerError)}getManyByIds(e){return c.post(l.serverUrl+"agencies/manyById",e).catch(this.asServerError)}getManyByVatNumbers(e){return c.post(l.serverUrl+"agencies/manyByVatNumber",e).catch(this.asServerError)}getManyLightByIds(e){return c.post(l.serverUrl+"agencies/manyLightById",e).catch(this.asServerError)}searchAgencies(e,t,i,a,r){return c.get(l.serverUrl+`agencies/search?search=${e??""}&categoryId=${t??""}&toActivate=${i??""}&excludeBookingAgency=${a??""}&onlyDeferred=${r??""}`).catch(this.asServerError)}activate(e){return c.post(l.serverUrl+"agencies/activate",e).catch(this.asServerError)}block(e){return c.post(l.serverUrl+"agencies/block",e).catch(this.asServerError)}unblock(e){return c.post(l.serverUrl+"agencies/unblock",e).catch(this.asServerError)}save(e){return c.post(l.serverUrl+"agencies/",e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`agencies/${e}`).catch(this.asServerError)}importOperators(e){return c.post(l.serverUrl+"agencies/importOperators",e).catch(this.asServerError)}getAgenciesReport(){return c.get(l.serverUrl+"agencies/agencies").catch(this.asServerError)}
5getPublicAgencies(){return c.get(l.serverUrl+"agencies/public").catch(this.asServerError)}}var _a=function(s,e,t,i){var a=arguments.length,r=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},Ri=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},_s=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class ci{getReport(){return _s(this,void 0,void 0,function*(){return yield ci.service.getAgenciesReport()})}getPublic(){return _s(this,void 0,void 0,function*(){return yield ci.service.getPublicAgencie
5s()})}}ci.service=new ic;_a([h,Ri("design:type",Function),Ri("design:paramtypes",[]),Ri("design:returntype",Promise)],ci.prototype,"getReport",null);_a([h,Ri("design:type",Function),Ri("design:paramtypes",[]),Ri("design:returntype",Promise)],ci.prototype,"getPublic",null);const rc=new ci;class sc extends j{constructor(){super(e=>e.id),z.onfunction(rc.getPublic,e=>this.setAll(e))}}const Ju=new sc;class ac extends w{getAllForAdmin(){return c.get(l.serverUrl+"rentalrequest").catch(this.asServerError)}getByKeyForAdmin(e){return c.get(l.serverUrl+`rentalrequest/${e}`).catch(this.asServerError)}acceptRental(e,t){return c.put(l.serverUrl+`rentalrequest/accept/${t}`,e).catch(this.asServerError)}declineRental(e,t){return c.put(l.serverUrl+`rentalrequest/decline/${t}`,e).catch(this.asServerError)}update(e,t){return c.put(l.serverUrl+`rentalrequest/${t}`,e).catch(this.asServerError)}upload(e){const t=new FormData;return t.append("file",e),c.upload(l.serverUrl+"rentalrequest/upload",t).catch(this.asServerError)}post(e){return c.post(l.serverUrl+"rentalrequest/",e).catch(this.asServerError)}deleteRequest(e){return c.delete(l.serverUrl+`rentalrequest/${e}`).catch(this.asServerError)}getConfig(){return c.get(l.serverUrl+"rentalrequest/config").catch(this.asServerError)}}class nc extends w{getAll(){return c.get(l.serverUrl+"rentalbusfleetcontroller").catch(this.asServerError)}getByKey(e){return c.get(l.serverUrl+`rentalbusfleetcontroller/${e}`).catch(this.asServerError)}post(e){return c.post(l.serverUrl+"rentalbusfleetcontroller/",e).catch(this.asServerError)}put(e,t){return c.put(l.serverUrl+`rentalbusfleetcontroller/${t}`,e).catch(this.asServerError)}delete(e){return c.delete(l.serverUrl+`rentalbusfleetcontroller/${e}`).catch(this.asServerError)}}var Kr=function(s,e,t,i){function a(r){return r instanceof t?r:new t(function(n){n(r)})}return new(t||(t=Promise))(function(r,n){function o(d){try{u(i.next(d))}catch(m){n(m)}}function p(d){try{u(i.throw(d))}catch(m){n(m)}}function u(d){d.done?r(d.value):a(d.value).then(o,p)}u((i=i.apply(s,e||[])).next())})};class qt{save(e,t){return Kr(this,void 0,void 0,function*(){return e!=null&&t.recaptchaResponse!=null&&(t.fileStorageKey=yield qt.rentalRequestService.upload(e)),yield qt.rentalRequestService.post(t)})}getConfig(){return Kr(this,void 0,void 0,function*(){return yield qt.rentalRequestService.getConfig()})}getFleet(){return Kr(this,void 0,void 0,function*(){return yield qt.BusFleetService.getAll()})}}qt.rentalRequestService=new ac;qt.BusFleetService=new nc;const Xu=new qt;class eh extends w{getReservationPassengerFareCategories(e){return c.get(l.serverUrl+`ticketGroupNames/${e}`).catch(this.asServerError)}getReservationPassengerFareCategoriesCsv(e){return c.get(l.serverUrl+`ticketGroupNames/csv/${e}`).catch(this.asServerError)}putPassengerName(e){return c.put(l.serverUrl+"ticketGroupNames/",e).catch(this.asServerError)}import(e,t){return c.post(l.serverUrl+`ticketGroupNames/upload/${e}`,t).catch(this.asServerError)}}class th extends w{getById(e){return c.get(l.serverUrl+`refundbylink/${e}`).catch(this.asServerError)}resendRefundByLink(e){return c.post(l.serverUrl+"refundbylink/resend",e).catch(this.asServerError)}createRefundByLinkForCanceledTickets(e){return c.post(l.serverUrl+"refundbylink/createForCanceledTickets",e).catch(this.asServerError)}}export{ud as $,Yr as A,Ct as B,F as C,ka as D,x as E,Gn as F,ed as G,hr as H,_t as I,g as J,ls as K,he as L,Dn as M,Ca as N,ns as O,od as P,_c as Q,E as R,Dt as S,td as T,ad as U,pa as V,cd as W,dd as X,Zn as Y,Ta as Z,st as _,fn as a,Wu as a$,hd as a0,pd as a1,sd as a2,pt as a3,Nd as a4,Fd as a5,kd as a6,Pd as a7,zd as a8,Ld as a9,Ss as aA,Cu as aB,yl as aC,Au as aD,Pu as aE,wu as aF,Kt as aG,Nu as aH,ye as aI,ld as aJ,Nt as aK,Mu as aL,aa as aM,qi as aN,la as aO,xl as aP,xu as aQ,Vs as aR,Vi as aS,Vu as aT,yr as aU,ds as aV,Z as aW,_u as aX,Xd as aY,ju as aZ,Ed as a_,Md as aa,Ud as ab,Od as ac,at as ad,$d as ae,Bd as af,ps as ag,Vd as ah,mo as ai,Ae as aj,fr as ak,jd as al,Qd as am,Yd as an,tu as ao,zn as ap,ge as aq,au as ar,su as as,Gc as at,nu as au,qc as av,qd as aw,Rd as ax,bs as ay,bu as az,as as b,nd as b$,Cs as b0,Hu as b1,ku as b2,Jd as b3,Go as b4,Qu as b5,Tr as b6,mn as b7,Aa as b8,fa as b9,pu as bA,mu as bB,vu as bC,fu as bD,dn as bE,yu as bF,Gi as bG,La as bH,zs as bI,fs as bJ,Os as bK,Eu as bL,no as bM,Du as bN,Rr as bO,Tu as bP,Ad as bQ,du as bR,Iu as bS,Fu as bT,zu as bU,Ou as bV,Xc as bW,Uu as bX,ws as bY,Bu as bZ,$u as b_,ya as ba,Ea as bb,Sa as bc,Ra as bd,ba as be,Da as bf,Pa as bg,bt as bh,id as bi,md as bj,vd as bk,Tt as bl,fd as bm,yd as bn,Eo as bo,iu as bp,Cd as bq,bd as br,yi as bs,bi as bt,jo as bu,ou as bv,uu as bw,W as bx,Us as by,_d as bz,Qc as c,Hd as c0,ms as c1,xd as c2,Gu as c3,fi as c4,qu as c5,dl as c6,Ku as c7,Zu as c8,Yu as c9,Ju as ca,rc as cb,Xu as cc,eh as cd,Ba as ce,th as cf,gd as d,Xs as e,Zd as f,Kd as g,ai as h,wt as i,Qr as j,$t as k,ru as l,Xo as m,lu as n,Ze as o,Ft as p,Vc as q,Kc as r,et as s,tn as t,rn as u,sn as v,rd as w,an as x,me as y,jc as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.