1import{a as Ye,b as je}from"./chunk-IA5FEKEN.js";import{a as Le}from"./chunk-4BUHMZCM.js";import"./chunk-BYXBJQAS.js";import{a as Se,d as De,e as Ie,f as Pe,g as Ee,i as Re,j as Oe,k as We,l as Ae,m as Be}from"./chunk-MLBOT26K.js";import{M as ye}from"./chunk-ZY7QVEA5.js";import"./chunk-EIIFJILV.js";import"./chunk-ETG5RL5T.js";import"./chunk-XSXJRD4O.js";import"./chunk-AIJUMLVH.js";import{c as ce,d as ue,e as he,f as fe,g as ge}from"./chunk-ZQPZDUZE.js";import{d as me}from"./chunk-GCGXUHFZ.js";import{b as ve}from"./chunk-Z5BPXOER.js";import"./chunk-B7QQ7JOL.js";import"./chunk-JY6LIJXC.js";import"./chunk-IZIHKHB5.js";import"./chunk-NM5RTJHI.js";import{A as V,g as we}from"./chunk-B3JEMF2F.js";import"./chunk-YDUKEJ2E.js";import{c as Ve}from"./chunk-IDBPAATK.js";import"./chunk-H7I2BVQL.js";import"./chunk-QZLF6LOR.js";import"./chunk-K23WVWR5.js";import"./chunk-CRQVDRBT.js";import"./chunk-TBWTWHT5.js";import{Ya as _e}from"./chunk-S5M7JLWQ.js";import"./chunk-DOS6AADU.js";import"./chunk-5THP4IEB.js";import{o as Ce}from"./chunk-IPLKZXBP.js";import"./chunk-44WYLTKA.js";import{j as le,l as pe,o as de}from"./chunk-CBWDEWJH.js";import{a as D,e as I}from"./chunk-2HRT4W4C.js";import{B as re,C as ne,D as oe,k as ie}from"./chunk-UHWZMUHE.js";import"./chunk-7Q6JRYJQ.js";import"./chunk-LQKB6TC5.js";import"./chunk-KCP42I4G.js";import"./chunk-PRKGKCPD.js";import{a as Me,b as xe,c as be,d as Te,e as Fe,f as ke}from"./chunk-44C3MIX2.js";import"./chunk-LZ63CRYS.js";import{b as se,c as k}from"./chunk-3NPCDHG6.js";import{ia as ae}from"./chunk-SYJPV5Z2.js";import{h as P}from"./chunk-C4EYQ3F4.js";import"./chunk-4KX6OYIC.js";import"./chunk-ZHF75BUX.js";import{b as Z,e as ee,k as te}from"./chunk-UJIRJMKN.js";import"./chunk-3RV4SRI7.js";import{Ac as T,Bc as F,Cc as O,Dc as W,Fb as C,Fd as X,Ga as m,Ha as p,Hb as l,Ia as L,Ja as Y,Jb as j,Ob as Q,Pa as g,Rb as $,Sb as G,Tb as o,Ub as s,Vb as w,Wb as N,Wc as U,Xb as q,Zb as v,ac as _,cc as h,fa as E,jc as M,kc as x,lc as b,m as B,mc as z,nc as u,oc as H,pc as R,pd as J,qb as a,rb as d,rd as K,va as S}from"./chunk-CKCTXGH7.js";var ze=["stepper"],He=()=>({type:"stay",title:"ACCOMMODATION",heading:"Where do you want to go?",description:"Search worldwide accommodation options..."});function Ue(i,c){i&1&&(o(0,"h3"),u(1,"Search"),s())}function Je(i,c){i&1&&u(0,"Accommodation")}function Ke(i,c){if(i&1){let e=v();o(0,"stay-list",8),_("rowSelected",function(r){m(e);let n=h();return p(n.handleSelection(r))})("resultChange",function(){m(e);let r=h();return p(r.resultChanged())})("searchChangeRequested",function(){m(e);let r=h();return p(r.goBackToSearch())}),s()}if(i&2){let e=h();l("options",e.view.search)("trip",e.view.trip)("cacheMode",e.view.cacheMode)}}var Qe=(()=>{class i{constructor(e,t,r){this._formBuilder=e,this._tfmService=t,this._tfmCartService=r,this.tripChange=new g,this.cartChange=new g,this.staySelection=new g,this.fromControl=new ie(""),this.view={cacheMode:!1},this.view.cacheMode=this._tfmService._cacheMode}ngOnInit(){if(this.view.cacheMode){var e=this._tfmService.loadLocalStorage("search");e&&(this.view.search=e);var t=this._tfmService.loadLocalStorage("trip");t&&(this.view.trip=t)}}handleSelection(e){this.staySelection.emit(e)}tripChanged(e){this._tfmService.log(e),this.view.trip=e,this._tfmCartService.updateTrip(this.view.trip)}searchChanged(e){this._tfmService.log(e),this.view.search=e,this._stepper.next()}resultChanged(){this._stepper.next()}goBackToSearch(){this._stepper.selectedIndex=0}trackByFn(e,t){return t.id||e}static{this.\u0275fac=function(t){return new(t||i)(d(re),d(P),d(V))}}static{this.\u0275cmp=S({type:i,selectors:[["stay-your-way"]],viewQuery:function(t,r){if(t&1&&M(ze,5),t&2){let n;x(n=b())&&(r._stepper=n.first)}},outputs:{tripChange:"tripChange",cartChange:"cartChange",staySelection:"staySelection"},standalone:!0,features:[T],decls:13,vars:6,consts:[["stepper",""],[1,"bg-transparent",3,"linear"],["matStepLabel",""],[3,"tripChange","searchChange","panel"],[1,"flex","justify-between"],["mat-flat-button","","type","button","matStepperPrevious","",1,"px-8","w-50",3,"color"],["mat-flat-button","","type","button","matStepperNext","",1,"px-8",3,"color"],[3,"options","trip","cacheMode","rowSelected","resultChange","searchChangeRequested",4,"ngIf"],[3,"rowSelected","resultChange","searchChangeRequested","options","trip","cacheMode"]],template:function(t,r){if(t&1){let n=v();o(0,"mat-horizontal-stepper",1,0)(2,"mat-step"),C(3,Ue,2,0,"ng-template",2),o(4,"search-widget",3),_("tripChange",function(f){return m(n),p(r.tripChanged(f))})("searchChange",function(f){return m(n),p(r.searchChanged(f))}),s()(),o(5,"mat-step"),C(6,Je,1,0,"ng-template",2),o(7,"div",4)(8,"button",5),u(9,"Change Search"),s(),o(10,"button",6),u(11,"Review"),s()(),C(12,Ke,1,3,"stay-list",7),s()()}t&2&&(l("linear",!0),a(4),l("panel",F(5,He)),a(4),l("color","secondary"),a(2),l("color","primary"),a(2),l("ngIf",r.view.search&&r.view.trip))},dependencies:[X,K,ne,oe,De,k,le,de,ve,ae,I,D,Oe,We,Ie,Pe,Ae,Be,Re,_e,pe,Ve,Ce,me,ke,xe,Me,be,Te,Fe,ye,Ee],encapsulation:2,changeDetection:0})}}return i})();var Xe=["drawer"],Ze=(i,c)=>c.id,et=()=>({loadCache:!1,compactColumns:!0}),tt=i=>["/quote/stays/",i],it=(i,c)=>({"hover:bg-gray-100 dark:hover:bg-hover":i,"bg-primary-50 dark:bg-hover":c}),rt=(i,c)=>({"text-hint":i,"text-primary dark:text-primary-500":c}),nt=i=>({"text-primary dark:text-primary-500":i});function ot(i,c){if(i&1&&(N(0),o(1,"a",21),w(2,"mat-icon",22),o(3,"div",23)(4,"div",24),u(5),s(),o(6,"div",25),u(7),s()()(),q()),i&2){let e=c.$implicit,t=h();a(),l("routerLink",O(8,tt,e.id))("disabled",e.disabled)("ngClass",W(10,it,!t.selectedPanel||t.selectedPanel!==e.id,t.selectedPanel&&t.selectedPanel===e.id)),a(),l("ngClass",W(13,rt,!t.selectedPanel||t.selectedPanel!==e.id,t.selectedPanel&&t.selectedPanel===e.id))("svgIcon",e.icon),a(2),l("ngClass",O(16,nt,t.selectedPanel&&t.selectedPanel===e.id)),a(),R(" ",e.title," "),a(2),R(" ",e.de
1scription," ")}}function at(i,c){if(i&1){let e=v();o(0,"stay-your-way",26),_("staySelection",function(r){m(e);let n=h();return p(n.handleSelection(r))}),s()}}function st(i,c){i&1&&w(0,"last-min-deals")}function lt(i,c){i&1&&w(0,"trending")}function ct(i,c){i&1&&w(0,"temp-cards3")}var A=(()=>{class i{constructor(e,t,r,n,y){this._changeDetectorRef=e,this._fuseMediaWatcherService=t,this._tfmCartService=r,this._route=n,this._tfmService=y,this.drawerMode="side",this.drawerOpened=!1,this.panels=[],this.selectedPanel="stay-your-way",this.pageTitle="Accommodation",this._unsubscribeAll=new B,this.tripChange=new g,this.cartChange=new g,this.view={data:{cart:[]},drawers:{review:{}}}}ngOnInit(){this.panels=[{id:"stay-your-way",icon:"heroicons_outline:viewfinder-circle",title:"Find Hotels",description:"Hotels, lodges, even castles"},{id:"last-min-deals",icon:"heroicons_outline:viewfinder-circle",title:"Last Minute Deals",description:"Selling out fast",disabled:!1},{id:"trending",icon:"heroicons_outline:arrow-trending-up",title:"Trending Destination",description:"Top destination properties",disabled:!1}],this._route.params.subscribe(e=>{this.view.view=this._route.snapshot.paramMap.get("view"),this.selectedPanel=this.view.view}),this._fuseMediaWatcherService.onMediaChange$.pipe(E(this._unsubscribeAll)).subscribe(({matchingAliases:e})=>{e.includes("lg")?(this.drawerMode="side",this.drawerOpened=!this.selectedPanel):(this.drawerMode="over",this.drawerOpened=!this.selectedPanel),this._changeDetectorRef.markForCheck()}),this.view.tripChange$=this._tfmCartService.tripChange.subscribe(e=>{this.view.trip=e}),this.view.cartChange$=this._tfmCartService.cartChange.subscribe(e=>{this.view.data.cart=e,this._changeDetectorRef.markForCheck()}),this._tfmCartService.cartDrawerDismissed$.pipe(E(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()}),this.view.itinGuidChange$=this._tfmService.itinGuidChange.subscribe(e=>{this.view.itinGuid=this._tfmService.getLocalItinGuid(),this._changeDetectorRef.detectChanges()}),this.view.itinGuid=this._tfmService.getLocalItinGuid()}handleSelection(e){this.selectedStay=e}ngOnDestroy(){this.view.tripChange$.unsubscribe(),this.view.cartChange$.unsubscribe(),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}tripChanged(e){this.tripChange.emit(e)}cartChanged(e){this.cartChange.emit(e)}viewChanged(e){this.view.drawerOptions=e}showQuoteDrawer(){return we(this._tfmService,(this.view.data?.cart?.length??0)>0,this.view.itinGuid)}goToPanel(e){this.selectedPanel=e,this.drawerMode==="over"&&this.drawer.close()}getPanelInfo(e){return this.panels.find(t=>t.id===e)}trackByFn(e,t){return t.id||e}static{this.\u0275fac=function(t){return new(t||i)(d(U),d(ce),d(V),d(Z),d(P))}}static{this.\u0275cmp=S({type:i,selectors:[["packages"]],viewQuery:function(t,r){if(t&1&&M(Xe,5),t&2){let n;x(n=b())&&(r.drawer=n.first)}},outputs:{tripChange:"tripChange",cartChange:"cartChange"},standalone:!0,features:[T],decls:29,vars:18,consts:[["drawer",""],["drawerRight",""],[1,"flex","flex-col","w-full","min-w-0","sm:absolute","sm:inset-0","sm:overflow-hidden"],[1,"flex-auto","sm:h-full"],[1,"sm:w-64","dark:bg-gray-900",3,"autoFocus","mode","opened"],[1,"flex","items-center","justify-between","m-8","mr-6","sm:my-10"],[1,"text-3xl","font-extrabold","tracking-tight","leading-none"],[1,"flex","flex-col","divide-y","border-t","border-b"],[1,"flex","flex-col"],[1,"flex-auto","pt-5"],[1,"flex","items-center","justify-between"],["mat-stroked-button","",1,"hidden","sm:inline-flex","ml-3",3,"click"],[1,"icon-size-5",3,"svgIcon"],[1,"ml-2"],[1,"mt-8"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"-z-1","absolute","inset-0"],["fill","none","stroke","currentColor","stroke-width","100",1,"opacity-40","text-gray-200","dark:text-gray-800"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],[1,"dark:bg-gray-900","transition-all","duration-500",3,"position","autoFocus","mode","disableClose","opened"],[3,"viewChange","stay","options"],[1,"flex","px-8","py-5","cursor-pointer","text-left",3,"routerLink","disabled","ngClass"],[3,"ngClass","svgIcon"],[1,"ml-3"],[1,"font-medium","leading-6",3,"ngClass"],[1,"mt-0.5","text-secondary"],[3,"staySelection"]],template:function(t,r){if(t&1){let n=v();o(0,"div",2)(1,"mat-drawer-container",3)(2,"mat-drawer",4,0)(4,"div",5)(5,"div",6),u(6),s()(),o(7,"div",7),$(8,ot,8,18,"ng-container",null,Ze),s()(),o(10,"mat-drawer-content",8)(11,"div",9)(12,"div",10)(13,"button",11),_("click",function(){m(n);let f=z(3);
1return p(f.toggle())}),w(14,"mat-icon",12),o(15,"span",13),u(16,"Options"),s()()(),o(17,"div",14),L(),o(18,"svg",15)(19,"g",16),w(20,"circle",17)(21,"circle",18),s()(),C(22,at,1,0,"stay-your-way")(23,st,1,0,"last-min-deals")(24,lt,1,0,"trending")(25,ct,1,0,"temp-cards3"),s()()(),Y(),o(26,"mat-drawer",19,1)(28,"cart",20),_("viewChange",function(f){return m(n),p(r.viewChanged(f))}),s()()()()}if(t&2){let n;a(2),l("autoFocus",!1)("mode",r.drawerMode)("opened",r.drawerOpened),a(4),H(r.pageTitle),a(2),G(r.panels),a(6),l("svgIcon","heroicons_outline:bars-3"),a(8),Q((n=r.selectedPanel)==="stay-your-way"?22:n==="last-min-deals"?23:n==="trending"?24:25),a(4),j("sm:w-80",!r.view.drawerOptions||r.view.drawerOptions.mode!="review")("w-[75%]",r.view.drawerOptions&&r.view.drawerOptions.mode=="review"),l("position","end")("autoFocus",!1)("mode","over")("disableClose",!1)("opened",r.showQuoteDrawer()),a(2),l("stay",r.selectedStay)("options",F(17,et))}},dependencies:[J,I,D,k,se,ge,he,fe,ue,Ye,je,Qe,Se,Le,te,ee],encapsulation:2,changeDetection:0})}}return i})();var yi=[{path:"",component:A},{path:":view",component:A}];export{yi as default};
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.