1import{a as te}from"./chunk-KFVWP22H.js";import{a as U,b as w,c as At}from"./chunk-XWAGIUI7.js";import{d as ft}from"./chunk-DHQCF66V.js";import{b as ut}from"./chunk-PGNI3NEF.js";import{d as mt}from"./chunk-VKKA3QBI.js";import"./chunk-TLXPHDJZ.js";import"./chunk-OH4CVPKO.js";import{l as gt}from"./chunk-TQNGT3PH.js";import{Dd as Ct,Kd as ee,bi as dt,eb as ct,fb as st,kj as St,ud as pt,yb as lt}from"./chunk-2HTSMB3W.js";import"./chunk-UICSX6FJ.js";import"./chunk-RQW3QHDQ.js";import{Fb as it,Qe as ot,Re as _t,pb as Z}from"./chunk-G2FWHV6E.js";import{ea as rt}from"./chunk-GJ5GG56Q.js";import"./chunk-XDCHYCW7.js";import{a as J,g as nt}from"./chunk-6GURXS2R.js";import{$ as we,$a as He,Dp as Qe,Eq as Ye,Fq as Je,Gq as Ze,Jn as Xe,Jq as et,Kn as je,Pp as qe,Pq as tt,Qn as We,Qq as at,Tj as Ge,Uj as ze,aa as $e,cb as Ve,jp as V,la as Ke,mo as Y}from"./chunk-UEN6IVPB.js";import{B as Ce,y as De}from"./chunk-CZCAAW4I.js";import"./chunk-CMMT6CVA.js";import"./chunk-NNITMYCS.js";import{h as Ue}from"./chunk-Z2UNVFSJ.js";import{$a as P,Ad as h,Bd as v,Cd as Le,Da as Ae,Dd as ke,F as me,H as ue,Hc as o,Hd as B,Ic as _,Id as pe,Jc as A,Je as ye,Kc as D,Kd as xe,La as Ee,Lc as K,Ld as Oe,Le as Q,Me as I,Nc as R,Nd as W,Qa as G,Qc as se,Rc as le,Sc as E,Se as q,Uc as x,Ue as Ne,Vb as he,Vc as O,Wc as X,Xc as g,Y as ce,Yb as i,Zb as d,Zc as s,ab as z,df as Be,ed as Pe,ef as Ie,fd as be,gd as ve,jb as u,kb as f,kd as j,m as Se,md as y,nd as Fe,oa as fe,oc as m,od as H,s as ge,tb as N,tc as r,vc as Te,y as _e,yb as Re,yd as Me,zd as b}from"./chunk-P3446FGB.js";import"./chunk-6OMJRT4S.js";import"./chunk-QGZ2U4ZH.js";import"./chunk-SHILZYH4.js";import"./chunk-CTHIOSXJ.js";import{o as p}from"./chunk-AWWDKNVO.js";p();p();p();p();p();Ee();var vt=(t,l,e)=>({"card-label--small":t,"card-label--medium":l,"card-label--direct-billing":e}),Ft=()=>({placeAt:"top"}),Mt=t=>({placement:t});function Lt(t,l){if(t&1&&(o(0,"div",4),E(1,1),_()),t&2){let e=s();i(),x(e.companyName),O(1)}}var de=(()=>{class t{constructor(){this.size="small",this.directBillEligible=!1}get tagText(){return this.directBillEligible?$localize`Direct Billing`:this.companyName?.length<25?$localize`${this.companyName} discount`:$localize`Discounted for your company`}onMouseLeave(){this.popOvers&&this.popOvers.forEach(e=>{ge.schedule(()=>{e.close()},100)})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=P({type:t,selectors:[["ta-black-car-preferred-highlight"]],viewQuery:function(a,n){if(a&1&&Pe(V,5),a&2){let c;be(c=ve())&&(n.popOvers=c)}},inputs:{size:"size",companyName:"companyName",directBillEligible:"directBillEligible"},standalone:!0,features:[b],decls:5,vars:11,consts:()=>{let e;return e=$localize`:âeb319bfe2e0c0edf1c6e23a4b93c8f36c6da92ebâ8766746503606659811:${"\uFFFD0\uFFFD"}:INTERPOLATION: has a discounted rate with this provider.`,[["blackCarPreferredHighLightPopover",""],e,["popoverTrigger","hover",1,"card-label",3,"mouseleave","ngClass","taPopover","popoverConfig"],[1,"card-label__preferred"],[1,"card-label__popover"]]},template:function(a,n){if(a&1){let c=R();o(0,"span",2),g("mouseleave",function(){return u(c),f(n.onMouseLeave())}),o(1,"span",3),y(2),_()(),m(3,Lt,2,1,"ng-template",null,0,W)}if(a&2){let c=j(4);r("ngClass",ke(4,vt,n.size==="small",n.size==="medium",n.directBillEligible))("taPopover",n.companyName&&!n.directBillEligible?c:null)("popoverConfig",v(9,Mt,h(8,Ft))),i(2),Fe(n.tagText)}},dependencies:[ye,V],styles:["@keyframes _ngcontent-%COMP%_placeHolderShimmer{0%{background-position:-960px 0}to{background-position:960px 0}}@keyframes _ngcontent-%COMP%_error-blink{0%{background-color:#fff0f0}20%{background-color:#ffc0c0}40%{background-color:#fff0f0}to{background-color:#fff0f0}}[_nghost-%COMP%]{width:100%}.card-label[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;border-radius:var(--dim-step1);margin:0 var(--dim-step2);box-sizing:border-box;max-width:95%}.card-label.outline-border[_ngcontent-%COMP%]{border:1px solid}.card-label__preferred[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;padding:var(--dim-step1) var(--dim-step2);background:var(--ta-color-tag-background-blue);color:var(--ta-color-tag-label-blue);border:1px solid transparent;border-radius:26px;font-size:var(--text-size-small);font-weight:var(--text-weight-medium);line-height:20px;font-style:normal;white-space:nowrap}.card-label--small[_ngcontent-%COMP%]{color:var(--ta-color-text-default);font-size:var(--text-size-xs);font-weight:var(--text-weight-regular);text-align:start;height:24px}
1.card-label--medium[_ngcontent-%COMP%]{color:var(--ta-color-text-default);font-size:var(--text-size-medium);font-weight:var(--text-weight-regular);text-align:start;max-height:30px}.card-label--direct-billing[_ngcontent-%COMP%] .card-label__preferred[_ngcontent-%COMP%]{background:var(--ta-color-component-content-blue, #005099);color:var(--color-text-always-white)}.card-label__icon[_ngcontent-%COMP%]{padding-right:var(--dim-step2)}.card-label__desc[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-label__popover[_ngcontent-%COMP%]{max-width:475px;padding:var(--dim-step4)}"]})}}return t})();var kt=t=>({backgroundImage:t}),xt=()=>({placeAt:"bottom"}),Ot=t=>({placement:t,width:300}),yt=t=>({clickedItem:"bookingDetails",source:"blackCarsSearch",carUuid:t}),Rt=()=>({placeAt:"top"}),ht=t=>({placement:t});function Nt(t,l){if(t&1&&A(0,"ta-black-car-preferred-highlight",33),t&2){let e=s(2);r("companyName",e.userInfo.companyName)("directBillEligible",e.blackCar.directBillEligible)}}function Bt(t,l){t&1&&(o(0,"span",34),E(1,5),_())}function It(t,l){t&1&&(o(0,"span",35),E(1,6),_())}function Ut(t,l){if(t&1&&(o(0,"li",36),A(1,"ta-icon",37),y(2),_()),t&2){let e=s(2);r("taPopover",e.passengersText)("popoverConfig",v(4,ht,h(3,Rt))),i(2),H(" ",e.maxPassengers," ")}}function wt(t,l){if(t&1&&(o(0,"li",36),A(1,"ta-icon",38),y(2),_()),t&2){let e=s(2);r("taPopover",e.bagsText)("popoverConfig",v(4,ht,h(3,Rt))),i(2),H(" ",e.blackCar.bags," ")}}function $t(t,l){if(t&1){let e=R();o(0,"div",9)(1,"div",10),A(2,"div",11),_(),o(3,"div",12)(4,"div",13)(5,"div",14)(6,"span",15),y(7),_(),m(8,Nt,1,2,"ta-black-car-preferred-highlight",16),_(),o(9,"div",17)(10,"span",18),E(11,1),_()()(),o(12,"div",19),D(13),se(14,2),A(15,"span",20)(16,"span",21),B(17,"userCurrency"),le(),K(),o(18,"div"),m(19,Bt,2,0,"span",22)(20,It,2,0,"span",23),_()(),o(21,"div",24)(22,"div",25)(23,"ul",26),m(24,Ut,3,6,"li",27)(25,wt,3,6,"li",27),o(26,"li",28)(27,"button",29),g("taPopoverOnOpen",function(n){u(e);let c=s();return f(c.onOpen(n))})("taPopoverOnClose",function(){u(e);let n=s();return f(n.onClosed())}),D(28),se(29,3),A(30,"ta-icon",30),le(),K(),_()()()(),o(31,"div",31),g("click",function(){u(e);let n=s();return f(n.onGoToContract())}),o(32,"button",32),E(33,4),_()()()()()}if(t&2){let e=s(),a=j(2);i(2),r("ngStyle",v(21,kt,"url("+(e.blackCarType.carImgUrl?e.blackCarType.carImgUrl:e.defaultCarImage)+")"))("title",e.blackCarType.carType),i(5),H(" ",e.blackCarType.carType," "),i(),r("ngIf",e.blackCar.corporateRate||e.blackCar.directBillEligible),i(3),x(e.blackCar.carCompanyName),O(11),i(6),x(Oe(17,16,e.totalPrice,!0,!1,e.currency)),O(14),i(2),r("ngIf",e.allInclusive),i(),r("ngIf",!e.allInclusive),i(4),r("ngIf",e.maxPassengers),i(),r("ngIf",e.blackCar.bags),i(2),r("taPopover",a)("popoverConfig",v(24,Ot,h(23,xt)))("taTrack",v(26,yt,e.blackCar.uuid)),i(3),Te("black-car-card__dropdown-icon-opened",e.opened),i(),r("taLoading",e.loadingContract)}}function Dt(t,l){if(t&1&&(o(0,"div"),y(1),_()),t&2){let e=l.$implicit;i(),H(" ",e," ")}}function Kt(t,l){if(t&1&&(o(0,"div",42),m(1,Dt,2,1,"div",43),_()),t&2){let e=s(2);i(),r("ngForOf",e.blackCar.termsAndConditions)}}function Ht(t,l){if(t&1&&(o(0,"section",39)(1,"div",40),E(2,7),_(),m(3,Kt,2,1,"div",41),_()),t&2){let e=s();i(3),r("ngIf",e.blackCar.termsAndConditions==null?null:e.blackCar.termsAndConditions.length)}}var ae=(()=>{class t{constructor(e){this.blackCarsService=e,this.opened=!1,this.allInclusive=!1,this.defaultCarImage=Ue("cars/images/img_random_car.png"),this.goToContract=new N}ngOnInit(){this.blackCarType=this.blackCar?.blackCarType,this.totalPrice=this.blackCar?.blackCarPricing?.total;let e=this.blackCar.passengers;this.maxPassengers=e>0?e:0,this.passengersText=$localize`${this.maxPassengers} passengers maximum`,this.bagsText=$localize`${this.blackCar.bags} carry-on sized bags maximum`;let a=this.blackCarsService.activeCurrency(this.userInfo);this.currency=a?.shortName}onOpen(e){this.popoverRef=e,this.opened=!0}onClosed(){this.opened=!1}onGoToContract(){this.goToContract.emit(this.blackCar)}static{this.\u0275fac=function(a){return new(a||t)(d(w))}}static{this.\u0275cmp=P({type:t,selectors:[["ta-black-car-card"]],inputs:{blackCar:"blackCar",userInfo:"userInfo",companyName:"companyName",loadingContract:"loadingContract"},outputs:{goToContract:"goToContract"},standalone:!0,features:[b],decls:3,vars:1,consts:()=>{let e;e=$localize`:â0931eeefc9c72fd64138835009a18dd61ca7ee8bâ8747296828900254746:All inclusive price`;let a;a=$localize`:â7aa0b0a56ed7493562cba80d74e191c60dcf17daâ1369275505901921494:May not include taxes and fees`;let n;n=$localize`:â0ac788bb4f21f4d8f47e292218dd85109bad79f2â4531984628435341870: by ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let c;c=$localize`:â40aeab2d7071704817e7ef37b31e259dca5bbae6â1488619328213674757:${"\uFFFD#15\uFFFD"}:START_TAG_SPAN:Est. ${"[\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD#16\uFFFD"}:START_TAG_SPAN_1:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"[\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"}:CLOSE_TAG_SPAN:`,c=X(c);let S;
1S=$localize`:â02a59f1e512767ccb8b1fc00f8b3715becefb83dâ2345746256830313557: Booking details ${"\uFFFD#30\uFFFD"}:START_TAG_TA_ICON:${"\uFFFD/#30\uFFFD"}:CLOSE_TAG_TA_ICON:`;let F;F=$localize`:âe11a19f1ab295da63dbb5e942c351fde8d6a6360â3536220359541910864: Select `;let M;M=$localize`:â66ab899e976b011807ce40ac3731a4aa49904d1bâ1043515383761908337: All inclusive price `;let L;L=$localize`:â1552d6200291d98cdc88d73da142db2c5c37ce3bâ581742038874746871: May not include taxes and fees `;let k;return k=$localize`:â8cf7e05ef03dcd9ddde6d355020162e3f74aa461â1306660721986956355:Booking details and cancellation policy`,[["bookingInfo",""],n,c,S,F,M,L,k,["class","black-car-card",4,"ngIf"],[1,"black-car-card"],[1,"black-car-card__left"],[1,"black-car-card__car-image",3,"ngStyle","title"],[1,"black-car-card__main"],[1,"black-car-card__basic-info"],[1,"black-car-card__basic-info__top"],[1,"black-car-card__car-type"],["size","medium",3,"companyName","directBillEligible",4,"ngIf"],[1,"black-car-card__basic-info__bottom"],[1,"black-car-card__name"],[1,"black-car-card__price-info"],[1,"black-car-card__est-text"],[1,"black-car-card__base-price"],["class","black-car-card__tax-inclusive","title",e,4,"ngIf"],["class","black-car-card__tax-exclusive","title",a,4,"ngIf"],[1,"black-car-card__bottom"],[1,"black-car-card__bottom-left"],[1,"black-car-features"],["class","black-car-features__item","popoverTrigger","hover",3,"taPopover","popoverConfig",4,"ngIf"],[1,"black-car-features__item"],["taButton","","theme","link",1,"black-car-card__details-button",3,"taPopoverOnOpen","taPopoverOnClose","taPopover","popoverConfig","taTrack"],["icon","dropdown-triangle","theme","outline",1,"black-car-card__dropdown-icon"],[1,"black-car-card__bottom-right",3,"click","taLoading"],["qaid","selectBlackCarButton","taButton","","theme","secondary","size","medium",1,"black-car-card__action-button"],["size","medium",3,"companyName","directBillEligible"],["title",e,1,"black-car-card__tax-inclusive"],["title",a,1,"black-car-card__tax-exclusive"],["popoverTrigger","hover",1,"black-car-features__item",3,"taPopover","popoverConfig"],["icon","user","theme","outline",1,"black-car-features__icon"],["icon","bag-checked","theme","outline",1,"black-car-features__icon"],[1,"booking-info-popover"],[1,"booking-info-popover__title"],["class","booking-info-popover__info",4,"ngIf"],[1,"booking-info-popover__info"],[4,"ngFor","ngForOf"]]},template:function(a,n){a&1&&m(0,$t,34,28,"div",8)(1,Ht,4,1,"ng-template",null,0,W),a&2&&r("ngIf",n.blackCarType)},dependencies:[I,q,de,V,Ge,ze,qe,We,Q,Z],styles:['@charset "UTF-8";@keyframes _ngcontent-%COMP%_placeHolderShimmer{0%{background-position:-960px 0}to{background-position:960px 0}}@keyframes _ngcontent-%COMP%_error-blink{0%{background-color:#fff0f0}20%{background-color:#ffc0c0}40%{background-color:#fff0f0}to{background-color:#fff0f0}}.black-car-card[_ngcontent-%COMP%]{box-shadow:0 1px 4px #18191b26;border-radius:var(--dim-step3);padding:var(--dim-step5);background-color:var(--ta-color-surface-default);box-sizing:border-box;min-height:170px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;position:relative;margin-bottom:var(--dim-step5);transition:box-shadow .25s ease-in-out}.black-car-card[_ngcontent-%COMP%]:hover{box-shadow:0 1px 4px #18191b1a,0 4px 20px #18191b1a}.black-car-card__left[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;margin-right:var(--dim-step5)}.black-car-card__main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;flex-grow:1;overflow:hidden;min-height:130px}.black-car-card__bottom[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;flex-wrap:nowrap;width:100%}.black-car-card__bottom-left[_ngcontent-%COMP%]{margin-bottom:var(--dim-step2)}.black-car-card__bottom-right[_ngcontent-%COMP%]{margin-left:var(--dim-step2)}.black-car-card__basic-info__top[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;margin-bottom:var(--dim-step1)}.black-car-card__basic-info__bottom[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:350px;color:var(--ta-color-text-subtle)}.black-car-card__action-button[_ngcontent-%COMP%]{white-space:nowrap;min-width:145px}.black-car-card__price-info[_ngcontent-%COMP%]{position:absolute;top:20px;right:20px;bottom:unset;left:unset;margin-bottom:var(--dim-step2);text-align:right}.black-car-card__est-text[_ngcontent-%COMP%]{color:var(--ta-color-text-default)}.black-car-card__base-price[_ngcontent-%COMP%]{font-size:var(--text-size-xb);font-weight:var(--text-weight-bold)}.black-car-card__tax-inclusive[_ngcontent-%COMP%]{color:var(--color-green-light-1)}.black-car-card__tax-exclusive[_ngcontent-%COMP%]{color:var(--ta-color-text-subtle)}.black-car-card__car-type[_ngcontent-%COMP%]{font-size:var(--text-size-xb);font-weight:var(--text-weight-bold)}.black-car-card__car-type-spacer[_ngcontent-%COMP%]:after{content:"\\2022";margin:0 var(--dim-step1)}.black-car-card__car-image[_ngcontent-%COMP%]{width:170px;height:130px;background-size:contain;background-position:center;background-repeat:no-repeat}.black-car-card__features[_ngcontent-%COMP%]{display:block}.black-car-card__details-button[_ngcontent-%COMP%]{margin-left:auto;height:auto;white-space:nowrap;font-size:var(--text-size-small)}.black-car-card__dropdown-icon-opened[_ngcontent-%COMP%]{transform:rotate(180deg);position:relative;top:3px;right:unset;bottom:unset;left:-3px}.black-car-card__preferred[_ngcontent-%COMP%]{margin-left:var(--dim-step1);border:1px solid var(--color-green-light-2);border-radius:4px;background-color:var(--color-green-light-5);padding:var(--dim-step1) var(--dim-step2)}.black-car-features[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;padding:0;margin:0}.black-car-features__item[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;list-style:none;color:var(--ta-color-text-subtle);font-size:var(--text-size-small);margin-right:var(--dim-step3);padding:var(--dim-step2) 0 2px 0}.black-car-features__item__break[_ngcontent-%COMP%]{flex-grow:1;flex-basis:70%}.black-car-features__icon[_ngcontent-%COMP%]{margin-right:2px}.booking-info-popover[_ngcontent-%COMP%]{padding:var(--dim-step4) var(--dim-step5);font-size:var(--text-size-small)}.booking-info-popover__title[_ngcontent-%COMP%]{padding-top:var(--dim-step1);font-size:var(--text-size-small);font-weight:var(--text-weight-medium)}.booking-info-popover__info[_ngcontent-%COMP%]{color:var(--ta-color-text-subtle)}']})}}return t})();p();p();var ne=()=>["bottomLeftAlign","bottomRightAlign"];function Gt(t,l){if(t&1){let e=R();o(0,"span",11),g("click",function(){u(e);let n=s();return f(n.reset())}),E(1,0),_()}}var re=(()=>{class t{constructor(e,a,n){this.blackCarsService=e,this.userCurrencyPipe=a,this.splitService=n,this.filterSet={},this.isDirty=!1,this.changed=new N}ngOnInit(){this.activeCurrency=this.blackCarsService.activeCurrency(this.userInfo),this.labels={price:$localize`Price`,TRIPACTIONS_RATE:$localize`Navan Car Collection`},this.icons=null}vehicleTypeKey(e){return e.blackCarType?.carType}providerKey(e){return e.carCompanyName}priceKey(e){return e.blackCarPricing?.total}corporateDiscountKey(e){return e.corporateRate?"TRIPACTIONS_RATE":null}priceChanged(e){let a;if(!e.filterRangeSet?.from||!e.filterRangeSet?.to)a=$localize`Price`;else{let n=this.getPrice(e.filterRangeSet.from),c=this.getPrice(e.filterRangeSet.to);a=`${n} - ${c}`}this.labels.price=a}getPrice(e){return this.userCurrencyPipe.transform(e,!0,!1,this.activeCurrency.shortName)}filtersChanged({result:e,isDirty:a}){this.isDirty=a,this.changed.emit({options:e})}onResetInit(e){this.onReset=e}reset(){typeof this.onReset=="function"&&this.onReset()}static{this.\u0275fac=function(a){return new(a||t)(d(w),d(Z),d(Xe))}}static{this.\u0275cmp=P({type:t,selectors:[["ta-black-car-filters"]],inputs:{options:"options",userInfo:"userInfo",isPersonal:"isPersonal"},outputs:{changed:"changed"},standalone:!0,features:[Me([{provide:Je,useClass:at}]),b],decls:10,vars:27,consts:()=>{let e;
1e=$localize`:â628ec23ea91c60f3bc22e508102d290b64be36a1â7856974223389485354:Vehicle type`;let a;a=$localize`:â628ec23ea91c60f3bc22e508102d290b64be36a1â7856974223389485354:Vehicle type`;let n;n=$localize`:âc2278db1049d5f3d08a06d74f5bb681f7015275bâ8232773653071363045:Provider`;let c;c=$localize`:âc2278db1049d5f3d08a06d74f5bb681f7015275bâ8232773653071363045:Provider`;let S;S=$localize`:â4d6ee53858628de558a18623894a03c8673bce9eâ8894377483833272091:Price`;let F;F=$localize`:â4d6ee53858628de558a18623894a03c8673bce9eâ8894377483833272091:Price`;let M;M=$localize`:âd35dd924b344f8f736f34ee9b9f28b56d18c0d1câ2050537929313611055:Special rates`;let L;L=$localize`:âd35dd924b344f8f736f34ee9b9f28b56d18c0d1câ2050537929313611055:Special rates`;let k;return k=$localize`:â99ee4faa69cd2ea8e3678c1f557c0ff1f05aae46â8700121026680200191:Clear`,[k,[1,"black-car-filters",3,"changed","onReset","inputData","inputSet","labels"],["groupName","vehicleType","headerLabel",e,"popoverLabel",a,1,"black-car-filters__filter",3,"popoverPlaceAt","disableWhenEmpty","truncateWidth"],["id","vehicleType",3,"key","count"],["groupName","provider","headerLabel",n,"popoverLabel",c,1,"black-car-filters__filter",3,"popoverPlaceAt","disableWhenEmpty","truncateWidth"],["id","provider",3,"key","count"],["groupName","price","headerLabel",S,"popoverLabel",F,3,"popoverPlaceAt","disableWhenEmpty","truncateWidth"],["id","price",3,"inputChanged","currency","key"],["groupName","specialRates","headerLabel",M,"popoverLabel",L,3,"disableWhenEmpty","popoverPlaceAt"],["id","corporateDiscount","animate","true",3,"key","mapIcons"],["class","black-car-filters__reset",3,"click",4,"ngIf"],[1,"black-car-filters__reset",3,"click"]]},template:function(a,n){a&1&&(o(0,"ta-filter",1),g("changed",function(S){return n.filtersChanged(S)})("onReset",function(S){return n.onResetInit(S)}),o(1,"ta-filter-dropdown",2),A(2,"ta-filter-boolean",3),_(),o(3,"ta-filter-dropdown",4),A(4,"ta-filter-boolean",5),_(),o(5,"ta-filter-dropdown",6)(6,"ta-filter-price",7),g("inputChanged",function(S){return n.priceChanged(S)}),_()(),o(7,"ta-filter-dropdown",8),A(8,"ta-filter-boolean",9),_(),m(9,Gt,2,0,"span",10),_()),a&2&&(r("inputData",n.options)("inputSet",n.filterSet)("labels",n.labels),i(),r("popoverPlaceAt",h(23,ne))("disableWhenEmpty",!0)("truncateWidth",100),i(),r("key",n.vehicleTypeKey)("count",!0),i(),r("popoverPlaceAt",h(24,ne))("disableWhenEmpty",!0)("truncateWidth",100),i(),r("key",n.providerKey)("count",!0),i(),r("popoverPlaceAt",h(25,ne))("disableWhenEmpty",!0)("truncateWidth",100),i(),r("currency",n.activeCurrency)("key",n.priceKey.bind(n)),i(),r("disableWhenEmpty",!0)("popoverPlaceAt",h(26,ne)),i(),r("key",n.corporateDiscountKey)("mapIcons",n.icons),i(),r("ngIf",n.isDirty))},dependencies:[tt,et,Ze,dt,I],styles:["[_nghost-%COMP%]{flex-grow:1}.black-car-filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-bottom:calc(-1 * var(--dim-step2))}.black-car-filters__filter[_ngcontent-%COMP%]{display:flex;margin-bottom:var(--dim-step2)}.black-car-filters__list-title[_ngcontent-%COMP%]{font-size:var(--text-size-big);font-weight:var(--text-weight-bold)}.black-car-filters__reset[_ngcontent-%COMP%]{color:var(--ta-color-action-primary);cursor:pointer;align-self:center;max-width:50px}"]})}}return t})();p();p();var ie=(()=>{class t{constructor(){this.sortingChanged=new N,this.sortOptions=[{label:$localize`Recommended`,value:U.RECOMMENDED},{label:$localize`Price: Low to High`,value:U.PRICE_ASC},{label:$localize`Price: High to Low`,value:U.PRICE_DESC}]}onSelectSortOption(e){this.sortingChanged.emit(e)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=P({type:t,selectors:[["ta-black-car-sort"]],inputs:{userInfo:"userInfo",cars:"cars",sortType:"sortType",isPersonal:"isPersonal"},outputs:{sortingChanged:"sortingChanged"},standalone:!0,features:[b],decls:4,vars:2,consts:()=>{let e;return e=$localize`:â3156f1d58eee6386b304758a0e11b820f04a7f3aâ1218302359178184742:Sort by:`,[e,[1,"black-car-sort"],[1,"black-car-sort__label","black-car-sort__label--prefix"],["width","324",1,"black-car-sort__label",3,"changed","selected","list"]]},template:function(a,n){a&1&&(o(0,"div",1)(1,"span",2),E(2,0),_(),o(3,"ta-select-dropdown",3),g("changed",function(S){return n.onSelectSortOption(S)}),_()()),a&2&&(i(3),r("selected",n.sortType)("list",n.sortOptions))},dependencies:[St],styles:[".black-car-sort[_ngcontent-%COMP%]{display:flex;align-items:center;white-space:nowrap;font-weight:var(--text-weight-medium)}.black-car-sort__label[_ngcontent-%COMP%]{color:var(--ta-color-text-subtle)}.black-car-sort__label--prefix[_ngcontent-%COMP%]{margin-right:var(--dim-step1)}"]})}}return t})();p();p();p();Ee();var Xt=t=>({height:t}),jt=(t,l)=>({pickUpLatLonString:t,dropOffLatLonString:l});function Wt(t,l){if(t&1&&A(0,"ta-search-form-bar-black-car",3),t&2){let e=s();r("searchId",e.searchId)("searchParams",e.searchParams)("tripUuid",e.searchParams.tripUuid)("userInfo",e.userInfo)("users",e.users)("personal",e.isPersonal)}}function Qt(t,l){if(t&1){let e=R();o(0,"div",6)(1,"div",7)(2,"div",8)(3,"span",9),E(4,0),_(),o(5,"ta-black-car-filters",10),g("changed",function(n){u(e);let c=s(2);return f(c.filterChanged(n))}),_()(),o(6,"ta-black-car-sort",11),g("sortingChanged",function(n){u(e);let c=s(2);return f(c.sortingChanged(n))}),_()()()}if(t&2){let e=s().taLet,a=s();i(4),x(e.length)(e.length),O(4),i(),r("isPersonal",a.searchParams.personal)("userInfo",a.userInfo)("options",a.searchResults.options),i(),r("cars",e)("userInfo",a.userInfo)("isPersonal",a.searchParams.personal)("sortType",a.sortType)}}function qt(t,l){if(t&1){let e=R();o(0,"guidance-message-banner",18),g("closeBanner",function(){u(e);let n=s(3);return f(n.closeGuidanceMessageBanner())}),_()}if(t&2){let e=s(3);r("banner",e.guidanceMessageBanner)}}function Yt(t,l){if(t&1){let e=R();o(0,"ta-black-car-card",19),g("goToContract",function(n){u(e);let c=s(3);return f(c.goToContract(n))}),_()}if(t&2){let e=l.$implicit,a=s(3);r("blackCar",e)("userInfo",a.userInfo)("companyName",a.companyName)("loadingContract",e.uuid===a.loadingBlackCarContractUuid)}}function Jt(t,l){if(t&1){let e=R();o(0,"ta-pagination",20),g("click",function(){u(e);let n=s(3);return f(n.resetScroll())})("pageChange",function(n){u(e);let c=s(3);return f(c.onUserPageChange(n))}),_()}if(t&2){let e=s(3);r("activePage",e.selectedPage)("maxPages",e.maxPages)("totalPages",e.totalPages)}}function Zt(t,l){if(t&1&&A(0,"ta-cars-map-v2",21),t&2){let e=s(2).taLet,a=s();r("ngStyle",v(4,Xt,"calc(100vh - "+a.clearance+"px)"))("cars",e)("onHover",Le(6,jt,a.pickUpLatLonString,a.dropOffLatLonString))("zoomControl",!0)}}function ea(t,l){if(t&1&&(o(0,"div",12),m(1,qt,1,1,"guidance-message-banner",13),o(2,"div",14),m(3,Yt,1,4,"ta-black-car-card",15),B(4,"slice"),_(),m(5,Jt,1,3,"ta-pagination",16)(6,Zt,1,9,"ta-cars-map-v2",17),B(7,"async"),_()),t&2){let e=s().taLet,a=s();i(),r("ngIf",a.showGuidanceMessageBanner),i(2),r("ngForOf",xe(4,4,e,a.pageStart,a.pageEnd)),i(2),r("ngIf",a.totalPages>1&&!!e.length),i(),r("ngIf",pe(7,8,a.mapService.isMapLoaded$))}}function ta(t,l){if(t&1&&(D(0),m(1,Qt,7,9,"div",4)(2,ea,8,10,"div",5),K()),t&2){let e=s();i(),r("ngIf",e.resultsLoaded),i(),r("ngIf",e.resultsLoaded)}}var aa=9,oe=(()=>{class t{constructor(e,a,n,c,S,F,M,L,k,C,Pt,bt){this.router=e,this.elRef=a,this.mapService=n,this.sessionQuery=c,this.sessionService=S,this.usersDataService=F,this.searchStateQuery=M,this.searchStateService=L,this.blackCarsService=k,this.splitTracking=C,this.searchAmplitudeHelperService=Pt,this.guidanceMessagingFacade=bt,this.pageSize=10,this.isDestroyed=!1,this.users=[],this.sortType=U.RECOMMENDED,this.clearanceDefault=370,this.clearance=this.clearanceDefault,this.blackCarsSubject=ne
1w Se([]),this.blackCars$=this.blackCarsSubject.asObservable(),this.showGuidanceMessageBanner=!1}ngOnInit(){this.mapService.initMap(),ue([this.searchStateQuery.active$,this.sessionQuery.selectUserInfo$]).pipe(Y(this.elRef)).subscribe(([e,a])=>{let{searchParameters:n}=e;this.userInfo=a,this.searchId=e.searchId,this.searchParams=n,this.tripTheme=this.searchParams.personal?J.PERSONAL:J.CORPORATE,this.isPersonal=this.tripTheme===J.PERSONAL,this.searchAmplitudeHelperService.markPersonal(this.searchParams.personal),this.loadResults(),this.updateUsers(),this.updateTheme()}),this.searchStateQuery&&this.searchStateQuery.redoSearch$.pipe(Y(this.elRef)).subscribe(e=>{this.redoSearch()})}onScroll(e){let a=e.target.scrollingElement.scrollTop;a<250?this.clearance=this.clearanceDefault-a:this.clearance=this.clearanceDefault-250}ngOnDestroy(){this.isDestroyed=!0}loadResults(){this.resultsLoaded=!1,this.blackCarsService.searchReultsById(this.searchId).pipe(Ae(e=>this.guidanceMessagingFacade.resolveGuidanceMessage({isPersonal:this.isPersonal,userInfo:this.userInfo,searchGuidanceMessage:e.guidanceMessage,legacyFetch:()=>this.guidanceMessagingFacade.getCarGuidanceMessage(this.searchParams)}).pipe(me(a=>(a?.uuid&&this.guidanceMessagingFacade.saveAnalysisData(a.uuid,this.searchId).pipe(ce(()=>_e(null))).subscribe(),this.applyGuidanceBanner(a),e)),ce(()=>(this.applyGuidanceBanner(null),_e(e)))))).subscribe({next:e=>{this.resultsLoaded=!0,this.searchResults=e,this.resultsExpireAt=e?.expirationDate,this.blackCarsSubject.next(e?.options),this.applyPagination(e?.options.length),setTimeout(()=>this.updateMap())},error:()=>this.resultsLoaded=!1})}updateUsers(){this.usersDataService.getUsersFromUuids(this.searchParams.travelerUuids).subscribe(e=>{this.users=e,e?.length&&(this.companyName=e[0].companyName)})}updateTheme(){this.sessionQuery.tripTheme$.pipe(Y(this.elRef)).subscribe(e=>{!this.isDestroyed&&this.tripTheme&&this.tripTheme!==e&&this.sessionService.setTripTheme(this.tripTheme)})}resetScroll(){document.body.scrollIntoView({behavior:"smooth"})}goToContract(e){this.loadingBlackCarContractUuid=e.uuid,this.splitTracking.trackOpenContract("black_car",!!this.searchParams.personal),e.uuid,this.searchId,this.blackCarsService.createContract(this.searchId,e.uuid).pipe(fe(()=>{this.loadingBlackCarContractUuid=null})).subscribe(a=>{this.router.navigate([`/search/black-cars/${this.searchId}/contracts/${a.uuid}`],{queryParamsHandling:"preserve"})})}filterChanged({options:e}){this.blackCarsSubject.next(e),this.applySorting(this.sortType),this.applyPagination(e.length)}sortingChanged(e){this.applySorting(e)}closeGuidanceMessageBanner(){this.showGuidanceMessageBanner=!1,Ve(He.ENT_GUIDANCE_MESSAGE_CLOSED,{messageType:nt.BLACK_CAR})}applyGuidanceBanner(e){this.guidanceMessageBanner=this.guidanceMessagingFacade.buildGuidanceBanner(e,this.guidanceMessageTitle),this.showGuidanceMessageBanner=!!this.guidanceMessageBanner?.message}get guidanceMessageTitle(){let e=this.userInfo?.companyName||"Your Company";return $localize`Booking Guidance from ${e}`}applySorting(e){let a=this.blackCarsService.sortBlackCars(this.blackCarsSubject.value,e);this.sortType=e,this.blackCarsSubject.next(a)}applyPagination(e){this.totalPages=Math.floor(e/this.pageSize)+(e%this.pageSize?1:0),this.maxPages=Math.min(this.totalPages,aa),this.setPage(1)}setPage(e){this.pageStart=(e-1)*this.pageSize,this.pageEnd=e*this.pageSize,this.selectedPage=e}onUserPageChange(e){this.searchId,this.setPage(e)}updateMap(){let e=this.searchParams.dropOffLocation?.geo?.latLonString;this.pickUpLatLonString=this.searchParams.pickUpLocation?.geo?.latLonString,this.dropOffLatLonString=e||this.pickUpLatLonString}redoSearch(){this.blackCarsService.redoSearch(this.searchParams)}navigateSearchPage(){this.blackCarsService.goToSearch(this.searchParams.tripUuid)}static{this.\u0275fac=function(a){return new(a||t)(d(De),d(Re),d(pt),d(_t),d(ot),d(it),d(ct),d(st),d(w),d(je),d(Ct),d(ee))}}static{this.\u0275cmp=P({type:t,selectors:[["ta-black-cars-search-results"]],hostBindings:function(a,n){a&1&&g("scroll",function(S){return n.onScroll(S)},!1,he)},standalone:!0,features:[b],decls:3,vars:4,consts:()=>{let e;e=$localize`:â2a562c26561f9ef555fb37919a70063d1dcb3d39â80196630627156438:{VAR_PLURAL, plural, =1 {option} other {options}}`,e=X(e,{VAR_PLURAL:"\uFFFD1\uFFFD"});let a;return a=$localize`:âb46c820b10883d7d985487928a8c60cdbeac9414â6660946046671499691: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${e}:ICU: `,[a,[3,"searchId","searchParams","tripUuid","userInfo","users","personal",4,"ngIf"],[4,"taLet"],[3,"searchId","searchParams","tripUuid","userInfo","users","personal"],["class","search-results__subheader",4,"ngIf"],["class","search-results__container",4,"ngIf"],[1,"search-results__subheader"],[1,"search-results__top"],[1,"search-results__filters"],[1,"search-results__options-count"],[3,"changed","isPersonal","userInfo","options"],[3,"sortingChanged","cars","userInfo","isPersonal","sortType"],[1,"search-results__container"],[3,"banner","closeBanner",4,"ngIf"],[1,"search-results__cards-list"],[3,"blackCar","userInfo","companyName","loadingContract","goToContract",4,"ngFor","ngForOf"],["class","search-results__pagination",3,"activePage","maxPages","totalPages","click","pageChange",4,"ngIf"],["class","search-results__map",3,"ngStyle","cars","onHover","zoomControl",4,"ngIf"],[3,"closeBanner","banner"],[3,"goToContract","blackCar","userInfo","companyName","loadingContract"],[1,"search-results__pagination",3,"click","pageChange","activePage","maxPages","totalPages"],[1,"search-results__map",3,"ngStyle","cars","onHover","zoomControl"]]},template:function(a,n){a&1&&(m(0,Wt,1,6,"ta-search-form-bar-black-car",1)(1,ta,3,2,"ng-container",2),B(2,"async")),a&2&&(r("ngIf",n.userInfo&&n.searchParams),i(),r("taLet",pe(2,2,n.blackCars$)))},dependencies:[I,mt,Ke,re,ie,te,Q,ae,Qe,lt,q,Ne,Be],styles:['@keyframes _ngcontent-%COMP%_placeHolderShimmer{0%{background-position:-960px 0}to{background-position:960px 0}}@keyframes _ngcontent-%COMP%_error-blink{0%{background-color:#fff0f0}20%{background-color:#ffc0c0}40%{background-color:#fff0f0}to{background-color:#fff0f0}}.search-results__subheader[_ngcontent-%COMP%]{position:sticky;top:0;z-index:3}.search-results__container[_ngcontent-%COMP%]{display:grid;justify-content:center;grid-column-gap:var(--dim-step5);grid-template-areas:"top top" "cards map" "pagination .";grid-template-columns:minmax(auto,840px) minmax(auto,calc(100% - 880px));margin:0 var(--dim-step2)}.search-results__top[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;flex-wrap:nowrap;padding:var(--dim-step4);background-color:var(--ta-color-surface-background)}.search-results__top-extended[_ngcontent-%COMP%]{margin-bottom:var(--dim-step2)}.search-results__filters[_ngcontent-%COMP%]{display:flex;align-items:baseline;margin-right:var(--dim-step2);flex-grow:1}.search-results__filters-skeleton[_ngcontent-%COMP%]{height:86px}.search-results__filters-skeleton-extended[_ngcontent-%COMP%]{height:147px}.search-results__map[_ngcontent-%COMP%]{grid-area:map;box-shadow:0 1px 4px #18191b26;border-radius:var(--dim-step3);background-color:var(--ta-color-surface-default);height:calc(100vh - 255px);overflow:hidden;position:fixed;top:auto;bottom:15px;right:70px;width:calc(100% - 945px);z-index:3}.search-results__cards-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-area:cards;margin-top:var(--dim-step6)}.search-results__options-count[_ngcontent-%COMP%]{font-size:var(--text-size-xb);font-weight:var(--text-weight-bold);margin-right:var(--dim-step3);white-space:nowrap}.search-results__pagination[_ngcontent-%COMP%]{grid-area:pagination}']})}}return t})();var na=[{path:"",component:oe}],Tt=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=z({type:t})}static{this.\u0275inj=G({imports:[Ce.forChild(na),Ce]})}}return t})();var Yn=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=z({type:t})}static{this.\u0275inj=G({providers:[rt,ee],imports:[Ie,ft,gt,Ye,we,ut,$e,At,Tt,te,oe,ae,re,ie]})}}return t})();export{Yn as BlackCarsSearchResultModule};
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.