1import{a as z,b as T,c as H}from"./chunk-RMIDVPNH.js";import{a as F}from"./chunk-FBFNV7ZN.js";import{a as Q}from"./chunk-PPCIER5Z.js";import{a as B}from"./chunk-2ENNUG5D.js";import"./chunk-XBJ5TR6X.js";import"./chunk-JNWAYHFV.js";import{c as q}from"./chunk-JL6OWXTK.js";import"./chunk-3OFSVKZW.js";import"./chunk-N3BYDYLL.js";import"./chunk-HIQ4A5PL.js";import"./chunk-MUU6G6BE.js";import"./chunk-AAW4H5K3.js";import"./chunk-PB3BTQDY.js";import"./chunk-6YXVQNMV.js";import"./chunk-MAGCBL5F.js";import"./chunk-XDMBUZGS.js";import{a as j}from"./chunk-JYHV3DIG.js";import"./chunk-KAQ2VCQ2.js";import{f as I}from"./chunk-SDYCNOPX.js";import"./chunk-HJEDSNMU.js";import"./chunk-QUOK3ZFK.js";import"./chunk-EYITKG5L.js";import{A as V,i as O,n as N,q as U}from"./chunk-5XMBELDX.js";import"./chunk-XLYNHXVS.js";import{a as D}from"./chunk-3QU7A7VL.js";import{a as k}from"./chunk-5IXNES5Y.js";import"./chunk-LXECQZI5.js";import"./chunk-STXJ6CHD.js";import{R as L,S as R,ba as G}from"./chunk-4N6OC7AV.js";import{$c as y,Fa as f,Ga as g,Gc as _,Hc as C,Ic as x,Lb as b,Mc as A,Nc as M,Rb as v,Zb as o,ac as s,gc as u,id as P,jd as w,lc as a,mc as l,nc as n,rc as E,va as p,xc as S,yc as m,zb as i}from"./chunk-VYR66D5O.js";var K=()=>({right:"chevron_right"});function J(e,d){e&1&&n(0,"div",8),e&2&&o("notificationType","critical")("title","Para el traslado a La Graciosa, es necesario que la compra de los trayectos sea de ida y vuelta y se realice con al menos 48 horas de antelaci\xF3n.")("message","Por favor, selecciona Ida y vuelta y ajusta las fechas seg\xFAn el tiempo de antelaci\xF3n requerido.")}function W(e,d){e&1&&n(0,"div",8),e&2&&o("notificationType","critical")("title","Tienes campos de tu b\xFAsqueda sin seleccionar")("message","Por favor, selecciona todos los datos necesarios para poder buscar tus vuelos.")}function X(e,d){e&1&&(a(0,"div",9),n(1,"app-recover-booking-search"),l())}function Y(e,d){if(e&1){let t=E();a(0,"div",0)(1,"form",2),S("ngSubmit",function(){f(t);let c=m();return g(c.confirm())}),a(2,"div",3)(3,"h1",4),A(4),P(5,"translate"),l(),a(6,"div",5),n(7,"div",6)(8,"span",7)(9,"div",6),l()(),v(10,J,1,3,"div",8)(11,W,1,3,"div",8)(12,X,2,0,"div",9),n(13,"app-fs-select-trip",10)(14,"hr",11)(15,"app-fs-select-dates",10)(16,"hr",11)(17,"app-fs-select-passengers",10)(18,"hr",11),a(19,"div",12)(20,"div",13),S("linkEmitter",function(){f(t);let c=m();return g(c.clear())}),l(),n(21,"div",14),l()()()}if(e&2){let t=m();i(),o("formGroup",t.flightSearchService.form),i(3),M(w(5,37,"B\xFAsqueda de vuelos")),i(3),s("link"),o("textAlign","start")("route",t.ROUTES.GROUP_FLIGHTS)("text","Vuelos en grupo")("classList","p-0")("color","ac-100")("icons",y(39,K)),i(2),s("link"),o("textAlign","start")("route",t.ROUTES.UNACCOMPANIED_MINOR)("text","Menores no acompa\xF1ados")("classList","p-0 ps-3")("color","ac-100")("icons",y(40,K)),i(),u(t.flightSearchService.form.controls.submitted.value&&(t.flightSearchService.form.hasError("datesEmptyGGA")||t.flightSearchService.form.hasError("dates48HoursGGA"))?10:t.flightSearchService.form.controls.submitted.value&&t.flightSearchService.form.invalid?11:-1),i(2),u(t.flightSearchService.userCloseLastFlightSearch()?-1:12),i(),o("flightSearchPage",!0),i(2),o("flightSearchPage",!0),i(2),o("flightSearchPage",!0),i(3),s("outline"),o("type","button")("text","Borrar selecci\xF3n")("size","normal")("textAlign","center")("color","ac-100")("classList","w-100"),i(),o("type","submit")("text","Buscar vuelos")("textAlign","center")("color","ac-100")("size","normal")("classList","w-100")}}function Z(e,d){if(e&1&&(a(0,"div",1),n(1,"app-flight-search-component",15),a(2,"div",16)(3,"div",17),n(4,"div",18),l(),n(5,"span",19),a(6,"div",17),n(7,"div",20),l()()()),e&2){let t=m();i(),o("page","flight-search"),i(3),s("link"),o("textAlign","start")("route",t.ROUTES.GROUP_FLIGHTS)("text","Vuelos en grupo")("classList","p-0")("color","ac-100"),i(3),s("link"),o("textAlign","start")("route",t.ROUTES.UNACCOMPANIED_MINOR)("text","Menores no acompa\xF1ados")("color","ac-100")}}var _e=(()=>{class e{constructor(){this.mainService=p(k),this.flightSearchService=p(q),this._loadingService=p(I),this._scrollService=p(B),this.ROUTES=G}ngOnInit(){this.mainService.appSendNavKey("flights_search"),this._loadingService.hide()}confirm(){this.flightSearchService.form.controls.submitted.setValue(!0),this.selectDateComponent?.confirm(),this.selectPassengersComponent?.confirm(),this.flightSearchService.form.valid?this.flightSearchService.confirmForm():this._scrollService.scrollToTop()}clear(){this.flightSearchService.clearTrip(),this.selectDateComponent?.clear(),this.selectPassengersComponent?.clear()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=b({type:e,selectors:[["app-flight-search-page"]],viewQuery:function(r,c){if(r&1&&(_(F,5),_(T,5)),r&2){let h;C(h=x())&&(c.selectDateComponent=h.first),C(h=x())&&(c.selectPassengersComponent=h.first)}},decls:2,vars:1,consts:[[1,"container","bg-white","p-5","mt-6","mb-64","rounded-3","border-ac-800"],[1,"p-3"],[3,"ngSubmit","formGroup"],[1,"d-flex","justify-content-between","align-items-center"],[1,"font-title-1","mb-0"],[1,"d-flex","gap-3","align-items-center"],["app-button","",3,"textAlign","route","text","classList","color","icons"],[1,"h-separator"],["app-notification","",1,"my-5",3,"notificationType","title","message"],[1,"mt-7"],[3,"flightSearchPage"],[1,"m-0","p-0","text-neutral-800","border-neutral-800"],[1,"d-flex","justify-content-end","mt-6","gap-3","mb-8","mb-lg-0"],["app-button","",3,"linkEmitter","type","text","size","textAlign","color","classList"],["app-button","",3,"type","text","textAlign","color","size","classList"],[3,"page"],[1,"d-flex","align-items-center","justify-content-center","mt-4","mb-8"],[1,"col-auto","d-flex","justify-content-center"],["app-button","",3,"textAlign","route","text","classList","color"],[1,"col-auto","h-separator","mx-4"],["app-button","",3,"textAlign","route","text","color"]],template:function(r,c){r&1&&v(0,Y,22,41,"div",0)(1,Z,8,14,"div",1),r&2&&u(c.mainService.isSM()?0:1)},dependencies:[F,T,Q,R,L,H,V,N,O,U,D,z,j],encapsulation:2})}}return e})();export{_e as FlightSearchComponent};
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.