1import{a as bl,d as Vl,e as zl,f as $l,g as Wl,h as Kl,i as rc,j as cc,k as dc}from"./chunk-MOW7LH4W.js";import{a as ln,b as cn}from"./chunk-3IEM4LLF.js";import{a as Tl,b as Yl,c as Xl}from"./chunk-JNTEXITK.js";import{a as ec,b as tc}from"./chunk-ZXNLCEBQ.js";import{a as Qe,b as un,c as Ko}from"./chunk-ENQGVM5A.js";import{a as fn}from"./chunk-WPNEWMQO.js";import{a as dn,b as ua,c as Ll,d as Nl,e as Ul,f as pn,g as mn}from"./chunk-NXHQJZFK.js";import{e as gl,j as _l,k as Pl,l as sn,m as El,n as Rl,o as oc,p as ac,q as fc,s as _c,t as hc,u as vc}from"./chunk-YHDSYKSN.js";import{a as _t,b as Mi,c as ic,d as nc}from"./chunk-M7GNXOIN.js";import{a as Il,b as gn,c as _n}from"./chunk-HPVPC2ZL.js";import{a as pl}from"./chunk-Q2NYM4WI.js";import{b as Hl}from"./chunk-5NWOJIIM.js";import{a as Cl}from"./chunk-3BRZC6DL.js";import{b as jo,c as qo}from"./chunk-7WX7HDFV.js";import{a as kl}from"./chunk-I3FPJZUD.js";import{a as Ol}from"./chunk-F34HO42V.js";import{a as sl}from"./chunk-JRTEWDLW.js";import{a as Sl,k as cr,n as Ml,o as on}from"./chunk-D5BYKLW5.js";import{a as xl}from"./chunk-RZARFQDI.js";import{c as Gt}from"./chunk-K5IO42CR.js";import{a as vl}from"./chunk-UOXCEH52.js";import{a as Ho}from"./chunk-2THE64E2.js";import{a as ul}from"./chunk-HGGBVDPI.js";import{a as ml}from"./chunk-WSSN5N2P.js";import{a as Dl,b as sc,c as Yo,d as Qo,e as lc,f as pc,h as mc,i as uc,j as gc}from"./chunk-ZPSUNXCG.js";import{a as Si,b as je,c as fo,d as Zo}from"./chunk-NP3PS26R.js";import{b as Jl}from"./chunk-GYCEGZ7D.js";import{b as dr}from"./chunk-75TP6NES.js";import{a as Ji,b as $o,c as ee,e as Ut}from"./chunk-H37QJJHZ.js";import{a as ht}from"./chunk-BT7YWNG7.js";import{b as hl}from"./chunk-SMSSR3G2.js";import{a as dl}from"./chunk-NSXDVOKM.js";import{a as an,b as nn,c as Wo}from"./chunk-3FETXKQH.js";import{a as xs,b as fe}from"./chunk-JXS66PD3.js";import{a as ie}from"./chunk-CWYNDVDO.js";import{a as hn,b as vn}from"./chunk-H7275ENN.js";import{a as rn}from"./chunk-G2IPT4SG.js";import{a as Fi,b as Oe}from"./chunk-XHQNCPBW.js";import{a as Ja}from"./chunk-3BEK6DAD.js";import{a as Xi}from"./chunk-MBF6NZDN.js";import{a as Qi}from"./chunk-CMARNTZE.js";import{a as Yt}from"./chunk-K7OENYAB.js";import{a as Nt}from"./chunk-TCMLJXP7.js";import{a as yi,b as wl}from"./chunk-FAOJQL5Q.js";import{a as Ne}from"./chunk-BW4LBV32.js";import{a as fl}from"./chunk-Z6HFABXO.js";import{a as ni}from"./chunk-RRLZU3TH.js";import{b as Zl,c as Ql}from"./chunk-VN3RUGX5.js";import{a as Gl,b as jl,c as ql}from"./chunk-A3HTOPAP.js";import{a as nl}from"./chunk-OE3G2K4R.js";import{b as al}from"./chunk-TILHXUSI.js";import{a as Fl}from"./chunk-CYTABKB6.js";import{a as Bl}from"./chunk-UX63CZIG.js";import{a as rl}from"./chunk-IJAYADZF.js";import{b as Wi}from"./chunk-HEL2DFOD.js";import{e as en,i as yl,j as tn}from"./chunk-662PCNZP.js";import{a as cl}from"./chunk-FVLSBMUM.js";import{a as ll}from"./chunk-2CQWCRZI.js";import{a as Ae}from"./chunk-DTJLSO7S.js";import{a as Qt}from"./chunk-24R4UJMP.js";import{c as Ys,f as Dt,g as Pi,h as gt,k as Js,m as el,o as Ye}from"./chunk-EVHGHMIQ.js";import{a as Al}from"./chunk-UTXOMTS4.js";import{a as Xs,c as ai}from"./chunk-6EZRFLTX.js";import{b as tl,c as Qa}from"./chunk-E4XI3Y2I.js";import{h as qs,i as Hs,j as $s,l as Za,p as oi,u as Ws,w as Ks,y as Zs}from"./chunk-CTHCOIKT.js";import{c as Lt,d as Yi,e as le,f as Fe,g as pe,h as ol,k as Xa}from"./chunk-VSKNYKDM.js";import{b as il}from"./chunk-VFBS2D4H.js";import{a as se}from"./chunk-QDBSZS4D.js";import{b as it}from"./chunk-DJAUQCDZ.js";import{a as Go}from"./chunk-ASLMHGEM.js";import{a as Ot}from"./chunk-35D6BYCS.js";import{a as Na,b as Qs,c as wt}from"./chunk-UCAREQ6I.js";import{A as ws,Aa as Us,C as Lo,D as Os,Ea as Gs,Fa as No,G as ks,Ga as js,J as Is,O as Ke,Q as Ts,R as As,S as Es,V as Rs,W as $a,Z as Wa,aa as Bs,b as zo,ba as Fs,c as Ps,d as Ss,j as ys,l as Ms,na as Vs,ta as Ka,u as Ds,va as zs,wa as Ls,xa as Ns}from"./chunk-T2W56OQT.js";import{a as bs,b as ft,f as sr,i as Ha,j as Bi}from"./chunk-I4WIOWV6.js";import{a as lr,b as Uo,c as Ya,d as uo}from"./chunk-MFKTDAHS.js";import{a as De}from"./chunk-NPSI5SXU.js";import{a as ma}from"./chunk-WPKCXLOR.js";import{a as Pe,b as Q}from"./chunk-GWNTAW7G.js";import{A as vs,G as Zi,H as zt,P as Cs,Q as qa,V as Vo,d as Y,e as ne,f as re,g as Ki,h as ls,i as Ua,j as cs,k as ze,l as ms,m as us,n as fs,p as gs,q as J,r as oe,s as Ga,t as _s,u as ja,v as ii,x as Vt,z as hs}from"./chunk-KPIX4VLB.js";import{Ja as Ro,Ka as ds,La as ps,Oa as Bo,Pa as xi,Ta as Fo,Ua as ti,V
1a as pt,Wa as mt,Ya as Ft,Za as Le,h as es,k as ts,p as is,q as os,t as as,x as ns,y as rs,z as ss}from"./chunk-YNARX3BJ.js";import{A as To,C as za,D as Xr,E as Ao,F as Te,G as be,K as Bt,L as Eo,b as wo,c as ei,e as j,f as Oo,g as Ce,h as lt,i as ko,k as _e,l as Ea,m as Io,n as ct,o as Kr,p as Zr,q as bi,r as dt,t as Ra,u as Mt,v as Ba,w as Fa,x as Va,y as Yr,z as Qr}from"./chunk-245L5RKF.js";import{a as ut}from"./chunk-2HTNUNUQ.js";import{f as Wr,q as $i,r as Jr,s as xe,t as La,v as Zt}from"./chunk-AMGMDZCG.js";import{$ as Se,$b as F,$c as L,$d as ka,Ac as Vr,B as pi,Bc as zr,C as Ca,Cb as M,Cc as ue,Da as ve,Db as Rt,Dc as $t,De as G,E as ba,Eb as bo,Ec as Z,Ee as T,Fb as xo,Fe as A,Gb as Po,Gc as Xt,Hc as p,I as vo,Ia as nt,Ib as C,Ic as D,Ja as Hi,Jc as f,K as Co,Kc as q,La as xa,Lc as st,M as w,Mc as fi,Nc as So,O as yr,Oc as gi,Pc as _i,Q as He,Qa as Ve,Qc as hi,Rc as Lr,Sc as Nr,Sd as wa,Tc as ya,Uc as Re,Vc as yo,Vd as qr,Wc as Ur,Wd as de,Xb as Ie,Yb as Rr,Yc as vi,Yd as ae,Z as Mr,Zb as B,Zd as N,_ as Dr,_c as Wt,_d as Oa,ad as Ue,ae as Hr,ba as da,bc as Br,bd as Kt,be as $r,cc as Ai,ce as Ci,dc as Ei,de as Jt,eb as te,ec as d,ed as Gr,f as Ze,fb as bt,fc as s,fd as c,fe as Ia,g as ho,gb as Ir,gc as l,gd as u,ha as $e,hc as h,hd as y,he as Ta,i as va,ia as Et,ib as mi,ic as Je,id as mo,ie as yt,jb as rr,jc as ui,jd as Ma,ka as wr,kb as n,kd as pa,ke as U,la as ye,lc as V,ld as Me,m as Pr,ma as I,mc as z,nc as Ee,oc as k,pb as W,pc as Pa,pe as Be,qb as Tr,qc as b,qd as Ri,rb as Ar,rc as Fr,rd as Mo,re as Aa,s as po,sa as P,sc as g,ta as S,tc as rt,td as Da,ua as Or,uc as We,ud as It,vc as Sa,vd as jr,wb as v,wc as kt,we as Do,xa as kr,xc as et,ya as qi,yb as Er,yc as tt,z as Sr,zd as Xe}from"./chunk-IYGGJOPC.js";import{a as $,b as X,j as ji}from"./chunk-2KJ74XIG.js";var eo={URL_HOME:"url.home",URL_RESERVA_PASSO2:"url.reserva.passo2",URL_RESERVA_PASSO3:"url.reserva.passo3",URL_RESERVA_PASSO4:"url.reserva.passo4"},Cc=(()=>{let r=class r{constructor(e,a,o){this.router=e,this.reservaStore=a,this.translateService=o}canDeactivate(e,a,o,m){return this.translateService.get([eo.URL_HOME,eo.URL_RESERVA_PASSO2,eo.URL_RESERVA_PASSO3,eo.URL_RESERVA_PASSO4]).pipe(w(1)).subscribe(_=>{if(m.url.includes(_[eo.URL_RESERVA_PASSO2])||m.url.includes(_[eo.URL_RESERVA_PASSO3])||m.url.includes(_[eo.URL_RESERVA_PASSO4]))return this.router.parseUrl(_[eo.URL_HOME])}),!0}};r.\u0275fac=function(a){return new(a||r)(ye(xe),ye(fe),ye(G))},r.\u0275prov=$e({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();var bc=(()=>{let r=class r{constructor(e,a,o,m){this.authService=e,this.internacionalizacaoService=a,this.router=o,this.translateService=m}canActivate(e,a){return this.authService.autenticado()?(this.internacionalizacaoService.setarCulturaAplicacao(a.url),this.translateService.get("url.reserva.minhasReservasLogado").pipe(w(1)).subscribe(o=>{this.router.navigate([o])}),!1):!0}};r.\u0275fac=function(a){return new(a||r)(ye(Ye),ye(it),ye(xe),ye(G))},r.\u0275prov=$e({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();var Cn=(i,r)=>!!i&&!!r&&i.includes(r),pr=(i,r,t,e)=>{let a=I(G),o=I(ht);if(!o.hasOptedIntoProgressiveDiscountValue)return!0;let m=a?.currentLang||a?.defaultLang,_=Cn(t?.url,ma[m]?.fluxoDeReserva?.passo3)&&Cn(e?.url,ma[m]?.fluxoDeReserva?.passo4),x=Cn(t?.url,ma[m]?.fluxoDeReserva?.passo4)&&Cn(e?.url,ma[m]?.fluxoDeReserva?.confirmacao);return(_||x)&&o.hasOptedIntoProgressiveDiscountValue?!0:i.canDeactivate?i.canDeactivate():!0};var Cp=[{capital:"Andorra la Vella",continent:"EU",currency:["EUR"],languages:["ca"],native:"Andorra",phone:[376],names:{en:"Andorra",pt:"Andorra",es:"Andorra"},iso2:"AD",iso3:"AND"},{capital:"Abu Dhabi",continent:"AS",currency:["AED"],languages:["ar"],native:"\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629",phone:[971],names:{en:"United Arab Emirates",pt:"Emirados \xC1rabes Unidos",es:"Emiratos \xC1rabes Unidos"},iso2:"AE",iso3:"ARE"},{capital:"Kabul",continent:"AS",currency:["AFN"],languages:["ps","uz","tk"],native:"\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646",phone:[93],names:{en:"Afghanistan",pt:"Afeganist\xE3o",es:"Afganist\xE1n"},iso2:"AF",iso3:"AFG"},{capital:"Saint John's",continent:"AM",currency:["XCD"],languages:["en"],native:"Antigua and Barbuda",phone:[1268],names:{en:"Antigua and Barbuda",pt:"Ant\xEDgua e Barbuda",es:"Antigua y Barbuda"},iso2:"AG",iso3:"ATG"},{capital:"The Valley",continent:"AM",currency:["XCD"],languages:["en"],native:"Anguilla",phone:[1264],names:{en:"Anguilla",pt:"Anguila",es:"Anguila"},iso2:"AI",iso3:"AIA"},{capital:"Tirana",continent:"EU",currency:["ALL"],languages:["sq"],native:"Shqip\xEBria",phone:[355],names:{en:"Albania",pt:"Alb\xE2nia",es:"Albania"},iso2:"AL",iso3:"ALB"},{capital:"Yerevan",continent:"AS",currency:["AMD"],languages:["hy","ru"],native:"\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576",phone:[374],names:{en:"Armenia",pt:"Arm\xEAnia",es:"Armenia"},iso2:"AM",iso3:"ARM"},{capital:"Luanda",continent:"AF",currency:["AOA"],languages:["pt"],native:"Angola",phone:[244],names:{en:"Angola",pt:"Angola",es:"Angola"},iso2:"AO",iso3:"AGO"},{capital:"",continent:"AN",currency:[],languages:[],native:"Antarctica",phone:[672],names:{en:"Antarctica",pt:"Ant\xE1rtida",es:"Ant\xE1rtida"},iso2:"AQ",iso3:"ATA"},{capital:"Buenos Aires",continent:"AM",currency:["ARS"],languages:["es","gn"],native:"Argentina",phone:[54],names:{en:"Argentina",pt:"Argentina",es:"Argentina"},iso2:"AR",iso3:"ARG"},{capital:"Pago Pago",continent:"OC",currency:["USD"],languages:["en","sm"],native:"American Samoa",phone:[1684],names:{en:"American Samoa",pt:"Samoa Americana",es:"Samoa Americana"},iso2:"AS",iso3:"ASM"},{capital:"Vienna",continent:"EU",currency:["EUR"],languages:["de"],native:"\xD6sterreich",phone:[43],names:{en:"Austria",pt:"\xC1ustria",es:"Austria"},iso2:"AT",iso3:"AUT"},{capital:"Canberra",continent:"OC",currency:["AUD"],languages:["en"],native:"Australia",phone:[61],names:{en:"Australia",pt:"Austr\xE1lia",es:"Australia"},iso2:"AU",iso3:"AUS"},{capital:"Oranjestad",continent:"AM",currency:["AWG"],languages:["nl","pa"],native:"Aruba",phone:[297],names:{en:"Aruba",pt:"Aruba",es:"Aruba"},iso2:"AW",iso3:"ABW"},{capital:"Mariehamn",continent:"EU",currency:["EUR"],languages:["sv"],native:"\xC5land",phone:[358],names:{en:"\xC5land Islands",pt:"Ilhas \xC5land",es:"\xC5land"},iso2:"AX",iso3:"ALA"},{capital:"Baku",continent:"AS",currency:["AZN"],languages:["az"],native:"Az\u0259rbaycan",phone:[994],names:{en:"Azerbaijan",pt:"Azerbaij\xE3o",es:"Azerbaiy\xE1n"},iso2:"AZ",iso3:"AZE"},{capital:"Sarajevo",continent:"EU",currency:["BAM"],languages:["bs","hr","sr"],native:"Bosna i Hercegovina",phone:[387],names:{en:"Bosnia and Herzegovina",pt:"B\xF3snia e Herzegovina",es:"Bosnia y Herzegovina"},iso2:"BA",iso3:"BIH"},{capital:"Bridgetown",continent:"AM",currency:["BBD"],languages:["en"],native:"Barbados",phone:[1246],names:{en:"Barbados",pt:"Barbados",es:"Barbados"},iso2:"BB",iso3:"BRB"},{capital:"Dhaka",continent:"AS",currency:["BDT"],languages:["bn"],native:"Bangladesh",phone:[880],names:{en:"Bangladesh",pt:"Bangladexe",es:"Banglad\xE9s"},iso2:"BD",iso3:"BGD"},{capital:"Brussels",continent:"EU",currency:["EUR"],languages:["nl","fr","de"],native:"Belgi\xEB",phone:[32],names:{en:"Belgium",pt:"B\xE9lgica",es:"B\xE9lgica"},iso2:"BE",iso3:"BEL"},{capital:"Ouagadougou",continent:"AF",currency:["XOF"],languages:["fr","ff"],native:"Burkina Faso",phone:[226],names:{en:"Burkina Faso",pt:"Burquina Fasso",es:"Burkina Faso"},iso2:"BF",iso3:"BFA"},{capital:"Sofia",continent:"EU",currency:["BGN"],languages:["bg"],native:"\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F",phone:[359],names:{en:"Bulgaria",pt:"Bulg\xE1ria",es:"Bulgaria"},iso2:"BG",iso3:"BGR"},{capital:"Manama",continent:"AS",currency:["BHD"],languages:["ar"],native:"\u200F\u0627\u0644\u0628\u062D\u0631\u064A\u0646",phone:[973],names:{en:"Bahrain",pt:"Bar\xE9m",es:"Bar\xE9in"},iso2:"BH",iso3:"BHR"},{capital:"Bujumbura",continent:"AF",currency:["BIF"],languages:["fr","rn"],native:"Burundi",phone:[257],names:{en:"Burundi",pt:"Burundi",es:"Burundi"},iso2:"BI",iso3:"BDI"},{capital:"Porto-Novo",continent:"AF",currency:["XOF"],languages:["fr"],native:"B\xE9nin",phone:[229],names:{en:"Benin",pt:"Benim",es:"Ben\xEDn"},iso2:"BJ",iso3:"BEN"},{capital:"Gustavia",continent:"AM",currency:["EUR"],languages:["fr"],native:"Saint-Barth\xE9lemy",phone:[590],names:{en:"Saint Barth\xE9lemy",pt:"S\xE3o Bartolomeu",es:"San Bartolom\xE9"},iso2:"BL",iso3:"BLM"},{capital:"Hamilton",continent:"AM",currency:["BMD"],languages:["en"],native:"Bermuda",phone:[1441],names:{en:"Bermuda",pt:"Bermudas",es:"Bermudas"},iso2:"BM",iso3:"BMU"},{capital:"Bandar Seri Begawan",continent:"AS",currency:["BND"],languages:["ms"],native:"Negara Brunei Darussalam",phone:[673],names:{en:"Brunei Darussalam",pt:"Brunei",es:"Brun\xE9i"},iso2:"BN",iso3:"BRN"},{capital:"Sucre",continent:"AM",currency:["BOB","BOV"],languages:["es","ay","qu"],native:"Bolivia",phone:[591],names:{en:"Bolivia, Plurinational State of",pt:"Bol\xEDvia",es:"Bolivia"},iso2:"BO",iso3:"BOL"},{capital:"Kralendijk",continent:"AM",currency:["USD"],languages:["nl"],native:"Bonaire",phone:[5997],names:{en:"Bonaire, Sint Eustatius and Saba",pt:"Pa\xEDses Baixos Caribenhos",es:"Bonaire, San Eustaquio y Saba"},iso2:"BQ",iso3:"BES"},{capital:"Bras\xEDlia",continent:"AM",currency:["BRL"],languages:["pt"],native:"Brasil",phone:[55],names:{en:"Brazil",pt:"Brasil",es:"Brasil"},iso2:"BR",iso3:"BRA"},{capital:"Nassau",continent:"AM",currency:["BSD"],languages:["en"],native:"Bahamas",phone:[1242],names:{en:"Bahamas",pt:"Bahamas",es:"Bahamas"},iso2:"BS",iso3:"BHS"},{capital:"Thimphu",continent:"AS",currency:["BTN","INR"],languages:["dz"],native:"\u02BCbrug-yul",ph
1one:[975],names:{en:"Bhutan",pt:"But\xE3o",es:"But\xE1n"},iso2:"BT",iso3:"BTN"},{capital:"",continent:"AN",currency:["NOK"],languages:["no","nb","nn"],native:"Bouvet\xF8ya",phone:[47],names:{en:"Bouvet Island",pt:"Ilha Bouvet",es:"Isla Bouvet"},iso2:"BV",iso3:"BVT"},{capital:"Gaborone",continent:"AF",currency:["BWP"],languages:["en","tn"],native:"Botswana",phone:[267],names:{en:"Botswana",pt:"Botsuana",es:"Botsuana"},iso2:"BW",iso3:"BWA"},{capital:"Minsk",continent:"EU",currency:["BYN"],languages:["be","ru"],native:"\u0411\u0435\u043B\u0430\u0440\u0443\u0301\u0441\u044C",phone:[375],names:{en:"Belarus",pt:"Bielorr\xFAssia",es:"Bielorrusia"},iso2:"BY",iso3:"BLR"},{capital:"Belmopan",continent:"AM",currency:["BZD"],languages:["en","es"],native:"Belize",phone:[501],names:{en:"Belize",pt:"Belize",es:"Belice"},iso2:"BZ",iso3:"BLZ"},{capital:"Ottawa",continent:"AM",currency:["CAD"],languages:["en","fr"],native:"Canada",phone:[1],names:{en:"Canada",pt:"Canad\xE1",es:"Canad\xE1"},iso2:"CA",iso3:"CAN"},{capital:"West Island",continent:"AS",currency:["AUD"],languages:["en"],native:"Cocos (Keeling) Islands",phone:[61],names:{en:"Cocos (Keeling) Islands",pt:"Ilhas Cocos (Keeling)",es:"Islas Cocos"},iso2:"CC",iso3:"CCK"},{capital:"Kinshasa",continent:"AF",currency:["CDF"],languages:["fr","ln","kg","sw","lu"],native:"R\xE9publique d\xE9mocratique du Congo",phone:[243],names:{en:"Congo, Democratic Republic of the",pt:"Rep\xFAblica Democr\xE1tica do Congo",es:"Rep\xFAblica Democr\xE1tica del Congo"},iso2:"CD",iso3:"COD"},{capital:"Bangui",continent:"AF",currency:["XAF"],languages:["fr","sg"],native:"K\xF6d\xF6r\xF6s\xEAse t\xEE B\xEAafr\xEEka",phone:[236],names:{en:"Central African Republic",pt:"Rep\xFAblica Centro-Africana",es:"Rep\xFAblica Centroafricana"},iso2:"CF",iso3:"CAF"},{capital:"Brazzaville",continent:"AF",currency:["XAF"],languages:["fr","ln"],native:"R\xE9publique du Congo",phone:[242],names:{en:"Congo",pt:"Rep\xFAblica do Congo",es:"Rep\xFAblica del Congo"},iso2:"CG",iso3:"COG"},{capital:"Bern",continent:"EU",currency:["CHE","CHF","CHW"],languages:["de","fr","it"],native:"Schweiz",phone:[41],names:{en:"Switzerland",pt:"Su\xED\xE7a",es:"Suiza"},iso2:"CH",iso3:"CHE"},{capital:"Yamoussoukro",continent:"AF",currency:["XOF"],languages:["fr"],native:"C\xF4te d'Ivoire",phone:[225],names:{en:"C\xF4te d'Ivoire",pt:"Costa do Marfim",es:"Costa de Marfil"},iso2:"CI",iso3:"CIV"},{capital:"Avarua",continent:"OC",currency:["NZD"],languages:["en"],native:"Cook Islands",phone:[682],names:{en:"Cook Islands",pt:"Ilhas Cook",es:"Islas Cook"},iso2:"CK",iso3:"COK"},{capital:"Santiago",continent:"AM",currency:["CLF","CLP"],languages:["es"],native:"Chile",phone:[56],names:{en:"Chile",pt:"Chile",es:"Chile"},iso2:"CL",iso3:"CHL"},{capital:"Yaound\xE9",continent:"AF",currency:["XAF"],languages:["en","fr"],native:"Cameroon",phone:[237],names:{en:"Cameroon",pt:"Camar\xF5es",es:"Camer\xFAn"},iso2:"CM",iso3:"CMR"},{capital:"Beijing",continent:"AS",currency:["CNY"],languages:["zh"],native:"\u4E2D\u56FD",phone:[86],names:{en:"China",pt:"China",es:"China"},iso2:"CN",iso3:"CHN"},{capital:"Bogot\xE1",continent:"AM",currency:["COP"],languages:["es"],native:"Colombia",phone:[57],names:{en:"Colombia",pt:"Col\xF4mbia",es:"Colombia"},iso2:"CO",iso3:"COL"},{capital:"San Jos\xE9",continent:"AM",currency:["CRC"],languages:["es"],native:"Costa Rica",phone:[506],names:{en:"Costa Rica",pt:"Costa Rica",es:"Costa Rica"},iso2:"CR",iso3:"CRI"},{capital:"Havana",continent:"AM",currency:["CUC","CUP"],languages:["es"],native:"Cuba",phone:[53],names:{en:"Cuba",pt:"Cuba",es:"Cuba"},iso2:"CU",iso3:"CUB"},{capital:"Praia",continent:"AF",currency:["CVE"],languages:["pt"],native:"Cabo Verde",phone:[238],names:{en:"Cabo Verde",pt:"Cabo Verde",es:"Cabo Verde"},iso2:"CV",iso3:"CPV"},{capital:"Willemstad",continent:"AM",currency:["ANG"],languages:["nl","pa","en"],native:"Cura\xE7ao",phone:[5999],names:{en:"Cura\xE7ao",pt:"Cura\xE7au",es:"Curazao"},iso2:"CW",iso3:"CUW"},{capital:"Flying Fish Cove",continent:"AS",currency:["AUD"],languages:["en"],native:"Christmas Island",phone:[61],names:{en:"Christmas Island",pt:"Ilha do Natal",es:"Isla de Navidad"},iso2:"CX",iso3:"CXR"},{capital:"Nicosia",continent:"EU",currency:["EUR"],languages:["el","tr","hy"],native:"\u039A\u03CD\u03C0\u03C1\u03BF\u03C2",phone:[357],names:{en:"Cyprus",pt:"Chipre",es:"Chipre"},iso2:"CY",iso3:"CYP"},{capital:"Prague",continent:"EU",currency:["CZK"],languages:["cs"],native:"\u010Cesk\xE1 republika",phone:[420],names:{en:"Czechia",pt:"Ch\xE9quia",es:"Rep\xFAblica Checa"},iso2:"CZ",iso3:"CZE"},{capital:"Berlin",continent:"EU",currency:["EUR"],languages:["de"],native:"Deutschland",phone:[49],names:{en:"Germany",pt:"Alemanha",es:"Alemania"},iso2:"DE",iso3:"DEU"},{capital:"Djibouti",continent:"AF",currency:["DJF"],languages:["fr","ar"],native:"Djibouti",phone:[253],names:{en:"Djibouti",pt:"Djibuti",es:"Yibuti"},iso2:"DJ",iso3:"DJI"},{capital:"Copenhagen",continent:"EU",currency:["DKK"],languages:["da"],native:"Danmark",phone:[45],names:{en:"Denmark",pt:"Dinamarca",es:"Dinamarca"},iso2:"DK",iso3:"DNK"},{capital:"Roseau",continent:"AM",currency:["XCD"],languages:["en"],native:"Dominica",phone:[1767],names:{en:"Dominica",pt:"Dominica",es:"Dominica"},iso2:"DM",iso3:"DMA"},{capital:"Santo Domingo",continent:"AM",currency:["DOP"],languages:["es"],native:"Rep\xFAblica Dominicana",phone:[1809,1829,1849],names:{en:"Dominican Republic",pt:"Rep\xFAblica Dominicana",es:"Rep\xFAblica Dominicana"},iso2:"DO",iso3:"DOM"},{capital:"Algiers",continent:"AF",currency:["DZD"],languages:["ar"],native:"\u0627\u0644\u062C\u0632\u0627\u0626\u0631",phone:[213],names:{en:"Algeria",pt:"Arg\xE9lia",es:"Argelia"},iso2:"DZ",iso3:"DZA"},{capital:"Quito",continent:"AM",currency:["USD"],languages:["es"],native:"Ecuador",phone:[593],names:{en:"Ecuador",pt:"Equador",es:"Ecuador"},iso2:"EC",iso3:"ECU"},{capital:"Tallinn",continent:"EU",currency:["EUR"],languages:["et"],native:"Eesti",phone:[372],names:{en:"Estonia",pt:"Est\xF3nia",es:"Estonia"},iso2:"EE",iso3:"EST"},{capital:"Cairo",continent:"AF",currency:["EGP"],languages:["ar"],native:"\u0645\u0635\u0631\u200E",phone:[20],names:{en:"Egypt",pt:"Egito",es:"Egipto"},iso2:"EG",iso3:"EGY"},{capital:"El Aai\xFAn",continent:"AF",currency:["MAD","DZD","MRU"],languages:["es"],native:"\u0627\u0644\u0635\u062D\u0631\u0627\u0621 \u0627\u0644\u063A\u0631\u0628\u064A\u0629",phone:[212],names:{en:"Western Sahara",pt:"Saara Ocidental",es:"Rep\xFAblica \xC1rabe Saharaui Democr\xE1tica"},iso2:"EH",iso3:"ESH"},{capital:"Asmara",continent:"AF",currency:["ERN"],languages:["ti","ar","en"],native:"\u12A4\u122D\u1275\u122B",phone:[291],names:{en:"Eritrea",pt:"Eritreia",es:"Eritrea"},iso2:"ER",iso3:"ERI"},{capital:"Madrid",continent:"EU",currency:["EUR"],languages:["es","eu","ca","gl","oc"],native:"Espa\xF1a",phone:[34],names:{en:"Spain",pt:"Espanha",es:"Espa\xF1a"},iso2:"ES",iso3:"ESP"},{capital:"Addis Ababa",continent:"AF",currency:["ETB"],languages:["am"],native:"\u12A2\u1275\u12EE\u1335\u12EB",phone:[251],names:{en:"Ethiopia",pt:"Eti\xF3pia",es:"Etiop\xEDa"},iso2:"ET",iso3:"ETH"},{capital:"Helsinki",continent:"EU",currency:["EUR"],languages:["fi","sv"],native:"Suomi",phone:[358],names:{en:"Finland",pt:"Finl\xE2ndia",es:"Finlandia"},iso2:"FI",iso3:"FIN"},{capital:"Suva",continent:"OC",currency:["FJD"],languages:["en","fj","hi","ur"],native:"Fiji",phone:[679],names:{en:"Fiji",pt:"Fiji",es:"Fiyi"},iso2:"FJ",iso3:"FJI"},{capital:"Stanley",continent:"AM",currency:["FKP"],languages:["en"],native:"Falkland Islands",phone:[500],names:{en:"Falkland Islands (Malvinas)",pt:"Ilhas Malvinas",es:"Islas Malvinas"},iso2:"FK",iso3:"FLK"},{capital:"Palikir",continent:"OC",currency:["USD"],languages:["en"],native:"Micronesia",phone:[691],names:{en:"Micronesia, Federated States of",pt:"Estados Federados da Micron\xE9sia",es:"Micronesia"},iso2:"FM",iso3:"FSM"},{capital:"T\xF3rshavn",continent:"EU",currency:["DKK"],languages:["fo"],native:"F\xF8royar",phone:[298],names:{en:"Faroe Islands",pt:"Ilhas Fero\xE9",es:"Islas Feroe"},iso2:"FO",iso3:"FRO"},{capital:"Paris",continent:"EU",currency:["EUR"],languages:["fr"],native:"France",phone:[33],names:{en:"France",pt:"Fran\xE7a",es:"Francia"},iso2:"FR",iso3:"FRA"},{capital:"Libreville",continent:"AF",currency:["XAF"],languages:["fr"],native:"Gabon",phone:[241],names:{en:"Gabon",pt:"Gab\xE3o",es:"Gab\xF3n"},iso2:"GA",iso3:"GAB"},{capital:"London",continent:"EU",currency:["GBP"],languages:["en"],native:"United Kingdom",phone:[44],names:{en:"United Kingdom of Great Britain and Northern Ireland",pt:"Reino Unido",es:"Reino Unido"},iso2:"GB",iso3:"GBR"},{capital:"St. George's",continent:"AM",currency:["XCD"],languages:["en"],native:"Grenada",phone:[1473],names:{en:"Grenada",pt:"Granada",es:"Granada"},iso2:"GD",iso3:"GRD"},{capital:"Tbilisi",continent:"AS",currency:["GEL"],languages:["ka"],native:"\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD",phone:[995],names:{en:"Georgia",pt:"Ge\xF3rgia",es:"Georgia"},iso2:"GE",iso3:"GEO"},{capital:"Cayenne",continent:"AM",currency:["EUR"],languages:["fr"],native:"Guyane fran\xE7aise",phone:[594],names:{en:"French Guiana",pt:"Guiana Francesa",es:"Guayana Francesa"},iso2:"GF",iso3:"GUF"},{capital:"St. Peter Port",continent:"EU",currency:["GBP"],languages:["en","fr"],native:"Guernsey",phone:[44],names:{en:"Guernsey",pt:"Guernsey",es:"Guernsey"},iso2:"GG",iso3:"GGY"},{capital:"Accra",continent:"AF",currency:["GHS"],languages:["en"],native:"Ghana",phone:[233],names:{en:"Ghana",pt:"Gana",es:"Ghana"},iso2:"GH",iso3:"GHA"},{capital:"Gibraltar",continent:"EU",currency:["GIP"],languages:["en"],native:"Gibraltar",phone:[350],names:{en:"Gibraltar",pt:"Gibraltar",es:"Gibraltar"},iso2:"GI",iso3:"GIB"},{capital:"Nuuk",continent:"AM",currency:["DKK"],languages:["kl"],native:"Kalaallit Nun
1aat",phone:[299],names:{en:"Greenland",pt:"Gronel\xE2ndia",es:"Groenlandia"},iso2:"GL",iso3:"GRL"},{capital:"Banjul",continent:"AF",currency:["GMD"],languages:["en"],native:"Gambia",phone:[220],names:{en:"Gambia",pt:"G\xE2mbia",es:"Gambia"},iso2:"GM",iso3:"GMB"},{capital:"Conakry",continent:"AF",currency:["GNF"],languages:["fr","ff"],native:"Guin\xE9e",phone:[224],names:{en:"Guinea",pt:"Guin\xE9",es:"Guinea"},iso2:"GN",iso3:"GIN"},{capital:"Basse-Terre",continent:"AM",currency:["EUR"],languages:["fr"],native:"Guadeloupe",phone:[590],names:{en:"Guadeloupe",pt:"Guadalupe",es:"Guadalupe"},iso2:"GP",iso3:"GLP"},{capital:"Malabo",continent:"AF",currency:["XAF"],languages:["es","fr"],native:"Guinea Ecuatorial",phone:[240],names:{en:"Equatorial Guinea",pt:"Guin\xE9 Equatorial",es:"Guinea Ecuatorial"},iso2:"GQ",iso3:"GNQ"},{capital:"Athens",continent:"EU",currency:["EUR"],languages:["el"],native:"\u0395\u03BB\u03BB\u03AC\u03B4\u03B1",phone:[30],names:{en:"Greece",pt:"Gr\xE9cia",es:"Grecia"},iso2:"GR",iso3:"GRC"},{capital:"King Edward Point",continent:"AN",currency:["GBP"],languages:["en"],native:"South Georgia",phone:[500],names:{en:"South Georgia and the South Sandwich Islands",pt:"Ilhas Ge\xF3rgia do Sul e Sandwich do Sul",es:"Islas Georgias del Sur y Sandwich del Sur"},iso2:"GS",iso3:"SGS"},{capital:"Guatemala City",continent:"AM",currency:["GTQ"],languages:["es"],native:"Guatemala",phone:[502],names:{en:"Guatemala",pt:"Guatemala",es:"Guatemala"},iso2:"GT",iso3:"GTM"},{capital:"Hag\xE5t\xF1a",continent:"OC",currency:["USD"],languages:["en","ch","es"],native:"Guam",phone:[1671],names:{en:"Guam",pt:"Guam",es:"Guam"},iso2:"GU",iso3:"GUM"},{capital:"Bissau",continent:"AF",currency:["XOF"],languages:["pt"],native:"Guin\xE9-Bissau",phone:[245],names:{en:"Guinea-Bissau",pt:"Guin\xE9-Bissau",es:"Guinea-Bis\xE1u"},iso2:"GW",iso3:"GNB"},{capital:"Georgetown",continent:"AM",currency:["GYD"],languages:["en"],native:"Guyana",phone:[592],names:{en:"Guyana",pt:"Guiana",es:"Guyana"},iso2:"GY",iso3:"GUY"},{capital:"City of Victoria",continent:"AS",currency:["HKD"],languages:["zh","en"],native:"\u9999\u6E2F",phone:[852],names:{en:"Hong Kong",pt:"Hong Kong",es:"Hong Kong"},iso2:"HK",iso3:"HKG"},{capital:"",continent:"AN",currency:["AUD"],languages:["en"],native:"Heard Island and McDonald Islands",phone:[61],names:{en:"Heard Island and McDonald Islands",pt:"Ilha Heard e Ilhas McDonald",es:"Islas Heard y McDonald"},iso2:"HM",iso3:"HMD"},{capital:"Tegucigalpa",continent:"AM",currency:["HNL"],languages:["es"],native:"Honduras",phone:[504],names:{en:"Honduras",pt:"Honduras",es:"Honduras"},iso2:"HN",iso3:"HND"},{capital:"Zagreb",continent:"EU",currency:["EUR"],languages:["hr"],native:"Hrvatska",phone:[385],names:{en:"Croatia",pt:"Cro\xE1cia",es:"Croacia"},iso2:"HR",iso3:"HRV"},{capital:"Port-au-Prince",continent:"AM",currency:["HTG","USD"],languages:["fr","ht"],native:"Ha\xEFti",phone:[509],names:{en:"Haiti",pt:"Haiti",es:"Hait\xED"},iso2:"HT",iso3:"HTI"},{capital:"Budapest",continent:"EU",currency:["HUF"],languages:["hu"],native:"Magyarorsz\xE1g",phone:[36],names:{en:"Hungary",pt:"Hungria",es:"Hungr\xEDa"},iso2:"HU",iso3:"HUN"},{capital:"Jakarta",continent:"AS",currency:["IDR"],languages:["id"],native:"Indonesia",phone:[62],names:{en:"Indonesia",pt:"Indon\xE9sia",es:"Indonesia"},iso2:"ID",iso3:"IDN"},{capital:"Dublin",continent:"EU",currency:["EUR"],languages:["ga","en"],native:"\xC9ire",phone:[353],names:{en:"Ireland",pt:"Irlanda",es:"Irlanda"},iso2:"IE",iso3:"IRL"},{capital:"Jerusalem",continent:"AS",currency:["ILS"],languages:["he","ar"],native:"\u05D9\u05B4\u05E9\u05B0\u05C2\u05E8\u05B8\u05D0\u05B5\u05DC",phone:[972],names:{en:"Israel",pt:"Israel",es:"Israel"},iso2:"IL",iso3:"ISR"},{capital:"Douglas",continent:"EU",currency:["GBP"],languages:["en","gv"],native:"Isle of Man",phone:[44],names:{en:"Isle of Man",pt:"Ilha de Man",es:"Isla de Man"},iso2:"IM",iso3:"IMN"},{capital:"New Delhi",continent:"AS",currency:["INR"],languages:["hi","en"],native:"\u092D\u093E\u0930\u0924",phone:[91],names:{en:"India",pt:"\xCDndia",es:"India"},iso2:"IN",iso3:"IND"},{capital:"Diego Garcia",continent:"AS",currency:["USD"],languages:["en"],native:"British Indian Ocean Territory",phone:[246],names:{en:"British Indian Ocean Territory",pt:"Territ\xF3rio Brit\xE2nico do Oceano \xCDndico",es:"Territorio Brit\xE1nico del Oc\xE9ano \xCDndico"},iso2:"IO",iso3:"IOT"},{capital:"Baghdad",continent:"AS",currency:["IQD"],languages:["ar","ku"],native:"\u0627\u0644\u0639\u0631\u0627\u0642",phone:[964],names:{en:"Iraq",pt:"Iraque",es:"Irak"},iso2:"IQ",iso3:"IRQ"},{capital:"Tehran",continent:"AS",currency:["IRR"],languages:["fa"],native:"\u0627\u06CC\u0631\u0627\u0646",phone:[98],names:{en:"Iran, Islam
1ic Republic of",pt:"Ir\xE3",es:"Ir\xE1n"},iso2:"IR",iso3:"IRN"},{capital:"Reykjavik",continent:"EU",currency:["ISK"],languages:["is"],native:"\xCDsland",phone:[354],names:{en:"Iceland",pt:"Isl\xE2ndia",es:"Islandia"},iso2:"IS",iso3:"ISL"},{capital:"Rome",continent:"EU",currency:["EUR"],languages:["it"],native:"Italia",phone:[39],names:{en:"Italy",pt:"It\xE1lia",es:"Italia"},iso2:"IT",iso3:"ITA"},{capital:"Saint Helier",continent:"EU",currency:["GBP"],languages:["en","fr"],native:"Jersey",phone:[44],names:{en:"Jersey",pt:"Jersey",es:"Jersey"},iso2:"JE",iso3:"JEY"},{capital:"Kingston",continent:"AM",currency:["JMD"],languages:["en"],native:"Jamaica",phone:[1876],names:{en:"Jamaica",pt:"Jamaica",es:"Jamaica"},iso2:"JM",iso3:"JAM"},{capital:"Amman",continent:"AS",currency:["JOD"],languages:["ar"],native:"\u0627\u0644\u0623\u0631\u062F\u0646",phone:[962],names:{en:"Jordan",pt:"Jord\xE2nia",es:"Jordania"},iso2:"JO",iso3:"JOR"},{capital:"Tokyo",continent:"AS",currency:["JPY"],languages:["ja"],native:"\u65E5\u672C",phone:[81],names:{en:"Japan",pt:"Jap\xE3o",es:"Jap\xF3n"},iso2:"JP",iso3:"JPN"},{capital:"Nairobi",continent:"AF",currency:["KES"],languages:["en","sw"],native:"Kenya",phone:[254],names:{en:"Kenya",pt:"Qu\xEAnia",es:"Kenia"},iso2:"KE",iso3:"KEN"},{capital:"Bishkek",continent:"AS",currency:["KGS"],languages:["ky","ru"],native:"\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D",phone:[996],names:{en:"Kyrgyzstan",pt:"Quirguist\xE3o",es:"Kirguist\xE1n"},iso2:"KG",iso3:"KGZ"},{capital:"Phnom Penh",continent:"AS",currency:["KHR"],languages:["km"],native:"K\xE2mp\u016Dch\xE9a",phone:[855],names:{en:"Cambodia",pt:"Camboja",es:"Camboya"},iso2:"KH",iso3:"KHM"},{capital:"South Tarawa",continent:"OC",currency:["AUD"],languages:["en"],native:"Kiribati",phone:[686],names:{en:"Kiribati",pt:"Quirib\xE1ti",es:"Kiribati"},iso2:"KI",iso3:"KIR"},{capital:"Moroni",continent:"AF",currency:["KMF"],languages:["ar","fr"],native:"Komori",phone:[269],names:{en:"Comoros",pt:"Comores",es:"Comoras"},iso2:"KM",iso3:"COM"},{capital:"Basseterre",continent:"AM",currency:["XCD"],languages:["en"],native:"Saint Kitts and Nevis",phone:[1869],names:{en:"Saint Kitts and Nevis",pt:"S\xE3o Crist\xF3v\xE3o e Neves",es:"San Crist\xF3bal y Nieves"},iso2:"KN",iso3:"KNA"},{capital:"Pyongyang",continent:"AS",currency:["KPW"],languages:["ko"],native:"\uBD81\uD55C",phone:[850],names:{en:"Korea, Democratic People's Republic of",pt:"Coreia do Norte",es:"Corea del Norte"},iso2:"KP",iso3:"PRK"},{capital:"Seoul",continent:"AS",currency:["KRW"],languages:["ko"],native:"\uB300\uD55C\uBBFC\uAD6D",phone:[82],names:{en:"Korea, Republic of",pt:"Coreia do
1Sul",es:"Corea del Sur"},iso2:"KR",iso3:"KOR"},{capital:"Kuwait City",continent:"AS",currency:["KWD"],languages:["ar"],native:"\u0627\u0644\u0643\u0648\u064A\u062A",phone:[965],names:{en:"Kuwait",pt:"Kuwait",es:"Kuwait"},iso2:"KW",iso3:"KWT"},{capital:"George Town",continent:"AM",currency:["KYD"],languages:["en"],native:"Cayman Islands",phone:[1345],names:{en:"Cayman Islands",pt:"Ilhas Caim\xE3",es:"Islas Caim\xE1n"},iso2:"KY",iso3:"CYM"},{capital:"Astana",continent:"AS",currency:["KZT"],languages:["kk","ru"],native:"\u049A\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D",phone:[7],names:{en:"Kazakhstan",pt:"Cazaquist\xE3o",es:"Kazajist\xE1n"},iso2:"KZ",iso3:"KAZ"},{capital:"Vientiane",continent:"AS",currency:["LAK"],languages:["lo"],native:"\u0EAA\u0E9B\u0E9B\u0EA5\u0EB2\u0EA7",phone:[856],names:{en:"Lao People's Democratic Republic",pt:"Laos",es:"Laos"},iso2:"LA",iso3:"LAO"},{capital:"Beirut",continent:"AS",currency:["LBP"],languages:["ar","fr"],native:"\u0644\u0628\u0646\u0627\u0646",phone:[961],names:{en:"Lebanon",pt:"L\xEDbano",es:"L\xEDbano"},iso2:"LB",iso3:"LBN"},{capital:"Castries",continent:"AM",currency:["XCD"],languages:["en"],native:"Saint Lucia",phone:[1758],names:{en:"Saint Lucia",pt:"Santa L\xFAcia",es:"Santa Luc\xEDa"},iso2:"LC",iso3:"LCA"},{capital:"Vaduz",continent:"EU",currency:["CHF"],languages:["de"],native:"Liechtenstein",phone:[423],names:{en:"Liechtenstein",pt:"Listenstaine",es:"Liechtenstein"},iso2:"LI",iso3:"LIE"},{capital:"Colombo",continent:"AS",currency:["LKR"],languages:["si","ta"],native:"\u015Br\u012B la\u1E43k\u0101va",phone:[94],names:{en:"Sri Lanka",pt:"Seri Lanca",es:"Sri Lanka"},iso2:"LK",iso3:"LKA"},{capital:"Monrovia",continent:"AF",currency:["LRD"],languages:["en"],native:"Liberia",phone:[231],names:{en:"Liberia",pt:"Lib\xE9ria",es:"Liberia"},iso2:"LR",iso3:"LBR"},{capital:"Maseru",continent:"AF",currency:["LSL","ZAR"],languages:["en","st"],native:"Lesotho",phone:[266],names:{en:"Lesotho",pt:"Lesoto",es:"Lesoto"},iso2:"LS",iso3:"LSO"},{capital:"Vilnius",continent:"EU",currency:["EUR"],languages:["lt"],native:"Lietuva",phone:[370],names:{en:"Lithuania",pt:"Litu\xE2nia",es:"Lituania"},iso2:"LT",iso3:"LTU"},{capital:"Luxembourg",continent:"EU",currency:["EUR"],languages:["fr","de","lb"],native:"Luxembourg",phone:[352],names:{en:"Luxembourg",pt:"Luxemburgo",es:"Luxemburgo"},iso2:"LU",iso3:"LUX"},{capital:"Riga",continent:"EU",currency:["EUR"],languages:["lv"],native:"Latvija",phone:[371],names:{en:"Latvia",pt:"Let\xF4nia",es:"Letonia"},iso2:"LV",iso3:"LVA"},{capital:"Tripoli",continent:"AF",currency:["LYD"],languages:["ar"],native:"\u200F\u0644\u064A\u0628\u064A\u0627",phone:[218],names:{en:"Libya",pt:"L\xEDbia",es:"Libia"},iso2:"LY",iso3:"LBY"},{capital:"Rabat",continent:"AF",currency:["MAD"],languages:["ar"],native:"\u0627\u0644\u0645\u063A\u0631\u0628",phone:[212],names:{en:"Morocco",pt:"Marrocos",es:"Marruecos"},iso2:"MA",iso3:"MAR"},{capital:"Monaco",continent:"EU",currency:["EUR"],languages:["fr"],native:"Monaco",phone:[377],names:{en:"Monaco",pt:"M\xF3naco",es:"M\xF3naco"},iso2:"MC",iso3:"MCO"},{capital:"Chi\u0219in\u0103u",continent:"EU",currency:["MDL"],languages:["ro"],native:"Moldova",phone:[373],names:{en:"Moldova, Republic of",pt:"Mold\xE1via",es:"Moldavia"},iso2:"MD",iso3:"MDA"},{capital:"Podgorica",continent:"EU",currency:["EUR"],languages:["sr","bs","sq","hr"],native:"\u0426\u0440\u043D\u0430 \u0413\u043E\u0440\u0430",phone:[382],names:{en:"Montenegro",pt:"Montenegro",es:"Montenegro"},iso2:"ME",iso3:"MNE"},{capital:"Marigot",continent:"AM",currency:["EUR"],languages:["en","fr","nl"],native:"Saint-Martin",phone:[590],names:{en:"Saint Martin (French part)",pt:"S\xE3o Martinho",es:"San Mart\xEDn"},iso2:"MF",iso3:"MAF"},{capital:"Antananarivo",continent:"AF",currency:["MGA"],languages:["fr","mg"],native:"Madagasikara",phone:[261],names:{en:"Madagascar",pt:"Madag\xE1scar",es:"Madagascar"},iso2:"MG",iso3:"MDG"},{capital:"Majuro",continent:"OC",currency:["USD"],languages:["en","mh"],native:"M\u0327aje\u013C",phone:[692],names:{en:"Marshall Islands",pt:"Ilhas Marshall",es:"Islas Marshall"},iso2:"MH",iso3:"MHL"},{capital:"Skopje",continent:"EU",currency:["MKD"],languages:["mk"],native:"\u0421\u0435\u0432\u0435\u0440\u043D\u0430 \u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430",phone:[389],names:{en:"North Macedonia",pt:"Maced\xF4nia do Norte",es:"Macedonia del Norte"},iso2:"MK",iso3:"MKD"},{capital:"Bamako",continent:"AF",currency:["XOF"],languages:["fr"],native:"Mali",phone:[223],names:{en:"Mali",pt:"Mali",es:"Mal\xED"},iso2:"ML",iso3:"MLI"},{capital:"Naypyidaw",continent:"AS",currency:["MMK"],languages:["my"],native:"\u1019\u103C\u1014\u103A\u1019\u102C",phone:[95],names:{en:"Myanmar",pt:"Mianmar",es:"Birmania"},iso2:"MM",iso3:"MMR"},{capital:"Ulan Bator",continent:"AS",currency:["MNT"],languages:["mn"],native:"\u041C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441",phone:[976],names:{en:"Mongolia",pt:"Mong\xF3lia",es:"Mongolia"},iso2:"MN",iso3:"MNG"},{capital:"",continent:"AS",currency:["MOP"],languages:["zh","pt"],native:"\u6FB3\u9580",phone:[853],names:{en:"Macao",pt:"Macau",es:"Macao"},iso2:"MO",iso3:"MAC"},{capital:"Saipan",continent:"OC",currency:["USD"],languages:["en","ch"],native:"Northern Mariana Islands",phone:[1670],names:{en:"Northern Mariana Islands",pt:"Marianas Setentrionais",es:"Islas Marianas del Norte"},iso2:"MP",iso3:"MNP"},{capital:"Fort-de-France",continent:"AM",currency:["EUR"],languages:["fr"],native:"Martinique",phone:[596],names:{en:"Martinique",pt:"Martinica",es:"Martinica"},iso2:"MQ",iso3:"MTQ"},{capital:"Nouakchott",continent:"AF",currency:["MRU"],languages:["ar"],native:"\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627",phone:[222],names:{en:"Mauritania",pt:"Maurit\xE2nia",es:"Mauritania"},iso2:"MR",iso3:"MRT"},{capital:"Plymouth",continent:"AM",currency:["XCD"],languages:["en"],native:"Montserrat",phone:[1664],names:{en:"Montserrat",pt:"Monserrate",es:"Montserrat"},iso2:"MS",iso3:"MSR"},{capital:"Valletta",continent:"EU",currency:["EUR"],languages:["mt","en"],native:"Malta",phone:[356],names:{en:"Malta",pt:"Malta",es:"Malta"},iso2:"MT",iso3:"MLT"},{capital:"Port Louis",continent:"AF",currency:["MUR"],languages:["en"],native:"Maurice",phone:[230],names:{en:"Mauritius",pt:"Ilhas Maur\xEDcias",es:"Mauricio"},iso2:"MU",iso3:"MUS"},{capital:"Mal\xE9",continent:"AS",currency:["MVR"],languages:["dv"],native:"Maldives",phone:[960],names:{en:"Maldives",pt:"Maldivas",es:"Maldivas"},iso2:"MV",iso3:"MDV"},{capital:"Lilongwe",continent:"AF",currency:["MWK"],languages:["en","ny"],native:"Malawi",phone:[265],names:{en:"Malawi",pt:"Mal\xE1ui",es:"Malaui"},iso2:"MW",iso3:"MWI"},{capital:"Mexico City",continent:"AM",currency:["MXN"],languages:["es"],native:"M\xE9xico",phone:[52],names:{en:"Mexico",pt:"M\xE9xico",es:"M\xE9xico"},iso2:"MX",iso3:"MEX"},{capital:"Kuala Lumpur",continent:"AS",currency:["MYR"],languages:["ms"],native:"Malaysia",phone:[60],names:{en:"Malaysia",pt:"Mal\xE1sia",es:"Malasia"},iso2:"MY",iso3:"MYS"},{capital:"Maputo",continent:"AF",currency:["MZN"],languages:["pt"],native:"Mo\xE7ambique",phone:[258],names:{en:"Mozambique",pt:"Mo\xE7ambique",es:"Mozambique"},iso2:"MZ",iso3:"MOZ"},{capital:"Windhoek",continent:"AF",currency:["NAD","ZAR"],languages:["en","af"],native:"Namibia",phone:[264],names:{en:"Namibia",pt:"Nam\xEDbia",es:"Namibia"},iso2:"NA",iso3:"NAM"},{capital:"Noum\xE9a",continent:"OC",currency:["XPF"],languages:["fr"],native:"Nouvelle-Cal\xE9donie",phone:[687],names:{en:"New Caledonia",pt:"Nova Caled\xF4nia",es:"Nueva Caledonia"},iso2:"NC",iso3:"NCL"},{capital:"Niamey",continent:"AF",currency:["XOF"],languages:["fr"],native:"Niger",phone:[227],names:{en:"Niger",pt:"N\xEDger",es:"N\xEDger"},iso2:"NE",iso3:"NER"},{capital:"Kingston",continent:"OC",currency:["AUD"],languages:["en"],native:"Norfolk Island",phone:[672],names:{en:"Norfolk Island",pt:"Ilha Norfolk",es:"Isla Norfolk"},iso2:"NF",iso3:"NFK"},{capital:"Abuja",continent:"AF",currency:["NGN"],languages:["en"],native:"Nigeria",phone:[234],names:{en:"Nigeria",pt:"Nig\xE9ria",es:"Nigeria"},iso2:"NG",iso3:"NGA"},{capital:"Managua",continent:"AM",currency:["NIO"],languages:["es"],native:"Nicaragua",phone:[505],names:{en:"Nicaragua",pt:"Nicar\xE1gua",es:"Nicaragua"}
1,iso2:"NI",iso3:"NIC"},{capital:"Amsterdam",continent:"EU",currency:["EUR"],languages:["nl"],native:"Nederland",phone:[31],names:{en:"Netherlands",pt:"Pa\xEDses Baixos",es:"Pa\xEDses Bajos"},iso2:"NL",iso3:"NLD"},{capital:"Oslo",continent:"EU",currency:["NOK"],languages:["no","nb","nn"],native:"Norge",phone:[47],names:{en:"Norway",pt:"Noruega",es:"Noruega"},iso2:"NO",iso3:"NOR"},{capital:"Kathmandu",continent:"AS",currency:["NPR"],languages:["ne"],native:"\u0928\u0947\u092A\u093E\u0932",phone:[977],names:{en:"Nepal",pt:"Nepal",es:"Nepal"},iso2:"NP",iso3:"NPL"},{capital:"Yaren",continent:"OC",currency:["AUD"],languages:["en","na"],native:"Nauru",phone:[674],names:{en:"Nauru",pt:"Nauru",es:"Nauru"},iso2:"NR",iso3:"NRU"},{capital:"Alofi",continent:"OC",currency:["NZD"],languages:["en"],native:"Niu\u0113",phone:[683],names:{en:"Niue",pt:"Niue",es:"Niue"},iso2:"NU",iso3:"NIU"},{capital:"Wellington",continent:"OC",currency:["NZD"],languages:["en","mi"],native:"New Zealand",phone:[64],names:{en:"New Zealand",pt:"Nova Zel\xE2ndia",es:"Nueva Zelanda"},iso2:"NZ",iso3:"NZL"},{capital:"Muscat",continent:"AS",currency:["OMR"],languages:["ar"],native:"\u0639\u0645\u0627\u0646",phone:[968],names:{en:"Oman",pt:"Om\xE3",es:"Om\xE1n"},iso2:"OM",iso3:"OMN"},{capital:"Panama City",continent:"AM",currency:["PAB","USD"],languages:["es"],native:"Panam\xE1",phone:[507],names:{en:"Panama",pt:"Panam\xE1",es:"Panam\xE1"},iso2:"PA",iso3:"PAN"},{capital:"Lima",continent:"AM",currency:["PEN"],languages:["es"],native:"Per\xFA",phone:[51],names:{en:"Peru",pt:"Peru",es:"Per\xFA"},iso2:"PE",iso3:"PER"},{capital:"Papeet\u0113",continent:"OC",currency:["XPF"],languages:["fr"],native:"Polyn\xE9sie fran\xE7aise",phone:[689],names:{en:"French Polynesia",pt:"Polin\xE9sia Francesa",es:"Polinesia Francesa"},iso2:"PF",iso3:"PYF"},{capital:"Port Moresby",continent:"OC",currency:["PGK"],languages:["en"],native:"Papua Niugini",phone:[675],names:{en:"Papua New Guinea",pt:"Papua-Nova Guin\xE9",es:"Pap\xFAa Nueva Guinea"},iso2:"PG",iso3:"PNG"},{capital:"Manila",continent:"AS",currency:["PHP"],languages:["en"],native:"Pilipinas",phone:[63],names:{en:"Philippines",pt:"Filipinas",es:"Filipinas"},iso2:"PH",iso3:"PHL"},{capital:"Islamabad",continent:"AS",currency:["PKR"],languages:["en","ur"],native:"Pakistan",phone:[92],names:{en:"Pakistan",pt:"Paquist\xE3o",es:"Pakist\xE1n"},iso2:"PK",iso3:"PAK"},{capital:"Warsaw",continent:"EU",currency:["PLN"],languages:["pl"],native:"Polska",phone:[48],names:{en:"Poland",pt:"Pol\xF3nia",es:"Polonia"},iso2:"PL",iso3:"POL"},{capital:"Saint-Pierre",continent:"AM",currency:["EUR"],languages:["fr"],native:"Saint-Pierre-et-Miquelon",phone:[508],names:{en:"Saint Pierre and Miquelon",pt:"S\xE3o Pedro e Miquel\xE3o",es:"San Pedro y Miquel\xF3n"},iso2:"PM",iso3:"SPM"},{capital:"Adamstown",continent:"OC",currency:["NZD"],languages:["en"],native:"Pitcairn Islands",phone:[64],names:{en:"Pitcairn",pt:"Pitcairn",es:"Islas Pitcairn"},iso2:"PN",iso3:"PCN"},{capital:"San Juan",continent:"AM",currency:["USD"],languages:["es","en"],native:"Puerto Rico",phone:[1787,1939],names:{en:"Puerto Rico",pt:"Porto Rico",es:"Puerto Rico"},iso2:"PR",iso3:"PRI"},{capital:"Ramallah",continent:"AS",currency:["ILS"],languages:["ar"],native:"\u0641\u0644\u0633\u0637\u064A\u0646",phone:[970],names:{en:"Palestine, State of",pt:"Palestina",es:"Palestina"},iso2:"PS",iso3:"PSE"},{capital:"Lisbon",continent:"EU",currency:["EUR"],languages:["pt"],native:"Portugal",phone:[351],names:{en:"Portugal",pt:"Portugal",es:"Portugal"},iso2:"PT",iso3:"PRT"},{capital:"Ngerulmud",continent:"OC",currency:["USD"],languages:["en"],native:"Palau",phone:[680],names:{en:"Palau",pt:"Palau",es:"Palaos"},iso2:"PW",iso3:"PLW"},{capital:"Asunci\xF3n",continent:"AM",currency:["PYG"],languages:["es","gn"],native:"Paraguay",phone:[595],names:{en:"Paraguay",pt:"Paraguai",es:"Paraguay"},iso2:"PY",iso3:"PRY"},{capital:"Doha",continent:"AS",currency:["QAR"],languages:["ar"],native:"\u0642\u0637\u0631",phone:[974],names:{en:"Qatar",pt:"Catar",es:"Catar"},iso2:"QA",iso3:"QAT"},{capital:"Saint-Denis",continent:"AF",currency:["EUR"],languages:["fr"],native:"La R\xE9union",phone:[262],names:{en:"R\xE9union",pt:"Reuni\xE3o",es:"Reuni\xF3n"},iso2:"RE",iso3:"REU"},{capital:"Bucharest",continent:"EU",currency:["RON"],languages:["ro"],native:"Rom\xE2nia",phone:[40],names:{en:"Romania",pt:"Rom\xE9nia",es:"Rumania"},iso2:"RO",iso3:"ROU"},{capital:"Belgrade",continent:"EU",currency:["RSD"],languages:["sr"],native:"\u0421\u0440\u0431\u0438\u0458\u0430",phone:[381],names:{en:"Serbia",pt:"S\xE9rvia",es:"Serbia"},iso2:"RS",iso3:"SRB"},{capital:"Moscow",continent:"AS",currency:["RUB"],languages:["ru"],native:"\u0420\u043E\u0441\u0441\u0438\u044F",phone:[7],names:{en:"Russian Federation",pt:"R\xFAssia",es:"Rusia"},iso2:"RU",iso3:"RUS"},{capital:"Kigali",continent:"AF",currency:["RWF"],languages:["rw","en","fr"],native:"Rwanda",phone:[250],names:{en:"Rwanda",pt:"Ruanda",es:"Ruanda"},iso2:"RW",iso3:"RWA"},{capital:"Riyadh",continent:"AS",currency:["SAR"],languages:["ar"],native:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629",phone:[966],names:{en:"Saudi Arabia",pt:"Ar\xE1bia Saudita",es:"Arabia Saudita"},iso2:"SA",iso3:"SAU"},{capital:"Honiara",continent:"OC",currency:["SBD"],languages:["en"],native:"Solomon Islands",phone:[677],names:{en:"Solomon Islands",pt:"Ilhas Salom\xE3o",es:"Islas Salom\xF3n"},iso2:"SB",iso3:"SLB"},{capital:"Victoria",continent:"AF",currency:["SCR"],languages:["fr","en"],native:"Seychelles",phone:[248],names:{en:"Seychelles",pt:"Seicheles",es:"Seychelles"},iso2:"SC",iso3:"SYC"},{capital:"Khartoum",continent:"AF",currency:["SDG"],languages:["ar","en"],native:"\u0627\u0644\u0633\u0648\u062F\u0627\u0646",phone:[249],names:{en:"Sudan",pt:"Sud\xE3o",es:"Sud\xE1n"}
1,iso2:"SD",iso3:"SDN"},{capital:"Stockholm",continent:"EU",currency:["SEK"],languages:["sv"],native:"Sverige",phone:[46],names:{en:"Sweden",pt:"Su\xE9cia",es:"Suecia"},iso2:"SE",iso3:"SWE"},{capital:"Singapore",continent:"AS",currency:["SGD"],languages:["en","ms","ta","zh"],native:"Singapore",phone:[65],names:{en:"Singapore",pt:"Singapura",es:"Singapur"},iso2:"SG",iso3:"SGP"},{capital:"Jamestown",continent:"AF",currency:["SHP"],languages:["en"],native:"Saint Helena",phone:[290],names:{en:"Saint Helena, Ascension and Tristan da Cunha",pt:"Santa Helena, Ascens\xE3o e Trist\xE3o da Cunha",es:"Santa Elena, Ascensi\xF3n y Trist\xE1n de Acu\xF1a"},iso2:"SH",iso3:"SHN"},{capital:"Ljubljana",continent:"EU",currency:["EUR"],languages:["sl"],native:"Slovenija",phone:[386],names:{en:"Slovenia",pt:"Eslov\xEAnia",es:"Eslovenia"},iso2:"SI",iso3:"SVN"},{capital:"Longyearbyen",continent:"EU",currency:["NOK"],languages:["no"],native:"Svalbard og Jan Mayen",phone:[4779],names:{en:"Svalbard and Jan Mayen",pt:"Esvalbarde e Jan Mayen",es:"Svalbard y Jan Mayen"},iso2:"SJ",iso3:"SJM"},{capital:"Bratislava",continent:"EU",currency:["EUR"],languages:["sk"],native:"Slovensko",phone:[421],names:{en:"Slovakia",pt:"Eslov\xE1quia",es:"Eslovaquia"},iso2:"SK",iso3:"SVK"},{capital:"Freetown",continent:"AF",currency:["SLL"],languages:["en"],native:"Sierra Leone",phone:[232],names:{en:"Sierra Leone",pt:"Serra Leoa",es:"Sierra Leona"},iso2:"SL",iso3:"SLE"},{capital:"City of San Marino",continent:"EU",currency:["EUR"],languages:["it"],native:"San Marino",phone:[378],names:{en:"San Marino",pt:"San Marino",es:"San Marino"},iso2:"SM",iso3:"SMR"},{capital:"Dakar",continent:"AF",currency:["XOF"],languages:["fr"],native:"S\xE9n\xE9gal",phone:[221],names:{en:"Senegal",pt:"Senegal",es:"Senegal"},iso2:"SN",iso3:"SEN"},{capital:"Mogadishu",continent:"AF",currency:["SOS"],languages:["so","ar"],native:"Soomaaliya",phone:[252],names:{en:"Somalia",pt:"Som\xE1lia",es:"Somalia"},iso2:"SO",iso3:"SOM"},{capital:"Paramaribo",continent:"AM",currency:["SRD"],languages:["nl"],native:"Suriname",phone:[597],names:{en:"Suriname",pt:"Suriname",es:"Surinam"},iso2:"SR",iso3:"SUR"},{capital:"Juba",continent:"AF",currency:["SSP"],languages:["en"],native:"South Sudan",phone:[211],names:{en:"South Sudan",pt:"Sud\xE3o do Sul",es:"Sud\xE1n del Sur"},iso2:"SS",iso3:"SSD"},{capital:"S\xE3o Tom\xE9",continent:"AF",currency:["STN"],languages:["pt"],native:"S\xE3o Tom\xE9 e Pr\xEDncipe",phone:[239],names:{en:"Sao Tome and Principe",pt:"S\xE3o Tom\xE9 e Pr\xEDncipe",es:"Santo Tom\xE9 y Pr\xEDncipe"},iso2:"ST",iso3:"STP"},{capital:"San Salvador",continent:"AM",currency:["SVC","USD"],languages:["es"],native:"El Salvador",phone:[503],names:{en:"El Salvador",pt:"El Salvador",es:"El Salvador"},iso2:"SV",iso3:"SLV"},{capital:"Philipsburg",continent:"AM",currency:["ANG"],languages:["nl","en"],native:"Sint Maarten",phone:[1721],names:{en:"Sint Maarten (Dutch part)",pt:"S\xE3o Martinho",es:"San Mart\xEDn"},iso2:"SX",iso3:"SXM"},{capital:"Damascus",continent:"AS",currency:["SYP"],languages:["ar"],native:"\u0633\u0648\u0631\u064A\u0627",phone:[963],names:{en:"Syrian Arab Republic",pt:"S\xEDria",es:"Siria"},iso2:"SY",iso3:"SYR"},{capital:"Lobamba",continent:"AF",currency:["SZL"],languages:["en","ss"],native:"Eswatini",phone:[268],names:{en:"Eswatini",pt:"Essuat\xEDni",es:"Suazilandia"},iso2:"SZ",iso3:"SWZ"},{capital:"Cockburn Town",continent:"AM",currency:["USD"],languages:["en"],native:"Turks and Caicos Islands",phone:[1649],names:{en:"Turks and Caicos Islands",pt:"Turcas e Caicos",es:"Islas Turcas y Caicos"},iso2:"TC",iso3:"TCA"},{capital:"N'Djamena",continent:"AF",currency:["XAF"],languages:["fr","ar"],native:"Tchad",phone:[235],names:{en:"Chad",pt:"Chade",es:"Chad"},iso2:"TD",iso3:"TCD"},{capital:"Port-aux-Fran\xE7ais",continent:"AN",currency:["EUR"],languages:["fr"],native:"Territoire des Terres australes et antarctiques fr",phone:[262],names:{en:"French Southern Territories",pt:"Terras Austrais e Ant\xE1rticas Francesas",es:"Tierras Australes y Ant\xE1rticas Francesas"},iso2:"TF",iso3:"ATF"},{capital:"Lom\xE9",continent:"AF",currency:["XOF"],languages:["fr"],native:"Togo",phone:[228],names:{en:"Togo",pt:"Togo",es:"Togo"},iso2:"TG",iso3:"TGO"},{capital:"Bangkok",continent:"AS",currency:["THB"],languages:["th"],native:"\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22",phone:[66],names:{en:"Thailand",pt:"Tail\xE2ndia",es:"Tailandia"},iso2:"TH",iso3:"THA"},{capital:"Dushanbe",continent:"AS",currency:["TJS"],languages:["tg","ru"],native:"\u0422\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D",phone:[992],names:{en:"Tajikistan",pt:"Tajiquist\xE3o",es:"Tayikist\xE1n"},iso2:"TJ",iso3:"TJK"},{capital:"Fakaofo",continent:"OC",currency:["NZD"],languages:["en"],native:"Tokelau",phone:[690],names:{en:"Tokelau",pt:"Toquelau",es:"Tokelau"},iso2:"TK",iso3:"TKL"},{capital:"Dili",continent:"OC",currency:["USD"],languages:["pt"],native:"Timor-Leste",phone:[670],names:{en:"Timor-Leste",pt:"Timor-Leste",es:"Timor Oriental"},iso2:"TL",iso3:"TLS"},{capital:"Ashgabat",continent:"AS",currency:["TMT"],languages:["tk","ru"],native:"T\xFCrkmenistan",phone:[993],names:{en:"Turkmenistan",pt:"Turcomenist\xE3o",es:"Turkmenist\xE1n"},iso2:"TM",iso3:"TKM"},{capital:"Tunis",continent:"AF",currency:["TND"],languages:["ar"],native:"\u062A\u0648\u0646\u0633",ph
1one:[216],names:{en:"Tunisia",pt:"Tun\xEDsia",es:"T\xFAnez"},iso2:"TN",iso3:"TUN"},{capital:"Nuku'alofa",continent:"OC",currency:["TOP"],languages:["en","to"],native:"Tonga",phone:[676],names:{en:"Tonga",pt:"Tonga",es:"Tonga"},iso2:"TO",iso3:"TON"},{capital:"Ankara",continent:"AS",currency:["TRY"],languages:["tr"],native:"T\xFCrkiye",phone:[90],names:{en:"T\xFCrkiye",pt:"Turquia",es:"Turqu\xEDa"},iso2:"TR",iso3:"TUR"},{capital:"Port of Spain",continent:"AM",currency:["TTD"],languages:["en"],native:"Trinidad and Tobago",phone:[1868],names:{en:"Trinidad and Tobago",pt:"Trinidad e Tobago",es:"Trinidad y Tobago"},iso2:"TT",iso3:"TTO"},{capital:"Funafuti",continent:"OC",currency:["AUD"],languages:["en"],native:"Tuvalu",phone:[688],names:{en:"Tuvalu",pt:"Tuvalu",es:"Tuvalu"},iso2:"TV",iso3:"TUV"},{capital:"Taipei",continent:"AS",currency:["TWD"],languages:["zh"],native:"\u81FA\u7063",phone:[886],names:{en:"Taiwan, Province of China",pt:"Taiwan",es:"Taiw\xE1n (Rep\xFAblica de China)"},iso2:"TW",iso3:"TWN"},{capital:"Dodoma",continent:"AF",currency:["TZS"],languages:["sw","en"],native:"Tanzania",phone:[255],names:{en:"Tanzania, United Republic of",pt:"Tanz\xE2nia",es:"Tanzania"},iso2:"TZ",iso3:"TZA"},{capital:"Kyiv",continent:"EU",currency:["UAH"],languages:["uk"],native:"\u0423\u043A\u0440\u0430\u0457\u043D\u0430",phone:[380],names:{en:"Ukraine",pt:"Ucr\xE2nia",es:"Ucrania"},iso2:"UA",iso3:"UKR"},{capital:"Kampala",continent:"AF",currency:["UGX"],languages:["en","sw"],native:"Uganda",phone:[256],names:{en:"Uganda",pt:"Uganda",es:"Uganda"},iso2:"UG",iso3:"UGA"},{capital:"",continent:"OC",currency:["USD"],languages:["en"],native:"United States Minor Outlying Islands",phone:[1],names:{en:"United States Minor Outlying Islands",pt:"Ilhas Menores Distantes dos Estados Unidos",es:"Islas Ultramarinas Menores de los Estados Unidos"},iso2:"UM",iso3:"UMI"},{capital:"Washington D.C.",continent:"AM",currency:["USD","USN","USS"],languages:["en"],native:"United States",phone:[1],names:{en:"United States of America",pt:"Estados Unidos",es:"Estados Unidos"},iso2:"US",iso3:"USA"},{capital:"Montevideo",continent:"AM",currency:["UYI","UYU"],languages:["es"],native:"Uruguay",phone:[598],names:{en:"Uruguay",pt:"Uruguai",es:"Uruguay"},iso2:"UY",iso3:"URY"},{capital:"Tashkent",continent:"AS",currency:["UZS"],languages:["uz","ru"],native:"O'zbekiston",phone:[998],names:{en:"Uzbekistan",pt:"Uzbequist\xE3o",es:"Uzbekist\xE1n"},iso2:"UZ",iso3:"UZB"},{capital:"Vatican City",continent:"EU",currency:["EUR"],languages:["it","la"],native:"Vaticano",phone:[379],names:{en:"Holy See",pt:"Vaticano",es:"Vaticano, Ciudad del"},iso2:"VA",iso3:"VAT"},{capital:"Kingstown",continent:"AM",currency:["XCD"],languages:["en"],native:"Saint Vincent and the Grenadines",phone:[1784],names:{en:"Saint Vincent and the Grenadines",pt:"S\xE3o Vicente e Granadinas",es:"San Vicente y las Granadinas"},iso2:"VC",iso3:"VCT"},{capital:"Caracas",continent:"AM",currency:["VES"],languages:["es"],native:"Venezuela",phone:[58],names:{en:"Venezuela, Bolivarian Republic of",pt:"Venezuela",es:"Venezuela"},iso2:"VE",iso3:"VEN"},{capital:"Road Town",continent:"AM",currency:["USD"],languages:["en"],native:"British Virgin Islands",phone:[1284],names:{en:"Virgin Islands (British)",pt:"Ilhas Virgens Brit\xE2nicas",es:"Islas V\xEDrgenes Brit\xE1nicas"},iso2:"VG",iso3:"VGB"},{capital:"Charlotte Amalie",continent:"AM",currency:["USD"],languages:["en"],native:"United States Virgin Islands",phone:[1340],names:{en:"Virgin Islands (U.S.)",pt:"Ilhas Virgens Americanas",es:"Islas V\xEDrgenes de los Estados Unidos"},iso2:"VI",iso3:"VIR"},{capital:"Hanoi",continent:"AS",currency:["VND"],languages:["vi"],native:"Vi\u1EC7t Nam",phone:[84],names:{en:"Viet Nam",pt:"Vietname",es:"Vietnam"},iso2:"VN",iso3:"VNM"},{capital:"Port Vila",continent:"OC",currency:["VUV"],languages:["bi","en","fr"],native:"Vanuatu",phone:[678],names:{en:"Vanuatu",pt:"Vanuatu",es:"Vanuatu"},iso2:"VU",iso3:"VUT"},{capital:"Mata-Utu",continent:"OC",currency:["XPF"],languages:["fr"],native:"Wallis et Futuna",phone:[681],names:{en:"Wallis and Futuna",pt:"Wallis e Futuna",es:"Wallis y Futuna"},iso2:"WF",iso3:"WLF"},{capital:"Apia",continent:"OC",currency:["WST"],languages:["sm","en"],native:"Samoa",phone:[685],names:{en:"Samoa",pt:"Samoa",es:"Samoa"},iso2:"WS",iso3:"WSM"},{capital:"Pristina",continent:"EU",currency:["EUR"],languages:["sq","sr"],native:"Republika e Kosov\xEBs",phone:[377,381,383,386],names:{en:"Kosovo",pt:"Kosovo",es:"Kosovo"},iso2:"XK",iso3:"XKX"},{capital:"Sana'a",continent:"AS",currency:["YER"],languages:["ar"],native:"\u0627\u0644\u064A\u064E\u0645\u064E\u0646",phone:[967],names:{en:"Yemen",pt:"I\xEAmen",es:"Yemen"},iso2:"YE",iso3:"YEM"},{capital:"Mamoudzou",continent:"AF",currency:["EUR"],languages:["fr"],native:"Mayotte",phone:[262],names:{en:"Mayotte",pt:"Maiote",es:"Mayotte"},iso2:"YT",iso3:"MYT"},{capital:"Pretoria",continent:"AF",currency:["ZAR"],languages:["af","en","nr","st","ss","tn","ts","ve","xh","zu"],native:"South Africa",phone:[27],names:{en:"South Africa",pt:"\xC1frica do Sul",es:"Sud\xE1frica"},iso2:"ZA",iso3:"ZAF"},{capital:"Lusaka",continent:"AF",currency:["ZMW"],languages:["en"],native:"Zambia",phone:[260],names:{en:"Zambia",pt:"Z\xE2mbia",es:"Zambia"},iso2:"ZM",iso3:"ZMB"},{capital:"Harare",continent:"AF",currency:["USD","ZAR","BWP","GBP","AUD","CNY","INR","JPY"],languages:["en","sn","nd"],native:"Zimbabwe",phone:[263],names:{en:"Zimbabwe",pt:"Zimb\xE1bue",es:"Zimbabue"},iso2:"ZW",iso3:"ZWE"}],mr=Cp,bn=class{constructor(r){r&&(this.capital=r.capital,this.continent=r.continent,this.currency=r.currency,this.languages=r.languages,this.names=r.names,this.native=r.native,this.phone=r.phone,this.iso2=r.iso2,this.iso3=r.iso3)}getName(r){return this.names[r]}};function xc(i){var r;return(r=mr.find(t=>t.phone.some(e=>e===i)))==null?void 0:r.iso2}function Pc(i){let r=mr.find(t=>[t.names.en,t.names.pt,t.names.es].includes(i));return r?new bn(r):null}function to(){return mr.map(i=>new bn(i)).sort((i,r)=>i.names.en.localeCompare(r.names.en))}function xp(i,r){i&1&&(s(0,"div",27)(1,"span"),p(2),c(3,"translate"),l()()),i&2&&(n(2),f(" ",u(3,1,"components.dumbs.modalClientAddress.info")," "))}function Pp(i,r){if(i&1&&(s(0,"mat-option",28),p(1),l()),i&2){let t=r.$implicit;d("value",t==null?null:t.phone),n(),f(" ",t==null||t.names==null?null:t.names.pt," ")}}function Sp(i,r){i&1&&(s(0,"mat-icon",29),h(1,"mat-spinner",30),l())}function yp(i,r){if(i&1&&(s(0,"mat-option",28),p(1),l()),i&2){let t=r.$implicit;d("value",t==null?null:t.codigo),n(),f(" ",t==null?null:t.nome," ")}}function Mp(i,r){if(i&1&&(s(0,"mat-option",28),p(1),l()),i&2){let t=r.$implicit;d("value",t==null?null:t.codigo),n(),f(" ",t.nome," ")}}function Dp(i,r){if(i&1&&(s(0,"div",21)(1,"mat-form-field",9)(2,"mat-label"),p(3),c(4,"translate"),l(),s(5,"mat-select",31),C(6,Mp,2,2,"mat-option",11),l()()()),i&2){let t=g();n(3),f(" ",u(4,2,"components.dumbs.modalClientAddress.inputEstado")," "),n(3),d("ngForOf",t.estados().estados)}}var yc=(()=>
1{let r=class r{constructor(){this.fb=I(za),this.addressService=I(rl),this.dialog=I(re),this.dialogRef=I(Y),this.googleAnalyticsService=I(Q),this.data=I(ne),this.countries=ve([]),this.estados=ve([]),this.logradouros=Oe(this.addressService.obterLogradouros(),{initialValue:[]}),this.loadingAddress=ve(!1),this.loadingCEP=ve(!1),this.isBrazil=ve(!1),this.haveState=ve(!0),this.hasCPF=ve(this.data?.dadosReserva?.usuarioReserva?.tipoDocumento==="1"),this.form=this.fb.group({paisCodigo:new _e("",j.required),cep:[{value:"",disabled:!0},[j.required,j.minLength(8)]],logradouro:[{value:"",disabled:!0},j.required],endereco:[{value:"",disabled:!0},j.required],numero:[{value:"",disabled:!0},j.required],complemento:[{value:"",disabled:!0}],bairro:[{value:"",disabled:!0},j.required],cidade:[{value:"",disabled:!0},j.required],estado:[{value:"",disabled:!0},j.required]})}get fields(){return this.form.controls}ngOnInit(){this.emitCompleteAddressEvent("impression_modal"),this.initializeCountries()}onChangeCountry(e){let a=sr(e?.value[0]?.toString());this.isBrazil.set(a==="0055"),this.getStates(a),this.toggleAddressFields(!1),this.fields.cep?.setValue(""),this.form.reset({paisCodigo:e?.value}),this.isBrazil()?this.fields.cep?.setValidators([j.required,j.minLength(8)]):this.fields.cep?.clearValidators(),this.fields.cep?.updateValueAndValidity()}searchCEP(){this.fields.cep.invalid||(this.loadingCEP.set(!0),this.toggleAddressFields(!0),this.addressService.obterEnderecoPorCep(this.fields.cep.value).pipe(He(()=>{this.loadingCEP.set(!1),this.toggleAddressFields(!1)})).subscribe(e=>{this.setDataAddress(e)}))}toggleAddressFields(e){let a=e?"disable":"enable";this.fields.logradouro[a](),this.fields.endereco[a](),this.fields.bairro[a](),this.fields.cidade[a](),this.fields.estado[a](),this.fields.numero[a](),this.fields.complemento[a](),this.fields.cep[a]()}setDataAddress(e){this.form.patchValue({logradouro:e?.logradouro,endereco:e?.endereco,bairro:e?.bairro,cidade:e?.cidade,estado:e?.uf})}initializeCountries(){let e=to().filter(a=>this.hasCPF()?!0:a?.phone?.toString()!=="55");this.countries.set(e),this.hasCPF()&&this.selectBrazilByDefault(e)}selectBrazilByDefault(e){let a=e.find(o=>o?.phone?.toString()==="55");a&&(this.fields.paisCodigo?.setValue(a.phone),this.isBrazil.set(!0),this.get
1States("0055"),this.toggleAddressFields(!1))}getStates(e){this.addressService.obterEstados(e).pipe(w(1),vo(()=>(this.haveState.set(!1),this.fields.estado.setValue("S/E"),[]))).subscribe(a=>{this.fields.estado.setValue(""),this.estados.set(a),this.haveState.set(!0)})}onClose(e=!1){e||this.emitCompleteAddressEvent("clicked_close"),this.dialogRef.close(e)}onSubmit(){this.form.invalid||(this.emitCompleteAddressEvent("clicked_save"),this.openModalMFA())}openModalMFA(){let e={endereco:X($({},this.form.value),{paisCodigo:sr(this.fields.paisCodigo?.value[0]?.toString())}),telefoneFixo:{}};this.dialog.open(Ol,{maxWidth:"80rem",maxHeight:"60rem",panelClass:"matDialog100Percent",data:{celularMascarado:this.data?.cliente?.celular?.numero,emailMascarado:this.data?.cliente?.email,ddi:this.data?.cliente?.celular?.ddi,alterarContato:e,userId:this.data?.cliente?.clientePessoaFisicaId,api:"completarEnderecoCliente"}}).afterClosed().pipe(w(1),ba(o=>o)).subscribe(()=>{this.onClose(!0)})}emitCompleteAddressEvent(e){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"complete_address",action:e})}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-modal-client-address"]],decls:70,vars:45,consts:[["mat-dialog-title",""],[1,"mca__title"],[1,"mca__subtitle"],["class","mca__info",4,"ngIf"],["mat-icon-button","","mat-dialog-close","",1,"mca__close",3,"click"],["mat-dialog-content",""],[1,"mca__form",3,"ngSubmit","formGroup"],[1,"row"],[3,"ngClass"],["appearance","fill"],["formControlName","paisCodigo",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"col-md-4",3,"hidden"],["matInput","","mask","00000-000","formControlName","cep",3,"input"],["matSuffix","",4,"ngIf"],["formControlName","logradouro"],[1,"col-md-8"],["matInput","","formControlName","endereco"],[1,"col-md-4"],["matInput","","formControlName","numero"],["matInput","","formControlName","complemento"],[1,"col-md-6"],["matInput","","formControlName","bairro"],["matInput","","formControlName","cidade"],["class","col-md-6",4,"ngIf"],["mat-dialog-actions",""],[3,"click","fullwidth","disabled"],[1,"mca__info"],[3,"value"],["matSuffix",""],["diameter","20"],["formControlName","estado"]],template:function(a,o){if(a&1&&(s(0,"div",0)(1,"strong",1),p(2),c(3,"translate"),l(),s(4,"span",2),p(5),c(6,"translate"),l(),C(7,xp,4,3,"div",3),s(8,"button",4),b("click",function(){return o.onClose()}),s(9,"mat-icon"),p(10,"close"),l()()(),s(11,"div",5)(12,"form",6),b("ngSubmit",function(){return o.onSubmit()}),s(13,"div",7)(14,"div",8)(15,"mat-form-field",9)(16,"mat-label"),p(17),c(18,"translate"),l(),s(19,"mat-select",10),b("selectionChange",function(_){return o.onChangeCountry(_)}),C(20,Pp,2,2,"mat-option",11),l()()(),s(21,"div",12)(22,"mat-form-field",9)(23,"mat-label"),p(24),c(25,"translate"),l(),s(26,"input",13),b("input",function(){return o.searchCEP()}),l(),C(27,Sp,2,0,"mat-icon",14),l()(),s(28,"div",8)(29,"mat-form-field",9)(30,"mat-label"),p(31),c(32,"translate"),l(),s(33,"mat-select",15),C(34,yp,2,2,"mat-option",11),l()()(),s(35,"div",16)(36,"mat-form-field",9)(37,"mat-label"),p(38),c(39,"translate"),l(),h(40,"input",17),l()(),s(41,"div",18)(42,"mat-form-field",9)(43,"mat-label"),p(44),c(45,"translate"),l(),h(46,"input",19),l()(),s(47,"div",8)(48,"mat-form-field",9)(49,"mat-label"),p(50),c(51,"translate"),l(),h(52,"input",20),l()(),s(53,"div",21)(54,"mat-form-field",9)(55,"mat-label"),p(56),c(57,"translate"),l(),h(58,"input",22),l()(),s(59,"div",21)(60,"mat-form-field",9)(61,"mat-label"),p(62),c(63,"translate"),l(),h(64,"input",23),l()(),C(65,Dp,7,4,"div",24),l()()(),s(66,"div",25)(67,"ds-new-button",26),b("click",function(){return o.onSubmit()}),p(68),c(69,"translate"),l()()),a&2){let m;n(2),f(" ",u(3,23,"components.dumbs.modalClientAddress.title")," "),n(3),f(" ",u(6,25,"components.dumbs.modalClientAddress.subtitle")," "),n(2),d("ngIf",!o.hasCPF()),n(5),d("formGroup",o.form),n(2),d("ngClass",o.isBrazil()?"col-md-4":"col-md-6"),n(3),f(" ",u(18,27,"components.dumbs.modalClientAddress.inputPais")," "),n(3),d("ngForOf",o.countries()),n(),d("hidden",!o.isBrazil()),n(3),f(" ",u(25,29,"components.dumbs.modalClientAddress.inputCep")," "),n(3),d("ngIf",o.loadingCEP()),n(),d("ngClass",o.isBrazil()?"col-md-4":"col-md-6"),n(3),f(" ",u(32,31,"components.dumbs.modalClientAddress.inputLogradouro")," "),n(3),d("ngForOf",(m=o.logradouros())==null?null:m.tiposLogradouro),n(4),f(" ",u(39,33,"components.dumbs.modalClientAddress.inputEndereco")," "),n(6),f(" ",u(45,35,"components.dumbs.modalClientAddress.inputNumero")," "),n(3),d("ngClass",o.haveState()?"col-md-6":"col-md-12"),n(3),f(" ",u(51,37,"components.dumbs.modalClientAddress.inputComplemento")," "),n(6),f(" ",u(57,39,"components.dumbs.modalClientAddress.inputBairro")," "),n(6),f(" ",u(63,41,"components.dumbs.modalClientAddress.inputCidade")," "),n(3),d("ngIf",o.haveState()),n(2),d("fullwidth",!0)("disabled",o.form.invali
1d||o.loadingCEP()),n(),f(" ",u(69,43,"components.dumbs.modalClientAddress.button")," ")}},dependencies:[U,de,ae,N,be,ct,ei,Ce,lt,dt,Mt,ze,Ki,ls,cs,Ua,ai,Xs,xi,Bo,Ro,ps,ti,Fo,tn,yl,en,Le,Ft,mt,pt,Qa,oe,J,T],styles:[".mca__title[_ngcontent-%COMP%], .mca__subtitle[_ngcontent-%COMP%]{color:#003827}.mca__title[_ngcontent-%COMP%]{font-weight:700}.mca__info[_ngcontent-%COMP%]{background-color:#d8effd;border-radius:4px;padding:.8rem;font-size:1.4rem;margin-top:2.4rem;line-height:1.4}.mca__close[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px}.mca__form[_ngcontent-%COMP%]{margin-top:2.4rem}ds-new-button[_ngcontent-%COMP%]{width:100%}"],changeDetection:0});let i=r;return i})();var ur=(function(i){return i.FAST_COM_ADICIONAL_BALCAO="FAST_COM_ADICIONAL_BALCAO",i})(ur||{});var fr={duration:5e3,horizontalPosition:"right",verticalPosition:"top"},Mc=(()=>{let r=class r extends Ya{constructor(e,a,o){super(e),this.httpClient=e,this._snackbarService=a,this.translateService=o,this.numeroTentativasMax=ut.production?6:100,this.numeroTentativa=0}subscribeTopicPrePagamentoAprovado(e=null){return ji(this,null,function*(){this.TraducaoDeNotificacoes();let a={title:this.pagamentoSolicitadoTitle,subtitle:this.pagamentoSolicitadoSubtitle};this._snackbarService.localizaSnackbar(a,fr),this.processarRequisicaoPrePagamento(e)})}processarRequisicaoPrePagamento(e=null){this.get(["MessageHub","link"],{localizador:e}).subscribe(a=>{if(a){let o=fr;o.duration=3e4;let m={title:this.pagamentoGeradoTitle,subtitle:this.pagamentoGeradoSubtitle,linkPlaceholder:this.pagamentoGeradoLinkPlaceholder,redirectUrl:a,externalLink:!0}
1;this._snackbarService.localizaSnackbar(m,o)}else this.numeroTentativa!=this.numeroTentativasMax?(this.numeroTentativa++,setTimeout(()=>{this.processarRequisicaoPrePagamento(e)},5e3)):this.snackbarError()},a=>{this.snackbarError()})}snackbarError(){let e={title:this.linkNaoGeradoTitle,subtitle:this.linkNaoGeradoSubtitle};this._snackbarService.localizaSnackbar(e,fr)}TraducaoDeNotificacoes(){this.translateService.get("notificarPrePagamento").pipe(w(1)).subscribe(e=>{this.pagamentoGeradoTitle=e.pagamentoGerado.title,this.pagamentoGeradoSubtitle=e.pagamentoGerado.subtitle,this.pagamentoGeradoLinkPlaceholder=e.btn,this.pagamentoSolicitadoTitle=e.pagamentoSolicitado.title,this.pagamentoSolicitadoSubtitle=e.pagamentoSolicitado.subtitle,this.linkNaoGeradoTitle=e.linkNaoGerado.title,this.linkNaoGeradoSubtitle=e.linkNaoGerado.subtitle})}};r.\u0275fac=function(a){return new(a||r)(ye(Do),ye(el),ye(G))},r.\u0275prov=$e({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();var xn=(()=>{let r=class r{constructor(e,a){this.clipboard=e,this.translateService=a}phoneClick(){let e=this.translateService.instant("dotersCancellationPolicy.attentionDoters.link");if(window.innerWidth<=768||/Android|iPhone/i.test(navigator.userAgent)){window.open(`tel:${e}`,"_self");return}this.clipboard.copy(e)}};r.\u0275fac=function(a){return new(a||r)(v(bl),v(G))},r.\u0275cmp=M({type:r,selectors:[["app-doters-cancellation-policy"]],decls:55,vars:54,consts:[[1,"doters-cancellation-policy"],[1,"doters-cancellation-policy__title"],[1,"doters-cancellation-policy__item"],[3,"click"]],template:function(a,o){a&1&&(Je(0,"div",0)(1,"h4",1),p(2),c(3,"translate"),ui(),Je(4,"p",2),p(5),c(6,"translate"),Je(7,"span"),p(8),c(9,"translate"),ui()(),Je(10,"p",2),p(11),c(12,"translate"),Je(13,"span"),p(14),c(15,"translate"),ui()(),Je(16,"p",2),p(17),c(18,"translate"),Je(19,"span"),p(20),c(21,"translate"),ui()(),Je(22,"p",2),p(23),c(24,"translate"),Je(25,"span"),p(26),c(27,"translate"),ui()(),Je(28,"p",2),p(29),c(30,"translate"),Je(31,"span"),p(32),c(33,"translate"),ui()(),Je(34,"p",2),p(35),c(36,"translate"),Je(37,"span"),p(38),c(39,"translate"),ui()(),Je(40,"p",2),p(41),c(42,"translate"),Je(43,"span"),p(44),c(45,"translate"),ui()(),Je(46,"p",2),p(47),c(48,"translate"),Je(49,"span"),p(50),c(51,"translate"),Je(52,"a",3),Fr("click",function(){return o.phoneClick()}),p(53),c(54,"translate"),ui()()()()),a&2&&(n(2),f(" ",u(3,18,"dotersCancellationPolicy.title")," "),n(3),f(" ",u(6,20,"dotersCancellationPolicy.freeCancellation.title"),": "),n(3),f(" ",u(9,22,"dotersCancellationPolicy.freeCancellation.description")," "),n(3),f(" ",u(12,24,"dotersCancellationPolicy.cancellationLessThan24Hours.title"),": "),n(3),f(" ",u(15,26,"dotersCancellationPolicy.cancellationLessThan24Hours.description")," "),n(3),f(" ",u(18,28,"dotersCancellationPolicy.noShow.title"),": "),n(3),f(" ",u(21,30,"dotersCancellationPolicy.noShow.description")," "),n(3),f(" ",u(24,32,"dotersCancellationPolicy.counterPayment.title"),": "),n(3),f(" ",u(27,34,"dotersCancellationPolicy.counterPayment.description")," "),n(3),f(" ",u(30,36,"dotersCancellationPolicy.nonEditableReservation.title"),": "),n(3),f(" ",u(33,38,"dotersCancellationPolicy.nonEditableReservation.description")," "),n(3),f(" ",u(36,40,"dotersCancellationPolicy.earlyReturnVehicle.title"),": "),n(3),f(" ",u(39,42,"dotersCancellationPolicy.earlyReturnVehicle.description")," "),n(3),f(" ",u(42,44,"dotersCancellationPolicy.refusedCounter.title"),": "),n(3),f(" ",u(45,46,"dotersCancellationPolicy.refusedCounter.description")," "),n(3),f(" ",u(48,48,"dotersCancellationPolicy.attentionDoters.title"),": "),n(3),f(" ",u(51,50,"dotersCancellationPolicy.attentionDoters.description"),": "),n(3),f(" ",u(54,52,"dotersCancellationPolicy.attentionDoters.phone")," "))},dependencies:[A,T],styles:[".doters-cancellation-policy__title[_ngcontent-%COMP%]{margin-bottom:var(--doters-cancellation-policy-title-margin-bottom, 1rem);color:var(--doters-cancellation-policy-title-color, #01602a);font-size:var(--doters-cancellation-policy-title-font-size, 1.8rem);line-height:1.5}.doters-cancellation-policy__item[_ngcontent-%COMP%]{margin-bottom:0;color:#4a4a4a;font-size:1.4rem;font-weight:700;line-height:1.5}.doters-cancellation-policy__item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.doters-cancellation-policy__item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#4a4a4a;text-decoration:none;cursor:pointer}"],changeDetection:0});let i=r;return i})();function Ip(i,r){if(i&1&&(V(0),s(1,"p",21),p(2),c(3,"titlecase"),l(),s(4,"p"),p(5),c(6,"titlecase"),l(),z()),i&2){let t=g().$implicit;n(2),f(" ",u(3,3,t.logadouro)," "),n(3),q("",u(6,5,t.cidade)," - ",t.uf)}}function Tp(i,r){if(i&1&&(V(0),C(1,Ip,7,7,"ng-container",20),z()),i&2){let t=r.$implicit;n(),d("ngIf",t.tipo==="Retirada")}}function Ap(i,r){if(i&1&&(V(0),s(1,"p",21),p(2),c(3,"titlecase"),l(),s(4,"p"),p(5),c(6,"titlecase"),l(),z()),i&2){let t=g().$implicit;n(2),f(" ",u(3,3,t.logadouro)," "),n(3),q("",u(6,5,t.cidade)," - ",t.uf)}}function Ep(i,r){if(i&1&&(V(0),C(1,Ap,7,7,"ng-container",20),z()),i&2){let t=r.$implicit;n(),d("ngIf",t.tipo==="Devolucao")}}var Dc=(()=>
1{let r=class r{constructor(e){this.translateService=e}ngOnInit(){this.transformarDataHora("retirada"),this.transformarDataHora("devolucao"),this.getNomeCarroPadrao()}transformarDataHora(e){let a=e==="retirada"?this.dadosCompra?.retirada:this.dadosCompra?.devolucao,o=this.dadosCompra?.cultura;if(o){let m=new Date(a?.data),_=m.getDate()<10?`0${m.getDate()}`:m.getDate(),x=new Intl.DateTimeFormat(o,{month:"long"}).format(m),O=new Intl.DateTimeFormat(o,{year:"numeric"}).format(m),K=(a?.data.toString().split("T"))[1].substr(0,5);this.translateService.get("retiradaDevolucao.horarios.dataHora",{dia:_,mes:x,ano:O,hora:K}).pipe(w(1)).subscribe(me=>{e==="retirada"?this.dataHoraRetirada=me:this.dataHoraDevolucao=me})}}getNomeCarroPadrao(){this.translateService.get("reserva.confirmacaoDaReserva.resumoDaCompra.ouSimilar").pipe(w(1)).subscribe(e=>{let a=this.dadosCompra?.grupoSelecionado.veiculos?.filter(x=>x.padraoGrupo)||[],o=this.dadosCompra?.grupoSelecionado.veiculos?.filter(x=>!x.padraoGrupo)||[],m=[...a,...o].filter(x=>!!x).map(x=>x.nome).slice(0,3),_=this.dadosCompra?.grupoSelecionado?.veiculos?.length===1?"":e;this.veiculosDoGrupo=m.join(", ")+_})}};r.\u0275fac=function(a){return new(a||r)(v(G))},r.\u0275cmp=M({type:r,selectors:[["app-resumo-da-compra"]],inputs:{dadosCompra:"dadosCompra"},standalone:!1,decls:56,vars:33,consts:[[1,"resumo-da-compra"],[1,"resumo-da-compra-start"],[1,"resumo-da-compra-start__titulo"],[1,"resumo-da-compra-start__codigo"],[1,"resumo-da-compra-divisor"],[1,"resumo-da-compra__end"],[1,"boxes-info"],[1,"box-info"],[1,"box-info__titulo"],["name","arrow-right",1,"icone"],[1,"box-info__subtitulo"],[1,"box-info-endereco"],["name","map-pin",1,"icone"],[1,"box-info-endereco-textos"],[1,"box-info-endereco-textos__nome-agencia"],[4,"ngFor","ngForOf"],["name","arrow-left",1,"icone"],["name","truck",1,"icone"],[1,"box-info__modelos-carros"],[1,"box-info__texto-informativo"],[4,"ngIf"],[1,"box-info-endereco-textos__endereco-agencia"]],template:function(a,o){a&1&&(s(0,"div",0)(1,"div",1)(2,"p",2),p(3),c(4,"translate"),l(),s(5,"p",3),p(6),c(7,"translate"),l()(),s(8,"div",4),h(9,"div"),l(),s(10,"div",5)(11,"ul",6)(12,"li",7)(13,"div",8),h(14,"i-feather",9),s(15,"p"),p(16),c(17,"translate"),l()(),s(18,"p",10),p(19),l(),s(20,"div",11),h(21,"i-feather",12),s(22,"div",13)(23,"p",14),p(24),c(25,"titlecaseLocaliza"),l(),C(26,Tp,2,1,"ng-container",15),l()()(),s(27,"li",7)(28,"div",8),h(29,"i-feather",16),s(30,"p"),p(31),c(32,"translate"),l()(),s(33,"p",10),p(34),l(),s(35,"div",11),h(36,"i-feather",12),s(37,"div",13)(38,"p",14),p(39),c(40,"titlecaseLocaliza"),l(),C(41,Ep,2,1,"ng-container",15),l()()(),s(42,"li",7)(43,"div",8),h(44,"i-feather",17),s(45,"p"),p(46),c(47,"translate"),l()(),s(48,"p",10),p(49),c(50,"titlecaseLocaliza"),l(),s(51,"p",18),p(52),l(),s(53,"p",19),p(54),c(55,"translate"),l()()()()()),a&2&&(n(3),f(" ",u(4,15,"reserva.confirmacaoDaReserva.resumoDaCompra.codigoDaReserva")," "),n(3),f(" ",o.dadosCompra!=null&&o.dadosCompra.reservaSobConsulta?u(7,17,"reserva.confirmacaoDaReserva.resumoDaCompra.aguardadoConfirmacao"):o.dadosCompra==null?null:o.dadosCompra.codigoDaReserva," "),n(10),D(u(17,19,"reserva.confirmacaoDaReserva.resumoDaCompra.retirada")),n(3),D(o.dataHoraRetirada),n(5),f(" ",u(25,21,o.dadosCompra==null?null:o.dadosCompra.retirada.nomeFantasia)," "),n(2),d("ngForOf",o.dadosCompra==null?null:o.dadosCompra.retirada.enderecos),n(5),D(u(32,23,"reserva.confirmacaoDaReserva.resumoDaCompra.devolucao")),n(3),D(o.dataHoraDevolucao),n(5),f(" ",u(40,25,o.dadosCompra==null?null:o.dadosCompra.devolucao.nomeFantasia)," "),n(2),d("ngForOf",o.dadosCompra==null?null:o.dadosCompra.devolucao.enderecos),n(5),D(u(47,27,"reserva.confirmacaoDaReserva.resumoDaCompra.detalhesDoVeiculo")),n(3),q(" ",o.dadosCompra==null?null:o.dadosCompra.grupoSelecionado.codigoLocaliza," - ",u(50,29,o.dadosCompra==null?null:o.dadosCompra.grupoSelecionado.nome)," "),n(3),f(" ",o.veiculosDoGrupo," "),n(2),f(" ",u(55,31,"reserva.confirmacaoDaReserva.resumoDaCompra.informativo")," "))},dependencies:[ae,N,Bt,Ia,T,Ja],styles:['.resumo-da-compra[_ngcontent-%COMP%]{border-radius:.8rem;display:flex;filter:drop-shadow(0 0 1.2rem rgba(0,0,0,.12));flex-direction:column;overflow:hidden}@media(min-width:1200px){.resumo-da-compra[_ngcontent-%COMP%]{flex-direction:row}}.resumo-da-compra-start[_ngcontent-%COMP%]{background-color:#fff;padding:3.2rem 2.4rem 2.4rem;text-align:center}@media(min-width:1200px){.resumo-da-compra-start[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}}.resumo-da-compra-start__titulo[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.4rem;line-height:1.8rem;margin-bottom:.8rem}@media(min-width:1200px){.resumo-da-compra-start__titulo[_ngcontent-%COMP%]{margin-bottom:.4rem}}.resumo-da-compra-start__codigo[_ngcontent-%COMP%]{color:#01602a;font-size:3rem;font-weight:700;line-height:3.4rem;margin:0 auto;max-width:18rem}@media(min-width:1200px){.resumo-da-compra-start__codigo[_ngcontent-%COMP%]{font-size:2rem}}.resumo-da-compra-divisor[_ngcontent-%COMP%]{align-items:center;display:flex;height:3.2rem;justify-content:center;position:relative}@media(min-width:1200px){.resumo-da-compra-divisor[_ngcontent-%COMP%]{height:auto;width:3.2rem}}.resumo-da-compra-divisor[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-bottom:1px dashed #4a4a4a;height:.01rem;width:88%}@media(min-width:1200px){.resumo-da-compra-divisor[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-bottom:none;border-right:1px dashed #4a4a4a;height:56%;width:.01rem}}.resumo-da-compra-divisor[_ngcontent-%COMP%]:before, .resumo-da-compra-divisor[_ngcontent-%COMP%]:after{content:"";position:absolute;width:50%;height:100%;z-index:-1}@media(min-width:1200px){.resumo-da-compra-divisor[_ngcontent-%COMP%]:before, .resumo-da-compra-divisor[_ngcontent-%COMP%]:after{height:50%;width:100%}}.resumo-da-compra-divisor[_ngcontent-%COMP%]:before{background-image:radial-gradient(circle at 0% 50%,transparent 16px,#ffffff 0);left:0;top:0}@media(min-width:1200px){.resumo-da-compra-divisor[_ngcontent-%COMP%]:before{background-image:radial-gradient(circle at 50% 0%,transparent 16px,#ffffff 0)}}.resumo-da-compra-divisor[_ngcontent-%COMP%]:after{background-image:radial-gradient(circle at 100% 50%,transparent 16px,#ffffff 0);bottom:0;right:0}@media(min-width:1200px){.resumo-da-compra-divisor[_ngcontent-%COMP%]:after{background-image:radial-gradient(circle at 50% 100%,transparent 16px,#ffffff 0)}}.resumo-da-compra__end[_ngcontent-%COMP%]{background-color:#fff;flex:1;padding:3.2rem 2.4rem}.boxes-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4rem;list-style-type:none;padding:0}@media(min-width:992px){.boxes-info[_ngcontent-%COMP%]{flex-direction:row;gap:2.4rem}}.boxes-info[_ngcontent-%COMP%] .box-info[_ngcontent-%COMP%]{flex:1}.boxes-info[_ngcontent-%COMP%] .box-info__titulo[_ngcontent-%COMP%]{align-items:center;display:flex;gap:.8rem}.boxes-info[_ngcontent-%COMP%] .box-info__titulo[_ngcontent-%COMP%] .icone[_ngcontent-%COMP%]{color:#78de1f;height:1.8rem;width:1.8rem}.boxes-info[_ngcontent-%COMP%] .box-info__titulo[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#01602a;font-size:1.8rem;font-weight:700;line-height:2.4rem}.boxes-info[_ngcontent-%COMP%] .box-info__subtitulo[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.6rem;font-weight:700;line-height:1.9rem;margin:.8rem 0 1.6rem}.boxes-info[_ngcontent-%COMP%] .box-info-endereco[_ngcontent-%COMP%]{align-items:flex-start;display:flex;gap:.4rem}.boxes-info[_ngcontent-%COMP%] .box-info-endereco[_ngcontent-%COMP%] .icone[_ngcontent-%COMP%]{color:#01602a;height:1.8rem;width:1.8rem}.boxes-info[_ngcontent-%COMP%] .box-info-endereco-textos__nome-agencia[_ngcontent-%COMP%]{color:#01602a;font-size:1.4rem;font-weight:700;line-height:2rem}.boxes-info[_ngcontent-%COMP%] .box-info-endereco-textos__endereco-agencia[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.4rem;line-height:2rem;margin-top:.4rem}.boxes-info[_ngcontent-%COMP%] .box-info__modelos-carros[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.2rem;font-weight:700;line-height:1.6rem;margin-bottom:.8rem}.boxes-info[_ngcontent-%COMP%] .box-info__texto-informativo[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.2rem;line-height:1.6rem;max-width:31.2rem}']});let i=r;return i})();var Bp=i=>({"para-retirar-seu-carro--background":i});function Fp(i,r){if(i&1){let t=k();s(0,"div",3)(1,"loc-icon",7),b("click",function(){P(t);let a=g();return S(a.handleClickNavigateFaq())}),l(),s(2,"span")(3,"p"),p(4),c(5,"translate"),l(),s(6,"ds-link",8),c(
17,"translate"),p(8),c(9,"translate"),l()()()}i&2&&(n(),d("icon","qm_ico"),n(3),f(" ",u(5,4,"reserva.confirmacaoDaReserva.paraRetirarSeuCarro.paraMaisInformacoes")," "),n(2),d("href",u(7,6,"url.perguntasFrequentes.home")),n(2),f(" ",u(9,8,"reserva.confirmacaoDaReserva.paraRetirarSeuCarro.perguntasFrequentes")," "))}function Vp(i,r){if(i&1&&h(0,"ds-icon",16),i&2){let t=g(2).$implicit;$t("display",t.iconMaterial?"none":"block"),d("icon",t.icon)}}function zp(i,r){if(i&1&&(s(0,"span",17),p(1),l()),i&2){let t=g(2).$implicit;n(),D(t.icon)}}function Lp(i,r){i&1&&(s(0,"ul")(1,"li"),p(2),c(3,"translate"),l(),s(4,"li"),p(5),c(6,"translate"),l(),s(7,"li"),p(8),c(9,"translate"),l()()),i&2&&(n(2),f(" ",u(3,3,"reserva.confirmacaoDaReserva.paraRetirarSeuCarro.brasil.cartaoDeCredito.fast.lista.linha01")," "),n(3),f(" ",u(6,5,"reserva.confirmacaoDaReserva.paraRetirarSeuCarro.brasil.cartaoDeCredito.fast.lista.linha02")," "),n(3),f(" ",u(9,7,"reserva.confirmacaoDaReserva.paraRetirarSeuCarro.brasil.cartaoDeCredito.fast.lista.linha03")," "))}function Np(i,r){if(i&1&&(s(0,"li",10),C(1,Vp,1,3,"ds-icon",11),s(2,"mat-icon"),p(3),l(),C(4,zp,2,1,"span",12),s(5,"div")(6,"p",13),p(7),c(8,"translate"),l(),h(9,"p",14),c(10,"translate"),C(11,Lp,10,9,"ul",15),l()()),i&2){let t=g().$implicit,e=g();n(),d("ngIf",t.icon!=="airplane_ticket"),n(),$t("display",t.iconMaterial?"block":"none"),n(),f(" ",t.icon," "),n(),d("ngIf",t.icon==="airplane_ticket"),n(3),f(" ",u(8,8,t.title)," "),n(2),d("innerHTML",u(10,10,t.text),te),n(2),d("ngIf",t.listItensFast&&e.reservaFast)}}function Up(i,r){if(i&1&&(V(0),C(1,Np,12,12,"li",9),z()),i&2){let t=r.$implicit;n(),d("ngIf",t.show)}}function Gp(i,r){i&1&&(s(0,"p",18),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.confirmacaoDaReserva.paraRetirarSeuCarro.notaDocumentosColombia")," "))}var Oc=(()=>{let r=class r{constructor(e,a,o,m){this.translateService=e,this.googleAnalyticsService=a,this.router=o,this.webviewService=m,this.reservaFast=!1,this.CODIGO_COLOMBIA_CONST=Fe,this.listOfCountriesByDDI={"0055":"brasil.",Brasil:"brasil.","0598":"uruguai.",Uruguai:"uruguai.","0052":"mexico.",Mexico:"mexico."},this.isWebview=!1}ngOnInit(){this.isWebview=this.webviewService.isWebView();let e=this.listOfCountriesByDDI[this.codigoAgenciaRetirada]??"",a=this.reservaFast?"fast.":"padrao.";this.listOfTranslation=[{show:this.reservaFast,iconMaterial:!1,icon:"icon_cellphone",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}instalarApp.padrao.titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}instalarApp.padrao.texto`},{show:!0,iconMaterial:!1,icon:"icon_condutor_jovem_sm",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}idadeMinima.padrao.titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}idadeMinima.padrao.texto`},{show:!0,iconMaterial:!1,icon:"icon_driver_license",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cnh.${a}titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cnh.${a}texto`},{show:(this.codigoAgenciaRetirada===le||this.codigoAgenciaRetirada==="Brasil")&&!this.reservaFast&&this.tipoDocumento!=="1",iconMaterial:!1,icon:"airplane_ticket",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}documentoEstrangeiro.padrao.titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}documentoEstrangeiro.padrao.texto`},{show:!(this.isMonthly&&(this.codigoAgenciaRetirada===le||this.codigoAgenciaRetirada==="Brasil")),iconMaterial:!1,icon:"icon_credit_card",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cartaoDeCredito.${a}titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cartaoDeCredito.${a}texto`,listItensFast:{item01:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cartaoDeCredito.${a}lista.linha01`,item02:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cartaoDeCredito.${a}lista.linha02`,item03:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cartaoDeCredito.${a}lista.linha03`}},{show:this.isMonthly&&(this.codigoAgenciaRetirada===le||this.codigoAgenciaRetirada==="Brasil"),iconMaterial:!1,icon:"icon_credit_card",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cartaoDeCredito.pfam.${a}titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cartaoDeCredito.pfam.${a}texto`,listItensFast:{item01:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cartaoDeCredito.${a}lista.linha01`,item02:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cartaoDeCredito.${a}lista.linha02`,item03:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}cartaoDeCredito.${a}lista.linha03`}},{show:!0,iconMaterial:!1,icon:"icon_clock",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}horario.${a}titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}horario.${a}texto`},{show:this.isMonthly&&(this.codigoAgenciaRetirada===le||this.codigoAgenciaRetirada==="Brasil"),iconMaterial:!0,icon:"local_gas_station",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}franquiaQuilometragem.${a}titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}franquiaQuilometragem.${a}texto`},{show:this.reservaFast,iconMaterial:!1,icon:"icon_license_plate",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}somenteTitular.padrao.titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}somenteTitular.padrao.texto`},{show:(this.codigoAgenciaRetirada===le||this.codigoAgenciaRetirada==="Brasil")&&!this.reservaFast,iconMaterial:!1,icon:"icon_alert_triangle",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}taxasMunicipais.padrao.titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}taxasMunicipais.padrao.texto`},{show:this.codigoAgenciaRetirada===Fe||this.codigoAgenciaRetirada==="Colombia",
1iconMaterial:!1,icon:"icon_alert_triangle",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}picoEPlaca.padrao.titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}picoEPlaca.padrao.texto`},{show:this.reservaFast,iconMaterial:!1,icon:"icon_agencia_localiza",title:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}naoPassaBalcao.padrao.titulo`,text:`reserva.confirmacaoDaReserva.paraRetirarSeuCarro.${e}naoPassaBalcao.padrao.texto`}];let o;this.tipoDocumento==="1"?o=this.reservaFast?"cliente_fast":"cliente_balcao":o="cliente_estrangeiro",(this.codigoAgenciaRetirada===le||this.codigoAgenciaRetirada==="Brasil")&&this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"rental_requirement",action:"impression",label:o})}handleClickNavigateFaq(){this.translateService.get("url.perguntasFrequentes.home").pipe(w(1)).subscribe(e=>{this.router.navigate([e])})}get isMonthly(){return hl(this.reserva.dataHoraDevolucao).diff(this.reserva.dataHoraRetirada,"day")>=30}};r.\u0275fac=function(a){return new(a||r)(v(G),v(Q),v(xe),v(Pe))},r.\u0275cmp=M({type:r,selectors:[["app-para-retirar-seu-carro"]],inputs:{reservaFast:"reservaFast",codigoAgenciaRetirada:"codigoAgenciaRetirada",tipoDocumento:"tipoDocumento",reserva:"reserva"},standalone:!1,decls:9,vars:9,consts:[[1,"para-retirar-seu-carro"],[1,"para-retirar-seu-carro-titulo"],[1,"para-retirar-seu-carro-titulo__texto"],[1,"para-retirar-seu-carro-titulo__perguntas-frequentes"],[1,"para-retirar-seu-carro__lista-de-itens",3,"ngClass"],[4,"ngFor","ngForOf"],["class","para-retirar-seu-carro__nota",4,"ngIf"],["color","primary","background","accent","size","md","data-testid","iconFaqClick",1,"para-retirar-seu-carro-titulo__perguntas-frequentes--icon",3,"click","icon"],[3,"href"],["class","para-retirar-seu-carro-item",4,"ngIf"],[1,"para-retirar-seu-carro-item"],["color","primary","size","xl",3,"icon","display",4,"ngIf"],["class","material-icons-outlined ticket",4,"ngIf"],[1,"para-retirar-seu-carro-item__titulo"],[1,"para-retirar-seu-carro-item__texto",3,"innerHTML"],[4,"ngIf"],["color","primary","size","xl",3,"icon"],[1,"material-icons-outlined","ticket"],[1,"para-retirar-seu-carro__nota"]],template:function(a,o){a&1&&(s(0,"section",0)(1,"header",1)(2,"p",2),p(3),c(4,"translate"),l(),B(5,Fp,10,10,"div",3),l(),s(6,"ul",4),C(7,Up,2,1,"ng-container",5),l(),C(8,Gp,3,3,"p",6),l()),a&2&&(n(3),f(" ",u(4,5,"reserva.confirmacaoDaReserva.paraRetirarSeuCarro.titulo")," "),n(2),F(o.isWebview?-1:5),n(),d("ngClass",L(7,Bp,o.reservaFast)),n(),d("ngForOf",o.listOfTranslation),n(),d("ngIf",o.codigoAgenciaRetirada==="Colombia"||o.codigoAgenciaRetirada===o.CODIGO_COLOMBIA_CONST))},dependencies:[de,ae,N,ii,Ho,Ga,Ft,T],styles:[".para-retirar-seu-carro[_ngcontent-%COMP%]{background-color:#fff;border-radius:.8rem;border:.01rem solid #78de1f;padding:3.2rem 1.6rem}@media(min-width:576px){.para-retirar-seu-carro[_ngcontent-%COMP%]{padding:3.2rem}}.para-retirar-seu-carro-titulo[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;margin-bottom:1.6rem}.para-retirar-seu-carro-titulo__texto[_ngcontent-%COMP%]{color:#01602a;font-size:1.6rem;font-style:normal;font-weight:700;line-height:2.8rem}@media(min-width:576px){.para-retirar-seu-carro-titulo__texto[_ngcontent-%COMP%]{font-size:1.8rem}}.para-retirar-seu-carro-titulo__perguntas-frequentes[_ngcontent-%COMP%]{align-items:center;display:flex;gap:.8rem}.para-retirar-seu-carro-titulo__perguntas-frequentes--icon[_ngcontent-%COMP%]{cursor:pointer}@media(min-width:768px){.para-retirar-seu-carro-titulo__perguntas-frequentes--icon[_ngcontent-%COMP%]{cursor:default}}.para-retirar-seu-carro-titulo__perguntas-frequentes[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}@media(min-width:768px){.para-retirar-seu-carro-titulo__perguntas-frequentes[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}}.para-retirar-seu-carro-titulo__perguntas-frequentes[_ngcontent-%COMP%] span[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem;margin-bottom:-.4rem}.para-retirar-seu-carro__lista-de-itens[_ngcontent-%COMP%]{list-style-type:none;padding:0}.para-retirar-seu-carro--background[_ngcontent-%COMP%] .para-retirar-seu-carro-item[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:last-child{background-color:#cefdaf;padding:1.5rem;border-radius:.5rem}.para-retirar-seu-carro-item[_ngcontent-%COMP%]{align-items:center;display:flex;font-size:1.2rem;gap:.8rem}@media(min-width:576px){.para-retirar-seu-carro-item[_ngcontent-%COMP%]{align-items:flex-start;font-size:1.4rem;gap:1.6rem}}.para-retirar-seu-carro-item[_ngcontent-%COMP%] + .para-retirar-seu-carro-item[_ngcontent-%COMP%]{margin-top:2.4rem}.para-retirar-seu-carro-item__titulo[_ngcontent-%COMP%]{color:#4a4a4a;font-weight:700;line-height:1.8rem;margin-bottom:.4rem;text-transform:uppercase}.para-retirar-seu-carro-item__texto[_ngcontent-%COMP%]{color:#4a4a4a}.para-retirar-seu-carro-item[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:disc;padding-left:2.8rem}.para-retirar-seu-carro__nota[_ngcontent-%COMP%]{text-align:center;margin-top:1.6rem;color:#4a4a4a;font-size:1.3rem}@media(min-width:576px){.para-retirar-seu-carro__nota[_ngcontent-%COMP%]{font-size:1.4rem}}.ticket[_ngcontent-%COMP%]{font-size:3.3rem;color:#01602a;width:4rem;padding:0 2px}mat-icon[_ngcontent-%COMP%]{font-size:3.5rem;height:40px;width:40px;text-align:center;color:#01602a;margin-left:5px;overflow:visible}@media(min-width:1200px){mat-icon[_ngcontent-%COMP%]{margin-left:0;overflow:hidden}}"]});let i=r;return i})();var Di=(function(i){return i.INCLUSA="Inclusa",i.SUGERIDA="Sugerida",i.PARCIAL="Parcial",i})(Di||{});var qp=i=>({dailys:i}),Hp=()=>({dailys:"30"});function $p(i,r){if(i&1&&(s(0,"div",7)(1,"p"),p(2),c(3,"translate"),c(4,"ldsCurrency"),l(
1),s(5,"p"),p(6),c(7,"ldsCurrency"),l()()),i&2){let t=g().$implicit,e=g();n(2),q(" ",y(3,3,"components.dumbs.monthlyValueBreakdown.originalDailyPrefix",Wt(12,Hp))," ",y(4,6,t==null?null:t.valorDiariaSemDesconto,e.currency)," "),n(4),D(y(7,9,t==null?null:t.valorMensalSemDesconto,e.currency))}}function Wp(i,r){if(i&1&&(s(0,"div",8)(1,"p"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),l()()),i&2){let t=g().$implicit;n(2),f(" ",u(3,2,"components.dumbs.monthlyValueBreakdown.discountDailyLabel")," "),n(3),f("-",t==null?null:t.percentualDesconto,"%")}}function Kp(i,r){if(i&1&&(s(0,"div",2)(1,"p",3),p(2),c(3,"translate"),l(),C(4,$p,8,13,"div",4)(5,Wp,6,4,"div",5),s(6,"div",6)(7,"p"),p(8),c(9,"translate"),c(10,"ldsCurrency"),l(),s(11,"p"),p(12),c(13,"ldsCurrency"),l()()()),i&2){let t=r.$implicit,e=g();n(2),q(" ",t==null?null:t.mensalidadeReferencia,"",u(3,7,"components.dumbs.monthlyValueBreakdown.monthLabel")," "),n(2),d("ngIf",(t==null?null:t.percentualDesconto)>0),n(),d("ngIf",(t==null?null:t.percentualDesconto)>0),n(3),q(" ",y(9,9,"components.dumbs.monthlyValueBreakdown.originalDailyPrefix",L(18,qp,(t==null?null:t.diariasReferencia)??"30"))," ",y(10,12,t==null?null:t.valorDiaria,e.currency)," "),n(4),D(y(13,15,t==null?null:t.valorMensal,e.currency))}}var Pn=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-monthly-value-breakdown"]],inputs:{monthlyFees:"monthlyFees",currency:"currency"},decls:2,vars:1,consts:[[1,"monthly-value-breakdown"],["class","monthly-value-breakdown__item","data-testid","breakdown-item",4,"ngFor","ngForOf"],["data-testid","breakdown-item",1,"monthly-value-breakdown__item"],[1,"monthly-value-breakdown__month"],["class","monthly-value-breakdown__original","data-testid","original-block",4,"ngIf"],["class","monthly-value-breakdown__discount","data-testid","discount-block",4,"ngIf"],["data-testid","current-block",1,"monthly-value-breakdown__current"],["data-testid","original-block",1,"monthly-value-breakdown__original"],["data-testid","discount-block",1,"monthly-value-breakdown__discount"]],template:function(a,o){a&1&&(s(0,"div",0),C(1,Kp,14,20,"div",1),l()),a&2&&(n(),d("ngForOf",o.monthlyFees))},dependencies:[U,ae,N,A,Ne,T],styles:[".monthly-value-breakdown[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}.monthly-value-breakdown__item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.monthly-value-breakdown__month[_ngcontent-%COMP%]{font-weight:700;font-size:1.6rem}.monthly-value-breakdown__original[_ngcontent-%COMP%]{display:flex;justify-content:space-between;text-decoration:line-through #6e6e6e;font-size:1.4rem;color:#6e6e6e}.monthly-value-breakdown__discount[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:#005c3a}.monthly-value-breakdown__current[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-weight:700;font-size:1.4rem}"]});let i=r;return i})();var kc=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275dir=bo({type:r,selectors:[["","slotCloseButton",""]]});let i=r;return i})();var oo=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275dir=bo({type:r,selectors:[["","slotContent",""]]});let i=r;return i})();var ea=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275dir=bo({type:r,selectors:[["","slotIcon",""]]});let i=r;return i})();var Yp=[[["","slotContent",""]],[["","slotIcon",""]],[["","slotCloseButton",""]]],Qp=["[slotContent]","[slotIcon]","[slotCloseButton]"];function Xp(i,r){i&1&&h(0,"lds-icon-info")}function Jp(i,r){i&1&&h(0,"lds-icon-info")}function em(i,r){i&1&&h(0,"lds-icon-alert")}function tm(i,r){i&1&&h(0,"lds-icon-success")}function im(i,r){i&1&&h(0,"lds-icon-block")}function om(i,r){if(i&1&&(s(0,"span",6)(1,"span",7),V(2,8),C(3,Xp,1,0,"lds-icon-info",9)(4,Jp,1,0,"lds-icon-info",9)(5,em,1,0,"lds-icon-alert",9)(6,tm,1,0,"lds-icon-success",9)(7,im,1,0,"lds-icon-block",9),z(),l(),s(8,"span",7),We(9,1),l()()),i&2){let t=g();n(),Z("alert__icon-container__icon--hidden",t.hasContentIcon),n(),d("ngSwitch",t.color),n(),d("ngSwitchCase","neutral"),n(),d("ngSwitchCase","info"),n(),d("ngSwitchCase","warning"),n(),d("ngSwitchCase","success"),n(),d("ngSwitchCase","critical"),n(),Z("alert__icon-container__icon--hidden",!t.hasContentIcon)}}
1function am(i,r){if(i&1&&(s(0,"div",10)(1,"h4",11),p(2),l()()),i&2){let t=g();n(2),f(" ",t.title," ")}}function nm(i,r){if(i&1&&h(0,"div",12),i&2){let t=g();Z("alert__close-button--hidden",t.hasContentCloseButton)}}function rm(i,r){if(i&1&&(s(0,"div",12),We(1,2),l()),i&2){let t=g();Z("alert__close-button--hidden",!t.hasContentCloseButton)}}var wi=(()=>{let r=class r{constructor(){this.color="neutral",this.showIcon=!0,this.showCloseButton=!0,this.closed=new W}ngAfterContentInit(){this.hasContentIcon=!!this.icon,this.hasContent=!!this.content,this.hasContentCloseButton=!!this.button}close(){this.closed.emit()}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-alert"]],contentQueries:function(a,o,m){if(a&1&&(Sa(m,ea,5),Sa(m,oo,5),Sa(m,kc,5)),a&2){let _;et(_=tt())&&(o.icon=_.first),et(_=tt())&&(o.content=_.first),et(_=tt())&&(o.button=_.first)}},inputs:{title:"title",description:"description",color:"color",showIcon:"showIcon",showCloseButton:"showCloseButton"},outputs:{closed:"closed"},ngContentSelectors:Qp,decls:11,vars:12,consts:[["class","alert__icon-container",4,"ngIf"],[1,"alert__content"],["class","alert__content__title",4,"ngIf"],[1,"alert__content__description"],[1,"alert__content__description__typography"],["class","alert__close-button",3,"alert__close-button--hidden",4,"ngIf"],[1,"alert__icon-container"],[1,"alert__icon-container__icon"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"alert__content__title"],[1,"alert__content__title__typography"],[1,"alert__close-button"]],template:function(a,o){a&1&&(rt(Yp),s(0,"div"),C(1,om,10,10,"span",0),s(2,"div",1),C(3,am,3,1,"div",2),s(4,"div",3)(5,"p",4),p(6),l()()(),s(7,"div",1),We(8),l(),C(9,nm,1,2,"div",5)(10,rm,2,2,"div",5),l()),a&2&&(Xt(yo("alert alert--",o.color)),n(),d("ngIf",o.showIcon),n(),Z("alert__content--hidden",o.hasContent),n(),d("ngIf",o.title),n(3),f(" ",o.description," "),n(),Z("alert__content--hidden",!o.hasContent),n(2),d("ngIf",o.showCloseButton),n(),d("ngIf",o.showCloseButton))},dependencies:[N,Oa,ka,Wa,Ps,Ns,Ms],styles:[".alert[_ngcontent-%COMP%]{display:flex;border-radius:var(--lds-components-alert-border-radius, var(--lds-border-radius-main))}.alert--critical[_ngcontent-%COMP%]{color:var(--lds-color-accent-critical-contrast-lower);background:var(--lds-color-accent-critical-emphasis-lower)}.alert--info[_ngcontent-%COMP%]{color:var(--lds-color-accent-info-contrast-lower);background:var(--lds-color-accent-info-emphasis-lower)}.alert--neutral[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-default);background:var(--lds-color-neutral-surface-low)}.alert--success[_ngcontent-%COMP%]{color:var(--lds-color-accent-success-contrast-lower);background:var(--lds-color-accent-success-emphasis-lower)}.alert--warning[_ngcontent-%COMP%]{color:var(--lds-color-accent-warning-contrast-lower);background:var(--lds-color-accent-warning-emphasis-lower)}.alert__icon-container[_ngcontent-%COMP%]{padding-left:var(--lds-components-alert-padding-left, var(--lds-spacing-2));padding-top:var(--lds-components-alert-padding-top, var(--lds-spacing-2))}.alert__icon-container__icon[_ngcontent-%COMP%]{display:inline-block;width:2.4rem}.alert__icon-container__icon--hidden[_ngcontent-%COMP%]{display:none}.alert__content[_ngcontent-%COMP%]{width:100%;padding-left:var(--lds-components-alert-padding-left, var(--lds-spacing-2));padding-top:var(--lds-components-alert-padding-top, var(--lds-spacing-2));padding-right:var(--lds-components-alert-padding-right, var(--lds-spacing-2));padding-bottom:var(--lds-components-alert-padding-bottom, var(--lds-spacing-2))}.alert__content--hidden[_ngcontent-%COMP%]{display:none}.alert__content__title[_ngcontent-%COMP%]{margin-bottom:var(--lds-spacing-1)}.alert__content__title__typography[_ngcontent-%COMP%]{margin:0;padding:0;font-family:var(--lds-components-typography-heading-sm-family, var(--lds-font-brand-family));font-weight:var(--lds-components-typography-heading-sm-weight, var(--lds-font-brand-weight-strong));font-size:var(--alert-title-font-size, 1.6rem);line-height:var(--lds-components-typography-heading-sm-line-height, normal);letter-spacing:var(--lds-components-typography-heading-sm-letter-spacing, normal)}.alert__content__description__typography[_ngcontent-%COMP%]{margin:0;padding:0;font-family:var(--lds-components-typography-body-md-family, var(--lds-font-functional-family));font-weight:var(--lds-components-typography-body-md-weight, var(--lds-font-functional-weight-weak));font-size:var(--alert-description-font-size, 1.6rem);line-height:var(--lds-components-typography-body-md-line-height, normal);letter-spacing:var(--lds-components-typography-body-md-letter-spacing, normal)}.alert__close-button[_ngcontent-%COMP%]{padding-top:var(--lds-components-alert-close-padding-top, var(--lds-spacing-1));padding-right:var(--lds-components-alert-close-padding-right, var(--lds-spacing-1))}"],changeDetection:0});let i=r;return i})();var Ic=i=>({"valores-do-seu-contrato-diarias__item__desconto":i}),dm=i=>({"valores-do-seu-contrato-protecoes-e-coberturas__item--esconder":i}),pm=i=>({percentualTaxaServico:i});function mm(i,r){i&1&&(V(0),p(1),c(2,"translate"),z()),i&2&&(n(),f(" ",u(2,1,"reserva.confirmacaoDaReserva.valoresDoContrato.subtitulo")," "))}function um(i,r){if(i&1&&p(0),i&2){let t=g();f(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.nomeOferta," ")}}function fm(i,r){if(i&1&&(s(0,"div",22),h(1,"ds-icon",23),s(2,"span"),p(3),l()()),i&2){let t=g(2);n(),d("icon","icon_percent")("size","sm"),n(2),f(" ",(t.valoresDoContrato==null?null:t.valoresDoContrato.desconto.descontoCodigoPromocional)+" %"," ")}}function gm(i,r){if(i&1&&(s(0,"div",19)(1,"p"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),c(6,"preco"),l()()),i&2){let t=g(2);n(2),f(" ",u(3,3,"reserva.confirmacaoDaReserva.valoresDoContrato.valorDaDiariaComDe
1sconto")," "),n(3),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(6,5,t.valoresDoContrato==null?null:t.valoresDoContrato.valorDiariaSemCombo,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function _m(i,r){i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"kmLivre.resumoReserva.tituloEconomico")," "))}function hm(i,r){i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"kmLivre.resumoReserva.tituloIlimitado")," "))}function vm(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"preco"),l()),i&2){let t=g(3);n(),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(2,2,t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null||t.valoresDoContrato.quilometragemControlada.adicionalKmLivre==null?null:t.valoresDoContrato.quilometragemControlada.adicionalKmLivre.valorTotalAvulso,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function Cm(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"translate"),c(3,"preco"),l()),i&2){let t=g(3);n(),So(" ",t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null||t.valoresDoContrato.quilometragemControlada.adicionalKmLivre==null?null:t.valoresDoContrato.quilometragemControlada.adicionalKmLivre.quantidadeDiariasAvulso," "," "," ",u(2,5,"kmLivre.resumoReserva.diarias")," x ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(3,7,t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null||t.valoresDoContrato.quilometragemControlada.adicionalKmLivre==null?null:t.valoresDoContrato.quilometragemControlada.adicionalKmLivre.valorDiariaAvulso,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function bm(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2){let t=g(3);n(),fi(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.quantidadeDiarias," ",u(2,4,"kmLivre.resumoReserva.diarias")," x ",t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null?null:t.valoresDoContrato.quilometragemControlada.franquiaKmDiariaExibicao," = ",t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null?null:t.valoresDoContrato.quilometragemControlada.franquiaKmTotalExibicao,"km ")}}function xm(i,r){i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"kmLivre.resumoReserva.descricaoIlimitado")," "))}function Pm(i,r){i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"kmLivre.resumoReserva.inclusos")," "))}function Sm(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"preco"),l()),i&2){let t=g(3);n(),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(2,2,t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null||t.valoresDoContrato.quilometragemControlada.adicionalKmLivre==null?null:t.valoresDoContrato.quilometragemControlada.adicionalKmLivre.valorTotalAvulso,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function ym(i,r){if(i&1&&(V(0),s(1,"div",24),C(2,_m,3,3,"p",10)(3,hm,3,3,"p",10)(4,vm,3,5,"p",10),l(),s(5,"div",19),C(6,Cm,4,10,"p",10)(7,bm,3,6,"p",10)(8,xm,3,3,"p",10)(9,Pm,3,3,"p",10)(10,Sm,3,5,"p",10),l(),z()),i&2){let t=g(2);n(2),d("ngIf",t.shouldShowControlledKm),n(),d("ngIf",!t.shouldShowControlledKm),n(),d("ngIf",(t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null?null:t.valoresDoContrato.quilometragemControlada.adicionalKmLivre)&&!t.shouldShowControlledKm),n(2),d("ngIf",(t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null?null:t.valoresDoContrato.quilometragemControlada.adicionalKmLivre)&&!t.shouldShowControlledKm),n(),d("ngIf",t.shouldShowControlledKm),n(),d("ngIf",!(!(t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null)&&t.valoresDoContrato.quilometragemControlada.adicionalKmLivre)&&!t.shouldShowControlledKm),n(),d("ngIf",!(!(t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null)&&t.valoresDoContrato.quilometragemControlada.adicionalKmLivre&&(!(t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null||t.valoresDoContrato.quilometragemControlada.adicionalKmLivre==null)&&t.valoresDoContrato.quilometragemControlada.adicionalKmLivre.selecionado))),n(),d("ngIf",(t.valoresDoContrato==null||t.valoresDoContrato.quilometragemControlada==null?null:t.valoresDoContrato.quilometragemControlada.adicionalKmLivre)&&!t.shouldShowControlledKm)}}function Mm(i,r){if(i&1&&(s(0,"div",16)(1,"div",17)(2,"div")(3,"p"),p(4),c(5,"translate"),l(),C(6,fm,4,3,"div",18),l(),s(7,"p"),p(8),c(9,"preco"),l()(),s(10,"div",19)(11,"p",20),p(12),c(13,"translate"),l(),s(14,"p",20),p(15),c(16,"preco"),l()(),C(17,gm,7,8,"div",21)(18,ym,11,8,"ng-container",10),l()),i&2){let t=g();n(4),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.quantidadeDiarias," ",u(5,12,(t.valoresDoContrato==null?null:t.valoresDoContrato.quantidadeDiarias)>1?"reserva.confirmacaoDaReserva.valoresDoContrato.diarias":"reserva.confirmacaoDaReserva.valoresDoContrato.diaria")," "),n(2),d("ngIf",(t.valoresDoContrato==null?null:t.valoresDoContrato.desconto.existeDescontoPromocional)&&t.agenciaBrasileira),n(2),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(9,14,t.valoresDoContrato==null?null:t.valoresDoContrato.valorTotalDiaria,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," "),n(3),d("ngClass",L(22,Ic,t.valoresDoContrato==null?null:t.valoresDoContrato.desconto.existeDescontoPromocional)),n(),f(" ",u(13,17,"reserva.confirmacaoDaReserva.valoresDoContrato.valorDaDiaria")," "),n(2),d("ngClass",L(24,Ic,t.valoresDoContrato==null?null:t.valoresDoContrato.desconto.existeDescontoPromocional)),n(),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(16,19,!(t.valoresDoContrato==null||t.valoresDoContrato.desconto==null)&&t.valoresDoContrato.desconto.existeDescontoPromocional?t.valoresDoContrato==null?null:t.valoresDoContrato.valorLiquidoSemCodigoPromocional:t.valoresDoContrato==null?null:t.valoresDoContrato.valorDiariaSemCombo,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," "),n(2),d("ngIf",t.valoresDoContrato==null?null:t.valoresDoContrato.desconto.existeDescontoPromocional),n(),d("ngIf",(t.valoresDoContrato==null?null:t.valoresDoContrato.quilometragemControlada)&&t.valoresDoContrato.quantidadeDiarias<30&&t.agenciaBrasileira)}}function Dm(i,r){if(i&1&&(s(0,"div",25)(1,"p",26),p(2,"Di\xE1rias"),l(),h(3,"app-monthly-value-breakdown",27),l()),i&2){let t=g();n(3),d("monthlyFees",t.monthlyFees)("currency",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)}}
1function wm(i,r){if(i&1&&(s(0,"div",34),h(1,"ds-icon",35),s(2,"span"),p(3),l()()),i&2){let t=g(2);n(),d("icon","icon_percent")("size","sm"),n(2),f(" ",(t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.valorPercentualDeDesconto)+" %"," ")}}function Om(i,r){if(i&1&&(s(0,"div",36)(1,"p"),p(2),c(3,"preco"),l(),s(4,"p"),p(5),c(6,"preco"),l()()),i&2){let t=g(2);n(2),st(" ",(t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.quantidadeDiariasCobradas)+"x "," ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(3,5,t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.valorDiariaSemDesconto,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," "),n(3),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(6,8,t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.valorTotalSemDesconto,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function km(i,r){if(i&1&&(s(0,"div",37)(1,"p"),p(2),l(),s(3,"p"),p(4),c(5,"translate"),l()()),i&2){let t=r.$implicit;n(2),D(t),n(2),f(" ",u(5,2,"reserva.confirmacaoDaReserva.valoresDoContrato.included")," ")}}function Im(i,r){if(i&1&&(s(0,"div",28)(1,"div",29)(2,"div")(3,"p"),p(4),l(),C(5,wm,4,3,"div",30),l(),s(6,"p"),p(7),c(8,"preco"),l()(),C(9,Om,7,11,"div",31),s(10,"div",32)(11,"p"),p(12),c(13,"preco"),l(),s(14,"p"),p(15),c(16,"preco"),l()(),C(17,km,6,4,"div",33),l()),i&2){let t=g();n(4),D(t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.nome),n(),d("ngIf",(t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.valorPercentualDeDesconto)>0),n(2),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(8,11,t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.valorTotalComDesconto,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," "),n(2),d("ngIf",(t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.valorPercentualDeDesconto)>0),n(3),st(" ",(t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.quantidadeDiariasCobradas)+"x "," ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(13,14,t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.valorDiariaComDesconto,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," "),n(3),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(16,17,t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.valorTotalComDesconto,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," "),n(2),d("ngForOf",t.valoresDoContrato==null||t.valoresDoContrato.pacoteAdicionais==null?null:t.valoresDoContrato.pacoteAdicionais.itens)}}function Tm(i,r){if(i&1&&(s(0,"p")(1,"span",20),p(2),l(),p(3),c(4,"preco"),l()),i&2){let t=g().$implicit;n(),d("ngClass",L(8,dm,t.nome.length>22)),n(),f(" ",t.nome," "),n(),st(" : ",t.quantidadeDeDiarias,"x de ",t.moeda," ",y(4,5,t.valor,t.moeda)," ")}}function Am(i,r){if(i&1&&(s(0,"p"),p(1),l()),i&2){let t=g().$implicit;n(),f("",t.nome,": Valor \xFAnico")}}function Em(i,r){if(i&1&&(s(0,"div",41),C(1,Tm,5,10,"p",10)(2,Am,2,1,"p",10),s(3,"p"),p(4),c(5,"preco"),l()()),i&2){let t=r.$implicit;n(),d("ngIf",t.tipoCobranca==="Diaria"),n(),d("ngIf",t.tipoCobranca==="Contrato"),n(2),q(" ",t.moeda," ",y(5,4,t.valorTotal,t.moeda)," ")}}function Rm(i,r){if(i&1&&(s(0,"div",38)(1,"div",39)(2,"p"),p(3),c(4,"translate"),l(),s(5,"p"),p(6),c(7,"preco"),l()(),C(8,Em,6,7,"div",40),l()),i&2){let t=g();n(3),f(" ",u(4,4,"reserva.confirmacaoDaReserva.valoresDoContrato.protecoesCoberturas")," "),n(3),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(7,6,t.valorTotalDeProtecoesAdicionais,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," "),n(2),d("ngForOf",t.valoresDoContrato==null?null:t.valoresDoContrato.adicionaisReserva)}}function Bm(i,r){if(i&1&&(s(0,"div",41)(1,"p"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),c(6,"preco"),l()()),i&2){let t=g(2);n(2),f(" ",u(3,3,"reserva.confirmacaoDaReserva.valoresDoContrato.taxaDeRetorno")," "),n(3),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(6,5,t.valoresDoContrato==null?null:t.valoresDoContrato.taxaRetorno,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function Fm(i,r){if(i&1&&(s(0,"div",41)(1,"p"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),c(6,"preco"),l()()),i&2){let t=g(2);n(2),f(" ",y(3,3,"reserva.confirmacaoDaReserva.valoresDoContrato.taxaDeAluguel",L(9,pm,t.valoresDoContrato==null?null:t.valoresDoContrato.percentualTaxaServico))," "),n(3),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(6,6,t.valoresDoContrato==null?null:t.valoresDoContrato.taxaServico,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function Vm(i,r){if(i&1&&(s(0,"div",41)(1,"p"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),c(6,"preco"),l()()),i&2){let t=g(2);n(2),f(" ",u(3,3,"lib.infoReserva.aluguelMexico")," "),n(3),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(6,5,t.valoresDoContrato==null?null:t.valoresDoContrato.taxaServico,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function zm(i,r){if(i&1&&(s(0,"div",38)(1,"div",39)(2,"p"),p(3),c(4,"translate"),l(),s(5,"p"),p(6),c(7,"preco"),l()(),C(8,Bm,7,8,"div",42)(9,Fm,7,11,"div",42)(10,Vm,7,8,"div",42),l()),i&2){let t=g();n(3),f(" ",u(4,6,t.agenciaColombiana?"reserva.confirmacaoDaReserva.valoresDoContrato.outrosValores":"reserva.confirmacaoDaReserva.valoresDoContrato.servicos")," "),n(3),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(7,8,(t.valoresDoContrato==null?null:t.valoresDoContrato.taxaRetorno)+(t.valoresDoContrato==null?null:t.valoresDoContrato.taxaServico),t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," "),n(2),d("ngIf",t.valoresDoContrato==null?null:t.valoresDoContrato.taxaRetorno),n(),d("ngIf",(t.valoresDoContrato==null?null:t.valoresDoContrato.taxaServico)&&!t.taxaDeAluguelMexico),n(),d("ngIf",(t.valoresDoContrato==null?null:t.valoresDoContrato.taxaServico)&&t.taxaDeAluguelMexico)}}
1function Lm(i,r){if(i&1&&(s(0,"div",41)(1,"p"),p(2),l(),s(3,"p"),p(4),c(5,"preco"),l()()),i&2){let t=r.$implicit,e=g(2);n(2),f(" ",t.descricao," "),n(2),q(" ",e.valoresDoContrato==null?null:e.valoresDoContrato.moeda," ",y(5,3,t.valor,e.valoresDoContrato==null?null:e.valoresDoContrato.moeda)," ")}}function Nm(i,r){if(i&1&&(s(0,"div",38)(1,"div",39)(2,"p"),p(3),c(4,"translate"),l(),s(5,"p"),p(6),c(7,"preco"),l()(),C(8,Lm,6,6,"div",40),l()),i&2){let t=g();n(3),f(" ",u(4,4,"reserva.confirmacaoDaReserva.valoresDoContrato.outrosValores")," "),n(3),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(7,6,t.valorTotalDeOutrosValores,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," "),n(2),d("ngForOf",t.valoresDoContrato==null?null:t.valoresDoContrato.outrosValores)}}function Um(i,r){if(i&1&&(s(0,"div",38)(1,"div",39)(2,"p"),p(3),c(4,"translate"),l()(),s(5,"div",41)(6,"p"),p(7),c(8,"translate"),s(9,"b"),p(10),l(),p(11),c(12,"translate"),s(13,"b"),p(14),l()()()()),i&2){let t=g();n(3),f(" ",u(4,5,"reserva.confirmacaoDaReserva.valoresDoContrato.upgrades")," "),n(4),f(" ",u(8,7,"reserva.confirmacaoDaReserva.valoresDoContrato.upgradePor")," "),n(3),D(t.valoresDoContrato==null?null:t.valoresDoContrato.upgrade.grupoOriginal),n(),f(" ",u(12,9,"reserva.confirmacaoDaReserva.valoresDoContrato.paraO")," "),n(3),D(t.valoresDoContrato==null?null:t.valoresDoContrato.upgrade.grupoComUpgrade)}}function Gm(i,r){if(i&1&&(s(0,"div",38)(1,"div",39)(2,"p"),p(3),c(4,"translate"),l()(),s(5,"div",41)(6,"p"),p(7),c(8,"translate"),l()()()),i&2){let t=g();n(3),f(" ",u(4,3,"reserva.confirmacaoDaReserva.valoresDoContrato.beneficio")," "),n(4),q(" ",u(8,5,"reserva.confirmacaoDaReserva.valoresDoContrato.voceRecebeuDesconto")," ",t.valoresDoContrato==null?null:t.valoresDoContrato.desconto.descontoCodigoPromocional,"% ")}}function jm(i,r){i&1&&(s(0,"div",39)(1,"p"),p(2),c(3,"translate"),l()()),i&2&&(n(2),f(" ",u(3,1,"reserva.confirmacaoDaReserva.valoresDoContrato.parceiro.paymentMethods")," "))}function qm(i,r){if(i&1&&(s(0,"div",41)(1,"p"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),c(6,"preco"),l()()),i&2){let t=g(2);n(2),f(" ",u(3,3,"reserva.confirmacaoDaReserva.valoresDoContrato.parceiro.payOnPickup")," "),n(3),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(6,5,t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.valorMoeda,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function Hm(i,r){if(i&1&&(s(0,"div",41)(1,"p"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),c(6,"translate"),c(7,"ldsCurrency"),l()()),i&2){let t=g(2);n(2),f(" ",u(3,3,"reserva.confirmacaoDaReserva.valoresDoContrato.parceiro.payWithPoints")," "),n(3),q(" ",u(6,5,"reserva.confirmacaoDaReserva.valoresDoContrato.parceiro.puntosDoters")," ",y(7,7,t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.valorPontos,"DOTERS")," ")}}function $m(i,r){if(i&1&&(s(0,"div",38),C(1,jm,4,3,"div",43)(2,qm,7,8,"div",42)(3,Hm,8,10,"div",42),l()),i&2){let t=g();n(),d("ngIf",t.valoresDoContrato==null?null:t.valoresDoContrato.parceiro),n(),d("ngIf",t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.valorMoeda),n(),d("ngIf",t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.valorPontos)}}function Wm(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"preco"),l()),i&2){let t=g();n(),q(" ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(2,2,t.valoresDoContrato==null?null:t.valoresDoContrato.valorTotal,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function Km(i,r){if(i&1&&(V(0),p(1),c(2,"ldsCurrency"),z()),i&2){let t=g(2);n(),f(" ",y(2,1,t.valoresDoContrato==null?null:t.valoresDoContrato.valorTotal,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function Zm(i,r){i&1&&(V(0),p(1," + "),z())}function Ym(i,r){if(i&1&&(V(0),p(1),c(2,"ldsCurrency"),c(3,"translate"),z()),i&2){let t=g(2);n(),q(" ",y(2,2,t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.valorPontos,"DOTERS")," ",u(3,5,"reserva.confirmacaoDaReserva.valoresDoContrato.parceiro.puntosDoters")," ")}}function Qm(i,r){if(i&1&&(s(0,"p"),C(1,Km,3,4,"ng-container",10)(2,Zm,2,0,"ng-container",10)(3,Ym,4,7,"ng-container",10),l()),i&2){let t=g();n(),d("ngIf",t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.valorMoeda),n(),d("ngIf",(t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.valorPontos)&&(t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.valorMoeda)),n(),d("ngIf",t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.valorPontos)}}function Xm(i,r){i&1&&(s(0,"p",44),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.confirmacaoDaReserva.valoresDoContrato.valueIncludesTaxes")," "))}function Jm(i,r){if(i&1&&(s(0,"p",45),p(1),c(2,"translate"),c(3,"translate"),c(4,"preco"),l()),i&2){let t=g();n(),So(" ",u(2,5,"reserva.confirmacaoDaReserva.valoresDoContrato.emAte")," ",t.valoresDoContrato==null?null:t.valoresDoContrato.numeroParcelas,"x ",u(3,7,"reserva.confirmacaoDaReserva.valoresDoContrato.de")," ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(4,9,t.valoresDoContrato==null?null:t.valoresDoContrato.valorParcelas,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function eu(i,r){if(i&1&&(s(0,"p",45),p(1),c(2,"translate"),c(3,"translate"),c(4,"preco"),l()),i&2){let t=g();n(),So(" ",u(2,5,"reserva.confirmacaoDaReserva.valoresDoContrato.emAte")," ",t.valoresDoContrato==null?null:t.valoresDoContrato.numeroParcelas,"x ",u(3,7,"reserva.confirmacaoDaReserva.valoresDoContrato.de")," ",t.valoresDoContrato==null?null:t.valoresDoContrato.moeda," ",y(4,9,t.valoresDoContrato==null?null:t.valoresDoContrato.valorParcelas,t.valoresDoContrato==null?null:t.valoresDoContrato.moeda)," ")}}function tu(i,r){if(i&1&&(s(0,"div",46),h(1,"p",47)(2,"p",47),l()),i&2){let t=g();n(),d("innerHtml",t.msgParcelamento==null?null:t.msgParcelamento.nome,te),n(),d("innerHtml",t.msgParcelamento==null?null:t.msgParcelamento.mensagem,te)}}function iu(i,r){if(i&1&&(s(0,"div",48)(1,"div")(2,"p"),p(3),c(4,"translate"),l(),s(5,"p"),p(6),l()(),s(7,"p",49),p(8),c(9,"translate"),c(10,"translate"),l()()),i&2){let t=g();n(3),f(" ",u(4,3,"reserva.confirmacaoDaReserva.valoresDoContrato.preAutorizacao.titulo")," "),n(3),D(t.valoresDoContrato==null||t.valoresDoContrato.preAutorizacao==null?null:t.valoresDoContrato.preAutorizacao.valorPreAutorizacao),n(2),f(" ",(t.valoresDoContrato==null||t.valoresDoContrato.preAutorizacao==null?null:t.valoresDoContrato.preAutorizacao.valorPreAutorizacao)==="R$ 0,00"?u(9,5,"reserva.confirmacaoDaReserva.valoresDoContrato.preAutorizacao.preValueZero"):u(10,7,"reserva.confirmacaoDaReserva.valoresDoContrato.preAutorizacao.descricaoPreAutorizacao")," ")}}function ou(i,r){i&1&&(h(0,"app-alert",50),c(1,"translate")),i&2&&d("showIcon",!1)("showCloseButton",!1)("description",u(1,3,"reserva.confirmacaoDaReserva.valoresDoContrato.parceiro.info"))}var Ac=(()=>
1{let r=class r{constructor(e,a,o){this.featureToggleService=e,this.cmsService=a,this.parcelamento=o}ngOnInit(){this.valorTotalDeProtecoesAdicionais=this.valoresDoContrato?.adicionaisReserva.reduce((e,a)=>e+a.valorTotal,0),this.valorTotalDeOutrosValores=this.valoresDoContrato?.outrosValores.reduce((e,a)=>e+a.valor,0),this.featureToggleService.validarEstadoFuncionalidade(ut.featureToggle.informativo_parcelamento).pipe(w(1)).subscribe(e=>{this.showParcelamento=e.ativo&&this.valoresDoContrato?.numeroParcelas===10}),this.cmsService.recuperarConteudoPontuaisSharePoint("promocao-de-parcelamento").pipe(w(1)).subscribe(e=>{this.msgParcelamento=e}),this.parcelamentoDaOferta=this.parcelamento.getParcelamentoDaOferta()}get shouldShowControlledKm(){let e=this.valoresDoContrato?.quilometragemControlada,a=e?.adicionalKmLivre;return(e?.controlada&&(!a||a&&!a.selecionado))??!1}get monthlyFees(){let e=[],a=this.valoresDoContrato?.mensalidades?.filter(m=>m.condicaoMensalidade===Di.INCLUSA);e=e.concat(a??[]);let o=this.valoresDoContrato?.mensalidades?.filter(m=>m.condicaoMensalidade===Di.PARCIAL);return e=e.concat(o??[]),e}};r.\u0275fac=function(a){return new(a||r)(v(Qt),v(dr),v($o))},r.\u0275cmp=M({type:r,selectors:[["app-valores-do-seu-contrato"]],inputs:{valoresDoContrato:"valoresDoContrato",taxaDeAluguelMexico:"taxaDeAluguelMexico",isBrasil:"isBrasil",agenciaColombiana:"agenciaColombiana",agenciaBrasileira:"agenciaBrasileira"},standalone:!1,decls:30,vars:25,consts:[["nomeOfertaPadrao",""],[1,"valores-do-seu-contrato"],[1,"valores-do-seu-contrato__titulo"],[1,"valores-do-seu-contrato__nome-da-oferta"],[4,"ngIf","ngIfElse"],["class","valores-do-seu-contrato-diarias","data-testid","without-discount-block",4,"ngIf"],["class","valores-do-seu-contrato-diarias",4,"ngIf"],["class","valores-do-seu-contrato-pacote",4,"ngIf"],["class","valores-do-seu-contrato-protecoes-e-coberturas",4,"ngIf"],[1,"valores-do-seu-contrato-valor-total"],[4,"ngIf"],["class","includes-taxes",4,"ngIf"],["class","text",4,"ngIf"],["class","valores-do-seu-contrato-promocao-10x",4,"ngIf"],["class","valores-do-seu-contrato-pre-autorizacao",4,"ngIf"],["color","success",3,"showIcon","showCloseButton","description",4,"ngIf"],["data-testid","without-discount-block",1,"valores-do-seu-contrato-diarias"],[1,"valores-do-seu-contrato-diarias__total"],["class","valores-do-seu-contrato-desconto-porcento",4,"ngIf"],[1,"valores-do-seu-contrato-diarias__item"],[3,"ngClass"],["class","valores-do-seu-contrato-diarias__item",4,"ngIf"],[1,"valores-do-seu-contrato-desconto-porcento"],[1,"valores-do-seu-contrato-desconto-porcento__icone",3,"icon","size"],[1,"valores-do-seu-contrato-diarias__total","valores-do-seu-contrato-diarias__total-km"],[1,"valores-do-seu-contrato-diarias"],[1,"valores-do-seu-contrato-diarias__title"],["data-testid","monthly-breakdown",3,"monthlyFees","currency"],[1,"valores-do-seu-contrato-pacote"],[1,"valores-do-seu-contrato-pacote__total"],["class","valores-do-seu-contrato-pacote-porcento",4,"ngIf"],["class","valores-do-seu-contrato-pacote__valor-sem-desconto",4,"ngIf"],[1,"valores-do-seu-contrato-pacote__valor-com-desconto"],["class","valores-do-seu-contrato-pacote__item",4,"ngFor","ngForOf"],[1,"valores-do-seu-contrato-pacote-porcento"],[1,"valores-do-seu-contrato-pacote-porcento__icone",3,"icon","size"],[1,"valores-do-seu-contrato-pacote__valor-sem-desconto"],[1,"valores-do-seu-contrato-pacote__item"],[1,"valores-do-seu-contrato-protecoes-e-coberturas"],[1,"valores-do-seu-contrato-protecoes-e-coberturas__total"],["class","valores-do-seu-contrato-protecoes-e-coberturas__item",4,"ngFor","ngForOf"],[1,"valores-do-seu-contrato-protecoes-e-coberturas__item"],["class","valores-do-seu-contrato-protecoes-e-coberturas__item",4,"ngIf"],["class","valores-do-seu-contrato-protecoes-e-coberturas__total",4,"ngIf"],[1,"includes-taxes"],[1,"text"],[1,"valores-do-seu-contrato-promocao-10x"],[3,"innerHtml"],[1,"valores-do-seu-contrato-pre-autorizacao"],[1,"valores-do-seu-contrato-pre-autorizacao__descricao"],["color","success",3,"showIcon","showCloseButton","description"]],template:function(a,o){if(a&1&&(s(0,"section",1)(1,"p",2),p(2),c(3,"translate"),l(),s(4,"p",3),C(5,mm,3,3,"ng-container",4)(6,um,1,1,"ng-template",null,0,Me),l(),C(8,Mm,19,26,"div",5)(9,Dm,4,2,"div",6)(10,Im,18,20,"div",7)(11,Rm,9,9,"div",8)(12,zm,11,11,"div",8)(13,Nm,9,9,"div",8)(14,Um,15,11,"div",8)(15,Gm,9,7,"div",8)(16,$m,4,3,"div",8),s(17,"div",9)(18,"p"),p(19),c(20,"translate"),l(),s(21,"div"),C(22,Wm,3,5,"p",10)(23,Qm,4,3,"p",10)(24,Xm,3,3,"p",11)(25,Jm,5,12,"p",12)(26,eu,5,
112,"p",12),l()(),C(27,tu,3,2,"div",13)(28,iu,11,9,"div",14)(29,ou,2,5,"app-alert",15),l()),a&2){let m=ue(7);n(2),f(" ",u(3,21,"reserva.confirmacaoDaReserva.valoresDoContrato.titulo")," "),n(3),d("ngIf",o.agenciaColombiana)("ngIfElse",m),n(3),d("ngIf",(o.monthlyFees==null?null:o.monthlyFees.length)===0),n(),d("ngIf",o.monthlyFees&&o.monthlyFees.length>0),n(),d("ngIf",o.valoresDoContrato==null||o.valoresDoContrato.pacoteAdicionais==null?null:o.valoresDoContrato.pacoteAdicionais.nome),n(),d("ngIf",(o.valoresDoContrato==null?null:o.valoresDoContrato.adicionaisReserva.length)>0),n(),d("ngIf",(o.valoresDoContrato==null?null:o.valoresDoContrato.taxaRetorno)||(o.valoresDoContrato==null?null:o.valoresDoContrato.taxaServico)),n(),d("ngIf",(o.valoresDoContrato==null?null:o.valoresDoContrato.outrosValores.length)>0),n(),d("ngIf",o.valoresDoContrato==null?null:o.valoresDoContrato.upgrade.exiteUpgrade),n(),d("ngIf",(o.valoresDoContrato==null?null:o.valoresDoContrato.desconto.existeDescontoPromocional)&&!o.agenciaBrasileira),n(),d("ngIf",(o.valoresDoContrato==null||o.valoresDoContrato.parceiro==null?null:o.valoresDoContrato.parceiro.usageType)==="use"),n(3),f(" ",u(20,23,"reserva.confirmacaoDaReserva.valoresDoContrato.valorTotal")," "),n(3),d("ngIf",(o.valoresDoContrato==null||o.valoresDoContrato.parceiro==null?null:o.valoresDoContrato.parceiro.usageType)!=="use"),n(),d("ngIf",(o.valoresDoContrato==null||o.valoresDoContrato.parceiro==null?null:o.valoresDoContrato.parceiro.usageType)==="use"),n(),d("ngIf",o.agenciaColombiana),n(),d("ngIf",(o.valoresDoContrato==null?null:o.valoresDoContrato.numeroParcelas)>1&&(o.parcelamentoDaOferta==null?null:o.parcelamentoDaOferta.toggleParcelamento)&&o.isBrasil),n(),d("ngIf",(o.valoresDoContrato==null?null:o.valoresDoContrato.numeroParcelas)>1&&!o.isBrasil&&(o.parcelamentoDaOferta==null?null:o.parcelamentoDaOferta.toggleParcelamento)&&o.agenciaBrasileira),n(),d("ngIf",o.showParcelamento),n(),d("ngIf",o.valoresDoContrato==null||o.valoresDoContrato.preAutorizacao==null?null:o.valoresDoContrato.preAutorizacao.exibirPreAutorizacao),n(),d("ngIf",(o.valoresDoContrato==null||o.valoresDoContrato.parceiro==null?null:o.valoresDoContrato.parceiro.usageType)==="use"&&(o.valoresDoContrato==null||o.valoresDoContrato.parceiro==null?null:o.valoresDoContrato.parceiro.valorMoeda)>0)}},dependencies:[de,ae,N,ii,Pn,wi,T,yi,Ne],styles:[".valores-do-seu-contrato[_ngcontent-%COMP%]{background:#fff;border-radius:.8rem;border:.01rem solid #01602a;padding:3.2rem 1.6rem}@media(min-width:768px){.valores-do-seu-contrato[_ngcontent-%COMP%]{padding:3.2rem}}.valores-do-seu-contrato__titulo[_ngcontent-%COMP%]{color:#01602a;font-size:1.6rem;font-weight:700;line-height:2.8rem}@media(min-width:768px){.valores-do-seu-contrato__titulo[_ngcontent-%COMP%]{font-size:1.8rem}}.valores-do-seu-contrato__nome-da-oferta[_ngcontent-%COMP%]{color:#01602a;font-size:1.6rem;line-height:2.2rem;margin:2.4rem auto 1.6rem}@media(min-width:768px){.valores-do-seu-contrato__nome-da-oferta[_ngcontent-%COMP%]{font-size:1.8rem}}.valores-do-seu-contrato-diarias[_ngcontent-%COMP%]{background:#f2f2f2;border-radius:.8rem;padding:1.6rem;color:#4a4a4a;margin-bottom:.8rem}.valores-do-seu-contrato-diarias[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.valores-do-seu-contrato-diarias[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.4rem}.valores-do-seu-contrato-diarias__total[_ngcontent-%COMP%]{font-size:1.4rem;line-height:2.2rem}@media(min-width:768px){.valores-do-seu-contrato-diarias__total[_ngcontent-%COMP%]{font-size:1.8rem}}.valores-do-seu-contrato-diarias__total-km[_ngcontent-%COMP%]{margin-top:1.2rem!important}.valores-do-seu-contrato-diarias__item[_ngcontent-%COMP%]{font-size:12px;line-height:16px}@media(min-width:768px){.valores-do-seu-contrato-diarias__item[_ngcontent-%COMP%]{font-size:1.4rem}}.valores-do-seu-contrato-diarias__item__desconto[_ngcontent-%COMP%]{text-decoration:line-through}.valores-do-seu-contrato-diarias__title[_ngcontent-%COMP%]{font-size:1.8rem;margin:0 0 .5rem}.valores-do-seu-contrato-protecoes-e-coberturas[_ngcontent-%COMP%]{background:#f2f2f2;border-radius:.8rem;padding:1.6rem;color:#4a4a4a;margin-bottom:.8rem}.valores-do-seu-contrato-protecoes-e-coberturas[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.valores-do-seu-contrato-protecoes-e-coberturas[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.4rem}.valores-do-seu-contrato-protecoes-e-coberturas__total[_ngcontent-%COMP%]{font-size:1.4rem;line-height:2.2rem}@media(min-width:768px){.valores-do-seu-contrato-protecoes-e-coberturas__total[_ngcontent-%COMP%]{font-size:1.8rem}}.valores-do-seu-contrato-protecoes-e-coberturas__item[_ngcontent-%COMP%]{font-size:12px;line-height:16px}.valores-do-seu-contrato-protecoes-e-coberturas__item[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span.valores-do-seu-contrato-protecoes-e-coberturas__item--esconder[_ngcontent-%COMP%]{max-width:9.6rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}@media(min-width:375px){.valores-do-seu-contrato-protecoes-e-coberturas__item[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span.valores-do-seu-contrato-protecoes-e-coberturas__item--esconder[_ngcontent-%COMP%]{max-width:13.6rem}}@media(min-width:425px){.valores-do-seu-contrato-protecoes-e-coberturas__item[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span.valores-do-seu-contrato-protecoes-e-coberturas__item--esconder[_ngcontent-%COMP%]{max-width:none;overflow:visible}}@media(min-width:768px){.valores-do-seu-contrato-protecoes-e-coberturas__item[_ngcontent-%COMP%]{font-size:1.4rem}}.valores-do-seu-contrato-pacote[_ngcontent-%COMP%]{background:#f2f2f2;border-radius:.8rem;padding:1.6rem;color:#4a4a4a;margin-bottom:.8rem}.valores-do-seu-contrato-pacote[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.valores-do-seu-contrato-pacote[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.4rem}.valores-do-seu-contrato-pacote-porcento[_ngcontent-%COMP%]{background:#cefdaf;border-radius:15rem;font-size:1.2rem;font-weight:700;gap:.4rem;margin-left:.8rem;padding:.4rem .8rem}@media(min-width:768px){.valores-do-seu-contrato-pacote-porcento[_ngcontent-%COMP%]{font-size:1.4rem}}.valores-do-seu-contrato-pacote-porcento__icone[_ngcontent-%COMP%]{height:1.9rem;width:1.8rem}@media(min-width:768px){.valores-do-seu-contrato-pacote-porcento__icone[_ngcontent-%COMP%]{height:1.8rem;width:1.6rem}}.valores-do-seu-contrato-pacote__total[_ngcontent-%COMP%]{font-size:1.4rem;line-height:2.2rem}@media(min-width:768px){.valores-do-seu-contrato-pacote__total[_ngcontent-%COMP%]{font-size:1.8rem}}.valores-do-seu-contrato-pacote__valor-sem-desconto[_ngcontent-%COMP%]{font-size:1.2rem;text-decoration:line-through}@media(min-width:768px){.valores-do-seu-contrato-pacote__valor-sem-desconto[_ngcontent-%COMP%]{font-size:1.4rem}}.valores-do-seu-contrato-pacote__valor-com-desconto[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;margin-bottom:.8rem}@media(min-width:768px){.valores-do-seu-contrato-pacote__valor-com-desconto[_ngcontent-%COMP%]{font-size:1.4rem}}.valores-do-seu-contrato-pacote__item[_ngcontent-%COMP%]{font-size:12px;line-height:16px}@media(min-width:768px){.valores-do-seu-contrato-pacote__item[_ngcontent-%COMP%]{font-size:1.4rem}}.valores-do-seu-contrato-desconto-porcento[_ngcontent-%COMP%]{background:#cefdaf;border-radius:15rem;font-size:1.2rem;font-weight:700;gap:.4rem;margin-left:.8rem;padding:.4rem .8rem}@media(min-width:768px){.valores-do-seu-contrato-desconto-porcento[_ngcontent-%COMP%]{font-size:1.4rem}}.valores-do-seu-contrato-desconto-porcento__icone[_ngcontent-%COMP%]{height:1.9rem;width:1.8rem}@media(min-width:768px){.valores-do-seu-contrato-desconto-porcento__icone[_ngcontent-%COMP%]{height:1.8rem;width:1.6rem}}.valores-do-seu-contrato-valor-total[_ngcontent-%COMP%]{border-radius:.8rem;background-color:#01602a;color:#fff;padding:1.6rem;display:flex;align-items:center;justify-content:space-between;font-size:18px;line-height:22px;margin-bottom:.8rem}.valores-do-seu-contrato-valor-total[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:end}.valores-do-seu-contrato-valor-total[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p.text[_ngcontent-%COMP%]{font-size:1.4rem}.valores-do-seu-contrato-valor-total[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p.includes-taxes[_ngcontent-%COMP%]{font-size:1.2rem;line-height:2.4rem}.valores-do-seu-contrato-promocao-10x[_ngcontent-%COMP%]{border-radius:.8rem;border:.01rem solid #01602a;margin-bottom:.8rem;padding:1.6rem}.valores-do-seu-contrato-promocao-10x[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child{color:#01602a;font-size:1.8rem;line-height:2.2rem}.valores-do-seu-contrato-promocao-10x[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{color:#4a4a4a}.valores-do-seu-contrato-pre-autorizacao[_ngcontent-%COMP%]{padding:1.6rem;border-radius:.8rem;border:.01rem solid #01602a}.valores-do-seu-contrato-pre-autorizacao[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-size:18px;line-height:22px;color:#01602a;margin-bottom:.4rem}.valores-do-seu-contrato-pre-autorizacao__descricao[_ngcontent-%COMP%]{color:#4a4a4a}[_nghost-%COMP%] app-alert .alert__content__description__typography{font-size:1.2rem}"]});let i=r;return i})();function ru(i,r){if(i&1&&h(0,"app-breadcrumb",1),i&2){let t=g();d("breadCrumbs",t.breadCrumb)}}function su(i,r){i&1&&(s(0,"div",4)(1,"div",5),h(2,"app-toast-erro"),l(
1)())}function lu(i,r){if(i&1&&(s(0,"span"),p(1),s(2,"a",31),p(3),l()()),i&2){let t=g(3);n(),f(" ",t.getReservationSuccessMessage()," "),n(),d("href",Re(t.getSuccessLinkMessage()),bt),n(),f(" ",t.getSuccessTextLinkMessage()," ")}}function cu(i,r){if(i&1&&(s(0,"div",28),h(1,"i-feather",29),s(2,"p",30),p(3),c(4,"translate"),C(5,lu,4,4,"span",21),l()()),i&2){let t=g(2);n(3),f(" ",u(4,2,t.alteracaoReserva?"reserva.confirmacaoDaReserva.toastSucesso.tituloAlterada":t.isPrePagamentoMexico?"reserva.confirmacaoDaReserva.toastSucesso.tituloConfirmadaLinkPrePagamento":"reserva.confirmacaoDaReserva.toastSucesso.tituloConfirmada")," "),n(2),d("ngIf",(t.reserva==null?null:t.reserva.parceiro)&&(t.reserva==null||t.reserva.parceiro==null?null:t.reserva.parceiro.usageType)=="earn")}}function du(i,r){i&1&&(s(0,"div",32)(1,"div"),h(2,"i-feather",33),s(3,"p",34),p(4),c(5,"translate"),l()(),s(6,"p",35),p(7),c(8,"translate"),l()()),i&2&&(n(4),f(" ",u(5,2,"reserva.confirmacaoDaReserva.toastInformativo.titulo")," "),n(3),f(" ",u(8,4,"reserva.confirmacaoDaReserva.toastInformativo.descricao")," "))}function pu(i,r){if(i&1){let t=k();s(0,"div",11)(1,"ds-new-button",36),b("click",function(){P(t);let a=g(2);return S(a.imprimirReserva())}),h(2,"i-feather",37),p(3),c(4,"translate"),l()()}i&2&&(n(3),f(" ",u(4,1,"reserva.confirmacaoDaReserva.botoesDeAcoesNoHeader.imprimir")," "))}function mu(i,r){i&1&&(s(0,"div",41),h(1,"app-info",42),c(2,"translate"),c(3,"translate"),l()),i&2&&(n(),d("title",u(2,3,"components.dumbs.fastPhysicalAddOn.title"))("description",u(3,5,"components.dumbs.fastPhysicalAddOn.description"))("imageUrl","assets/icons/icon-fast-with-additional.svg"))}function uu(i,r){i&1&&(s(0,"div",43),h(1,"app-card-informativo-pass"),l())}function fu(i,r){if(i&1&&(s(0,"div",38),C(1,mu,4,7,"div",39)(2,uu,2,0,"div",40),l()),i&2){let t=g(2);n(),d("ngIf",t.shouldShowFastCounterAddOnAlert),n(),d("ngIf",t.exibirInformativoPass)}}function gu(i,r){i&1&&(s(0,"div",4)(1,"div",44),h(2,"app-download-fast"),l()())}function _u(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2){let t=g(2);n(),f(" ",u(2,1,t.isPrePagamentoColombia?"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaPrePago.titulo":"reserva.confirmacaoDaReserva.politicaDeCancelamento.titulo")," ")}}function hu(i,r){i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombia.titulo")," "))}function vu(i,r){i&1&&(V(0),s(1,"p"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),c(6,"translate"),l(),s(7,"p"),p(8),c(9,"translate"),l(),z()),i&2&&(n(2),f(" ",u(3,3,"reserva.confirmacaoDaReserva.politicaDeCancelamento.argentina.politicaA")," "),n(3),f(" ",u(6,5,"reserva.confirmacaoDaReserva.politicaDeCancelamento.argentina.politicaB")," "),n(3),f(" ",u(9,7,"reserva.confirmacaoDaReserva.politicaDeCancelamento.argentina.politicaC")," "))}function Cu(i,r){i&1&&(V(0),s(1,"p"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),c(6,"translate"),l(),s(7,"p"),p(8),c(9,"translate"),l(),z()),i&2&&(n(2),f(" ",u(3,3,"reserva.confirmacaoDaReserva.politicaDeCancelamento.urugruai.politicaA")," "),n(3),f(" ",u(6,5,"reserva.confirmacaoDaReserva.politicaDeCancelamento.urugruai.politicaB")," "),n(3),f(" ",u(9,7,"reserva.confirmacaoDaReserva.politicaDeCancelamento.urugruai.politicaC")," "))}function bu(i,r){i&1&&(V(0),h(1,"p",45),c(2,"translate"),h(3,"p",45),c(4,"translate"),h(5,"p",45),c(6,"translate"),h(7,"p",45),c(8,"translate"),h(9,"p",45),c(10,"translate"),h(11,"p",45),c(12,"translate"),z()),i&2&&(n(),d("innerHtml",u(2,6,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombia.politicaA"),te),n(2),d("innerHtml",u(4,8,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombia.politicaB"),te),n(2),d("innerHtml",u(6,10,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombia.politicaC"),te),n(2),d("innerHtml",u(8,12,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombia.politicaD"),te),n(2),d("innerHtml",u(10,14,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombia.politicaE"),te),n(2),d("innerHtml",u(12,16,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombia.politicaF"),te))}function xu(i,r){i&1&&(s(0,"section",46),V(1),h(2,"p",47),c(3,"translate"),h(4,"p",48),c(5,"translate"),h(6,"p",48),c(7,"translate"),h(8,"p",48),c(9,"translate"),h(10,"p",48),c(11,"translate"),h(12,"p",48),c(13,"translate"),h(14,"p",48),c(15,"translate"),h(16,"p",48),c(17,"translate"),s(18,"div",49),h(19,"span",48),c(20,"translate"),s(21,"p",50)(22,"a",51),c(23,"translate"),p(24),c(25,"translate"),l()()(),z(),l()),i&2&&(n(2),d("innerHtml",u(3,12,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaTarifaFlanker.titulo"),te),n(2),d("innerHtml",u(5,14,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaTarifaFlanker.subtitulo"),te),n(2),d("innerHtml",u(7,16,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaTarifaFlanker.politicaB"),te),n(2),d("innerHtml",u(9,18,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaTarifaFlanker.politicaC"),te),n(2),d("innerHtml",u(11,20,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaTarifaFlanker.politicaD"),te),n(2),d("innerHtml",u(13,22,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaTarifaFlanker.politicaE"),te),n(2),d("innerHtml",u(15,24,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaTarifaFlanker.politicaF"),te),n(2),d("innerHtml",u(17,26,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaTarifaFlanker.politicaG"),te),n(3),d("innerHtml",u(20,28,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaTarifaFlanker.termosCondicoes"),te),n(3),d("href",Re(u(23,30,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaTarifaFlanker.linkTermosCondicoes")),bt),n(2),D(u(25,32,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaTarifaFlanker.linkTermosCondicoesText")))}function Pu(i,r){i&1&&(V(0),h(1,"p",45),c(2,"translate"),h(3,"p",45),c(4,"translate"),h(5,"p",45),c(6,"translate"),h(7,"p",45),c(8,"translate"),z()),i&2&&(n(),d("innerHtml",u(2,4,"reserva.confirmacaoDaReserva.politicaDeCancelamento.mexico.politicaA"),te),n(2),d("innerHtml",u(4,6,"reserva.confirmacaoDaReserva.politicaDeCancelamento.mexico.politicaB"),te),n(2),d("innerHtml",u(6,8,"reserva.confirmacaoDaReserva.politicaDeCancelamento.mexico.politicaC"),te),n(2),d("innerHtml",u(8,10,"reserva.confirmacaoDaReserva.politicaDeCancelamento.mexico.politicaD"),te))}function Su(i,r){if(i&1){let t=k();V(0),h(1,"p",45),c(2,"translate"),h(3,"p",45),c(4,"translate"),s(5,"p",52),p(6),c(7,"translate"),s(8,"a",53),b("keydown",function(a){P(t);let o=g(2);return S(o.openDialogTerms(a))})("click",function(){P(t);let a=g(2);return S(a.openDialogTerms())}),p(9),c(10,"translate"),l()(),z()}i&2&&(n(),d("innerHtml",u(2,4,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaPrePago.politica"),te),n(2),d("innerHtml",u(4,6,"reserva.confirmacaoDaReserva.politicaDeCancelamento.colombiaPrePago.politicaBulletPoints"),te),n(3),f(" ",u(7,8,"reserva.confirmacao.detallesConsultaPrefix")," "),n(3),f(" ",u(10,10,"reserva.confirmacao.termosCondicoes")," "))}function yu(i,r){i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.confirmacaoDaReserva.politicaDeCancelamento.politicaD")," "))}function Mu(i,r){if(i&1&&(V(0),s(1,"p"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),c(6,"translate"),l(),s(7,"p"),p(8),c(9,"translate"),l(),C(10,yu,3,3,"p",21),s(11,"p"),p(12),c(13,"translate"),l(),z()),i&2){let t=g(2);n(2),f(" ",u(3,5,"reserva.confirmacaoDaReserva.politicaDeCancelamento.politicaA")," "),n(3),f(" ",u(6,7,"reserva.confirmacaoDaReserva.politicaDeCancelamento.politicaB")," "),n(3),f(" ",u(9,9,"reserva.confirmacaoDaReserva.politicaDeCancelamento.politicaC")," "),n(2),d("ngIf",(t.dad
1osReserva==null?null:t.dadosReserva.codigoPaisAgenciaRetirada)!="0057"),n(2),f(" ",u(13,11,"reserva.confirmacaoDaReserva.politicaDeCancelamento.politicaE")," ")}}function Du(i,r){i&1&&(s(0,"div",54)(1,"h4"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),c(6,"translate"),s(7,"span"),p(8),c(9,"translate"),l()(),s(10,"p"),p(11),c(12,"translate"),s(13,"span"),p(14),c(15,"translate"),l()(),s(16,"p"),p(17),c(18,"translate"),s(19,"span"),p(20),c(21,"translate"),l()(),s(22,"p"),p(23),c(24,"translate"),s(25,"span"),p(26),c(27,"translate"),l()(),s(28,"p"),p(29),c(30,"translate"),s(31,"span"),p(32),c(33,"translate"),l()(),s(34,"p"),p(35),c(36,"translate"),s(37,"span"),p(38),c(39,"translate"),l()()()),i&2&&(n(2),D(u(3,13,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.title")),n(3),f(" ",u(6,15,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaA.title"),": "),n(3),f(" ",u(9,17,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaA.description")," "),n(3),f(" ",u(12,19,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaB.title"),": "),n(3),f(" ",u(15,21,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaB.description")," "),n(3),f(" ",u(18,23,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaC.title"),": "),n(3),f(" ",u(21,25,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaC.description")," "),n(3),f(" ",u(24,27,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaD.title"),": "),n(3),f(" ",u(27,29,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaD.description")," "),n(3),f(" ",u(30,31,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaE.title"),": "),n(3),f(" ",u(33,33,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaE.description")," "),n(3),f(" ",u(36,35,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaF.title"),": "),n(3),f(" ",u(39,37,"reserva.confirmacaoDaReserva.politicaDeCancelamento.localiza.politicaF.description")," "))}function wu(i,r){i&1&&h(0,"app-doters-cancellation-policy")}function Ou(i,r){if(i&1){let t=k();s(0,"div",58)(1,"ds-new-button",56),b("click",function(){P(t);let a=g(3);return S(a.alterarReserva())}),h(2,"i-feather",59),p(3),c(4,"translate"),l()()}if(i&2){let t=g(3);n(),d("disabled",t.reserva==null?null:t.reserva.reservaSobConsulta)("fullwidth",!0),n(2),f(" ",u(4,3,"reserva.confirmacaoDaReserva.botoesDeAcoesNoFooter.editarReserva")," ")}}function ku(i,r){if(i&1){let t=k();C(0,Ou,5,5,"div",55),s(1,"div",25)(2,"ds-new-button",56),b("click",function(){P(t);let a=g(2);return S(a.cancelarReserva())}),h(3,"i-feather",57),p(4),c(5,"translate"),l()()}if(i&2){let t=g(2);d("ngIf",!t.isPrePagamentoMexico&&!t.isPrePagamentoColombia&&(t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.usageType)!=="use"),n(2),d("disabled",t.reserva==null?null:t.reserva.reservaSobConsulta)("fullwidth",!0),n(2),f(" ",u(5,4,"reserva.confirmacaoDaReserva.botoesDeAcoesNoFooter.cancelarReservar")," ")}}function Iu(i,r){if(i&1){let t=k();V(0),s(1,"a",62),b("click",function(){let a=P(t).$implicit,o=g(3);return S(o.clickImage(a.href))}),h(2,"img",63),l(),z()}if(i&2){let t=r.$implicit,e=r.index;n(),Xt("img-informativas__content--"+(e+1)),n(),d("src",t.src,bt)}}function Tu(i,r){if(i&1&&(s(0,"div",4)(1,"div",60),C(2,Iu,3,3,"ng-container",61),l()()),i&2){let t=g(2);n(),d("ngClass","img-informativas--"+(t.imagensComLink==null?null:t.imagensComLink.length)),n(),d("ngForOf",t.imagensComLink)}}function Au(i,r){if(i&1&&(s(0,"div",4)(1,"div",5),h(2,"app-toast-erro",64),l()()),i&2){let t=g(2);n(2),d("mensagensErro",t.mensagensErro)}}function Eu(i,r){if(i&1){let t=k();s(0,"div",4)(1,"div",5),C(2,cu,6,4,"div",6)(3,du,9,6,"div",7),l()(),s(4,"header",8)(5,"div",9)(6,"h3",10),p(7),c(8,"translate"),l()(),B(9,pu,5,3,"div",11),l(),s(10,"div",4)(11,"div",12),h(12,"app-resumo-da-compra",13),l()(),C(13,fu,3,2,"div",14)(14,gu,3,0,"div",15),s(15,"div",4)(16,"div",16),h(17,"app-para-retirar-seu-carro",17),l()(),s(18,"div",4)(19,"div",18),h(20,"app-valores-do-seu-contrato",19),l()(),s(21,"div",4)(22,"div",5)(23,"section",20),C(24,_u,3,3,"p",21)(25,hu,3,3,"p",21)(26,vu,10,9,"ng-container",21)(27,Cu,10,9,"ng-container",21)(28,bu,13,18,"ng-container",21)(29,xu,26,34,"section",22)(30,Pu,9,12,"ng-container",21)(31,Su,11,12,"ng-container",21)(32,Mu,14,13,"ng-container",21)(33,Du,40,39,"div",23)(34,wu,1,0,"app-doters-cancellation-policy",21),l()()(),s(35,"div",24),B(36,
1ku,6,6),s(37,"div",25)(38,"ds-new-button",26),c(39,"translate"),b("click",function(){P(t);let a=g();return S(a.handleRedirectHomeApp())}),h(40,"loc-icon",27),p(41),l()()(),C(42,Tu,3,2,"div",15)(43,Au,3,1,"div",15)}if(i&2){let t=g();n(2),d("ngIf",!(t.reserva!=null&&t.reserva.reservaSobConsulta)),n(),d("ngIf",t.reserva==null?null:t.reserva.reservaSobConsulta),n(4),f(" ",u(8,34,"reserva.confirmacaoDaReserva.tituloDaPagina")," "),n(2),F(t.isWebview?-1:9),n(3),d("dadosCompra",t.dadosCompraConfirmacao),n(),d("ngIf",t.shouldShowFastCounterAddOnAlert||t.exibirInformativoPass),n(),d("ngIf",t.reserva==null?null:t.reserva.reservaFast),n(3),d("reserva",t.reserva)("reservaFast",t.reserva==null?null:t.reserva.reservaFast)("tipoDocumento",t.dadosReserva==null||t.dadosReserva.cliente==null?null:t.dadosReserva.cliente.tipoDocumento)("codigoAgenciaRetirada",(t.dadosReserva==null?null:t.dadosReserva.codigoPaisAgenciaRetirada)||(t.reserva==null||t.reserva.agenciaRetirada==null||t.reserva.agenciaRetirada.cidade==null?null:t.reserva.agenciaRetirada.cidade.codigoPais)),n(3),d("valoresDoContrato",t.valoresDoContrato)("taxaDeAluguelMexico",t.taxaDeAluguelMexico)("isBrasil",t.isBrasil)("agenciaBrasileira",t.bookIsBrazil)("agenciaColombiana",t.bookIsColombia),n(4),d("ngIf",!t.bookIsMexico&&!t.bookIsColombia||t.isPrePagamentoMexico||t.isPrePagamentoColombia),n(),d("ngIf",t.bookIsColombia&&!t.isPrePagamentoColombia&&!t.isFlanker),n(),d("ngIf",t.bookIsArgentina),n(),d("ngIf",t.bookIsUruguai),n(),d("ngIf",!t.isPrePagamentoColombia&&(t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.usageType)!=="use"&&!t.isFlanker),n(),d("ngIf",t.bookIsColombia&&t.isFlanker),n(),d("ngIf",t.bookIsMexico&&t.isPrePagamentoMexico),n(),d("ngIf",t.isPrePagamentoColombia),n(),d("ngIf",!t.bookIsArgentina&&!t.bookIsUruguai&&!t.bookIsColombia&&!t.bookIsMexico),n(),d("ngIf",(t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.usageType)==="use"),n(),d("ngIf",(t.valoresDoContrato==null||t.valoresDoContrato.parceiro==null?null:t.valoresDoContrato.parceiro.usageType)==="use"),n(2),F(t.webviewService.isWebView()?-1:36),n(2),d("fullwidth",!0)("tagType",t.webviewService.isWebView()?"button":"anchor")("href",u(39,36,"url.home")),n(3),f(" ",t.backbuttonValue()," "),n(),d("ngIf",(t.imagensComLink==null?null:t.imagensComLink.length)>0),n(),d("ngIf",(t.mensagensErro==null?null:t.mensagensErro.length)>0)}}var we={MENSAGEM_RESERVA_INCOMPLETA:"reserva.confirmacao.mensagemReservaIncompleta",URL_HOME:"url.home",URL_MINHAS_RESERVAS:"url.reserva.minhasReservasDeslogado",SEOTITLE:"minhasReservas.detalheReserva.seoTitle",MENSAGEMERROALTERAR:"minhasReservas.detalheReserva.mensagemErroAlterar",MENSAGEMERROCANCELAR:"minhasReservas.detalheReserva.mensagemErroCancelar",MENSAGEMMODAL:"minhasReservas.detalheReserva.modalAlteracao.mensagemModal",MENSAGEMMODALNAO:"minhasReservas.detalheReserva.modalAlteracao.tituloBotaoNao",MENSAGEMMODALSIM:"minhasReservas.detalheReserva.modalAlteracao.tituloBotaoSim",URLHOME:"url.home",URLALTERARESERVA:"url.reserva.alterarReservas",URLCONSULTARESERVA:"url.reserva.minhasReservasDeslogado",URLMINHARESERVA:"url.reserva.minhasReservasLogado",MENSAGEMMODALCANCELARACAO:"minhasReservas.detalheReserva.modalCancelar.textoAcao",MENSAGEMMODALCANCELARINFORMACAO:"minhasReservas.detalheReserva.modalCancelar.textoInformacao",MENSAGEMMODALCANCELARSIM:"minhasReservas.detalheReserva.modalCancelar.tituloBotaoSim",MENSAGEMMODALCANCELARNAO:"minhasReservas.detalheReserva.modalCancelar.tituloBotaoNao",MENSAGEMMODALCANCELARTITULO:"minhasReservas.detalheReserva.modalCancelar.tituloModal",MENSAGEMMODALCANCELARERRO:"minhasReservas.detalheReserva.modalCancelar.mensagemErro",MENSAGEMMODALSUCESSO:"minhasReservas.detalheReserva.modalSucesso.mensagemSucesso"},Rc=(()=>{let r=class r{constructor(e,a,o,m,_,x,O,R,K,me,ke,qe,at,Pt,Ct,Ht,At,Gi,St){this.dialog=e,this.router=a,this.reservaService=o,this.reservaStore=m,this.agenciaService=_,this.internacionalizacaoService=x,this.bpService=O,this.translateService=R,this.googleAnalyticsService=K,this.progressSpinner=me,this.navigationFlowService=ke,this.authService=qe,this._hubConnectionService=at,this.parceiroService=Pt,this.monitoringService=Ct,this.featureFlagService=Ht,this.cookieService=At,this.insiderService=Gi,this.platform=St,this.conteudoVazio=!0,this.reservaCompleta=!0,this.displayInformativoPass=!1,this.permitePrePagamento=!1,this.agenciaRetirada=new cr,this.agenciaDevolucao=new cr,this.mensagensReserva=new Array,this.exibirInformativoPass=!1,this.editarReserva=!1,this.bookIsArgentina=!1,this.bookIsBrazil=!1,this.bookIsColombia=!1,this.bookIsUruguai=!1,this.bookIsMexico=!1,this.isFlanker=!1,this.imagens=[],this.imagensComLink=[],this.isPrePagamentoMexico=!1,this.isPrePagamentoColombia=!1,this.isWebview=!1,this.whatsappLinkColombia="https://api.whatsapp.com/se
1nd?phone=+573246035901&text=WhatsappLocaliza",this.webviewService=I(Pe),this.TARIFA_FLANKER="012396",this.isBrowser=Be(this.platform)}handleRedirectHomeApp(){if(this.webviewService.isWebView()){Bi();return}this.isBrowser&&Ha()}ngOnInit(){this.isWebview=this.webviewService.isWebView();let e=history?.state;this.parceiroService.limparParceiro(),this.bpService.isDesktop.subscribe(a=>this.isDesktop=a),this.breadCrumb=[{label:"breadCrumbs.confirmacaoReserva.label",url:"url.reserva.confirmacao"}],this.getReserva(),this.modalWidth=this.isDesktop?"30vw":"100%",this.modalHeight=this.isDesktop?"50vh":"100%",this.isBrasil=this.internacionalizacaoService.recuperarCodigoPais()===le,this.googleAnalyticsService.preencherDataLayer({event:"sendEvent",eventCategory:"PagoAntecipado"}),this.isBrowser&&e?.dadosReserva&&this.openModalAddress()}ngOnDestroy(){this.subscriptionRoute?.unsubscribe(),this.bpSubscription?.unsubscribe(),this.isBrowser&&localStorage.setItem("controlledKmSelected",""),this.editarReserva||(this.reservaStore.actions.emit({type:ie.LIMPAR}),this.parceiroService.limparParceiro())}backbuttonValue(){return this.isWebview?this.translateService.instant("webView.confirmacao.voltar"):this.translateService.instant("reserva.confirmacaoDaReserva.botoesDeAcoesNoFooter.irPraHome")}openModalAddress(){this.dialog.open(yc,{data:history?.state,autoFocus:!1,height:this.isDesktop?"auto":"90vh",maxWidth:this.isDesktop?"800px":"95vw"})}subspermitePrePagamento(){this.permitePrePagamento&&this._hubConnectionService.subscribeTopicPrePagamentoAprovado(this.reserva.localizador)}novaReservaPreencherDataLayer(){this.alteracaoReserva||(this.preencherDataLayer(this.reserva),this.preencherDataLayerPurchase())}getReserva(){this.subscriptionRoute=this.reservaStore.state$.subscribe(e=>{if(!e.reserva.reservaRealizadaNr){this.translateService.get(we.URL_HOME).pipe(w(1)).subscribe(a=>{this.router.navigate([a])});return}if(this.dadosReserva=e.reserva,this.reserva=e.reserva.reservaRealizadaNr,this.reservaCompleta=this.reserva.reservaCompleta,this.isPrePagamentoMexico=this.dadosReserva?.isPrePagamentoMexico,this.permitePrePagamento=this.reserva?.permitePrePagamento?this.reserva?.permitePrePagamento:!1,this.subspermitePrePagamento(),this.alteracaoReserva=e.reserva.alteracaoReserva,this.novaReservaPreencherDataLayer(),this.reservaCompleta){this.conteudoVazio=this.reserva.informacoesDaReserva==null||this.reserva.informacoesDaReserva.length===0,this.conteudoVazio||(this.mensagensReserva=new Array,this.reserva.informacoesDaReserva.forEach(o=>{let m=new kl;m.conteudo=o.conteudo,m.tipoConteudo=o.tipoConteudo,this.mensagensReserva.push(m)})),this.filtraImagensComLink(),this.isFlanker=this.reserva.tarifa?.codigo===this.TARIFA_FLANKER,this.bookIsArgentina=this.dadosReserva?.codigoPaisAgenciaRetirada===Yi||this.reserva?.agenciaRetirada?.cidade?.codigoPais==="Argentina",this.bookIsBrazil=this.dadosReserva?.codigoPaisAgenciaRetirada===le||this.reserva?.agenciaRetirada?.cidade?.codigoPais==="Brasil",this.bookIsColombia=this.dadosReserva?.codigoPaisAgenciaRetirada===Fe||this.reserva?.agenciaRetirada?.cidade?.codigoPais==="Colombia",this.bookIsUruguai=this.dadosReserva?.codigoPaisAgenciaRetirada===ol||this.reserva?.agenciaRetirada?.cidade?.codigoPais==="Uruguai",this.bookIsMexico=this.dadosReserva?.codigoPaisAgenciaRetirada===pe||this.reserva?.agenciaRetirada?.cidade?.codigoPais==="Mexico";let a=!!this.dadosReserva?.reservaRealizadaNr?.prePagamento;this.isPrePagamentoColombia=a&&this.bookIsColombia,this.bookIsBrazil&&this.agenciaService.getElegibilidadePass(this.dadosReserva?.codigoAgenciaRetirada,this.dadosReserva?.quantidadeDiarias||this.reserva.valoresReserva.quantidadeDiarias).pipe(w(1)).subscribe(o=>this.exibirInformativoPass=o.elegivelPass),this.dadosCompraConfirmacao={codigoDaReserva:this.reserva?.localizador,cultura:this.reserva?.cultura,reservaSobConsulta:this.reserva?.reservaSobConsulta,retirada:{nomeFantasia:this.reserva?.agenciaRetirada.nomeFantasia,enderecos:this.reserva?.agenciaRetirada.enderecos,data:this.reserva?.dataHoraRetirada},devolucao:{nomeFantasia:this.reserva?.agenciaDevolucao.nomeFantasia,enderecos:this.reserva?.agenciaDevolucao.enderecos,data:this.reserva?.dataHoraDevolucao},grupoSelecionado:{codigoLocaliza:this.reserva?.grupoVeiculo?.codigoLocaliza,nome:this.reserva?.grupoVeiculo?.nome,veiculos:this.reserva?.grupoVeiculo?.veiculos.map(o=>({nome:o.nome,padraoGrupo:o.padraoGrupo}))}},this.valoresDoContrato={nomeOferta:this.dadosReserva?.ofertaSelecionada?.descricao||"Oferta",moeda:this.reserva?.valoresReserva.moeda,quantidadeDiarias:this.reserva?.valoresReserva.quantidadeDiarias,quantidadeHorasExtras:this.reserva?.valoresReserva.quantidadeHorasExtras,valorDiariaSemCombo:this.reserva?.valoresReserva.valorDiariaSemCombo,valorLiquidoDiaria:this.reserva?.valoresReserva.valorLiquidoDiaria,valorLiquidoSemCodigoPromocional:this.reserva?.valoresReserva.valorLiquidoSemCodigoPromocional,valorTotalDiaria:this.reserva?.valoresReserva.valorTotalDiaria,valorTotal:this.dadosReserva?.parceiro?.data?.TotalPesos!=null?this.dadosReserva?.parceiro?.data.TotalPesos:this.reserva?.valoresReserva.valorTotal,valorTotalDiariaSemCodigoPromocional:this.reserva?.valoresReserva?.valorTotalDiariaSemCodigoPromocional,noShow:this.dadosReserva.ofertaSelecionada?.noShow.cobrar||!1,adicionaisReserva:this.reserva?.adicionaisReserva,pacoteAdicionais:this.reserva?.pacoteAdicionais,taxaRetorno:this.reserva?.valoresReserva.taxaRetorno,taxaServico:this.reserva?.valoresReserva.taxaServico,outrosValores:this.reserva?.valoresReserva.outrosValores,numeroParcelas:this.reserva?.valoresReserva.numeroParcelas,valorParcelas:this.reserva?.valoresReserva.valorParcela,preAutorizacao:{exibirPreAutorizacao:this.dadosReserva?.exibirPreAutorizacao,valorPreAutorizacao:this.dadosReserva?.valorPreAutorizacao},upgrade:{exiteUpgrade:this.reserva?.upgrade,grupoOriginal:this.reserva?.codigoLocalizaGrupoVeiculoOriginal,grupoComUpgrade:this.reserva?.grupoVeiculo.codigoLocaliza},desconto:{existeDescontoPromocional:this.hasPrePaidDiscountApplied()||this.reserva?.valoresReserva.existeDescontoPromocional,descontoCodigoPromocional:this.getPrePaidOrPromotionalDiscount()},percentualTaxaServico:this.reserva?.valoresReserva?.percentualTaxaServico,quilometragemControlada:this.dadosReserva?.ofertaSelecionada?.quilometragemControlada||this.dadosReserva.quilometragemControlada,mensalidades:this.dadosReserva?.ofertaSelecionada?.mensalidades,parceiro:this.dadosReserva?.parceiro?.data?{valorPontos:this.dadosReserva?.parceiro?.data?.TotalPoints||0,valorMoeda:this.dadosReserva?.parceiro?.data?.TotalPesos||0,usageType:this.dadosReserva?.parceiro?.usageType}:void 0},this.isPrePagamentoMexico&&(this.valoresDoContrato.nomeOferta=this.translateService.instant("prePagamento.meioPagamento.Link")),this.taxaDeAluguelMexico=this.reserva?.agenciaRetirada?.cidade?.codigoPais==="Mexico",this.removeIvaForColombia()}else this.translateService.get(we.MENSAGEM_RESERVA_INCOMPLETA).pipe(w(1)).subscribe(a=>{this.mensagensReservaInformativa=a})},e=>
1{e.status===404?this.translateService.get(we.URL_MINHAS_RESERVAS).pipe(w(1)).subscribe(a=>{this.router.navigate([a])}):this.erroInterno=!0})}getCodigoPaisAgenciaRetirada(){return this.reserva?.agenciaRetirada?.enderecos?.find(a=>a.tipo.toLowerCase()==="retirada")?.codigoPais}removeIvaForColombia(){this.bookIsColombia&&this.valoresDoContrato?.outrosValores?.length&&(this.valoresDoContrato.outrosValores=this.valoresDoContrato?.outrosValores?.filter(e=>e.descricao?.toUpperCase()!==sn.Iva))}imprimirReserva(){window.print()}filtraImagensComLink(){let e=/href="([^"]*)"/,a=/src="([^"]*)"/;this.imagensComLink=this.reserva?.informacoesDaReserva?.filter(o=>{if(o.tipoConteudo==="Html"){let m=o.conteudo.indexOf("<a "),_=o.conteudo.indexOf("</a>"),x=o.conteudo.indexOf("<img ");if(m!==-1&&_!==-1&&x!==-1&&m<x&&x<_)return!0}return!1}).map(o=>{let m=o.conteudo.match(e),_=o.conteudo.match(a),x=m?m[1].replace(/:/g,":"):null,O=_?_[1].replace(/:/g,":"):null;return{href:x,src:O}}),this.imagensComLink?.length>0&&this.sendImageEvent("impression")}clickImage(e){this.sendImageEvent("clicked"),window.open(e,"noopener,noreferrer")}sendImageEvent(e){this.monitoringService.sendEvent({component:"confirmation_banner",action:e})}alterarReserva(){if(this.isPrePagamentoColombia&&this.isBrowser){window.open(this.whatsappLinkColombia,"_blank","noopener");return}if(!this.reserva?.reservaSobConsulta)if(this.reserva?.somenteLeitura){this.translateService.get(we.MENSAGEMERROALTERAR).pipe(w(1)).subscribe(e=>{this.mensagensErro.push(e)});return}else this.reserva.agenciaRetirada&&this.reserva.agenciaRetirada.agenciaParceiro?this.translateService.get(we.MENSAGEMERROCANCELAR).pipe(w(1)).subscribe(e=>{this.mensagensErro.push(e)}):this.exibirModalConfirmarAlteracao()}exibirModalConfirmarAlteracao(){this.translateService.get([we.MENSAGEMMODAL,we.MENSAGEMMODALNAO,we.MENSAGEMMODALSIM,we.URLHOME,we.URLALTERARESERVA]).pipe(w(1)).subscribe(e=>{this.dialog.open(Tl,{width:"385px",autoFocus:!1,data:{alteraReserva:null,mensagemModal:e[we.MENSAGEMMODAL],tituloBotaoNao:e[we.MENSAGEMMODALNAO],tituloBotaoSim:e[we.MENSAGEMMODALSIM],opcoes:!0}}).afterClosed().pipe(w(1)).subscribe(o=>{if(o)if(this.reservaService.setReservaChangeData(this.reserva),this.progressSpinner.spin$.next(!0),this.preencherStoreFluxoReserva(),this.progressSpinner.spin$.next(!1),this.editarReserva=!0,o==="0"){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"Altera\xE7\xE3o de Reserva",action:"Altera\xE7\xE3o Dados",label:"Altera\xE7\xE3o Dados Pessoais"});let m=this.getCodigoPaisAgenciaRetirada();this.router.navigate([e[we.URLALTERARESERVA]],{queryParams:{codigoPaisAgenciaRetirada:m}})}else this.navigationFlowService.reinitializeTopbar$.next(!0),this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"Altera\xE7\xE3o de Reserva",action:"Altera\xE7\xE3o Geral",label:"Altera\xE7\xE3o Geral"}),this.router.navigate([e[we.URLHOME]])})})}preencherStoreFluxoReserva(){let e=new Date(this.reserva?.dataHoraRetirada),a=new Date(this.reserva?.dataHoraDevolucao),o={nomeAgenciaRetirada:this.reserva?.agenciaRetirada?.nome?.toLowerCase(),codigoAgenciaRetirada:this.reserva?.agenciaRetirada?.codigoLocaliza,dataRetirada:e,horaRetirada:this.obterHoraMinuto(e),nomeAgenciaDevolucao:this.reserva?.agenciaDevolucao?.nome?.toLowerCase(),codigoAgenciaDevolucao:this.reserva?.agenciaDevolucao?.codigoLocaliza,dataDevolucao:a,horaDevolucao:this.obterHoraMinuto(a),agenciaParceira:this.reserva?.agenciaRetirada?.agenciaParceiro,idCotacao:"",codigoPaisAgenciaRetirada:this.reserva?.agenciaRetirada?.cidade?.codigoPais,codigoPais:this.getCodigoPaisAgenciaRetirada(),codigoPromocional:this.reserva?.codigoPromocional,utilizarPontosFidelidade:this.reserva?.utilizarPontosFidelidade,alteracaoReserva:!0,cliente:this.dadosReserva?.cliente,localizador:this.reserva?.localizador,adicionaisReserva:this.reserva?.adicionaisReserva,agenciaFranqueado:this.reserva?.agenciaRetirada?.agenciaFranqueado};o.tipoRetirada=this.reserva?.reservaFast?ee.FAST:ee.BALCAO,this.reservaStore.actions.emit({type:ie.ADICIONAR,payload:o})}obterHoraMinuto(e){let a=e.getHours().toString(),o=e.getMinutes();return a.length===1?`0${a}:${o===0?"00":o}`:`${a}:${o===0?"00":o}`}cancelarReserva(){this.reserva?.reservaSobConsulta||(this.reserva.agenciaRetirada&&this.reserva.agenciaRetirada.agenciaParceiro?this.translateService.get("minhasReservas.detalheReserva.mensagemErroCancelar").pi
1pe(w(1)).subscribe(e=>{this.mensagensErro.push(e)}):this.exibirModalConfirmarCancelamento())}openDialogSuccess(){this.dialog.open(Rl,{maxWidth:this.modalWidth,maxHeight:this.modalHeight,panelClass:"matDialog100Percent"})}openDialogError(){this.dialog.open(El,{maxWidth:this.modalWidth,maxHeight:this.modalHeight,panelClass:"matDialog100Percent"})}openDialogTerms(e=null){e&&!Al.eventMark(e)||this.dialog.open(Ji,{maxWidth:this.isDesktop?"60vw":"100%",maxHeight:this.isDesktop?"80vh":"100%",panelClass:"matDialog100Percent",data:this.dadosReserva?.codigoPaisAgenciaRetirada})}exibirModalConfirmarCancelamento(){this.translateService.get([we.MENSAGEMMODALCANCELARACAO,we.MENSAGEMMODALCANCELARINFORMACAO,we.MENSAGEMMODALCANCELARSIM,we.MENSAGEMMODALCANCELARNAO,we.MENSAGEMMODALCANCELARERRO,we.MENSAGEMMODALCANCELARTITULO]).pipe(w(1)).subscribe(e=>{this.dialog.open(Il,{maxHeight:"auto",maxWidth:"90vw",width:"50rem",autoFocus:!1,data:{motivoCancelamentoSelecionado:null,tituloBotaoPrimario:e[we.MENSAGEMMODALCANCELARNAO],tituloBotaoSecundario:e[we.MENSAGEMMODALCANCELARSIM],tituloModal:e[we.MENSAGEMMODALCANCELARTITULO],noShow:this.reserva?.noShow}}).afterClosed().pipe(w(1)).subscribe(o=>{if(o){this.progressSpinner.spin$.next(!0);let m={localizador:this.reserva.localizador,statusReserva:50,motivoCancelamentoReserva:o,documento:this.reserva.numeroDocumento};this.reservaService.alterarStatusReserva(m).pipe(w(1)).subscribe(()=>{this.progressSpinner.spin$.next(!1),this.exibirModalSucesso()},()=>{this.progressSpinner.spin$.next(!1),this.mensagensErro?.push(e[we.MENSAGEMMODALCANCELARERRO])})}})})}exibirModalSucesso(){this.isBrowser&&window.scrollTo(0,0);let e=this.authService.autenticado();this.translateService.get([we.MENSAGEMMODALSUCESSO,we.URLMINHARESERVA,we.URLCONSULTARESERVA]).pipe(w(1)).subscribe(a=>{let o=e?a[we.URLMINHARESERVA]:a[we.URLCONSULTARESERVA];this.dialog.open(sl,{disableClose:!0,maxWidth:this.isDesktop?"20vw":"100%",maxHeight:this.isDesktop?"25vh":"100%",panelClass:"matDialog100Percent",data:{mensagemSucesso:a[we.MENSAGEMMODALSUCESSO],rotaRedirecionamento:o,novoModal:!0}})})}preencherDataLayer(e){if(this.isBrowser){window.dataLayer=window.dataLayer||[];let a={event:"PaginaConclusao-Event",currency:e.valoresReserva.moeda,transactionId:e.localizador,transactionAffiliation:this.getQueryStringParameterByName("utm_source",window.location.href),transactionTotal:e.valoresReserva.valorTotal,transactionTax:e.valoresReserva.taxaServico,transactionShipping:e.valoresReserva.taxaRetorno,transactionProducts:[]};if(this.reservaCompleta){let o={sku:e.grupoVeiculo.codigoLocaliza+" - "+e.grupoVeiculo.nome,name:this.getNomeCarroPadrao(e.grupoVeiculo),category:e.grupoVeiculo.codigoLocaliza+" - "+e.grupoVeiculo.nome,price:e.valoresReserva.valorLiquidoDiaria,quantity:e.valoresReserva.quantidadeDiarias};if(e.codigoPromocional&&(o.promotionalCode=e.codigoPromocional),a.transactionProducts.push(o),e.valoresReserva.quantidadeHorasExtras>0){let m={sku:"Hora Extra",name:"Hora Extra",category:"Hora Extra",price:e.valoresReserva.valorHoraExtra,quantity:e.valoresReserva.quantidadeHorasExtras};a.transactionProducts.push(m)}e.adicionaisReserva!=null&&e.adicionaisReserva.length>0&&e.adicionaisReserva.forEach(m=>{let _={sku:m.nome,name:m.nome,category:"Adicional Simples",price:m.valor,quantity:m.quantidadeDeDiarias};a.transactionProducts.push(_)}),e.valoresReserva!=null&&e.valoresReserva.outrosValores!=null&&e.valoresReserva.outrosValores.length>0&&e.valoresReserva.outrosValores.forEach(m=>{let _={sku:m.descricao,name:m.descricao,category:"Outros Valores",price:m.valor,quantity:1};a.transactionProducts.push(_)})}window.dataLayer.push(a)}}getQueryStringParameterByName(e,a){this.isBrowser&&!a&&(a=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");let m=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(a);return!m||!m[2]?"":decodeURIComponent(m[2].replace(/\+/g," "))}getNomeCarroPadrao(e){let a=e?.veiculos?.find(m=>m.padraoGrupo===!0),o=e?.veiculos?.length===1?"":" ou similar";return a||(a=e?.veiculos[0]),a?.nome+o}preencherDataLayerPurchase(){let e={id:this.dadosReserva?.grupoSelecionado?.codigoLocaliza,name:this.getNomeCarroPadrao(this.dadosReserva.grupoSelecionado),category:this.dadosReserva.grupoSelecionado?.codigoLocaliza+" - "+this.dadosReserva.grupoSelecionado?.nome,price:this.dadosReserva.ofertaSelecionada?.tarifa.valorDiariaSemCombo,variant:this.dadosReserva.ofertaSelecionada?.descricao,quantity:this.dadosReserva.ofertaSelecionada?.quantidadeDiarias},a={id:this.dadosReserva?.ofertaSelecionada?.descricao.replace(/- /g,"").replace(/â /,"").replace(/ /g,"_").toUpperCase(),name:this.dadosReserva?.ofertaSelecionada?.descricao,category:"Pacotes",price:this.dadosReserva?.ofertaSelecionada?.tarifa?.valorDiariaSemCombo},o=this.dadosReserva?.ofertaSelecionada?.itens?.filter(K=>K.selecionado&&K.tipoItem===je.SERVICO).map(K=>({id:K.codigoAdicionalFrigga,name:K.descricao,category:"Opcionais",price:K.valor}))||[],m=this.dadosReserva?.ofertaSelecionada?.itens?.filter(K=>K.selecionado&&K.tipoItem===je.EQUIPAMENTO).map(K=>({id:K.codigoAdicionalFrigga,name:K.descricao,category:"Equipamentos",price:K.valor,quantity:K.quantidade}))||[],_=[e,a,...o,...m],x=this.dadosReserva?.reservaRealizadaNr?.codigoPromocional?.toLowerCase(),R=this.featureFlagService.valueFlag("coupons_awin").includes(x)?"Comissionamento_Padrao":"Comissionamento_1";this.dadosReserva?.quantidadeHorasExtras>0&&_.push({id:"HORA_EXTRA",name:"Hora Extra",category:"Opcionais",price:21,quantity:this.dadosReserva?.quantidadeHorasExtras}),this.sendDataDogEvent(),this.sendPrePaidBrasilMonitoringEvent(),this.googleAnalyticsService.preencherDataLayer({event:"eec.purchase",ecommerce:{currencyCode:this.dadosReserva?.ofertaSelecionada?.tarifa.moeda==="R$"?"BRL":this.dadosReserva.ofertaSelecionada?.tarifa.moeda,purchase:{actionField:{id:this.dadosReserva?.reservaRealizadaNr?.localizador?this.dadosReserva.reservaRealizadaNr.localizador:
1Math.floor(Math.random()*999999999999).toString(),action:"purchase",revenue:this.dadosReserva?.ofertaSelecionada?.valorTotal.toFixed(2).toString(),coupon:this.dadosReserva?.reservaRealizadaNr?.codigoPromocional?this.dadosReserva.reservaRealizadaNr.codigoPromocional:null,reserva_internacional:this.dadosReserva.codigoPaisAgenciaRetirada!=="0055",comiss_awin:R,protection_group_selected:this.dadosReserva?.reservaRealizadaNr?.pacoteAdicionais?.nome,tipo_reserva:"Comum"},products:_}},user_data:{email_address:this.dadosReserva?.cliente?.email,address:{first_name:this.dadosReserva?.cliente?.nome?.split(" ").slice(0,1).join(" "),last_name:this.dadosReserva?.cliente?.nome?.split(" ").slice(-1).join(" ")}}})}get isPrePaidBrasilAActivated(){return this.insiderService.prePaidBrasilAActivated()}get isPrePaidBrasilBActivated(){return this.insiderService.prePaidBrasilBActivated()}get isPrePaidBrasilCActivated(){return this.insiderService.prePaidBrasilCActivated()}get isPrePaidBrasilDActivated(){return this.insiderService.prePaidBrasilDActivated()}sendPrePaidBrasilMonitoringEvent(){if(!(this.isPrePaidBrasilAActivated||this.isPrePaidBrasilBActivated||this.isPrePaidBrasilCActivated||this.isPrePaidBrasilDActivated))return;let o=this.dadosReserva?.ofertas?.some(_=>_?.meioPagamento?.length>0)?this.insiderService.getPrePaidBrasilScenario():"version_refused",m=this.dadosReserva?.prepaidBrasilSelected?"purchase_pre_pay":"purchase_counter_pay";this.monitoringService.sendEvent({component:"reservation_pre_pay",action:m,componentDescription:o})}sendDataDogEvent(){let e=this.dadosReserva?.ofertas?.find(o=>o?.grupoVeiculo?.destaque),a={action:"impression",component:"reserva_criada",componentDescription:"submit",payload:{cotacao_id:this.dadosReserva?.idCotacao,coupon_code:this.dadosReserva?.reservaRealizadaNr?.codigoPromocional,currency:this.dadosReserva?.reservaRealizadaNr?.valoresReserva?.moeda,data_criacao:this.dadosReserva?.reservaRealizadaNr?.dataCriacaoReserva,data_inicio_reserva:this.dadosReserva?.reservaRealizadaNr?.dataHoraRetirada,data_fim_reserva:this.dadosReserva?.reservaRealizadaNr?.dataHoraDevolucao,origem:this.dadosReserva?.reservaRealizadaNr?.agenciaRetirada?.codigoLocaliza,destino:this.dadosReserva?.reservaRealizadaNr?.agenciaDevolucao?.codigoLocaliza,highlight_group:e?.grupoVeiculo?.codigoLocaliza,logado:this.authService.autenticado(),lor:this.dadosReserva?.escolheuLOR,number_of_nights:this.dadosReserva?.quantidadeDiarias,pickup_method:this.dadosReserva?.tipoRetiradaSelecionado,protection_group_selected:this.dadosReserva?.reservaRealizadaNr?.pacoteAdicionais?.nome,reservation_code:this.dadosReserva?.reservaRealizadaNr?.localizador,travel_calss:this.dadosReserva?.reservaRealizadaNr?.codigoLocalizaGrupoVeiculoOriginal,total_value:this.dadosReserva?.reservaRealizadaNr?.valoresReserva?.valorTotal,km_selected:!this.dadosReserva?.ofertaSelecionada?.quilometragemControlada?.controlada||this.dadosReserva?.ofertaSelecionada?.quilometragemControlada?.adicionalKmLivre?.selecionado?"Quilometragem Ilimitada":"Quilometragem Controlada",active_bot_manager:this.cookieService.get("x-ab")==="true",tipo_reserva:"Comum"}};this.monitoringService.sendEvent(a,Ys.Datadog)}getReservationSuccessMessage(){return this.parceiroService.getPartnerMessage("messagemSucessoReserva")}getSuccessTextLinkMessage(){return this.parceiroService.getPartnerMessage("messagemSucessoReservaTextoLink")}getSuccessLinkMessage(){return this.parceiroService.getPartnerMessage("messagemSucessoReservaLink")}get shouldShowFastCounterAddOnAlert(){let e=this.reserva?.reservaFast,a=this.dadosReserva?.ofertaSelecionada?.itens?.some(m=>m?.tipoItem===je.EQUIPAMENTO&&m?.selecionado)??!1;return(this.dadosReserva?.pickupTypeAlert?.some(m=>m?.chave===ur.FAST_COM_ADICIONAL_BALCAO)??!1)||e&&a}hasPrePaidDiscountApplied(){let e=this.dadosReserva?.ofertaSelecionada?.meioPagamento?.find(o=>o.tipo==="Link"&&o.valorPromocionalPrePago!=null),a=this.isPrePaidBrasilBActivated||this.isPrePaidBrasilCActivated||this.isPrePaidBrasilDActivated;return this.bookIsBrazil&&a&&!!e?.selecionado}getPrePaidOrPromotionalDiscount(){let e=this.dadosReserva?.ofertaSelecionada?.meioPagamento?.f
1ind(a=>a.tipo==="Link"&&a.valorPromocionalPrePago!=null);return this.hasPrePaidDiscountApplied()?e?.percentualDesconto:this.reserva?.valoresReserva.descontoCodigoPromocional}};r.\u0275fac=function(a){return new(a||r)(v(re),v(xe),v(Ut),v(fe),v(ml),v(it),v(De),v(G),v(Q),v(gt),v(Yt),v(Ye),v(Mc),v(rn),v(Dt),v(wt),v(Na),v(_t),v(Ve))},r.\u0275cmp=M({type:r,selectors:[["app-confirmacao-reserva"]],standalone:!1,decls:5,vars:5,consts:[["contentPage",""],[3,"breadCrumbs"],[1,"confirmacao-da-reserva","container"],["class","row",4,"ngIf","ngIfElse"],[1,"row"],[1,"col"],["class","reserva-confirmada",4,"ngIf"],["class","reserva-a-confirmar",4,"ngIf"],[1,"confirmacao-da-reserva__header","row"],[1,"col-12","col-lg-7","d-flex","align-items-center"],[1,"confirmacao-da-reserva__titulo"],[1,"col-12","col-lg-5","confirmacao-da-reserva-acoes-header"],[1,"col","confirmacao-da-reserva__resumo-da-compra"],[3,"dadosCompra"],["class","confirmacao-da-reserva__informative",4,"ngIf"],["class","row",4,"ngIf"],[1,"col","confirmacao-da-reserva__para-retirar-seu-carro"],[3,"reserva","reservaFast","tipoDocumento","codigoAgenciaRetirada"],[1,"col","confirmacao-da-reserva__valores-do-seu-contrato"],[3,"valoresDoContrato","taxaDeAluguelMexico","isBrasil","agenciaBrasileira","agenciaColombiana"],[1,"politica-de-cancelamento"],[4,"ngIf"],["class","politica-de-cancelamento__flanker",4,"ngIf"],["class","politica-de-cancelamento__localiza",4,"ngIf"],[1,"row","confirmacao-da-reserva-acoes-footer"],[1,"col-12","col-md-4","col-lg-3","confirmacao-da-reserva-acoes-footer__item"],["theme","secondary",3,"click","fullwidth","tagType","href"],["icon","logo_reduz_ico","size","unset"],[1,"reserva-confirmada"],["name","check-circle",1,"reserva-confirmada__icone"],[1,"reserva-confirmada__texto"],["target","_blank",3,"href"],[1,"reserva-a-confirmar"],["name","alert-circle",1,"reserva-a-confirmar__icone"],[1,"reserva-a-confirmar__texto"],[1,"reserva-a-confirmar__descricao"],["theme","secondary",3,"click"],["name","printer",1,"confirmacao-da-reserva-acoes__icone"],[1,"confirmacao-da-reserva__informative"],["class","fast-with-additional",4,"ngIf"],["class","confirmacao-da-reserva__informativo-pass pass",4,"ngIf"],[1,"fast-with-additional"],[3,"title","description","imageUrl"],[1,"confirmacao-da-reserva__informativo-pass","pass"],[1,"col","confirmacao-da-reserva__download-fast"],[3,"innerHtml"],[1,"politica-de-cancelamento__flanker"],[1,"politica-de-cancelamento__flankerTitle",3,"innerHtml"],[1,"politica-de-cancelamento__politicas-flanker",3,"innerHtml"],[1,"politica-de-cancelamento__politicas-flanker__termos-condicoes"],[1,"politica-de-cancelamento__link"],["target","_blank","rel","noopener noreferrer",3,"href"],[1,"politica-de-cancelamento__link-termos"],["tabindex","0",3,"keydown","click"],[1,"politica-de-cancelamento__localiza"],["class","col-12 col-md- col-lg-3 confirmacao-da-reserva-acoes-footer__item",4,"ngIf"],["theme","secondary",3,"click","disabled","fullwidth"],["name","trash-2",1,"confirmacao-da-reserva-acoes__icone"],[1,"col-12","col-md-","col-lg-3","confirmacao-da-reserva-acoes-footer__item"],["name","edit-2",1,"confirmacao-da-reserva-acoes__icone"],[1,"col-12","img-informativas",3,"ngClass"],[4,"ngFor","ngForOf"],[1,"img-informativas__content",3,"click"],["alt","",3,"src"],[3,"mensagensErro"]],template:function(a,o){if(a&1&&(B(0,ru,1,1,"app-breadcrumb",1),s(1,"section",2),C(2,su,3,0,"div",3)(3,Eu,44,38,"ng-template",null,0,Me),l()),a&2){let m=ue(4);F(o.isWebview?-1:0),n(),Z("confirmacao-da-reserva--webview",o.isWebview),n(),d("ngIf",o.erroInterno)("ngIfElse",m)}},dependencies:[de,ae,N,Sl,Ot,Nt,Ho,J,Bt,Pl,Si,xn,Dc,Oc,Ac,T],styles:['.confirmacao-da-reserva[_ngcontent-%COMP%]{padding-bottom:4rem;padding-top:1.6rem}@media(min-width:1200px){.confirmacao-da-reserva[_ngcontent-%COMP%]{padding-top:2.2rem}}.confirmacao-da-reserva--webview[_ngcontent-%COMP%]{padding-top:calc(env(safe-area-inset-top,0px) + 1.6rem)}@media(min-width:1200px){.confirmacao-da-reserva--webview[_ngcontent-%COMP%]{padding-top:calc(env(safe-area-inset-top,0px) + 2.2rem)}}.confirmacao-da-reserva__header[_ngcontent-%COMP%]{margin-top:4.8rem}.confirmacao-da-reserva__titulo[_ngcontent-%COMP%]{color:#01602a;font-size:2.4rem;font-weight:500;line-height:2.8rem;margin-bottom:1.6rem}@media(min-width:1200px){.confirmacao-da-reserva__titulo[_ngcontent-%COMP%]{margin-bottom:0}}.confirmacao-da-reserva-acoes-header[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;gap:1.6rem;justify-content:center}@media(min-width:576px){.confirmacao-da-reserva-acoes-header[_ngcontent-%COMP%]{flex-direction:row}}@media(min-width:992px){.confirmacao-da-reserva-acoes-header[_ngcontent-%COMP%]{justify-content:flex-end}}.confirmacao-da-reserva-acoes-header__icone[_ngcontent-%COMP%]{width:1.8rem;height:1.8rem}.confirmacao-da-reserva__informative[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:0rem}.confirmacao-da-reserva__informative[_ngcontent-%COMP%] .fast-with-additional[_ngcontent-%COMP%], .confirmacao-da-reserva__informative[_ngcontent-%COMP%] .pass[_ngcontent-%COMP%]{width:100%}@media(min-width:1200px){.confirmacao-da-reserva__informative[_ngcontent-%COMP%]{flex-direction:row;gap:2.5rem}.confirmacao-da-reserva__informative[_ngcontent-%COMP%] .fast-with-additional[_ngcontent-%COMP%], .confirmacao-da-reserva__informative[_ngcontent-%COMP%] .pass[_ngcontent-%COMP%]{flex:1 1 0;min-width:0}}.confirmacao-da-reserva__resumo-da-compra[_ngcontent-%COMP%], .confirmacao-da-reserva__informativo-pass[_ngcontent-%COMP%], .confirmacao-da-reserva__download-fast[_ngcontent-%COMP%], .confirmacao-da-reserva__para-retirar-seu-carro[_ngcontent-%COMP%], .confirmacao-da-reserva__valores-do-seu-contrato[_ngcontent-%COMP%], .confirmacao-da-reserva[_ngcontent-%COMP%] .fast-with-additional[_ngcontent-%COMP%]{margin-top:3.2rem}.confirmacao-da-reserva-acoes-footer[_ngcontent-%COMP%]{margin-top:1.6rem;justify-content:center}.confirmacao-da-reserva-acoes-footer__item[_ngcontent-%COMP%] + .confirmacao-da-reserva-acoes-footer__item[_ngcontent-%COMP%]{margin-top:1.6rem}@media(min-width:768px){.confirmacao-da-reserva-acoes-footer__item[_ngcontent-%COMP%] + .confirmacao-da-reserva-acoes-footer__item[_ngcontent-%COMP%]{margin-top:0}}.reserva-confirmada[_ngcontent-%COMP%]{align-items:center;background-color:#cefdaf;border-radius:.4rem;border:.02rem solid #78de1f;color:#01602a;display:flex;gap:1.6rem;justify-content:center;padding:2.2rem}.reserva-confirmada__icone[_ngcontent-%COMP%]{height:3.2rem;width:3.2rem}.reserva-confirmada__texto[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;line-height:2rem}
1.reserva-a-confirmar[_ngcontent-%COMP%]{background-color:#fdf3d3;border-radius:.4rem;border:.02rem solid #827203;color:#827203;padding:2.2rem}.reserva-a-confirmar[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{align-items:center;display:flex;gap:1.6rem;justify-content:center}.reserva-a-confirmar__icone[_ngcontent-%COMP%]{height:3.2rem;width:3.2rem}.reserva-a-confirmar__texto[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;line-height:2rem}.reserva-a-confirmar__descricao[_ngcontent-%COMP%]{font-weight:700;line-height:2rem;margin-top:1.2rem;text-align:center}.politica-de-cancelamento[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.2rem;line-height:1.8rem;margin-top:3.2rem}.politica-de-cancelamento__link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-left:3px;font-family:var(--lds-font-functional-family);color:#1e852d;font-weight:700;font-size:14px}.politica-de-cancelamento[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child{font-weight:700}.politica-de-cancelamento__link-termos[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}.politica-de-cancelamento__localiza[_ngcontent-%COMP%]{margin-bottom:1.6rem}.politica-de-cancelamento__localiza[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-bottom:.5rem;color:#4a4a4a;font-size:1.4rem;line-height:1.5}.politica-de-cancelamento__localiza[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0;color:#4a4a4a;font-size:1.4rem;font-weight:700;line-height:1.5}.politica-de-cancelamento__localiza[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.politica-de-cancelamento[_ngcontent-%COMP%] app-doters-cancellation-policy[_ngcontent-%COMP%]{--doters-cancellation-policy-title-margin-bottom: .5rem;--doters-cancellation-policy-title-color: $gray-80;--doters-cancellation-policy-title-font-size: 1.4rem;display:flex;margin-bottom:1.25rem}.politica-de-cancelamento__flanker[_ngcontent-%COMP%]{border:1px solid #c2c2c2;padding:22px;border-radius:10px;margin-bottom:15px}.politica-de-cancelamento__flankerTitle[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family);font-weight:700;font-style:bold;font-size:15px;color:#262626;margin-bottom:15px}.politica-de-cancelamento__politicas-flanker[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family);color:#4a4a4a;font-weight:400;font-style:normal;font-size:14px;margin-bottom:5px}.politica-de-cancelamento__politicas-flanker__termos-condicoes[_ngcontent-%COMP%]{margin-top:15px;display:flex}.img-informativas[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.8rem;margin-top:2.4rem}@media(min-width:992px){.img-informativas[_ngcontent-%COMP%]{display:grid}}.img-informativas--1[_ngcontent-%COMP%]{grid-template-areas:"img__1"}.img-informativas--2[_ngcontent-%COMP%]{grid-template-areas:"img__1 img__2"}.img-informativas--3[_ngcontent-%COMP%]{grid-template-areas:"img__1 img__1" "img__2 img__3"}.img-informativas__content[_ngcontent-%COMP%]{border-radius:.4rem;overflow:hidden}.img-informativas__content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;object-fit:cover;width:100%}.img-informativas__content--1[_ngcontent-%COMP%]{grid-area:img__1}.img-informativas__content--2[_ngcontent-%COMP%]{grid-area:img__2}.img-informativas__content--3[_ngcontent-%COMP%]{grid-area:img__3}']});let i=r;return i})();var Bc=(()=>{let r=class r{constructor(){}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-fluxo-reserva"]],standalone:!1,decls:1,vars:0,template:function(a,o){a&1&&h(0,"router-outlet")},dependencies:[Jr],encapsulation:2});let i=r;return i})();function Ru(i,r){i&1&&(s(0,"p",7),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"triggerEscassez.modal.descricao")," "))}function Bu(i,r){i&1&&(s(0,"p",7),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"triggerEscassez.modal.descricao2")," "))}function Fu(i,r){if(i&1){let t=k();s(0,"button",8),b("click",function(){P(t);let a=g();return S(a.continue())}),p(1),c(2,"translate"),l()}i&2&&(n(),f(" ",u(2,1,"triggerEscassez.modal.btnSim")," "))}var Fc=(()=>{let r=class r{get canContinue(){return!!this.data?.canContinue}constructor(e,a,o,m,_){this.router=e,this.dialogRef=a,this.googleAnalyticsService=o,this.webViewService=m,this.data=_}continue(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"pop_up_escassez",action:"click",label:"continuar"}),this.close(!0)}cancel(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"pop_up_escassez",action:"click",label:"cancelar"}),this.close(),this.webViewService.isWebView()&&Ha(),this.router.navigate(["/mexico/es-mx"])}close(e=!1){this.dialogRef.close({continued:e})}};r.\u0275fac=function(a){return new(a||r)(v(xe),v(Y),v(Q),v(Pe),v(ne))},r.\u0275cmp=M({type:r,selectors:[["app-trigger-escassez-modal"]],decls:13,vars:10,consts:[[1,"trigger-escassez-modal",3,"showModalCloseButton"],[1,"trigger-escassez-modal__title"],[1,"trigger-escassez-modal__icon"],["class","trigger-escassez-modal__description",4,"ngIf"],[1,"trigger-escassez-modal__footer"],["class","trigger-escassez-modal__footer__button-secondary","type","button",3,"click",4,"ngIf"],["type","button",1,"trigger-escassez-modal__footer__button-basic-secondary",3,"click"],[1,"trigger-escassez-modal__description"],["type","button",1,"trigger-escassez-modal__footer__button-secondary",3,"click"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"h3",1),p(2),c(3,"translate"),l(),s(4,"div",2),h(5,"lds-icon-alarm"),l(),C(6,Ru,3,3,"p",3)(7,Bu,3,3,"p",3),s(8,"div",4),C(9,Fu,3,3,"button",5),s(10,"button",6),b("click",function(){return o.cancel()}),p(11),c(12,"translate"),l()()()),a&2&&(d("showModalCloseButton",!1),n(2),f(" ",u(3,6,"triggerEscassez.modal.titulo")," "),n(4),d("ngIf",o.canContinue),n(),d("ngIf",!o.canContinue),n(2),d("ngIf",o.canContinue),n(2),f(" ",u(12,8,"triggerEscassez.modal.btnNao")," "))},dependencies:[N,A,se,zo,T],styles:['[_nghost-%COMP%] .trigger-escassez-modal__title[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default);font-family:var(--lds-font-brand-family);font-size:2rem;font-weight:600;line-height:140%}[_nghost-%COMP%] .trigger-escassez-modal__icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:6rem;height:6rem;margin:1.5rem auto;border-radius:50%;color:#43b02a;background:#0000;font-size:2.7rem}[_nghost-%COMP%] .trigger-escassez-modal__icon[_ngcontent-%COMP%] lds-icon-alarm svg{width:6rem;height:6rem}[_nghost-%COMP%] .trigger-escassez-modal__description[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-low);font-family:var(--lds-font-functional-family);font-size:1.4rem;font-weight:400;line-height:150%}[_nghost-%COMP%] .trigger-escassez-modal__footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.8rem;margin-top:3.2rem}[_nghost-%COMP%] .trigger-escassez-modal__footer__button-secondary[_ngcontent-%COMP%], [_nghost-%COMP%] .trigger-escassez-modal__footer__button-basic-secondary[_ngcontent-%COMP%]{position:relative;width:100%;padding:.8rem 1.5rem;font-family:Inter,LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.6rem;font-weight:600;line-height:150%;text-align:center;cursor:pointer;transition:all .1s ease-out;overflow:hidden}[_nghost-%COMP%] .trigger-escassez-modal__footer__button-secondary[_ngcontent-%COMP%]:focus, [_nghost-%COMP%] .trigger-escassez-modal__footer__button-basic-secondary[_ngcontent-%COMP%]:focus{outline:2px solid var(--lds-state-focused-color);outline-offset:2px}[_nghost-%COMP%] .trigger-escassez-modal__footer__button-secondary[_ngcontent-%COMP%]:after, [_nghost-%COMP%] .trigger-escassez-modal__footer__button-basic-secondary[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}[_nghost-%COMP%] .trigger-escassez-modal__footer__button-secondary[_ngcontent-%COMP%]:hover:after, [_nghost-%COMP%] .trigger-escassez-modal__footer__button-basic-secondary[_ngcontent-%COMP%]:hover:after{background-color:var(--lds-state-hovered-color);opacity:var(--lds-state-hovered-opacity)}[_nghost-%COMP%] .trigger-escassez-modal__footer__button-secondary[_ngcontent-%COMP%]{border:none;border-radius:2.4rem;color:var(--lds-color-accent-primary-contrast-auto);background-color:var(--lds-color-accent-primary-default)}[_nghost-%COMP%] .trigger-escassez-modal__footer__button-basic-secondary[_ngcontent-%COMP%]{border:none;border-radius:2.4rem;color:var(--lds-color-accent-primary-contrast-default);background-color:#0000}'],changeDetection:0});let i=r;return i})();var Vu=(i,r)=>({minutes:i,seconds:r}),Oi=(()=>
1{let r=class r{constructor(e,a,o){this.dialog=e,this.changeDetectorRef=a,this.googleAnalyticsService=o,this.minutes=0,this.seconds=0,this.canContinue=!0,this.modalQuantityWasOpened=0,this.momentItStarted=null,this.initialTime=900,this.maxQuantityOpenModal=2,this.onDestroy$=new Ze}ngOnInit(){this.startTimer()}startTimer(){this.onDestroy$.next(),this.canContinue=!0,this.momentItStarted=Date.now(),this.updateDisplayTime(this.initialTime),Ca(1e3).pipe(Se(this.onDestroy$)).subscribe(()=>{if(!this.momentItStarted)return;let e=Math.floor((Date.now()-this.momentItStarted)/1e3),a=this.initialTime-e;if(a>0){this.updateDisplayTime(a);return}this.updateDisplayTime(),this.handleTimeout()})}updateDisplayTime(e=0){let a=Math.floor(e/60),o=e%60;this.minutes=a,this.seconds=o,this.changeDetectorRef.detectChanges()}handleTimeout(){this.onDestroy$.next(),this.momentItStarted=null,this.modalQuantityWasOpened++,this.canContinue=this.modalQuantityWasOpened<this.maxQuantityOpenModal,this.openModal(),this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"pop_up_escassez",action:"impression",label:this.canContinue?"extensao_tempo":"sessao_expirada"})}openModal(){this.dialog.open(Fc,{disableClose:!0,maxWidth:"32rem",data:{canContinue:this.canContinue}}).afterClosed().pipe(w(1)).subscribe(e=>{e?.continued&&this.startTimer()})}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}};r.\u0275fac=function(a){return new(a||r)(v(re),v(Xe),v(Q))},r.\u0275cmp=M({type:r,selectors:[["app-trigger-escassez"]],decls:12,vars:17,consts:[["color","warning",1,"trigger-escassez",3,"showCloseButton"],["slotIcon","",1,"trigger-escassez__icon"],["slotContent","",1,"trigger-escassez__content"],[1,"trigger-escassez__content__title"],[1,"trigger-escassez__content__description"]],template:function(a,o){a&1&&(s(0,"app-alert",0)(1,"div",1),h(2,"lds-icon-alarm"),l(),s(3,"div",2)(4,"h4",3),p(5),c(6,"number"),c(7,"number"),c(8,"translate"),l(),s(9,"p",4),p(10),c(11,"translate"),l()()()),a&2&&(d("showCloseButton",!1),n(5),f(" ",y(8,9,"triggerEscassez.time",Ue(14,Vu,y(6,3,o.minutes,"2.0-0"),y(7,6,o.seconds,"2.0-0")))," "),n(5),f(" ",u(11,12,"triggerEscassez.description")," "))},dependencies:[U,A,wi,ea,oo,zo,yt,T],styles:["[_nghost-%COMP%] .trigger-escassez__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--lds-spacing-1)}[_nghost-%COMP%] .trigger-escassez__content__title[_ngcontent-%COMP%]{margin:0;padding:0;font-family:var(--lds-font-functional-family);font-size:1.6rem;font-weight:600;line-height:150%}[_nghost-%COMP%] .trigger-escassez__content__description[_ngcontent-%COMP%]{margin:0;padding:0;font-family:var(--lds-font-functional-family);font-size:1.2rem;font-weight:400;line-height:160%}[_nghost-%COMP%] .trigger-escassez[_ngcontent-%COMP%] .alert__icon-container__icon, [_nghost-%COMP%] .trigger-escassez[_ngcontent-%COMP%] .lds-alert__icon{width:4rem}[_nghost-%COMP%] .trigger-escassez[_ngcontent-%COMP%] .alert__icon-container__icon svg, [_nghost-%COMP%] .trigger-escassez[_ngcontent-%COMP%] .lds-alert__icon svg{width:4rem;height:4rem}"],changeDetection:0});let i=r;return i})();var _r=4,si=(()=>{let r=class r{constructor(e,a,o){this.translateService=e,this.navigationFlow=a,this.gaService=o,this.showEditButtons=!0,this.steps=[],this.webviewService=I(Pe)}ngOnInit(){this.isPrePagamentoMexico||this.isPrePagamentoColombia?_r=5:_r=4,this.steps=[...Array(_r).keys()].map(e=>++e).map(e=>{let a,o;return this.translateService.get([`breadCrumbs.reserva.passo${e}.navbarLabel`,`breadCrumbs.reserva.passo${e}.url`]).pipe(w(1)).subscribe(m=>{a=m[`breadCrumbs.reserva.passo${e}.navbarLabel`],o=m[`breadCrumbs.reserva.passo${e}.url`]}),{label:a,url:o,step:e,status:this.step===e?"selected":e<this.step?"checked":"disabled"}})}handleStepChanges(e){let{step:a,url:o}=e;this.gaService.preencherDataLayer({event:"__MensuraEventos",category:"Reserva",action:"Navega\xE7\xE3o - Editar",label:`Passo ${a}`}),this.navigationFlow.navigate({step:a,url:this.translateService.instant(o)})}};r.\u0275fac=function(a){return new(a||r)(v(G),v(Yt),v(Q))},r.\u0275cmp=M({type:r,selectors:[["app-barra-navegacao-reserva"]],hostVars:1,hostBindings:function(a,o){a&2&&Pa("hidden",o.webviewService.isWebView())},inputs:{step:"step",isPrePagamentoMexico:"isPrePagamentoMexico",isPrePagamentoColombia:"isPrePagamentoColombia",showEditButtons:"showEditButtons"},standalone:!1,decls:1,vars:4,consts:[[3,"stepChanged","currentStep","allowGoBack","
1showEditButton","steps"]],template:function(a,o){a&1&&(s(0,"app-barra-navegacao",0),b("stepChanged",function(_){return o.handleStepChanges(_)}),l()),a&2&&d("currentStep",o.step)("allowGoBack",o.showEditButtons)("showEditButton",o.showEditButtons)("steps",o.steps)},dependencies:[Bl],encapsulation:2});let i=r;return i})();var no=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=Rt({type:r}),r.\u0275inj=Et({imports:[Fl,U,Zt,A]});let i=r;return i})();var Vc=(()=>{let r=class r{constructor(e){this.translateService=e}transform(e){let a=[],o=e?.veiculos?.filter(m=>m.padraoGrupo)||[];if(!o){let m=e?.veiculos?.filter(_=>!_.padraoGrupo)||[];a=[...o,...m].filter(_=>!!_).map(_=>_.nome).slice(0,3)}return this.translateService.get("carsGroup",{cars:o?o[0]?.nome:a.join(", ")})}};r.\u0275fac=function(a){return new(a||r)(v(G,16))},r.\u0275pipe=xo({name:"carsGroup",type:r,pure:!0});let i=r;return i})();var Mn=(()=>{let r=class r{constructor(e){this.translateService=e}transform(e,a,o,m="long",_="full"){if(o){let x=new Date(e),O=x.getDate()<10?`0${x.getDate()}`:x.getDate(),R=new Intl.DateTimeFormat(o,{month:m}).format(x),K=new Intl.DateTimeFormat(o,{year:"numeric"}).format(x);if(a?e||(_="hourOnly"):_="dateOnly",_==="full")return this.translateService.get("longDatePipe",{day:O,month:R,year:K,hour:lr.ConverterHorario(a,o)});if(_==="dateOnly")return this.translateService.get("longDatePipeNoHour",{day:O,month:R,year:K});if(_==="hourOnly")return this.translateService.get("longDatePipeOnlyHour",{hour:lr.ConverterHorario(a,o)})}}};r.\u0275fac=function(a){return new(a||r)(v(G,16))},r.\u0275pipe=xo({name:"longDate",type:r,pure:!0});let i=r;return i})();function Nu(i,r){i&1&&(s(0,"app-tooltip",8),c(1,"translate"),s(2,"mat-icon",9),p(3," info_outline "),l()()),i&2&&d("tooltipText",u(1,1,"bookingSummaryMexico.info.tooltipCoberturaTerceiros"))}function Uu(i,r){if(i&1){let t=k();s(0,"button",10),b("click",function(){P(t);let a=g(2);return S(a.changeShowFullDescription())}),Or(),s(1,"svg",11),h(2,"path",12),l()()}if(i&2){let t=g(2);n(),Z("third-party-coverage__container__button__arrow--open",t.showFullDescription)}}function Gu(i,r){i&1&&(s(0,"p",13),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"bookingSummaryMexico.info.tooltipCoberturaTerceiros")," "))}function ju(i,r){if(i&1&&(s(0,"div",1)(1,"div",2)(2,"p",3),p(3),c(4,"translate"),l(),C(5,Nu,4,3,"app-tooltip",4)(6,Uu,3,2,"button",5),s(7,"p",6),p(8),c(9,"translate"),l()(),C(10,Gu,3,3,"p",7),l()),i&2){let t=g();n(3),f(" ",u(4,5,"bookingSummaryMexico.info.includedItems.thirdPartyCoverage")," "),n(2),d("ngIf",t.isDesktop),n(),d("ngIf",!t.isDesktop),n(2),f(" ",u(9,7,"bookingSummary.included")," "),n(2),d("ngIf",!t.isDesktop&&t.showFullDescription)}}var zc=(()=>{let r=class r{get hasThirdPartyCoverage(){return!!this.combo?.itens?.some(e=>e.descricaoAdicional==="thirdPartyCoverage")}constructor(e,a){this.breakpointService=e,this.changeDetectorRef=a,this.showFullDescription=!1,this.onDestroy$=new Ze}ngOnInit(){this.setDeviceDesktop()}setDeviceDesktop(){this.breakpointService.isDesktop.pipe(Se(this.onDestroy$)).subscribe(e=>{this.isDesktop=e,this.changeDetectorRef.detectChanges()})}changeShowFullDescription(){this.showFullDescription=!this.showFullDescription,this.changeDetectorRef.detectChanges()}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}};r.\u0275fac=function(a){return new(a||r)(v(De),v(Xe))},r.\u0275cmp=M({type:r,selectors:[["app-third-party-coverage"]],inputs:{combo:"combo",booking:"booking"},decls:1,vars:1,consts:[["class","third-party-coverage",4,"ngIf"],[1,"third-party-coverage"],[1,"third-party-coverage__container"],[1,"third-party-coverage__container__title"],["class","third-party-coverage__container__tooltip","direction","top",3,"tooltipText",4,"ngIf"],["class","third-party-coverage__container__button",3,"click",4,"ngIf"],[1,"third-party-coverage__container__included"],["class","third-party-coverage__description",4,"ngIf"],["direction","top",1,"third-party-coverage__container__tooltip",3,"tooltipText"],[1,"third-party-coverage__container__tooltip__icon"],[1,"third-party-coverage__container__button",3,"click"],["width","20","height","20","viewBox","0 0 20 20",1,"third-party-coverage__container__button__arrow"],["fill-rule","evenodd","clip-rule","evenodd","d","M4.37954 6.82888C4.09256 7.11585 4.09256 7.58113 4.37954 7.86811L9.27852 12.7671C9.56549 13.0541 10.0308 13.0541 10.3177 12.7671L15.2167 7.86811C15.5037 7.58113 15.5037 7.11586 15.2167 6.82888C14.9298 6.5419 14.4645 6.5419 14.1775 6.82888L9.79813 11.2082L5.41877 6.82888C5.13179 6.5419 4.66651 6.5419 4.37954 6.82888Z","fill","currentColor"],[1,"third-party-coverage__description"]],template:function(a,o){a&1&&C(0,ju,11,9,"div",0),a&2&&d("ngIf",o.hasThirdPartyCoverage)},dependencies:[U,N,A,cn,ln,Le,Ft,T],styles:[".third-party-coverage[_ngcontent-%COMP%]{margin-top:.8rem;color:#01602a}.third-party-coverage__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(auto,18.5rem) 2.4rem auto;gap:.8rem}.third-party-coverage__container__title[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default);font-size:1.4rem;line-height:2rem}.third-party-coverage__container__tooltip[_ngcontent-%COMP%]{display:flex!important;color:var(--lds-color-accent-primary-default)}.third-party-coverage__container__tooltip__icon[_ngcontent-%COMP%]{font-size:2.08rem}.third-party-coverage__container__button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2.4rem;height:2.4rem;border:none;background:none;padding:0}.third-party-coverage__container__button__arrow[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default);transition:transform .2s}.third-party-coverage__container__button__arrow--open[_ngcontent-%COMP%]{transform:rotate(180deg)}.third-party-coverage__container__included[_ngcontent-%COMP%]{align-self:flex-end;margin-left:auto;color:var(--lds-color-accent-primary-default);font-size:1.4rem;line-height:2rem}.third-party-coverage__description[_ngcontent-%COMP%]{margin-top:1rem;color:var(--lds-color-neutral-text-low);font-family:var(--lds-font-functional-family);font-size:1.2rem;font-weight:400;line-height:160%}"],changeDetection:0});let i=r;return i})();function qu(i,r){i&1&&(s(0,"div",1)(1,"p",2),p(2),c(3,"translate"),l(),s(4,"p",3),p(5),c(6,"translate"),l()()),i&2&&(n(2),f(" ",u(3,2,"bookingSummaryMexico.info.includedItems.unlimitedKm")," "),n(3),f(" ",u(6,4,"bookingSummary.included")," "))}var Lc=(()=>
1{let r=class r{constructor(){this.showFullDescription=!1}get hasUnlimitedKm(){return!!this.combo?.itens?.some(e=>e.descricaoAdicional==="unlimitedKm")}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-unlimited-km"]],inputs:{combo:"combo",booking:"booking"},decls:1,vars:1,consts:[["class","unlimited-km",4,"ngIf"],[1,"unlimited-km"],[1,"unlimited-km__title"],[1,"unlimited-km__included"]],template:function(a,o){a&1&&C(0,qu,7,6,"div",0),a&2&&d("ngIf",o.hasUnlimitedKm)},dependencies:[N,A,T],styles:[".unlimited-km[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(auto,18.5rem) auto;gap:.8rem;margin-top:.8rem;color:#01602a}.unlimited-km__title[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default);font-size:1.4rem;line-height:2rem}.unlimited-km__included[_ngcontent-%COMP%]{align-self:flex-end;margin-left:auto;color:var(--lds-color-accent-primary-default);font-size:1.4rem;line-height:2rem}"],changeDetection:0});let i=r;return i})();var Hu=["totalValue"],$u=["bookingSummaryInfo"],Uc=(i,r)=>[i,null,r,"long","dateOnly"],Gc=(i,r,t)=>[i,r,t,"long","hourOnly"],Wu=i=>({percentage:i}),Ku=i=>({discount:i}),Nc=i=>({dotersPoints:i}),jc=(i,r,t)=>({qtParcela:i,coin:r,value:t});function Zu(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"longDate"),c(3,"async"),l()),i&2){let t=g();n(),f(" ",u(3,5,mo(2,1,t.booking==null?null:t.booking.dataRetirada,t.booking==null?null:t.booking.horaRetirada,t.culture))," ")}}function Yu(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"longDate"),c(3,"async"),h(4,"br"),p(5),c(6,"longDate"),c(7,"async"),l()),i&2){let t=g();n(),f(" ",u(3,8,pa(2,2,Ue(18,Uc,t.booking==null?null:t.booking.dataRetirada,t.culture)))," "),n(4),f(" ",u(7,16,pa(6,10,Kt(21,Gc,t.booking==null?null:t.booking.dataRetirada,t.booking==null?null:t.booking.horaRetirada,t.culture)))," ")}}function Qu(i,r){i&1&&(p(0),c(1,"translate")),i&2&&f(" ",u(1,1,"bookingSummary.editWebview")," ")}function Xu(i,r){i&1&&(p(0),c(1,"translate")),i&2&&f(" ",u(1,1,"bookingSummary.edit")," ")}function Ju(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"longDate"),c(3,"async"),l()),i&2){let t=g();n(),f(" ",u(3,5,mo(2,1,t.booking!=null&&t.booking.newReturnDate?t.booking==null?null:t.booking.newReturnDate:t.booking==null?null:t.booking.dataDevolucao,t.booking==null?null:t.booking.horaDevolucao,t.culture))," ")}}function ef(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"longDate"),c(3,"async"),h(4,"br"),p(5),c(6,"longDate"),c(7,"async"),l()),i&2){let t=g();n(),f(" ",u(3,8,pa(2,2,Ue(18,Uc,t.booking==null?null:t.booking.dataDevolucao,t.culture)))," "),n(4),f(" ",u(7,16,pa(6,10,Kt(21,Gc,t.booking==null?null:t.booking.dataDevolucao,t.booking==null?null:t.booking.horaDevolucao,t.culture)))," ")}}function tf(i,r){i&1&&(p(0),c(1,"translate")),i&2&&f(" ",u(1,1,"bookingSummary.editWebview")," ")}function of(i,r){i&1&&(p(0),c(1,"translate")),i&2&&f(" ",u(1,1,"bookingSummary.edit")," ")}function af(i,r){if(i&1&&h(0,"app-info-twenty-seven-hours",36),i&2){let t=g();d("pickupReturnTimeDifference",t.booking==null?null:t.booking.diferencaHorarioRetiradaDevolucao)("user",t.user)}}function nf(i,r){if(i&1&&(s(0,"p"),p(1),l()),i&2){let t=g();n(),q(" Upgrade promocional do grupo ",t.booking==null||t.booking.grupoSelecionado==null?null:t.booking.grupoSelecionado.codigoLocaliza," para o ",t.upgradeSelected==null?null:t.upgradeSelected.nomeGrupo," ")}}function rf(i,r){if(i&1&&(s(0,"div",37)(1,"div",38)(2,"p"),p(3),c(4,"translate"),c(5,"preco"),l(),s(6,"p"),p(7),c(8,"preco"),l()(),s(9,"div",39)(10,"p"),p(11),c(12,"translate"),c(13,"translate"),l()()()),i&2){let t=g();n(3),f(" ",(t.booking==null?null:t.booking.quantidadeDiarias)+" "+u(4,3,"kmLivre.resumoReserva.diarias")+" x "+(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+" "+y(5,5,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.valorLiquidoSemCodigoPromocional,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," "),n(4),f(" ",(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+" "+y(8,8,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.valorTotalDiarias,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," "),n(4),f(" ",u(12,11,(t.booking==null?null:t.booking.quantidadeDiarias)>1?"bookingSummary.dailies":"bookingSummary.daily")+u(13,13,"bookingSummary.discountedDaily")," ")}}function sf(i,r){if(i&1&&(s(0,"div",40)(1,"p"),p(2),c(3,"translate"),c(4,"preco"),l(),s(5,"p"),p(6),c(7,"preco"),l()()),i&2){let t=g();n(2),f(" ",(t.booking==null?null:t.booking.quantidadeDiarias)+" "+u(3,2,"kmLivre.resumoReserva.diarias")+" x "+(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+" "+y(4,4,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.valorDiariaSemCombo,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," "),n(4),f(" ",(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+" "+y(7,7,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.valorTotal,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," ")}}function lf(i,r){if(i&1&&(s(0,"div"),h(1,"app-monthly-value-breakdown",41),l()),i&2){let t=g();n(),d("monthlyFees",t.monthlyFees)("currency",t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)}}function cf(i,r){if(i&1&&(s(0,"div",42)(1,"p"),p(2),c(3,"translate"),c(4,"preco"),l(),s(5,"p"),p(6),c(7,"preco"),l()()),i&2){let t=g();n(2),f(" ",(t.booking==null?null:t.booking.ofertaSelecionada.quantidadeHorasExtras)+u(3,2,(t.booking==null||t.booking.ofertaSelecionada==null?null:t.booking.ofertaSelecionada.quantidadeHorasExtras)>1?"bookingSummary.extrasHours":"bookingSummary.extraHour")+" x "+(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+" "+y(4,4,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.valorHoraExtra,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," "),n(4),f(" ",(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+" "+y(7,7,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.valorTotalHorasExtras,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," ")}}function df(i,r){if(i&1&&(s(0,"div",43)(1,"p",44),p(2),c(3,"translate"),l(),s(4,"div",45),h(5,"ds-icon",46),s(6,"span"),p(7),l()()()),i&2){let t=g();n(2),f(" ",u(3,4,"bookingSummary.discountOnDaily")," "),n(3),d("icon","icon_percent")("size","sm"),n(2),f(" ",t.showPrepaidBrasilDiscount?t.prepaidBrasilPercentageDiscount:t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.descontoCodigoPromocional,"% ")}}function pf(i,r){if(i&1&&(V(0),h(1,"app-unlimited-km",47),z()),i&2){let t=g();n(),d("combo",t.combo)("booking",t.booking)}}function mf(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"translate"),c(3,"preco"),l()),i&2){let t=g(2);n(),So(" ",t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.quilometragemControlada==null||t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre==null?null:t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre.quantidadeDiariasAvulso," "," "," ",u(2,5,"kmLivre.resumoReserva.diarias")," x ",t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda," ",y(3,7,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.quilometragemControlada==null||t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre==null?null:t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre.valorDiariaAvulso,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," ")}}function uf(i,r){if(i&1&&(s(0,"p",52),p(1),c(2,"translate"),l()),i&2){let t=g(2);n(),fi(" ",t.booking==null?null:t.booking.quantidadeDiarias," ",u(2,4,"kmLivre.resumoReserva.diarias")," x ",t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.quilometragemControlada==null?null:t.booking.ofertaSelecionada.quilometragemControlada.franquiaKmDiariaExibicao," km = ",t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.quilometragemControlada==null?null:t.booking.ofertaSelecionada.quilometragemControlada.franquiaKmTotalExibicao," km ")}}function ff(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"preco"),l()),i&2){let t=g(2);n(),q(" ",t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda," ",y(2,2,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.quilometragemControlada==null||t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre==null?null:t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre.valorTotalAvulso,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," ")}}function gf(i,r){i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"kmLivre.resumoReserva.descricaoIlimitado")," "))}function _f(i,r){i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"kmLivre.resumoReserva.inclusos")," "))}function hf(i,r){i&1&&(s(0,"p",53),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"kmLivre.resumoReserva.descricaoEconomico")," "))}function vf(i,r){if(i&1&&(s(0,"div",48)(1,"p",12),p(2),c(3,"translate"),l(),s(4,"div",49),C(5,mf,4,10,"p",7)(6,uf,3,6,"p",50)(7,ff,3,5,"p",7)(8,gf,3,3,"p",7)(9,_f,3,3,"p",7),l(),C(10,hf,3,3,"p",51),l()),i&2){let t=g();n(2),f(" ",u(3,7,"kmLivre.resumoReserva.titulo")," "),n(3),d("ngIf",(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.quilometragemControlada==null?null:t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre)&&!t.shouldShowControlledKm),n(),d("ngIf",t.shouldShowControlledKm),n(),d("ngIf",(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.quilometragemControlada==null?null:t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre)&&!t.shouldShowControlledKm),n(),d("ngIf",!(!(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.quilometragemControlada==null)&&t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre)&&!t.shouldShowControlledKm),n(),d("ngIf",!(!(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.quilometragemControlada==null)&&t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre&&(!(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.quilometragemControlada==null||t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre==null)&&t.booking.ofertaSelecionada.quilometragemControlada.adicionalKmLivre.selecionado))),n(),d("ngIf",!1)}}function Cf(i,r){if(i&1&&(s(0,"div",56),V(1),s(2,"div")(3,"p",58),p(4),c(5,"translate"),l(),s(6,"div",59),h(7,"ds-icon",60),s(8,"span"),p(9),l()()(),z(),l()),i&2){let t=g(2);n(4),f(" ",u(5,4,"bookingSummary.packDiscount")," "),n(3),d("icon","icon_percent")("size","sm"),n(2),f("",t.combo.percentualDesconto,"%")}}function bf(i,r){if(i&1&&(s(0,"div")(1,"p",38),p(2),c(3,"translate"),c(4,"preco"),l(),s(5,"p",38),p(6),c(7,"preco"),l()()),i&2){let t=g(2);n(2),f(" ",(t.combo==null?null:t.combo.quantidadeDiariasCobradas)+" "+u(3,2,"kmLivre.resumoReserva.diarias")+" x "+(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+" "+y(4,4,t.combo==null?null:t.combo.valorDiariaSemDesconto,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," "),n(4),f(" ",(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+y(7,7,t.combo.totalSemDesconto,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," ")}}function xf(i,r){if(i&1&&(V(0),s(1,"div")(2,"p"),p(3),l(),s(4,"p"),p(5),c(6,"translate"),l()(),z()),i&2){let t=g().$implicit;n(3),D(t==null?null:t.descricaoAdicional),n(2),D(u(6,2,"bookingSummary.included"))}}function Pf(i,r){if(i&1&&(s(0,"div",56),C(1,xf,7,4,"ng-container",7),l()),i&2){let t=r.$implicit;n(),d("ngIf",t)}}function Sf(i,r){if(i&1&&(V(0),s(1,"div",12)(2,"p",54),p(3),l(),s(4,"p",54),p(5),c(6,"translate"),l()(),C(7,Cf,10,6,"div",55),s(8,"div",56),V(9),C(10,bf,8,10,"div",7),s(11,"div")(12,"p"),p(13),c(14,"translate"),c(15,"preco"),l(),s(16,"p"),p(17),c(18,"preco"),l()(),z(),l(),C(19,Pf,2,1,"div",57),z()),i&2){let t=g();n(3),f(" ",t.combo.nome," "),n(2),f(" ",u(6,7,"bookingSummary.total")," "),n(2),d("ngIf",t.combo.percentualDesconto>0),n(3),d("ngIf",t.combo.percentualDesconto>0),n(3),f(" ",(t.combo==null?null:t.combo.quantidadeDiariasCobradas)+" "+u(14,9,"kmLivre.resumoReserva.diarias")+" x "+(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+" "+y(15,11,t.combo==null?null:t.combo.valorDiariaComDe
1sconto,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," "),n(4),f(" ",(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+y(18,14,t.combo.totalComDesconto,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," "),n(2),d("ngForOf",t.combo.itens)}}function yf(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"translate"),c(3,"preco"),l()),i&2){let t=g(2).$implicit,e=g(2);n(),f(" ",(t==null?null:t.quantidadeDeDiarias)+" "+u(2,1,"kmLivre.resumoReserva.diarias")+" x "+(e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda)+" "+y(3,3,t==null?null:t.valor,e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda)," ")}}function Mf(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"translate"),c(3,"preco"),l()),i&2){let t=g(2).$implicit,e=g(2);n(),st(" ",u(2,3,"bookingSummary.uniqueValue")," ",e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda," ",y(3,5,t==null?null:t.valor,e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda)," ")}}function Df(i,r){if(i&1&&(V(0),s(1,"p"),p(2),l(),s(3,"div"),C(4,yf,4,6,"p",7)(5,Mf,4,8,"p",7),s(6,"p"),p(7),c(8,"preco"),l()(),z()),i&2){let t=g().$implicit,e=g(2);n(2),D(t==null?null:t.descricao),n(2),d("ngIf",t.tipoCobranca==="Diaria"),n(),d("ngIf",t.tipoCobranca==="Contrato"),n(2),f(" ",(e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda)+" "+y(8,4,t==null?null:t.valorTotal,e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda)," ")}}function wf(i,r){if(i&1&&(V(0),s(1,"div")(2,"p"),p(3),l(),s(4,"p"),p(5),c(6,"translate"),l()(),z()),i&2){let t=g().$implicit;n(3),D(t==null?null:t.descricao),n(2),D(u(6,2,"bookingSummary.included"))}}function Of(i,r){if(i&1&&(s(0,"div",56),C(1,Df,9,7,"ng-container",7)(2,wf,7,4,"ng-container",7),l()),i&2){let t=r.$implicit;n(),d("ngIf",!t.incluso),n(),d("ngIf",t.incluso)}}function kf(i,r){if(i&1&&(V(0),h(1,"app-third-party-coverage",47),z()),i&2){let t=g(2);n(),d("combo",t.combo)("booking",t.booking)}}function If(i,r){if(i&1&&(V(0),s(1,"p",54),p(2),c(3,"translate"),l(),C(4,Of,3,2,"div",57)(5,kf,2,2,"ng-container",7),z()),i&2){let t=g();n(2),f(" ",u(3,3,"bookingSummary.protections")," "),n(2),d("ngForOf",t.optionals),n(),d("ngIf",t.combo&&t.rentInMexico)}}function Tf(i,r){if(i&1&&(V(0),s(1,"p"),p(2),l(),s(3,"div")(4,"p"),p(5),c(6,"translate"),c(7,"translate"),c(8,"preco"),l(),s(9,"p"),p(10),c(11,"preco"),l()(),z()),i&2){let t=g().$implicit,e=g(2);n(2),D(t==null?null:t.descricao),n(3),f(" ",(t==null?null:t.unidades)+" "+u(6,3,"bookingSummary.unit")+" x "+(t==null?null:t.quantidadeDeDiarias)+" "+u(7,5,"kmLivre.resumoReserva.diarias")+" x "+(e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda)+" "+y(8,7,t==null?null:t.valor,e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda)," "),n(5),f(" ",(e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda)+" "+y(11,10,t==null?null:t.valorTotal,e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda)," ")}}function Af(i,r){if(i&1&&(V(0),s(1,"div")(2,"p"),p(3),l(),s(4,"p"),p(5),c(6,"translate"),l()(),z()),i&2){let t=g().$implicit,e=g(2);n(3),D(t==null?null:t.descricao),n(2),f(" ",u(6,2,e.booking!=null&&e.booking.ofertaSelecionada.combo?"bookingSummary.includedInThePackage":"bookingSummary.included")," ")}}function Ef(i,r){if(i&1&&(s(0,"div",56),C(1,Tf,12,13,"ng-container",7)(2,Af,7,4,"ng-container",7),l()),i&2){let t=r.$implicit;n(),d("ngIf",!t.incluso),n(),d("ngIf",t.incluso)}}function Rf(i,r){if(i&1&&(V(0),s(1,"p",54),p(2),c(3,"translate"),l(),C(4,Ef,3,2,"div",57),z()),i&2){let t=g();n(2),f(" ",u(3,2,"bookingSummary.additional")," "),n(2),d("ngForOf",t.equipments)}}function Bf(i,r){if(i&1&&(s(0,"div",61)(1,"p"),p(2),c(3,"translate"),l(),s(4,"p"),p(5),c(6,"preco"),l()()),i&2){let t=g();n(2),D(u(3,3,"bookingSummary.returnRate")),n(3),q(" ",t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda," ",y(6,5,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.valorTaxaRetorno,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," ")}}function Ff(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"preco"),c(3,"translate"),l()),i&2){let t=g(2);n(),f(" ",y(3,4,"bookingSummary.rentalFee",L(7,Wu,y(2,1,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.percentualTaxaServico,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)))," ")}}function Vf(i,r){i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"lib.infoReserva.aluguelMexico")," "))}function zf(i,r){if(i&1&&(s(0,"div",61),C(1,Ff,4,9,"p",7)(2,Vf,3,3,"p",7),s(3,"p"),p(4),c(5,"preco"),l()()),i&2){let t=g();n(),d("ngIf",!(t.booking!=null&&t.booking.agenciaPaisMexico)),n(),d("ngIf",t.rentInMexico),n(2),q(" ",t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda," ",y(5,4,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.valorTaxaServico,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," ")}}function Lf(i,r){if(i&1&&(s(0,"span"),p(1),l()),i&2){let t=g().$implicit;n(),f("(",t.percentual,"%)")}}function Nf(i,r){if(i&1&&(s(0,"div")(1,"p"),p(2),C(3,Lf,2,1,"span",7),l(),s(4,"p"),p(5),c(6,"preco"),l()()),i&2){let t=r.$implicit,e=g(2);n(2),f(" ",t.descricao," "),n(),d("ngIf",!!t.percentual),n(2),q(" ",e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda," ",y(6,4,t.valor,e.booking==null||e.booking.ofertaSelecionada==null||e.booking.ofertaSelecionada.tarifa==null?null:e.booking.ofertaSelecionada.tarifa.moeda)," ")}}function Uf(i,r){if(i&1&&(s(0,"div",62),C(1,Nf,7,7,"div",63),l()),i&2){let t=g();n(),d("ngForOf",t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.valoresAdicionais)}}function Gf(i,r){i&1&&(s(0,"div",64)(1,"p"),p(2),c(3,"translate"),l()()),i&2&&(n(2),f(" ",u(3,1,"bookingSummary.textOvertime")," "))}function jf(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"translate"),l()),i&2){let t=g(2);n(),f(" ",y(2,1,"bookingSummary.textYouReceivedDiscount",L(4,Ku,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.descontoCodigoPromocional))," ")}}
1function qf(i,r){if(i&1&&(s(0,"p"),h(1,"img",66),p(2),l()),i&2){let t=g(2);n(),d("alt",Re(t.booking==null||t.booking.parceiro==null?null:t.booking.parceiro.nome))("src",t.getDiscountMessageLogo(),bt),n(),f(" ",t.getDiscountMessage()," ")}}function Hf(i,r){if(i&1&&(s(0,"div",65)(1,"h5"),p(2),c(3,"translate"),l(),C(4,jf,3,6,"p",7)(5,qf,3,4,"p",7),l()),i&2){let t=g();n(2),D(u(3,3,"bookingSummary.reservationBenefits")),n(2),d("ngIf",!(t.booking!=null&&t.booking.parceiro)),n(),d("ngIf",t.booking==null?null:t.booking.parceiro)}}function $f(i,r){if(i&1&&(V(0),p(1),c(2,"preco"),z()),i&2){let t=g();n(),f(" ",(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+" "+y(2,1,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null||t.booking.ofertaSelecionada.tarifa.parceiro==null?null:t.booking.ofertaSelecionada.tarifa.parceiro.valorRestanteEmPesos,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," ")}}function Wf(i,r){if(i&1&&(p(0),c(1,"preco")),i&2){let t=g();f(" ",(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+" "+y(1,1,t.booking==null||t.booking.ofertaSelecionada==null?null:t.booking.ofertaSelecionada.valorTotal,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," ")}}function Kf(i,r){if(i&1&&(s(0,"p",67),p(1),c(2,"ldsCurrency"),c(3,"translate"),c(4,"ldsCurrency"),c(5,"translate"),l()),i&2){let t=g();n(),f(" ",t.isSelecaoPontosDotersScreen?y(3,4,"bookingSummary.dotersPointsPlus",L(13,Nc,y(2,1,(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null||t.booking.ofertaSelecionada.tarifa.parceiro==null?null:t.booking.ofertaSelecionada.tarifa.parceiro.pontosValorTotal)||0,"DOTERS"))):y(5,10,"bookingSummary.dotersPoints",L(15,Nc,y(4,7,(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null||t.booking.ofertaSelecionada.tarifa.parceiro==null?null:t.booking.ofertaSelecionada.tarifa.parceiro.pontosValorTotal)||0,"DOTERS")))," ")}}function Zf(i,r){i&1&&(s(0,"p",68),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"bookingSummary.valueIncludesTaxes")," "))}function Yf(i,r){if(i&1&&(s(0,"p",69),p(1),c(2,"preco"),c(3,"translate"),l()),i&2){let t=g();n(),f(" ",y(3,4,"bookingSummary.valueInstalments",Kt(7,jc,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.numeroParcelas,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda,y(2,1,t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.valorParcelas,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)))," ")}}function Qf(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"preco"),c(3,"translate"),l()),i&2){let t=g();n(),f(" ",y(3,4,"bookingSummary.valueInstalments",Kt(7,jc,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.numeroParcelas,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda,y(2,1,t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.valorParcelas,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)))," ")}}function Xf(i,r){if(i&1&&h(0,"p",70),i&2){let t=g();d("innerHTML",t.parcelamentoDaOferta==null||t.parcelamentoDaOferta.msgPadrao==null?null:t.parcelamentoDaOferta.msgPadrao.msg,te)}}function Jf(i,r){i&1&&(s(0,"p",71),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"bookingSummary.progressiveDiscountInfo")," "))}function e0(i,r){if(i&1&&(s(0,"div",72)(1,"p",73),p(2),c(3,"translate"),l(),s(4,"div",74)(5,"p"),p(6),c(7,"translate"),s(8,"app-tooltip",75),c(9,"translate"),h(10,"ds-icon",76),l()(),s(11,"p"),p(12),c(13,"preco"),l()(),s(14,"div",77),p(15),c(16,"translate"),l()()),i&2){let t=g();n(2),f(" ",u(3,5,"bookingSummary.securityDeposit.title")," "),n(4),f(" ",u(7,7,"bookingSummary.securityDeposit.amount")," "),n(2),d("tooltipText",u(9,9,"bookingSummary.securityDeposit.tooltip")),n(4),f(" ",(t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)+" "+y(13,11,t.valorDepositoGarantia,t.booking==null||t.booking.ofertaSelecionada==null||t.booking.ofertaSelecionada.tarifa==null?null:t.booking.ofertaSelecionada.tarifa.moeda)," "),n(3),f(" ",u(16,14,"bookingSummary.securityDeposit.informative")," ")}}function t0(i,r){if(i&1&&h(0,"app-booking-summary-info",78),i&2){let t=g();d("monthlyReservation",(t.booking==null?null:t.booking.quantidadeDiarias)>=t.DAILY_QUANTITY_FOR_MONTHLY_RENTAL)("preAuthorizationValue",t.preAuthorizationValue)("loadingPreAuthorization",t.loadingPreAuthorization)("errorPreAuthorization",t.errorPreAuthorization)("hasCompleteProtection",t.hasCompleteProtection)("showPreAuthorizationLoggedOut",t.showPreAuthorizationLoggedOut)("hasCombo",t.hasCombo)}}function i0(i,r){if(i&1&&h(0,"app-booking-summary-info",79),i&2){let t=g();d("preAuthorizationValue",t.preAuthorizationValue)("loadingPreAuthorization",t.loadingPreAuthorization)("errorPreAuthorization",t.errorPreAuthorization)("hasCompleteProtection",t.hasCompleteProtection)("showPreAuthorizationLoggedOut",t.showPreAuthorizationLoggedOut)("hasCombo",t.hasCombo)("isMexico",!0)("isMexicoLosCabos",!0)}}function o0(i,r){if(i&1&&h(0,"app-booking-summary-info",80),i&2){let t=g();d("preAuthorizationValue",t.preAuthorizationValue)("loadingPreAuthorization",t.loadingPreAuthorization)("errorPreAuthorization",t.errorPreAuthorization)("hasCompleteProtection",t.hasCompleteProtection)("showPreAuthorizationLoggedOut",t.showPreAuthorizationLoggedOut)("hasCombo",t.hasCombo)("isMexico",!0)("isMexicoDepositoGarantia",!0)}}var Dn=(()=>{let r=class r{get rentInMexico(){return this.booking?.codigoPaisAgenciaRetirada===pe}constructor(e,a,o,m,_,x,O,R,K,me,ke,qe,at){this.platformId=e,this.translateService=a,this.gaService=o,this.navigationFlow=m,this.authService=_,this.featureToggleService=x,this.dialog=O,this.parcelamento=R,this.parceiroService=K,this.route=me,this.webviewService=ke,this.insiderService=qe,this.location=at,this.DAILY_QUANTITY_FOR_MONTHLY_RENTAL=Xa,this.COUNTRY_CODE_BRASIL=le,this.COUNTRY_CODE_MEXICO=pe,this.DEPOSITO_GARANTIA_VALUE=900,this.options={root:null,rootMargin:"0px",threshold:1},this.logouPreAutorizacao=new W,this.sawTotalValue=new W,this.sawPreAuthorizationValue=new W,this.optionals=[],this.equipments=[],this.issuedTotalValueEvent=!1,this.issuedPreAuthorizationEvent=!1,this.isSelecaoPontosDotersScreen=!1,this.show
1FullDescription=!1,this.losCabosCode="AASJD",this.isBrowser=Be(this.platformId),this.route.url.subscribe(Pt=>{this.isSelecaoPontosDotersScreen=Pt.some(Ct=>Ct.path==="selecao-puntos-doters")})}ngOnInit(){this.user=this.authService.obterUsuarioLogado(),this.observer=this.createObserver(()=>this.sawTotalValue.emit(),this.issuedTotalValueEvent),this.observerPreAuthorization=this.createObserver(()=>this.sawPreAuthorizationValue.emit(),this.issuedPreAuthorizationEvent),this.culture=this.translateService.currentLang,this.codAgencia=this.booking?.codigoPaisAgenciaRetirada===le,this.agenciaColombiana=this.booking?.codigoPaisAgenciaRetirada===Fe,this.isBrasil=this.culture==="pt-br",this.isMexico=this.culture==="es-mx"||this.culture==="en-mx",this.parcelamentoDaOferta=this.parcelamento.getParcelamentoDaOferta()}ngOnChanges(){this.filterItemsByOptionsAndEquipment(),this.filterUpgradeSelected()}ngAfterViewInit(){this.totalValue&&this.observer.observe(this.totalValue.nativeElement),this.showPreAuthorization&&this.observerPreAuthorization.observe(this.bookingSummaryInfo.nativeElement)}ngOnDestroy(){this.observer?.disconnect(),this.observerPreAuthorization?.disconnect()}get showPrepaidBrasilDiscount(){let e=this.booking?.ofertaSelecionada?.meioPagamento?.find(a=>a.tipo==="Link");return this.booking?.codigoPaisAgenciaRetirada===le&&this.booking?.ofertaSelecionada?.meioPagamento?.length&&this.prepaidBrasilPercentageDiscount>0&&e?.selecionado&&(this.insiderService.prePaidBrasilCActivated()||this.insiderService.prePaidBrasilDActivated())}get prepaidBrasilPercentageDiscount(){return this.booking?.ofertaSelecionada?.meioPagamento?.find(a=>a.tipo==="Link")?.percentualDesconto??0}get shouldShowControlledKm(){let e=this.booking?.ofertaSelecionada?.quilometragemControlada,a=e?.adicionalKmLivre;return(e?.controlada&&(!a||a&&!a.selecionado))??!1}get shouldShowDepositoGarantia(){return this.booking?.codigoPaisAgenciaRetirada==="0598"}get valorDepositoGarantia(){return this.DEPOSITO_GARANTIA_VALUE}get hasThirdPartyCoverage(){return!!this.combo?.itens?.some(e=>e.descricaoAdicional==="thirdPartyCoverage")}get hasUnlimitedKm(){return!!this.combo?.itens?.some(e=>e.descricaoAdicional==="unlimitedKm")}get monthlyFees(){let e=[],a=this.booking?.ofertaSelecionada?.mensalidades?.filter(m=>m.condicaoMensalidade===Di.INCLUSA);e=e.concat(a??[]);let o=this.booking?.ofertaSelecionada?.mensalidades?.filter(m=>m.condicaoMensalidade===Di.PARCIAL);return e=e.concat(o??[]),e}filterItemsByOptionsAndEquipment(){this.booking?.ofertaSelecionada?.itens&&(this.optionals=this.booking.ofertaSelecionada.itens.filter(e=>e.selecionado&&e.tipoItem===je.SERVICO),this.equipments=this.booking.ofertaSelecionada.itens.filter(e=>e.selecionado&&e.tipoItem===je.EQUIPAMENTO)),this.booking?.ofertaSelecionada?.combos&&(this.combo=this.booking.ofertaSelecionada.combos.find(e=>e.selecionado)),this.booking?.codigoPaisAgenciaRetirada===this.COUNTRY_CODE_MEXICO&&(!this.combo||!this.combo.itens||this.combo.itens.length===0)&&(this.combo={itens:[{descricaoAdicional:"thirdPartyCoverage"},{descricaoAdicional:"unlimitedKm"}]})}filterUpgradeSelected(){this.booking?.ofertaSelecionada?.upgrades&&(this.upgradeSelected=this.booking.ofertaSelecionada.upgrades.find(e=>e.selecionado))}handleEditBooking(e){if(this.webviewService.isWebView()&&e===1){Bi();return}if(this.webviewService.isWebView()&&e===2){this.location.back();return}let a=this.translateService.instant(`breadCrumbs.reserva.passo${e}.url`);this.gaService.preencherDataLayer({event:"__MensuraEventos",category:"Reserva",action:"Navega\xE7\xE3o - Editar",label:`Passo ${e}`}),this.dialog.closeAll(),this.navigationFlow.navigate({step:e,url:a}),this.isBrowser&&setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},300)}createObserver(e,a){return new IntersectionObserver(o=>{o?.length>0&&o[0]?.isIntersecting&&!a&&(a=!0,e())},this.options)}getDiscountMessage(){return this.parceiroService.getPartnerMessage("messagemDiscontoSumarioReserva")}getDiscountMessageLogo(){return this.parceiroService.getPartnerMessage("messagemDiscontoSumarioReservaLogo")}prepaidSelected(){return this.booking?.ofertaSelecionada?.meioPagamento?.some(e=>e.selecionado&&e.tipo==="Link")??!1}get showProgressiveDiscountInfo(){return(this.booking?.ofertaSelecionada?.mensalidades&&this.booking?.ofertaSelecionada?.mensalidades?.length>0)??!1}};r.\u0275fac=function(a){return new(a||r)(v(Ve),v(G),v(Q),v(Yt),v(Ye),v(Qt),v(re),v($o),v(rn),v($i),v(Pe),v(_t),v(wa))},r.\u0275cmp=M({type:r,selectors:[["app-booking-summary"]],viewQuery:function(a,o){if(a&1&&(kt(Hu,5),kt($u,5)),a&2){let m;et(m=tt())&&(o.totalValue=m.first),et(m=tt())&&(o.bookingSummaryInfo=m.first)}},inputs:{booking:"booking",showPreAuthorization:"showPreAuthorization",preAuthorizationValue:"preAuthorizationValue",loadingPreAuthorization:"loadingPreAuthorization",errorPreAuthorization:"errorPreAuthorization",hasCompleteProtection:"hasCompleteProtection",showPreAuthorizationLoggedOut:"showPreAuthorizationLoggedOut",hasCombo:"hasCombo"},outputs:{logouPreAutorizacao:"logouPreAutorizacao",sawTotalValue:"sawTotalValue",sawPreAuthorizationValue:"sawPreAuthorizationValue"},features:[nt],decls:98,vars:74,consts:[["totalValue",""],["valorPadrao",""],["bookingSummaryInfo",""],[1,"booking-summary"],[1,"booking-summary__itens"],[1,"booking-summary-item"],[1,"booking-summary-item-content"],[4,"ngIf"],["theme","link-primary",3,"click"],[1,"booking-summary-item","booking-summary-item__info-seven-hours"],[3,"pickupReturnTimeDifference","user",4,"ngIf"],[1,"booking-summary-offer"],[1,"booking-summary-offer__header"],["class","booking-summary-offer-discountet-price",4,"ngIf"],["class","booking-summary-offer__price-without-discount","data-testid","without-discount-block",4,"ngIf"],["class","booking-summary-offer-extra-hour",4,"ngIf"],["class","booking-summary-discount",4,"ngIf"],["class","booking-summary-offer-km-franchise",4,"ngIf"],[1,"booking-summary-protections"],["class","booking-summary-extra",4,"ngIf"],["class","booking-summary-additional-values",4,"ngIf"],["class","booking-summary-extra-text",4,"ngIf"],["class","booking-summary-benefits",4,"ngIf"],[1,"booking-summary__value"],[1,"booking-summary__value__total"],[1,"booking-summary__value__amount"],[4,"ngIf","ngIfElse"],["class","booking-summary__value__points",4,"ngIf"],["class","booking-summary__value__includes-taxes",4,"ngIf"],["class","booking-summary__value__instalments",4,"ngIf"],["style","line-height: 1.4",3,"innerHTML",4,"ngIf"],["class","progressiveDiscountInfo","data-testid","progressive-discount-info",4,"ngIf"],["class","booking-summary__itens","data-testid","deposito-garantia-section",4,"ngIf"],[3,"monthlyReservation","preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization","hasCompleteProtection","showPreAuthorizationLoggedOut","hasCombo",4,"ngIf"],[3,"preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization","hasCompleteProtection","showPreAuthorizationLoggedOut","hasCombo","isMexico","isMexicoLosCabos",4,"ngIf"],[3,"preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization","hasCompleteProtection","showPreAuthorizationLoggedOut","hasCombo","isMexico","isMexicoDepositoGarantia",4,"ngIf"],[3,"pickupReturnTimeDifference","user"],[1,"booking-summary-offer-discountet-price"],[1,"booking-summary-offer-discountet-price__default"],[1,"booking-summary-offer-discountet-price__new-value"],["data-testid","without-discount-block",1,"booking-summary-offer__price-without-discount"],["data-testid","monthly-breakdown",3,"monthlyFees","currency"],[1,"booking-summary-offer-extra-hour"],[1,"booking-summary-discount"],[1,"booking-summary-discount__text"],[1,"booking-summary-discount__percent"],[1,"booking-summary-discount__percent__icon",3,"icon","size"],[3,"combo","booking"],[1,"booking-summary-offer-km-franchise"],[1,"booking-summary-offer-km-franchise__value"],["class","booking-summary-offer-km-franchise__value-sum",4,"ngIf"],["class","booking-summary-offer-km-franchise__text",4,"ngIf"],[1,"booking-summary-offer-km-franchise__value-sum"],[1,"booking-summary-offer-km-franchise__text"],[1,"booking-summary-protections__title"],["class","booking-summary-protection",4,"ngIf"],[1,"booking-summary-protection"],["class","booking-summary-protection",4,"ngFor","ngForOf"],[1,"booking-summary-protections__color-alert"],[1,"booking-summary-protections__percent"],[1,"booking-summary-protections__percent__icon",3,"icon","size"],[1,"booking-summary-extra"],[1,"booking-summary-additional-values"],[4,"ngFor","ngForOf"],[1,"booking-summary-extra-text"],[1,"booking-summary-benefits"],[3,"src","alt"],[1,"booking-summary__value__points"],[1,"booking-summary__value__includes-taxes"],[1,"booking-summary__value__instalments"],[2,"line-height","1.4",3,"innerHTML"],["data-testid","progressive-discount-info",1,"progressiveDiscountInfo"],["data-testid","deposito-garantia-section",1,"booking-summary__itens"],[1,"booking-summary-security-deposit__title"],[1,"booking-summary-security-deposit-extra"],[3,"tooltipText"],["icon","icon_info_circle","size","sm","color","grey"],[1,"booking-summary-security-deposit-informative"],[3,"monthlyReservation","preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization","hasCompleteProtection","showPreAuthorizationLoggedOut","hasCombo"],[3,"preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization","hasCompleteProtection","showPreAuthorizationLoggedOut","hasCombo","isMexico","isMexicoLosCabos"],[3,"preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization","hasCompleteProtection","showPreAuthorizationLoggedOut","hasCombo","isMexico","isMexicoDepositoGarantia"]],template:function(a,o){if(a&1){let m=k();s(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"p"),p(5),c(6,"translate"),l(),C(7,Zu,4,7,"p",7)(8,Yu,8,25,"p",7),s(9,"p"),p(10),c(11,"titlecaseLocaliza"),l()(),s(12,"ds-new-button",8),b("click",function(){return P(m),S(o.handleEditBooking(1))}),B(13,Qu,2,3)(14,Xu,2,3),l()(),s(15,"div",9)(16,"div",6)(17,"div")(18,"p"),p(19),c(20,"translate"),l(),C(21,Ju,4,7,"p",7)(22,ef,8,25,"p",7),s(23,"p"),p(24),c(25,"titlecaseLocaliza"),l()(),s(26,"ds-new-button",8),b("click",function(){return P(m),S(o.handleEditBooking(1))}),B(27,tf,2,3)(28,of,2,3),l()(),C(29,af,1,2,"app-info-twenty-seven-hours",10),l(),s(30,"div",5)(31,"div",6)(32,"p"),p(33),c(34,"translate"),l(),s(35,"p"),p(36),c(37,"titlecaseLocaliza"),l(),s(38,"p"),p(39),c(40,"carsGroup"),c(41,"async"),l(),C(42,nf,2,2,"p",7),l(),s(43,"ds-new-button",8),b("click",function(){return P(m),S(o.handleEditBooking(2))}),p(44),c(45,"translate"),l()(),s(46,"div",11)(47,"h4"),p(48),l(),s(49,"div",12)(50,"p"),p(51),c(52,"translate"),c(53,"translate"),l(),s(54,"p"),p(55),c(56,"translate"),l()(),C(57,rf,14,15,"div",13)(58,sf,8,10,"div",14)(59,lf,2,2,"div",7)(60,cf,8,10,"div",15)(61,df,8,6,"div",16)(62,pf,2,2,"ng-container",7),l(),C(63,vf,11,9,"div",17),s(64,"div",18),C(65,Sf,20,17,"ng-container",7)(66,If,6,5,"ng-container",7)(67,Rf,5,4,"ng-container",7),l(),C(68,Bf,7,8,"div",19)(69,zf,6,7,"div",19)(70,Uf,2,1,"div",20)(71,Gf,4,3,"div",21)(72,Hf,6,5,"div",22),l(),s(73,"div",23,0)(75,"p",24),p(76),c(77,"translate"),l(),s(78,"p",25),C(79,$f,3,4,"ng-container",26)(80,Wf,2,4,"ng-template",null,1,Me),l(),C(82,Kf,6,17,"p",27)(83,Zf,3,3,"p",28)(84,Yf,4,11,"p",29)(85,Qf,4,11,"p",7)(86,Xf,1,1,"p",30)(87,Jf,3,3,"p",31),l(),C(88,e0,17,16,"div",32),s(89,"div",null,2),C(91,t0,1,7,"app-booking-summary-info",33),l(),s(92,"div",null,2),C(94,i0,1,8,"app-booking-summary-info",34),l(),s(95,"div",null,2),C(97,o0,1,8,"app-booking-summary-info",35),l()()}
1if(a&2){let m=ue(81);n(5),D(u(6,48,"bookingSummary.pickUp")),n(2),d("ngIf",!o.isMexico),n(),d("ngIf",o.isMexico),n(2),D(u(11,50,o.booking==null?null:o.booking.nomeAgenciaRetirada)),n(3),F(o.webviewService.isWebView()?13:14),n(6),D(u(20,52,"bookingSummary.dropOff")),n(2),d("ngIf",!o.isMexico),n(),d("ngIf",o.isMexico),n(2),D(u(25,54,o.booking==null?null:o.booking.nomeAgenciaDevolucao)),n(3),F(o.webviewService.isWebView()?27:28),n(2),d("ngIf",(o.booking==null?null:o.booking.quantidadeDiarias)<o.DAILY_QUANTITY_FOR_MONTHLY_RENTAL&&(o.booking==null?null:o.booking.codigoPaisAgenciaRetirada)==o.COUNTRY_CODE_BRASIL&&(o.booking==null?null:o.booking.diferencaHorarioRetiradaDevolucao)),n(4),D(u(34,56,"bookingSummary.group")),n(3),q(" ",o.booking==null||o.booking.grupoSelecionado==null?null:o.booking.grupoSelecionado.codigoLocaliza," - ",u(37,58,o.booking==null||o.booking.grupoSelecionado==null?null:o.booking.grupoSelecionado.nome)," "),n(3),D(u(41,62,u(40,60,o.booking==null?null:o.booking.grupoSelecionado))),n(3),d("ngIf",o.upgradeSelected),n(2),f(" ",u(45,64,"bookingSummary.edit")," "),n(4),D(o.booking==null||o.booking.ofertaSelecionada==null?null:o.booking.ofertaSelecionada.descricao),n(3),f(" ",(o.booking==null?null:o.booking.quantidadeDiarias)>1?u(52,66,"bookingSummary.dailies"):u(53,68,"bookingSummary.daily")," "),n(4),D(u(56,70,"bookingSummary.total")),n(2),d("ngIf",(o.booking==null||o.booking.ofertaSelecionada==null||o.booking.ofertaSelecionada.tarifa==null?null:o.booking.ofertaSelecionada.tarifa.existeDescontoPromocional)||o.prepaidSelected()),n(),d("ngIf",(o.monthlyFees==null?null:o.monthlyFees.length)===0),n(),d("ngIf",o.monthlyFees&&o.monthlyFees.length>0),n(),d("ngIf",(o.booking==null||o.booking.ofertaSelecionada==null?null:o.booking.ofertaSelecionada.quantidadeHorasExtras)>0),n(),d("ngIf",((o.booking==null||o.booking.ofertaSelecionada==null||o.booking.ofertaSelecionada.tarifa==null?null:o.booking.ofertaSelecionada.tarifa.existeDescontoPromocional)||o.showPrepaidBrasilDiscount)&&o.codAgencia),n(),d("ngIf",o.combo&&o.rentInMexico),n(),d("ngIf",(o.booking==null||o.booking.ofertaSelecionada==null?null:o.booking.ofertaSelecionada.quilometragemControlada)&&o.booking.codigoPaisAgenciaRetirada==="0055"&&o.booking.quantidadeDiarias<30),n(2),d("ngIf",o.combo&&!o.rentInMexico),n(),d("ngIf",o.optionals.length>0||o.hasThirdPartyCoverage),n(),d("ngIf",o.equipments.length>0),n(),d("ngIf",o.booking==null||o.booking.ofertaSelecionada==null||o.booking.ofertaSelecionada.tarifa==null?null:o.booking.ofertaSelecionada.tarifa.valorTaxaRetorno),n(),d("ngIf",o.booking==null||o.booking.ofertaSelecionada==null||o.booking.ofertaSelecionada.tarifa==null?null:o.booking.ofertaSelecionada.tarifa.valorTaxaServico),n(),d("ngIf",(o.booking==null||o.booking.ofertaSelecionada==null||o.booking.ofertaSelecionada.tarifa==null?null:o.booking.ofertaSelecionada.tarifa.valoresAdicionais.length)>0),n(),d("ngIf",(o.booking==null||o.booking.ofertaSelecionada==null?null:o.booking.ofertaSelecionada.quantidadeHorasExtras)>0),n(),d("ngIf",(o.booking==null||o.booking.ofertaSelecionada==null||o.booking.ofertaSelecionada.tarifa==null?null:o.booking.ofertaSelecionada.tarifa.existeDescontoPromocional)&&!o.codAgencia&&!o.prepaidSelected()),n(4),f(" ",u(77,72,"bookingSummary.valueTotal")," "),n(3),d("ngIf",(o.booking==null||o.booking.parceiro==null?null:o.booking.parceiro.partnerIdentifier)==="DOTERS"&&(o.booking==null||o.booking.parceiro==null?null:o.booking.parceiro.usageType)==="use"&&(o.booking==null||o.booking.ofertaSelecionada==null||o.booking.ofertaSelecionada.tarifa==null||o.booking.ofertaSelecionada.tarifa.parceiro==null?null:o.booking.ofertaSelecionada.tarifa.parceiro.valorRestanteEmPesos)!==void 0)("ngIfElse",m),n(3),d("ngIf",(o.booking==null||o.booking.parceiro==null?null:o.booking.parceiro.partnerIdentifier)==="DOTERS"&&(o.booking==null||o.booking.parceiro==null?null:o.booking.parceiro.usageType)==="use"),n(),d("ngIf",o.agenciaColombiana),n(),d("ngIf",(o.booking==null||o.booking.ofertaSelecionada==null||o.booking.ofertaSelecionada.tarifa==null?null:o.booking.ofertaSelecionada.tarifa.numeroParcelas)>1&&(o.parcelamentoDaOferta==null?null:o.parcelamentoDaOferta.toggleParcelamento)&&o.isBrasil),n(),d("ngIf",(o.booking==null||o.booking.ofertaSelecionada==null||o.booking.ofertaSelecionada.tarifa==null?null:o.booking.ofertaSelecionada.tarifa.numeroParcelas)>1&&!o.isBrasil&&(o.parcelamentoDaOferta==null?null:o.parcelamentoDaOferta.toggleParcelamento)&&o.codAgencia),n(),d("ngIf",(o.parcelamentoDaOferta==null||o.parcelamentoDaOferta.msgPadrao==null?null:o.parcelamentoDaOferta.msgPadrao.toggleMsg)&&o.codAgencia&&(o.booking==null?null:o.booking.quantidadeDiarias)<o.DAILY_QUANTITY_FOR_MONTHLY_RENTAL&&!(o.booking!=null&&o.booking.agenciaFranqueado)),n(),d("ngIf",o.showProgressiveDiscountInfo),n(),d("ngIf",o.shouldShowDepositoGarantia),n(3),d("ngIf",o.showPreAuthorization||(o.booking==null?null:o.booking.quantidadeDiarias)>=o.DAILY_QUANTITY_FOR_MONTHLY_RENTAL&&(o.booking==null?null:o.booking.codigoPaisAgenciaRetirada)==o.COUNTRY_CODE_BRASIL&&!(o.booking!=null&&o.booking.agenciaFranqueado)),n(3),d("ngIf",(o.booking==null?null:o.booking.codigoAgenciaRetirada)===o.losCabosCode),n(3),d("ngIf",o.rentInMexico)}},dependencies:[oe,J,U,ae,N,A,wl,Vl,zl,Vt,ii,cn,ln,Le,zc,Lc,Pn,Jt,T,Mn,Vc,yi,Ne,Ja],styles:[".pre-authorization-value[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:1.8rem;font-size:1.6rem}.pre-authorization-value__descriptions[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem}.pre-authorization-value__descriptions[_ngcontent-%COMP%] p[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:transparent;border:none;color:#1e852d;cursor:pointer;font-weight:700;outline:none}.pre-authorization-value__descriptions[_ngcontent-%COMP%] p[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#01602a;transition:.2s}.pre-authorization-value__descriptions[_ngcontent-%COMP%] p[_ngcontent-%COMP%] + p[_ngcontent-%COMP%]{margin-top:.8rem}.booking-summary-item[_ngcontent-%COMP%]{align-items:center;border-bottom:.01rem solid #d6d6d6;display:flex;justify-content:space-between;padding-bottom:1.6rem;margin-bottom:1.6rem}.booking-summary-item__info-seven-hours[_ngcontent-%COMP%]{flex-direction:column}.booking-summary-item__info-seven-hours[_ngcontent-%COMP%] .booking-summary-item-content[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;width:100%}.booking-summary-item-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(1){color:#01602a;font-size:1.8rem;font-weight:700;line-height:2.4rem}.booking-summary-item-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(2){color:#383838;font-size:1.6rem;font-weight:700;line-height:2rem;margin:.4rem 0}.booking-summary-item-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(3){color:#4a4a4a;line-height:2rem}.booking-summary-item-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(4){color:#4a4a4a;line-height:2rem;margin-top:.4rem}.booking-summary[_ngcontent-%COMP%]{background-color:#fff}.booking-summary__itens[_ngcontent-%COMP%]{padding:0 1.6rem 2.4rem}.booking-summary__value[_ngcontent-%COMP%]{background-color:#01602a;color:#fff;padding:2.4rem;text-align:end}.booking-summary__value__total[_ngcontent-%COMP%]{color:#78de1f;font-weight:700;line-height:2rem}
1.booking-summary__value__amount[_ngcontent-%COMP%]{font-size:4rem;font-weight:700;line-height:4.4rem;margin:.4rem 0}.booking-summary__value__points[_ngcontent-%COMP%]{font-size:2.4rem;font-weight:700;line-height:2.4rem;margin:.4rem 0}.booking-summary__value__instalments[_ngcontent-%COMP%]{font-size:1.2rem;line-height:2.4rem}.booking-summary__value__includes-taxes[_ngcontent-%COMP%]{font-size:1.2rem;line-height:1.4rem}.booking-summary-offer[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#01602a;font-size:1.8rem;font-weight:700;line-height:2.4rem;margin-bottom:1.6rem}.booking-summary-offer__header[_ngcontent-%COMP%]{color:#383838;display:flex;font-size:1.6rem;font-weight:700;justify-content:space-between;line-height:2rem;margin-bottom:.4rem}.booking-summary-offer__price-without-discount[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.booking-summary-offer-discountet-price__default[_ngcontent-%COMP%]{display:flex;justify-content:space-between;text-decoration:line-through}.booking-summary-offer-discountet-price__new-value[_ngcontent-%COMP%]{margin-top:.8rem}.booking-summary-offer-discountet-price__new-value[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .booking-summary-offer-extra-hour[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.booking-summary-offer-km-franchise[_ngcontent-%COMP%]{margin-top:2.4rem}.booking-summary-offer-km-franchise__value[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.booking-summary-offer-km-franchise__value-sum[_ngcontent-%COMP%]{text-transform:lowercase}.booking-summary-offer-km-franchise__text[_ngcontent-%COMP%]{margin-top:.4rem;color:#6e6e6e;font-size:1.2rem;line-height:2rem;font-weight:400}.booking-summary-protections__title[_ngcontent-%COMP%]{color:#383838;font-size:1.6rem;font-weight:700;line-height:2rem;margin:2.4rem 0 .4rem}.booking-summary-protections__color-alert[_ngcontent-%COMP%]{color:#1e852d}.booking-summary-protections__percent[_ngcontent-%COMP%]{background:#cefdaf;padding:.4rem;border-radius:15rem}.booking-summary-protections__percent__icon[_ngcontent-%COMP%]{margin-right:.3rem;display:block;width:1.5rem;height:1.8rem}.booking-summary-protections__percent[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:600}.booking-summary-benefits[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#383838;font-size:1.6rem;font-weight:700;line-height:2rem;margin:2.4rem 0 .4rem}.booking-summary-benefits[_ngcontent-%COMP%] p[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:17px;height:17px;vertical-align:bottom}.booking-summary-discount[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:2.4rem}.booking-summary-discount__text[_ngcontent-%COMP%]{color:#1e852d}.booking-summary-discount__percent[_ngcontent-%COMP%]{display:flex;justify-content:space-between;background:#cefdaf;padding:.4rem;border-radius:15rem}.booking-summary-discount__percent__icon[_ngcontent-%COMP%]{margin-right:.3rem;display:block;width:1.5rem;height:1.8rem}.booking-summary-discount__percent[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:600}.booking-summary-extra[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:2.4rem}.booking-summary-extra[_ngcontent-%COMP%] + .booking-summary-extra[_ngcontent-%COMP%]{margin-top:.8rem}.booking-summary-extra-text[_ngcontent-%COMP%]{font-weight:700;margin-top:1.6rem}.booking-summary-additional-values[_ngcontent-%COMP%]{margin-top:1.6rem;padding-top:1.6rem;border-top:.01rem solid #d6d6d6}.booking-summary-additional-values[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .booking-summary-protection[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.booking-summary-protection[_ngcontent-%COMP%] + .booking-summary-protection[_ngcontent-%COMP%]{margin-top:.8rem}.booking-summary-infos[_ngcontent-%COMP%]{background-color:#f2f2f2;color:#4a4a4a;padding:1.8rem}.booking-summary-infos[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#01602a;font-size:1.8rem;line-height:2.4rem;margin-bottom:2.4rem}.booking-summary-infos-item[_ngcontent-%COMP%]{margin-bottom:3.2rem}.booking-summary-infos-item[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:1.8rem;font-size:1.6rem}.booking-summary-infos-item__descriptions[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem}.booking-summary-infos-item__descriptions[_ngcontent-%COMP%] p[_ngcontent-%COMP%] + p[_ngcontent-%COMP%]{margin-top:.8rem}.booking-summary-security-deposit__title[_ngcontent-%COMP%]{color:#01602a;font-size:1.8rem;font-weight:700;line-height:2rem;margin:2.4rem 0 .4rem}.booking-summary-security-deposit-extra[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:2.4rem;font-size:1.4rem;font-weight:400}.booking-summary-security-deposit-extra[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.8rem}.booking-summary-security-deposit-informative[_ngcontent-%COMP%]{margin-top:2.4rem}.booking-summary-inline[_ngcontent-%COMP%]{display:flex;align-items:center}.booking-summary-infos-item__icon[_ngcontent-%COMP%]{margin-left:5px}.progressiveDiscountInfo[_ngcontent-%COMP%]{font-size:1.3rem}"]});let i=r;return i})();var ki=(()=>
1{let r=class r{constructor(){this.sawTotalValue=new W,this.sawPreAuthorizationValue=new W}sawTotalValueEvent(){this.sawTotalValue.emit()}sawPreAuthorizationValueEvent(){this.sawPreAuthorizationValue.emit()}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-box-booking-summary"]],inputs:{bookingData:"bookingData",showPreAuthorization:"showPreAuthorization",preAuthorizationValue:"preAuthorizationValue",loadingPreAuthorization:"loadingPreAuthorization",errorPreAuthorization:"errorPreAuthorization",hasCompleteProtection:"hasCompleteProtection",showPreAuthorizationLoggedOut:"showPreAuthorizationLoggedOut",hasCombo:"hasCombo"},outputs:{sawTotalValue:"sawTotalValue",sawPreAuthorizationValue:"sawPreAuthorizationValue"},decls:6,vars:11,consts:[[1,"box-booking-summary"],[1,"box-booking-summary__header"],["data-testid","booking-summary-unit-test",3,"sawTotalValue","sawPreAuthorizationValue","booking","showPreAuthorization","preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization","hasCompleteProtection","showPreAuthorizationLoggedOut","hasCombo"]],template:function(a,o){a&1&&(s(0,"section",0)(1,"header",1)(2,"h4"),p(3),c(4,"translate"),l()(),s(5,"app-booking-summary",2),b("sawTotalValue",function(){return o.sawTotalValueEvent()})("sawPreAuthorizationValue",function(){return o.sawPreAuthorizationValueEvent()}),l()()),a&2&&(n(3),D(u(4,9,"bookingSummary.title")),n(2),d("booking",o.bookingData)("showPreAuthorization",o.showPreAuthorization)("preAuthorizationValue",o.preAuthorizationValue)("loadingPreAuthorization",o.loadingPreAuthorization)("errorPreAuthorization",o.errorPreAuthorization)("hasCompleteProtection",o.hasCompleteProtection)("showPreAuthorizationLoggedOut",o.showPreAuthorizationLoggedOut)("hasCombo",o.hasCombo))},dependencies:[Dn,A,T],styles:[".box-booking-summary[_ngcontent-%COMP%]{box-shadow:0 1.4rem 3.5rem #0000001b;margin-bottom:2.4rem;position:sticky;top:.8rem}.box-booking-summary__header[_ngcontent-%COMP%]{background-color:#d6d6d6;border-top-left-radius:.8rem;border-top-right-radius:.8rem;color:#4a4a4a;font-size:1.8rem;font-weight:700;line-height:2.4rem;margin-bottom:2.4rem;padding:1.6rem;text-align:center}"]});let i=r;return i})();function a0(i,r){if(i&1){let t=k();s(0,"a",6),b("click",function(){P(t);let a=g();return S(a.readMoreFn())})("keyup.enter",function(){P(t);let a=g();return S(a.readMoreFn())})("keyup.space",function(){P(t);let a=g();return S(a.readMoreFn())}),p(1),c(2,"translate"),l()}i&2&&(n(),f(" ",u(2,1,"dataPrivacyInformation.readMore")," "))}var Hc=(()=>{let r=class r{constructor(){this.showReadMoreButton=!0,this.readMore=!1}readMoreFn(){this.readMore=!this.readMore}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-data-privacy-information"]],inputs:{showReadMoreButton:"showReadMoreButton"},decls:14,vars:18,consts:[["color","info",3,"showCloseButton"],["slotContent","",1,"data-privacy-information"],[1,"data-privacy-information__content"],[1,"data-privacy-information__content__bold"],["target","_blank","rel","noopener",1,"data-privacy-information__content__link",3,"routerLink"],["tabindex","0","class","data-privacy-information__read-more",3,"click","keyup.enter","keyup.space",4,"ngIf"],["tabindex","0",1,"data-privacy-information__read-more",3,"click","keyup.enter","keyup.space"]],template:function(a,o){a&1&&(s(0,"app-alert",0)(1,"div",1)(2,"p",2)(3,"span",3),p(4),c(5,"translate"),l(),p(6),c(7,"translate"),s(8,"a",4),c(9,"translate"),p(10),c(11,"translate"),l(),p(12,". "),l(),C(13,a0,3,3,"a",5),l()()),a&2&&(d("showCloseButton",!1),n(),Z("data-privacy-information--read-more",o.readMore),n(),Z("data-privacy-information__content--read-more",o.readMore||!o.showReadMoreButton),n(2),f(" ",u(5,10,"dataPrivacyInformation.title")," "),n(2),f(" - ",u(7,12,"dataPrivacyInformation.description")," "),n(2),d("routerLink",u(9,14,"url.privacyPolicy")),n(2),f(" ",u(11,16,"dataPrivacyInformation.titleLink")),n(3),d("ngIf",!o.readMore&&o.showReadMoreButton))},dependencies:[N,A,wi,oo,La,T],styles:[".data-privacy-information[_ngcontent-%COMP%]{display:flex}.data-privacy-information__content[_ngcontent-%COMP%]{color:var(--lds-color-accent-info-contrast-lower);font-family:var(--lds-font-functional-family);font-size:1.2rem;font-weight:400;line-height:160%;max-height:1.9rem;line-height:1.9rem;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@media screen and (max-width:767px){.data-privacy-information__content[_ngcontent-%COMP%]{max-height:3.8rem;line-height:1.9rem;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}}.data-privacy-information__content--read-more[_ngcontent-%COMP%]{display:block;max-height:none;-webkit-line-clamp:none;line-clamp:none}.data-privacy-information__content__bold[_ngcontent-%COMP%]{font-weight:700}.data-privacy-information__content__link[_ngcontent-%COMP%]{font-weight:400;text-decoration:underline;cursor:pointer}.data-privacy-information__content__bold[_ngcontent-%COMP%], .data-privacy-information__content__link[_ngcontent-%COMP%]{color:var(--lds-color-accent-info-contrast-lower);font-family:var(--lds-font-functional-family);font-size:1.2rem;line-height:160%}.data-privacy-information__read-more[_ngcontent-%COMP%]{align-self:flex-end;margin-left:.8rem;color:var(--lds-color-accent-info-contrast-lower);font-family:var(--lds-font-functional-family);font-size:1.2rem;font-weight:700;white-space:nowrap;line-height:160%;text-decoration:underline;cursor:pointer}"],changeDetection:0});let i=r;return i})();var n0=()=>[];function r0(i,r){i&1&&(s(0,"div",2),h(1,"lds-icon-alarm"),l())}function s0(i,r){if(i&1&&(s(0,"p",3),p(1),l()),i&2){let t=r.$implicit;n(),D(t)}}function l0(i,r){if(i&1){let t=k();s(0,"button",7),b("click",function(){P(t);let a=g();return S(a.confirm())}),p(1),l()}if(i&2){let t=g();n(),f(" ",t.data.primaryButtonKey," ")}}function c0(i,r){if(i&1){let t=k();s(0,"button",8),b("click",function(){P(t);let a=g();return S(a.cancel())}),p(1),l()}if(i&2){let t=g();n(),f(" ",t.data.secondaryButtonKey," ")}}var hr=(()=>
1{let r=class r{constructor(){this.dialogRef=I(Y),this.data=I(ne)}showPrimary(){return!!this.data.primaryButtonKey}cancel(){this.data.onSecondaryClick?.(),this.dialogRef.close({action:"secondary"})}confirm(){this.data.onPrimaryClick?.(),this.dialogRef.close({action:"primary"})}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-generic-dialog-mx-modal"]],decls:9,vars:6,consts:[[1,"generic-dialog-mx",3,"showModalCloseButton"],[1,"generic-dialog-mx__title"],["aria-hidden","true",1,"generic-dialog-mx__icon"],[1,"generic-dialog-mx__description"],[1,"generic-dialog-mx__footer"],["type","button","data-testid","generic-dialog-mx-primary",1,"generic-dialog-mx__footer__button-secondary"],["type","button","data-testid","generic-dialog-mx-secondary",1,"generic-dialog-mx__footer__button-basic-secondary"],["type","button","data-testid","generic-dialog-mx-primary",1,"generic-dialog-mx__footer__button-secondary",3,"click"],["type","button","data-testid","generic-dialog-mx-secondary",1,"generic-dialog-mx__footer__button-basic-secondary",3,"click"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"h3",1),p(2),l(),B(3,r0,2,0,"div",2),Ai(4,s0,2,1,"p",3,Br),s(6,"div",4),B(7,l0,2,1,"button",5),B(8,c0,2,1,"button",6),l()()),a&2&&(d("showModalCloseButton",o.data.showModalCloseButton??!1),n(2),D(o.data.titleKey),n(),F(o.data.showIconAlarm?3:-1),n(),Ei(o.data.bodyKeys??Wt(5,n0)),n(3),F(o.showPrimary()?7:-1),n(),F(o.data.secondaryButton?8:-1))},dependencies:[se,A,zo],styles:['[_nghost-%COMP%] .generic-dialog-mx__title[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default);font-family:var(--lds-font-brand-family);font-size:2rem;font-weight:600;line-height:140%}[_nghost-%COMP%] .generic-dialog-mx__icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:6rem;height:6rem;margin:1.5rem auto;border-radius:50%;color:#43b02a;background:#0000;font-size:2.7rem}[_nghost-%COMP%] .generic-dialog-mx__icon[_ngcontent-%COMP%] lds-icon-alarm svg{width:6rem;height:6rem}[_nghost-%COMP%] .generic-dialog-mx__description[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-low);font-family:var(--lds-font-functional-family);font-size:1.4rem;font-weight:400;line-height:150%}[_nghost-%COMP%] .generic-dialog-mx__footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.8rem;margin-top:3.2rem}[_nghost-%COMP%] .generic-dialog-mx__footer__button-secondary[_ngcontent-%COMP%], [_nghost-%COMP%] .generic-dialog-mx__footer__button-basic-secondary[_ngcontent-%COMP%]{position:relative;width:100%;padding:.8rem 1.5rem;font-family:Inter,LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.6rem;font-weight:600;line-height:150%;text-align:center;cursor:pointer;transition:all .1s ease-out;overflow:hidden}[_nghost-%COMP%] .generic-dialog-mx__footer__button-secondary[_ngcontent-%COMP%]:focus, [_nghost-%COMP%] .generic-dialog-mx__footer__button-basic-secondary[_ngcontent-%COMP%]:focus{outline:2px solid var(--lds-state-focused-color);outline-offset:2px}[_nghost-%COMP%] .generic-dialog-mx__footer__button-secondary[_ngcontent-%COMP%]:after, [_nghost-%COMP%] .generic-dialog-mx__footer__button-basic-secondary[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}[_nghost-%COMP%] .generic-dialog-mx__footer__button-secondary[_ngcontent-%COMP%]:hover:after, [_nghost-%COMP%] .generic-dialog-mx__footer__button-basic-secondary[_ngcontent-%COMP%]:hover:after{background-color:var(--lds-state-hovered-color);opacity:var(--lds-state-hovered-opacity)}[_nghost-%COMP%] .generic-dialog-mx__footer__button-secondary[_ngcontent-%COMP%]{border:none;border-radius:2.4rem;color:var(--lds-color-accent-primary-contrast-auto);background-color:var(--lds-color-accent-primary-default)}[_nghost-%COMP%] .generic-dialog-mx__footer__button-basic-secondary[_ngcontent-%COMP%]{border:none;border-radius:2.4rem;color:var(--lds-color-accent-primary-contrast-default);background-color:#0000}'],changeDetection:0});let i=r;return i})();var _a=(()=>
1{let r=class r{constructor(){this.dialog=I(re),this.activeDialogRef=null}open(e){let a=e.panelClass,o=this.dialog.open(hr,X($({data:e,disableClose:e.disableClose??!1,maxWidth:e.maxWidth??"32rem",width:e.width},a!=null?{panelClass:a}:{}),{autoFocus:!0,restoreFocus:!0}));return this.activeDialogRef=o,o.afterClosed().pipe(He(()=>{this.activeDialogRef===o&&(this.activeDialogRef=null)}))}close(e={action:"dismiss"}){this.activeDialogRef?.close(e)}};r.\u0275fac=function(a){return new(a||r)},r.\u0275prov=$e({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();var d0=["headerBar"];function p0(i,r){if(i&1&&(s(0,"span",10),p(1),l(),s(2,"span",11),p(3,"\u2192"),l(),s(4,"span",10),p(5),l()),i&2){g();let t=ya(0);n(),D(t==null?null:t.nomeAgenciaRetirada),n(4),D(t==null?null:t.nomeAgenciaDevolucao)}}function m0(i,r){if(i&1&&(s(0,"span",7),p(1),l()),i&2){g();let t=ya(0);n(),D(t==null?null:t.nomeAgenciaRetirada)}}var ro=(()=>{let r=class r{constructor(e,a,o){this.fluxoReservaStore=e,this.genericDialogMxService=a,this.translateService=o,this.platformId=I(Ve),this.location=I(wa),this.destroyRef=I(qi),this.headerBar=jr("headerBar"),this.isWebView=I(Pe).isWebView,this.spacerHeight=ve("auto"),this.lastUrlSegmentPasso5=["paso-5","passo-5","step-5"],this.data$=this.fluxoReservaStore.state$,Ar(()=>{if(!Be(this.platformId))return;let m=this.headerBar()?.nativeElement;if(!m)return;let _=()=>{let O=Math.ceil(m.getBoundingClientRect().height);O>0&&(this.spacerHeight.set(`${O}px`),document.documentElement.style.setProperty("--webview-header-offset",`${O}px`))};if(_(),typeof ResizeObserver>"u")return;let x=new ResizeObserver(()=>_());x.observe(m),this.destroyRef.onDestroy(()=>{x.disconnect(),document.documentElement.style.removeProperty("--webview-header-offset")})})}redirectApp(e){let a=Be(this.platformId)&&window.history.length>1,o=this.location.path().split("?")[0].split("/").filter(Boolean);if(this.lastUrlSegmentPasso5.includes(o[o.length-1])){this.genericDialogMxService.open({titleKey:this.translateService.instant("webView.confirmacao.titulo"),bodyKeys:[this.translateService.instant("webView.confirmacao.corpo")],primaryButtonKey:this.translateService.instant("webView.confirmacao.continuar"),secondaryButtonKey:this.translateService.instant("webView.confirmacao.voltar"),showIconAlarm:!1,disableClose:!1,secondaryButton:!0,onPrimaryClick:()=>this.genericDialogMxService.close(),onSecondaryClick:()=>Bi()});return}if(!e){Bi();return}if(a){this.location.back();return}}};r.\u0275fac=function(a){return new(a||r)(v(fe),v(_a),v(G))},r.\u0275cmp=M({type:r,selectors:[["app-header-preview"]],viewQuery:function(a,o){a&1&&Vr(o.headerBar,d0,5),a&2&&zr()},hostVars:1,hostBindings:function(a,o){a&2&&Pa("hidden",!o.isWebView())},decls:20,vars:17,consts:[["headerBar",""],[1,"header__preview-shell"],[1,"header__preview-webview"],["type","button",1,"header__preview-back",3,"click"],["svgName","arrow-left","width","25px","height","25px"],[1,"header__preview-card"],[1,"header__preview-locations"],[1,"header__preview-location","header__preview-location--single"],[1,"header__preview-dates"],["aria-hidden","true"],[1,"header__preview-location"],["aria-hidden","true",1,"header__preview-arrow"]],template:function(a,o){if(a&1){let m=k();Lr(0),c(1,"async"),s(2,"div",1)(3,"div",2,0)(5,"button",3),b("click",function(){P(m);let x=ya(0);return S(o.redirectApp(x==null?null:x.grupoSelecionado))}),h(6,"app-icon-svg",4),l(),s(7,"div",5)(8,"div",6),B(9,p0,6,2)(10,m0,2,1,"span",7),l(),s(11,"p",8)(12,"span"),p(13),c(14,"date"),l(),s(15,"span",9),p(16," - "),l(),s(17,"span"),p(18),c(19,"date"),l()()()()()}if(a&2){let m,_=Nr((m=u(1,8,o.data$))==null?null:m.reserva),x=!!(_!=null&&_.nomeAgenciaDevolucao)&&(_==null?null:_.nomeAgenciaDevolucao)!==(_==null?null:_.nomeAgenciaRetirada);n(2),$t("height",o.spacerHeight()),n(3),Ie("aria-label","voltar"),n(3),Z("header__preview-locations--dual",x),n(),F(x?9:10),n(4),D(y(14,11,_==null?null:_.dataRetirada,"d MMM. h:mma")),n(5),D(y(19,14,_==null?null:_.dataDevolucao,"d MMM. h:mma"))}},dependencies:[ni,Jt,Ta],styles:["[_nghost-%COMP%]{display:block}.header__preview-shell[_ngcontent-%COMP%]{min-height:calc(env(safe-area-inset-top,0px) + 9.6rem);box-sizing:border-box}.header__preview-webview[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:998;display:flex;align-items:center;gap:1.2rem;padding-top:calc(env(safe-area-inset-top,0px) + 1.2rem);padding-right:1.6rem;padding-bottom:1.2rem;padding-left:1.6rem;background-color:var(--lds-color-accent-primary-default, #018444)}.header__preview-back[_ngcontent-%COMP%]{flex:0 0 auto;border:none;background-color:#ffffff24;height:40px;width:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}.header__preview-card[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.2rem;background-color:var(--lds-color-neutral-background-default, #ffffff);border-radius:1.6rem;padding:1rem 1.4rem;font-family:var(--lds-font-functional-family);line-height:1.3}.header__preview-locations[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:0;width:100%;font-weight:700;font-size:1.3rem;color:var(--lds-color-neutral-text-default, #1a1a1a)}.header__preview-locations--dual[_ngcontent-%COMP%]{gap:.4rem}.header__preview-location[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.header__preview-location--single[_ngcontent-%COMP%]{flex:1 1 auto;max-width:100%}.header__preview-locations--dual[_ngcontent-%COMP%] .header__preview-location[_ngcontent-%COMP%]{flex:1 1 0;max-width:max-content}.header__preview-arrow[_ngcontent-%COMP%]{flex:0 0 auto;font-weight:700}.header__preview-dates[_ngcontent-%COMP%]{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-size:1.1rem;color:var(--lds-color-neutral-text-low, #6b6b6b)}@media(max-width:380px){.header__preview-webview[_ngcontent-%COMP%]{gap:.8rem;padding-right:1.2rem;padding-left:1.2rem}.header__preview-card[_ngcontent-%COMP%]{padding:.8rem 1.2rem}.header__preview-locations[_ngcontent-%COMP%]{font-size:1.2rem}.header__preview-dates[_ngcontent-%COMP%]{font-size:1rem}}"]});let i=r;return i})();var wn=(()=>
1{let r=class r{constructor(e){this.dialogRef=e}close(){this.dialogRef.close()}};r.\u0275fac=function(a){return new(a||r)(v(Y))},r.\u0275cmp=M({type:r,selectors:[["app-find-curp-document"]],decls:29,vars:29,consts:[[1,"find-curp-document",3,"showModalCloseButton"],[1,"find-curp-document__title"],[1,"find-curp-document__container"],["loading","lazy","src","assets/icons/ine-document.svg",1,"find-curp-document__container__image",3,"alt"],["color","secondary","size","md",3,"click","fullWidth"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"h3",1),p(2),c(3,"translate"),l(),s(4,"div",2)(5,"p"),p(6),c(7,"translate"),l(),s(8,"ul")(9,"li"),p(10),c(11,"translate"),l(),s(12,"li"),p(13),c(14,"translate"),l(),s(15,"li"),p(16),c(17,"translate"),l(),s(18,"li"),p(19),c(20,"translate"),l()(),s(21,"p"),p(22),c(23,"translate"),l(),h(24,"img",3),c(25,"translate"),l(),s(26,"app-button",4),b("click",function(){return o.close()}),p(27),c(28,"translate"),l()()),a&2&&(d("showModalCloseButton",!1),n(2),f(" ",u(3,11,"findCurpDocument.title")," "),n(4),f(" ",u(7,13,"findCurpDocument.description1")," "),n(4),D(u(11,15,"findCurpDocument.ine")),n(3),D(u(14,17,"findCurpDocument.birthCertificate")),n(3),D(u(17,19,"findCurpDocument.passport")),n(3),D(u(20,21,"findCurpDocument.satDocuments")),n(3),f(" ",u(23,23,"findCurpDocument.description2")," "),n(2),d("alt",u(25,25,"findCurpDocument.alt")),n(2),d("fullWidth",!0),n(),f(" ",u(28,27,"findCurpDocument.button")," "))},dependencies:[A,se,Gt,T],styles:[".find-curp-document[_ngcontent-%COMP%]{display:block;width:33rem}.find-curp-document__title[_ngcontent-%COMP%]{margin-bottom:1.6rem;color:var(--lds-color-accent-primary-default);font-family:var(--lds-font-brand-family);font-size:2rem;font-weight:600;line-height:150%}.find-curp-document__container[_ngcontent-%COMP%]{margin-bottom:2.4rem}.find-curp-document__container[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-left:2.15rem;margin:1.8rem 0}.find-curp-document__container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .find-curp-document__container[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-default);font-family:var(--lds-font-functional-family);font-size:1.4rem;font-weight:400;line-height:160%}.find-curp-document__container__image[_ngcontent-%COMP%]{height:17.375rem;margin-top:1.6rem}@media screen and (max-width:991px){.find-curp-document[_ngcontent-%COMP%]{width:27rem}.find-curp-document__title[_ngcontent-%COMP%]{font-size:1.6rem}.find-curp-document__container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .find-curp-document__container[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:1.2rem}.find-curp-document__container__image[_ngcontent-%COMP%]{height:13.8rem}}@media screen and (max-width:350px){.find-curp-document[_ngcontent-%COMP%]{width:100%}.find-curp-document__container__image[_ngcontent-%COMP%]{width:100%;height:auto}}"],changeDetection:0});let i=r;return i})();var u0=["element"],f0=(i,r)=>({$implicit:i,index:r});function g0(i,r){i&1&&Ee(0)}function _0(i,r){if(i&1&&(V(0),C(1,g0,1,0,"ng-container",15),z()),i&2){let t=g().$implicit,e=g(2);n(),d("ngTemplateOutlet",e.optionTemplate)("ngTemplateOutletContext",Ue(2,f0,t,e.i))}}function h0(i,r){if(i&1&&p(0),i&2){let t=g().$implicit,e=g(2);f(" ",e.getOptionLabel(t)," ")}}function v0(i,r){if(i&1){let t=k();s(0,"button",13),b("click",function(a){let o=P(t).$implicit,m=g(2);return S(m.selectByOption(a,o))}),C(1,_0,2,5,"ng-container",14)(2,h0,1,1,"ng-template",null,1,Me),l()}if(i&2){let t=r.$implicit,e=ue(3),a=g(2);Z("autocomplete__popup__paper__list__button--focused",a.getOptionId(t)===a.focusedId)("autocomplete__popup__paper__list__button--selected",a.getOptionId(t)===a.selectedId),n(),d("ngIf",a.optionTemplate)("ngIfElse",e)}}function C0(i,r){if(i&1&&(s(0,"p",16),p(1),l()),i&2){let t=g(2);n(),f(" ",t.noOptionsText," ")}}function b0(i,r){if(i&1&&(s(0,"div",8)(1,"div",9)(2,"div",10),C(3,v0,4,6,"button",11)(4,C0,2,1,"p",12),l()()()),i&2){let t=g();n(2),$t("max-height",t.menuHeight||"25rem"),n(),d("ngForOf",t.filteredOptions),n(),d("ngIf",!(t.filteredOptions!=null&&t.filteredOptions.length))}}var _o=new wr("AUTOMPLETE_FILTER",{providedIn:"root",factory:()=>({filter:(i,r)=>{let t=ft(i)?.toLowerCase();return r.filter(e=>ft(e)?.toLowerCase()?.includes(t))}})}),Kc=(()=>
1{let r=class r{constructor(e,a,o){this.changeDetectorRef=e,this.applyInnerMaskDirective=a,this.autocompleteFilter=o,this.options=[],this.error=!1,this.disabled=!1,this.noOptionsText="",this.size="md",this.selected=new W,this.valueChange=new W,this.opened=!1,this.focusedId=null,this.selectedId=null,this.filteredOptions=[],this.searchDebounce$=new Ze,this.onDestroy$=new Ze}onDocumentClick(e){let a=e.target,o=this.element?.nativeElement?.contains(a);this.element?.nativeElement&&!o&&this.opened&&this.close()}ngOnInit(){this.searchDebounce$.pipe(Co(300),Se(this.onDestroy$)).subscribe(e=>{let a=this.autocompleteFilter.filter(e,this.options);this.setFilteredOptions(a)})}ngOnChanges(e){(e.value?.currentValue||e.options?.currentValue)&&this.updateSearch(this.value),e.options?.currentValue&&this.setFilteredOptions(this.options)}updateSearch(e){if(!e){this.search="";return}let a=this.options.find(m=>this.getOptionId(m)===e);if(!a)return;let o=this.getOptionLabel(a);this.search=this.applyInnerMaskDirective.applyMask(o,this.mask)||""}filter(e=null){if(!e){this.setFilteredOptions(this.options);return}this.searchDebounce$.next(e)}setFilteredOptions(e){this.filteredOptions=e,this.filteredOptions?.length&&(this.focusedId=this.getOptionId(this.filteredOptions[0]),this.updateSelectedId()),this.changeDetectorRef.markForCheck()}updateSelectedId(){if(this.value){let e=this.filteredOptions.find(a=>this.getOptionId(a)===this.value);e&&(this.selectedId=this.getOptionId(e))}}getOptionLabel(e){return this.labelAttribute?e[this.labelAttribute]:e}getOptionId(e){return this.idAttribute?e[this.idAttribute]:e}clear(){this.selectedId=null,this.search="",this.value=null,this.selected.emit(null),this.filter(),this.opened&&this.close()}select(e){this.selectedId=e,this.focusedId=this.selectedId;let a=this.filteredOptions.find(m=>this.getOptionId(m)===e),o=this.getOptionId(a);this.value=o,this.selected.emit(this.value),this.close()}selectByOption(e,a){if(!e?.pointerType)return;let o=this.getOptionId(a);this.select(o)}open(){this.opened=!0}close(){this.opened=!1}enter(){if(this.opened){this.select(this.focusedId);return}this.open()}popupArrowClick(){this.opened&&this.close()}focusedChange(e){e&&this.open()}nextOption(){this.focusOption(1)}previousOption(){this.focusOption(-1)}focusOption(e){if(!this.opened)return;let a=this.filteredOptions.length,m=(this.filteredOptions.findIndex(_=>this.getOptionId(_)===this.focusedId)+e+a)%a;this.focusedId=this.filteredOptions[m]}ngOnDestroy(){this.searchDebounce$.complete(),this.onDestroy$.next(),this.onDestroy$.complete()}};r.\u0275fac=function(a){return new(a||r)(v(Xe),v(ua),v(_o))},r.\u0275cmp=M({type:r,selectors:[["app-autocomplete"]],viewQuery:function(a,o){if(a&1&&kt(u0,5),a&2){let m;et(m=tt())&&(o.element=m.first)}},hostBindings:function(a,o){a&1&&b("click",function(_){return o.onDocumentClick(_)},rr)("focusin",function(_){return o.onDocumentClick(_)},rr)},inputs:{value:"value",options:"options",error:"error",disabled:"disabled",mask:"mask",menuHeight:"menuHeight",placeholder:"placeholder",noOptionsText:"noOptionsText",size:"size",idAttribute:"idAttribute",labelAttribute:"labelAttribute",optionTemplate:"optionTemplate"},outputs:{selected:"selected",valueChange:"valueChange"},features:[vi([ua]),nt],decls:10,vars:11,consts:[["element",""],["defaultTemplate",""],[1,"autocomplete"],["detectFocus","",3,"valueChange","focusedChange","keyup.arrowDown","keyup.arrowUp","keyup.enter","size","error","disabled","placeholder","applyInnerMask","value"],["endSlot","",1,"autocomplete__buttons"],["tabindex","-1","type","button",1,"autocomplete__buttons__clear",3,"click"],["tabindex","-1","type","button",1,"autocomplete__buttons__arrow",3,"click"],["class","autocomplete__popup",4,"ngIf"],[1,"autocomplete__popup"],["tabindex","-1",1,"autocomplete__popup__paper"],["tabindex","-1",1,"autocomplete__popup__paper__list"],["tabindex","-1","class","autocomplete__popup__paper__list__button",3,"autocomplete__popup__paper__list__button--focused","autocomplete__popup__paper__list__button--selected","click",4,"ngFor","ngForOf"],["class","autocomplete__popup__paper__list__no-options-text",4,"ngIf"],["tabindex","-1",1,"autocomplete__popup__paper__list__button",3,"click"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"autocomplete__popup__paper__list__no-options-text"]],template:function(a,o){if(a&1){let m=k();s(0,"div",2,0)(2,"app-text-field",3),hi("valueChange",function(x){return P(m),_i(o.search,x)||(o.search=x),S(x)}),b("valueChange",function(x){return P(m),S(o.filter(x))})("focusedChange",function(x){return P(m),S(o.focusedChange(x))})("keyup.arrowDown",function(x){return P(m),x.stopPropagation(),S(o.nextOption())})("keyup.arrowUp",function(x){return P(m),x.stopPropagation(),S(o.previousOption())})("keyup.enter",function(){return P(m),S(o.enter())}),s(3,"div",4)(4,"button",5),b("click",function(){return P(m),S(o.clear())}),h(5,"lds-icon-close"),l(),s(6,"button",6),b("click",function(){return P(m),S(o.popupArrowClick())}),h(7,"lds-icon-chevron-down")(8,"lds-icon-chevron-up"),l()()(),C(9,b0,5,4,"div",7),l()}a&2&&(n(2),d("size",o.size)("error",o.error)("disabled",o.disabled)("placeholder",o.placeholder)("applyInnerMask",o.mask),gi("value",o.search),n(2),Z("autocomplete__buttons__clear--hidde",!o.value),n(2),Z("autocomplete__buttons__arrow--opened",o.opened),n(3),d("ngIf",o.opened))},dependencies:[U,ae,N,Ci,Ll,Ke,Os,ks,ua,dn],styles:[".autocomplete[_ngcontent-%COMP%]{position:relative}.autocomplete__buttons[_ngcontent-%COMP%]{display:flex;align-items:center}.autocomplete__buttons__clear[_ngcontent-%COMP%], .autocomplete__buttons__arrow[_ngcontent-%COMP%]{display:flex;padding:0;border:none;color:var(--lds-color-neutral-icon-default);background:#0000;cursor:pointer}.autocomplete__buttons__clear--hidde[_ngcontent-%COMP%], .autocomplete__buttons__arrow--hidde[_ngcontent-%COMP%]{display:none}.autocomplete__buttons__arrow[_ngcontent-%COMP%] lds-icon-chevron-down[_ngcontent-%COMP%]{display:block;height:2.4rem}.autocomplete__buttons__arrow[_ngcontent-%COMP%] lds-icon-chevron-up[_ngcontent-%COMP%]{display:none;height:2.4rem}.autocomplete__buttons__arrow--opened[_ngcontent-%COMP%] lds-icon-chevron-down[_ngcontent-%COMP%]{display:none}.autocomplete__buttons__arrow--opened[_ngcontent-%COMP%] lds-icon-chevron-up[_ngcontent-%COMP%]{display:block}.autocomplete__popup[_ngcontent-%COMP%]{position:absolute;z-index:2;width:100%;min-width:20rem;margin-top:var(--lds-spacing-1);margin-bottom:var(--lds-spacing-1)}.autocomplete__popup__paper[_ngcontent-%COMP%]{box-sizing:border-box;border:var(--lds-components-paper-border-width, var(--lds-border-width-weak)) var(--lds-border-style-solid) var(--lds-components-paper-border-color, var(--lds-color-neutral-border-low));border-radius:var(--lds-components-paper-border-radius, var(--lds-border-radius-main));border-color:#0000;background-color:var(--lds-components-paper-background-color, var(--lds-color-neutral-surface-default));box-shadow:var(--lds-components-paper-shadow-x, var(--lds-shadow-default-x)) var(--lds-components-paper-shadow-y, var(--lds-shadow-default-y)) var(--lds-components-paper-shadow-blur, var(--lds-shadow-default-blur)) var(--lds-components-paper-shadow-spread, var(--lds-shadow-default-spread)) #00000038;font-family:var(--lds-font-functional-family)}.autocomplete__popup__paper__list[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:auto}.autocomplete__popup__paper__list__button[_ngcontent-%COMP%]{all:unset;box-sizing:border-box;position:relative;z-index:1;display:block;width:100%;padding:var(--lds-components-menu-item-padding-top, var(--lds-spacing-1)) var(--lds-components-menu-item-padding-right, var(--lds-spacing-2)) var(--lds-components-menu-item-padding-bottom, var(--lds-spacing-1)) var(--lds-components-menu-item-padding-left, var(--lds-spacing-2));color:var(--lds-color-neutral-text-default);font-family:var(--lds-font-functional-family);font-weight:var(--lds-font-funcional-weight-weak);font-size:1.6rem;line-height:var(--lds-components-menu-item-text-line-height);cursor:pointer}.autocomplete__popup__paper__list__button--focused[_ngcontent-%COMP%]{outline:var(--lds-border-width-normal, .2rem) solid var(--lds-state-focused-color, #2e7d32);outline-offset:-.2rem}.autocomplete__popup__paper__list__button--selected[_ngcontent-%COMP%]{color:var(--lds-color-accent-secondary-contrast-lower);background-color:var(--lds-color-accent-secondary-emphasis-lower);font-weight:var(--lds-font-functional-weight-strong)}.autocomplete__popup__paper__list__no-options-text[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;padding:var(--lds-spacing-2)}"]});let i=r;return i})();var x0=["*"];function P0(i,r){i&1&&h(0,"lds-icon-warning-filled",5)}function S0(i,r){if(i&1&&(s(0,"app-helper-text",3),C(1,P0,1,0,"lds-icon-warning-filled",4),We(2,0,["slot","error"]),l()),i&2){let t=g();d("error",!0),n(),d("ngIf",t.iconError)}}var so=(()=>{let r=class r{get hasError(){return!!this.ngControl?.control?.invali
1d&&!!this.ngControl?.control?.touched||!!this.ngControl?.control?.invalid&&this.submitted}constructor(e){this.ngControl=e,this.options=[],this.error=!1,this.disabled=!1,this.iconError=!0,this.showError=!0,this.showClearButton=!0,this.size="sm",this.noOptionsText="",this.submitted=!1,this.onChange=()=>{},this.onTouched=()=>{},this.ngControl&&(this.ngControl.valueAccessor=this)}writeValue(e){this.value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}onValueChange(e){this.value=e,this.onChange(this.value)}clear(){this.onValueChange(null),this.markTouched()}markTouched(e=!1){e||this.onTouched()}};r.\u0275fac=function(a){return new(a||r)(v(Oo,10))},r.\u0275cmp=M({type:r,selectors:[["app-form-autocomplete"]],inputs:{options:"options",error:"error",disabled:"disabled",iconError:"iconError",showError:"showError",showClearButton:"showClearButton",label:"label",size:"size",placeholder:"placeholder",menuHeight:"menuHeight",idAttribute:"idAttribute",labelAttribute:"labelAttribute",noOptionsText:"noOptionsText",optionTemplate:"optionTemplate",mask:"mask",submitted:"submitted"},ngContentSelectors:x0,decls:5,vars:16,consts:[[1,"form-autocomplete"],["detectFocus","",3,"selected","focusedChange","options","error","disabled","size","placeholder","menuHeight","idAttribute","labelAttribute","noOptionsText","optionTemplate","mask","value"],[3,"error",4,"ngIf"],[3,"error"],["class","form-autocomplete__error-icon",4,"ngIf"],[1,"form-autocomplete__error-icon"]],template:function(a,o){a&1&&(rt(),s(0,"div",0)(1,"app-label"),p(2),l(),s(3,"app-autocomplete",1),b("selected",function(_){return o.onValueChange(_)})("focusedChange",function(_){return o.markTouched(_)}),l(),C(4,S0,3,2,"app-helper-text",2),l()),a&2&&(Z("form-autocomplete--remove-clear-button",!o.showClearButton),n(2),f(" ",o.label," "),n(),d("options",o.options)("error",o.hasError)("disabled",o.disabled)("size",o.size)("placeholder",o.placeholder)("menuHeight",o.menuHeight)("idAttribute",o.idAttribute)("labelAttribute",o.labelAttribute)("noOptionsText",o.noOptionsText)("optionTemplate",o.optionTemplate)("mask",o.mask)("value",o.value),n(),d("ngIf",o.showError&&o.hasError))},dependencies:[N,Ul,Nl,Kc,No,dn],styles:["[_nghost-%COMP%] .form-autocomplete[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.8rem}[_nghost-%COMP%] .form-autocomplete--remove-clear-button[_ngcontent-%COMP%] .autocomplete__buttons__clear{display:none!important}[_nghost-%COMP%] .form-autocomplete__error-icon[_ngcontent-%COMP%]{margin-right:.8rem}"]});let i=r;return i})();var y0=["*"],On=(()=>{let r=class r{constructor(){this.airlines=[],this.submitted=!1}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-form-airline"]],inputs:{control:"control",airlines:"airlines",submitted:"submitted"},ngContentSelectors:y0,decls:5,vars:13,consts:[["id","ciaAerea","name","ciaAerea","size","md",3,"label","placeholder","options","menuHeight","noOptionsText","formControl","submitted"]],template:function(a,o){a&1&&(rt(),s(0,"app-form-autocomplete",0),c(1,"translate"),c(2,"translate"),c(3,"translate"),We(4,0,["error",""]),l()),a&2&&d("label",u(1,7,"formPersonalData.form.airlineLabel"))("placeholder",u(2,9,"formPersonalData.form.airlinePlaceholder"))("options",o.airlines)("menuHeight","25rem")("noOptionsText",u(3,11,"formPersonalData.form.noOptionsText"))("formControl",o.control)("submitted",o.submitted)},dependencies:[A,Te,Ce,be,bi,so,T],encapsulation:2});let i=r;return i})();function M0(i,r){if(i&1&&p(0),i&2){let t=r.$implicit;f(" ",t.country,` 2`)}}var kn=(()=>{let r=class r{getLang(){return(this.translateService?.currentLang||"pt-br").substring(0,2)}getDdis(e){return to().flatMap(a=>a.phone.map(o=>({country:`${a.getName(e)} (+${o.toString()})`,phone:o.toString()})))}orderDdis(e){return e.sort((a,o)=>a.phone.localeCompare(o.phone))}constructor(e){this.translateService=e,this.submitted=!1}};r.\u0275fac=function(a){return new(a||r)(v(G))},r.\u0275cmp=M({type:r,selectors:[["app-form-ddi"]],inputs:{ddis:"ddis",control:"control",submitted:"submitted"},features:[vi([{provide:_o,useValue:{filter:(e,a)=>{let o=ft(e)?.toLowerCase();return a.filter(m=>ft(m.phone.toLowerCase())?.includes(o))}}}])],decls:5,vars:12,consts:[["optionTemplate",""],["id","ddi","name","ddi","size","md","mask","+0000","placeholder","+0000","labelAttribute","phone",3,"label","formControl","options","noOptionsText","optionTemplate","showError","showClearButton","submitted"]],template:function(a,o){if(a&1&&(h(0,"app-form-autocomplete",1),c(1,"translate"),c(2,"translate"),C(3,M0,1,1,"ng-template",null,0,Me)),a&2){let m=ue(4);d("label",u(1,8,"formPersonalData.form.ddiLabel"))("formControl",o.control)("options",o.ddis)("noOptionsText",u(2,10,"formPersonalData.form.noOptionsText"))("optionTemplate",m)("showError",!1)("showClearButton",!1)("submitted",o.submitted)}},dependencies:[A,Te,Ce,be,bi,so,T],encapsulation:2});let i=r;return i})();var D0=["*"],In=(()=>
2{let r=class r{constructor(){this.documents=[],this.submitted=!1}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-form-document"]],inputs:{control:"control",documents:"documents",submitted:"submitted"},features:[vi([{provide:_o,useValue:{filter:(e,a)=>{let o=ft(e)?.toLowerCase();return a.filter(m=>ft(m.descricaoDocumento.toLowerCase())?.includes(o))}}}])],ngContentSelectors:D0,decls:5,vars:14,consts:[["id","tipoDocumento","name","tipoDocumento","size","md","idAttribute","codigoTipoDocumento","labelAttribute","descricaoDocumento",3,"label","placeholder","options","menuHeight","noOptionsText","formControl","showClearButton","submitted"]],template:function(a,o){a&1&&(rt(),s(0,"app-form-autocomplete",0),c(1,"translate"),c(2,"translate"),c(3,"translate"),We(4,0,["error",""]),l()),a&2&&d("label",u(1,8,"formPersonalData.form.documentLabel"))("placeholder",u(2,10,"formPersonalData.form.documentPlaceholder"))("options",o.documents)("menuHeight","25rem")("noOptionsText",u(3,12,"formPersonalData.form.noOptionsText"))("formControl",o.control)("showClearButton",!1)("submitted",o.submitted)},dependencies:[A,Te,Ce,be,bi,so,T],encapsulation:2});let i=r;return i})();var w0=["*"],Tn=(()=>{let r=class r{constructor(){this.nationalities=[],this.submitted=!1}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-form-nationality"]],inputs:{control:"control",nationalities:"nationalities",submitted:"submitted"},features:[vi([{provide:_o,useValue:{filter:(e,a)=>{let o=ft(e)?.toLowerCase();return a.filter(m=>ft(m.nomePais.toLowerCase())?.includes(o))}}}])],ngContentSelectors:w0,decls:5,vars:13,consts:[["id","nacionalidade","name","nacionalidade","size","md","labelAttribute","nomePais",3,"label","placeholder","options","menuHeight","noOptionsText","formControl","submitted"]],template:function(a,o){a&1&&(rt(),s(0,"app-form-autocomplete",0),c(1,"translate"),c(2,"translate"),c(3,"translate"),We(4,0,["error",""]),l()),a&2&&d("label",u(1,7,"formPersonalData.form.nationalityLabel"))("placeholder",u(2,9,"formPersonalData.form.nationalityPlaceholder"))("options",o.nationalities)("menuHeight","25rem")("noOptionsText",u(3,11,"formPersonalData.form.noOptionsText"))("formControl",o.control)("submitted",o.submitted)},dependencies:[A,Te,Ce,be,bi,so,T],encapsulation:2});let i=r;return i})();function O0(i,r){i&1&&h(0,"lds-icon-check",3)}function k0(i,r){i&1&&h(0,"lds-icon-minus",3)}var Zc=(()=>{let r=class r{constructor(e){this.changeDetectorRef=e,this.color="primary",this.disabled=!1,this.indeterminate=!1,this.checked=!1,this.checkedChange=new W}change(){this.disabled||(this.checked=!this.checked,this.checkedChange.emit(this.checked),this.changeDetectorRef.markForCheck())}};r.\u0275fac=function(a){return new(a||r)(v(Xe))},r.\u0275cmp=M({type:r,selectors:[["app-checkbox"]],inputs:{color:"color",disabled:"disabled",indeterminate:"indeterminate",checked:"checked"},outputs:{checkedChange:"checkedChange"},decls:4,vars:7,consts:[["tabindex","0",3,"click","keyup.enter","keyup.space"],["type","checkbox",3,"ngModelChange","disabled","ngModel"],["class","checkbox__icon",4,"ngIf"],[1,"checkbox__icon"]],template:function(a,o){a&1&&(s(0,"div",0),b("click",function(){return o.change()})("keyup.enter",function(){return o.change()})("keyup.space",function(){return o.change()}),s(1,"input",1),hi("ngModelChange",function(_){return _i(o.checked,_)||(o.checked=_),_}),l(),C(2,O0,1,0,"lds-icon-check",2)(3,k0,1,0,"lds-icon-minus",2),l()),a&2&&(Xt(yo("checkbox checkbox--",o.color)),n(),d("disabled",o.disabled),gi("ngModel",o.checked),n(),d("ngIf",o.checked&&!o.indeterminate),n(),d("ngIf",o.indeterminate))},dependencies:[N,Lo,Te,wo,Ce,Io,be],styles:['[_nghost-%COMP%]{display:inline-flex;flex-shrink:0;width:2.4rem;height:2.4rem}.checkbox[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:2.4rem;height:2.4rem;background-color:transparent;border-radius:var(--lds-components-checkbox-border-radius, var(--lds-border-radius-sharp));cursor:pointer;transition:all .1s ease-out}.checkbox[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;pointer-events:none}.checkbox[_ngcontent-%COMP%]:hover, .checkbox[_ngcontent-%COMP%]:active{overflow:hidden}.checkbox[_ngcontent-%COMP%]:focus{outline:.2rem solid var(--lds-state-focused-color);outline-offset:.2rem}.checkbox[_ngcontent-%COMP%]:hover:after{background-color:var(--lds-state-hovered-color);opacity:var(--lds-state-hovered-opacity)}.checkbox[_ngcontent-%COMP%]:active:after{background-color:var(--lds-state-pressed-color);opacity:var(--lds-state-pressed-opacity)}.checkbox--primary[_ngcontent-%COMP%]{color:var(--lds-color-accent-secondary-contrast-auto);border:var(--lds-components-checkbox-border-width, var(--lds-border-width-normal)) var(--lds-border-style-solid) var(--lds-color-neutral-border-default)}.checkbox--primary[_ngcontent-%COMP%]:has(:checked){border-color:var(--lds-color-accent-secondary-default);background-color:var(--lds-color-accent-secondary-default)}.checkbox--secondary[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-contrast-auto);border:var(--lds-components-checkbox-border-width, var(--lds-border-width-normal)) var(--lds-border-style-solid) var(--lds-color-neutral-border-default)}.checkbox--secondary[_ngcontent-%COMP%]:has(:checked){border-color:var(--lds-color-accent-primary-default);background-color:var(--lds-color-accent-primary-default)}.checkbox--critical[_ngcontent-%COMP%]{color:var(--lds-color-accent-critical-contrast-auto);border:var(--lds-components-checkbox-border-width, var(--lds-border-width-normal)) var(--lds-border-style-solid) var(--lds-color-accent-critical-default)}.checkbox--critical[_ngcontent-%COMP%]:has(:checked){border-color:var(--lds-color-accent-critical-default);background-color:var(--lds-color-accent-critical-default)}.checkbox--secondary[_ngcontent-%COMP%]:has(:disabled), .checkbox--primary[_ngcontent-%COMP%]:has(:disabled), .checkbox--critical[_ngcontent-%COMP%]:has(:disabled){color:var(--lds-state-disabled-contrast);border-color:var(--lds-state-disabled-color);background-color:var(--lds-state-disabled-color);cursor:not-allowed;outline:0;pointer-events:none}.checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;position:absolute;margin:0;padding:0}.checkbox__icon[_ngcontent-%COMP%]{position:absolute;z-index:1}'],changeDetection:0});let i=r;return i})();var I0=[[["","slotStart",""]],[["","slotEnd",""]]],T0=["[slotStart]","[slotEnd]"],An=(()=>{let r=class r{get hasError(){return!!this.ngControl?.control?.invali
2d&&!!this.ngControl?.control?.touched||!!this.ngControl?.control?.invalid&&this.submitted}constructor(e){this.ngControl=e,this.color="primary",this.iconError=!0,this.disabled=!1,this.indeterminate=!1,this.submitted=!1,this.onChange=()=>{},this.onTouched=()=>{},this.ngControl&&(this.ngControl.valueAccessor=this)}writeValue(e){this.value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}onValueChange(e){this.disabled||(this.value=e,this.onChange(this.value),this.onTouched())}};r.\u0275fac=function(a){return new(a||r)(v(Oo,10))},r.\u0275cmp=M({type:r,selectors:[["app-form-checkbox"]],inputs:{color:"color",iconError:"iconError",disabled:"disabled",indeterminate:"indeterminate",submitted:"submitted"},ngContentSelectors:T0,decls:6,vars:4,consts:[[1,"form-checkbox"],[1,"form-checkbox__control"],[3,"checkedChange","color","disabled","indeterminate","checked"],[1,"form-checkbox__label"]],template:function(a,o){a&1&&(rt(I0),s(0,"div",0),We(1),s(2,"div",1)(3,"app-checkbox",2),hi("checkedChange",function(_){return _i(o.value,_)||(o.value=_),_}),b("checkedChange",function(_){return o.onValueChange(_)}),l()(),s(4,"div",3),We(5,1),l()()),a&2&&(n(3),d("color",o.hasError?"critical":o.color)("disabled",o.disabled)("indeterminate",o.indeterminate),gi("checked",o.value))},dependencies:[Zc],styles:["[_nghost-%COMP%]{display:block;width:100%}.form-checkbox[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start;gap:var(--lds-spacing-1);width:100%}.form-checkbox__control[_ngcontent-%COMP%]{flex:0 0 2.4rem;width:2.4rem;height:2.4rem;align-self:flex-start}.form-checkbox__label[_ngcontent-%COMP%]{flex:1;min-width:0;padding-top:.2rem}@media screen and (max-width:767px){.form-checkbox[_ngcontent-%COMP%]{gap:var(--lds-spacing-2)}.form-checkbox__label[_ngcontent-%COMP%]{padding-top:0}}"]});let i=r;return i})();function A0(i,r){i&1&&h(0,"lds-icon-close",5)}function E0(i,r){i&1&&h(0,"lds-icon-check",5)}function R0(i,r){if(i&1&&(V(0),C(1,A0,1,0,"lds-icon-close",4)(2,E0,1,0,"lds-icon-check",4),z()),i&2){let t=g();n(),d("ngIf",!t.checked),n(),d("ngIf",t.checked)}}var Yc=(()=>{let r=class r{constructor(){this.size="md",this.color="primary",this.disabled=!1,this.showIcon=!1,this.checked=!1,this.switchChange=new W}change(){this.disabled||(this.checked=!this.checked,this.switchChange.emit({target:{checked:this.checked}}))}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-switch"]],inputs:{size:"size",color:"color",disabled:"disabled",showIcon:"showIcon",checked:"checked"},outputs:{switchChange:"switchChange"},decls:4,vars:13,consts:[["tabindex","0","role","switch",3,"click","keyup.enter","keyup.space"],[1,"switch__track"],[1,"switch__handle"],[4,"ngIf"],["class","switch__handle__icon",4,"ngIf"],[1,"switch__handle__icon"]],template:function(a,o){a&1&&(s(0,"div",0),b("click",function(){return o.change()})("keyup.enter",function(){return o.change()})("keyup.space",function(){return o.change()}),h(1,"div",1),s(2,"div",2),C(3,R0,3,2,"ng-container",3),l()()),a&2&&(Xt(Ur("switch switch--",o.color," switch--",o.size)),Z("switch--checked",o.checked)("switch--unchecked",!o.checked)("switch--disabled",o.disabled),Ie("aria-checked",o.checked)("aria-disabled",o.disabled),n(3),d("ngIf",o.showIcon))},dependencies:[U,N,Ke,Lo],styles:['[_nghost-%COMP%] .switch[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;cursor:pointer}[_nghost-%COMP%] .switch[_ngcontent-%COMP%]:not(.switch--disabled):focus-visible, [_nghost-%COMP%] .switch[_ngcontent-%COMP%]:not(.switch--disabled):focus{outline:none}[_nghost-%COMP%] .switch__track[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;display:block;height:3.2rem;width:5.6rem;padding:.4rem;border-width:var(--lds-border-width-weak);border-style:solid;border-color:var(--lds-color-neutral-border-low);border-radius:var(--lds-border-radius-pill);background-color:var(--lds-color-neutral-surface-low);transition:background-color .2s ease}[_nghost-%COMP%] .switch__handle[_ngcontent-%COMP%]{box-sizing:border-box;position:absolute;top:50%;left:.4rem;z-index:1;display:flex;align-items:center;justify-content:center;height:2.4rem;width:2.4rem;border-width:var(--lds-border-width-weak);border-style:solid;border-color:var(--lds-color-neutral-border-default);border-radius:var(--lds-border-radius-circle);background-color:var(--lds-color-neutral-surface-default);transform:translateY(-50%);transition:left .2s ease,background-color .2s ease,border-color .2s ease}[_nghost-%COMP%] .switch__handle[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:-.4rem;z-index:0;border-radius:inherit;opacity:0;transition:opacity .2s ease;pointer-events:none}[_nghost-%COMP%] .switch__handle__icon[_ngcontent-%COMP%]{width:1.6rem;height:1.6rem;color:var(--lds-color-neutral-icon-default)}[_nghost-%COMP%] .switch__handle__icon[_ngcontent-%COMP%] svg{width:1.6rem;height:1.6rem}[_nghost-%COMP%] .switch--sm[_ngcontent-%COMP%] .switch__track[_ngcontent-%COMP%]{height:2.4rem;width:4rem;padding:.2rem}[_nghost-%COMP%] .switch--sm[_ngcontent-%COMP%] .switch__handle[_ngcontent-%COMP%]{left:.2rem;height:2rem;width:2rem}[_nghost-%COMP%] .switch--sm[_ngcontent-%COMP%] .switch__handle[_ngcontent-%COMP%]:after{inset:-.2rem}[_nghost-%COMP%] .switch--unchecked[_ngcontent-%COMP%] > .switch__handle[_ngcontent-%COMP%]{left:.4rem}[_nghost-%COMP%] .switch--unchecked.switch--sm[_ngcontent-%COMP%] > .switch__handle[_ngcontent-%COMP%]{left:.2rem}[_nghost-%COMP%] .switch--checked[_ngcontent-%COMP%] > .switch__handle[_ngcontent-%COMP%]{left:calc(100% - 2.8rem)}[_nghost-%COMP%] .switch--checked.switch--sm[_ngcontent-%COMP%] > .switch__handle[_ngcontent-%COMP%]{left:calc(100% - 2.2rem)}[_nghost-%COMP%] .switch--checked[_ngcontent-%COMP%]:not(.switch--disabled).switch--primary > .switch__track[_ngcontent-%COMP%]{border-color:var(--lds-color-accent-secondary-default);background-color:var(--lds-color-accent-secondary-default)}[_nghost-%COMP%] .switch--checked[_ngcontent-%COMP%]:not(.switch--disabled).switch--primary > .switch__handle[_ngcontent-%COMP%]{border-color:var(--lds-color-accent-secondary-emphasis-high);background-color:var(--lds-color-accent-secondary-contrast-default-inverse)}[_nghost-%COMP%] .switch--checked[_ngcontent-%COMP%]:not(.switch--disabled).switch--secondary > .switch__track[_ngcontent-%COMP%]{border-color:var(--lds-color-accent-primary-default);background-color:var(--lds-color-accent-primary-default)}[_nghost-%COMP%] .switch--checked[_ngcontent-%COMP%]:not(.switch--disabled).switch--secondary > .switch__handle[_ngcontent-%COMP%]{border-color:var(--lds-color-accent-primary-emphasis-high);background-color:var(--lds-color-accent-primary-contrast-default-inverse)}[_nghost-%COMP%] .switch--checked[_ngcontent-%COMP%]:not(.switch--disabled).switch--tertiary > .switch__track[_ngcontent-%COMP%]{border-color:var(--lds-color-accent-secondary-contrast-default);background-color:var(--lds-color-accent-secondary-contrast-default)}[_nghost-%COMP%] .switch--checked[_ngcontent-%COMP%]:not(.switch--disabled).switch--tertiary > .switch__handle[_ngcontent-%COMP%]{border-color:var(--lds-color-accent-tertiary-contrast-default-inverse);background-color:var(--lds-color-accent-secondary-emphasis-higher-inverse)}[_nghost-%COMP%] .switch[_ngcontent-%COMP%]:not(.switch--disabled):focus, [_nghost-%COMP%] .switch[_ngcontent-%COMP%]:not(.switch--disabled):focus-visible{outline:none}[_nghost-%COMP%] .switch[_ngcontent-%COMP%]:not(.switch--disabled):focus > .switch__track[_ngcontent-%COMP%], [_nghost-%COMP%] .switch[_ngcontent-%COMP%]:not(.switch--disabled):focus-visible > .switch__track[_ngcontent-%COMP%]{outline:var(--lds-border-width-normal) solid var(--lds-state-focused-color);outline-offset:.2rem}[_nghost-%COMP%] .switch[_ngcontent-%COMP%]:not(.switch--disabled):hover > .switch__handle[_ngcontent-%COMP%]:after{background-color:var(--lds-state-hovered-color);opacity:var(--lds-state-hovered-opacity)}[_nghost-%COMP%] .switch[_ngcontent-%COMP%]:not(.switch--disabled):active > .switch__handle[_ngcontent-%COMP%]:after{background-color:var(--lds-state-pressed-color);opacity:var(--lds-state-pressed-opacity)}[_nghost-%COMP%] .switch--disabled[_ngcontent-%COMP%]{cursor:not-allowed}[_nghost-%COMP%] .switch--disabled[_ngcontent-%COMP%] .switch__track[_ngcontent-%COMP%]{border:none;background-color:var(--lds-state-disabled-color);opacity:var(--lds-state-disabled-opacity)}[_nghost-%COMP%] .switch--disabled[_ngcontent-%COMP%] .switch__handle[_ngcontent-%COMP%]{border:none;background-color:var(--lds-state-disabled-contrast)}[_nghost-%COMP%] .switch--disabled[_ngcontent-%COMP%] .switch__handle__icon[_ngcontent-%COMP%]{color:var(--lds-neutral-icon-high)}']}
2);let i=r;return i})();var B0=[[["","slotStart",""]],[["","slotEnd",""]]],F0=["[slotStart]","[slotEnd]"],En=(()=>{let r=class r{constructor(e){this.ngControl=e,this.size="md",this.color="primary",this.disabled=!1,this.showIcon=!1,this.submitted=!1,this.onChange=()=>{},this.onTouched=()=>{},this.ngControl&&(this.ngControl.valueAccessor=this)}writeValue(e){this.value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}toggle(e){this.disabled||(this.value=e.target.checked,this.onChange(this.value),this.markTouched())}markTouched(){this.onTouched()}};r.\u0275fac=function(a){return new(a||r)(v(Oo,10))},r.\u0275cmp=M({type:r,selectors:[["app-form-switch"]],inputs:{size:"size",color:"color",disabled:"disabled",showIcon:"showIcon",submitted:"submitted"},ngContentSelectors:F0,decls:4,vars:5,consts:[[1,"form-switch"],[3,"switchChange","size","color","disabled","showIcon","checked"]],template:function(a,o){a&1&&(rt(B0),s(0,"div",0),We(1),s(2,"app-switch",1),b("switchChange",function(_){return o.toggle(_)}),l(),We(3,1),l()),a&2&&(n(2),d("size",o.size)("color",o.color)("disabled",o.disabled)("showIcon",o.showIcon)("checked",o.value))},dependencies:[Yc],styles:[".form-switch[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:.8rem}.form-switch[_ngcontent-%COMP%] app-switch[_ngcontent-%COMP%]{display:contents}"]});let i=r;return i})();var Rn=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-secure-online-payment-information"]],decls:5,vars:4,consts:[["color","success",3,"showCloseButton"],["slotIcon",""],["slotContent",""]],template:function(a,o){a&1&&(s(0,"app-alert",0),h(1,"lds-icon-shield-lock",1),s(2,"p",2),p(3),c(4,"translate"),l()()),a&2&&(d("showCloseButton",!1),n(3),f(" ",u(4,2,"secureOnlinePaymentInformation.description")," "))},dependencies:[A,wi,ea,oo,Ka,T],styles:["p[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-contrast-default);font-family:var(--lds-font-functional-family);font-size:1.2rem;font-weight:400;line-height:160%}"],changeDetection:0});let i=r;return i})();function V0(i,r){i&1&&(h(0,"app-alert",14),c(1,"translate"),c(2,"translate")),i&2&&d("title",u(1,2,"reserva.passo4.modalConfirmacaoDados.warning.title"))("description",u(2,4,"reserva.passo4.modalConfirmacaoDados.warning.description"))}function z0(i,r){i&1&&(h(0,"app-alert",15),c(1,"translate")),i&2&&d("description",u(1,1,"reserva.passo4.modalConfirmacaoDados.warning.cardInfo"))}var na=(()=>{let r=class r{constructor(e,a){this.matDialogRef=e,this.data=a,this.rentInColombia=!1,this.data.prosseguir=!1,this.dadosCriarReserva=a.dadosCriarReserva,this.rentInColombia=a?.rentInColombia}fecharModal(){this.data.prosseguir=!1,this.matDialogRef.close(!1)}prosseguirComReserva(){this.data.prosseguir=!0,this.matDialogRef.close(!0)}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(ne))},r.\u0275cmp=M({type:r,selectors:[["app-confirmacao-dados-pessoais"]],decls:43,vars:30,consts:[[3,"showModalCloseButton"],[1,"modal-container"],[1,"modal-header"],[1,"modal-header__top"],["mat-button","","mat-dialog-close","","data-testid","btn-close","aria-label","close",1,"modal-header__top__btn-close",3,"click"],["mat-dialog-content","",1,"modal-header__descricao"],[1,"modal-confirmacao__texto"],[1,"modal-dados"],[1,"modal-dados__item"],["color","info",3,"title","description",4,"ngIf"],["color","warning",3,"description",4,"ngIf"],[1,"acoes"],["data-testid","btn-prosseguir",1,"acoes__botao",3,"click","block"],["data-testid","btn-editar-dados","fullWidth","","tagType","button","theme","link-primary",1,"acoes__botao",3,"click"],["color","info",3,"title","description"],["color","warning",3,"description"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"div",1)(2,"header",2)(3,"div",3)(4,"h3"),p(5),c(6,"translate"),l(),s(7,"button",4),b("click",function(){return o.fecharModal()}),s(8,"mat-icon"),p(9,"close"),l()()(),s(10,"div",5)(11,"p",6),p(12),c(13,"translate"),l()()(),s(14,"div",7)(15,"div")(16,"div",8)(17,"span"),p(18),c(19,"translate"),l(),s(20,"h4"),p(21),l()(),s(22,"div",8)(23,"span"),p(24),c(25,"translate"),l(),s(26,"h4"),p(27),l()(),s(28,"div",8)(29,"span"),p(30),c(31,"translate"),l(),s(32,"h4"),p(33),l()()(),C(34,V0,3,6,"app-alert",9)(35,z0,2,3,"app-alert",10),s(36,"div",11)(37,"ds-button",12),b("click",function(){return o.prosseguirComReserva()}),p(38),c(39,"translate"),l(),s(40,"ds-new-button",13),b("click",function(){return o.fecharModal()}),p(41),c(42,"translate"),l()()()()()),a&2&&(d("showModalCloseButton",!1),n(5),D(u(6,16,"reserva.passo4.modalConfirmacaoDados.titulo")),n(7),f(" ",u(13,18,"reserva.passo4.modalConfirmacaoDados.descricao")," "),n(6),D(u(19,20,"reserva.passo4.modalConfirmacaoDados.nome")),n(3),D(o.dadosCriarReserva.usuarioReserva.nomeUsuarioReserva),n(3),D(u(25,22,"reserva.passo4.modalConfirmacaoDados.email")),n(3),f(" ",o.dadosCriarReserva.usuarioReserva.contatosReserva[0].emailReserva," "),n(3),D(u(31,24,"reserva.passo4.modalConfirmacaoDados.celular")),n(3),st(" +",o.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.ddi," ",o.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.ddi==="55"?o.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.ddd:""," ",o.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.numeroTelefone," "),n(),d("ngIf",o.rentInColombia),n(),d("ngIf",o.rentInColombia),n(2),d("block",!1),n(),f(" ",u(39,26,"reserva.passo4.modalConfirmacaoDados.btnConfirmar")," "),n(3),f(" ",u(42,28,"reserva.passo4.modalConfirmacaoDados.btnEditar")," "))},dependencies:[U,N,on,zt,Zi,oe,J,se,ze,Ki,Ua,A,Le,Ft,wi,T],styles:[".modal-confirmacao[_ngcontent-%COMP%]{background:#fff;border:.1rem solid #e6e6e6;border-radius:0;display:flex;flex-direction:column;height:100%}@media(min-width:1200px){.modal-confirmacao[_ngcontent-%COMP%]{border-radius:.6rem}}.modal-confirmacao__content[_ngcontent-%COMP%]{align-items:flex-start;display:flex;flex-direction:column;justify-content:flex-start;padding:0}@media(min-width:1200px){.modal-confirmacao__content[_ngcontent-%COMP%]{justify-content:unset;height:auto}}.modal-confirmacao__fechar[_ngcontent-%COMP%]{align-self:flex-end;background:none;border:none;cursor:pointer;padding:2rem;width:5.6rem}.modal-confirmacao__texto[_ngcontent-%COMP%]{color:#4a4a4a;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;font-size:1.6rem;line-height:2rem;padding:2.3rem 0px}.modal-confirmacao__titulo[_ngcontent-%COMP%]{color:#1e852d;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:2.2rem;text-transform:none;font-weight:700}.modal-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;justify-content:space-between}.modal-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:80px}.modal-header__top[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;color:#1e852d}.modal-header__top__btn-close[_ngcontent-%COMP%]{background-color:transparent;border:none;cursor:pointer;position:absolute;right:1.6rem;color:#1e852d}.modal-header__top__btn-close[_ngcontent-%COMP%]:hover{opacity:.8;transition:opacity .2s}.modal-header__top__btn-close[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-weight:700}.modal-header__descricao[_ngcontent-%COMP%]{padding:0}.modal-dados[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;
2height:100%}.modal-dados[_ngcontent-%COMP%] app-alert[_ngcontent-%COMP%]{--alert-title-font-size: 1.4rem;--alert-description-font-size: 1.4rem;margin:.5rem 0 2rem}.modal-dados__item[_ngcontent-%COMP%]{margin-bottom:2.2rem}.modal-dados__item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.6rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;color:#4a4a4a}.modal-dados__item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:1.6rem;font-family:LocalizaDinDisplay_Bold,Helvetica Neue,Helvetica,Arial,sans-serif;color:#4a4a4a;font-weight:700}.acoes[_ngcontent-%COMP%]{display:flex;flex-direction:column}.acoes__botao[_ngcontent-%COMP%]{text-align:center;padding:10px 0}.acoes__botao[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}"]});let i=r;return i})();var Bn=(()=>{let r=class r{constructor(e,a){this.data=e,this.matDialogRef=a,this.confirm=new W,this.content=e?.content??"",this.title=e?.title??""}onConfirm(){this.confirm.emit(),this.matDialogRef.close(!0)}onKeyDown(e){e.key==="Enter"&&(e.preventDefault(),this.onConfirm())}onKeyUp(e){e.key==="Space"&&(e.preventDefault(),this.onConfirm())}};r.\u0275fac=function(a){return new(a||r)(v(ne),v(Y))},r.\u0275cmp=M({type:r,selectors:[["app-privacy-text-dialog"]],outputs:{confirm:"confirm"},decls:8,vars:6,consts:[[1,"privacy-modal__content"],[1,"privacy-modal__title",3,"innerHTML"],[1,"privacy-modal__content-text"],[3,"innerHTML"],["theme","primary",3,"click","keydown","keyup","fullwidth"]],template:function(a,o){a&1&&(s(0,"app-modal")(1,"div",0),h(2,"h2",1),s(3,"div",2),h(4,"div",3),s(5,"ds-new-button",4),b("click",function(){return o.onConfirm()})("keydown",function(_){return o.onKeyDown(_)})("keyup",function(_){return o.onKeyUp(_)}),p(6),c(7,"translate"),l()()()()),a&2&&(n(2),d("innerHTML",o.title,te),n(2),d("innerHTML",o.content,te),n(),d("fullwidth",!0),n(),f(" ",u(7,4,"reserva.passo4.privacyBtn")," "))},dependencies:[se,oe,J,A,T],styles:[".privacy-modal__title[_ngcontent-%COMP%]{margin-bottom:16px}.privacy-modal__content[_ngcontent-%COMP%]{padding:32px 24px;height:100%;flex-direction:column;justify-content:space-between}.privacy-modal__content-text[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:center}"]});let i=r;return i})();var Fn=(()=>{let r=class r{constructor(e){this.matDialogRef=e,this.translateService=I(G),this.router=I(xe)}onConfirm(){this.matDialogRef.close(!0)}onClose(){this.matDialogRef.close(),this.translateService.get("url.reserva.passo3").pipe(w(1)).subscribe(e=>{this.router.navigate([e])})}};r.\u0275fac=function(a){return new(a||r)(v(Y))},r.\u0275cmp=M({type:r,selectors:[["app-pop-up-flanker"]],decls:17,vars:13,consts:[[1,"restricoes-modal"],[1,"restricoes-modal__header"],[1,"restricoes-modal__header__title"],[1,"restricoes-modal__body"],[1,"restricoes-modal__body__description"],["color","secondary",3,"click","fullWidth"],[1,"restricoes-modal__body__btn-close"],[1,"restricoes-modal__body__btn-close__text",3,"click"]],template:function(a,o){a&1&&(s(0,"app-modal")(1,"div",0)(2,"div",1)(3,"p",2),p(4),c(5,"translate"),l()(),s(6,"div",3)(7,"p",4),p(8),c(9,"translate"),l(),s(10,"app-button",5),b("click",function(){return o.onConfirm()}),p(11),c(12,"translate"),l(),s(13,"div",6)(14,"p",7),b("click",function(){return o.onClose()}),p(15),c(16,"translate"),l()()()()()),a&2&&(n(4),f(" ",u(5,5,"modalDeRestricoesFlankerColombia.title")," "),n(4),f(" ",u(9,7,"modalDeRestricoesFlankerColombia.description")," "),n(2),d("fullWidth",!0),n(),f(" ",u(12,9,"modalDeRestricoesFlankerColombia.btnContinue")," "),n(4),f(" ",u(16,11,"modalDeRestricoesFlankerColombia.btnClose")," "))},dependencies:[U,oe,se,ze,A,Le,Gt,T],styles:[".restricoes-modal__header__title[_ngcontent-%COMP%]{margin-bottom:19px;font-size:23px;font-family:var(--lds-font-functional-family);font-weight:700;color:#018444}.restricoes-modal__body__description[_ngcontent-%COMP%]{font-size:14px;font-family:var(--lds-font-functional-family);font-weight:400;color:#4a4a4a;margin-bottom:30px}.restricoes-modal__body__btn-close[_ngcontent-%COMP%]{margin-top:20px;
2display:flex;justify-content:center}.restricoes-modal__body__btn-close__text[_ngcontent-%COMP%]{font-size:16px;font-family:var(--lds-font-functional-family);font-weight:700;color:#1e852d;text-decoration:underline;cursor:pointer}"]});let i=r;return i})();var Qc=(()=>{let r=class r{constructor(e){this.matDialogRef=e}};r.\u0275fac=function(a){return new(a||r)(v(Y))},r.\u0275cmp=M({type:r,selectors:[["app-terminos-ycondiciones"]],decls:46,vars:37,consts:[[1,"terminos-y-condiciones"],[1,"terminos-y-condiciones__title-and-icon"],[1,"terminos-y-condiciones__title"],[3,"click"],["color","green"],[1,"terminos-y-condiciones__content-scroll"],[1,"terminos-y-condiciones__subtitle"],[1,"terminos-y-condiciones__section"],[1,"terminos-y-condiciones__requisitos"],[1,"terminos-y-condiciones__list"],[1,"terminos-y-condiciones__button-volver"],["color","secondary",3,"click","fullWidth"]],template:function(a,o){a&1&&(s(0,"div",0)(1,"div",1)(2,"p",2),p(3),c(4,"translate"),l(),s(5,"div",3),b("click",function(){return o.matDialogRef.close()}),h(6,"lds-icon-close",4),l()(),s(7,"div",5)(8,"p",6),p(9),c(10,"translate"),l(),s(11,"section",7)(12,"p",8),p(13),c(14,"translate"),l(),s(15,"ul",9)(16,"li",6),p(17),c(18,"translate"),l(),s(19,"li",6),p(20),c(21,"translate"),l(),s(22,"li",6),p(23),c(24,"translate"),l(),s(25,"li",6),p(26),c(27,"translate"),l(),s(28,"li",6),p(29),c(30,"translate"),l()()(),s(31,"section",7)(32,"p",8),p(33),c(34,"translate"),l(),s(35,"ul",9)(36,"li",6),p(37),c(38,"translate"),l(),s(39,"li",6),p(40),c(41,"translate"),l()()()(),s(42,"div",10)(43,"app-button",11),b("click",function(){return o.matDialogRef.close()}),p(44),c(45,"translate"),l()()()),a&2&&(n(3),D(u(4,13,"t\xE9rminosyCondicionesColombia.titulo")),n(6),D(u(10,15,"t\xE9rminosyCondicionesColombia.subtitulo")),n(4),f(" ",u(14,17,"t\xE9rminosyCondicionesColombia.requisitos.titulo1")," "),n(4),f(" ",u(18,19,"t\xE9rminosyCondicionesColombia.requisitos.item1")," "),n(3),f(" ",u(21,21,"t\xE9rminosyCondicionesColombia.requisitos.item2")," "),n(3),f(" ",u(24,23,"t\xE9rminosyCondicionesColombia.requisitos.item3")," "),n(3),f(" ",u(27,25,"t\xE9rminosyCondicionesColombia.requisitos.item4")," "),n(3),f(" ",u(30,27,"t\xE9rminosyCondicionesColombia.requisitos.item5")," "),n(4),f(" ",u(34,29,"t\xE9rminosyCondicionesColombia.requisitos.titulo2")," "),n(4),f(" ",u(38,31,"t\xE9rminosyCondicionesColombia.requisitos.item6")," "),n(3),f(" ",u(41,33,"t\xE9rminosyCondicionesColombia.requisitos.item7")," "),n(3),d("fullWidth",!1),n(),f(" ",u(45,35,"t\xE9rminosyCondicionesColombia.volver")," "))},dependencies:[A,Gt,Ke,ze,T],styles:[".terminos-y-condiciones[_ngcontent-%COMP%]{padding:13px;display:flex;flex-direction:column;height:100%;background:#f2f2f2}.terminos-y-condiciones__content-scroll[_ngcontent-%COMP%]{overflow-y:auto;flex:1;min-height:0;padding-right:4px}.terminos-y-condiciones__title-and-icon[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;flex-shrink:0;padding-bottom:8px}.terminos-y-condiciones__title-and-icon[_ngcontent-%COMP%] lds-icon-close[_ngcontent-%COMP%]{cursor:pointer;background:#f2f2f2;border-radius:14px;padding:3px}.terminos-y-condiciones__title[_ngcontent-%COMP%]{color:#018444;font-family:var(--lds-font-functional-family);font-size:var(--lds-font-size, 20px);font-weight:700;margin-top:20px;margin-bottom:30px}.terminos-y-condiciones__subtitle[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family);font-weight:var(--lds-font-weight, 400);font-size:14px;color:#4a4a4a}.terminos-y-condiciones__requisitos[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family);font-weight:var(--lds-font-weight, 400);font-size:14px;color:#4a4a4a;margin-bottom:0}.terminos-y-condiciones__section[_ngcontent-%COMP%]{margin-top:15px}.terminos-y-condiciones__list[_ngcontent-%COMP%]{padding:0;margin-left:17px;margin-top:10px}.terminos-y-condiciones__button-volver[_ngcontent-%COMP%]{margin-top:35px;display:flex;justify-content:center;flex-shrink:0;padding-top:8px;background:#f2f2f2}@media(max-width:768px){.terminos-y-condiciones[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;max-height:calc(100dvh - 55px);border-radius:20px 20px 0 0;padding:16px 16px 20px}.terminos-y-condiciones__title[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:16px}.terminos-y-condiciones__button-volver[_ngcontent-%COMP%]{margin-top:16px}}"]});let i=r;return i})();var Xc=(()=>
2{let r=class r{constructor(){this.reservaService=I(Ut),this.fluxoReservaStore=I(fe),this.translateService=I(G),this.router=I(xe),this.protecaoDadosService=I(jo),this.protecaoDadosManagerService=I(qo),this.reCaptchaV3Service=I(Wi),this.navigationFlowService=I(Yt),this.cliente=new Ko,this.destroyRef=I(qi),this.loading$=new ho(!1),this.error$=new ho({error:!1})}get loadingObservable(){return this.loading$.asObservable()}get errorObservable(){return this.error$.asObservable()}createPrePaymentReservation(e,a){this.loading$.next(!0),this.reCaptchaV3Service.execute("criarReserva").pipe(w(1)).subscribe({next:o=>{this.reservaService.criarReserva(e,o).pipe(He(()=>this.loading$.next(!1))).subscribe({next:m=>this.successInPrePaymentReservation(e,m,a),error:m=>this.errorInBookingProcess(m,e)})}})}successInPrePaymentReservation(e,a,o){this.updateStorePrepaid(e,a,o),this.navigationFlowService.destroy$.next(),this.translateService.get("url.reserva.passo5").pipe(w(1)).subscribe(m=>{this.router.navigate([m])})}updateStorePrepaid(e,a,o){this.fluxoReservaStore.actions.emit({type:ie.ATUALIZAR,payload:{reservaRealizadaNr:a,cliente:{clientePessoaFisicaId:e.usuarioReserva.codigoUsuarioReserva,codigoNacionalidade:e.usuarioReserva.nacionalidade,tipoDocumento:e.usuarioReserva.tipoDocumento,numeroDocumento:e.usuarioReserva.documento,nome:e.usuarioReserva.nomeUsuarioReserva,email:e.usuarioReserva.contatosReserva[0].emailReserva,celular:{tipoTelefone:e.usuarioReserva.contatosReserva[0].telefone.tipoTelefone,ddi:e.usuarioReserva.contatosReserva[0].telefone.ddi,ddd:e.usuarioReserva.contatosReserva[0].telefone.ddd,numero:e.usuarioReserva.contatosReserva[0].telefone.numeroTelefone},endereco:{pais:""},descricaoCliente:e.usuarioReserva.descricaoDocumento}}})}createReservation(e,a){this.loading$.next(!0),this.reCaptchaV3Service.execute("criarReserva").pipe(w(1)).subscribe({next:o=>{this.reservaService.criarReserva(e,o).subscribe({next:m=>this.successInCreateReservation(m,e,a),error:m=>this.errorInBookingProcess(m,e)})}})}successInCreateReservation(e,a,o){this.loading$.next(!1),this.reservaService.setReservaChangeData(null),this.updateStoreInCreateReservation(a,e),this.saveTerms(a,o),this.navigationFlowService.destroy$.next(),this.translateService.get("url.reserva.confirmacao").pipe(w(1)).subscribe(m=>{this.router.navigate([m])})}updateStoreInCreateReservation(e,a){this.fluxoReservaStore.actions.emit({type:ie.ATUALIZAR,payload:{reservaRealizadaNr:a,cliente:{clientePessoaFisicaId:e.usuarioReserva.codigoUsuarioReserva,codigoNacionalidade:e.usuarioReserva.nacionalidade,tipoDocumento:e.usuarioReserva.tipoDocumento,numeroDocumento:e.usuarioReserva.documento,nome:e.usuarioReserva.nomeUsuarioReserva,email:e.usuarioReserva.contatosReserva[0].emailReserva,celular:{tipoTelefone:e.usuarioReserva.contatosReserva[0].telefone.tipoTelefone,ddi:e.usuarioReserva.contatosReserva[0].telefone.ddi,ddd:e.usuarioReserva.contatosReserva[0].telefone.ddd,numero:e.usuarioReserva.contatosReserva[0].telefone.numeroTelefone},descricaoCliente:e.usuarioReserva.descricaoDocumento}}})}updateReservation(e,a,o){this.loading$.next(!0),this.reservaService.alterarReserva(e.localizador,a).pipe(He(()=>this.loading$.next(!1))).subscribe({next:m=>this.successInUpdateReservation(m,a,o),error:m=>this.errorInBookingProcess(m,a)})}successInUpdateReservation(e,a,o){this.reservaService.setReservaChangeData(null),this.fluxoReservaStore.actions.emit({type:ie.ATUALIZAR,payload:{reservaRealizadaNr:e,alteracaoReserva:!0}}),this.saveTerms(a,o),this.translateService.get("url.reserva.confirmacao").pipe(w(1)).subscribe(m=>{this.router.navigate([m])})}saveTerms(e,a){if(!a)return;let o=this.protecaoDadosManagerService.construitInformacaoTermoAceite(e.usuarioReserva.contatosReserva[0]?.emailReserva);o&&this.protecaoDadosService.salvarTermoAceite(o).pipe(w(1)).subscribe()}errorInBookingProcess(e,a){if(this.loading$.next(!1),e?.error?.codigo===403){this.setClientData(a),this.fluxoReservaStore.actions.emit({type:ie.ATUALIZAR,payload:{cliente:this.cliente}}),this.translateService.get("url.reserva.reservaNegada").pipe(w(1)).subscribe(o=>this.router.navigate([o]));return}this.error$.next({error:!0,message:e?.error?.mensagensUsuario||""})}setClientData(e){this.cliente.nome=e.usuarioReserva.nomeUsuarioReserva,this.cliente.email=e.usuarioReserva.contatosReserva[0].emailReserva}};r.\u0275fac=function(a){return new(a||r)},r.\u0275prov=$e({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();function L0(i,r){i&1&&(s(0,"div",0),h(1,"mat-spinner"),l())}function N0(i,r){i&1&&(s(0,"span",6),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.required")," "))}function U0(i,r){i&1&&(s(0,"span",6),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.required")," "))}function G0(i,r){if(i&1&&(s(0,"div",7)(1,"app-form-text-field",17),c(2,"translate"),c(3,"translate"),B(4,U0,3,3,"span",6),l()()),i&2){let t=g(2);n(),d("label",u(2,4,"formPersonalData.form.nameLabel"))("placeholder",u(3,6,"formPersonalData.form.namePlaceholder"))("submitted",t.submitted()),n(3),F(t.verifyFormError(t.form.controls.fullName)?4:-1)}}function j0(i,r){i&1&&(s(0,"span",6),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.required")," "))}function q0(i,r){i&1&&(s(0,"span",6),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.required")," "))}function H0(i,r){i&1&&(s(0,"span",6),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.emailConfirm")," "))}function $0(i,r){i&1&&(s(0,"div",27),h(1,"lds-icon-warning-filled"),s(2,"span",6),p(3),c(4,"translate"),l()()),i&2&&(n(3),f(" ",u(4,1,"formValidators.required")," "))}function W0(i,r){i&1&&(s(0,"span",6),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.number")," "))}function K0(i,r){if(i&1){let t=k();s(0,"button",34),b("click",function(){P(t);let a=g(3);return S(a.help())}
2),h(1,"lds-icon-help"),l()}}function Z0(i,r){if(i&1){let t=k();s(0,"button",35),b("click",function(){P(t);let a=g(3);return S(a.clearDocument())}),h(1,"lds-icon-close"),l()}}function Y0(i,r){if(i&1&&(s(0,"div",2)(1,"div",18)(2,"app-form-text-field",19),c(3,"translate"),c(4,"translate"),B(5,j0,3,3,"span",6),l(),s(6,"app-form-text-field",20),c(7,"translate"),c(8,"translate"),B(9,q0,3,3,"span",6),B(10,H0,3,3,"span",6),l()(),s(11,"div",21)(12,"div",22)(13,"div",23),h(14,"app-form-ddi",24),l(),s(15,"div",25),h(16,"app-form-text-field",26),c(17,"translate"),B(18,$0,5,3,"div",27),l()(),s(19,"div",28),h(20,"app-form-document",29),s(21,"div",30)(22,"app-form-text-field",31),c(23,"translate"),B(24,W0,3,3,"span",6),B(25,K0,2,0,"button",32),B(26,Z0,2,0,"button",33),l()()()()()),i&2){let t=g(2);n(2),d("label",u(3,29,"formPersonalData.form.emailLabel"))("placeholder",u(4,31,"formPersonalData.form.emailPlaceholder"))("submitted",t.submitted()),n(3),F(t.verifyFormError(t.form.controls.email)?5:-1),n(),d("label",u(7,33,"formPersonalData.form.emailConfirmationLabel"))("placeholder",u(8,35,"formPersonalData.form.emailConfirmationPlaceholderColombia"))("submitted",t.submitted()),n(3),F(t.isConfirmEmailRequiredError(t.form.controls.confirmEmail)?9:-1),n(),F(t.confirmEmailError(t.form.controls.confirmEmail)?10:-1),n(4),d("ddis",t.ddis())("control",t.form.get("dialCode"))("submitted",t.submitted()),n(2),d("mask",t.telephoneMask())("label",u(17,37,"formPersonalData.form.telephoneLabel"))("submitted",t.submitted())("placeholder",t.telephonePlaceholder())("showError",!1),n(2),F(t.verifyFormError(t.form.controls.phoneNumber)?18:-1),n(2),d("control",t.documentType)("documents",t.documents())("submitted",t.submitted()),n(2),d("mask",t.documentMask)("label",u(23,39,"formPersonalData.form.documentNumberLabel"))("placeholder",t.documentPlaceholder)("textCase",t.isCurp?"uppercase":"none")("submitted",t.submitted()),n(2),F(t.documentNumber.errors!=null&&t.documentNumber.errors.required||t.documentNumber.errors!=null&&t.documentNumber.errors.maxLength||t.documentNumber.errors!=null&&t.documentNumber.errors.curp||t.documentNumber.errors!=null&&t.documentNumber.errors.numericOnly?24:-1),n(),F(t.isCurp&&!(t.numeroDocumento!=null&&t.numeroDocumento.value)?25:-1),n(),F(t.isCurp&&(t.documentNumber!=null&&t.documentNumber.value)?26:-1)}}function Q0(i,r){i&1&&(s(0,"span",6),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.required")," "))}function X0(i,r){i&1&&(s(0,"span",6),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.required")," "))}function J0(i,r){if(i&1&&(s(0,"div",10)(1,"app-form-airline",36),B(2,Q0,3,3,"span",6),l(),s(3,"app-form-text-field",37),c(4,"translate"),B(5,X0,3,3,"span",6),l()()),i&2){let t=g(2);n(),d("airlines",t.airlines())("control",t.airline)("submitted",t.submitted()),n(),F(t.verifyFormError(t.airline)?2:-1),n(),d("label",u(4,7,"formPersonalData.form.flightNumberLabel"))("submitted",t.submitted()),n(2),F(t.verifyFormError(t.flightNumber)?5:-1)}}function eg(i,r){i&1&&(s(0,"div",16),h(1,"lds-icon-warning-filled"),s(2,"span",6),p(3),c(4,"translate"),l()()),i&2&&(n(3),f(" ",u(4,1,"formValidators.required")," "))}function tg(i,r){if(i&1){let t=k();s(0,"div",11)(1,"app-form-checkbox",38)(2,"p",39),p(3),c(4,"translate"),s(5,"a",15),b("click",function(){P(t);let a=g(2);return S(a.openModalTerms())})("keyup.enter",function(){P(t);let a=g(2);return S(a.openModalTerms())})("keyup.space",function(){P(t);let a=g(2);return S(a.openModalTerms())}),p(6),c(7,"translate"),l(),p(8),c(9,"translate"),l()(),B(10,eg,5,3,"div",16),l()}if(i&2){let t=g(2);n(),Z("form-colombia__optin-terms--has-error",t.optinTermsHasError),d("iconError",!1)("submitted",t.submitted()),n(2),f(" ",u(4,8,"formPersonalData.form.optinTermsColombia")," "),n(3),f(" ",u(7,10,"formPersonalData.form.termsAndConditions")," "),n(2),f(" ",u(9,12,"formPersonalData.form.deEstaTarifa")," "),n(2),F(!t.form.controls.optinTerms.value&&t.submitted()?10:-1)}}function ig(i,r){i&1&&(s(0,"div",16),h(1,"lds-icon-warning-filled"),s(2,"span",6),p(3),c(4,"translate"),l()()),i&2&&(n(3),f(" ",u(4,1,"formValidators.required")," "))}function og(i,r){if(i&1&&h(0,"app-toast-erro",41),i&2){let t=g(3);d("mensagensErro",t.errorMessage())}}function ag(i,r){if(i&1){let t=k();s(0,"div",40),h(1,"app-secure-online-payment-information"),l(),B(2,og,1,1,"app-toast-erro",41),s(3,"div",42)(4,"app-button",43),b("click",function(){P(t);let a=g(2);return S(a.submit())}),p(5),c(6,"translate"),l()()}if(i&2){let t=g(2);n(2),F(t.toastError()?2:-1),n(2),d("fullWidth",!0)("disabled",t.form.disabled||t.isLoading()),n(),f(" ",u(6,4,"reserva.passo4.pagar")," ")}}function ng(i,r){if(i&1&&h(0,"app-toast-erro",41),i&2){let t=g(3);d("mensagensErro",t.errorMessage())}}function rg(i,r){i&1&&h(0,"mat-spinner")}function sg(i,r){if(i&1){let t=k();s(0,"div",44)(1,"a",45),b("click",function(){P(t);let a=g(2);return S(a.openModalTerms())}),p(2),c(3,"translate"),l()(),B(4,ng,1,1,"app-toast-erro",41),s(5,"div",42)(6,"app-button",43),b("click",function(){P(t);let a=g(2);return S(a.submit())}),p(7),c(8,"translate"),l(),B(9,rg,1,0,"mat-spinner"),l()}if(i&2){let t=g(2);n(2),f(" ",u(3,6,"reserva.passo4.terms")," "),n(2),F(t.toastError()?4:-1),n(2),d("fullWidth",!0)("disabled",t.isLoading()),n(),f(" ",u(8,8,"reserva.passo4.reserve")," "),n(2),F(t.isLoading()?9:-1)}}function lg(i,r){if(i&1){let t=k();s(0,"form",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"app-form-nationality",5),B(5,N0,3,3,"span",6),l()(),B(6,G0,5,8,"div",7),l(),B(7,Y0,27,41,"div",2),h(8,"hr"),
2V(9),s(10,"app-form-switch",8)(11,"p",9),p(12),c(13,"translate"),l()(),B(14,J0,6,9,"div",10),z(),B(15,tg,11,14,"div",11),s(16,"div",12)(17,"app-form-checkbox",13)(18,"p",14),p(19),c(20,"translate"),s(21,"a",15),b("click",function(){P(t);let a=g();return S(a.openDialogPrivacy())})("keyup.enter",function(){P(t);let a=g();return S(a.openDialogPrivacy())})("keyup.space",function(){P(t);let a=g();return S(a.openDialogPrivacy())}),p(22),c(23,"translate"),l()()()(),B(24,ig,5,3,"div",16),B(25,ag,7,6)(26,sg,10,10),l()()}if(i&2){let t=g();d("formGroup",t.form),n(2),Z("nationality-selected",t.isNationalityValid()),n(2),d("control",t.form.get("nationality"))("nationalities",t.nationalities())("submitted",t.submitted()),n(),F(t.verifyFormError(t.form.controls.nationality)?5:-1),n(),F(t.isNationalityValid()?6:-1),n(),F(t.isNationalityValid()?7:-1),n(3),d("submitted",t.submitted()),n(2),f(" ",u(13,18,"formPersonalData.form.flightColombiaLabel")," "),n(2),F(t.flight.value?14:-1),n(),F(t.isPrepaid()?15:-1),n(2),d("submitted",t.submitted()),n(2),f(" ",u(20,20,"formPersonalData.form.tratamientoDeMisDatosPersonales")," "),n(3),f(" ",u(23,22,"formPersonalData.form.politicaDePrivacidad")," "),n(2),F(!t.form.get("personalDataConsent").value&&t.submitted()?24:-1),n(),F(t.isPrepaid()?25:26)}}var Jc=(()=>{let r=class r{constructor(){this.booking=It(),this.isDesktop=It(!1),this.insiderService=I(_t),this.form=new ko({fullName:new _e(null,[j.minLength(3),j.required,Ae.campoNomeSobrenomeValidator]),nationality:new _e(null,[j.required,Ae.paisValidator]),email:new _e(null,[j.required,j.email,Ae.emailValidator]),confirmEmail:new _e(null,[j.required,j.email,Ae.confirmEmailValidator("email")]),dialCode:new _e(null,[j.required]),phoneNumber:new _e(null,[j.required]),documentType:new _e(null,[j.required]),documentNumber:new _e(null,[j.required]),flight:new _e(!1,[]),airline:new _e(null,[]),flightNumber:new _e(null,[]),optinTerms:new _e(!1,[j.requiredTrue]),personalDataConsent:new _e(!1,[j.requiredTrue])}),this.destroyRef=I(qi),this.TARIFA_FLANKER="012396",this.clienteService=I(Pi),this.dialog=I(re),this.authService=I(Ye),this.documentService=I(un),this.translateService=I(G),this.reservaService=I(Ut),this.activatedRoute=I($i),this.service=I(Xc),this.reservaStore=I(fe),this.nationalityValue=Oe(this.nationality.valueChanges,{initialValue:this.nationality.value}),this.dialCodeSignal=Oe(this.dialCode?.valueChanges,{initialValue:this.dialCode?.value}),this.documentTypeSignal=Oe(this.documentType?.valueChanges,{initialValue:this.documentType?.value}),this.nationalities=ve(null),this.ddis=ve([]),this.airlines=ve([]),this.airlinesLoaded=ve(!1),this.documents=ve(null),this.submitted=ve(!1),this.isLoading=ve(!1),this.toastError=ve(!1),this.errorMessage=ve(null),this.aceiteTermosCondicoes=!1,this.isCurp=!1,this.isPrepaid=Ri(()=>{let a=this.booking()?.ofertaSelecionada?.meioPagamento||[];return a?.length?a.some(o=>o.selecionado&&o.tipo==="Link"):!1}),this.telephoneMask=ve(this.dialCodeSignal()?.phone===Lt?"(00) 00000-0000":"00000000000000000"),this.telephonePlaceholder=Ri(()=>this.dialCodeSignal()?.phone===Lt?"(00) 00000-0000":"00000000000000000"),this.nationalityEffect=Mo(()=>{let e=this.nationalityValue();this.hasValidNationality(e)&&(this.setDocumentAndTypeDocumentByNationality(e),this.setDialCode(e.codigoPais))}),this.dialCodeEffect=Mo(()=>{this.setTelephoneValidators(this.dialCodeSignal())}),this.documentTypeEffect=Mo(()=>{let e=this.documentTypeSignal();e!=null&&(this.isCurp=this.documentType.value===Qe.Curp,e!==this.documentTypeCode&&(this.documentNumber.reset(),this.setDocumentMask(e),this.setDocumentPlaceholder(e),this.setDocumentValidators(e)))})}get nationality(){return this.form.get("nationality")}get fullName(){return this.form.get("fullName")}get email(){return this.form.get("email")}get confirmEmail(){return this.form.get("confirmEmail")}get dialCode(){return this.form.get("dialCode")}get phoneNumber(){return this.form.get("phoneNumber")}get documentNumber(){return this.form.get("documentNumber")}get documentType(){return this.form.get("documentType")}get flight(){return this.form.get("flight")}get airline(){return this.form.get("airline")}get flightNumber(){return this.form.get("flightNumber")}get optinTerms(){return this.form.get("optinTerms")}get personalDataConsent(){return this.form.get("personalDataConsent")}get documentNumberIsValid(){return this.documentNumber.errors?.required||this.documentNumber.errors?.maxLength||this.documentNumber.errors?.curp}isNationalityValid(){return this.form.get("nationality").value}
2verifyFormError(e){return e.invalid&&e.touched||e.invalid&&this.submitted()}isConfirmEmailRequiredError(e){return e.errors?.required&&!e.value}confirmEmailError(e){return e.errors?.incompatibleEmails&&e.value}hasValidNationality(e){return e!=null&&typeof e=="object"}ngOnInit(){this.nationalities.set(this.activatedRoute.snapshot.data.nacionalidades),this.loadDdis(),this.loadClientData(),this.loadDataProtectionConfig(),this.loadAirlines(),this.loadBookingStoreData(),this.listenObservableService(),this.watchNationalityReset(),this.watchFlightSwitch()}watchNationalityReset(){this.nationality.valueChanges.pipe(Fi(this.destroyRef)).subscribe(e=>{!this.hasValidNationality(e)&&!this.nationality.disabled&&this.form.reset(void 0,{emitEvent:!1})})}watchFlightSwitch(){this.setFlightValidators(this.flight.value),this.flight.valueChanges.pipe(Fi(this.destroyRef)).subscribe(e=>{this.setFlightValidators(e)})}setFlightValidators(e){e?(this.airline.setValidators([j.required]),this.flightNumber.setValidators([j.required])):(this.airline.clearValidators(),this.flightNumber.clearValidators(),this.airline.reset(),this.flightNumber.reset()),this.airline.updateValueAndValidity(),this.flightNumber.updateValueAndValidity()}loadDdis(){let e=this.getLang(),a=this.getDdis(e);this.ddis.set(this.orderDdis(a))}getLang(){return this.translateService.getCurrentLang()?.substring(0,2)}getDdis(e){return to().flatMap(a=>a.phone.map(o=>({country:`${a.getName(e)} (+${o.toString()})`,phone:o.toString()})))}orderDdis(e){return e.sort((a,o)=>{let m=a.phone.localeCompare(o.phone,void 0,{numeric:!0});return m===0?a.country.localeCompare(o.country):m})}listenObservableService(){this.service.loadingObservable.pipe(Fi(this.destroyRef)).subscribe(e=>{this.isLoading.set(e),this.service.errorObservable.pipe(Fi(this.destroyRef)).subscribe(a=>{this.toastError.set(!!a?.error),this.toastError()&&this.errorMessage.set(a?.message||null)})})}loadClientData(){if(this.authService.autenticado()&&!this.booking()?.alteracaoReserva){this.clientId=this.authService.obterUsuarioLogado().id,this.fillFormWithAuthClient(this.clientId);return}if(this.booking()?.alteracaoReserva&&(this.clientPersonalData=this.booking()?.cliente,this.clientId!==null)){this.clientId=this.clientPersonalData.clientePessoaFisicaId,this.fillOutTheFormWithCustomerInformation(this.clientPersonalData);return}this.form.reset()}getDocumentDescription(){return this.nationality.value.documentos.filter(a=>a.codigoTipoDocumento===this.documentType.value)[0]?.descricaoDocumento}loadBookingStoreData(){this.reservaStore.state$.subscribe(e=>{this.reserva=e.reserva})}fillOutTheFormWithCustomerInformation(e){let{nome:a,email:o,celular:m,tipoDocumento:_,numeroDocumento:x}=e;this.form.enable(),this.updateFullNameControl(a);let O=this.nationalities()?.find(R=>R.codigoPais===e.codigoNacionalidade);if(this.setDocumentAndTypeDocumentByNationality(O),this.updateNationalityControl(O),this.updateDocumentTypeControl(Number(_)),this.updateDocumentNumberControl(x),this.updateEmailControl(o),this.updateConfirmEmailControl(o),m){this.setDialCode(e.celular.ddi);let K=e.celular.ddi===Lt?`(${e.celular.ddd}) ${e.celular.numero}`:e.celular.numero;this.updatePhoneNumberControl(K)}}updateNationalityControl(e){let a=this.form.get("nationality");a.clearValidators(),a.updateValueAndValidity(),a.patchValue(e),a.disable()}updateFullNameControl(e){this.fullName.clearValidators(),this.fullName.updateValueAndValidity(),this.fullName.patchValue(e),this.fullName.disable()}updateDocumentTypeControl(e){let a=this.form.get("documentType");a.clearValidators(),a.updateValueAndValidity(),a.patchValue(e),a.disable()}updateDocumentNumberControl(e){this.documentNumber.clearValidators(),this.documentNumber.updateValueAndValidity(),this.documentNumber.patchValue(e),this.documentNumber.disable()}updateEmailControl(e){this.email.clearValidators(),this.email.updateValueAndValidity(),this.email.patchValue(e)}updateConfirmEmailControl(e){this.confirmEmail.clearValidators(),this.confirmEmail.updateValueAndValidity(),this.confirmEmail.patchValue(e)}updatePhoneNumberControl(e){this.phoneNumber.clearValidators(),this.phoneNumber.updateValueAndValidity(),this.phoneNumber.patchValue(e)}fillFormWithAuthClient(e){this.clienteService.obterDadosPessoais(e,this.authService.isUniidToggleOn()).pipe(Fi(this.destroyRef)).subscribe(a=>{this.fillOutTheFormWithCustomerInformation(a)})}setDocumentAndTypeDocumentByNationality(e){let a=this.nationality?.value?.documentos,o=this.nationality?.value?.codigoPais;if(!a.length){this.documents.set([]);return}this.documents.set(this.documentService.getFilteredDocumentsWhenAuthenticated(a,o)),this.documentType.patchValue(this.documents()[0].codigoTipoDocumento)}setDialCode(e){if(!e)return;let a=Number(e).toString(),o=this.ddis().find(m=>m.phone===a);this.dialCode.patchValue(o)}loadAirlines(){this.reservaService.getCompanhiasAereas().pipe(Fi(this.destroyRef)).subscribe({next:e=>{this.airlines.set(e),this.airlinesLoaded.set(!0)},error:()=>this.airlinesLoaded.set(!1)})}setDocumentValidators(e){let a={[Qe.Cpf]:[j.required,Ae.cpfValidator],[Qe.Curp]:[j.required,Ae.curpValidator],[Qe.Document]:[j.required,Ae.numericOnlyValidator,j.maxLength(20)]},o=[j.required,j.maxLength(20)],m=a[e]||o;this.documentNumber.setValidators(m)}setDocumentMask(e){let a={[Qe.Cpf]:"000.000.000-00",[Qe.Curp]:"SSSS000000SSSSSSA0",[Qe.Document]:"0*"};this.documentMask=a[e]||null}setDocumentPlaceholder(e){let a={[Qe.Cpf]:"000.000.000-00",[Qe.Curp]:"AAAA000000AAAAAA00",[Qe.Document]:"00000000"};this.documentPlaceholder=a[e]||"00000000"}setTelephoneValidators(e){let o=e===Lt?Ae.telephoneBrazilValidator:Ae.celularInternacionalValidator;this.phoneNumber.setValidators([j.required,o]),this.phoneNumber.updateValueAndValidity()}openConfirmationModal(){this.dialog.open(na,{maxWidth:this.isDesktop()?"362px":"100%",maxHeight:this.isDesktop()?"500px":"100%",panelClass:"matDialog100Percent",data:this.getUserBooking()}).afterClosed().subscribe(e=>{e&&this.createPrePaymentReservation()})}getUserBooking(){let e=this.fullName?.value?.trim(),a=this.dialCode?.value?.phone?.trim(),o=this.phoneNumber?.value,m="";return o=o?.replaceAll(/[^0-9*]+/g,"")??"",a===Lt&&(m=o.substring(0,2)?.trim(),o=o.substring(2)?.trim()),{isMexico:!1,dadosCriarReserva:{usuarioReserva:{nomeUsuarioReserva:e,contatosReserva:[{emailReserva:this.email?.value,telefone:{ddi:a,ddd:m,numeroTelefone:o}}]}}}}hasDocumentNumberError(){let{documentNumber:e}=this.form.controls;return e.errors?.required||e.errors?.maxLength||e.errors?.curp||e.errors?.numericOnly}openModalTerms(){if(this.isFormColombiaABActive()){this.dialog.open(Qc,{maxWidth:this.isDesktop()?"600px":"100%",maxHeight:this.isDesktop()?"600px":"100%",panelClass:"matDialog100Percent"});return}this.dialog.open(Ji,{maxWidth:this.isDesktop()?"60vw":"100%",maxHeight:this.isDesktop()?"80vh":"100%",panelClass:"matDialog100Percent",data:this.booking()?.codigoPaisAgenciaRetirada})}openDialogPrivacy(){let e="reserva.passo4.msgToastColombia",a=this.translateService.instant("reserva.passo4.privacyTitle");this.dialog.open(Bn,{data:{content:e,title:a},maxWidth:this.isDesktop()?"60vw":"100%",maxHeight:this.isDesktop()?"80vh":"100%",panelClass:"matDialog100Percent"}).afterClosed().subscribe(m=>{m===!0&&this.personalDataConsent.setValue(!0)})}help(){this.dialog.open(wn)}clearDocument(){this.documentNumber.reset()}buildDataClientToReservation(){let{ofertaId:e,cotacaoId:a}=this.booking().ofertaSelecionada,o=this.nationality.value.codigoPais!==le;this.clientData={identificadorOferta:e,identificadorCotacao:a,usuarioReserva:{descricaoDocumento:this.getDocumentDescription(),codigoUsuarioReserva:this.clientId??"",nomeUsuarioReserva:this.fullName.value?.trim(),tipoDocumento:this.documentType.value?.toString(),documento:this.documentNumber?.value.trim().replaceAll(/[^0-9*]+/g,"")??"",nacionalidade:this.nationality.value.codigoPais,estrangeiro:o,contatosReserva:[{emailReserva:this.email.value?.trim(),enviarEmail:!0,contatoPrincipal:!0,telefone:{tipoTelefone:1,ddd:this.dddFormatter(),ddi:this.dialCode.value?.phone.trim(),numeroTelefone:o?this.phoneNumber.value:this.phoneFormatter()}}]},dadosParceiro:this.getPartnerData(),dadosComplementares:{ciaAerea:this.airline.value,numeroVoo:this.flightNumber.value,codigoPais:this.booking().codigoPaisAgenciaRetirada}}}dddFormatter(){return!this.dialCode.value||!this.phoneNumber.value?"":this.phoneNumber.value?.trim()?.replaceAll(/[^0-9*]+/g,"").substring(0,2)}phoneFormatter(){return this.phoneNumber?this.phoneNumber.value?.trim()?.replaceAll(/[^0-9*]+/g,"")?.substring(2):""}getPartnerData(){return this.reserva?.parceiro?{origin:this.reserva?.parceiro?.origin,referenceId:this.reserva?.parceiro?.referenceId,partnerIdentifier:this.reserva?.parceiro?.partnerIdentifier,partnerVoucher:this.reserva?.parceiro?.partnerVoucher,data:this.reserva?.parceiro?.data}:null}createPrePaymentReservation(){this.getDocumentDescription(),this.service.createPrePaymentReservation(this.clientData,this.booking())}createReservation(){if(this.getDocumentDescription(),this.booking()?.alteracaoReserva){this.service.updateReservation(this.booking(),this.clientData,this.temTermosConfigurado);return}this.service.createReservation(this.clientData,this.temTermosConfigurado)}loadDataProtectionConfig(){this.activatedRoute.data.pipe(w(1)).subscribe(e=>{this.termoCondicoes=e.protecaoDados,this.temTermosConfigurado=this.termoCondicoes?.temTermosConfigurado,this.temTermosConfigurado&&(this.tituloTermoCondicoes=this.termoCondicoes.tituloTermoCondicoes,this.previaTermoCondicoes=this.termoCondicoes.previaTermoCondicoes,this.conteudoTermoCondicoes=this.termoCondicoes.conteudoTermoCondicoes)})}areTermsConditionsValid(){return this.temTermosConfigurado?!!this.personalDataConsent.value:!0}formIsValid(){let e=this.form.controls;return e.fullName.valid&&e.nationality.valid&&e.email.valid&&e.confirmEmail.valid&&e.phoneNumber.valid&&e.dialCode.valid&&e.documentNumber.valid&&e.airline.valid&&e.flightNumber.valid&&this.personalDataConsent.value}openPopupFlanker(){this.dialog.open(Fn,{maxWidth:this.isDesktop()?"500px":"100%",maxHeight:this.isDesktop()?"400px":"100%"}).afterClosed().subscribe(e=>{if(e){this.buildDataClientToReservation(),this.createReservation();return}})}submit(){if(this.submitted.set(!0),!this.formIsValid())return;let{codigoTarifa:e}=this.reserva.ofertaSelecionada.tarifa;if(e===this.TARIFA_FLANKER){this.openPopupFlanker();return}if(this.isPrepaid()&&this.optinTerms.value&&this.formIsValid()){this.buildDataClientToReservation(),this.openConfirmationModal();return}if(this.areTermsConditionsValid()&&this.formIsValid()){this.buildDataClientToReservation(),this.createReservation();return}}isFormColombiaABActive(){return this.insiderService.colombiaFormAActivated()}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-form-colombia"]],inputs:{booking:[1,"booking"],isDesktop:[1,"isDesktop"]},decls:2,vars:1,consts:[[1,"form-colombia__loading"],[1,"form-colombia",3,"formGroup"],[1,"form-colombia__fields"],[1,"form-colombia__fields__first-row"],[1,"nationality-field"],[3,"control","nationalities","submitted"],["error",""],[1,"name-field"],["size","sm","color","secondary","id","flight","name","flight","formControlName","flight",1,"form-colombia__flight",3,"submitted"],["slotEnd","",1,"form-colombia__flight__label"],[1,"form-colombia__flight-fields"],[1,"form-colombia__terms"],[1,"form-colombia__datos-personales"],["color","secondary","id","personalDataConsent","name","personalDataConsent","formControlName","personalDataConsent",1,"form-colombia__tratamento-datos-personales",3,"submitted"],["slotEnd","",1,"form-colombia__tratamento-datos-personales__label"],["tabindex","0",3,"click","keyup.enter","keyup.space"],[1,"form-colombia__tratamento-datos-personales__error"],["id","fullName","name","fullName","size","md","formControlName","fullName",3,"label","placeholder","submitted"],[1,"form-colombia__fields__second-row"],["id","email","name","email","size","md","formControlName","email",3,"label","placeholder","submitted"],["id","confirmEmail","name","confirmEmail","size","md","formControlName","confirmEmail",3,"label","placeholder","submitted"],[1,"form-colombia__fields__third-row"],[1,"form-colombia__fields__third-row__ddi-telefone-resp"],[1,"form-colombia__fields__third-row__ddi"],[3,"ddis","control","submitted"],[1,"form-colombia__fields__third-row__telefone"],["id","phoneNumber","name","phoneNumber","size","md","formControlName","phoneNumber",3,"mask","label","submitted","placeholder","showError"],[1,"form-colombia__fields__third-row__telefone__error"],[1,"form-colombia__fields__third-row__doc-numDoc-resp"],[3,"control","documents","submitted"],[1,"form-colombia__fields__third-row__document"],["id","documentNumber","name","documentNumber","size","md","formControlName","documentNumber",3,"mask","label","placeholder","textCase","submitted"],["slotIcon","","type","button",1,"form-colombia__fields__third-row__document__help"],["slotIcon","","tabindex","-1","type","button",1,"form-colombia__fields__third-row__document__clear"],["slotIcon","","type","button",1,"form-colombia__fields__third-row__document__help",3,"click"],["slotIcon","","tabindex","-1","type","button",1,"form-colombia__fields__third-row__document__clear",3,"click"],[3,"airlines","control","submitted"],["id","flightNumber","name","flightNumber","size","md","formControlName","flightNumber","mask","0000","placeholder","0000",3,"label","submitted"],["color","secondary","id","optinTerms","name","optinTerms","formControlName","optinTerms",1,"form-colombia__optin-terms",3,"iconError","submitted"],["slotEnd","",1,"form-colombia__optin-terms__label"],[1,"form-colombia__toast-sucesso"],[3,"mensagensErro"],[1,"form-colombia__button"],["color","secondary",3,"click","fullWidth","disabled"],[1,"form-colombia__link"],[1,"form-colombia__link-text",3,"click"]],template:function(a,o){a&1&&B(0,L0,2,0,"div",0)(1,lg,27,24,"form",1),a&2&&F(o.isLoading()?0:1)},dependencies:[U,A,be,ct,Ce,lt,dt,Mt,mn,Tn,In,On,En,kn,No,$a,Ke,An,Rn,Gt,mt,pt,Go,Ot,pn,T],styles:["@media screen and (max-width:767px){.form-colombia__fields__first-row[_ngcontent-%COMP%], .form-colombia__fields__second-row[_ngcontent-%COMP%], .form-colombia__fields__first-row.nationality-selected[_ngcontent-%COMP%]{flex-direction:column!important;gap:12px;width:100%}.form-colombia__fields__first-row[_ngcontent-%COMP%] .nationality-field[_ngcontent-%COMP%], .form-colombia__fields__first-row[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%]{flex:1 1 100%}.form-colombia__fields__first-row[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}.form-colombia__fields__third-row__ddi-telefone-resp[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:baseline;margin-top:10px}.form-colombia__fields__third-row__ddi[_ngcontent-%COMP%]{max-width:110px}.form-colombia__fields__third-row__document__help[_ngcontent-%COMP%], .form-colombia__fields__third-row__document__clear[_ngcontent-%COMP%]{display:flex;padding:0;border:none;color:var(--lds-color-neutral-icon-default);background:#0000;cursor:pointer}.form-colombia__terms[_ngcontent-%COMP%]{margin:var(--lds-spacing-3) 0 0;display:block}.form-colombia__optin-terms[_ngcontent-%COMP%], .form-colombia__tratamento-datos-personales[_ngcontent-%COMP%]{display:block;width:100%}.form-colombia__optin-terms__label[_ngcontent-%COMP%], .form-colombia__tratamento-datos-personales__label[_ngcontent-%COMP%]{width:100%;margin:0;color:var(--lds-color-neutral-text-default);font-family:var(--lds-font-functional-family);font-size:1.4rem;font-weight:400;line-height:150%}.form-colombia__optin-terms__label[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .form-colombia__tratamento-datos-personales__label[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default);text-decoration:underline;cursor:pointer}.form-colombia__optin-terms--has-error[_ngcontent-%COMP%] .form-colombia__optin-terms__label[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--lds-color-accent-critical-default)}.form-colombia__tratamento-datos-personales__error[_ngcontent-%COMP%], .form-colombia__fields__third-row__telefone__error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--lds-spacing-1);margin-top:var(--lds-spacing-1);color:var(--lds-color-accent-critical-default);font-family:var(--lds
2-font-functional-family)}.form-colombia__toast-sucesso[_ngcontent-%COMP%]{margin:25px 0}.form-colombia__button[_ngcontent-%COMP%]{margin-bottom:2rem}.form-colombia__datos-personales[_ngcontent-%COMP%]{display:block;width:100%;margin-top:var(--lds-spacing-3)}.form-colombia__loading[_ngcontent-%COMP%]{margin-top:15rem;display:flex;justify-content:center}hr[_ngcontent-%COMP%]{color:#e6e6e6;border-top:1px;margin:2rem 0}}@media screen and (min-width:768px){.form-colombia[_ngcontent-%COMP%]{overflow:visible}.form-colombia__fields__first-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;width:50%}.form-colombia__fields__first-row.nationality-selected[_ngcontent-%COMP%]{flex-direction:row;width:100%}.form-colombia__fields__first-row.nationality-selected[_ngcontent-%COMP%] .nationality-field[_ngcontent-%COMP%], .form-colombia__fields__first-row.nationality-selected[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%]{flex:1 1 0}.form-colombia__fields__second-row[_ngcontent-%COMP%]{display:flex;gap:16px;justify-content:space-between;margin-top:25px}.form-colombia__fields__second-row[_ngcontent-%COMP%] app-form-text-field[_ngcontent-%COMP%]{flex:1 1 48%}.form-colombia__fields__third-row[_ngcontent-%COMP%]{margin-top:25px;gap:10px;display:inline-flex}.form-colombia__fields__third-row__doc-numDoc-resp[_ngcontent-%COMP%]{display:flex;width:100%;gap:10px}.form-colombia__fields__third-row__ddi-telefone-resp[_ngcontent-%COMP%]{display:flex;gap:10px}.form-colombia__fields__third-row__ddi[_ngcontent-%COMP%]{width:100px}.form-colombia__fields__third-row__telefone[_ngcontent-%COMP%]{width:194px}.form-colombia__fields__third-row__telefone__error[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--lds-color-accent-critical-default);font-family:var(--lds-font-functional-family);gap:4px;margin-top:7px}.form-colombia__fields__third-row__document__help[_ngcontent-%COMP%], .form-colombia__fields__third-row__document__clear[_ngcontent-%COMP%]{display:flex;padding:0;border:none;color:var(--lds-color-neutral-icon-default);background:#0000;cursor:pointer}.form-colombia__fields[_ngcontent-%COMP%] .nationality-valid[_ngcontent-%COMP%]{flex-direction:row;gap:16px;width:100%}.form-colombia__fields[_ngcontent-%COMP%] .nationality-field[_ngcontent-%COMP%], .form-colombia__fields[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%]{flex:1 1 0;display:block}.form-colombia__flight[_ngcontent-%COMP%]{display:block;margin-bottom:1rem;margin-top:30px}.form-colombia__flight__label[_ngcontent-%COMP%]{padding:.8rem 0}.form-colombia__flight-fields[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:2.4rem 2rem;margin-bottom:4rem}.form-colombia__optin-terms[_ngcontent-%COMP%]{display:block;margin-top:2.4rem}.form-colombia__optin-terms__label[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default);font-family:var(--lds-font-functional-family);font-size:1.4rem;font-weight:400;line-height:150%;text-decoration:underline;cursor:pointer}.form-colombia__optin-terms--has-error[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--lds-color-accent-critical-default)}.form-colombia__tratamento-datos-personales[_ngcontent-%COMP%]{display:block;margin-top:2.4rem}.form-colombia__tratamento-datos-personales__error[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:7px;color:var(--lds-color-accent-critical-default);font-family:var(--lds-font-functional-family);gap:4px}.form-colombia__flight__label[_ngcontent-%COMP%], .form-colombia__optin-terms__label[_ngcontent-%COMP%], .form-colombia__tratamento-datos-personales__label[_ngcontent-%COMP%]{width:100%;margin:0;min-height:2.4rem;color:var(--lds-color-neutral-text-default);font-family:var(--lds-font-functional-family);font-size:1.4rem;font-weight:400;line-height:150%}.form-colombia__flight__label[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .form-colombia__optin-terms__label[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .form-colombia__tratamento-datos-personales__label[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer}.form-colombia__toast-sucesso[_ngcontent-%COMP%]{margin:40px 0 50px}.form-colombia__link[_ngcontent-%COMP%]{text-decoration:underline;margin-top:40px;font-weight:600;font-size:14px;font-family:var(--lds-font-functional-family);cursor:pointer}.form-colombia__link[_ngcontent-%COMP%]:hover{text-decoration:none}.form-colombia__link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1e852d}.form-colombia__button[_ngcontent-%COMP%]{display:flex;justify-content:end;margin:50px 0 10rem}.form-colombia__button[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%]{width:170px}.form-colombia[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{color:#e6e6e6;border-top:1px;margin-top:3rem}.form-colombia__loading[_ngcontent-%COMP%]{margin-top:15rem;display:flex;justify-content:center}}"],changeDetection:0});let i=r;return i})();var Vn=(()=>
2{let r=class r{constructor(e,a){this.matDialogRef=e,this.data=a,this.data.prosseguir=!1,this.dadosCriarReserva=a.dadosCriarReserva}fecharModal(){this.data.prosseguir=!1,this.matDialogRef.close(!1)}prosseguirComReserva(){this.data.prosseguir=!0,this.matDialogRef.close(!0)}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(ne))},r.\u0275cmp=M({type:r,selectors:[["app-confirmacao-dados-pessoais-mexico"]],decls:38,vars:27,consts:[[3,"showModalCloseButton"],[1,"modal-confirmacao-mx"],[1,"modal-confirmacao-mx__header"],[1,"modal-confirmacao-mx__header-top"],[1,"modal-confirmacao-mx__title"],["mat-button","","mat-dialog-close","","data-testid","btn-close","aria-label","close",1,"modal-confirmacao-mx__close",3,"click"],[1,"modal-confirmacao-mx__description"],[1,"modal-confirmacao-mx__content"],[1,"modal-confirmacao-mx__item"],[1,"modal-confirmacao-mx__actions"],["data-testid","btn-prosseguir","type","button","ldsButton","","size","lg",1,"modal-confirmacao-mx__primary",3,"click"],["data-testid","btn-editar-dados","fullWidth","","color","secondary","ldsButton","","variant","basic",1,"modal-confirmacao-mx__secondary",3,"click"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"div",1)(2,"header",2)(3,"div",3)(4,"h3",4),p(5),c(6,"translate"),l(),s(7,"button",5),b("click",function(){return o.fecharModal()}),h(8,"lds-icon-close"),l()(),s(9,"p",6),p(10),c(11,"translate"),l()(),s(12,"section",7)(13,"div",8)(14,"span"),p(15),c(16,"translate"),l(),s(17,"h4"),p(18),l()(),s(19,"div",8)(20,"span"),p(21),c(22,"translate"),l(),s(23,"h4"),p(24),l()(),s(25,"div",8)(26,"span"),p(27),c(28,"translate"),l(),s(29,"h4"),p(30),l()()(),s(31,"footer",9)(32,"button",10),b("click",function(){return o.prosseguirComReserva()}),p(33),c(34,"translate"),l(),s(35,"button",11),b("click",function(){return o.fecharModal()}),p(36),c(37,"translate"),l()()()()),a&2&&(d("showModalCloseButton",!1),n(5),D(u(6,13,"reserva.passo4.modalConfirmacaoDados.titulo")),n(5),f(" ",u(11,15,"reserva.passo4.modalConfirmacaoDados.descricao")," "),n(5),D(u(16,17,"reserva.passo4.modalConfirmacaoDados.nome")),n(3),D(o.dadosCriarReserva.usuarioReserva.nomeUsuarioReserva),n(3),D(u(22,19,"reserva.passo4.modalConfirmacaoDados.email")),n(3),D(o.dadosCriarReserva.usuarioReserva.contatosReserva[0].emailReserva),n(3),D(u(28,21,"reserva.passo4.modalConfirmacaoDados.celular")),n(3),st(" +",o.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.ddi," ",o.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.ddi==="55"?o.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.ddd:""," ",o.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.numeroTelefone," "),n(3),f(" ",u(34,23,"reserva.passo4.modalConfirmacaoDados.btnConfirmar")," "),n(3),f(" ",u(37,25,"reserva.passo4.modalConfirmacaoDados.btnEditar")," "))},dependencies:[U,se,ze,Ki,A,Ke,zt,oe,oi,T],styles:["[_nghost-%COMP%] .modal{padding:0;width:min(525px,100vw - 20px);max-width:calc(100vw - 20px);margin-inline:auto;border-radius:8px}[_nghost-%COMP%] .modal-confirmacao-mx, [_nghost-%COMP%] .modal-confirmacao-mx *{font-family:var(--lds-font-brand-family)}.modal-confirmacao-mx[_ngcontent-%COMP%]{align-items:stretch;display:flex;flex-direction:column;width:100%}.modal-confirmacao-mx__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem;margin-bottom:3rem}.modal-confirmacao-mx__header-top[_ngcontent-%COMP%]{align-items:flex-start;display:flex;justify-content:space-between}.modal-confirmacao-mx__title[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default);font-size:24px;line-height:32px;font-weight:700;margin:0}.modal-confirmacao-mx__description[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-default);font-size:16px;line-height:24px;margin:0}.modal-confirmacao-mx__close[_ngcontent-%COMP%]{align-items:center;background:transparent;border:none;color:var(--lds-color-neutral-text-low);cursor:pointer;display:inline-flex;justify-content:center;margin:0;padding:0}.modal-confirmacao-mx__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:3rem}.modal-confirmacao-mx__item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem}.modal-confirmacao-mx__item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-default);font-size:16px;line-height:24px}
2.modal-confirmacao-mx__item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-default);font-size:20px;line-height:28px;font-weight:700;margin:0;overflow-wrap:anywhere}.modal-confirmacao-mx__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2.4rem;margin-top:0}.modal-confirmacao-mx__primary[_ngcontent-%COMP%]{width:100%;font-size:16px}.modal-confirmacao-mx__secondary[_ngcontent-%COMP%]{margin-top:0;font-size:16px;margin-bottom:-10px}"]});let i=r;return i})();function cg(i,r){i&1&&(s(0,"lds-alert",17)(1,"div",18),h(2,"lds-icon-info"),l(),s(3,"p",19),p(4),c(5,"translate"),l()()),i&2&&(d("showIcon",!0)("showCloseButton",!1),n(4),f(" ",u(5,3,"reserva.passo4.modalMetodosPagamentoFakeDoor.alerta")," "))}function dg(i,r){if(i&1&&(h(0,"img",29),c(1,"translate")),i&2){let t=r.$implicit,e=g(2).$implicit;d("src",t.src,bt)("alt",u(1,2,e.labelKey))}}function pg(i,r){if(i&1&&(s(0,"span",27),C(1,dg,2,4,"img",28),l()),i&2){let t=g().$implicit;n(),d("ngForOf",t.logos)}}function mg(i,r){if(i&1&&(s(0,"span",30),p(1),c(2,"translate"),l()),i&2){let t=g().$implicit;Z("modal-metodos-mx__badge--available",t.availableNow),n(),f(" ",u(2,3,t.badgeKey)," ")}}function ug(i,r){if(i&1){let t=k();s(0,"button",20),b("click",function(){let a=P(t).$implicit,o=g();return S(o.selecionarMetodo(a.id))}),s(1,"div",21)(2,"div",22),h(3,"span",23),s(4,"span",24),p(5),c(6,"translate"),l()(),C(7,pg,2,1,"span",25),l(),C(8,mg,3,5,"span",26),l()}if(i&2){let t=r.$implicit,e=g();Z("modal-metodos-mx__option--selected",e.isSelected(t.id))("modal-metodos-mx__option--disabled",e.isOptionDisabled(t.id)),d("disabled",e.isTransitionLoading||e.isRedirectingToPayment||e.isOptionDisabled(t.id)),Ie("data-testid","metodo-"+t.id),n(3),Z("modal-metodos-mx__radio--selected",e.isSelected(t.id)),n(),Z("modal-metodos-mx__option-label--credit-highlight",e.shouldHighlightCreditCardLabel(t.id)),n(),f(" ",u(6,13,t.labelKey)," "),n(2),d("ngIf",t.logos==null?null:t.logos.length),n(),d("ngIf",e.shouldShowBadge())}}function fg(i,r){if(i&1&&(V(0),p(1),c(2,"translate"),z()),i&2){let t=g();n(),f(" ",u(2,1,t.confirmButtonLabelKey)," ")}}function gg(i,r){i&1&&h(0,"mat-spinner",31)}function _g(i,r){i&1&&(s(0,"div",32),h(1,"mat-spinner",33),l())}var zn=(()=>{let r=class r{constructor(e,a,o,m){this.changeDetectorRef=e,this.googleAnalyticsService=a,this.matDialogRef=o,this.data=m,this.creditCardMethodId="credit-card",this.debitCardMethodId="debit-card",this.warningTransitionDelayMs=350,this.warningFreeMethodIds=new Set([this.creditCardMethodId,this.debitCardMethodId]),this.methods=[{id:"credit-card",labelKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.metodos.cartaoCredito",badgeKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.badges.disponivelAgora",analyticsPaymentType:"credit_card",availableNow:!0,logos:[{src:"assets/images/cartao-credito/american-express.png"},{src:"assets/images/cartao-credito/visa.png"},{src:"assets/images/cartao-credito/mastercard.png"}]},{id:"debit-card",labelKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.metodos.cartaoDebito",badgeKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.badges.disponivelAgora",analyticsPaymentType:"debit_card",availableNow:!0,logos:[{src:"assets/images/cartao-credito/american-express.png"},{src:"assets/images/cartao-credito/visa.png"},{src:"assets/images/cartao-credito/mastercard.png"}]},{id:"mercado-pago",labelKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.metodos.mercadoPago",badgeKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.badges.emAvaliacao",analyticsPaymentType:"mercado_pago",logos:[{src:"assets/images/cartao-credito/mercado-pago.png"}]},{id:"oxxo-pay",labelKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.metodos.oxxoPay",badgeKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.badges.emAvaliacao",analyticsPaymentType:"oxxo_pay",logos:[{src:"assets/images/fakedoor/oxxo.svg"}]},{id:"paypal",labelKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.metodos.payPal",badgeKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.badges.emAvaliacao",analyticsPaymentType:"paypal",logos:[{src:"assets/images/fakedoor/Vector.svg"}]},{id:"spei",labelKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.metodos.spei",badgeKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.badges.emAvaliacao",analyticsPaymentType:"spei",logos:[{src:"assets/images/fakedoor/spei.svg"}]},{id:"apple-pay",labelKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.metodos.applePay",badgeKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.badges.emAvaliacao",analyticsPaymentType:"apple_pay",logos:[{src:"assets/images/fakedoor/ApplePay.svg"}]},{id:"google-pay",labelKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.metodos.googlePay",badgeKey:"reserva.passo4.modalMetodosPagamentoFakeDoor.badges.emAvaliacao",analyticsPaymentType:"google_pay",logos:[{src:"assets/images/fakedoor/GooglePay.svg"}]}],this.selectedMethodId=null,this.isTransitionLoading=!1,this.isSelectionLocked=!1,this.hasSelectedAnyMethod=!1,this.shouldShowWarning=!1,this.isRedirectingToPayment=!1,this.transitionTimeoutId=null}get selectedMethodLabelKey(){return this.methods.find(e=>e.id===this.selectedMethodId)?.labelKey??null}get displayedMethods(){return this.methods}get confirmButtonLabelKey(){return this.isSelectionLocked?this.selectedMethodId===this.debitCardMethodId?"reserva.passo4.modalMetodosPagamentoFakeDoor.btnConfirmarCartaoDebito":"reserva.passo4.modalMetodosPagamentoFakeDoor.btnConfirmarCartaoCredito":"reserva.passo4.modalMetodosPagamentoFakeDoor.btnConfirmar"}fecharModal(){this.isTransitionLoading||this.isRedirectingToPayment||this.matDialogRef.close(!1)}selecionarMetodo(e){if(!(this.isTransitionLoading||this.isRedirectingToPayment||!this.methods.find(o=>o.id===e))){if(this.isSelectionLocked){if(!this.warningFreeMethodIds.has(e))return;this.selectedMethodId=e,this.changeDetectorRef.markForCheck();return}this.hasSelectedAnyMethod=!0,this.selectedMethodId=e,this.shouldShowWarning=!1,this.changeDetectorRef.markForCheck()}}confirmarSelecao(){if(!this.selectedMethodId||this.isTransitionLoading||this.isRedirectingToPayment)return;let e=this.methods.find(m=>m.id===this.selectedMethodId);if(!e)return;if(!this.warningFreeMethodIds.has(this.selectedMethodId)){this.trackPaymentIntent(e.analyticsPaymentType),this.isTransitionLoading=!0,this.shouldShowWarning=!1,this.changeDetectorRef.markForCheck(),this.transitionTimeoutId=setTimeout(()=>{this.shouldShowWarning=!0,this.selectedMethodId=this.creditCardMethodId,this.isSelectionLocked=!0,this.isTransitionLoading=!1,this.changeDetectorRef.markForCheck()},this.warningTransitionDelayMs);return}this.trackPaymentIntent(e.analyticsPaymentType),this.isRedirectingToPayment=!0,this.changeDetectorRef.markForCheck();let a=()=>{this.matDialogRef.close({confirmed:!0,selectedMethodId:this.selectedMethodId})},o=this.data?.onConfirmarPagamento;if(typeof o=="function"){o(a);return}a()}isSelected(e){return this.selectedMethodId===e}isOptionDisabled(e){return this.isSelectionLocked&&!this.warningFreeMethodIds.has(e)}shouldShowBadge(){return this.shouldShowWarning}shouldHighlightCreditCardLabel(e){return this.isSelectionLocked&&this.shouldShowWarning&&this.selectedMethodId===this.creditCardMethodId&&e===this.creditCardMethodId}trackByMethodId(e,a){return`${e}-${a.id}`}trackPaymentIntent(e){let a=this.buildProductPayload();this.googleAnalyticsService.preencherDataLayer({event:"add_payment_info",ecommerce:{currencyCode:this.getCurrencyCode(),payment_type:e,items:[a]}})}buildProductPayload(){let e=this.data?.reserva,a=e?.grupoSelecionado?.codigoLocaliza??"N/A",o=e?.grupoSelecionado?.nome??"N/A";return{id:a,name:this.getNomeCarroPadrao(e?.grupoSelecionado),category:`${a} - ${o}`,price:e?.ofertaSelecionada?.tarifa?.valorDiariaSemCombo??0,variant:e?.ofertaSelecionada?.descricao??"N/A",quantity:e?.ofertaSelecionada?.quantidadeDiarias??1}}getNomeCarroPadrao(e){let a=e?.veiculos?.find(m=>m?.padraoGrupo),o=e?.veiculos?.length===1?"":" ou similar";return a?.nome?`${a.nome}${o}`:!a&&e?.veiculos?.length>0?`${e.veiculos[0]?.nome??e.veiculos[0]??"N/A"}${o}`:"N/A"}getCurrencyCode(){let e=this.data?.reserva?.ofertaSelecionada?.tarifa?.moeda;return e==="R$"?"BRL":e==="$"||e==="MX$"?"MXN":e??"MXN"}ngOnDestroy(){this.transitionTimeoutId&&(clearTimeout(this.transitionTimeoutId),this.transitionTimeoutId=null)}};r.\u0275fac=function(a){return new(a||r)(v(Xe),v(Q),v(Y),v(ne))},r.\u0275cmp=M({type:r,selectors:[["app-fake-door-metodos-pagamento-mexico"]],decls:24,vars:19,consts:[[3,"showModalCloseButton"],[1,"modal-metodos-mx"],[1,"modal-metodos-mx__header"],[1,"modal-metodos-mx__header-top"],[1,"modal-metodos-mx__title"],["mat-button","","mat-dialog-close","","data-testid","btn-close-metodos","aria-label","close",1,"modal-metodos-mx__close",3,"click","disabled"],[1,"modal-metodos-mx__description"],["class","modal-metodos-mx__alert","color","warning","data-testid","metodos-alerta",3,"showIcon","showCloseButton",4,"ngIf"],[1,"modal-metodos-mx__content"],[1,"modal-metodos-mx__grid"],["type","button","class","modal-metodos-mx__option",3,"modal-metodos-mx__option--selected","modal-metodos-mx__option--disabled","disabled","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"modal-metodos-mx__actions"],["type","button","ldsButton","","size","lg","data-testid","btn-confirmar-metodo",1,"modal-metodos-mx__primary",3,"click","disabled"],[4,"ngIf"],["class","modal-metodos-mx__primary-spinner","data-testid","btn-confirmar-metodo-spinner","diameter","20",4,"ngIf"],["type","button","ldsButton","","variant","basic","fullWidth","","data-testid","btn-voltar-dados",1,"modal-metodos-mx__secondary",3,"click","disabled"],["class","modal-metodos-mx__loading","data-testid","metodo-loading","aria-live","polite","aria-busy","true",4,"ngIf"],["color","warning","data-testid","metodos-alerta",1,"modal-metodos-mx__alert",3,"showIcon","showCloseButton"],["slotIcon","",1,"modal-metodos-mx__alert-icon"],["slotContent","",1,"modal-metodos-mx__alert-content"],["type","button",1,"modal-metodos-mx__option",3,"click","disabled"],[1,"modal-metodos-mx__option-main"],[1,"modal-metodos-mx__option-left"],[1,"modal-metodos-mx__radio"],[1,"modal-metodos-mx__option-label"],["class","modal-metodos-mx__option-brands",4,"ngIf"],["class","modal-metodos-mx__badge",3,"modal-metodos-mx__badge--available",4,"ngIf"],[1,"modal-metodos-mx__option-brands"],["class","modal-metodos-mx__option-logo","loading","lazy",3,"src","alt",4,"ngFor","ngForOf"],["loading","lazy",1,"modal-metodos-mx__option-logo",3,"src","alt"],[1,"modal-metodos-mx__badge"],["data-testid","btn-confirmar-metodo-spinner","diameter","20",1,"modal-metodos-mx__primary-spinner"],["data-testid","metodo-loading","aria-live","polite","aria-busy","true",1,"modal-metodos-mx__loading"],["diameter","42"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"div",1)(2,"header",2)(3,"div",3)(4,"h3",4),p(5),c(6,"translate"),l(),s(7,"button",5),b("click",function(){return o.fecharModal()}),h(8,"lds-icon-close"),l()(),s(9,"p",6),p(10),c(11,"translate"),l(),C(12,cg,6,5,"lds-alert",7),l(),s(13,"section",8)(14,"div",9),C(15,ug,9,15,"button",10),l()(),s(16,"footer",11)(17,"button",12),b("click",function(){return o.confirmarSelecao()}),C(18,fg,3,3,"ng-container",13)(19,gg,1,0,"mat-spinner",14),l(),s(20,"button",15),b("
2click",function(){return o.fecharModal()}),p(21),c(22,"translate"),l()(),C(23,_g,2,0,"div",16),l()()),a&2&&(d("showModalCloseButton",!1),n(5),f(" ",u(6,13,"reserva.passo4.modalMetodosPagamentoFakeDoor.titulo")," "),n(2),d("disabled",o.isTransitionLoading||o.isRedirectingToPayment),n(3),f(" ",u(11,15,"reserva.passo4.modalMetodosPagamentoFakeDoor.subtitulo")," "),n(2),d("ngIf",o.shouldShowWarning),n(3),d("ngForOf",o.displayedMethods)("ngForTrackBy",o.trackByMethodId),n(2),d("disabled",!o.selectedMethodId||o.isTransitionLoading||o.isRedirectingToPayment),n(),d("ngIf",!o.isRedirectingToPayment),n(),d("ngIf",o.isRedirectingToPayment),n(),d("disabled",o.isTransitionLoading||o.isRedirectingToPayment),n(),f(" ",u(22,17,"reserva.passo4.modalMetodosPagamentoFakeDoor.btnVoltar")," "),n(2),d("ngIf",o.isTransitionLoading))},dependencies:[U,ae,N,se,ze,Ki,mt,pt,A,Ke,Wa,oi,Za,T],styles:['[_nghost-%COMP%] .modal{padding:0;width:min(720px,100vw - 20px);max-width:calc(100vw - 20px);height:100%;max-height:90vh;max-height:90dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;margin-inline:auto;border-radius:8px}[_nghost-%COMP%] .modal-metodos-mx, [_nghost-%COMP%] .modal-metodos-mx *{font-family:var(--lds-font-brand-family)}.modal-metodos-mx[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:24px;box-sizing:border-box;position:relative}.modal-metodos-mx__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.modal-metodos-mx__header-top[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.modal-metodos-mx__title[_ngcontent-%COMP%]{margin:0;color:var(--lds-color-accent-primary-default);font-size:24px;line-height:32px;font-weight:700}.modal-metodos-mx__description[_ngcontent-%COMP%]{margin:0;color:var(--lds-color-neutral-text-default);font-size:16px;line-height:24px}.modal-metodos-mx__close[_ngcontent-%COMP%]{align-items:center;background:transparent;border:none;color:var(--lds-color-neutral-text-low);cursor:pointer;display:inline-flex;justify-content:center;margin:0;padding:0}.modal-metodos-mx__alert[_ngcontent-%COMP%]{margin-top:2px}.modal-metodos-mx__alert-content[_ngcontent-%COMP%]{color:inherit;font-size:16px;font-weight:500;line-height:24px;margin:0}.modal-metodos-mx__alert-icon[_ngcontent-%COMP%]{color:inherit}.modal-metodos-mx__content[_ngcontent-%COMP%]{margin-bottom:16px}.modal-metodos-mx__grid[_ngcontent-%COMP%]{display:grid;gap:10px;grid-template-columns:1fr;align-content:start;align-items:start}.modal-metodos-mx__option[_ngcontent-%COMP%]{align-items:flex-start;background:var(--lds-color-accent-primary-contrast-auto);border:1px solid var(--lds-color-neutral-border-default);border-radius:4px;cursor:pointer;display:flex;flex-direction:column;gap:4px;min-height:56px;padding:9px 10px;text-align:left;transition:border-color .2s ease,background-color .2s ease,color .2s ease}.modal-metodos-mx__option--selected[_ngcontent-%COMP%]{background:var(--lds-color-accent-primary-contrast-high);border-color:var(--lds-color-accent-primary-contrast-default);color:var(--lds-color-accent-primary-emphasis-high)}.modal-metodos-mx__option--disabled[_ngcontent-%COMP%]{background:#f2f4f6;color:var(--lds-color-neutral-icon-default);cursor:not-allowed;opacity:.9}.modal-metodos-mx__option-main[_ngcontent-%COMP%]{align-items:center;display:grid;gap:10px;grid-template-columns:minmax(0,1fr) auto;width:100%}.modal-metodos-mx__option-left[_ngcontent-%COMP%]{align-items:center;display:flex;gap:10px;min-width:0}.modal-metodos-mx__radio[_ngcontent-%COMP%]{border:1px solid #a8b1ba;border-radius:50%;flex:0 0 14px;height:14px;position:relative;width:14px}.modal-metodos-mx__radio--selected[_ngcontent-%COMP%]{border-color:var(--lds-color-accent-primary-contrast-default)}.modal-metodos-mx__radio--selected[_ngcontent-%COMP%]:after{background:#0b8f49;border-radius:50%;content:"";height:8px;left:2px;position:absolute;top:2px;width:8px}.modal-metodos-mx__option-label[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-default);font-size:14px;font-weight:600;line-height:18px;overflow-wrap:break-word;white-space:nowrap}.modal-metodos-mx__option-brands[_ngcontent-%COMP%]{align-items:center;display:inline-flex;flex-shrink:0;gap:6px;justify-content:flex-end;min-height:20px;width:116px}.modal-metodos-mx__option-logo[_ngcontent-%COMP%]{display:block;height:18px;max-width:56px;object-fit:contain;object-position:right center}.modal-metodos-mx__option-label--credit-highlight[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-emphasis-high)}.modal-metodos-mx__badge[_ngcontent-%COMP%]{background:#6e6e6e;border-radius:999px;color:var(--lds-color-accent-primary-contrast-auto);font-size:10px;font-weight:700;line-height:14px;padding:2px 8px;text-transform:none}.modal-metodos-mx__badge--available[_ngcontent-%COMP%]{background:var(--lds-color-accent-secondary-default);color:var(--lds-color-accent-primary-emphasis-high)}
2.modal-metodos-mx__option--disabled[_ngcontent-%COMP%] .modal-metodos-mx__option-logo[_ngcontent-%COMP%]{filter:grayscale(1);opacity:.7}.modal-metodos-mx__loading[_ngcontent-%COMP%]{align-items:center;background:#ffffffc2;border-radius:8px;display:flex;inset:0;justify-content:center;position:absolute;z-index:20}.modal-metodos-mx__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.modal-metodos-mx__primary[_ngcontent-%COMP%], .modal-metodos-mx__secondary[_ngcontent-%COMP%]{width:100%;font-size:16px}.modal-metodos-mx__primary[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:relative}.modal-metodos-mx__primary-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;margin:0;transform:translate(-50%,-50%)}.modal-metodos-mx__primary-spinner[_ngcontent-%COMP%] .mat-mdc-progress-spinner{display:block}.modal-metodos-mx__primary-spinner[_ngcontent-%COMP%] circle{stroke:currentColor}@media(min-width:768px){.modal-metodos-mx__grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}'],changeDetection:0});let i=r;return i})();var Ge=(function(i){return i.BALCAO="balcao",i.FAST="fast",i})(Ge||{});var Nn=(()=>{let r=class r{get loadingObservable(){return this.loading$.asObservable()}get errorObservable(){return this.error$.asObservable()}constructor(e,a,o,m,_,x,O,R,K,me,ke){this.router=e,this.bundleService=a,this.reservaService=o,this.translateService=m,this.fluxoReservaStore=_,this.recaptchaV3Service=x,this.protecaoDadosService=O,this.navigationFlowService=R,this.progressSpinnerService=K,this.protecaoDadosManagerService=me,this.locationHelperService=ke,this.cliente=new Ko,this.loading$=new ho(!1),this.error$=new ho({error:!1})}bookingProcess(e,a,o,m,_){this.loading$.next(!0);let x=this.getBookingRequest(e,a,o,m);a?.ofertaSelecionada?.grupoVeiculo?.tipoRetirada&&(x=$($({}
2,x),this.getSelectedPickUpType(a))),this.setClientData(e),this.recaptchaV3Service.execute("criarReserva").pipe(w(1)).subscribe(O=>{this.reservaService.criarReserva(x,O).pipe(He(()=>this.progressSpinnerService.spin$.next(!1))).subscribe({next:R=>this.successInBookingProcess(R,x,e,_),error:R=>this.errorInBookingProcess(R,e)})})}successInBookingProcess(e,a,o,m){this.reservaService.setReservaChangeData(null),this.loading$.next(!1),this.updateStore(a,e),this.saveTerms(o,m),this.navigationFlowService.destroy$.next(),this.bundleService.setSawUpsellModal("false"),this.translateService.get("url.reserva.confirmacao").pipe(w(1)).subscribe(_=>{this.router.navigate([_])})}updateStore(e,a){this.fluxoReservaStore.actions.emit({type:ie.ATUALIZAR,payload:{reservaRealizadaNr:a,cliente:{clientePessoaFisicaId:e.usuarioReserva.codigoUsuarioReserva,codigoNacionalidade:e.usuarioReserva.nacionalidade,tipoDocumento:e.usuarioReserva.tipoDocumento,numeroDocumento:e.usuarioReserva.documento,nome:e.usuarioReserva.nomeUsuarioReserva,email:e.usuarioReserva.contatosReserva[0].emailReserva,celular:{tipoTelefone:e.usuarioReserva.contatosReserva[0].telefone.tipoTelefone,ddi:e.usuarioReserva.contatosReserva[0].telefone.ddi,ddd:e.usuarioReserva.contatosReserva[0].telefone.ddd,numero:e.usuarioReserva.contatosReserva[0].telefone.numeroTelefone},descricaoCliente:e.usuarioReserva.descricaoDocumento}}})}bookingChangeProcess(e,a,o,m,_){this.loading$.next(!0);let x=this.getBookingRequest(e,a,o,m);a?.ofertaSelecionada?.grupoVeiculo?.tipoRetirada&&(x=$($({}
2,x),this.getSelectedPickUpType(a))),this.reservaService.alterarReserva(a.localizador,x).pipe(He(()=>this.progressSpinnerService.spin$.next(!1))).subscribe({next:O=>this.changeReservationSuccess(e,O,_),error:O=>{this.loading$.next(!1),this.error$.next({error:!0,message:O?.error?.mensagensUsuario||""})}})}changeReservationSuccess(e,a,o){this.reservaService.setReservaChangeData(null),this.loading$.next(!1),this.fluxoReservaStore.actions.emit({type:ie.ATUALIZAR,payload:{reservaRealizadaNr:a,alteracaoReserva:!0}}),this.saveTerms(e,o),this.translateService.get("url.reserva.confirmacao").pipe(w(1)).subscribe(m=>{this.router.navigate([m])})}getSelectedPickUpType(e){return{tipoRetirada:e?.tipoRetiradaSelecionado===Ge.FAST?ee.FAST:ee.BALCAO}}bookingPrepaidProcess(e,a,o,m,_){this.loading$.next(!0);let x=this.getBookingRequest(e,a,o,m);this.setClientData(e),this.recaptchaV3Service.execute("criarReserva").pipe(w(1)).subscribe(O=>{this.reservaService.criarReserva(x,O).subscribe({next:R=>{this.successInPrepaidBookingProcess(x,R,a),_?.()},error:R=>{this.errorInBookingProcess(R,e),_?.()}})})}successInPrepaidBookingProcess(e,a,o){this.loading$.next(!1),this.updateStorePrepaid(e,a,o),this.navigationFlowService.destroy$.next(),setTimeout(()=>{this.translateService.get("url.reserva.passo5").pipe(w(1)).subscribe(m=>{this.router.navigate([m])})},0)}updateStorePrepaid(e,a,o){this.fluxoReservaStore.actions.emit({type:ie.ATUALIZAR,payload:{reservaRealizadaNr:a,cliente:{clientePessoaFisicaId:e.usuarioReserva.codigoUsuarioReserva,codigoNacionalidade:e.usuarioReserva.nacionalidade,tipoDocumento:e.usuarioReserva.tipoDocumento,numeroDocumento:e.usuarioReserva.documento,nome:e.usuarioReserva.nomeUsuarioReserva,email:e.usuarioReserva.contatosReserva[0].emailReserva,celular:{tipoTelefone:e.usuarioReserva.contatosReserva[0].telefone.tipoTelefone,ddi:e.usuarioReserva.contatosReserva[0].telefone.ddi,ddd:e.usuarioReserva.contatosReserva[0].telefone.ddd,numero:e.usuarioReserva.contatosReserva[0].telefone.numeroTelefone},endereco:{pais:""},descricaoCliente:e.usuarioReserva.descricaoDocumento},isPrePagamentoMexico:this.isPrepaid(o)}})}errorInBookingProcess(e,a){if(this.loading$.next(!1),e?.error?.codigo===403){this.setClientData(a),this.fluxoReservaStore.actions.emit({type:ie.ATUALIZAR,payload:{cliente:this.cliente}}),this.translateService.get("url.reserva.reservaNegada").pipe(w(1)).subscribe(o=>this.router.navigate([o]));return}this.error$.next({error:!0,message:e?.error?.mensagensUsuario||""})}setClientData(e){this.cliente.nome=e.get("nome")?.value,this.cliente.email=e.get("email")?.value}saveTerms(e,a){if(!a)return;let o=e.get("email")?.value,m=this.protecaoDadosManagerService.construitInformacaoTermoAceite(o);m&&this.protecaoDadosService.salvarTermoAceite(m).pipe(w(1)).subscribe()}getBookingRequest(e,a,o,m){let _=a?.ofertaSelecionada,x=!!_?.noShow?.cobrar;return $({identificadorOferta:_?.ofertaId,identificadorCotacao:_?.cotacaoId,optInPromotions:!!e.get("optInPromotions")?.value,usuarioReserva:this.getUserData(e,o,m),dadosParceiro:a?.parceiro,dadosComplementares:this.getAdditionalData(e,a?.codigoPaisAgenciaRetirada)},this.getNoShowData(x))}getUserData(e,a,o){let m=e.get("nacionalidade")?.value?.codigoPais,_=m!==le,x=e.get("nome")?.value?.trim(),O=e.get("tipoDocumento")?.value?.toString(),R=this.getDocumentNumber(e);return{descricaoDocumento:this.getDocumentDescription(e,o),codigoUsuarioReserva:a,nomeUsuarioReserva:x,tipoDocumento:O,documento:R,nacionalidade:m,estrangeiro:_,contatosReserva:[this.getContact(e)]}}getDocumentNumber(e){return e.get("numeroDocumento")?.value?.trim()?.replaceAll(/[^a-zA-Z0-9*]+/g,"")||""}getAdditionalData(e,a){return X($({},e.get("optInPromotions")?.value&&this.coordinates?this.coordinates:{}),{ciaAerea:e.get("ciaAerea")?.value,numeroVoo:e.get("numeroVoo")?.value,codigoPais:a})}getNoShowData(e){return e?{pagamento:{cartaoCredito:{idCartao:null}},noShow:!0}:{}}getContact(e){return{emailReserva:e.get("email")?.value,enviarEmail:!0,enviarSms:!1,contatoPrincipal:!0,telefone:this.getTelephoneData(e)}}getTelephoneData(e){let a=e.get("ddi")?.value?.phone?.trim(),o="",m=e.get("telefone")?.value;return m=m?.replaceAll(/[^0-9*]+/g,"")??"",a===Lt&&(o=m.substring(0,2),m=m.substring(2)),{tipoTelefone:1,ddi:a,ddd:o?.trim(),numeroTelefone:m}}getDocumentDescription(e,a){let o=e.get("tipoDocumento")?.value?.toString();return a.find(_=>_.codigoTipoDocumento.toString()===o)?.descricaoDocumento}isPrepaid(e){let a=e?.ofertaSelecionada?.meioPagamento||[];return a?.length?a.some(o=>o.selecionado&&o.tipo==="Link"):!1}buscarLocalizacao(){this.locationHelperService.obterLocalizacaoAsync().then(e=>{e!==null&&(this.coordinates=e)})}};r.\u0275fac=function(a){return new(a||r)(ye(xe),ye(Mi),ye(Ut),ye(G),ye(fe),ye(Wi),ye(jo),ye(Yt),ye(gt),ye(qo),ye(vl))},r.\u0275prov=$e({token:r,factory:r.\u0275fac});let i=r;return i})();function bg(i,r){i&1&&(s(0,"span",33),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.name")," "))}function xg(i,r){i&1&&(s(0,"span",33),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.required")," "))}function Pg(i,r){i&1&&(s(0,"span",33),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.email")," "))}function Sg(i,r){i&1&&(s(0,"span",33),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.email")," "))}function yg(i,r){i&1&&(s(0,"span",33),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.emailConfirm")," "))}function Mg(i,r){i&1&&(s(0,"span"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.ddi")," "))}function Dg(i,r){i&1&&(s(0,"span"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.number")," "))}function wg(i,r){if(i&1&&(s(0,"div",34),h(1,"lds-icon-warning-filled"),s(2,"div",35),C(3,Mg,3,3,"span",32)(4,Dg,3,3,"span",32),l()()),i&2){let t=g();n(3),d("ngIf",t.ddiHasError),n(),d("ngIf",t.telefoneHasError)}}function Og(i,r){i&1&&(s(0,"span",33),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.required")," "))}function kg(i,r){i&1&&(s(0,"span",33),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.number")," "))}function Ig(i,r){if(i&1){let t=k();s(0,"button",36),b("click",function(){P(t);let a=g();return S(a.help())}
2),h(1,"lds-icon-help"),l()}}function Tg(i,r){if(i&1){let t=k();s(0,"button",37),b("click",function(){P(t);let a=g();return S(a.clearDocument())}),h(1,"lds-icon-close"),l()}}function Ag(i,r){if(i&1&&(s(0,"div",38),h(1,"app-form-airline",39)(2,"app-form-text-field",40),c(3,"translate"),l()),i&2){let t=g();n(),d("airlines",t.airlines)("control",t.ciaAerea)("submitted",t.submitted),n(),d("label",u(3,5,"formPersonalData.form.flightNumberLabel"))("submitted",t.submitted)}}function Eg(i,r){i&1&&h(0,"app-secure-online-payment-information",41)}function Rg(i,r){if(i&1&&(s(0,"div",42),h(1,"app-toast-erro",43),l()),i&2){let t=g();n(),d("mensagensErro",t.errorMessage)}}function Bg(i,r){if(i&1&&(V(0),p(1),c(2,"translate"),z()),i&2){let t=g();n(),f(" ",u(2,1,t.isPrepaid?"reserva.passo4.pagar":"reserva.passo4.reserve")," ")}}function Fg(i,r){i&1&&h(0,"mat-spinner")}var td=(()=>{let r=class r{get nome(){return this.form.get("nome")}get nacionalidade(){return this.form.get("nacionalidade")}get email(){return this.form.get("email")}get confirmarEmail(){return this.form.get("confirmarEmail")}get ddi(){return this.form.get("ddi")}get ddiHasError(){return this.ddi.invalid&&this.ddi.touched||this.ddi.invalid&&this.submitted}get telefone(){return this.form.get("telefone")}get telefoneHasError(){return this.telefone?.invalid&&this.telefone?.touched||this.telefone?.invalid&&this.submitted}get tipoDocumento(){return this.form.get("tipoDocumento")}get numeroDocumento(){return this.form.get("numeroDocumento")}get flight(){return this.form.get("flight")}get ciaAerea(){return this.form.get("ciaAerea")}get numeroVoo(){return this.form.get("numeroVoo")}get optinTerms(){return this.form.get("optinTerms")}get optinPromotions(){return this.form.get("optInPromotions")}get optinTermsHasError(){return this.optinTerms.invalid&&this.optinTerms.touched||this.optinTerms.invalid&&this.submitted}get isPrepaid(){let e=this.booking?.ofertaSelecionada?.meioPagamento||[];return e?.length?e.some(a=>a.selecionado&&a.tipo==="Link"):!1}constructor(e,a,o,m,_,x,O,R,K,me,ke,qe,at,Pt,Ct,Ht){this.dialog=e,this.authService=a,this.clienteService=o,this.reservaService=m,this.activatedRoute=_,this.documentService=x,this.translateService=O,this.formMexicoService=R,this.changeDetectorRef=K,this.fluxoReservaStore=me,this.progressSpinnerService=ke,this.internacionalizacaoService=qe,this.platformId=at,this.genericDialogMxService=Pt,this.webviewService=Ct,this.featureFlagService=Ht,this.fakeDoorPaymentMethodsFlag="fake_door_mx",this.isDesktop=!1,this.isLoading=!1,this.toastError=!1,this.errorMessage=null,this.form=new ko({nome:new _e(null,[j.minLength(3),j.required,Ae.campoNomeSobrenomeValidator]),nacionalidade:new _e(null,[j.required,Ae.paisValidator]),email:new _e(null,[j.required,j.email,Ae.emailValidator]),confirmarEmail:new _e(null,[j.required,j.email,Ae.confirmEmailValidator("email")]),ddi:new _e(null,[j.required]),telefone:new _e(null,[j.required]),tipoDocumento:new _e(null,[j.required]),numeroDocumento:new _e(null,[j.required]),flight:new _e(!1,[]),ciaAerea:new _e(null,[]),numeroVoo:new _e(null,[]),optinTerms:new _e(!1,[j.requiredTrue]),optInPromotions:new _e(!1,[])}),this.clientId="",this.emailFirstTouched=!1,this.emailConfirmFirstTouched=!1,this.ddiChanged=0,this.ddis=[],this.telephoneFirstTouched=!1,this.isCurp=!1,this.documents=[],this.airlines=[],this.airlinesLoaded=!1,this.submitted=!1,this.toStep05=!1,this.haveTermsConfigured=!1,this.nationalities=[],this.filledData=!1,this.changeEmail$=new Ze,this.onDestroy$=new Ze,this.isValid=()=>this.form.valid,this.isInvalid=()=>this.form.invalid}ngOnInit(){this.form.disable(),this.user=this.authService.obterUsuarioLogado(),this.listenObservableService(),this.setHaveTermsConfigured(),this.ddiObserver(),this.documentTypeObserver(),this.nationalityObserver(),this.flightObserver(),this.optinObserver(),this.loadDdis(),this.loadNationalities(),this.emailChangeNotification(),this.setFlightByAgency()}normalizeEmail(e){return typeof e!="string"?e??"":e.replace(/\s+/g,"").toLocaleLowerCase()}listenObservableService(){this.formMexicoService.loadingObservable.pipe(Se(this.onDestroy$)).subscribe(e=>{this.isLoading=e,this.changeDetectorRef.markForCheck()}),this.formMexicoService.errorObservable.pipe(Se(this.onDestroy$)).subscribe(e=>{if(this.webviewService.isWebView()&&e?.error){this.genericDialogMxService.open({titleKey:this.translateService.instant("webView.erro.tituloGenerico"),bodyKeys:[e?.message],primaryButtonKey:this.translateService.instant("webView.confirmacao.voltar"),showIconAlarm:!1,disableClose:!0,secondaryButton:!1,onPrimaryClick:()=>Bi()});return}this.toastError=!!e?.error,this.toastError&&(this.errorMessage=e?.message||null),this.changeDetectorRef.markForCheck()})}setHaveTermsConfigured(){this.activatedRoute.data.pipe(w(1)).subscribe(e=>{let a=e.protecaoDados;this.haveTermsConfigured=a?.temTermosConfigurado})}emailChangeNotification(){this.changeEmail$.pipe(Co(300),Se(this.onDestroy$)).subscribe(()=>{this.confirmarEmail.updateValueAndValidity(),this.changeDetectorRef.markForCheck()}),this.email.valueChanges.pipe(Se(this.onDestroy$)).subscribe(()=>this.changeEmail$.next())}sideEffectNationality(){let e=this.nacionalidade.value;if(this.setDocumentByNationality(e),!e||this.nacionalidade.disabled){this.changeDetectorRef.detectChanges();return}if(this.tipoDocumento.patchValue(this.documents[0].codigoTipoDocumento),!this.telefone.value){let a=Number(e.codigoPais).toString();this.setDdi(a)}this.changeDetectorRef.detectChanges()}sideEffectDdi(){let e=this.ddi.value,a=e?.phone;if(!a||this.filledData&&this.ddiChanged<=2){this.ddiChanged+=1;return}this.filledData&&this.telefone.markAsTouched(),this.setTelephoneMask(e.phone),this.setTelephonePlaceholder(e.phone),this.setTelephoneValidators(a)}sideEffectDocumentType(){let e=this.tipoDocumento.value;if(this.tipoDocumento.disabled||this.filledData){this.documentMask="";return}e!==this.documentTypeCode&&this.numeroDocumento.reset(),this.documentTypeCode=e,this.isCurp=this.documentTypeCode===Qe.Curp,this.setDocumentMask(e),this.setDocumentPlaceholder(e),this.setDocumentValidators(e),this.changeDetectorRef.markForCheck()}sideEffectFlight(){!this.flight.value||this.airlinesLoaded||this.loadAirlines()}nationalityObserver(){this.nacionalidade.valueChanges.pipe(da(()=>this.sideEffectNationality()),Se(this.onDestroy$)).subscribe()}ddiObserver(){this.ddi.valueChanges.pipe(da(()=>this.sideEffectDdi()),Se(this.onDestroy$)).subscribe()}documentTypeObserver(){this.tipoDocumento.valueChanges.pipe(da(()=>this.sideEffectDocumentType()),Se(this.onDestroy$)).subscribe()}flightObserver(){this.flight.valueChanges.pipe(da(()=>this.sideEffectFlight()),Se(this.onDestroy$)).subscribe()}setFlightByAgency(){let e=this.featureFlagService.valueFlag("agencias_flight_switch_ativo_mx");if(!e)return;let a=e.split(",").map(m=>m.trim()),o=this.booking?.codigoAgenciaRetirada;o&&a.includes(o)&&this.flight.setValue(!0)}optinObserver(){this.optinPromotions.valueChanges.pipe(Se(this.onDestroy$)).subscribe(e=>{e&&this.formMexicoService.buscarLocalizacao()})}setTelephoneMask(e){if(e===Lt){this.telephoneMask="(00) 00000-0000";return}this.telephoneMask="00000000000000000"}setTelephonePlaceholder(e){if(e===Lt){this.telephonePlaceholder="(00) 00000-0000";return}this.telephonePlaceholder="00000000000"}setTelephoneValidators(e){let o=e===Lt?Ae.telephoneBrazilValidator:Ae.celularInternacionalValidator;this.telefone.setValidators([j.required,o]),this.telefone.updateValueAndValidity()}setDocumentMask(e){if(this.isColombiaCcDocument(e)){this.documentMask="00000000000000000000";return}let a={[Qe.Cpf]:"000.000.000-00",[Qe.Curp]:"SSSS000000SSSSSSA0"};this.documentMask=a[e]||null}setDocumentPlaceholder(e){if(this.isColombiaCcDocument(e)){this.documentPlaceholder="00000000";return}let a={[Qe.Cpf]:"000.000.000-00",[Qe.Curp]:"AAAA000000AAAAAA00"};this.documentPlaceholder=a[e]||"00000000"}setDocumentValidators(e){let a={[Qe.Cpf]:[j.required,Ae.cpfValidator],[Qe.Curp]:[j.required,Ae.curpValidator]},o=[j.required,j.maxLength(20)];if(this.isColombiaCcDocument(e)){let _=[j.required,j.maxLength(20),j.pattern(/^\d+$/)];this.numeroDocumento.setValidators(_);return}let m=a[e]||o;this.numeroDocumento.setValidators(m)}isColombiaCcDocument(e){return this.nacionalidade.value?.codigoPais!==Fe?!1:this.documents.find(m=>Number(m.codigoTipoDocumento)===Number(e))?.descricaoDocumento?.trim()?.toUpperCase()==="CC"}setDocumentByNationality(e){if(e){if(!e?.documentos?.length){this.documents=[];return}this.documents=this.documentService.getFilteredDocumentsWhenAuthenticated(e.documentos,e.codigoPais)}}loadAirlines(){this.reservaService.getCompanhiasAereas().pipe(Se(this.onDestroy$)).subscribe({next:e=>{this.airlines=e,this.airlinesLoaded=!0},error:()=>this.airlinesLoaded=!1})}openModalTerms(){this.dialog.open(Ji,{maxWidth:this.isDesktop?"60vw":"100%",maxHeight:this.isDesktop?"80vh":"100%",panelClass:"matDialog100Percent",data:this.booking?.codigoPaisAgenciaRetirada})}submit(){if(!(this.form.disabled||this.isLoading)&&(this.preencherDataLayer(),this.submitted=!0,!this.form.invali
2d)){if(this.isPrepaid){this.openConfirmationModal();return}this.bookingProcess()}}preencherDataLayer(){Be(this.platformId)&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"__MensuraEventos",category:"Dados Pessoais",action:"Reservar",label:"Botao Reservar"}))}bookingProcess(){if(this.progressSpinnerService.spin$.next(!0),this.toStep05=!0,!this.booking?.alteracaoReserva){this.formMexicoService.bookingProcess(this.form,this.booking,this.clientId,this.documents,this.haveTermsConfigured);return}this.formMexicoService.bookingChangeProcess(this.form,this.booking,this.clientId,this.documents,this.haveTermsConfigured)}openConfirmationModal(){this.dialog.open(Vn,{width:this.isDesktop?"525px":"100%",maxWidth:this.isDesktop?"525px":"100%",maxHeight:this.isDesktop?"500px":"100%",panelClass:"matDialog100Percent",data:this.getUserBooking()}).afterClosed().subscribe(e=>{e&&this.handlePrepaidConfirmation()})}handlePrepaidConfirmation(){if(this.shouldOpenPaymentMethodsFakeDoor()){this.openPaymentMethodsFakeDoorModal();return}this.formMexicoService.bookingPrepaidProcess(this.form,this.booking,this.clientId,this.documents)}shouldOpenPaymentMethodsFakeDoor(){return this.featureFlagService.hasFlags(this.fakeDoorPaymentMethodsFlag)}openPaymentMethodsFakeDoorModal(){this.dialog.open(zn,{width:this.isDesktop?"720px":"100%",maxWidth:this.isDesktop?"720px":"100%",maxHeight:"90vh",position:this.isDesktop?void 0:{top:"5vh"},data:{dadosCriarReserva:this.getUserBooking()?.dadosCriarReserva,reserva:this.booking,onConfirmarPagamento:e=>this.formMexicoService.bookingPrepaidProcess(this.form,this.booking,this.clientId,this.documents,e)}})}getUserBooking(){let e=this.nome?.value?.trim(),a=this.ddi?.value?.phone?.trim(),o=this.telefone?.value;o=o?.replaceAll(/[^0-9*]+/g,"")??"";let m="";return a===Lt&&(m=o.substring(0,2)?.trim(),o=o.substring(2)?.trim()),{isMexico:!0,dadosCriarReserva:{usuarioReserva:{nomeUsuarioReserva:e,contatosReserva:[{emailReserva:this.normalizeEmail(this.email?.value),telefone:{ddi:a,ddd:m,numeroTelefone:o}}]}}}}loadDdis(){let e=this.getLang(),a=this.getDdis(e);this.ddis=this.orderDdis(a)}getLang(){return this.translateService.currentLang?.substring(0,2)}getDdis(e){return to().flatMap(a=>a.phone.map(o=>({country:`${a.getName(e)} (+${o.toString()})`,phone:o.toString()})))}orderDdis(e){return e.sort((a,o)=>{let m=a.phone.localeCompare(o.phone,void 0,{numeric:!0});return m===0?a.country.localeCompare(o.country):m})}loadNationalities(){this.clienteService.GetNacionalidade().pipe(Se(this.onDestroy$)).subscribe({next:e=>{this.nationalities=e,this.loadClientData()},error:()=>this.initDefaultFormValues()})}loadClientData(){if(this.authService.autenticado()&&!this.booking?.alteracaoReserva&&this.user&&this.user.primeiroNome){this.clientId=this.user.id,this.fillFormWithAuthClient(this.user.id);return}if(this.booking.alteracaoReserva&&(this.clientPersonalData=this.booking?.cliente,this.clientPersonalData!==null)){this.clientId=this.clientPersonalData.clientePessoaFisicaId,this.fill(this.clientPersonalData);return}this.initDefaultFormValues()}initDefaultFormValues(){this.form.enable(),this.clientId="",this.user=null,this.setInitNationality(),this.changeDetectorRef.markForCheck()}setInitNationality(){let e=this.internacionalizacaoService.recuperarCodigoPais()||le,a=this.nationalities.find(o=>o.codigoPais===e);a&&(this.nacionalidade.patchValue(a),this.setDocumentByNationality(a))}fillFormWithAuthClient(e){this.clienteService.obterDadosPessoais(e,this.authService.isUniidToggleOn()).pipe(Se(this.onDestroy$)).subscribe(a=>{this.fill(a)})}fill(e){this.filledData=!0,this.form.enable(),this.nome.clearValidators(),this.nome.updateValueAndValidity(),this.nome.patchValue(e.nome),this.nome.disable();let a=this.nationalities.find(o=>o.codigoPais===e.codigoNacionalidade);if(this.setDocumentByNationality(a),this.nacionalidade.clearValidators(),this.nacionalidade.updateValueAndValidity(),this.nacionalidade.patchValue(a),this.nacionalidade.disable(),this.tipoDocumento.clearValidators(),this.tipoDocumento.updateValueAndValidity(),this.tipoDocumento.patchValue(Number(e.tipoDocumento)),this.tipoDocumento.disable(),this.documentMask="",this.numeroDocumento.clearValidators(),this.numeroDocumento.updateV
2alueAndValidity(),this.numeroDocumento.patchValue(e.numeroDocumento),this.numeroDocumento.disable(),this.email.clearValidators(),this.email.updateValueAndValidity(),this.email.patchValue(e.email),this.confirmarEmail.clearValidators(),this.confirmarEmail.updateValueAndValidity(),this.confirmarEmail.patchValue(e.email),e.celular){this.setDdi(e.celular.ddi);let m=e.celular.ddi===Lt?`(${e.celular.ddd}) ${e.celular.numero}`:e.celular.numero;this.changeDetectorRef.markForCheck(),this.telephoneMask="",this.telefone.clearValidators(),this.telefone.updateValueAndValidity(),this.telefone.patchValue(m)}this.changeDetectorRef.markForCheck()}setDdi(e){if(!e)return;let a=this.ddis.find(o=>o.phone===e);a&&this.ddi.patchValue(a)}clickEmail(){!this.emailFirstTouched&&this.filledData&&(this.email.patchValue(null),this.email.setValidators([j.required,j.email,Ae.emailValidator]),this.email.markAsTouched(),this.email.updateValueAndValidity()),this.emailFirstTouched=!0}clickEmailConfirm(){!this.emailConfirmFirstTouched&&this.filledData&&(this.confirmarEmail.patchValue(null),this.confirmarEmail.setValidators([j.required,j.email,Ae.confirmEmailValidator("email")]),this.confirmarEmail.markAsTouched(),this.confirmarEmail.updateValueAndValidity()),this.emailConfirmFirstTouched=!0}clickTelephone(){if(!this.telephoneFirstTouched&&this.filledData){this.telefone.patchValue(null);let e=this.ddi.value?.phone;this.setTelephoneMask(e),this.setTelephonePlaceholder(e),this.setTelephoneValidators(e),this.telefone.markAsTouched()}this.telephoneFirstTouched=!0,this.changeDetectorRef.markForCheck()}help(){this.dialog.open(wn)}clearDocument(){this.numeroDocumento.reset()}ngOnDestroy(){this.changeEmail$.complete(),this.onDestroy$.next(),this.onDestroy$.complete(),this.toStep05||this.fluxoReservaStore.actions.emit({type:ie.ATUALIZAR,payload:{exibirPreAutorizacao:!1,valorPreAutorizacao:null}})}};r.\u0275fac=function(a){return new(a||r)(v(re),v(Ye),v(Pi),v(Ut),v($i),v(un),v(G),v(Nn),v(Xe),v(fe),v(gt),v(it),v(Ve),v(_a),v(Pe),v(wt))},r.\u0275cmp=M({type:r,selectors:[["app-form-mexico"]],inputs:{booking:"booking",isDesktop:"isDesktop"},features:[vi([Nn])],decls:60,vars:87,consts:[[1,"form-mexico",3,"formGroup"],[1,"form-mexico__fields"],[1,"form-mexico__fields__first-row"],["id","nome","name","nome","size","md","formControlName","nome",3,"label","placeholder","submitted"],["error","",4,"ngIf"],[3,"control","nationalities","submitted"],[1,"form-mexico__fields__second-row"],["id","email","name","email","size","md","formControlName","email",3,"click","focused","label","placeholder","submitted","textCase","normalizeEmail"],["id","confirmarEmail","name","confirmarEmail","size","md","formControlName","confirmarEmail",3,"click","focused","label","placeholder","submitted","textCase","normalizeEmail"],[1,"form-mexico__fields__third-row"],[1,"form-mexico__fields__third-row__cellphone"],[1,"form-mexico__fields__third-row__cellphone__fields"],[3,"ddis","control","submitted"],["id","telefone","name","telefone","size","md","formControlName","telefone",3,"click","focused","mask","label","showError","submitted","placeholder"],["class","form-mexico__fields__third-row__cellphone__errors",4,"ngIf"],[1,"form-mexico__fields__third-row__document"],[3,"control","documents","submitted"],["id","numeroDocumento","name","numeroDocumento","size","md","formControlName","numeroDocumento",3,"label","mask","placeholder","textCase","submitted"],["slotIcon","","type","button","class","form-mexico__fields__third-row__document__help",3,"click",4,"ngIf"],["slotIcon","","tabindex","-1","type","button","class","form-mexico__fields__third-row__document__clear",3,"click",4,"ngIf"],["size","sm","color","secondary","id","flight","name","flight","formControlName","flight",1,"form-mexico__flight",3,"submitted"],["slotEnd","",1,"form-mexico__flight__label"],["class","form-mexico__flight-fields",4,"ngIf"],["color","secondary","id","optinTerms","name","optinTerms","formControlName","optinTerms",1,"form-mexico__optin-terms",3,"iconError","submitted"],["slotEnd","",1,"form-mexico__optin-terms__label"],["tabindex","0",3,"click","keyup.enter","keyup.space"],["color","secondary","id","optInPromotions","name","optInPromotions","formControlName","optInPromotions",1,"form-mexico__optin-promotions",3,"submitted"],["slotEnd","",1,"form-mexico__optin-promotions__label"],["class","form-mexico__secure-online-payment-information",4,"ngIf"],["class","form-mexico__error",4,"ngIf"],[1,"form-mexico__button"],["color","secondary",3,"click","fullWidth","disabled"],[4,"ngIf"],["error",""],[1,"form-mexico__fields__third-row__cellphone__errors"],[1,"form-mexico__fields__third-row__cellphone__errors__texts"],["slotIcon","","type","button",1,"form-mexico__fields__third-row__document__help",3,"click"],["slotIcon","","tabindex","-1","type","button",1,"form-mexico__fields__third-row__document__clear",3,"click"],[1,"form-mexico__flight-fields"],[3,"airlines","control","submitted"],["id","numeroVoo","name","numeroVoo","size","md","formControlName","numeroVoo","mask","0000","placeholder","0000",3,"label","submitted"],[1,"form-mexico__secure-online-payment-information"],[1,"form-mexico__error"],[3,"mensagensErro"]],template:function(a,o){a&1&&(s(0,"form",0)(1,"div",1)(2,"div",2)(3,"app-form-text-field",3),c(4,"translate"),c(5,"translate"),C(6,bg,3,3,"span",4),l(),s(7,"app-form-nationality",5),C(8,xg,3,3,"span",4),l()(),s(9,"div",6)(10,"app-form-text-field",7),c(11,"translate"),c(12,"translate"),b("click",function(){return o.clickEmail()})("focused",function(){return o.clickEmail()}),C(13,Pg,3,3,"span",4),l(),s(14,"app-form-text-field",8),c(15,"translate"),c(16,"translate"),b("click",function(){return o.clickEmailConfirm()})("focused",function(){return o.clickEmailConfirm()}),C(17,Sg,3,3,"span",4)(18,yg,3,3,"span",4),l()(),s(19,"div",9)(20,"div",10)(21,"div",11),h(22,"app-form-ddi",12),s(23,"app-form-text-field",13),c(24,"translate"),b("click",function(){return o.clickTelephone()})("focused",function(){return o.clickTelephone()}),l()(),C(25,wg,5,2,"div",14),l(),s(26,"div",15)(27,"app-form-document",16),C(28,Og,3,3,"span",4),l(),s(29,"app-form-text-field",17),c(30,"translate"),C(31,
2kg,3,3,"span",4)(32,Ig,2,0,"button",18)(33,Tg,2,0,"button",19),l()()()(),h(34,"hr"),V(35),s(36,"app-form-switch",20)(37,"p",21),p(38),c(39,"translate"),l()(),C(40,Ag,4,7,"div",22),z(),s(41,"app-form-checkbox",23)(42,"p",24),p(43),c(44,"translate"),s(45,"a",25),b("click",function(){return o.openModalTerms()})("keyup.enter",function(){return o.openModalTerms()})("keyup.space",function(){return o.openModalTerms()}),p(46),c(47,"translate"),l(),p(48),c(49,"translate"),l()(),s(50,"app-form-checkbox",26)(51,"p",27),p(52),c(53,"translate"),l()(),C(54,Eg,1,0,"app-secure-online-payment-information",28)(55,Rg,2,1,"div",29),s(56,"div",30)(57,"app-button",31),b("click",function(){return o.submit()}),C(58,Bg,3,3,"ng-container",32)(59,Fg,1,0,"mat-spinner",32),l()()()),a&2&&(d("formGroup",o.form),n(3),d("label",u(4,61,"formPersonalData.form.nameLabel"))("placeholder",u(5,63,"formPersonalData.form.namePlaceholder"))("submitted",o.submitted),n(3),d("ngIf",o.nome.errors==null?null:o.nome.errors.required),n(),d("control",o.nacionalidade)("nationalities",o.nationalities)("submitted",o.submitted),n(),d("ngIf",o.nacionalidade.errors==null?null:o.nacionalidade.errors.required),n(2),d("label",u(11,65,"formPersonalData.form.emailLabel"))("placeholder",u(12,67,"formPersonalData.form.emailPlaceholder"))("submitted",o.submitted)("textCase","lowercase")("normalizeEmail",!0),n(3),d("ngIf",(o.email.errors==null?null:o.email.errors.required)||(o.email.errors==null?null:o.email.errors.email)),n(),d("label",u(15,69,"formPersonalData.form.emailConfirmationLabel"))("placeholder",u(16,71,"formPersonalData.form.emailConfirmationPlaceholder"))("submitted",o.submitted)("textCase","lowercase")("normalizeEmail",!0),n(3),d("ngIf",(o.confirmarEmail.errors==null?null:o.confirmarEmail.errors.required)||(o.confirmarEmail.errors==null?null:o.confirmarEmail.errors.email)),n(),d("ngIf",(o.confirmarEmail.errors==null?null:o.confirmarEmail.errors.incompatibleEmails)&&!(o.confirmarEmail.errors!=null&&o.confirmarEmail.errors.required)&&!(o.confirmarEmail.errors!=null&&o.confirmarEmail.errors.email)),n(4),d("ddis",o.ddis)("control",o.ddi)("submitted",o.submitted),n(),d("mask",o.telephoneMask)("label",u(24,73,"formPersonalData.form.telephoneLabel"))("showError",!1)("submitted",o.submitted)("placeholder",o.telephonePlaceholder),n(2),d("ngIf",o.ddiHasError||o.telefoneHasError),n(2),d("control",o.tipoDocumento)("documents",o.documents)("submitted",o.submitted),n(),d("ngIf",o.tipoDocumento.errors==null?null:o.tipoDocumento.errors.required),n(),d("label",u(30,75,"formPersonalData.form.documentNumberLabel"))("mask",o.documentMask)("placeholder",o.documentPlaceholder)("textCase",o.isCurp?"uppercase":"none")("submitted",o.submitted),n(2),d("ngIf",(o.numeroDocumento.errors==null?null:o.numeroDocumento.errors.required)||(o.numeroDocumento.errors==null?null:o.numeroDocumento.errors.maxLength)||(o.numeroDocumento.errors==null?null:o.numeroDocumento.errors.curp)||(o.numeroDocumento.errors==null?null:o.numeroDocumento.errors.pattern)),n(),d("ngIf",o.isCurp&&!(o.numeroDocumento!=null&&o.numeroDocumento.value)),n(),d("ngIf",o.isCurp&&(o.numeroDocumento==null?null:o.numeroDocumento.value)),n(3),d("submitted",o.submitted),n(2),f(" ",u(39,77,"formPersonalData.form.flightLabel")," "),n(2),d("ngIf",o.flight.value),n(),Z("form-mexico__optin-terms--has-error",o.optinTermsHasError),d("iconError",!1)("submitted",o.submitted),n(2),f(" ",u(44,79,"formPersonalData.form.optinTerms")," "),n(3),f(" ",u(47,81,"formPersonalData.form.termsAndConditions")," "),n(2),f(" ",u(49,83,"formPersonalData.form.rent")," "),n(2),d("submitted",o.submitted),n(2),f(" ",u(53,85,"formPersonalData.form.optinPromotions")," "),n(2),d("ngIf",o.isPrepaid),n(),d("ngIf",o.toastError),n(2),d("fullWidth",!0)("disabled",o.form.disabled),n(),d("ngIf",!o.isLoading),n(),d("ngIf",o.isLoading))},dependencies:[N,A,Te,ct,Ce,lt,be,dt,Mt,mn,En,An,Tn,kn,In,On,No,$a,Ke,Rn,Gt,Go,Ot,mt,pt,pn,T],styles:[".form-mexico[_ngcontent-%COMP%]{overflow:visible}.form-mexico[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family)}.form-mexico__fields[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2.4rem}.form-mexico__fields__first-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr .6fr;gap:2.4rem 2rem}.form-mexico__fields__second-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:2.4rem 2rem}.form-mexico__fields__third-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:.82fr 1fr;gap:2.4rem 2rem}.form-mexico__fields__third-row__cellphone[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:.8rem}.form-mexico__fields__third-row__cellphone__fields[_ngcontent-%COMP%]{display:grid;grid-template-columns:11rem 1fr;gap:2.4rem 2rem}.form-mexico__fields__third-row__cellphone__errors[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;color:var(--lds-color-accent-critical-default)}.form-mexico__fields__third-row__cellphone__errors[_ngcontent-%COMP%] lds-icon-warning-filled[_ngcontent-%COMP%]{display:block}.form-mexico__fields__third-row__cellphone__errors__texts[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-left:.8rem;font-family:var(--lds-font-functional-family);font-size:1.4rem;font-weight:var(--lds-components-helper-text-weight, var(--lds-font-funcional-weight-weak));line-height:var(--lds-components-helper-text-line-height)}.form-mexico__fields__third-row__document[_ngcontent-%COMP%]{display:grid;grid-template-columns:.8fr 1fr;gap:2.4rem 2rem}.form-mexico__fields__third-row__document__help[_ngcontent-%COMP%], .form-mexico__fields__third-row__document__clear[_ngcontent-%COMP%]{display:flex;padding:0;border:none;color:var(--lds-color-neutral-icon-default);background:#0000;cursor:pointer}.form-mexico[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{margin:4rem 0 1rem}.form-mexico__flight[_ngcontent-%COMP%]{display:block;margin-bottom:1rem}.form-mexico__flight__label[_ngcontent-%COMP%]{padding:.8rem 0}.form-mexico__flight-fields[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:2.4rem 2rem;margin-bottom:4rem}.form-mexico__optin-terms[_ngcontent-%COMP%]{display:block;margin-top:2.4rem}.form-mexico__optin-terms__label[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default);font-family:var(--lds-font-functional-family);font-size:1.4rem;font-weight:400;line-height:150%;text-decoration:underline;cursor:pointer}.form-mexico__optin-terms--has-error[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--lds-color-accent-critical-default)}.form-mexico__optin-promotions[_ngcontent-%COMP%]{display:block;margin-top:2.4rem}.form-mexico__flight__label[_ngcontent-%COMP%], .form-mexico__optin-terms__label[_ngcontent-%COMP%], .form-mexico__optin-promotions__label[_ngcontent-%COMP%]{width:calc(100% - 3.2rem);min-height:2.4rem;color:var(--lds-color-neutral-text-default);font-family:var(--lds-font-functional-family);font-size:1.4rem;font-weight:400;line-height:150%}.form-mexico__secure-online-payment-information[_ngcontent-%COMP%]{display:block;margin-top:4rem}.form-mexico__button[_ngcontent-%COMP%]{width:19.5rem;margin:4rem 0 4rem auto}.form-mexico[_ngcontent-%COMP%] .mat-mdc-progress-spinner{margin:0}@media screen and (max-width:991px){.form-mexico__fields__second-row[_ngcontent-%COMP%], .form-mexico__fields__third-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media screen and (max-width:767px){.form-mexico__flight-fields[_ngcontent-%COMP%]{grid-template-columns:1fr}.form-mexico__button[_ngcontent-%COMP%]{width:100%}}@media screen and (max-width:575px){.form-mexico__fields__first-row[_ngcontent-%COMP%], .form-mexico__fields__third-row__document[_ngcontent-%COMP%]{grid-template-columns:1fr}}"],changeDetection:0});let i=r;return i})();var Vg=["container"];function zg(i,r){if(i&1&&h(0,"app-barra-navegacao-reserva",13),i&2){let t=g();d("step",4)("isPrePagamentoMexico",t.isPrepaidMexico)}}function Lg(i,r){i&1&&h(0,"app-trigger-escassez",6)}function Ng(i,r){if(i&1&&C(0,Lg,1,0,"app-trigger-escassez",14),i&2){let t=g();d("ngIf",t.showTriggerEscassez)}}function Ug(i,r){if(i&1){let t=k();s(0,"aside",12)(1,"app-box-booking-summary",15),b("sawTotalValue",function(){P(t);let a=g();return S(a.sawTotalValueEvent())})("sawPreAuthorizationValue",function(){P(t);let a=g();return S(a.sawPreAuthorizationValueEvent())}),l()()}if(i&2){let t=g();n(),d("bookingData",t.booking)("showPreAuthorization",t.showPreAuthorization)("preAuthorizationValue",t.preAuthorizationValue)("loadingPreAuthorization",t.loadingPreAuthorization)("errorPreAuthorization",t.errorPreAuthorization)}}var id=(()=>{let r=class r{beforeUnloadHander(e){return!1}constructor(e,a,o,m,_,x){this.authService=e,this.fluxoReservaStore=a,this.breakpointService=o,this.changeDetectorRef=m,this.googleAnalyticsService=_,this.webviewService=x,this.onDestroy$=new Ze,this.rentInMexico=!1,this.isPrepaidMexico=!1,this.showTriggerEscassez=!1,this.isDesktop=!1,this.showPreAuthorization=!1,this.loadingPreAuthorization=!1,this.errorPreAuthorization=!1,this.loadedStoreData=!1,this.emitedCardChoiceUnavailable=!1,this.isWebview=!1}ngOnInit(){this.isWebview=this.webviewService.isWebView(),this.fluxoReservaStore.resetPasso3ReservaLocalStorage(),this.user=this.authService.obterUsuarioLogado(),this.loadStoreData(),this.loadIsDesktop(),this.setBreadCrumbs()}ngAfterViewInit(){this.renderFormComponent()}renderFormComponent(){this.container.clear();let a={[pe]:{component:td,booking:this.booking,isDesktop:this.isDesktop},[Fe]:{component:Jc,booking:this.booking,isDesktop:this.isDesktop}}[this.paisRetirada],o=this.container.createComponent(a.component);o.setInput("booking",this.booking),o.setInput("isDesktop",this.isDesktop)}loadStoreData(){this.fluxoReservaStore.state$.pipe(Se(this.onDestroy$)).subscribe({next:e=>{if(this.booking=e?.reserva,e?.reserva?.reservaRealizadaNr){this.onDestroy$.next();return}let a=this.booking?.codigoPaisAgenciaRetirada;this.rentInMexico=a===pe,this.showTriggerEscassez=this.rentInMexico,this.clientPersonalData=e.reserva.cliente,this.setIsPrepaidMexico(this.booking),this.loadedStoreData=!0,e?.reserva?.reservaRealizadaNr===null&&this.preencherDataLayerCheckout(e.reserva),!e?.reserva?.ofertaSelecionada?.noShow?.cobrar&&!this.emitedCardChoiceUnavailable&&(this.eventNotCreditCard(),this.emitedCardChoiceUnavailable=!0),this.changeDetectorRef.markForCheck()},error:()=>this.loadedStoreData=!0})}preencherDataLayerCheckout(e){let a={id:e.grupoSelecionado?.codigoLocaliza,name:this.getNomeCarroPadrao(e.grupoSelecionado),category:e.grupoSelecionado?.codigoLocaliza+" - "+e.grupoSelecionado?.nome,price:e.ofertaSelecionada?.tarifa.valorDiariaSemCombo,variant:e.ofertaSelecionada?.descricao,quantity:e.ofertaSelecionada?.quantidadeDiarias},o={id:e.ofertaSelecionada?.descricao.replace(/- /g,"").replace(/â /,"").replace(/ /g,"_").toUpperCase(),name:e.ofertaSelecionada?.descricao,category:"Pacotes",price:e.ofertaSelecionada?.tarifa.valorDiariaSemCombo},m=e.ofertaSelecionada?.itens?.filter(O=>O.selecionado&&O.tipoItem===je.SERVICO).map(O=>({id:O.codigoAdicionalFrigga,name:O.descricao,category:"Opcionais",price:O.valor}))||[],_=e.ofertaSelecionada?.itens?.filter(O=>O.selecionado&&O.tipoItem===je.EQUIPAMENTO).map(O=>({id:O.codigoAdicionalFrigga,name:O.descricao,category:"Equipamentos",price:O.valor,quantity:O.quantidade}))||[],x=[a,o,...m,..._];e.quantidadeHorasExtras>0&&x.push({id:"HORA_EXTRA",name:"Hora Extra",category:"Opcionais",price:21,quantity:e?.quantidadeHorasExtras}),this.googleAnalyticsService.preencherDataLayer({event:"eec.checkout",ecommerce:{currencyCode:e.ofertaSelecionada?.tarifa.moeda==="R$"?"BRL":e.ofertaSelecionada?.tarifa.moeda,checkout:{actionField:{action:"checkout",step:"step:1"},products:x}}})}getNomeCarroPadrao(e){let a=e?.veiculos?.find(m=>m.padraoGrupo),o=e?.veiculos?.length===1?"":" ou similar";if(a?.nome)return a.nome+o;if(!a&&e?.veiculos?.length>0)return e?.veiculos[0]+o}eventNotCreditCard(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"choice_unavailable",action:"skipped",label:"card_selected"})}loadIsDesktop(){this.breakpointService.isDesktop.pipe(Se(this.onDestroy$)).subscribe(e=>this.isDesktop=e)}setBreadCrumbs(){this.breadCrumbs=[{label:"breadCrumbs.reserva.passo4.label",url:"url.reserva.passo4"}]}setIsPrepaidMexico(e){let a=e?.ofertaSelecionada?.meioPagamento||[];this.isPrepaidMexico=a.some(o=>o.selecionado&&o.tipo==="Link")}sawTotalValueEvent(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"view_total_value",action:"visualizacao_valor_total",label:"passo_04"})}sawPreAuthorizationValueEvent(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"view_pre_authorization",action:"visualizacao_pre_autorizacao",label:"passo_04"})}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}};r.\u0275fac=function(a){return new(a||r)(v(Ye),v(fe),v(De),v(Xe),v(Q),v(Pe))},r.\u0275cmp=M({type:r,selectors:[["app-form-personal-data"]],viewQuery:function(a,o){if(a&1&&kt(Vg,5,Er),a&2){let m;et(m=tt())&&(o.container=m.first)}},hostBindings:function(a,o){a&1&&b("beforeunload",function(_){return o.beforeUnloadHander(_)},mi)},inputs:{paisRetirada:"paisRetirada"},decls:19,vars:11,consts:[["container",""],[1,"form-personal-data"],[3,"breadCrumbs"],[1,"container"],[1,"form-personal-data__header"],[3,"step","isPrePagamentoMexico",4,"ngIf"],[1,"form-personal-data__header__trigger-escassez"],[1,"row"],[1,"form-personal-data__form","col-xl-8"],[1,"form-personal-data__title"],[1,"form-personal-data__subtitle"],[1,"form-personal-data__data-privacy-information",3,"showReadMoreButton"],[1,"col-4"],[3,"step","isPrePagamentoMexico"],["class","form-personal-data__header__trigger-escassez",4,"ngIf"],[3,"sawTotalValue","sawPreAuthorizationValue","bookingData","showPreAuthorization","preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization"]],template:function(a,o){a&1&&(s(0,"section",1),h(1,"app-breadcrumb",2)(2,"app-header-preview"),s(3,"div",3)(4,"div",4),C(5,zg,1,2,"app-barra-navegacao-reserva",5),B(6,Ng,1,1,"app-trigger-escassez",6),l(),s(7,"div",7)(8,"div",8)(9,"h2",9),p(10),c(11,"translate"),l(),s(12,"p",10),p(13),c(14,"translate"),l(),h(15,"app-data-privacy-information",11),Ee(16,null,0),l(),B(18,Ug,2,5,"aside",12),l()()()),a&2&&(n(),d("breadCrumbs",o.breadCrumbs),n(4),d("ngIf",o.loadedStoreData),n(),F(o.isWebview?
2-1:6),n(4),f(" ",u(11,7,"formPersonalData.title")," "),n(3),f(" ",u(14,9,"formPersonalData.subtitle")," "),n(2),d("showReadMoreButton",!0),n(3),F(o.isDesktop?18:-1))},dependencies:[N,A,Qi,Nt,no,si,Oi,Hc,ki,U,ro,T],styles:["[_nghost-%COMP%] .form-personal-data__header[_ngcontent-%COMP%]{margin:2.4rem 0 3.2rem}[_nghost-%COMP%] .form-personal-data__title[_ngcontent-%COMP%]{margin:0 0 .4rem;color:var(--lds-color-accent-primary-default);font-family:var(--lds-font-brand-family);font-size:3.2rem;font-weight:700;line-height:130%;text-transform:none}[_nghost-%COMP%] .form-personal-data__subtitle[_ngcontent-%COMP%]{margin:0 0 2rem;color:var(--lds-color-neutral-text-default);font-family:var(--lds-font-brand-family);font-size:1.4rem;font-weight:600;line-height:150%}[_nghost-%COMP%] .form-personal-data__data-privacy-information[_ngcontent-%COMP%]{display:block;margin-bottom:2rem}@media screen and (max-width:1199px){[_nghost-%COMP%] .form-personal-data__header[_ngcontent-%COMP%]{margin:3.2rem 0}[_nghost-%COMP%] .form-personal-data__header__trigger-escassez[_ngcontent-%COMP%]{display:block;margin-top:5rem}}@media screen and (max-width:767px){[_nghost-%COMP%] .form-personal-data__title[_ngcontent-%COMP%]{font-size:2.4rem}}"],changeDetection:0});let i=r;return i})();var od=i=>({discount:i});function Gg(i,r){if(i&1&&(s(0,"div",7),p(1),c(2,"translate"),l()),i&2){let t,e=g();n(),f(" ",y(2,1,"components.dumbs.prePaidBrasil.discountBadge",L(4,od,(t=e.paymentMethodLink())==null?null:t.percentualDesconto))," ")}}function jg(i,r){i&1&&(h(0,"p",14),c(1,"translate")),i&2&&d("innerHTML",u(1,1,"components.dumbs.prePaidBrasil.payNowInfoVarB"),te)}function qg(i,r){if(i&1&&(h(0,"p",14),c(1,"translate")),i&2){let t,e=g();d("innerHTML",y(1,1,"components.dumbs.prePaidBrasil.payNowInfoVarCAndD",L(4,od,(t=e.paymentMethodLink())==null?null:t.percentualDesconto)),te)}}function Hg(i,r){i&1&&(h(0,"p",14),c(1,"translate")),i&2&&d("innerHTML",u(1,1,"components.dumbs.prePaidBrasil.payOnPickupInfoVarB"),te)}function $g(i,r){i&1&&(h(0,"p",14),c(1,"translate")),i&2&&d("innerHTML",u(1,1,"components.dumbs.prePaidBrasil.payOnPickupInfoVarCAndD"),te)}var Un=(()=>{let r=class r{constructor(){this.paymentMethodLink=It(null),this.currency=It("R$"),this.totalWithoutPrepayment=It(null),this.prepaidBrasilSelected=It(null),this.prepaidSelected=Da(),this.insiderService=I(_t),this.monitoringService=I(Dt),this.isPrePaidBrasilBActivated=this.insiderService.prePaidBrasilBActivated(),this._userSelection=ve(void 0),this.isPrepaidSelected=Ri(()=>this._userSelection()??this.prepaidBrasilSelected()),this._resetEffect=Mo(()=>{this.prepaidBrasilSelected()===null&&this._userSelection.set(void 0)})}ngOnInit(){this.sendEvent("impression_pre_pay")}selectCard(e){let a=this.paymentMethodLink(),o=e==="prepaid";this.isPrepaidSelected()===o||!a||(this.sendEvent("clicked_"+(o?"pre_pay":"counter")),this._userSelection.set(o),this.prepaidSelected.emit({identificador:a.identificador,selecionado:o}))}sendEvent(e){this.monitoringService.sendEvent({component:"reservation_pre_pay",action:e,componentDescription:this.insiderService.getPrePaidBrasilScenario()})}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-prepaid-brasil"]],inputs:{paymentMethodLink:[1,"paymentMethodLink"],currency:[1,"currency"],totalWithoutPrepayment:[1,"totalWithoutPrepayment"],prepaidBrasilSelected:[1,"prepaidBrasilSelected"]},outputs:{prepaidSelected:"prepaidSelected"},decls:43,vars:35,consts:[[1,"prepaid-brasil"],[1,"prepaid-brasil__title"],[1,"required-field"],[1,"prepaid-brasil__cards"],["role","button","tabindex","0","data-testid","prepaid-card-prepaid",1,"prepaid-card","prepaid-card--prepaid",3,"click"],[1,"prepaid-card__header"],[1,"prepaid-card__label"],["data-testid","prepaid-card-badge",1,"prepaid-card__badge"],["lds-radio","","name","payment-type",3,"checked"],[1,"prepaid-card__body"],[1,"prepaid-card__total"],[1,"prepaid-card__price"],[1,"prepaid-card__footer"],[1,"prepaid-card__divider"],[1,"prepaid-card__info",3,"innerHTML"],["role","button","tabindex","0","data-testid","prepaid-card-standard",1,"prepaid-card",3,"click"]],template:function(a,o){if(a&1&&(s(0,"section",0)(1,"h4",1),p(2),c(3,"translate"),s(4,"span",2),p(5,"*"),l()(),s(6,"div",3)(7,"div",4),b("click",function(){return o.selectCard("prepaid")}),s(8,"div",5)(9,"div",6),p(10),c(11,"translate"),B(12,Gg,3,6,"div",7),l(),h(13,"input",8),l(),s(14,"div",9)(15,"p",10),p(16),c(17,"translate"),l(),s(18,"p",11),p(19),c(20,"ldsCurrency"),c(21,"ldsCurrency"),l(
2)(),s(22,"div",12),h(23,"div",13),B(24,jg,2,3,"p",14)(25,qg,2,6,"p",14),l()(),s(26,"div",15),b("click",function(){return o.selectCard("standard")}),s(27,"div",5)(28,"div",6),p(29),c(30,"translate"),l(),h(31,"input",8),l(),s(32,"div",9)(33,"p",10),p(34),c(35,"translate"),l(),s(36,"p",11),p(37),c(38,"ldsCurrency"),l()(),s(39,"div",12),h(40,"div",13),B(41,Hg,2,3,"p",14)(42,$g,2,3,"p",14),l()()()()),a&2){let m,_;n(2),f(" ",u(3,16,"components.dumbs.prePaidBrasil.title")," "),n(5),Z("prepaid-card--selected",o.isPrepaidSelected()),n(3),f(" ",u(11,18,"components.dumbs.prePaidBrasil.payNow")," "),n(2),F((m=o.paymentMethodLink())!=null&&m.percentualDesconto&&!o.isPrePaidBrasilBActivated?12:-1),n(),d("checked",o.isPrepaidSelected()),n(3),D(u(17,20,"components.dumbs.prePaidBrasil.total")),n(3),f(" ",o.isPrePaidBrasilBActivated?y(20,22,o.totalWithoutPrepayment(),o.currency()):y(21,25,(_=o.paymentMethodLink())==null?null:_.valorTotalPromocionalPrePago,o.currency())," "),n(5),F(o.isPrePaidBrasilBActivated?24:25),n(2),Z("prepaid-card--selected",o.isPrepaidSelected()===!1),n(3),D(u(30,28,"components.dumbs.prePaidBrasil.payOnPickup")),n(2),d("checked",o.isPrepaidSelected()===!1),n(3),D(u(35,30,"components.dumbs.prePaidBrasil.total")),n(3),D(y(38,32,o.totalWithoutPrepayment(),o.currency())),n(4),F(o.isPrePaidBrasilBActivated?41:42)}},dependencies:[A,Ws,T,Ne],styles:['[_nghost-%COMP%]{font-family:var(--lds-font-brand-family, "Inter")}.prepaid-brasil[_ngcontent-%COMP%]{margin:4rem 0;width:100%;display:flex;padding:var(--lds-spacing-2, 1.6rem);flex-direction:column;align-items:flex-start;gap:var(--lds-spacing-2, 1.6rem);align-self:stretch;border-radius:var(--lds-border-radius-main, 1.2rem);border:var(--lds-border-width-weak, 1px) var(--lds-border-style-solid, solid) var(--lds-color-neutral-border-low, #e6e6e6);background:var(--lds-color-accent-primary-contrast-default-inverse, #fff);box-shadow:var(--lds-shadow-high-x, 0) var(--lds-shadow-high-y, 4px) var(--lds-shadow-high-blur, 16px) var(--lds-shadow-high-spread, 2px) #00000026}.prepaid-brasil__title[_ngcontent-%COMP%]{font-family:var(--lds-font-brand-family);font-size:1.6rem;font-weight:var(--lds-font-brand-weight-strong, 600);line-height:150%;color:var(--lds-color-neutral-text-high, #262626)}.prepaid-brasil__title[_ngcontent-%COMP%] .required-field[_ngcontent-%COMP%]{color:var(--lds-color-accent-critical-default, #d92020)}.prepaid-brasil__cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;gap:var(--lds-spacing-2, 1.6rem);align-self:stretch}@media(min-width:992px){.prepaid-brasil__cards[_ngcontent-%COMP%]{flex-direction:row}}.prepaid-card[_ngcontent-%COMP%]{display:flex;padding:var(--lds-spacing-2, 1.6rem);flex-direction:column;align-items:flex-start;gap:var(--lds-spacing-1, .8rem);flex:1 0 0;cursor:pointer;width:100%;border-radius:var(--lds-border-radius-main, 1.2rem);border:1px solid var(--lds-color-neutral-border-low, #e6e6e6);background:var(--lds-color-neutral-surface-low, #f2f2f2)}.prepaid-card--selected[_ngcontent-%COMP%]{border-radius:var(--lds-border-radius-main, 1.2rem);border:var(--lds-border-width-normal, 2px) solid var(--lds-color-accent-primary-default, #018444);background:var(--lds-color-accent-tertiary-contrast-high, #cefdaf);box-shadow:var(--lds-shadow-high-x, 0) var(--lds-shadow-high-y, 4px) var(--lds-shadow-high-blur, 16px) var(--lds-shadow-high-spread, 2px) #00000026}.prepaid-card--selected[_ngcontent-%COMP%] .prepaid-card__badge[_ngcontent-%COMP%]{border-radius:var(--lds-border-radius-pill, 400px);background:var(--lds-color-accent-secondary-default, #78de1f);color:var(--lds-color-neutral-text-high, #262626)}.prepaid-card--selected[_ngcontent-%COMP%] .prepaid-card__divider[_ngcontent-%COMP%]{background:var(--lds-color-accent-primary-default, #018444)}.prepaid-card--selected[_ngcontent-%COMP%] .prepaid-card__price[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-emphasis-high, #005c3a)}.prepaid-card__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.prepaid-card__label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--lds-spacing-1, .8rem);color:var(--lds-color-neutral-text-high, #262626);font-size:1.4rem;font-weight:var(--lds-font-brand-weight-stronger, 700);line-height:150%}.prepaid-card__badge[_ngcontent-%COMP%]{padding:.2rem 1.2rem;color:var(--lds-color-Accent-Secondary-Contrast-Lower, #01602a);font-size:1.2rem;border-radius:var(--lds-border-radius-pill, 400px);background:var(--lds-color-accent-secondary-emphasis-lower, #cefdaf)}.prepaid-card__body[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.prepaid-card__total[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-default, #4a4a4a);font-size:1.4rem;font-weight:var(--lds-font-functional-weight-regular, 400);line-height:150%}.prepaid-card__price[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default, #018444);font-size:1.6rem;font-style:normal;font-weight:700;line-height:150%}.prepaid-card__footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;width:100%}.prepaid-card__divider[_ngcontent-%COMP%]{display:flex;height:1px;padding:var(--lds-spacing-0, 0);flex-direction:column;align-items:flex-start;gap:var(--lds-spacing-0, 0);align-self:stretch;background:var(--lds-color-neutral-border-low, #e6e6e6)}.prepaid-card__info[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-default, #4a4a4a);font-size:1.2rem;font-weight:var(--lds-font-brand-weight-weak, 700);line-height:160%}'],changeDetection:0});let i=r;return i})();function Kg(i,r){if(i&1){let t=k();s(0,"app-highlight-fast",5),b("selected",function(a){P(t);let o=g();return S(o.pickupTypeSelected=a)})("openModalOnboardingFast",function(){P(t);let a=g();return S(a.openModalOnboardingFast())}),l()}if(i&2){let t=g();d("selectedType",t.pickupTypeSelected)}}function Zg(i,r){if(i&1){let t=k();s(0,"app-only-fast",6),b("openModalOnboardingFast",function(){P(t);let a=g();return S(a.openModalOnboardingFast())}),l()}if(i&2){let t=g();d("selectedFast",!1)("isDesktop",t.isDesktop)}}function Yg(i,r){if(i&1){let t=k();s(0,"app-only-desk",7),b("openModalOnboardingFast",function(){P(t);let a=g();return S(a.openModalOnboardingFast())}),l()}if(i&2){let t=g();d("selectedDesk",!1)("isDesktop",t.isDesktop)}}var Gn=(()=>
2{let r=class r{constructor(){this.createReservation=new W,this.openModalOnboarding=new W,this.PickUpTypeEnum=ee,this.googleAnalyticsService=I(Q)}ngOnInit(){(this.pickupType==ee.FAST||this.pickupType==ee.BALCAO)&&(this.pickupTypeSelected=this.pickupType),this.emitAvailablePickupType()}openModalOnboardingFast(){this.openModalOnboarding.emit()}handleCreateReservation(){this.emitSelectedPickUpType(this.pickupTypeSelected),this.createReservation.emit(this.pickupTypeSelected)}emitAvailablePickupType(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"pickup_method",action:"impression",fast:this.pickupType===ee.FAST||this.pickupType===ee.TODOS,balcao:this.pickupType===ee.BALCAO||this.pickupType===ee.TODOS})}emitSelectedPickUpType(e){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"pickup_method",action:"clicked",fast:e===ee.FAST,balcao:e===ee.BALCAO,label:"continuar"})}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-pickup-type-selector"]],inputs:{pickupType:"pickupType",isDesktop:"isDesktop"},outputs:{createReservation:"createReservation",openModalOnboarding:"openModalOnboarding"},decls:7,vars:7,consts:[[1,"container","main",3,"ngSwitch"],["data-testid","highlight-fast",3,"selectedType","selected","openModalOnboardingFast",4,"ngSwitchCase"],["data-testid","only-fast",3,"selectedFast","isDesktop","openModalOnboardingFast",4,"ngSwitchCase"],["data-testid","only-desk",3,"selectedDesk","isDesktop","openModalOnboardingFast",4,"ngSwitchDefault"],["data-testid","create-reservation",3,"click","disabled"],["data-testid","highlight-fast",3,"selected","openModalOnboardingFast","selectedType"],["data-testid","only-fast",3,"openModalOnboardingFast","selectedFast","isDesktop"],["data-testid","only-desk",3,"openModalOnboardingFast","selectedDesk","isDesktop"]],template:function(a,o){a&1&&(s(0,"div",0),C(1,Kg,1,1,"app-highlight-fast",1)(2,Zg,1,2,"app-only-fast",2)(3,Yg,1,2,"app-only-desk",3),s(4,"ds-new-button",4),b("click",function(){return o.handleCreateReservation()}),p(5),c(6,"translate"),l()()),a&2&&(d("ngSwitch",o.pickupType),n(),d("ngSwitchCase",o.PickUpTypeEnum.TODOS),n(),d("ngSwitchCase",o.PickUpTypeEnum.FAST),n(2),d("disabled",!o.pickupTypeSelected),n(),f(" ",u(6,5,"reserva.passo4.reserve")," "))},dependencies:[U,Oa,ka,Hr,$l,Wl,Kl,oe,J,A,T],styles:[".main[_ngcontent-%COMP%]{margin-top:5rem;display:flex;align-items:center;flex-direction:column;gap:5rem}"]});let i=r;return i})();var ra=(()=>{let r=class r{constructor(){this.theme="default"}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-secure-online-payment"]],inputs:{theme:"theme"},decls:9,vars:9,consts:[["data-testid","secure-online-payment"],["svgName","shield-lock",1,"secure-online-payment__icon"],[1,"secure-online-payment__content"],[1,"secure-online-payment__content__title"],[1,"secure-online-payment__content__message"]],template:function(a,o){a&1&&(s(0,"div",0),h(1,"app-icon-svg",1),s(2,"div",2)(3,"h4",3),p(4),c(5,"translate"),l(),s(6,"p",4),p(7),c(8,"translate"),l()()()),a&2&&(Xt(yo("secure-online-payment secure-online-payment--",o.theme)),n(4),f(" ",u(5,5,"secureOnlinePayment.title")," "),n(3),f(" ",u(8,7,"secureOnlinePayment.message")," "))},dependencies:[U,ni,T],styles:[".secure-online-payment[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem;align-items:center;justify-content:flex-start;background-color:#d1f5dc}.secure-online-payment--border[_ngcontent-%COMP%]{padding:1.6rem;border-radius:.5rem}.secure-online-payment__icon[_ngcontent-%COMP%]{color:#01602a;width:2.6rem;height:2.6rem}.secure-online-payment__content__title[_ngcontent-%COMP%]{margin-bottom:.4rem;color:var(--lds-color-accent-primary-default);font-family:Inter,LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.4rem;font-weight:600;line-height:15px;text-transform:none}.secure-online-payment__content__message[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-high);font-family:Inter,LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.4rem;font-weight:400;line-height:15px;text-transform:none}[_nghost-%COMP%] .mat-icon{width:2.6rem!important;height:2.6rem!important}"]});let i=r;return i})();var Xg=i=>({cancelationPercentage:i}),Jg=i=>({noShowPercentage:i}),nd=(()=>
2{let r=class r{constructor(e,a){this.translateService=e,this.featureFlagService=a,this.valorInputCheck=!1,this.aceitePoliticaCancelamento=new W}ngOnInit(){this.getValueToggleTermSRC(),this.getTextToDisplay()}getValueToggleTermSRC(){this.toggleTermSRC=this.featureFlagService.valueFlag("termo_aceite_scr")}getTextToDisplay(){switch(this.translateService.currentLang?.substring(0,2)){case"pt":this.selectedText=this.toggleTermSRC?.textoPt;break;case"es":this.selectedText=this.toggleTermSRC?.textoEs;break;case"en":this.selectedText=this.toggleTermSRC?.textoEn;break;default:this.selectedText=this.toggleTermSRC?.textoPt}}handlePoliticaCancelamento(){this.valorInputCheck=!this.valorInputCheck,this.aceitePoliticaCancelamento.emit(this.valorInputCheck)}};r.\u0275fac=function(a){return new(a||r)(v(G),v(wt))},r.\u0275cmp=M({type:r,selectors:[["app-politicas-no-show"]],inputs:{noShow:"noShow"},outputs:{aceitePoliticaCancelamento:"aceitePoliticaCancelamento"},standalone:!1,decls:22,vars:28,consts:[[1,"politica-cancelamento"],[1,"politica-cancelamento__titulo"],[1,"politica-cancelamento__texto"],[1,"politica-cancelamento__texto",3,"innerHTML"],[1,"input-check"],["type","checkbox","data-testid","input-checkbox-politicas-no-show",3,"click","value"]],template:function(a,o){a&1&&(s(0,"section",0)(1,"strong",1),p(2),c(3,"translate"),l(),s(4,"p",2),p(5),c(6,"translate"),l(),h(7,"p",3),c(8,"translate"),h(9,"p",3),c(10,"translate"),h(11,"p",3),c(12,"translate"),h(13,"p",3),c(14,"translate"),l(),s(15,"div",4)(16,"input",5),b("click",function(){return o.handlePoliticaCancelamento()}),l(),s(17,"label"),p(18),c(19,"translate"),s(20,"span"),p(21,"*"),l()()()),a&2&&(n(2),D(u(3,8,"reserva.noShow.politicaCancelamento.titulo")),n(3),f(" ",u(6,10,"reserva.noShow.politicaCancelamento.descricao")," "),n(2),d("innerHTML",y(8,12,"reserva.noShow.politicaCancelamento.item1",L(24,Xg,o.noShow==null?null:o.noShow.percentualCancelamento)),te),n(2),d("innerHTML",y(10,15,"reserva.noShow.politicaCancelamento.item2",L(26,Jg,o.noShow==null?null:o.noShow.percentualNoShow)),te),n(2),d("innerHTML",u(12,18,"reserva.noShow.politicaCancelamento.item3"),te),n(2),d("innerHTML",u(14,20,"reserva.noShow.politicaCancelamento.item4"),te),n(3),d("value",o.valorInputCheck),n(2),f(" ",o.selectedText?o.selectedText:u(19,22,"reserva.noShow.textoPoliticaCancelamento")," "))},dependencies:[T],styles:['.politica-cancelamento__texto[_ngcontent-%COMP%], .politica-cancelamento__titulo[_ngcontent-%COMP%]{font-size:1.2rem;line-height:2rem}.input-check[_ngcontent-%COMP%]{align-items:center;margin-top:1.8rem;display:grid;grid-template-columns:28px 1fr}.input-check[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{appearance:none;cursor:pointer;height:2rem;margin:.8rem;margin-left:0;width:2rem}.input-check[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:before{background-color:#fff;border-radius:.5rem;border:.2rem solid #01602a;content:"";height:inherit;position:absolute;width:inherit}.input-check[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked:before{background-color:#01602a;border-radius:.5rem;border:.2rem solid #01602a;content:"";height:inherit;position:absolute;width:inherit}.input-check[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked:after{border-color:#fff;border-style:solid;border-width:0 .3rem .3rem 0;content:" ";height:1.4rem;margin-left:.6rem;margin-top:.14rem;position:absolute;transform:rotate(45deg);width:.7rem}.input-check[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#383838;font-size:1.4rem;line-height:1.6rem}.input-check[_ngcontent-%COMP%] label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#01602a;font-size:1.6rem}']});let i=r;return i})();var rd=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=Rt({type:r}),r.\u0275inj=Et({imports:[U,Vo,A]});let i=r;return i})();var sd=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=Rt({type:r}),r.\u0275inj=Et({imports:[U,Zt,Cs]});let i=r;return i})();var t_=(i,r,t)=>({startDate:i,endDate:r,days:t}),jn=(()=>
2{let r=class r{constructor(){this.dialogRef=I(Y),this.data=I(ne)}close(e){this.dialogRef.close(e)}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-progressive-discount-exit-modal"]],decls:24,vars:32,consts:[[3,"showModalCloseButton"],[1,"progressive-discount-exit-modal"],["data-testid","title",1,"progressive-discount-exit-modal__title"],["data-testid","discount-warning"],["data-testid","period-info"],[1,"progressive-discount-exit-modal__footer"],["data-testid","question",1,"progressive-discount-exit-modal__footer-question"],[1,"progressive-discount-exit-modal__footer-actions"],["theme","secondary","data-testid","no-btn",1,"progressive-discount-exit-modal__button",3,"click","fullwidth"],["data-testid","yes-btn",1,"progressive-discount-exit-modal__button",3,"click","fullwidth"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"div",1)(2,"p",2),p(3),c(4,"translate"),l(),s(5,"p",3),p(6),c(7,"translate"),l(),s(8,"p",4),p(9),c(10,"date"),c(11,"date"),c(12,"translate"),l(),s(13,"footer",5)(14,"p",6),p(15),c(16,"translate"),l(),s(17,"div",7)(18,"ds-new-button",8),b("click",function(){return o.close(!1)}),p(19),c(20,"translate"),l(),s(21,"ds-new-button",9),b("click",function(){return o.close(!0)}),p(22),c(23,"translate"),l()()()()()),a&2&&(d("showModalCloseButton",!1),n(3),f(" ",u(4,9,"components.dumbs.progressiveDiscountExitModal.attentionTitle")," "),n(3),f(" ",u(7,11,"components.dumbs.progressiveDiscountExitModal.discountWarning")," "),n(3),f(" ",y(12,19,"components.dumbs.progressiveDiscountExitModal.periodInfo",Kt(28,t_,y(10,13,o.data==null?null:o.data.startDate,"dd/MM/yyyy"),y(11,16,o.data==null?null:o.data.endDate,"dd/MM/yyyy"),o.data==null?null:o.data.days))," "),n(6),f(" ",u(16,22,"components.dumbs.progressiveDiscountExitModal.confirmQuestion")," "),n(3),d("fullwidth",!0),n(),f(" ",u(20,24,"components.dumbs.progressiveDiscountExitModal.no")," "),n(2),d("fullwidth",!0),n(),f(" ",u(23,26,"components.dumbs.progressiveDiscountExitModal.yes")," "))},dependencies:[U,se,oe,J,A,Ta,T],styles:[".progressive-discount-exit-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.progressive-discount-exit-modal__title[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700}.progressive-discount-exit-modal__footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.progressive-discount-exit-modal__footer-question[_ngcontent-%COMP%]{font-weight:700}.progressive-discount-exit-modal__footer-actions[_ngcontent-%COMP%]{display:flex;gap:1.5rem}.progressive-discount-exit-modal__button[_ngcontent-%COMP%]{width:100%}"]});let i=r;return i})();var jt=(function(i){return i.Opcionais="opcionais",i.Equipamentos="equipamentos",i.GrupoDeVeiculos="grupodeveiculos",i})(jt||{});var di=class{},li=class{},Ni=class{},Ui=class{},lo=class{},qn=class{},Hn=class{},$n=class{};var Wn=class extends li{};var sa=class extends li{};var Kn=class extends li{};var ha=class extends li{};var Zn=class extends li{};var Yn=(()=>{let r=class r{constructor(e){this.gaService=e}preencherPurchase(e,a,o,m){this.gaService.preencherDataLayer(this.obterEcommercePurchase(e,a,o,m))}preencherCheckout(e){this.gaService.preencherDataLayer(this.obterEcommerceCheckout(e))}preencherClick(e,a,o){this.gaService.preencherDataLayer(this.obterEcommerceClick(e,a,o))}preencherAdd(e,a){this.gaService.preencherDataLayer(this.obterEcommerceAddToCart(e,a))}preencherRemove(e,a){this.gaService.preencherDataLayer(this.obterEcommerceRemove(e,a))}preencherDetail(e){this.gaService.preencherDataLayer(this.obterEcommerceDetail(e))}preencherImpressionPasso2(e,a,o){this.gaService.preencherDataLayer(this.obterEcommerceImpressionPasso2(e,a,o))}preencherImpressionPasso3(e){this.gaService.preencherDataLayer(this.obterEcommerceImpressionPasso3(e))}obterEcommercePurchase(e,a,o,m){this.produto=new Array;let _=new di;_.event="eec.purchase",_.score=m,_.ecommerce=new Zn,_.ecommerce.currencyCode=this.verificaMoeda(e),_.ecommerce.purchase=new Ni,_.ecommerce.purchase.actionField=new Ui,e.reservaRealizadaNr?_.ecommerce.purchase.actionField.id=e.reservaRealizadaNr.localizador:_.e
2commerce.purchase.actionField.id=Math.floor(Math.random()*999999999999).toString(),_.ecommerce.purchase.actionField.action="purchase",_.ecommerce.purchase.actionField.revenue=e.ofertaSelecionada.valorTotal.toFixed(2).toString(),e.reservaRealizadaNr?_.ecommerce.purchase.actionField.coupon=e.reservaRealizadaNr.codigoPromocional:_.ecommerce.purchase.actionField.coupon=null,_.ecommerce.purchase.products=this.preencherTodosProdutos(e),_.user_data=new qn,_.user_data.email_address=o;let x=this.splitName(a);return _.user_data.address=new Hn,_.user_data.address.first_name=x.first,_.user_data.address.last_name=x.lastName,_}obterEcommerceCheckout(e){this.produto=new Array;let a=new di;return a.event="eec.checkout",a.ecommerce=new Wn,a.ecommerce.currencyCode=this.verificaMoeda(e),a.ecommerce.checkout=new Ni,a.ecommerce.checkout.actionField=new Ui,a.ecommerce.checkout.actionField.action="checkout",a.ecommerce.checkout.actionField.step="step:1",a.ecommerce.checkout.products=this.preencherTodosProdutos(e),a}obterEcommerceDetail(e){this.produto=new Array;let a=new di;a.event="eec.productDetail",a.ecommerce=new Kn,a.ecommerce.detail=new Ni,a.ecommerce.detail.actionField=new Ui,a.ecommerce.detail.actionField.action="Detail",a.ecommerce.detail.actionField.list="Passo 3";let o=new Array,m=new lo;return m.id=e.grupoSelecionado.codigoLocaliza,m.name=this.getNomeCarroPadrao(e.grupoSelecionado),m.category=e.grupoSelecionado.codigoLocaliza+" - "+e.grupoSelecionado.nome,o.push(m),a.ecommerce.detail.products=o,a}obterEcommerceImpressionPasso3(e){this.produto=new Array;let a=new di;return a.event="eec.impressionView",a.ecommerce=new ha,a.ecommerce.currencyCode=e[0].tarifa.moeda==="R$"?"BRL":e[0].tarifa.moeda,a.ecommerce.impressions=this.preencherProdutoImpression(e),a}obterEcommerceClick(e,a,o){this.produto=new Array;let m=new di;switch(m.event="eec.productClick",m.ecommerce=new sa,m.ecommerce.click=new Ni,m.ecommerce.click.actionField=new Ui,m.ecommerce.click.actionField.list=a,m.ecommerce.click.actionField.action="click",o){case jt.GrupoDeVeiculos:{this.produtoGrupoVeiculo(e,!1);break}case jt.Equipamentos:{this.produtoEquipamento(e);break}case jt.Opcionais:{this.produtoOpcionais(e);break}}return m.ecommerce.click.products=this.produto,m}obterEcommerceImpressionPasso2(e,a,o){let m=new di;return m.event="eec.impressionView",m.ecommerce=new ha,m.ecommerce.currencyCode=e.ofertas[0].tarifa.moeda==="R$"?"BRL":e.ofertas[0].tarifa.moeda,m.ecommerce.impressions=new Array,m.ecommerce.impressions=this.preencherProdutoImpressionPasso2(e,a,o),m}obterEcommerceAddToCart(e,a){this.produto=new Array;let o=new di;switch(o.event="eec.addToCart",o.ecommerce=new sa,o.ecommerce.add=new Ni,o.ecommerce.add.actionField=new Ui,o.ecommerce.add.actionField.list="Passo 3",o.ecommerce.add.actionField.action="add",a){case jt.GrupoDeVeiculos:{this.produtoGrupoVeiculo(e,!1);break}case jt.Equipamentos:{this.produtoEquipamento(e);break}case jt.Opcionais:{this.produtoOpcionais(e);break}}return o.ecommerce.add.products=this.produto,o}obterEcommerceRemove(e,a){this.produto=new Array;let o=new di;switch(o.event="eec.removeFromCart",o.ecommerce=new sa,o.ecommerce.remove=new Ni,o.ecommerce.remove.actionField=new Ui,o.ecommerce.remove.actionField.list="Passo 3",o.ecommerce.remove.actionField.action="remove",a){case jt.GrupoDeVeiculos:{this.produtoGrupoVeiculo(e,!0);break}case jt.Equipamentos:{this.produtoEquipamento(e);break}case jt.Opcionais:{this.produtoOpcionais(e);break}}return o.ecommerce.remove.products=this.produto,o}produtoGrupoVeiculo(e,a){let o=new lo;e.grupoSelecionado!=null&&e.grupoSelecionado?(o.id=e.grupoSelecionado.codigoLocaliza,o.name=this.getNomeCarroPadrao(e.grupoSelecionado),o.category=e.grupoSelecionado.codigoLocaliza+" - "+e.grupoSelecionado.nome):(o.id=e.grupoVeiculo.codigoLocaliza,o.name=this.getNomeCarroPadrao(e.grupoVeiculo),o.category=e.grupoVeiculo.codigoLocaliza+" - "+e.grupoVeiculo.nome),e.ofertaSelecionada!=null&&e.ofertaSelecionada?(o.price=+e.ofertaSelecionada.tarifa.valorDiaria,o.variant=e.ofertaSelecionada.descricao,a&&(o.quantity=e.ofertaSelecionada.quantidadeDiarias)):(o.price=+e.tarifa.valorDiaria.toFixed(2),e.descricao&&(o.variant=e.descricao),a&&(o.quantity=e.quantidadeDiarias)),e.codigoPromocional&&(o.promotionalCode=e.codigoPromocional),this.produto.push(o)}produtoHoraExtra(e){if(e.quantidadeHorasExtras>0){let a=new lo;a.id="Hora Extra",a.name="Hora Extra",a.category=this.getNomeCarroPadrao(e.grupoSelecionado),a.price=e.ofertaSelecionada.tarifa.valorHoraExtra,a.quantity=e.quantidadeHorasExtras,this.produto.push(a)}}produtoTodosOpcionais(e){e.ofertaSelecionada.itens!=null&&e.ofertaSelecionada.itens.length>0&&e.ofertaSelecionada.itens.forEach(a=>{a.tipoItem===je.SERVICO&&a.selecionado&&this.produtoOpcionais(a,e.ofertaSelecionada.quantidadeDiarias)})}produtoOpcionais(e,a){let o=new lo;o.id=this.gerandoCodigo(e.descricao),o.name=e.descricao,o.category="Opcionais",o.price=e.valor,a!=null?o.quantity=a:e.ofertaSelecionada!=null&&(o.quantity=e.ofertaSelecionada.quantidadeDiarias),this.produto.push(o)}produtoTodosEquipamentos(e){e.ofertaSelecionada.itens!=null&&e.ofertaSelecionada.itens.length>0&&e.ofertaSelecionada.itens.forEach(a=>{a.tipoItem===je.EQUIPAMENTO&&a.selecionado&&this.produtoEquipamento(a)})}produtoEquipamento(e){let a=new lo;a.id=this.gerandoCodigo(e.descricao),a.name=e.descricao,a.category="Equipamentos",a.price=e.valor,a.quantity=+e.quantidade,this.produto.push(a)}preencherTodosProdutos(e){return this.produtoGrupoVeiculo(e,!0),this.produtoHoraExtra(e),this.produtoTodosOpcionais(e),this.produtoTodosEquipamentos(e),this.produto}preencherProdutoImpressionPasso2(e,a,o){let m=new Array;for(let _=a;_<=o;_++)if(e.ofertas[_]!=null&&e.ofertas[_]){let x={id:e.ofertas[_].grupoVeiculo.codigoLocaliza,list:"Passo 2",name:this.getNomeCarroPadrao(e.ofertas[_].grupoVeiculo),category:e.ofertas[_].grupoVeiculo.codigoLocaliza+" - "+e.ofertas[_].grupoVeiculo.nome,position:_,price:e.ofertas[_].tarifa.valorDiaria};e.codigoPromocional&&(x.promotionalCode=e.codigoPromocional),m.push(x)}return m}preencherProdutoImpression(e){let a=new Array,o=1;return e.forEach(m=>{let _=new $n;_.id=m.grupoVeiculo.codigoLocaliza,_.list="Passo 3",_.name=this.getNomeCarroPadrao(m.grupoVeiculo),_.category=m.grupoVeiculo.codigoLocaliza+" - "+m.grupoVeiculo.nome,_.position=o++,_.price=+m.tarifa.valorDiaria.toFixed(2),_.variant=m.descricao,e.codigoPromocional&&(_.promotionalCode=e.codigoPromocional),a.push(_)}),a}getNomeCarroPadrao(e){let a=e.veiculos?.find(m=>m.padraoGrupo===!0),o=e.veiculos?.length===1?"":" ou similar";return a?.nome?a.nome+o:!a&&e.veiculos?.length>0?(a=e.veiculos[0],a.nome+o):""}splitName(e){let a=e.split(" ").slice(0,1).join(" "),o=e.split(" ").slice(-1).join(" ");return{first:a,lastName:o}}gerandoCodigo(e){return e.match(/(?:^|\s)\S/g).toString().toUpperCase().replace(/, /g,"")}verificaMoeda(e){return e.ofertaSelecionada.tarifa.moeda==="R$"?"BRL":e.ofertaSelecionada.tarifa.moeda}};r.\u0275fac=function(a){return new(a||r)(ye(Q))},r.\u0275prov=$e({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();var i_=["dddInput"],o_=["numeroInput"],a_=(i,r)=>({"btn-submit-ds--disabled":i,"btn-submit-ds--no-hover":r}),n_=(i,r)=>({"col-xl-4":i,"col-xl-6":r});
2function r_(i,r){i&1&&(s(0,"div",4),h(1,"app-toast-erro"),l())}function s_(i,r){if(i&1){let t=k();s(0,"div",6)(1,"div",7)(2,"div",8)(3,"input",9),b("click",function(){P(t);let a=g(2);return S(a.confirmacaoAceiteTermoCondicoes())}),l(),s(4,"label",10),p(5),c(6,"translate"),l()()()()}if(i&2){let t=g(2);n(3),d("value",t.aceiteTermosCondicoes),n(2),D(u(6,2,"reserva.passo4.acceptTerms"))}}function l_(i,r){if(i&1&&C(0,s_,7,4,"div",5),i&2){let t=g();d("ngIf",t.temTermosConfigurado&&!t.agenciaColombiana)}}function c_(i,r){i&1&&h(0,"app-trigger-escassez")}function d_(i,r){if(i&1&&(s(0,"div",39),B(1,c_,1,0,"app-trigger-escassez"),l()),i&2){let t=g(3);n(),F(t.isWebview?-1:1)}}function p_(i,r){if(i&1){let t=k();s(0,"app-box-booking-summary",40),b("sawTotalValue",function(){P(t);let a=g(3);return S(a.sawTotalValueEvent())})("sawPreAuthorizationValue",function(){P(t);let a=g(3);return S(a.sawPreAuthorizationValueEvent())}),l()}if(i&2){let t=g(3);d("bookingData",t.reserva)("showPreAuthorization",t.showPreAutorizacao)("preAuthorizationValue",t.preAutorizacaoValue)("loadingPreAuthorization",t.carregandoPreAutorizacao)("errorPreAuthorization",t.ocorreuErroPreAutorizacao)}}function m_(i,r){i&1&&(h(0,"app-toast-informacao",41),c(1,"translate")),i&2&&d("mensagensInformacao",u(1,1,"reserva.passo4.msgToast"))}function u_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.validFullName")," "))}function f_(i,r){if(i&1&&(s(0,"mat-option",50),p(1),l()),i&2){let t=r.$implicit;d("value",t),n(),f(" ",t.nomePais," ")}}function g_(i,r){i&1&&(s(0,"mat-option"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.paisNaoEncontrado")," "))}function __(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.informNationality")," "))}function h_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.validEmail")," "))}function v_(i,r){if(i&1&&(s(0,"option",50),p(1),l()),i&2){let t=r.$implicit;d("value",Re(t.codigoTipoDocumento)),n(),f(" ",t.descricaoDocumento," ")}}function C_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.validDocument")," "))}function b_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.number")," "))}function x_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.validNumber")," "))}function P_(i,r){if(i&1){let t=k();V(0),s(1,"div",51)(2,"mat-form-field",52)(3,"mat-label"),p(4),c(5,"translate"),l(),s(6,"select",53),b("change",function(a){P(t);let o=g(4);return S(o.onChangeTipoDocumento(a))}),C(7,v_,2,3,"option",46),l(),C(8,C_,3,3,"mat-error",12),l()(),s(9,"div",51)(10,"mat-form-field",52)(11,"mat-label"),p(12),c(13,"translate"),l(),h(14,"input",54),c(15,"translate"),C(16,b_,3,3,"mat-error",12)(17,x_,3,3,"mat-error",12),l()(),z()}if(i&2){let t,e,a=g(4);n(2),d("hideRequiredMarker",!a.numeroDocumentoObrigatorio),n(2),f(" ",u(5,11,"reserva.passo4.document")," "),n(3),d("ngForOf",a.documentosDisponiveisParaSelecao),n(),d("ngIf",a.verificaExibicaoMensagemErro("tipoDocumento")),n(2),d("hideRequiredMarker",!a.numeroDocumentoObrigatorio),n(2),f(" ",u(13,13,"reserva.passo4.number")," "),n(2),d("placeholder",Re(u(15,15,"reserva.passo4.document")))("mask",a.mascaraCpf),n(2),d("ngIf",a.verificaExibicaoMensagemErro("numeroDocumento")&&((t=a.formulario.get("numeroDocumento"))==null?null:t.hasError("numericOnly"))),n(),d("ngIf",a.verificaExibicaoMensagemErro("numeroDocumento")&&!((e=a.formulario.get("numeroDocumento"))!=null&&e.hasError("numericOnly")))}}function S_(i,r){if(i&1){let t=k();s(0,"section",4)(1,"div",6)(2,"div",7)(3,"div",6)(4,"div",7)(5,"mat-form-field")(6,"mat-label"),p(7),c(8,"translate"),l(),h(9,"input",42),c(10,"translate"),C(11,u_,3,3,"mat-error",12),l()(),s(12,"div",43)(13,"mat-form-field")(14,"mat-label"),p(15),c(16,"translate"),l(),h(17,"input",44),s(18,"mat-autocomplete",45,2),b("optionSelected",function(a){P(t);let o=g(3);return S(o.selecionaNacionalidade(a.option.value))}),C(20,f_,2,2,"mat-option",46),c(21,"async"),C(22,g_,3,3,"mat-option",12),l(),C(23,__,3,3,"mat-error",12),l()(),s(24,"div",7)(25,"mat-form-field",47),b("click",function(){P(t);let a=g(3);
2return S(a.tratarValidadorEmail())}),s(26,"mat-label"),p(27),c(28,"translate"),l(),h(29,"input",48),c(30,"translate"),C(31,h_,3,3,"mat-error",12),l()(),s(32,"div",43)(33,"app-form-celular",49),b("telefoneInserido",function(a){P(t);let o=g(3);return S(o.handleTelefoneInserido(a))})("formularioValido",function(a){P(t);let o=g(3);return S(o.handleFormularioTelefoneValido(a))}),l()(),C(34,P_,18,17,"ng-container",12),l()()()()}if(i&2){let t=ue(19),e=g(3);n(7),f(" ",u(8,16,"reserva.passo4.fullName")," "),n(2),d("placeholder",Re(u(10,18,"reserva.passo4.inputFullName"))),n(2),d("ngIf",e.verificaExibicaoMensagemErro("nome")),n(4),D(u(16,20,"reserva.passo4.nationality")),n(2),d("matAutocomplete",t),n(),d("displayWith",e.valorExibirAutoCompleteNacionalidade),n(2),d("ngForOf",u(21,22,e.filtroNacionalidades)),n(2),d("ngIf",e.paisNaoEncontrado),n(),d("ngIf",e.verificaExibicaoMensagemErro("nacionalidade")),n(4),f(" ",u(28,24,"reserva.passo4.email")," "),n(2),d("placeholder",Re(u(30,26,"reserva.passo4.inputEmail"))),n(2),d("ngIf",e.verificaExibicaoMensagemErro("email")),n(2),d("numeroTelefone",e.celularCliente),n(),d("ngIf",e.numeroDocumentoObrigatorio)}}function y_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.validFullName")," "))}function M_(i,r){if(i&1&&(s(0,"mat-option",50),p(1),l()),i&2){let t=r.$implicit;d("value",t),n(),f(" ",t.nomePais," ")}}function D_(i,r){i&1&&(s(0,"mat-option"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.paisNaoEncontrado")," "))}function w_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.informNationality")," "))}function O_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.validEmail")," "))}function k_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.validEmail")," "))}function I_(i,r){if(i&1&&(s(0,"option",50),p(1),l()),i&2){let t=r.$implicit;d("value",Re(t.codigoTipoDocumento)),n(),f(" ",t.descricaoDocumento," ")}}function T_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.validDocument")," "))}function A_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"formValidators.number")," "))}function E_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.validNumber")," "))}function R_(i,r){if(i&1){let t=k();V(0),s(1,"div",51)(2,"mat-form-field",52)(3,"mat-label"),p(4),c(5,"translate"),l(),s(6,"select",53),b("change",function(a){P(t);let o=g(4);return S(o.onChangeTipoDocumento(a))}),C(7,I_,2,3,"option",46),l(),C(8,T_,3,3,"mat-error",12),l()(),s(9,"div",51)(10,"mat-form-field",52)(11,"mat-label"),p(12),c(13,"translate"),l(),h(14,"input",58),c(15,"translate"),C(16,A_,3,3,"mat-error",12)(17,E_,3,3,"mat-error",12),l()(),z()}if(i&2){let t,e,a=g(4);n(2),d("hideRequiredMarker",!a.numeroDocumentoObrigatorio),n(2),f(" ",u(5,11,"reserva.passo4.document")," "),n(3),d("ngForOf",a.documentosDisponiveisParaSelecao),n(),d("ngIf",a.verificaExibicaoMensagemErro("tipoDocumento")),n(2),d("hideRequiredMarker",!a.numeroDocumentoObrigatorio),n(2),f(" ",u(13,13,"reserva.passo4.number")," "),n(2),d("placeholder",Re(u(15,15,"reserva.passo4.document")))("mask",a.mascaraCpf),n(2),d("ngIf",a.verificaExibicaoMensagemErro("numeroDocumento")&&((t=a.formulario.get("numeroDocumento"))==null?null:t.hasError("numericOnly"))),n(),d("ngIf",a.verificaExibicaoMensagemErro("numeroDocumento")&&!((e=a.formulario.get("numeroDocumento"))!=null&&e.hasError("numericOnly")))}}function B_(i,r){if(i&1){let t=k();s(0,"section")(1,"div",6)(2,"div",59)(3,"div",7)(4,"h1"),p(5),c(6,"translate"),l()(),s(7,"div",7)(8,"app-form-endereco",60),b("enderecoInserido",function(a){P(t);let o=g(4);return S(o.handleEnderecoInserido(a))})("formularioValido",function(a){P(t);let o=g(4);return S(o.handleFormularioEnderecoValido(a))}),l()()()()()}i&2&&(n(5),D(u(6,7,"reserva.passo4.tituloEndereco")),n(3),d("exibirLogradouro",!1)("exibirCampoComplemento",!1)("exibirCampoBairro",!0)("exibirCampoNacionalidade",!0)("exibirCampoTelefoneFixo",!1)("enderecoParaPagamentoCartao",!0))}function F_(i,r){if(i&1){let t=k();s(0,"section",4)(1,"div",6)(2,"div",7)(3,"div",6)(4,"div",7)(5,"mat-form-field")(6,"mat-label"),p(7),c(8,"translate"),l(),h(9,"input",42),c(10,"translate"),C(11,y_,3,3,"mat-error",12),l()(),s(12,"div",43)(13,"mat-form-field")(14,"mat-label"),p(15),c(16,"translate"),l(),h(17,"input",44),s(18,"mat-autocomplete",45,2),b("optionSelected",function(a){P(t);let o=g(3);return S(o.selecionaNacionalidade(a.option.value))}),C(20,M_,2,2,"mat-option",46),c(21,"async"),C(22,D_,3,3,"mat-option",12),l(),C(23,w_,3,3,"mat-error",12),l()(),s(24,"div",55)(25,"mat-form-field",47),b("click",function(){P(t);let a=g(3);
2return S(a.tratarValidadorEmail())}),s(26,"mat-label"),p(27),c(28,"translate"),l(),h(29,"input",48),c(30,"translate"),C(31,O_,3,3,"mat-error",12),l()(),s(32,"div",55)(33,"mat-form-field",47),b("click",function(){P(t);let a=g(3);return S(a.tratarValidadorConfirmarEmail())}),s(34,"mat-label"),p(35),c(36,"translate"),l(),h(37,"input",56),c(38,"translate"),C(39,k_,3,3,"mat-error",12),l()(),s(40,"div",57)(41,"app-form-celular",49),b("telefoneInserido",function(a){P(t);let o=g(3);return S(o.handleTelefoneInserido(a))})("formularioValido",function(a){P(t);let o=g(3);return S(o.handleFormularioTelefoneValido(a))}),l()(),C(42,R_,18,17,"ng-container",12),l()()(),C(43,B_,9,9,"section",12),l()}if(i&2){let t=ue(19),e=g(3);n(7),f(" ",u(8,22,"reserva.passo4.fullName")," "),n(2),d("placeholder",Re(u(10,24,"reserva.passo4.inputFullName"))),n(2),d("ngIf",e.verificaExibicaoMensagemErro("nome")),n(4),D(u(16,26,"reserva.passo4.nationality")),n(2),d("matAutocomplete",t),n(),d("displayWith",e.valorExibirAutoCompleteNacionalidade),n(2),d("ngForOf",u(21,28,e.filtroNacionalidades)),n(2),d("ngIf",e.paisNaoEncontrado),n(),d("ngIf",e.verificaExibicaoMensagemErro("nacionalidade")),n(4),f(" ",u(28,30,"reserva.passo4.email")," "),n(2),d("placeholder",Re(u(30,32,"reserva.passo4.inputEmail"))),n(2),d("ngIf",e.verificaExibicaoMensagemErro("email")),n(4),f(" ",u(36,34,"reserva.passo4.confirmarEmail")," "),n(2),d("placeholder",Re(u(38,36,"reserva.passo4.confirmarinputEmail"))),n(2),d("ngIf",e.verificaExibicaoMensagemErro("confirmarEmail")),n(),d("ngClass",Ue(38,n_,!e.isPrePagamentoMexico,e.isPrePagamentoMexico)),n(),d("numeroTelefone",e.celularCliente),n(),d("ngIf",e.numeroDocumentoObrigatorio),n(),d("ngIf",e.carregouFlagEndereco&&e.exibirEnderecoSite&&!e.agenciaColombiana)}}function V_(i,r){if(i&1&&(s(0,"div",61),h(1,"app-info-toast-accordion",62),l()),i&2){let t=g(3);n(),d("title",t.tituloTermoCondicoes)("preview",t.previaTermoCondicoes)("content",t.conteudoTermoCondicoes)}}function z_(i,r){i&1&&(s(0,"section",4)(1,"div",6)(2,"div",7)(3,"h2"),p(4),c(5,"translate"),l()()()()),i&2&&(n(4),D(u(5,1,"reserva.passo4.additionalInformation")))}function L_(i,r){if(i&1&&(s(0,"option",50),p(1),l()),i&2){let t=r.$implicit;d("value",Re(t)),n(),f(" ",t," ")}}function N_(i,r){i&1&&(s(0,"mat-error"),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo4.validFlightNumber")," "))}function U_(i,r){if(i&1&&(V(0),s(1,"div",43)(2,"mat-form-field")(3,"mat-label"),p(4),c(5,"translate"),l(),s(6,"select",63),C(7,L_,2,3,"option",46),l()()(),s(8,"div",43)(9,"mat-form-field")(10,"mat-label"),p(11),c(12,"translate"),l(),h(13,"input",64),c(14,"translate"),C(15,N_,3,3,"mat-error",12),l()(),z()),i&2){let t=g(3);n(4),f(" ",u(5,6,"reserva.passo4.flightCompanyName")," "),n(3),d("ngForOf",t.companhiasAereasList),n(4),f(" ",u(12,8,"reserva.passo4.flightNumber")," "),n(2),d("placeholder",Re(u(14,10,"reserva.passo4.flightNumberPlaceholder"))),n(2),d("ngIf",t.verificaExibicaoMensagemErro("numeroVoo"))}}function G_(i,r){if(i&1){let t=k();V(0),s(1,"section",65)(2,"div",4)(3,"div",6)(4,"div",7)(5,"app-prepaid-brasil",66),b("prepaidSelected",function(a){P(t);let o=g(3);return S(o.handlePrepaidBrasilSelected(a))}),l()()()()(),z()}if(i&2){let t=g(3);n(5),d("paymentMethodLink",t.paymentMethodLink)("currency",t.ofertaSelecionada==null||t.ofertaSelecionada.tarifa==null?null:t.ofertaSelecionada.tarifa.moeda)("totalWithoutPrepayment",t.initialTotalWithoutPrepayment)}}function j_(i,r){if(i&1){let t=k();s(0,"section",69)(1,"div",6)(2,"div",7)(3,"app-politicas-no-show",70),b("aceitePoliticaCancelamento",function(a){P(t);let o=g(4);return S(o.handleAceitePoliticaCancelamento(a))}),l()()()()}if(i&2){let t=g(4);n(3),d("noShow",t.ofertaSelecionada==null?null:t.ofertaSelecionada.noShow)}}function q_(i,r){if(i&1){let t=k();V(0),s(1,"section",65)(2,"div",4)(3,"div",6)(4,"div",7)(5,"app-cartoes-credito",67),c(6,"translate"),b("cartaoCreditoSelecionado",function(a){P(t);let o=g(3);return S(o.handleCartaoCreditoSelecionado(a))}),l()()()()(),C(7,j_,4,1,"section",68),z()}if(i&2){let t=g(3);n(5),d("mensagensReservaInformativa",t.mostrarFccra?u(6,5,"reserva.fccra.mensagemFccra"):t.mensagemOfertaNoShow)("mensagensReservaInformativaFullscreen",!0)("mostraSelecaoCartao",!0)("localImplementacao","Reserva"),n(2),d("ngIf",(t.usuario==null?null:t.usuario.primeiroNome)&&t.ofertaNoShow)}}function H_(i,r){i&1&&Ee(0)}function $_(i,r){if(i&1&&(s(0,"div"),C(1,H_,1,0,"ng-container",71),l()),i&2){g(3);let t=ue(2);n(),d("ngTemplateOutlet",t)}}function W_(i,r){i&1&&(s(0,"label"),p(1),c(2,"translate"),l()),i&2&&(n(),D(u(2,1,"reserva.passo4.optinReembolso")))}function K_(i,r){if(i&1){let t=k();s(0,"label",74),p(1),c(2,"translate"),s(3,"span",75),b("click",function(){P(t);let a=g(4);return S(a.openDialogTermos())})("keydown",function(a){P(t);let o=g(4);return S(o.openDialogTermos(a))}),p(4),c(5,"translate"),l(),p(6),c(7,"translate"),l()}i&2&&(n(),f(" ",u(2,3,"reserva.passo4.accept")," "),n(3),f(" ",u(5,5,"reserva.passo4.termsAndConditions")," "),n(2),f(" ",u(7,7,"reserva.passo4.rateTerms")," "))}function Z_(i,r){if(i&1){let t=k();V(0),s(1,"div",6)(2,"div",7)(3,"div",8)(4,"input",72),b("click",function(){P(t);let a=g(3);
2return S(a.agenciaColombiana?a.confirmacaoAceiteTermoCondicoes():a.confirmacaoReembolso())}),l(),C(5,W_,3,3,"label",12)(6,K_,8,9,"label",73),l()()(),z()}if(i&2){let t=g(3);n(4),d("checked",t.agenciaColombiana?t.aceiteTermosCondicoes:t.checkReembolso),n(),d("ngIf",!t.agenciaColombiana),n(),d("ngIf",t.agenciaColombiana)}}function Y_(i,r){if(i&1){let t=k();s(0,"div",6)(1,"div",7)(2,"div",8)(3,"input",76),b("click",function(){P(t);let a=g(3);return S(a.confirmacaoPrivacyTerms())})("keypress",function(){P(t);let a=g(3);return S(a.confirmacaoPrivacyTerms())})("keydown",function(){P(t);let a=g(3);return S(a.confirmacaoPrivacyTerms())})("keyup",function(){P(t);let a=g(3);return S(a.confirmacaoPrivacyTerms())}),l(),s(4,"label"),p(5),c(6,"translate"),s(7,"button",77),b("click",function(){P(t);let a=g(3);return S(a.openDialogPrivacy())}),p(8),c(9,"translate"),l(),p(10," * "),l()()()()}if(i&2){let t=g(3);n(3),d("checked",t.aceitePrivacyTerms),n(2),f(" ",u(6,3,"reserva.passo4.privacyText1"),"\xA0 "),n(3),f(" ",u(9,5,"reserva.passo4.privacyText2")," ")}}function Q_(i,r){i&1&&(s(0,"section",78)(1,"div",6)(2,"div",7),h(3,"app-info",79),c(4,"translate"),c(5,"translate"),l()()()),i&2&&(n(3),d("title",u(4,3,"msgAdditionalphysical.title"))("description",u(5,5,"msgAdditionalphysical.description"))("color","info"))}function X_(i,r){i&1&&Ee(0)}function J_(i,r){if(i&1&&(s(0,"div"),C(1,X_,1,0,"ng-container",71),l()),i&2){g(3);let t=ue(2);n(),d("ngTemplateOutlet",t)}}function eh(i,r){if(i&1){let t=k();s(0,"div",6)(1,"div",80)(2,"button",81),b("click",function(){P(t);let a=g(3);return S(a.openDialogTermos())}),h(3,"ds-icon",82),p(4),c(5,"translate"),l()()()}i&2&&(n(3),d("icon","icon_double_arrow")("size","xxs")("color","primary"),n(),f(" ",u(5,4,"reserva.passo4.terms")," "))}function th(i,r){i&1&&(s(0,"div",6)(1,"div",83),h(2,"app-secure-online-payment",84),l()()),i&2&&(n(2),d("theme","border"))}function ih(i,r){if(i&1&&(s(0,"div",6)(1,"div",85),h(2,"app-toast-erro",86),l()()),i&2){let t=g(3);n(2),d("mensagensErro",t.mensagensErro)}}function oh(i,r){if(i&1&&(V(0),p(1),c(2,"translate"),c(3,"translate"),c(4,"translate"),c(5,"translate"),z()),i&2){let t=g(3);n(),f(" ",t.isPrePagamentoMexico?t.agenciaColombiana?u(2,1,"reserva.passo4.confirmAndPay"):u(3,3,"reserva.passo4.pagar"):t.shouldOpenPickupTypeSelctionStep?u(4,5,"reserva.passo4.continue"):u(5,7,"reserva.passo4.reserve")," ")}}function ah(i,r){i&1&&h(0,"mat-spinner",87)}function nh(i,r){i&1&&(s(0,"p",88),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"components.dumbs.prePaidBrasil.continueInfo")," "))}function rh(i,r){if(i&1){let t=k();s(0,"main",13),h(1,"app-breadcrumb",14),s(2,"section",15),h(3,"app-barra-navegacao-reserva",16),C(4,d_,2,1,"div",17),l(),s(5,"div",18)(6,"div",19)(7,"div",20)(8,"div",21)(9,"aside"),C(10,p_,1,5,"app-box-booking-summary",22),l()()()(),s(11,"section",23)(12,"div",6)(13,"div",7)(14,"h1"),p(15),c(16,"translate"),l(),s(17,"p",24),p(18),c(19,"translate"),l(),C(20,m_,2,3,"app-toast-informacao",25),s(21,"p",26),p(22),c(23,"translate"),l()()()(),s(24,"form",27),C(25,S_,35,28,"section",28)(26,F_,44,41,"section",28),s(27,"section",4)(28,"div",6),C(29,V_,2,3,"div",29),l()(),C(30,z_,6,3,"section",28),s(31,"section",30)(32,"div",6)(33,"div",7)(34,"div",6)(35,"div",31)(36,"div",8)(37,"input",32),b("click",function(){P(t);let a=g(2);return S(a.toggleDadosVoo())}),l(),s(38,"label"),p(39),c(40,"translate"),l()()(),C(41,U_,16,12,"ng-container",12),l()()()(),C(42,G_,6,3,"ng-container",12)(43,q_,8,7,"ng-container",12),s(44,"section",4),C(45,$_,2,1,"div",12)(46,Z_,7,3,"ng-container",12)(47,Y_,11,7,"div",5)(48,Q_,6,7,"section",33)(49,J_,2,1,"div",12)(50,eh,6,6,"div",5)(51,th,3,1,"div",5)(52,ih,3,1,"div",5),s(53,"div",6)(54,"div",34)(55,"div",35)(56,"ds-button",36),b("click",function(){P(t);let a=g(2);return S(a.onSubmit())}),C(57,oh,6,9,"ng-container",12)(58,ah,1,0,"mat-spinner",37),l(),C(59,nh,3,3,"p",38),l()()()()()()()}if(i&2){let t=g(2);Z("dados-pessoais--rent-in-mexico",t.rentInMexico),n(),d("breadCrumbs",t.breadCrumb),n(2),d("step",4)("isPrePagamentoMexico",t.isPrePagamentoMexico),n(),d("ngIf",t.exibirTriggerEscassez),n(6),d("ngIf",t.isDesktop),n(5),D(u(16,40,"reserva.passo4.title")),n(3),f(" ",u(19,42,"reserva.passo4.subtitle")," "),n(2),d("ngIf",!t.temTermosConfigurado),n(2),f(" ",u(23,44,"reserva.passo4.itensObrigatorios")," "),n(2),d("formGroup",t.formulario),n(),d("ngIf",!t.isPrePagamentoMexico),n(),d("ngIf",t.isPrePagamentoMexico),n(3),d("ngIf",t.temTermosConfigurado&&!t.agenciaColombiana),n(),d("ngIf",!t.temTermosConfigurado&&!t.agenciaColombiana),n(7),d("value",t.usuarioTemVoo),n(2),D(u(40,46,"reserva.passo4.flightInputField")),n(2),d("ngIf",t.usuarioTemVoo),n(),d("ngIf",t.isPrePaidBrasilActivated&&!t.prePaidBrasilAActivated),n(),d("ngIf",(t.usuario==null?null:t.usuario.primeiroNome)&&(t.ofertaNoShow||t.mostrarFccra)),n(2),d("ngIf",t.isPrePagamentoMexico),n(),d("ngIf",t.isPrePagamento||t.isPrePagamentoMexico),n(),d("ngIf",t.agenciaColombiana),n(),d("ngIf",t.isAdditionalPhysical&&(t.reserva==null?null:t.reserva.tipoRetiradaSelecionado)==="fast"),n(),d("ngIf",!t.isPrePagamentoMexico&&!t.agenciaColombiana),n(),d("ngIf",!(t.agenciaColombiana&&t.isPrePagamentoMexico)),n(),d("ngIf",(t.isPrePagamento||t.isPrePagamentoMexico)&&t.agenciaColombiana),n(),d("ngIf",t.toastErro),n(2),Z("col-12",t.agenciaColombiana&&t.isPrePagamentoMexico)("col-xl-8",t.agenciaColombiana&&t.isPrePagamentoMexico),n(2),Z("center-button",t.agenciaColombiana&&t.isPrePagamentoMexico),d("disabled",t.agenciaColombiana&&t.isPrePagamentoMexico&&!t.aceiteTermosCondicoes||t.agenciaColombiana&&
2!t.aceitePrivacyTerms||!t.agenciaColombiana&&(t.isPrePagamento||t.isPrePagamentoMexico)&&!t.checkReembolso||!t.formulario.valid||!t.formularioCelularValido||t.exibirEnderecoSite&&t.isPrePagamentoMexico&&!t.formularioEnderecoValido||t.ofertaNoShow&&(!t.ofertaNoShow||!t.cartaoCreditoId||!t.aceitePoliticaCancelamento)||t.isPrepaidBrasilSelectionRequired)("ngClass",Ue(48,a_,t.agenciaColombiana&&t.isPrePagamentoMexico&&!t.aceiteTermosCondicoes||t.agenciaColombiana&&!t.aceitePrivacyTerms||!t.agenciaColombiana&&(t.isPrePagamento||t.isPrePagamentoMexico)&&!t.checkReembolso||!t.formulario.valid||!t.formularioCelularValido||t.exibirEnderecoSite&&t.isPrePagamentoMexico&&!t.formularioEnderecoValido||t.ofertaNoShow&&(!t.ofertaNoShow||!t.cartaoCreditoId||!t.aceitePoliticaCancelamento)||t.isPrepaidBrasilSelectionRequired,t.carregandoDadosReserva)),n(),d("ngIf",!t.carregandoDadosReserva),n(),d("ngIf",t.carregandoDadosReserva),n(),d("ngIf",t.isPrePaidBrasilActivated)}}function sh(i,r){if(i&1&&(s(0,"div",91)(1,"div",85),h(2,"app-toast-erro",86),l()()),i&2){let t=g(3);n(2),d("mensagensErro",t.mensagensErro)}}function lh(i,r){if(i&1){let t=k();s(0,"div")(1,"app-pickup-type-selector",89),b("createReservation",function(a){P(t);let o=g(2);return S(o.createReservationAfterPickupSelection(a))})("openModalOnboarding",function(){P(t);let a=g(2);return S(a.openModalOnboardingFast())}),l(),C(2,sh,3,1,"div",90),l()}if(i&2){let t=g(2);n(),d("pickupType",t.pickupTypeDisplay)("isDesktop",t.isDesktop),n(),d("ngIf",t.toastErro)}}function ch(i,r){if(i&1&&C(0,rh,60,51,"main",11)(1,lh,3,3,"div",12),i&2){let t=g();d("ngIf",!t.showPickupTypeSelector),n(),d("ngIf",t.showPickupTypeSelector)}}var dd=(()=>{let r=class r{beforeUnloadHander(e){return!1}constructor(e,a,o,m,_,x,O,R,K,me,ke,qe,at,Pt,Ct,Ht,At,Gi,St,Ti,nr,mp,up,fp,gp,_p,hp,vp){this.clienteService=e,this.formBuilder=a,this.reservaStore=o,this.dialog=m,this.reservaService=_,this.router=x,this.authService=O,this.ga=R,this.translateService=K,this.internacionalizacao=me,this.breakpointService=ke,this.navigationFlowService=qe,this.decimalPipe=at,this.recaptchaV3Service=Pt,this.featureToggleService=Ct,this.googleAnalyticsService=Ht,this._cartoesService=At,this.protecaoDadosService=Gi,this.protecaoDadosManagerService=St,this.route=Ti,this.progressSpinner=nr,this.processLoadingService=mp,this.cotacaoService=up,this.featureFlagService=fp,this.insiderService=gp,this.monitoringService=_p,this.webviewService=hp,this.platform=vp,this.fakeDoorPaymentMethodsFlag="fake_door_mx",this.TARIFA_FLANKER="012396",this.paises=new Array,this.valorInicialNacionalidade="Brasil",this.ehCpf=!0,this.enviarConfirmacaoSms=!1,this.documentoSelecionado=null,this.documentosDisponiveisParaSelecao=new Array,this.cpf=null,this.grupoFastSelecionado=!1,this.toastErro=!1,this.aceitePrivacyTerms=!1,this.carregandoDadosReserva=!1,this.carregandoTela=!1,this.erroCarregarTela=!1,this.cliente=new Ko,this.clientId="",this.disabled=!1,this.nacionalidades=new Array,this.companhiasAereasList=new Array,this.alteracaoReserva=!1,this.usuarioTemVoo=!1,this.isPrePagamento=!1,this.checkReembolso=!1,this.enderecoInserido=null,this.formularioEnderecoValido=!0,this.numeroDocumentoObrigatorio=!0,this.continuarPasso05=!1,this.aceiteTermosCondicoes=!1,this.exibirTriggerEscassez=!1,this.isPrePagamentoMexico=!1,this.isAdditionalPhysical=!1,this.exibirEnderecoSite=!1,this.isMexico=!1,this.carregouFlagEndereco=!1,this.clientAddressCompleted=!0,this.rentInMexico=!1,this.rentInColombia=!1,this.paymentMethodLink=null,this.prepaidBrasilSelected=null,this.showPickupTypeSelector=!1,this.isWebview=!1,this.isBrowser=Be(this.platform)}ngOnInit(){this.isWebview=this.webviewService.isWebView(),this.montarFormularios(),this.codigoPaisDefault=this.internacionalizacao.recuperarCodigoPais(),this.ehSiteBrasil$=this.internacionalizacao.ehSiteBrasil$,this.usuario=this.authService.obterUsuarioLogado(),this.reservaStore.resetPasso3ReservaLocalStorage(),this.isMexico=this.codigoPaisDefault===pe,this.reservaStore.state$.pipe(w(1)).subscribe(e=>{let a=this.codigoPaisDefault===pe;this.rentInMexico=e.reserva?.codigoPaisAgenciaRetirada===pe,this.exibirTriggerEscassez=a||this.rentInMexico,this.rentInColombia=e.reserva?.codigoPaisAgenciaRetirada===Fe}),this.buscarConfiguracaoProtecaoDados(),this.bpSubscription=this.breakpointService.isDesktop.subscribe(e=>this.isDesktop=e),this.buscarDadosStore(),this.inicializarComponentes(),this.preencherCamposDadosParceiro(),this.isAdditionalPhysical=this.ofertaSelecionada?.itens?.length==0,this.breadCrumb=[{label:"breadCrumbs.reserva.passo4.label",url:"url.reserva.passo4"}],this.reservaStore.state$.pipe(w(1)).subscribe(e=>{let a=e.reserva?.codigoPaisAgenciaRetirada;this.isMexico=a===pe,this.isMexico?this.featureToggleService.validarEstadoFuncionalidade(ut.featureToggle.exibir_endereco_site).pipe(w(1)).subscribe(o=>{this.exibirEnderecoSite=o.ativo,this.carregouFlagEndereco=!0}):(this.exibirEnderecoSite=!0,this.carregouFlagEndereco=!0)}),this.featureToggleService.validarEstadoFuncionalidade(ut.featureToggle.fccra).pipe(w(1)).subscribe(e=>{this.fccraAtivo=e.ativo,this.fccraAtivo&&this.clienteService.obterCartoesCreditoCliente(
2).pipe(w(1)).subscribe(a=>{this.quantidadeCartoesCadastrados=a.cartoes.length,this.definirFccraAtivo()},a=>{a.error.codigo===404&&this.definirFccraAtivo()})}),this.featureFlagService.hasFlags("show_modal_address")&&this.agenciaBrasileira&&this.authService.autenticado()&&this.clienteService.checkClientAddressCompleted().pipe(w(1)).subscribe(e=>{this.clientAddressCompleted=e})}definirFccraAtivo(){this.fccraAtivo&&(this.mostrarFccra=this.fccraAtivo&&(this.quantidadeCartoesCadastrados===0||this.quantidadeCartoesCadastrados===void 0)&&this.nacionalidadeSelecionada.codigoPais===le)}ngOnDestroy(){this.resetPrepaidBrasilOnLeave(),this.obterNacionalidadesSubscription&&this.obterNacionalidadesSubscription.unsubscribe(),this.obterDadosPessoaisSubscription&&this.obterDadosPessoaisSubscription.unsubscribe(),this.obterReservaSubscription&&this.obterReservaSubscription.unsubscribe(),this.bpSubscription&&this.bpSubscription.unsubscribe(),this.continuarPasso05||this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{exibirPreAutorizacao:!1,valorPreAutorizacao:null}})}resetPrepaidBrasilOnLeave(){let e=this.translateService.instant("breadCrumbs.confirmacaoReserva.url");if(!this.router.currentNavigation()?.extractedUrl.toString()?.startsWith(e)&&this.isPrePaidBrasilActivated&&this.prepaidBrasilSelected!==null){if(this.prepaidBrasilSelected){let o=this.ofertaSelecionada?.meioPagamento?.find(m=>m.selecionado&&m.tipo==="Link")?.identificador;this.handlePrepaidBrasilSelected({identificador:o,selecionado:!1},!0)}this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{prepaidBrasilSelected:null}})}}montarFormularios(){this.formulario=this.formBuilder.group({tipoDocumento:[{value:"",disabled:!0},j.required],numeroDocumento:[{value:this.cpf,disabled:!0},j.required],nome:[{value:null,disabled:!0},[j.required,Ae.campoNomeSobrenomeValidator,j.minLength(3)]],email:[null,j.required],confirmarEmail:[{value:"",disabled:!0},j.required],ciaAerea:[null],numeroVoo:[null],nacionalidade:[{value:"",disabled:!0},[j.required,Ae.paisValidator]]}),this.filtroNacionalidades=this.formulario.get("nacionalidade").valueChanges.pipe(Mr(""),po(e=>this._filtroAutoCompletePais(e)))}inicializarComponentes(){this.carregandoTela=!0;let e=[this.clienteService.GetNacionalidade(),this.reservaService.getCompanhiasAereas()];this.montarMensagemOfertaNoShow(),Sr(e).pipe(w(1)).subscribe(([a,o])=>{this.companhiasAereasList=o,this.tratarNacionalidades(a),this.carregandoTela=!1},()=>{this.carregandoTela=!1,this.erroCarregarTela=!0})}definirValidatorsEmails(){this.formulario.get("email")?.setValidators([j.required,j.email,Ae.emailValidator]),this.formulario.get("confirmarEmail")?.setValidators([j.required,j.email,Ae.confirmacaoEmailValidator("email")])}tratarValidadorEmail(){this.definirValidatorsEmails(),this.formulario.get("email")?.setValue(""),this.formulario.get("confirmarEmail")?.updateValueAndValidity()}tratarValidadorConfirmarEmail(){this.definirValidatorsEmails(),this.formulario.get("confirmarEmail")?.setValue(""),this.formulario.get("email")?.markAsTouched()}montarMensagemOfertaNoShow(){if(this.ofertaSelecionada&&this.ofertaSelecionada.noShow&&this.ofertaSelecionada.tarifa){let{moeda:e}=this.ofertaSelecionada.tarifa,{valorCancelamento:a,valorNoShow:o}=this.ofertaSelecionada.noShow,m=this.isPrePaidBrasilActivated?"reserva.noShow.mensagemCobrancaNoShowPrePaid":"reserva.noShow.mensagemCobrancaNoShow";this.translateService.get(m,{moeda:e,valorCancelamento:this.formatarDecimal(a),valorNoShow:this.formatarDecimal(o)}).pipe(w(1)).subscribe(_=>{this.mensagemOfertaNoShow=_})}}formatarDecimal(e){return e?this.decimalPipe.transform(e,"1.2-2"):0}tratarNacionalidades(e){this.nacionalidades=e,this.paises=this.nacionalidades.map(a=>(this.codigoPaisDefault&&a.codigoPais===this.codigoPaisDefault&&(this.documentosDisponiveisParaSelecao=a.documentos,this.formulario.get("tipoDocumento").setValue(this.documentosDisponiveisParaSelecao[0].codigoTipoDocumento.toString())),a.nomePais)),this.authService.autenticado()&&!this.alteracaoReserva?(this.disabled=!0,this.usuario&&this.usuario.primeiroNome&&(this.clientId=this.usuario.id,this.preencherFormularioClienteLogado(this.usuario.id))):this.alteracaoReserva&&this.dadosPessoaisCliente!==null?this.preencherFormularioCliente(this.dadosPessoaisCliente):(this.configurarDocumentoPeloTipo(this.formulario.get("tipoDocumento").value),this.habilitarCampos(),this.preencherNacionalidadeForm(this.codigoPaisDefault),this.disabled=!1,this.carregandoTela=!1,this.erroCarregarTela=!1)}preencherDataLayer(e,a,o){this.isBrowser&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"__MensuraEventos",category:e,action:a,label:o}))}preencherNacionalidadeForm(e){e?this.preencherNacionalidadeSelecionada(e):this.celularClienteInserido={ddi:"",ddd:"",numero:""}}preencherFormularioClienteLogado(e){this.obterDadosPessoaisSubscription=this.clienteService.obterDadosPessoais(e,this.authService.isUniidToggleOn()).subscribe(a=>{this.preencherFormularioCliente(a)},()=>{this.carregandoTela=!1,this.erroCarregarTela=!0})}preencherFormularioCliente(e){this.preencherNacionalidadeSelecionada(e.codigoNacionalidade),this.formulario.get("numeroDocumento").setValue(e.numeroDocumento),this.formulario.get("nome").setValue(e.nome),this.formulario.get("tipoDocumento").setValue(e.tipoDocumento),this.formulario.get("email").setValue(e.email),this.formulario.get("email").markAsTouched(),this.isPrePagamentoMexico&&(this.formulario.get("confirmarEmail")?.enable(),this.formulario.get("confirmarEmail")?.setValue(e.email),this.definirValidatorsEmails()),e.celular&&(this.celularCliente=e.celular),this.configurarDocumentoPeloTipo(this.formulario.get("tipoDocumento").value),this.carregandoTela=!1,this.clientInfo=$({},e)}habilitarCampos(){this.grupoFastSelecionado||(this.formulario.get("numeroDocumento").enable(),this.formulario.get("tipoDocumento").enable(),this.formulario.get("nacionalidade").enable()),this.isPrePagamentoMexico&&!this.reserva?.parceiro?.partnerUser&&(this.formulario.get("confirmarEmail").enable(),this.definirValidatorsEmails()),this.formulario.get("numeroDocumento").enable(),this.reserva?.parceiro?.partnerUser||this.formulario.get("nome")?.enable()}isPagamentoLinkSelecionado(e){return e?.some(o=>o.selecionado&&o.tipo==="Link")}setPrePagamentoMexicoFlag(e,a){e&&a!==le&&(this.isPrePagamentoMexico=!0)}buscarDadosStore(){this.obterReservaSubscription=this.reservaStore.state$.subscribe(e=>{if(!e.reserva.ofertaSelecionada){this.translateService.get("url.home").pi
2pe(w(1)).subscribe(x=>{this.router.navigate([x])});return}if(e.reserva.isPrePagamentoMexico){if(e.reserva.reservaRealizadaNr)return;this.translateService.get("url.home").pipe(w(1)).subscribe(x=>{this.router.navigate([x])});return}let{meioPagamento:a,descricao:o}=e.reserva.ofertaSelecionada,{codigoPaisAgenciaRetirada:m}=e.reserva;this.setPrePagamentoMexicoFlag(this.isPagamentoLinkSelecionado(a),m),(o.toLowerCase().includes("pago")||o.toLowerCase().includes("prepaid")&&m===Yi)&&(this.isPrePagamento=!0),this.reserva=e.reserva,this.prepaidBrasilSelected=e.reserva.prepaidBrasilSelected??null,this.cpf=e.reserva.cpf,this.fast=e.reserva.tipoRetirada.fast,this.grupoFastSelecionado=this.cpf!==null&&this.fast;let _=e.reserva.exibirPreAutorizacao;this.agenciaBrasileira=e.reserva.codigoPaisAgenciaRetirada===le||e.reserva.codigoPaisAgenciaRetirada==="Brasil",this.agenciaColombiana=e.reserva.codigoPaisAgenciaRetirada===Fe||e.reserva.codigoPaisAgenciaRetirada==="Colombia",this.reservaPFAD=e.reserva?.quantidadeDiarias<30,!_&&this.agenciaBrasileira&&this.reservaPFAD&&this.usuario&&this.featureToggleService.validarEstadoFuncionalidade(ut.featureToggle.pre_autorizacao).pipe(w(1)).subscribe(x=>{if(x.ativo){this.carregandoPreAutorizacao=!0,this.showPreAutorizacao=x.ativo;let O=this.criarListaDeProtecoesPreAutorizacao(this.ofertaSelecionada),R=e.reserva?.ofertaSelecionada?.upgrades.find(me=>me.selecionado),K={codigoAgenciaRetirada:e.reserva?.codigoAgenciaRetirada,codigoGrupoVeiculo:R?R.nomeGrupo:e.reserva?.grupoSelecionado?.codigoLocaliza,dataHoraRetirada:e.reserva?.dataRetirada,dataHoraDevolucao:e.reserva?.dataDevolucao,codigosFrigga:O};this._cartoesService.getValorPreAutorizacao(K).subscribe(me=>{this.preAutorizacaoValue=me?.valorPreAutorizacaoFormatado,this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{exibirPreAutorizacao:this.showPreAutorizacao,valorPreAutorizacao:this.preAutorizacaoValue}}),this.carregandoPreAutorizacao=!1},()=>{this.carregandoPreAutorizacao=!1,this.ocorreuErroPreAutorizacao=!0})}}),this.showPreAutorizacao=e.reserva.exibirPreAutorizacao,this.preAutorizacaoValue=e.reserva.valorPreAutorizacao,e.reserva.reservaRealizadaNr===null&&this.preencherDataLayerCheckout(e.reserva),this.ofertaSelecionada=e.reserva.ofertaSelecionada,this.ofertaNoShow=!!this.ofertaSelecionada.noShow?.cobrar,this.montarMensagemOfertaNoShow(),this.detectPaymentMethodBrasil(),this.alteracaoReserva=e.reserva.alteracaoReserva,this.localizador=e.reserva.localizador,this.dadosPessoaisCliente=e.reserva.cliente,this.agenciaMexico=e.reserva.codigoPaisAgenciaRetirada===pe})}criarListaDeProtecoesPreAutorizacao(e){let a=e.itens.filter(m=>m.selecionado)||[],o=e?.combos?.find(m=>m.selecionado)?.itens||[];return[...a,...o].filter(m=>this.listaDeProtecoes.includes(m.codigoAdicionalFrigga)).map(m=>m.codigoAdicionalFrigga)}criarReserva(){return ji(this,null,function*(){this.carregandoDadosReserva=!0,this.cliente.nome=this.formulario.get("nome").value,this.cliente.email=this.formulario.get("email").value,this.recaptchaV3Service.execute("criarReserva").pipe(w(1)).subscribe(e=>{this.reservaService.criarReserva(this.dadosCriarReserva,e).pipe(He(()=>this.progressSpinner.spin$.next(!1))).subscribe(a=>{this.reservaService.setReservaChangeData(null),this.carregandoDadosReserva=!1,this.toastErro=!1,this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{reservaRealizadaNr:a,cliente:{clientePessoaFisicaId:this.dadosCriarReserva.usuarioReserva.codigoUsuarioReserva,codigoNacionalidade:this.dadosCriarReserva.usuarioReserva.nacionalidade,tipoDocumento:this.dadosCriarReserva.usuarioReserva.tipoDocumento,numeroDocumento:this.dadosCriarReserva.usuarioReserva.documento,nome:this.dadosCriarReserva.usuarioReserva.nomeUsuarioReserva,email:this.dadosCriarReserva.usuarioReserva.contatosReserva[0].emailReserva,celular:{tipoTelefone:this.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.tipoTelefone,ddi:this.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.ddi,ddd:this.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.ddd,numero:this.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.numeroTelefone},descricaoCliente:this.dadosCriarReserva.usuarioReserva.descricaoDocumento}}}
2),this.salvarTermoAceite(),this.navigationFlowService.destroy$.next(),this.translateService.get("url.reserva.confirmacao").pipe(w(1)).subscribe(o=>{this.router.navigate([o],this.clientAddressCompleted?void 0:{state:{dadosReserva:this.dadosCriarReserva,cliente:this.clientInfo,openModalAddressCompleted:this.clientAddressCompleted}})})},a=>{this.carregandoDadosReserva=!1,a?.error?.codigo===403?(this.cliente.nome=this.formulario.get("nome").value,this.cliente.email=this.formulario.get("email").value,this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{cliente:this.cliente}}),this.translateService.get("url.reserva.reservaNegada").pipe(w(1)).subscribe(o=>this.router.navigate([o]))):(this.mensagensErro=a?.error?.mensagensUsuario,this.toastErro=!0)})})})}alterarReserva(){this.carregandoDadosReserva=!0,this.reservaService.alterarReserva(this.localizador,this.dadosCriarReserva).pipe(He(()=>this.progressSpinner.spin$.next(!1))).subscribe(e=>{this.reservaService.setReservaChangeData(null),this.carregandoDadosReserva=!1,this.toastErro=!1,this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{reservaRealizadaNr:e,alteracaoReserva:!0}}),this.salvarTermoAceite(),this.translateService.get("url.reserva.confirmacao").pipe(w(1)).subscribe(a=>{this.router.navigate([a])})},e=>{this.carregandoDadosReserva=!1,this.mensagensErro=e?.error?.mensagensUsuario,this.toastErro=!0})}criarReservaPrePagamento(e){this.carregandoDadosReserva=!0,this.cliente.nome=this.formulario.get("nome").value,this.cliente.email=this.formulario.get("email").value,this.recaptchaV3Service.execute("criarReserva").pipe(w(1)).subscribe(a=>{this.reservaService.criarReserva(this.dadosCriarReserva,a).subscribe(o=>{this.carregandoDadosReserva=!1,this.toastErro=!1,e?.(),this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{reservaRealizadaNr:o,cliente:$({clientePessoaFisicaId:this.dadosCriarReserva.usuarioReserva.codigoUsuarioReserva,codigoNacionalidade:this.dadosCriarReserva.usuarioReserva.nacionalidade,tipoDocumento:this.dadosCriarReserva.usuarioReserva.tipoDocumento,numeroDocumento:this.dadosCriarReserva.usuarioReserva.documento,nome:this.dadosCriarReserva.usuarioReserva.nomeUsuarioReserva,email:this.dadosCriarReserva.usuarioReserva.contatosReserva[0].emailReserva,celular:{tipoTelefone:this.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.tipoTelefone,ddi:this.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.ddi,ddd:this.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.ddd,numero:this.dadosCriarReserva.usuarioReserva.contatosReserva[0].telefone.numeroTelefone}},this.exibirEnderecoSite&&this.enderecoInserido?{endereco:{pais:this.dadosCriarReserva.usuarioReserva.endereco?.pais||"",estado:this.dadosCriarReserva.usuarioReserva.endereco?.estado||"",cidade:this.dadosCriarReserva.usuarioReserva.endereco?.cidade||"",cep:this.dadosCriarReserva.usuarioReserva.endereco?.cep||"",endereco:this.dadosCriarReserva.usuarioReserva.endereco?.endereco||"",numero:this.dadosCriarReserva.usuarioReserva.endereco?.numero||"",bairro:this.dadosCriarReserva.usuarioReserva.endereco?.bairro||""},descricaoCliente:this.dadosCriarReserva.usuarioReserva.descricaoDocumento}:{}),isPrePagamentoMexico:this.isPrePagamentoMexico}}),this.navigationFlowService.destroy$.next(),setTimeout(()=>{this.translateService.get("url.reserva.passo5").pipe(w(1)).subscribe(m=>{this.router.navigate([m])})},0)},o=>{this.carregandoDadosReserva=!1,e?.(),o.error.codigo===403?(this.cliente.nome=this.formulario.get("nome").value,this.cliente.email=this.formulario.get("email").value,this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{cliente:this.cliente}}),this.translateService.get("url.reserva.reservaNegada").pipe(w(1)).subscribe(m=>this.router.navigate([m]))):(this.mensagensErro=o?.error?.mensagensUsuario,this.toastErro=!0)})})}retornarDescricaoDocumento(){let e=this.formulario.get("tipoDocumento")?.value;return this.documentosDisponiveisParaSelecao.find(o=>o.codigoTipoDocumento.toString()===e)?.descricaoDocumento}montarDadosCriarReserva(){let e=this.nacionalidadeSelecionada.codigoPais;if(this.estrangeiro=e!=="0055",this.numeroDocumento=this.formulario.get("numeroDocumento")?.value,this.dadosCriarReserva={identificadorOferta:this.ofertaSelecionada.ofertaId,identificadorCotacao:this.ofertaSelecionada.cotacaoId,usuarioReserva:$({descricaoDocumento:this.retornarDescricaoDocumento(),codigoUsuarioReserva:this.clientId,nomeUsuarioReserva:this.formulario.get("nome")?.value?.trim(),tipoDocumento:this.formulario.get("tipoDocumento")?.value,documento:this.numeroDocumento?.trim()||"",nacionalidade:e,estrangeiro:this.estrangeiro,contatosReserva:[{emailReserva:this.formulario.get("email")?.value,enviarEmail:!0,enviarSms:this.agencia
2Brasileira?!1:this.enviarConfirmacaoSms,contatoPrincipal:!0,telefone:{tipoTelefone:1,ddi:this.celularClienteInserido.ddi?.trim(),ddd:this.celularClienteInserido.ddd?.trim(),numeroTelefone:this.celularClienteInserido.numero?.trim()}}]},!this.exibirEnderecoSite&&this.isPrePagamentoMexico&&this.enderecoInserido?{endereco:{endereco:this.enderecoInserido?.endereco?.trim(),numero:this.enderecoInserido?.numero?.trim(),bairro:this.enderecoInserido?.bairro?.trim(),cidade:this.enderecoInserido?.cidade?.trim(),estado:this.enderecoInserido?.estado?.trim(),cep:this.enderecoInserido?.cep?.trim(),pais:Pc(this.enderecoInserido?.nacionalidade?.nomePais)?.iso2??xc(Number(this.enderecoInserido?.nacionalidade?.codigoPais))}}:{}),dadosParceiro:this.obterDadosParceiro(),dadosComplementares:{ciaAerea:this.formulario.get("ciaAerea").value,numeroVoo:this.formulario.get("numeroVoo").value,codigoPais:this.reserva?.codigoPaisAgenciaRetirada}},this.ofertaNoShow&&this.agenciaBrasileira&&(this.dadosCriarReserva.termoAceite=!!this.aceitePoliticaCancelamento),this.ofertaNoShow){let o={cartaoCredito:{idCartao:this.cartaoCreditoId}};this.dadosCriarReserva=X($({},this.dadosCriarReserva),{pagamento:o,noShow:!0})}this.reserva?.parceiro?.usageType=="use"&&this.reserva?.parceiro&&(this.reserva.parceiro.dadosCriarReserva=$({},this.dadosCriarReserva),this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{parceiro:this.reserva.parceiro}}))}openDialogTermos(){this.dialog.open(Ji,{maxWidth:this.isDesktop?"60vw":"100%",maxHeight:this.isDesktop?"80vh":"100%",panelClass:"matDialog100Percent",data:this.reserva?.codigoPaisAgenciaRetirada})}openDialogConfirmacaoDados(){let e=this.isDesktop?"500px":"100%",a=this.rentInMexico?Vn:na;this.rentInColombia&&this.isDesktop&&(e="670px"),this.dialog.open(a,{width:this.rentInMexico&&this.isDesktop?"525px":this.isDesktop?"362px":"100%",maxWidth:this.rentInMexico&&this.isDesktop?"525px":this.isDesktop?"362px":"100%",maxHeight:e,panelClass:"matDialog100Percent",data:{dadosCriarReserva:this.dadosCriarReserva,rentInColombia:this.rentInColombia}}).afterClosed().subscribe(m=>{m&&this.handlePrepaidReservationAfterConfirmation()})}handlePrepaidReservationAfterConfirmation(){if(this.rentInMexico&&this.shouldOpenPaymentMethodsFakeDoor()){this.openDialogFakeDoorMetodosPagamento();return}this.criarReservaPrePagamento()}shouldOpenPaymentMethodsFakeDoor(){return this.featureFlagService.hasFlags(this.fakeDoorPaymentMethodsFlag)}openDialogFakeDoorMetodosPagamento(){this.dialog.open(zn,{width:this.isDesktop?"720px":"100%",maxWidth:this.isDesktop?"720px":"100%",maxHeight:"90vh",position:this.isDesktop?void 0:{top:"5vh"},data:{dadosCriarReserva:this.dadosCriarReserva,reserva:this.reserva,onConfirmarPagamento:e=>this.criarReservaPrePagamento(e)}})}validarForumularios(){let e=this.formulario.valid,a=this.formularioCelularValido,o=this.exibirEnderecoSite&&this.isPrePagamentoMexico?this.formularioEnderecoValido:!0;return e&&a&&o&&this.validarRegrasOfertaNoShow()}openPopupFlanker(){this.dialog.open(Fn,{maxWidth:"500px",maxHeight:"400px"}).afterClosed().subscribe(e=>{if(e){this.criarReserva();return}})}submitLogic(){if(this.validarForumularios()){if(this.isPrePagamentoMexico)this.montarDadosCriarReserva(),this.openDialogConfirmacaoDados();else if(this.reserva?.parceiro?.usageType==="use")this.montarDadosCriarReserva(),this.translateService.get("url.reserva.selecaoPuntosDoters").pipe(w(1)).subscribe(e=>{this.router.navigate([e])});else if(this.validarTermosCondicoes()&&(!this.isPrePagamento||this.checkReembolso))if(this.progressSpinner.spin$.next(!0),this.montarDadosCriarReserva(),this.continuarPasso05=!0,this.reserva?.ofertaSelecionada?.grupoVeiculo?.tipoRetirada&&this.setSelectedPickUpType(),this.alteracaoReserva)this.alterarReserva();else{let{codigoTarifa:e}=this.reserva.ofertaSelecionada.tarifa;if(e===this.TARIFA_FLANKER&&this.rentInColombia){this.openPopupFlanker();return}this.criarReserva()}}}createReservationAfterPickupSelection(e){this.reserva.tipoRetiradaSelecionado=e===ee.FAST?Ge.FAST:Ge.BALCAO,this.submitLogic()}openPickupTypeSelctionStep(){this.processLoadingService.show(),this.cotacaoService.getAvailablePickupTypes(this.reserva?.idCotacao,this.reserva?.ofertaSelecionada?.ofertaId??"",this.cartaoCreditoId).pipe(w(1),He(()=>{this.processLoadingService.hide(),this.showPickupTypeSelector=!0})).subscribe({next:e=>{this.pickupTypeDisplay=e?.tipoRetirada,this.reserva.pickupTypeAlert=e?.alertas},error:()=>this.pickupTypeDisplay=ee.BALCAO})}
2get shouldOpenPickupTypeSelctionStep(){return this.agenciaBrasileira&&this.reservaPFAD&&!this.reserva?.agenciaFranqueado}onSubmit(){if(this.isPrePaidBrasilActivated&&(this.sendPrePaidBrasilSelectionGAEvent(),this.prepaidBrasilSelected)){this.openPrePaidBrasilConfirmationDialog();return}this.proceedAfterPrePaidCheck()}validarRegrasOfertaNoShow(){return this.ofertaNoShow?this.cartaoCreditoId&&this.aceitePoliticaCancelamento:!0}validarTermosCondicoes(){return this.temTermosConfigurado?this.aceiteTermosCondicoes||this.aceitePrivacyTerms:!0}confirmacaoSms(){this.enviarConfirmacaoSms=!this.enviarConfirmacaoSms}confirmacaoReembolso(){this.checkReembolso=!this.checkReembolso}confirmacaoPrivacyTerms(){this.aceitePrivacyTerms=!this.aceitePrivacyTerms}verificaExibicaoMensagemErro(e){return dl.verificaInvalidTouched(e,this.formulario)}onChangeTipoDocumento(e){this.configurarDocumentoPeloTipo(e.target.value)}configurarDocumentoPeloTipo(e){this.ehCpf=e==="1",this.documentoSelecionado!=null&&this.documentoSelecionado!==e&&this.formulario.get("numeroDocumento")?.reset(),this.documentoSelecionado=e,this.setDocumentoECPFValidators()}setDocumentoECPFValidators(){let e=this.formulario.get("numeroDocumento");e?.enabled&&this.nacionalidadeSelecionada&&this.nacionalidadeSelecionada.codigoPais!==pe&&!this.agenciaMexico&&(this.ehCpf?(e.setValidators([j.required,Ae.cpfValidator]),this.mascaraCpf="000.000.000-00"):!this.alteracaoReserva&&this.nacionalidadeSelecionada.codigoPais===Fe&&String(this.documentoSelecionado)===String(Qe.Document)?(this.mascaraCpf="0*",e.setValidators([j.required,Ae.numericOnlyValidator,j.maxLength(15)])):(this.mascaraCpf="A*",e.setValidators([j.required,j.minLength(1),j.maxLength(15)])),e.updateValueAndValidity())}valorExibirAutoCompleteNacionalidade(e){let a="";return typeof e=="string"?a=e:typeof e=="object"&&(a=e?e.nomePais:""),a||""}selecionaNacionalidade(e){this.nacionalidadeSelecionada=e,this.definirFccraAtivo(),this.nacionalidadeSelecionada!=null?(this.documentosDisponiveisParaSelecao=this.nacionalidadeSelecionada.documentos,this.formulario.get("tipoDocumento").setValue(this.documentosDisponiveisParaSelecao[0].codigoTipoDocumento.toString()),this.configurarDocumentoPeloTipo(this.documentosDisponiveisParaSelecao[0].codigoTipoDocumento.toString()),this.defineVisualizacaoDocumento(),this.preencherDdiBrasil()):this.documentosDisponiveisParaSelecao=new Array}defineVisualizacaoDocumento(){let e=this.formulario.get("numeroDocumento");this.nacionalidadeSelecionada?.codigoPais===pe&&this.agenciaMexico&&!this.isPrePagamentoMexico?(this.numeroDocumentoObrigatorio=!1,e?.clearValidators(),e?.updateValueAndValidity()):(this.numeroDocumentoObrigatorio=!0,this.setDocumentoECPFValidators())}_filtroAutoCompletePais(e){let a="";typeof e=="string"?a=e.toLowerCase():typeof e=="object"&&(a=e?e.nomePais.toLowerCase():""),a=Uo.string.removerCaracteresAcentuados(a);let o=this.nacionalidades.filter(m=>Uo.string.removerCaracteresAcentuados(m.nomePais.toLowerCase()).indexOf(a)===0);return this.paisNaoEncontrado=o.length===0,o}preencherDdiBrasil(){if(this.nacionalidadeSelecionada.codigoPais){let e=Number.parseInt(this.nacionalidadeSelecionada.codigoPais,10);this.celularClienteInserido={ddi:e.toString(),ddd:"",numero:""}}else this.celularClienteInserido={ddi:"",ddd:"",numero:""}}keyUpDdd(e){this.isBrowser&&this.formulario.get("celular").get("ddd").value.length===2&&![9,16].includes(e.keyCode)&&window.document.getElementById("numero").focus()}preencherNacionalidadeSelecionada(e){if(e){let a=this.nacionalidades.find(o=>o.codigoPais===e);this.nacionalidadeSelecionada=a,this.formulario.get("nacionalidade").setValue(this.nacionalidadeSelecionada),this.defineVisualizacaoDocumento()}}handleTelefoneInserido(e){this.celularClienteInserido=e}handleFormularioTelefoneValido(e){this.formularioCelularValido=e}handleFormularioEnderecoValido(e){this.formularioEnderecoValido=this.exibirEnderecoSite?e:!0}handleCartaoCreditoSelecionado(e){this.cartaoCreditoId=e,this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"checkout_payment",action:"click",label:"payment_select_card"})}handleAceitePoliticaCancelamento(e){this.aceitePoliticaCancelamento=e}preencherDataLayerCheckout(e){let a={id:e.grupoSelecionado?.codigoLocaliza,name:this.getNomeCarroPadrao(e.grupoSelecionado),category:e.grupoSelecionado?.codigoLocaliza+" - "+e.grupoSelecionado?.nome,price:e.ofertaSelecionada?.tarifa.valorDiariaSemCombo,variant:e.ofertaSelecionada?.descricao,quantity:e.ofertaSelecionada?.quantidadeDiarias},o={id:e.ofertaSelecionada?.descricao.replace(/- /g,"").replace(/â /,"").replace(/ /g,"_").toUpperCase(),name:e.ofertaSelecionada?.descricao,category:"Pacotes",price:e.ofertaSelecionada?.tarifa.valorDiariaSemCombo},m=e.ofertaSelecionada?.itens?.filter(O=>O.selecionado&&O.tipoItem===je.SERVICO).map(O=>({id:O.codigoAdicionalFrigga,name:O.descricao,category:"Opcionais",price:O.valor}))||[],_=e.ofertaSelecionada?.itens?.filter(O=>O.selecionado&&O.tipoItem===je.EQUIPAMENTO).map(O=>({id:O.codigoAdicionalFrigga,name:O.descricao,category:"Equipamentos",price:O.valor,quantity:O.quantidade}))||[],x=[a,o,...m,..._];e.quantidadeHorasExtras>0&&x.push({id:"HORA_EXTRA",name:"Hora Extra",category:"Opcionais",price:21,quantity:e?.quantidadeHorasExtras}),this.googleAnalyticsService.preencherDataLayer({event:"eec.checkout",ecommerce:{currencyCode:e.ofertaSelecionada?.tarifa.moeda==="R$"?"BRL":e.ofertaSelecionada?.tarifa.moeda,checkout:{actionField:{action:"checkout",step:"step:1"},products:x}}})}getNomeCarroPadrao(e){let a=e?.veiculos?.find(m=>m.padraoGrupo),o=e?.veiculos?.length===1?"":" ou similar";if(a?.nome)return a.nome+o;if(!a&&e?.veiculos?.length>0)return e?.veiculos[0]+o}toggleDadosVoo(){this.usuarioTemVoo=!this.usuarioTemVoo,this.usuarioTemVoo||(this.formulario.get("ciaAerea").reset(),this.formulario.get("numeroVoo").reset())}sawTotalValueEvent(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"view_total_value",action:"visualizacao_valor_total",label:"passo_04"})}buscarConfiguracaoProtecaoDados(){this.route.data.pipe(w(1)).subscribe(e=>{this.termoCondicoes=e.protecaoDados,this.temTermosConfigurado=this.termoCondicoes?.temTermosConfigurado,this.temTermosConfigurado&&(this.tituloTermoCondicoes=this.termoCondicoes.tituloTermoCondicoes,this.previaTermoCondicoes=this.termoCondicoes.previaTermoCondicoes,this.conteudoTermoCondicoes=this.termoCondicoes.conteudoTermoCondicoes)})}
2salvarTermoAceite(){if(!this.temTermosConfigurado)return;let e=this.protecaoDadosManagerService.construitInformacaoTermoAceite(this.formulario.get("email")?.value);e&&this.protecaoDadosService.salvarTermoAceite(e).pipe(w(1)).subscribe()}confirmacaoAceiteTermoCondicoes(){this.aceiteTermosCondicoes=!this.aceiteTermosCondicoes}handleEnderecoInserido(e){this.enderecoInserido=this.exibirEnderecoSite?e.endereco:null}sawPreAuthorizationValueEvent(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"view_pre_authorization",action:"visualizacao_pre_autorizacao",label:"passo_04"})}setSelectedPickUpType(){this.dadosCriarReserva=X($({},this.dadosCriarReserva),{tipoRetirada:this.reserva?.tipoRetiradaSelecionado==Ge.FAST?ee.FAST:ee.BALCAO})}openModalOnboardingFast(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"pickup_method",action:"clicked",fast:this.reserva?.tipoRetirada?.fast,balcao:this.reserva?.tipoRetirada?.balcao,label:"como_usar_a_retirada_digital"}),this.dialog.open(Xi,{disableClose:!0,maxWidth:this.isDesktop?"57.6rem":"100%",maxHeight:this.isDesktop?"56.8rem":"100%",panelClass:"matDialog100Percent"})}openDialogPrivacy(){let e=this.translateService.instant(this.agenciaColombiana?"reserva.passo4.msgToastColombia":"reserva.passo4.msgToast"),a=this.temTermosConfigurado?`${this.previaTermoCondicoes??""}${this.conteudoTermoCondicoes??""}`:void 0,o=a&&a.trim()!==""?a:e,m=this.translateService.instant("reserva.passo4.privacyTitle");this.dialog.open(Bn,{data:{content:o,title:m},maxWidth:this.isDesktop?"60vw":"100%",maxHeight:this.isDesktop?"80vh":"100%",panelClass:"matDialog100Percent"}).afterClosed().subscribe(x=>{x===!0&&(this.aceitePrivacyTerms=!0)})}get listaDeProtecoes(){return this.featureFlagService.valueFlag("itens_pre_autorizao")}canDeactivate(){return this.dialog.open(jn,{maxWidth:this.isDesktop?"450px":"360px",disableClose:!0,data:{startDate:this.reserva?.dataRetirada,endDate:this.reserva?.dataDevolucao,days:this.reserva?.quantidadeDiarias}}).afterClosed().pipe(po(a=>(this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"progressive_discount",action:a?"clicked_yes_reset_modal":"clicked_no_reset_modal"}),a?(this.cotacaoService.setHasOptedIntoProgressiveDiscount(!1),this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{newReturnDate:"",oldOfferDetail:null,ofertaSelecionada:null}}),!0):!1)))}botaoReservaDesativado(){return this.agenciaColombiana&&this.isPrePagamentoMexico&&!this.aceiteTermosCondicoes||this.agenciaColombiana&&!this.aceitePrivacyTerms||!this.agenciaColombiana&&(this.isPrePagamento||this.isPrePagamentoMexico)&&!this.checkReembolso||!this.formulario.valid||!this.formularioCelularValido||this.exibirEnderecoSite&&this.isPrePagamentoMexico&&!this.formularioEnderecoValido||this.ofertaNoShow&&(!this.ofertaNoShow||!this.cartaoCreditoId||!this.aceitePoliticaCancelamento)}botaoReservaTexto(){switch(!0){case(this.isPrePagamentoMexico&&this.agenciaColombiana):return this.translateService.instant("reserva.passo4.confirmAndPay");case(this.isPrePagamentoMexico&&!this.agenciaColombiana):return this.translateService.instant("reserva.passo4.pagar");case this.reserva?.parceiro?.usageType==="use":return this.translateService.instant("reserva.passo4.continuar");default:return this.translateService.instant("reserva.passo4.reserve")}}preencherCamposDadosParceiro(){if(this.reserva?.parceiro?.partnerUser){let e=this.reserva.parceiro.partnerUser.name+" "+this.reserva.parceiro.partnerUser.lastName;this.formulario.get("nome")?.setValue(e),this.formulario.get("nome")?.disable(),this.formulario.get("email")?.setValue(this.reserva.parceiro.partnerUser.email),this.formulario.get("email")?.disable(),this.formulario.get("confirmarEmail")?.setValue(this.reserva.parceiro.partnerUser.email),this.formulario.get("confirmarEmail")?.disable()}}obterDadosParceiro(){return this.reserva?.parceiro?{origin:this.reserva?.parceiro?.origin,referenceId:this.reserva?.parceiro?.referenceId,partnerIdentifier:this.reserva?.parceiro?.partnerIdentifier,partnerVoucher:this.reserva?.parceiro?.partnerVoucher,data:this.reserva?.parceiro?.data}:null}detectPaymentMethodBrasil(){if(this.initialTotalWithoutPrepayment??=this.ofertaSelecionada?.valorTotal,!this.agencia
2Brasileira||!this.ofertaSelecionada?.meioPagamento?.length){this.paymentMethodLink=null;return}let e=this.ofertaSelecionada.meioPagamento?.find(a=>a.tipo==="Link"&&a.valorPromocionalPrePago!=null);this.paymentMethodLink=e??null}get prePaidBrasilAActivated(){return this.insiderService.prePaidBrasilAActivated()}get isPrePaidBrasilBActivated(){return this.insiderService.prePaidBrasilBActivated()}get isPrePaidBrasilCActivated(){return this.insiderService.prePaidBrasilCActivated()}get isPrePaidBrasilDActivated(){return this.insiderService.prePaidBrasilDActivated()}get isPrePaidBrasilActivated(){return this.agenciaBrasileira&&this.paymentMethodLink&&(this.isPrePaidBrasilBActivated||this.isPrePaidBrasilCActivated||this.isPrePaidBrasilDActivated)}get isPrepaidBrasilSelectionRequired(){return this.isPrePaidBrasilActivated&&this.prepaidBrasilSelected===null}handlePrepaidBrasilSelected(e,a=!1){if(this.ofertaSelecionada){if(this.prepaidBrasilSelected=e.selecionado,a||this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{prepaidBrasilSelected:e.selecionado}}),this.isPrePaidBrasilBActivated){this.paymentMethodLink=X($({},this.paymentMethodLink),{selecionado:e.selecionado});return}this.recalculateOfferWithPrepaid(e)}}recalculateOfferWithPrepaid(e){this.progressSpinner.spin$.next(!0);let a=[{identificador:e.identificador,selecionado:e.selecionado}];this.cotacaoService.RecalcularOfertaBundle(this.ofertaSelecionada.cotacaoId,this.ofertaSelecionada.ofertaId,a,this.reserva?.codigoPaisAgenciaRetirada).pipe(He(()=>this.progressSpinner.spin$.next(!1))).subscribe({next:o=>this.updateSelectedOffer(o),error:()=>{this.prepaidBrasilSelected=null,this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{prepaidBrasilSelected:null}})}})}updateSelectedOffer(e){this.ofertaSelecionada=e,this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{ofertaSelecionada:e}})}sendPrePaidBrasilSelectionGAEvent(){this.monitoringService.sendEvent({component:"reservation_pre_pay",action:"selected_"+(this.prepaidBrasilSelected?"pre_pay_":"counter_pay_")+this.insiderService.getPrePaidBrasilScenario(),componentDescription:this.insiderService.getPrePaidBrasilScenario()})}openPrePaidBrasilConfirmationDialog(){let a=(this.featureFlagService.valueFlag("pre_pagamento_front")??{})?.[this.translateService.getCurrentLang()?.split("-")[0]],o=this.dialog.open(gn,{maxWidth:this.isDesktop?"448px":"328px",maxHeight:"90vh",height:"auto",disableClose:!0,data:{icon:"signpost",title:this.isPrePaidBrasilBActivated?a?.titleVarB:a?.titleVarCAndD,description:this.isPrePaidBrasilBActivated?a?.descriptionVarB:a?.descriptionVarCAndD,labelBtn:a?.btnLabel,translateTexts:!0,disableEvents:!0,iconHeight:"100px",iconWidth:"100px"}});o.afterOpened().subscribe(()=>{this.monitoringService.sendEvent({component:"reservation_pre_pay",action:"impression_modal",componentDescription:this.insiderService.getPrePaidBrasilScenario()})}),o.afterClosed().subscribe(()=>{this.monitoringService.sendEvent({component:"reservation_pre_pay",action:"confirm_modal",componentDescription:this.insiderService.getPrePaidBrasilScenario()}),this.proceedAfterPrePaidCheck()})}proceedAfterPrePaidCheck(){if(this.shouldOpenPickupTypeSelctionStep){this.openPickupTypeSelctionStep();return}this.preencherDataLayer("Dados Pessoais",this.shouldOpenPickupTypeSelctionStep?"Continuar":"Reservar",this.shouldOpenPickupTypeSelctionStep?"Botao Continuar":"Botao Reservar"),this.submitLogic()}};r.\u0275fac=function(a){return new(a||r)(v(Pi),v(Ao),v(fe),v(re),v(Ut),v(xe),v(Ye),v(Yn),v(G),v(it),v(De),v(Yt),v(yt),v(Wi),v(Qt),v(Q),v(Zo),v(jo),v(qo),v($i),v(gt),v(_n),v(ht),v(wt),v(_t),v(Dt),v(Pe),v(Ve))},r.\u0275cmp=M({type:r,selectors:[["app-dados-pessoais"]],viewQuery:function(a,o){if(a&1&&(kt(i_,5),kt(o_,5)),a&2){let m;et(m=tt())&&(o.dddInput=m.first),et(m=tt())&&(o.numeroInput=m.first)}},hostBindings:function(a,o){a&1&&b("beforeunload",function(_){return o.beforeUnloadHander(_)},mi)},standalone:!1,decls:5,vars:2,consts:[["termoProtecaoDados",""],["conteudo",""],["auto","matAutocomplete"],["class","container",4,"ngIf","ngIfElse"],[1,"container"],["class","row",4,"ngIf"],[1,"row"],[1,"col-12","col-xl-8"],[1,"input-check"],["
2id","acceptTerms","type","checkbox",3,"click","value"],["for","acceptTerms"],["class","dados-pessoais",3,"dados-pessoais--rent-in-mexico",4,"ngIf"],[4,"ngIf"],[1,"dados-pessoais"],[3,"breadCrumbs"],[1,"barra-navegacao"],[3,"step","isPrePagamentoMexico"],["class","dados-pessoais__trigger-escassez container",4,"ngIf"],[1,"dados-pessoais-content"],[1,"resumo-reserva","container"],[1,"row","d-flex","justify-content-end"],[1,"col-4"],["data-testid","box-booking-summary",3,"bookingData","showPreAuthorization","preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization","sawTotalValue","sawPreAuthorizationValue",4,"ngIf"],[1,"dados-pessoais-header","container"],[1,"dados-pessoais-header__info"],[3,"mensagensInformacao",4,"ngIf"],[1,"dados-pessoais-header__campos-obrigatorios"],[3,"formGroup"],["class","container",4,"ngIf"],["class","col-12 col-xl-8 toast-informacao-accordion",4,"ngIf"],[1,"container","informacoes-complementares"],[1,"col-12","dados-pessoais__voo-header"],["type","checkbox",3,"click","value"],["class","info-physical-additional",4,"ngIf"],[1,"col"],[1,"btn-submit-wrapper"],["type","button","data-testid","btn-submit",1,"btn-submit-ds",3,"click","disabled","ngClass"],["class","spinner",4,"ngIf"],["class","prepaid-brasil-selection-hint",4,"ngIf"],[1,"dados-pessoais__trigger-escassez","container"],["data-testid","box-booking-summary",3,"sawTotalValue","sawPreAuthorizationValue","bookingData","showPreAuthorization","preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization"],[3,"mensagensInformacao"],["matInput","","maxlength","45","formControlName","nome",3,"placeholder"],[1,"col-12","col-xl-4"],["matInput","","formControlName","nacionalidade",3,"matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],[3,"click"],["type","email","matInput","","formControlName","email",3,"placeholder"],[3,"telefoneInserido","formularioValido","numeroTelefone"],[3,"value"],[1,"col-12","col-xl-3"],[3,"hideRequiredMarker"],["matNativeControl","","formControlName","tipoDocumento",3,"change"],["matInput","","maxlength","18","formControlName","numeroDocumento",3,"mask","placeholder"],[1,"col-12","col-xl-6"],["type","email","matInput","","formControlName","confirmarEmail",3,"placeholder"],[1,"col-12",3,"ngClass"],["matInput","","maxlength","20","formControlName","numeroDocumento",3,"mask","placeholder"],[1,"dados-pessoais-content__endereco"],[3,"enderecoInserido","formularioValido","exibirLogradouro","exibirCampoComplemento","exibirCampoBairro","exibirCampoNacionalidade","exibirCampoTelefoneFixo","enderecoParaPagamentoCartao"],[1,"col-12","col-xl-8","toast-informacao-accordion"],[3,"title","preview","content"],["matNativeControl","","formControlName","ciaAerea"],["mask","0000","matInput","","formControlName","numeroVoo",3,"placeholder"],[1,"gray-background"],[3,"prepaidSelected","paymentMethodLink","currency","totalWithoutPrepayment"],[3,"cartaoCreditoSelecionado","mensagensReservaInformativa","mensagensReservaInformativaFullscreen","mostraSelecaoCartao","localImplementacao"],["class","politicas-no-show container",4,"ngIf"],[1,"politicas-no-show","container"],[3,"aceitePoliticaCancelamento","noShow"],[4,"ngTemplateOutlet"],["data-testid","optinReembolso","type","checkbox",3,"click","checked"],["class","terms-and-conditions",4,"ngIf"],[1,"terms-and-conditions"],[1,"term-link",3,"click","keydown"],["type","checkbox",3,"click","keypress","keydown","keyup","checked"],["type","button",1,"abrir-termos-colombia",3,"click"],[1,"info-physical-additional"],[3,"title","description","color"],[1,"col-8"],["type","button",1,"abrir-termos",3,"click"],[3,"icon","size","color"],[1,"mt-3","mb-3","col-12","col-xl-8"],[3,"theme"],[1,"col","col-lg-6"],[3,"mensagensErro"],[1,"spinner"],[1,"prepaid-brasil-selection-hint"],[3,"createReservation","openModalOnboarding","pickupType","isDesktop"],["class","row pickup-type-selector-error",4,"ngIf"],[1,"row","pickup-type-selector-error"]],template:function(a,o){if(a&1&&C(0,r_,2,0,"div",3)(1,l_,1,1,"ng-template",null,0,Me)(3,ch,2,2,"ng-template",null,1,Me),a&2){let m=ue(4);d("ngIf",o.erroCarregarTela)("ngIfElse",m)}},dependencies:[de,ae,N,Ci,ct,Fa,Va,ei,Ba,Ce,lt,To,dt,Mt,Bo,Ro,ds,en,Fo,Gl,jl,pt,Ot,ll,Yl,si,Qa,Nt,Zi,ii,nd,al,ki,fn,Zl,Si,Oi,Gn,ra,Un,Jt,T],styles:['h1[_ngcontent-%COMP%]{color:#01602a;font-size:3.2rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;line-height:3.8rem;text-transform:none}
2h2[_ngcontent-%COMP%]{font-size:2.4rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;line-height:2.9rem;color:#01602a;text-transform:none}h3[_ngcontent-%COMP%]{font-size:2rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;line-height:2.4rem;color:#01602a}[_nghost-%COMP%] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker):after{color:var(--lds-color-accent-critical-default, #d92020)}.barra-navegacao[_ngcontent-%COMP%]{margin:3.2rem 0 7.2rem}.dados-pessoais[_ngcontent-%COMP%]{padding:8.6rem 0 4rem}@media(min-width:1200px){.dados-pessoais[_ngcontent-%COMP%]{padding:0 0 7.2rem}}@media screen and (max-width:1199px){.dados-pessoais--rent-in-mexico[_ngcontent-%COMP%]{padding:0;margin:2.4rem auto 3.2rem}.dados-pessoais--rent-in-mexico[_ngcontent-%COMP%] .barra-navegacao[_ngcontent-%COMP%]{margin:3.2rem 0}.dados-pessoais--rent-in-mexico[_ngcontent-%COMP%] .dados-pessoais__trigger-escassez[_ngcontent-%COMP%]{margin-top:5rem}}.dados-pessoais-content[_ngcontent-%COMP%]{position:relative}.dados-pessoais-content__endereco[_ngcontent-%COMP%]{margin-top:3.2rem}.dados-pessoais-content__endereco[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#003418;margin-bottom:1.8rem}.dados-pessoais-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3.2rem;line-height:3.8rem;color:#003418}.dados-pessoais-header__info[_ngcontent-%COMP%]{font-size:1.6rem;line-height:2rem;color:#383838;margin-top:1.6rem}.dados-pessoais-header__campos-obrigatorios[_ngcontent-%COMP%]{font-size:1.2rem;line-height:160%;font-style:italic;color:var(--lds-color-accent-critical-default, #d92020);margin:1.6rem 0 3.2rem}.gray-background[_ngcontent-%COMP%]{background-color:#f2f2f2}.resumo-reserva[_ngcontent-%COMP%]{height:100%;position:absolute;top:0;right:0;left:0}.resumo-reserva[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:100%}.resumo-reserva[_ngcontent-%COMP%] aside[_ngcontent-%COMP%]{height:100%}.abrir-termos[_ngcontent-%COMP%]{background:none;outline:none;border:none;cursor:pointer;color:#01602a;font-size:1.6rem;line-height:1.9rem;text-decoration:underline;padding:0;margin:2.4rem 0}.abrir-termos[_ngcontent-%COMP%] .icon{transform:rotate(270deg)}.abrir-termos-colombia[_ngcontent-%COMP%]{background:none;outline:none;border:none;cursor:pointer;color:#01602a;line-height:1.9rem;text-decoration:underline;padding:0}.abrir-termos-colombia[_ngcontent-%COMP%] .icon{transform:rotate(270deg)}.toast-informacao-accordion[_ngcontent-%COMP%]{margin:3rem 0}.input-check[_ngcontent-%COMP%]{align-items:center;display:flex;margin-top:.8rem}.input-check[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{appearance:none;cursor:pointer;height:2rem;margin:.8rem;margin-left:0;width:2rem}.input-check[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:before{background-color:#fff;border-radius:.2rem;border:.2rem solid #e6e6e6;content:"";height:inherit;position:absolute;width:inherit}.input-check[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked:before{background-color:#01602a;border-radius:.2rem;border:.2rem solid #01602a;content:"";height:inherit;position:absolute;width:inherit}.input-check[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked:after{border-color:#fff;border-style:solid;border-width:0 .3rem .3rem 0;content:" ";height:1.4rem;margin-left:.58rem;margin-top:.14rem;position:absolute;transform:rotate(45deg);width:.7rem}.input-check[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#6e6e6e;font-size:1.4rem;line-height:1.6rem;cursor:pointer}.btn-submit-ds[_ngcontent-%COMP%] .ds-button{margin-top:1.6rem;min-width:16rem}.btn-submit-ds.center-button[_ngcontent-%COMP%] .ds-button{margin:0 auto!important}.btn-submit-ds[_ngcontent-%COMP%] .mat-mdc-progress-spinner{margin:0}.btn-submit-ds--disabled[_ngcontent-%COMP%] .ds-button{background-color:#e6e6e6;cursor:not-allowed}.btn-submit-ds--disabled[_ngcontent-%COMP%] .ds-button:hover{background-color:#e6e6e6}.btn-submit-ds--no-hover[_ngcontent-%COMP%]:hover .ds-button{curs
2or:not-allowed}.info-physical-additional[_ngcontent-%COMP%]{padding:1rem 0 0}.payment-secure[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.6rem;margin:3rem 0 4rem}.payment-secure[_ngcontent-%COMP%] .payment-secure-icon[_ngcontent-%COMP%]{color:#01602a}.payment-secure[_ngcontent-%COMP%] .payment-secure-icon[_ngcontent-%COMP%] .mat-icon{height:2.8rem!important;width:2.8rem!important}.payment-secure[_ngcontent-%COMP%] .payment-secure-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}.payment-secure[_ngcontent-%COMP%] .payment-secure-info[_ngcontent-%COMP%] .payment-secure-title[_ngcontent-%COMP%]{color:#01602a;font-weight:700;margin-bottom:.4rem}.payment-secure[_ngcontent-%COMP%] .payment-secure-info[_ngcontent-%COMP%] .payment-secure-description[_ngcontent-%COMP%]{color:#01602a;font-weight:400}.terms-and-conditions[_ngcontent-%COMP%] .term-link[_ngcontent-%COMP%]{font-weight:500;text-decoration:underline;color:#01602a;cursor:pointer;text-underline-position:under}.pickup-type-selector-error[_ngcontent-%COMP%]{justify-content:center;width:100%}.informacoes-complementares[_ngcontent-%COMP%]{margin-bottom:4rem}.politicas-no-show[_ngcontent-%COMP%]{margin-top:4rem}.btn-submit-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2.4rem;margin-top:1.6rem}.btn-submit-wrapper[_ngcontent-%COMP%] .btn-submit-ds[_ngcontent-%COMP%] .ds-button{margin-top:0}.prepaid-brasil-selection-hint[_ngcontent-%COMP%]{font-size:1.4rem;line-height:2rem;font-style:italic;color:var(--lds-color-neutral-text-low, #6e6e6e);margin:0;max-width:22rem}']});let i=r;return i})();var pd=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=Rt({type:r}),r.\u0275inj=Et({providers:[tl()],imports:[U,be,ze,tn,Hl,Le,ti,Wo,ql,mt,on,Te,Xl,no,Qi,Dl,sd,Jl,A,Vo,zt,Vt,rd,cl,nl,ki,fn,Ql,na,Si,Oi,Gn,ni,ra,Un]});let i=r;return i})();function ph(i,r){if(i&1&&h(0,"app-form-personal-data",0),i&2){let t=g();d("paisRetirada",t.pickUpCountryCode)}}function mh(i,r){i&1&&h(0,"app-dados-pessoais")}var md=(()=>{let r=class r{get pickUpCountryCode(){return this.reserva?.codigoPaisAgenciaRetirada}get showFormPersonalDataMexico(){return!this.reserva.parceiro&&[pe].includes(this.pickUpCountryCode)}constructor(e,a,o,m){this.router=e,this.translateService=a,this.changeDetectorRef=o,this.fluxoReservaStore=m,this.insiderService=I(_t),this.monitoringService=I(Dt),this.breakpointService=I(De),this.onDestroy$=new Ze,this.isDesktop=ve(!1),this.isColombiaFormAActivated=ve(!1),this.displayNewFormForColombia=ve(!1)}ngOnInit(){this.reservaObserver(),this.checkDesktopMode(),this.handleInsiderInitialization(),this.showFormPersonalDataColombia()}reservaObserver(){this.fluxoReservaStore.state$.pipe(Se(this.onDestroy$)).subscribe(e=>{if(this.reserva=e.reserva,!this.reserva?.ofertaSelecionada){this.goToHome();return}if(this.reserva.isPrePagamentoMexico){if(this.reserva.reservaRealizadaNr){this.onDestroy$.next();return}this.goToHome();return}this.onDestroy$.next(),this.changeDetectorRef.markForCheck()})}checkDesktopMode(){this.breakpointService.isDesktop.subscribe(e=>{this.isDesktop.set(e)})}goToHome(){this.translateService.get("url.home").pipe(w(1)).subscribe(e=>{this.router.navigate([e])})}handleInsiderInitialization(){let e=this.insiderService.colombiaFormAActivated()||this.insiderService.colombiaFormBActivated();if(!e){this.isColombiaFormAActivated.set(!1);return}let a=this.reserva?.codigoPaisAgenciaRetirada===Fe;a&&this.loadTest(),this.isColombiaFormAActivated.set(a&&e)}loadTest(){let e="test_form_colombia",a=this.isColombiaFormAActivated()?"Variante B":"Variante A";this.monitoringService.addFeatureFlagEvaluation(e,a)}showFormPersonalDataColombia(){let e=!this.reserva.parceiro&&this.pickUpCountryCode===Fe&&this.isColombiaFormAActivated();this.displayNewFormForColombia.set(e)}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}};r.\u0275fac=function(a){return new(a||r)(v(xe),v(G),v(Xe),v(fe))},r.\u0275cmp=M({type:r,selectors:[["app-form-personal-data-switch"]],decls:2,vars:1,consts:[[3,"paisRetirada"]],template:function(a,o){a&1&&B(0,ph,1,1,"app-form-personal-data",0)(1,mh,1,0,"app-dados-pessoais"),a&2&&F(o.showFormPersonalDataMexico||o.displayNewFormForColombia()?0:1)},dependencies:[pd,dd,id],encapsulation:2});let i=r;return i})();var uh=(i,r)=>({"filtro-reserva--aberto":i,"filtro-reserva--no-fast":r}),fh=i=>({"filtro-reserva-tipo-veiculo-checkbox--selecionado":i}),gh=i=>({"filtro-reserva-tipo-retirada__fast--ativo":i});function _h(i,r){if(i&1&&(s(0,"label",20),h(1,"ds-icon",21),p(2),c(3,"translate"),h(4,"input",22),l()),i&2){let t=r.index,e=g();d("ngClass",L(8,fh,e.formulario.value.tipoDeVeiculo[t])),n(),d("icon",e.iconesTipoDeCarro[e.listaTipoDeVeiculo[t].value])("color","primary"),n(),f(" ",u(3,6,"filtroReserva.tipos."+e.listaTipoDeVeiculo[t].value)," "),n(2),d("id",e.listaTipoDeVeiculo[t].value)("formControlName",t)}}function hh(i,r){if(i&1&&(s(0,"div",23)(1,"p"),p(2),c(3,"translate"),l(),s(4,"label")(5,"div",24)(6,"span"),p(7),c(8,"translate"),l()(),h(9,"input",25),l()()),i&2){let t,e=g();n(2),D(u(3,3,"filtroReserva.tipoRetirada")),n(3),d("ngClass",L(7,gh,(t=e.formulario.get("tipoDeRetirada"))==null?null:t.value)),n(2),f(" ",u(8,5,"filtroReserva.fastLabel")," ")}}function vh(i,r){i&1&&h(0,"div",26)}function Ch(i,r){if(i&1&&(s(0,"option",27),p(1),l()),i&2){let t=r.$implicit,e=r.index;d("value",e),n(),f(" ",t.label," ")}}var ud=(()=>
2{let r=class r{constructor(e,a){this.formBuilder=e,this.bsService=a,this.isMd=!1,this.boxAberto=!1,this.filtroAlterado=!1,this.quantidadeDeAlteracao=0,this.listaTipoDeVeiculo=[{value:"hatch",label:"Hatch"},{value:"sedan",label:"Sedan"},{value:"pickup",label:"Pick-up"},{value:"minivan",label:"Minivan"},{value:"suv",label:"SUV"},{value:"furgao",label:"Furg\xE3o"}],this.iconesTipoDeCarro={hatch:"icon_type_car_hatch",sedan:"icon_type_car_sedan",pickup:"icon_type_car_pickup",minivan:"icon_type_car_minivan",suv:"icon_type_car_suv",furgao:"icon_type_car_furgao"},this.limparFiltro=!1,this.haveFast=!0,this.filtroInserido=new W,this.limparFiltroOutput=new W}ngOnInit(){this.filtroAtual={tipoDeVeiculo:this.listaTipoDeVeiculo.map(e=>!1),tipoDeRetiradaFast:!1,bagagens:void 0},this.subscriptionBreakpoint=this.bsService.isMd.subscribe(e=>{this.isMd=e}),this.formulario=this.formBuilder.group({tipoDeVeiculo:this.formBuilder.array(this.listaTipoDeVeiculo.map(e=>new Ea(!1))),tipoDeRetirada:!1,bagagens:""}),this.subscriptionFormulario=this.formulario.valueChanges.subscribe(e=>{let{tipoDeVeiculo:a,tipoDeRetirada:o,bagagens:m}=e;this.filtroAlterado=JSON.stringify(this.filtroAtual.tipoDeVeiculo)!==JSON.stringify(a)||this.filtroAtual.tipoDeRetiradaFast!==o||this.filtroAtual.bagagens?.malasPequenas!==this.numerosDeBagagem[m]?.malasPequenas||this.filtroAtual.bagagens?.malasGrandes!==this.numerosDeBagagem[m]?.malasGrandes})}ngOnChanges(e){!e.limparFiltro?.firstChange&&e.limparFiltro?.currentValue&&this.zerarFiltro()}ngOnDestroy(){this.subscriptionBreakpoint?.unsubscribe(),this.subscriptionFormulario?.unsubscribe()}handleAbrirBox(){this.boxAberto=!this.boxAberto}zerarFiltro(){this.formulario.reset(),this.formulario.get("bagagens")?.setValue(""),this.isMd||(this.boxAberto=!1),this.limparFiltroOutput.emit(!0)}handleFiltrar(){if(this.filtroAlterado){let e={tipoDeVeiculo:this.formulario.value.tipoDeVeiculo.map((a,o)=>a?this.listaTipoDeVeiculo[o]:null).filter(a=>a),tipoDeRetiradaFast:this.formulario.value.tipoDeRetirada,bagagens:this.numerosDeBagagem[this.formulario.value.bagagens]};this.filtroInserido.emit(e),this.filtroAtual=X($({},e),{tipoDeVeiculo:this.formulario.value.tipoDeVeiculo}),this.isMd||(this.boxAberto=!1)}}};r.\u0275fac=function(a){return new(a||r)(v(Ao),v(De))},r.\u0275cmp=M({type:r,selectors:[["loc-filtro-reserva"]],inputs:{numerosDeBagagem:"numerosDeBagagem",limparFiltro:"limparFiltro",haveFast:"haveFast"},outputs:{filtroInserido:"filtroInserido",limparFiltroOutput:"limparFiltroOutput"},standalone:!1,features:[nt],decls:37,vars:33,consts:[[1,"filtro-reserva",3,"ngClass"],[1,"filtro-reserva-header",3,"click"],["name","chevron-down",1,"filtro-reserva-header__icone"],[1,"filtro-reserva-conteudo",3,"ngSubmit","formGroup"],[1,"filtro-reserva-conteudo-header"],["name","x",1,"filtro-reserva-conteudo-header__icone",3,"click"],[1,"row"],[1,"filtro-reserva-tipo-veiculo","col-12","col-xl-6"],["formArrayName","tipoDeVeiculo",1,"filtro-reserva-tipo-veiculo__checkboxs"],["class","filtro-reserva-tipo-veiculo-checkbox",3,"ngClass",4,"ngFor","ngForOf"],["class","filtro-reserva-tipo-retirada col-12 col-sm-6 col-lg-4 col-xl-2",4,"ngIf"],["class","col-12 col-sm-6 col-lg-4 col-xl-2",4,"ngIf"],[1,"filtro-reserva-bagagens","col-12","col-sm-6","col-lg-4","col-xl-2"],["formControlName","bagagens"],["selected","","value",""],[3,"value",4,"ngFor","ngForOf"],[1,"filtro-reserva-limpar-filtro","col-12","col-lg-4","col-xl-2"],["theme","link-primary",3,"click","disabled"],[1,"filtro-reserva-btn","col-12","col-lg-4","col-xl-2"],["buttonType","submit",3,"fullwidth","disabled"],[1,"filtro-reserva-tipo-veiculo-checkbox",3,"ngClass"],["size","56",3,"icon","color"],["type","checkbox",3,"id","formControlName"],[1,"filtro-reserva-tipo-retirada","col-12","col-sm-6","col-lg-4","col-xl-2"],[1,"filtro-reserva-tipo-retirada__fast",3,"ngClass"],["type","checkbox","formControlName","tipoDeRetirada"],[1,"col-12","col-sm-6","col-lg-4","col-xl-2"],[3,"value"]],template:function(a,o){if(a&1&&(s(0,"section",0)(1,"header",1),b("click",function(){return o.handleAbrirBox()}),p(2),c(3,"translate"),h(4,"i-feather",2),l(),s(5,"form",3),b("ngSubmit",function(){return o.handleFiltrar()}),s(6,"header",4)(7,"p"),p(8),c(9,"translate"),l(),s(10,"i-feather",5),b("click",function(){return o.handleAbrirBox()}),l()(),s(11,"div",6)(12,"div",7)(13,"p"),p(14),c(15,"translate"),l(),s(16,"div",8),C(17,_h,5,10,"label",9),l()(),C(18,hh,10,9,"div",10)(19,vh,1,0,"div",11),s(20,"div",12)(21,"p"),p(22),c(23,"translate"),l(),s(24,"select",13)(25,"option",14),p(26),c(27,"translate"),l(),C(28,Ch,2,2,"option",15),l()(),s(29,"div",16)(30,"ds-new-button",17),b("click",function(){return o.zerarFiltro()}),p(31),c(32,"translate"),l()(),s(33,"div",18)(34,"ds-new-button",19),p(35),c(36,"translate"),l()()()()()),a&2){let m;d("ngClass",Ue(30,uh,o.boxAberto,!o.haveFast)),n(2),f(" ",u(3,16,"filtroReserva.titulo")," "),n(3),d("formGroup",o.formulario),n(3),D(u(9,18,"filtroReserva.titulo")),n(6),D(u(15,20,"filtroReserva.tipoVeiculo")),n(3),d("ngForOf",(m=o.formulario.get("tipoDeVeiculo"))==null?null:m.controls),n(),d("ngIf",o.haveFast),n(),d("ngIf",!o.haveFast),n(3),D(u(23,22,"filtroReserva.bagageiro")),n(4),f(" ",u(27,24,"filtroReserva.numeroDeMalas")," "),n(2),d("ngForOf",o.numerosDeBagagem),n(2),d("disabled",!o.filtroAlterado),n(),f(" ",u(32,26,"filtroReserva.limparFiltro")," "),n(3),d("fullwidth",!0)("disabled",!o.filtroAlterado),n(),f(" ",u(36,28,"filtroReserva.filtrar")," ")}},dependencies:[de,ae,N,ct,Fa,Va,wo,Ba,Ce,lt,dt,Mt,Ra,ii,J,Bt,T],styles:[".filtro-reserva[_ngcontent-%COMP%]{border-radius:.8rem;border:.1rem solid #d6d6d6;overflow:hidden}.filtro-reserva--aberto[_ngcontent-%COMP%] .filtro-reserva-header[_ngcontent-%COMP%]{border-bottom:.1rem solid #d6d6d6}.filtro-reserva--aberto[_ngcontent-%COMP%] .filtro-reserva-conteudo[_ngcontent-%COMP%]{display:block}.filtro-reserva--aberto[_ngcontent-%COMP%] .filtro-reserva-header__icone[_ngcontent-%COMP%]{transform:rotate(180deg)}.filtro-reserva-header[_ngcontent-%COMP%]{align-items:center;background-color:#f2f2f2;border-bottom:none;border-radius:.8rem;color:#4a4a4a;cursor:pointer;display:flex;font-weight:700;gap:.8rem;justify-content:flex-start;padding:1.6rem 2rem}.filtro-reserva-header[_ngcontent-%COMP%]:hover{color:#6e6e6e}.filtro-reserva-header__icone[_ngcontent-%COMP%]{color:#78de1f;height:2rem;transition:.2s;width:2rem}.filtro-reserva-conteudo[_ngcontent-%COMP%]{background:#fff;display:none;flex-direction:column;gap:3.2rem;height:100%;justify-content:flex-start;overflow:hidden;padding:1.6rem 2rem;position:fixed;right:0;top:0;width:100%;z-index:100}@media(min-width:768px){.filtro-reserva-conteudo[_ngcontent-%COMP%]{flex-direction:row;height:auto;position:relative;width:auto;z-index:0}}.filtro-reserva-conteudo-header[_ngcontent-%COMP%]{align-items:center;border-bottom:.1rem solid #d6d6d6;display:flex;justify-content:space-between;margin-bottom:2.4rem;padding:.8rem 0}@media(min-width:768px){.filtro-reserva-conteudo-header[_ngcontent-%COMP%]{display:none}}.filtro-reserva-conteudo-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#01602a;font-size:2rem;line-height:2.8rem}.filtro-reserva-conteudo-header__icone[_ngcontent-%COMP%]{color:#01602a;cursor:pointer;transition:.2s}.filtro-reserva-conteudo-header__icone[_ngcontent-%COMP%]:hover{color:#1e852d}.filtro-reserva-tipo-veiculo[_ngcontent-%COMP%]{margin-bottom:2.4rem}@media(min-width:1200px){.filtro-reserva-tipo-veiculo[_ngcontent-%COMP%]{margin-bottom:0}}.filtro-reserva-tipo-veiculo[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#4a4a4a;font-weight:700;margin-bottom:1.6rem}.filtro-reserva-tipo-veiculo__checkboxs[_ngcontent-%COMP%]{display:grid;gap:.8rem;grid-template-columns:repeat(3,1fr)}@media(min-width:768px){.filtro-reserva-tipo-veiculo__checkboxs[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}}.filtro-reserva-tipo-veiculo-checkbox[_ngcontent-%COMP%]{align-items:center;border-radius:.8rem;border:.1rem solid transparent;box-shadow:0 .4rem 2.4rem #00000026;color:#01602a;cursor:pointer;display:flex;flex-direction:column;gap:.4rem;justify-content:center;padding:1.6rem .8rem .8rem;transition:.2s}.filtro-reserva-tipo-veiculo-checkbox--selecionado[_ngcontent-%COMP%]{border:.1rem solid #78de1f}@media(min-width:768px){.filtro-reserva-tipo-veiculo-checkbox[_ngcontent-%COMP%]:hover{border-color:#78de1f}}.filtro-reserva-tipo-veiculo-checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.filtro-reserva-tipo-retirada[_ngcontent-%COMP%]{margin-bottom:2.4rem}@media(min-width:1200px){.filtro-reserva-tipo-retirada[_ngcontent-%COMP%]{margin-bottom:0}}.filtro-reserva-tipo-retirada[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#4a4a4a;font-weight:700;margin-bottom:1.6rem}.filtro-reserva-tipo-retirada[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.filtro-reserva-tipo-retirada__fast[_ngcontent-%COMP%]{color:#000;display:flex;display:inline;font-size:1.2rem}.filtro-reserva-tipo-retirada__fast[_ngcontent-%COMP%]:hover{color:#1e852d;transition:.2s}.filtro-reserva-tipo-retirada__fast--ativo[_ngcontent-%COMP%]{color:#fff}.filtro-reserva-tipo-retirada__fast--ativo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#01602a}.filtro-reserva-tipo-retirada__fast--ativo[_ngcontent-%COMP%]:hover{color:#fff}.filtro-reserva-tipo-retirada__fast--ativo[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{background-color:#1e852d}.filtro-reserva-tipo-retirada__fast[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-family:LocalizaDinDisplay_Bold,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:100}.filtro-reserva-tipo-retirada__fast[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border-radius:2rem;border:.1rem solid #d6d6d6;cursor:pointer;padding:.8rem 1.6rem}.filtro-reserva-tipo-retirada__fast[_ngcontent-%COMP%] span[_ngcontent-%COMP%] ds-icon{left:.8rem;position:relative}.filtro-reserva-bagagens[_ngcontent-%COMP%]{margin-bottom:8rem}@media(min-width:576px){.filtro-reserva-bagagens[_ngcontent-%COMP%]{margin-bottom:2.4rem}}@media(min-width:1200px){.filtro-reserva-bagagens[_ngcontent-%COMP%]{margin-bottom:0}}.filtro-reserva-bagagens[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#4a4a4a;font-weight:700;margin-bottom:1.6rem}.filtro-reserva-bagagens[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border-radius:.5rem;border:1px solid #d9d9d9;cursor:pointer;font-size:1.2rem;height:3.5rem;padding:.5rem;width:16.8rem}.filtro-reserva-btn[_ngcontent-%COMP%]{align-self:center;flex:1}.filtro-reserva-limpar-filtro[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:1.6rem}@media(min-width:768px){.filtro-reserva-limpar-filtro[_ngcontent-%COMP%]{display:none}}.filtro-reserva--no-fast[_ngcontent-%COMP%] .filtro-reserva-bagagens[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{height:4.8rem;width:100%}.filtro-reserva--no-fast[_ngcontent-%COMP%] .filtro-reserva-limpar-filtro[_ngcontent-%COMP%]{margin-bottom:0;margin-top:1.6rem;order:1}"]});let i=r;return i})();var fd=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=Rt({type:r}),r.\u0275inj=Et({imports:[U,A,Te,be,Vt,oe,Eo.pick({ChevronDown:es,X:ss})]});let i=r;return i})();var gd=(()=>
2{let r=class r{constructor(e){this.sanitizer=e}transform(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}};r.\u0275fac=function(a){return new(a||r)(v(Wr,16))},r.\u0275pipe=xo({name:"safe",type:r,pure:!0});let i=r;return i})();var xh={Percent:as,User:rs,Lock:os,Key:is,CreditCard:ts,Unlock:ns},_d=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=Rt({type:r}),r.\u0275inj=Et({imports:[U,xl,Vt,A,ai,ze,Te,se,Le,Eo.pick(xh),Zt]});let i=r;return i})();var Ph=i=>({"prepago--webview":i}),Sh=(i,r)=>({iframe:i,"iframe-colombia":r});function yh(i,r){if(i&1&&(s(0,"div",6)(1,"div",4),h(2,"app-barra-navegacao-reserva",7),l()()),i&2){let t=g();n(2),d("step",5)("isPrePagamentoColombia",t.isPrePagamentoColombia)("showEditButtons",!t.isPrePagamentoColombia)}}function Mh(i,r){i&1&&h(0,"app-trigger-escassez")}var hd=(()=>{let r=class r{constructor(e,a,o,m,_,x){this.reservaStore=e,this.translateService=a,this.router=o,this.ga=m,this.internacionalizacao=_,this.webviewService=x,this.isMexico=!1,this.exibirTriggerEscassez=!1,this.carregouFlagEndereco=!1,this.isWebview=!1}ngOnInit(){this.isWebview=this.webviewService.isWebView(),this.codigoPaisDefault=this.internacionalizacao.recuperarCodigoPais(),this.isMexico=this.codigoPaisDefault===pe,this.breadCrumb=[{label:"breadCrumbs.reserva.passo5.label",url:"breadCrumbs.reserva.passo5.url"}],this.subscriptionRoute=this.reservaStore.state$.subscribe(e=>{this.reserva=e?.reserva;let a=this.codigoPaisDefault===pe,o=this.reserva?.codigoPaisAgenciaRetirada===pe;if(this.exibirTriggerEscassez=a||o,this.isPrePagamentoColombia=this.reserva?.codigoPaisAgenciaRetirada===Fe,!this.reserva?.reservaRealizadaNr){this.translateService.get("url.home").pipe(w(1)).subscribe(m=>{this.router.navigate([m])});return}this.urlPrePagamento=this.reserva.reservaRealizadaNr?.prePagamento?.linkPrePagamento??this.translateService.instant("url.paginaDeErro")}),this.ga.preencherDataLayer({event:"sendEvent",eventCategory:"LinkPagamentoGerado"})}ngOnDestroy(){this.subscriptionRoute?.unsubscribe()}onload(e){this.el=e.target}redirecionarParaRecibo(){this.translateService.get("url.reserva.confirmacao").pipe(w(1)).subscribe(e=>{this.router.navigate([e])})}receberMensagemPostMessage(e){e.data.type==="PAYMENT_SUCCESS"&&this.redirecionarParaRecibo()}};r.\u0275fac=function(a){return new(a||r)(v(fe),v(G),v(xe),v(Q),v(it),v(Pe))},r.\u0275cmp=M({type:r,selectors:[["app-pre-pagamento"]],hostBindings:function(a,o){a&1&&b("message",function(_){return o.receberMensagemPostMessage(_)},mi)},decls:15,vars:19,consts:[[3,"breadCrumbs"],[1,"container","prepago",3,"ngClass"],["class","row barra-navegacao",4,"ngIf"],[1,"row"],[1,"col-12"],["allowtransparency","true","frameborder","0","id","rf","sandbox","allow-same-origin allow-forms allow-scripts allow-popups","scrolling","no",3,"load","src","ngClass"],[1,"row","barra-navegacao"],[3,"step","isPrePagamentoColombia","showEditButtons"]],template:function(a,o){a&1&&(h(0,"app-breadcrumb",0)(1,"app-header-preview"),s(2,"section",1),C(3,yh,3,3,"div",2),s(4,"div",3)(5,"div",4)(6,"h2"),p(7),c(8,"translate"),l(),s(9,"p"),p(10),c(11,"translate"),l(),B(12,Mh,1,0,"app-trigger-escassez"),s(13,"iframe",5),c(14,"safe"),b("load",function(_){return o.onload(_)}),l()()()()),a&2&&(d("breadCrumbs",o.breadCrumb),n(2),d("ngClass",L(14,Ph,o.isWebview)),n(),d("ngIf",o.isPrePagamentoColombia),n(4),D(u(8,8,"reserva.passo5.titulo")),n(3),D(u(11,10,"reserva.passo5.subTitulo")),n(2),F(o.exibirTriggerEscassez&&!o.isWebview?12:-1),n(),d("src",u(14,12,o.urlPrePagamento),Ir)("ngClass",Ue(16,Sh,!o.isPrePagamentoColombia,o.isPrePagamentoColombia)))},dependencies:[U,de,N,no,si,Qi,Nt,A,Vt,_d,Zt,hs,tc,fd,oe,zt,Vo,_s,Oi,ro,T,gd],styles:[".prepago[_ngcontent-%COMP%]{margin:2.4rem auto 3.2rem}.prepago[_ngcontent-%COMP%] app-trigger-escassez[_ngcontent-%COMP%]{display:block;margin-bottom:1.2rem}.barra-navegacao[_ngcontent-%COMP%]{margin-bottom:2rem}.iframe[_ngcontent-%COMP%]{width:100%;height:1300px}@media(max-width:768px){.iframe[_ngcontent-%COMP%]{height:2450px}}.iframe-colombia[_ngcontent-%COMP%]{width:100%;height:700px}@media(max-width:768px){.iframe-colombia[_ngcontent-%COMP%]{height:650px}}@media(min-width:768px){h2[_ngcontent-%COMP%]{font-size:3.2rem;line-height:3.8rem;text-align:start}}h2[_ngcontent-%COMP%]{font-size:3.2rem;line-height:2.4rem;text-transform:inherit;margin-bottom:2.4rem}p[_ngcontent-%COMP%]{font-size:1.4rem;line-height:2.4rem;margin-bottom:2.4rem}"]});let i=r;return i})();var Xn=(()=>
2{let r=class r{constructor(){this.featureFlagService=I(wt),this.googleAnalyticsService=I(Q),this.monitoringService=I(Dt),this.cookieService=I(Na),this.isBrowser=Be(I(Ve)),this.impressionSent=!1}getVariant(){let e=this.featureFlagService.valueFlag(r.FLAG_KEY);return this.resolveVariant(e)}isTestActive(){return this.getVariant()==="test"}isTestActive$(){return this.featureFlagService.listenValueFlag(r.FLAG_KEY).pipe(po(e=>this.resolveVariant(e)==="test"))}trackImpression(){if(!this.isBrowser||this.impressionSent)return;let e=this.getVariant(),a=`configcat-${r.AB_TEST_NAME}-${e}`,o=this.cookieService.get(r.USER_SEGMENT_COOKIE)||"",m={event:"experience_impression",ab_test_name:r.AB_TEST_NAME,ab_test_variant:e,exp_variant_string:a,variation_id:a,id_marketing_digital:o};this.googleAnalyticsService.preencherDataLayer(m),this.monitoringService.addFeatureFlagEvaluation(r.FLAG_KEY,e),this.impressionSent=!0}resolveVariant(e){return e?.testeAtivo===!0&&e?.variante==="test"?"test":"control"}};r.FLAG_KEY="mexico_step2_tariff",r.AB_TEST_NAME="mexico_step2_tariff",r.USER_SEGMENT_COOKIE="User-Segment",r.\u0275fac=function(a){return new(a||r)},r.\u0275prov=$e({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();var Cd=(()=>{let r=class r{constructor(e,a){this.matDialogRef=e,this.googleAnalyticsService=a}handleCtaYes(){this.googleAnalyticsService.sendEvent("__MensuraEventos","monthly_rental_details_modal","clicked","entendi"),this.matDialogRef.close(!0)}handleCtnLearnMore(){this.googleAnalyticsService.sendEvent("__MensuraEventos","monthly_rental_details_modal","clicked","saiba_mais"),this.matDialogRef.close(!0)}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(Q))},r.\u0275cmp=M({type:r,selectors:[["app-modal-info-pfam"]],decls:33,vars:30,consts:[[1,"modal-info-pfam"],[1,"modal-info-pfam-content"],[1,"modal-info-pfam__subtitle"],[1,"modal-info-pfam__description"],[1,"modal-info-pfam__buttons"],[3,"click"],["theme","link-primary","tagType","anchor","target","_blank",3,"click","href"]],template:function(a,o){a&1&&(s(0,"app-modal")(1,"div",0)(2,"div",1)(3,"h4"),p(4),c(5,"translate"),l(),s(6,"p",2),p(7),c(8,"translate"),l(),s(9,"ul")(10,"li"),p(11),c(12,"translate"),l(),s(13,"li"),p(14),c(15,"translate"),l(),s(16,"li"),p(17),c(18,"translate"),l()(),s(19,"p",3)(20,"span"),p(21),c(22,"translate"),l(),p(23),c(24,"translate"),l(),s(25,"div",4)(26,"ds-new-button",5),b("click",function(){return o.handleCtaYes()}),p(27),c(28,"translate"),l(),s(29,"ds-new-button",6),c(30,"translate"),b("click",function(){return o.handleCtnLearnMore()}),p(31),c(32,"translate"),l()()()()()),a&2&&(n(4),D(u(5,10,"modalInfoPfam.title")),n(3),f(" ",u(8,12,"modalInfoPfam.subtitle")," "),n(4),D(u(12,14,"modalInfoPfam.list.item01")),n(3),D(u(15,16,"modalInfoPfam.list.item02")),n(3),D(u(18,18,"modalInfoPfam.list.item03")),n(4),D(u(22,20,"modalInfoPfam.preDescription")),n(2),f(" ",u(24,22,"modalInfoPfam.description")," "),n(4),D(u(28,24,"modalInfoPfam.ctaYes")),n(2),d("href",u(30,26,"url.localizaFlex")),n(2),f(" ",u(32,28,"modalInfoPfam.ctnLearnMore")," "))},dependencies:[se,oe,J,A,T],styles:[".modal-info-pfam[_ngcontent-%COMP%]{align-items:center;color:#4a4a4a;display:flex;flex-direction:column}.modal-info-pfam-content[_ngcontent-%COMP%]{align-items:center;color:#4a4a4a;display:flex;flex-direction:column;margin-top:1.6rem;max-width:40rem}.modal-info-pfam__subtitle[_ngcontent-%COMP%]{margin:1.6rem 0 .8rem;max-width:36rem;text-align:center}.modal-info-pfam__description[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.modal-info-pfam[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:400;line-height:2.2rem;margin-bottom:1.6rem;text-align:center;text-transform:uppercase}.modal-info-pfam[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:2.4rem 0;padding-inline-start:16px}.modal-info-pfam[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-top:.4rem}.modal-info-pfam__buttons[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;gap:.8rem;margin-top:2.4rem}"]});let i=r;return i})();function Dh(i,r){if(i&1){let t=k();s(0,"a",6),c(1,"translate"),b("click",function(){P(t);let a=g();return S(a.handleClickWhatsApp())}),p(2),c(3,"translate"),l()}i&2&&(d("href",u(1,2,"header.menu.monthlyRent.link"),bt),n(2),f(" ",u(3,4,"snackPfam.whatsappCta")," "))}var bd=(()=>
2{let r=class r{constructor(){this.breakpointService=I(De),this.isBrowser=Be(I(Ve)),this.isDesktopSignal=Oe(this.breakpointService.isDesktop,{initialValue:!1}),this.matDialog=I(re),this.matDialogRef=I(Y),this.googleAnalyticsService=I(Q),this.dialogData=I(ne,{optional:!0}),this.isMexico=this.dialogData?.isMexico??!1}ngOnInit(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"monthly_rental_modal",action:"impression"}),this.setStateModal()}handleClickCtaLearnMore(){this.googleAnalyticsService.sendEvent("__MensuraEventos","monthly_rental_modal","clicked","mostrar_detalhes"),this.matDialog.open(Cd,{disableClose:!0,maxWidth:"49.6rem",maxHeight:this.isDesktopSignal()?"51.2rem":"53.6rem",panelClass:"matDialog100Percent"}).afterClosed().subscribe(a=>{a||this.googleAnalyticsService.sendEvent("__MensuraEventos","monthly_rental_details_modal","clicked","close")})}handleUnderstoodClick(){this.googleAnalyticsService.sendEvent("__MensuraEventos","monthly_rental_modal","clicked","seguir"),this.matDialogRef.close(!0)}handleClickWhatsApp(){this.googleAnalyticsService.sendEvent("__MensuraEventos","monthly_rental_modal","clicked","cotizar_whatsapp"),this.matDialogRef.close(!0)}setStateModal(){this.isBrowser&&localStorage.setItem("pfam-welcome","true")}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-welcome-pfam"]],decls:15,vars:14,consts:[[1,"welcome-pfam"],[1,"welcome-pfam__title"],[1,"welcome-pfam__description"],["theme","link-primary","data-testid","welcome-pfam-learn-more",3,"click"],["data-testid","welcome-pfam-close",3,"click","fullwidth"],["target","_blank","data-testid","welcome-pfam-whatsapp",1,"welcome-pfam__whatsapp-link",3,"href"],["target","_blank","data-testid","welcome-pfam-whatsapp",1,"welcome-pfam__whatsapp-link",3,"click","href"]],template:function(a,o){a&1&&(s(0,"app-modal")(1,"div",0)(2,"h2",1),p(3),c(4,"translate"),l(),s(5,"p",2),p(6),c(7,"translate"),l(),s(8,"ds-new-button",3),b("click",function(){return o.handleClickCtaLearnMore()}),p(9),c(10,"translate"),l(),s(11,"ds-new-button",4),b("click",function(){return o.handleUnderstoodClick()}),p(12),c(13,"translate"),l(),B(14,Dh,4,6,"a",5),l()()),a&2&&(n(3),f(" ",u(4,6,"snackPfam.title")," "),n(3),f(" ",u(7,8,"snackPfam.description")," "),n(3),f(" ",u(10,10,"snackPfam.learnMore")," "),n(2),d("fullwidth",!0),n(),f(" ",u(13,12,"snackPfam.button")," "),n(2),F(o.isMexico?14:-1))},dependencies:[se,A,oe,J,T],styles:[".welcome-pfam[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;padding:1.25rem}.welcome-pfam__title[_ngcontent-%COMP%], .welcome-pfam__description[_ngcontent-%COMP%]{color:#4a4a4a}.welcome-pfam__title[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:2rem}.welcome-pfam__description[_ngcontent-%COMP%]{margin-bottom:2.5rem}.welcome-pfam[_ngcontent-%COMP%] ds-new-button[_ngcontent-%COMP%]:nth-of-type(1){margin-bottom:1rem}.welcome-pfam__whatsapp-link[_ngcontent-%COMP%]{margin-top:1rem;color:var(--lds-color-accent-secondary-emphasis-high);font-family:var(--lds-font-brand-family);font-size:1.3rem;font-weight:400;cursor:pointer}.welcome-pfam__whatsapp-link[_ngcontent-%COMP%]:hover{text-decoration:underline}"]});let i=r;return i})();var wh=i=>({"filtro-reserva-mx--aberto":i}),Oh=i=>({"filtro-reserva-mx-tipo-veiculo-checkbox--selecionado":i});function kh(i,r){if(i&1&&(s(0,"label",16),h(1,"ds-icon",17),p(2),c(3,"translate"),h(4,"input",18),l()),i&2){let t=r.index,e=g();d("ngClass",L(8,Oh,e.formulario.value.tipoDeVeiculo[t])),n(),d("icon",e.iconesTipoDeCarro[e.listaTipoDeVeiculo[t].value])("color","primary"),n(),f(" ",u(3,6,"filtroReserva.tipos."+e.listaTipoDeVeiculo[t].value)," "),n(2),d("id",e.listaTipoDeVeiculo[t].value)("formControlName",t)}}var xd=(()=>{let r=class r{constructor(e,a){this.formBuilder=e,this.bsService=a,this.isMd=!1,this.boxAberto=!1,this.filtroAlterado=!1,this.quantidadeDeAlteracao=0,this.listaTipoDeVeiculo=[{value:"hatch",label:"Hatch"},{value:"sedan",label:"Sedan"},{value:"pickup",label:"Pick-up"},{value:"minivan",label:"Minivan"},{value:"suv",label:"SUV"},{value:"furgao",label:"Furg\xE3o"}],this.iconesTipoDeCarro={hatch:"icon_type_car_hatch",sedan:"icon_type_car_sedan",pickup:"icon_type_car_pickup",minivan:"icon_type_car_minivan",suv:"icon_type_car_suv",furgao:"icon_type_car_furgao"},this.limparFiltro=!1,this.filtroInserido=new W,this.limparFiltroOutput=new W}ngOnInit(){this.filtroAtual={tipoDeVeiculo:this.listaTipoDeVeiculo.map(e=>!1),bagagens:void 0},this.subscriptionBreakpoint=this.bsService.isMd.subscribe(e=>{this.isMd=e,this.boxAberto=e}),this.formulario=this.formBuilder.group({tipoDeVeiculo:this.formBuilder.array(this.listaTipoDeVeiculo.map(e=>new Ea(!1))),bagagens:""}),this.subscriptionFormulario=this.formulario.valueChanges.subscribe(e=>{let{tipoDeVeiculo:a,bagagens:o}=e;this.filtroAlterado=JSON.stringify(this.filtroAtual.tipoDeVeiculo)!==JSON.stringify(a)||this.filtroAtual.bagagens?.malasPequenas!==this.numerosDeBagagem[o]?.malasPequenas||this.filtroAtual.bagagens?.malasGrandes!==this.numerosDeBagagem[o]?.malasGrandes,this.handleFiltrar()})}ngOnChanges(e){!e.limparFiltro?.firstChange&&e.limparFiltro?.currentValue&&this.zerarFiltro()}ngOnDestroy(){this.subscriptionBreakpoint?.unsubscribe(),this.subscriptionFormulario?.unsubscribe()}handleAbrirBox(){this.boxAberto=!this.boxAberto}zerarFiltro(){this.formulario.reset(),this.formulario.get("bagagens")?.setValue(""),this.isMd||(this.boxAberto=!1),this.limparFiltroOutput.emit(!0)}handleFiltrar(){if(this.filtroAlterado){let e={tipoDeVeiculo:this.formulario.value.tipoDeVeiculo.map((a,o)=>a?this.listaTipoDeVeiculo[o]:null).filter(a=>a),tipoDeRetiradaFast:!1,bagagens:this.numerosDeBagagem[this.formulario.value.bagagens]};this.filtroInserido.emit(e),this.filtroAtual=X($({},e),{tipoDeVeiculo:this.formulario.value.tipoDeVeiculo})}}};r.\u0275fac=function(a){return new(a||r)(v(Ao),v(De))},r.\u0275cmp=M({type:r,selectors:[["loc-filtro-reserva-mexico"]],inputs:{numerosDeBagagem:"numerosDeBagagem",limparFiltro:"limparFiltro"},outputs:{filtroInserido:"filtroInserido",limparFiltroOutput:"limparFiltroOutput"},features:[nt],decls:31,vars:29,consts:[[1,"filtro-reserva-mx",3,"ngClass"],[1,"filtro-reserva-mx-header",3,"click"],["name","chevron-down",1,"filtro-reserva-mx-header__icone"],[1,"filtro-reserva-mx-conteudo",3,"ngSubmit","formGroup"],[1,"filtro-reserva-mx-conteudo-header"],["name","x",1,"filtro-reserva-mx-conteudo-header__icone",3,"click"],[1,"row"],[1,"filtro-reserva-mx-tipo-veiculo","col-12","col-xl-6"],["formArrayName","tipoDeVeiculo",1,"filtro-reserva-mx-tipo-veiculo__checkboxs"],["class","filtro-reserva-mx-tipo-veiculo-checkbox",3,"ngClass",4,"ngFor","ngForOf"],[1,"filtro-reserva-mx-bagagens","col-12","col-sm-6","col-lg-4","col-xl-3"],[1,"filtro-reserva-mx-btn-mobile","col-12"],["type","button","ldsButton","","size","lg","variant","contained","color","primary",1,"filtro-reserva-mexico__button",3,"click","fullWidth","disabled"],[1,"filtro-reserva-mx-limpar-mobile","col-12"],["type","button","ldsButton","","size","lg","variant","contained","color","primary","theme","link-primary",1,"filtro-reserva-mexico__button",3,"click","fullWidth","disabled"],[1,"filtro-reserva-mx-btn","col-12","col-lg-4","col-xl-3"],[1,"filtro-reserva-mx-tipo-veiculo-checkbox",3,"ngClass"],["size","56",3,"icon","color"],["type","checkbox",3,"id","formControlName"]],template:function(a,o){if(a&1&&(s(0,"section",0)(1,"header",1),b("
2click",function(){return o.handleAbrirBox()}),p(2),c(3,"translate"),h(4,"i-feather",2),l(),s(5,"form",3),b("ngSubmit",function(){return o.handleFiltrar()}),s(6,"header",4)(7,"p"),p(8),c(9,"translate"),l(),s(10,"i-feather",5),b("click",function(){return o.handleAbrirBox()}),l()(),s(11,"div",6)(12,"div",7)(13,"p"),p(14),c(15,"translate"),l(),s(16,"div",8),C(17,kh,5,10,"label",9),l()(),h(18,"div",10),s(19,"div",11)(20,"button",12),b("click",function(){return o.handleAbrirBox()}),p(21),c(22,"translate"),l()(),s(23,"div",13)(24,"button",14),b("click",function(){return o.zerarFiltro()}),p(25),c(26,"translate"),l()(),s(27,"div",15)(28,"button",12),b("click",function(){return o.zerarFiltro()}),p(29),c(30,"translate"),l()()()()()),a&2){let m;d("ngClass",L(27,wh,o.boxAberto)),n(2),f(" ",u(3,15,"filtroReserva.titulo")," "),n(3),d("formGroup",o.formulario),n(3),D(u(9,17,"filtroReserva.titulo")),n(6),D(u(15,19,"filtroReserva.tipoVeiculo")),n(3),d("ngForOf",(m=o.formulario.get("tipoDeVeiculo"))==null?null:m.controls),n(3),d("fullWidth",!0)("disabled",!o.filtroAlterado),n(),f(" ",u(22,21,"filtroReserva.filtrar")," "),n(3),d("fullWidth",!0)("disabled",!o.filtroAlterado),n(),f(" ",u(26,23,"filtroReserva.limparFiltro")," "),n(3),d("fullWidth",!0)("disabled",!o.filtroAlterado),n(),f(" ",u(30,25,"filtroReserva.limparFiltro")," ")}},dependencies:[U,de,ae,A,Te,ct,wo,Ce,lt,be,dt,Mt,Ra,Vt,ii,oe,Eo,Bt,oi,T],styles:["*[_ngcontent-%COMP%]{font-family:var(--lds-font-brand-family)}.filtro-reserva-mexico__button[_ngcontent-%COMP%]{border-radius:5.2rem;font-family:var(--lds-font-brand-family);font-size:1.6rem;font-weight:600;line-height:150%;text-align:center}.filtro-reserva-mx[_ngcontent-%COMP%]{border-radius:.8rem;border:.1rem solid var(--lds-color-neutral-border-low);overflow:hidden}.filtro-reserva-mx--aberto[_ngcontent-%COMP%] .filtro-reserva-mx-header[_ngcontent-%COMP%]{border-bottom:.1rem solid var(--lds-color-neutral-border-low)}.filtro-reserva-mx--aberto[_ngcontent-%COMP%] .filtro-reserva-mx-conteudo[_ngcontent-%COMP%]{display:block;padding-top:80px}.filtro-reserva-mx--aberto[_ngcontent-%COMP%] .filtro-reserva-mx-header__icone[_ngcontent-%COMP%]{transform:rotate(180deg)}.filtro-reserva-mx-header[_ngcontent-%COMP%]{align-items:center;background-color:#f2f2f2;border-bottom:none;border-radius:.8rem;color:#4a4a4a;cursor:pointer;display:flex;font-weight:700;gap:.8rem;justify-content:flex-start;padding:1.6rem 2rem}.filtro-reserva-mx-header[_ngcontent-%COMP%]:hover{color:#6e6e6e}.filtro-reserva-mx-header__icone[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-contrast-low);height:2rem;transition:.2s;width:2rem}.filtro-reserva-mx-conteudo[_ngcontent-%COMP%]{background:#fff;display:none;flex-direction:column;gap:3.2rem;height:100%;justify-content:flex-start;overflow:hidden;padding:1.6rem 2rem;position:fixed;right:0;top:0;width:100%;z-index:999}@media(min-width:768px){.filtro-reserva-mx-conteudo[_ngcontent-%COMP%]{flex-direction:row;height:auto;position:relative;width:auto;z-index:0}}.filtro-reserva-mx-conteudo-header[_ngcontent-%COMP%]{align-items:center;border-bottom:.1rem solid var(--lds-color-neutral-border-default);display:flex;justify-content:space-between;margin-bottom:2.4rem;padding:.8rem 0}@media(min-width:768px){.filtro-reserva-mx-conteudo-header[_ngcontent-%COMP%]{display:none}}.filtro-reserva-mx-conteudo-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-contrast-low);font-size:2rem;line-height:2.8rem}.filtro-reserva-mx-conteudo-header__icone[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-contrast-low);cursor:pointer;transition:.2s}.filtro-reserva-mx-conteudo-header__icone[_ngcontent-%COMP%]:hover{color:var(--lds-color-accent-primary-contrast-high)}.filtro-reserva-mx-tipo-veiculo[_ngcontent-%COMP%]{margin-bottom:2.4rem}@media(min-width:1200px){.filtro-reserva-mx-tipo-veiculo[_ngcontent-%COMP%]{margin-bottom:0}}.filtro-reserva-mx-tipo-veiculo[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#4a4a4a;font-weight:700;margin-bottom:1.6rem}.filtro-reserva-mx-tipo-veiculo__checkboxs[_ngcontent-%COMP%]{display:grid;gap:.8rem;grid-template-columns:repeat(3,1fr)}@media(min-width:768px){.filtro-reserva-mx-tipo-veiculo__checkboxs[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}}.filtro-reserva-mx-tipo-veiculo-checkbox[_ngcontent-%COMP%]{align-items:center;border-radius:.8rem;border:.1rem solid transparent;border:.1rem solid var(--lds-color-neutral-border-low);color:#01602a;cursor:pointer;display:flex;flex-direction:column;gap:.4rem;justify-content:center;padding:1.6rem .8rem .8rem;transition:.2s}.filtro-reserva-mx-tipo-veiculo-checkbox--selecionado[_ngcontent-%COMP%]{border:1.5px solid var(--lds-color-accent-primary-contrast-low)}@media(min-width:768px){.filtro-reserva-mx-tipo-veiculo-checkbox[_ngcontent-%COMP%]:hover{border-color:var(--lds-color-accent-primary-contrast-low)}}.filtro-reserva-mx-tipo-veiculo-checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.filtro-reserva-mx-btn-mobile[_ngcontent-%COMP%]{margin-bottom:1.2rem}@media(min-width:768px){.filtro-reserva-mx-btn-mobile[_ngcontent-%COMP%]{display:none}}.filtro-reserva-mx-limpar-mobile[_ngcontent-%COMP%]{margin-bottom:1.6rem}@media(min-width:768px){.filtro-reserva-mx-limpar-mobile[_ngcontent-%COMP%]{display:none}}.filtro-reserva-mx-btn[_ngcontent-%COMP%]{display:none;align-self:center;flex:1;margin-top:7px}@media(min-width:768px){.filtro-reserva-mx-btn[_ngcontent-%COMP%]{display:block}}.filtro-reserva-mx-limpar-filtro[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1.6rem}@media(min-width:768px){.filtro-reserva-mx-limpar-filtro[_ngcontent-%COMP%]{display:none}}"]});let i=r;return i})();var Th=()=>({$implicit:"rs-close-btn-desktop"}),Ah=()=>({$implicit:"rs-close-btn-mobile"}),Pd=()=>({$implicit:!1}),Md=(i,r)=>({$implicit:i,isLast:r,isMobileContext:!1}),Sd=()=>({$implicit:!0}),Eh=(i,r)=>({$implicit:i,isLast:r,isMobileContext:!0}),Dd=i=>({item:i}),wd=i=>({group:i}),Rh=i=>({title:i}),Cr=(i,r)=>r.icon;function Bh(i,r){if(i&1&&Ee(0,7),i&2){let t=r.$implicit,e=r.$index,a=r.$count;g(2);let o=ue(11);d("ngTemplateOutlet",o)("ngTemplateOutletContext",Ue(2,Md,t,e===a-1))}}function Fh(i,r){if(i&1&&Ee(0,7),i&2){let t=r.$implicit,e=r.$index,a=r.$count;g(2);let o=ue(11);d("ngTemplateOutlet",o)("ngTemplateOutletContext",Ue(2,Md,t,e===a-1))}}function Vh(i,r){if(i&1&&(s(0,"section",16)(1,"div",17),Ee(2,7),s(3,"div",18)(4,"h3",19),p(5),c(6,"translate"),l(),s(7,"p",20),p(8),c(9,"translate"),l(),Ee(10,7),l()()(),s(11,"section",21)(12,"div",22),Ai(13,Bh,1,5,"ng-container",7,Cr),l()(),s(15,"section",23)(16,"div",22),Ai(17,Fh,1,5,"ng-container",7,Cr),l()()),i&2){g();let t=ue(13),e=ue(17),a=g();n(2),d("ngTemplateOutlet",t)("ngTemplateOutletContext",Wt(10,Pd)),n(3),D(u(6,6,"components.smarts.reservaSimplificada.titulo")),n(3),D(u(9,8,"components.smarts.reservaSimplificada.descricao")),n(2),d("ngTemplateOutlet",e)("ngTemplateOutletContext",Wt(11,Pd)),n(3),Ei(a.summaryItems().slice(0,2)),n(4),Ei(a.summaryItems().slice(2))}}function zh(i,r){if(i&1&&Ee(0,8),i&2){g();let t=ue(19);d("ngTemplateOutlet",t)}}function Lh(i,r){if(i&1&&Ee(0,7),i&2){let t=r.$implicit,e=r.$index,a=r.$count;g(2);let o=ue(11);d("ngTemplateOutlet",o)("ngTemplateOutletContext",Ue(2,Eh,t,e===a-1))}}function Nh(i,r){if(i&1){let t=k();s(0,"div",24),Ee(1,7),s(2,"h3",19),p(3),c(4,"translate"),l(),s(5,"p",20),p(6),c(7,"translate"),l()(),s(8,"lds-accordion",25),c(9,"translate"),s(10,"lds-accordion-item",26),b("onChanges",function(a){P(t);let o=g(2);return S(o.onAccordionChange(a))}),s(11,"div",27)(12,"h3",28),p(13),c(14,"translate"),c(15,"translate"),l()(),s(16,"div",29),b("click",function(a){return P(t),S(a.stopPropagation())}),Ai(17,Lh,1,5,"ng-container",7,Cr),l()()(),Ee(19,7)}if(i&2){g();let t=ue(13),e=ue(17),a=g();n(),d("ngTemplateOutlet",t)("ngTemplateOutletContext",Wt(18,Sd)),n(2),D(u(4,8,"components.smarts.reservaSimplificada.titulo")),n(3),D(u(7,10,"components.smarts.reservaSimplificada.descricao")),n(2),Ie("aria-label",u(9,12,"components.smarts.reservaSimplificada.ariaDetalhes
2Reserva")),n(5),f(" ",a.isAccordionOpen()?u(14,14,"components.smarts.reservaSimplificada.recolherDetalhes"):u(15,16,"components.smarts.reservaSimplificada.maisDetalhes")," "),n(4),Ei(a.summaryItems()),n(2),d("ngTemplateOutlet",e)("ngTemplateOutletContext",Wt(19,Sd))}}function Uh(i,r){if(i&1&&Ee(0,8),i&2){g();let t=ue(19);d("ngTemplateOutlet",t)}}function Gh(i,r){i&1&&h(0,"lds-icon-car",33)}function jh(i,r){i&1&&h(0,"lds-icon-shield-lock",33)}function qh(i,r){i&1&&h(0,"lds-icon-circle-plus-outlined",33)}function Hh(i,r){i&1&&h(0,"lds-icon-gps",33)}function $h(i,r){i&1&&h(0,"lds-icon-check",33)}function Wh(i,r){if(i&1&&Ee(0,7),i&2){let t=g().$implicit,e=ue(18);d("ngTemplateOutlet",e)("ngTemplateOutletContext",L(2,Dd,t))}}function Kh(i,r){i&1&&(s(0,"p",36),h(1,"lds-skeleton",38),l())}function Zh(i,r){if(i&1&&(s(0,"span",39),p(1),c(2,"translate"),c(3,"titlecase"),l()),i&2){let t=g(2).$implicit;n(),q(" ",y(2,2,"components.smarts.reservaSimplificada.grupo",L(7,wd,(t==null?null:t.groupCode)??""))+" - "," ",u(3,5,t.titleDescription),": ")}}function Yh(i,r){if(i&1&&(s(0,"p",37),B(1,Zh,4,9,"span",39),s(2,"span",40),p(3),l()()),i&2){let t=g().$implicit;n(),F(t!=null&&t.titleDescription?1:-1),n(2),f(" ",t.isLengthExceeded?(t==null?null:t.description)??"-":(t==null?null:t.descriptionFull)??"-"," ")}}function Qh(i,r){if(i&1&&(s(0,"span")(1,"span",41),c(2,"translate"),c(3,"titlecase"),c(4,"translate"),c(5,"translate"),p(6),c(7,"translate"),l()()),i&2){let t=g().$implicit;n(),d("title",(t!=null&&t.groupCode?y(2,4,"components.smarts.reservaSimplificada.grupo",L(16,wd,t==null?null:t.groupCode))+" - "+u(3,7,t==null?null:t.titleDescription)+": ":"")+(t==null?null:t.descriptionFull))("arrow","true"),Ie("aria-label",y(5,11,"components.smarts.reservaSimplificada.ariaLerMaisSobre",L(18,Rh,u(4,9,t.titleKey)))),n(5),f(" ",u(7,14,"components.smarts.reservaSimplificada.lerMais")," ")}}function Xh(i,r){if(i&1&&Ee(0,7),i&2){let t=g().$implicit,e=ue(18);d("ngTemplateOutlet",e)("ngTemplateOutletContext",L(2,Dd,t))}}function Jh(i,r){if(i&1){let t=k();s(0,"span",42)(1,"span",43),b("click",function(a){return P(t),S(a.stopPropagation())}),h(2,"lds-icon-warning",44),l()()}if(i&2){let t=r.item;n(),d("title",t==null?null:t.adicionaisAttention)("arrow","true"),Ie("aria-label",t==null?null:t.adicionaisAttention)}}function ev(i,r){if(i&1&&(s(0,"article",30)(1,"div",31)(2,"div",32),B(3,Gh,1,0,"lds-icon-car",33)(4,jh,1,0,"lds-icon-shield-lock",33)(5,qh,1,0,"lds-icon-circle-plus-outlined",33)(6,Hh,1,0,"lds-icon-gps",33)(7,$h,1,0,"lds-icon-check",33),l(),s(8,"h4",34),p(9),c(10,"translate"),l(),B(11,Wh,1,4,"ng-container",7),l(),s(12,"div",35),B(13,Kh,2,0,"p",36)(14,Yh,4,2,"p",37),B(15,Qh,8,20,"span"),B(16,Xh,1,4,"ng-container",7),l()(),C(17,Jh,3,3,"ng-template",null,5,Me)),i&2){let t,e=r.$implicit,a=r.isLast,o=r.isMobileContext,m=g(2);Z("rs-summary-item--divider",!a),Ie("data-testid","rs-summary-item-"+e.icon),n(3),F((t=e.icon)==="car"?3:t==="shield"?4:t==="circle-plus"?5:t==="gps"?6:7),n(6),D(u(10,9,e.titleKey)),n(2),F(!m.isLoading()&&e.hasAttention&&o?11:-1),n(2),F(m.isLoading()?13:14),n(2),F(!m.isLoading()&&e.isLengthExceeded?15:-1),n(),F(!m.isLoading()&&e.hasAttention&&!o?16:-1)}}function tv(i,r){if(i&1&&h(0,"img",45),i&2){let t=r.$implicit;Xt(t?"rs-card__avatar rs-card__avatar--mobile":"rs-card__avatar")}}function iv(i,r){if(i&1){let t=k();s(0,"button",46),c(1,"translate"),b("click",function(){P(t);let a=g(2);return S(a.closeCard())}),h(2,"lds-icon-close",47),l()}if(i&2){let t=r.$implicit;d("size","md")("variant","basic")("color","neutral"),Ie("aria-label",u(1,5,"components.smarts.reservaSimplificada.ariaFecharResumo"))("data-testid",t)}}function ov(i,r){if(i&1){let t=k();s(0,"button",50),b("click",function(){P(t);let a=g(3);return S(a.conferirUltimaReserva())}),h(1,"lds-icon-refresh",51),p(2),c(3,"translate"),l()}if(i&2){let t=g().$implicit;Z("btnReserva--mobile",t),d("size",t?"lg":"md")("color","secondary")("fullWidth",!0),Ie("data-testid",t?"conferir-ultima-reserva-btn-mobile":"conferir-ultima-reserva-btn"),n(2),f(" ",u(3,7,"components.smarts.reservaSimplificada.ultimaReserva")," ")}}function av(i,r){i&1&&h(0,"lds-skeleton",49)}function nv(i,r){if(i&1&&B(0,ov,4,9,"button",48)(1,av,1,0,"lds-skeleton",49),i&2){let t=g(2);F(t.isLoading()?1:0)}}function rv(i,r){if(i&1){let t=k();s(0,"button",58),b("click",function(){P(t);let a=g(3);return S(a.retryLoadingReservation())}),h(1,"lds-icon-refresh",12),p(2),c(3,"translate"),l()}i&2&&(d("size","lg")("color","critical"),n(2),f(" ",u(3,3,"components.smarts.reservaSimplificada.erroTemplate.tentarNovamente")," "))}function sv(i,r){i&1&&h(0,"lds-skeleton",57)}function lv(i,r){if(i&1&&(s(0,"div",52),h(1,"app-icon-svg",53),s(2,"div",54)(3,"h3",55),p(4),c(5,"translate"),l(),s(6,"p"),p(7),c(8,"translate"),l(),B(9,rv,4,5,"button",56)(10,sv,1,0,"lds-skeleton",57),l()()),i&2){let t=g(2);n(),d("width",t.isDesktop()?"282px":"127px")("height",t.isDesktop()?"175px":"79px"),n(3),f(" ",u(5,5,"components.smarts.reservaSimplificada.erroTemplate.titulo")," "),n(3),D(u(8,7,"components.smarts.reservaSimplificada.erroTemplate.descricao")),n(2),F(t.isLoading()?10:9)}}function cv(i,r){if(i&1&&(s(0,"section",6),c(1,"translate"),Ee(2,7),B(3,Vh,19,12)(4,zh,1,1,"ng-container",8),l(),s(5,"section",9),c(6,"translate"),Ee(7,7),B(8,Nh,20,20)(9,Uh,1,1,"ng-container",8),l(),C(10,ev,19,11,"ng-template",null,0,Me)(12,tv,1,2,"ng-template",null,1,Me)(14,iv,3,7,"ng-template",null,2,Me)(16,nv,2,1,"ng-template",null,3,Me)(18,lv,11,9,"ng-template",null,4,Me),s(20,"div",10),h(21,"span",11)(22,"lds-icon-arrow-big-down",12),s(23,"span",13)(24,"span",14),p(25),c(26,"translate"),l(),s(27,"span",15),p(28),c(29,"translate"),l()(),h(30,"lds-icon-arrow-big-down",12)(31,"span",11),l()),i&2){let t=ue(15),e=g();Z("rs-card--error",e.error()),Ie("aria-label",u(1,14,"components.smarts.reservaSimplificada.ariaResumoReserva")),n(2),d("ngTemplateOutlet",t)("ngTemplateOutletContext",Wt(22,Th)),n(),F(e.error()?4:3),n(2),Z("rs-card--error",e.error()),Ie("aria-label",u(6,16,"components.smarts.reservaSimplificada.ariaResumoReserva")),n(2),d("ngTemplateOutlet",t)("ngTemplateOutletContext",Wt(23,Ah)),n(),F(e.error()?9:8),n(17),f(" ",u(26,18,"components.smarts.reservaSimplificada.or")," "),n(3),D(u(29,20,"components.smarts.reservaSimplificada.escolhaGrupo"))}}var yd="KM_ILIMITADO",Od=(()=>
2{let r=class r{constructor(){this.cotacaoId=It.required(),this.reservaSimplificadaDados=It.required(),this.conferirUltimaReservaEvent=Da(),this.hidden=ve(!1),this.isAccordionOpen=ve(!1),this.error=ve(!1),this.reservaSimplificadaResumo=ve(null),this.isLoading=ve(!1),this.isDesktop=Oe(I(De).isDesktop,{initialValue:!0}),this.summaryItems=Ri(()=>{let e=this.reservaSimplificadaResumo();return[{titleKey:"components.smarts.reservaSimplificada.grupoCarros",icon:"car",description:e?.grupoCarros.veiculosResumido,descriptionFull:e?.grupoCarros.veiculos,titleDescription:e?.grupoCarros.nome,isLengthExceeded:e?.grupoCarros.isLengthExceeded,groupCode:e?.grupoCarros.codigoLocaliza},{titleKey:"components.smarts.reservaSimplificada.pacoteProtecao",icon:"shield",description:e?.pacoteProtecao,descriptionFull:e?.pacoteProtecao},{titleKey:"components.smarts.reservaSimplificada.adicionais",icon:"circle-plus",description:e?.adicionaisResumido,descriptionFull:e?.adicionais,hasAttention:e?.isAdicionaisAttention,isLengthExceeded:e?.adicionaisTamanhoExcedido,adicionaisAttention:e?.adicionaisAttention},{titleKey:"components.smarts.reservaSimplificada.quilometragem",icon:"gps",description:e?.quilometragem,descriptionFull:e?.quilometragem}]}),this.DESCRIPTION_LIMIT=50,this.translateService=I(G),this.cotacaoService=I(ht),this.destroyRef=I(qi),this.monitoringService=I(Dt)}ngOnInit(){this.carregarReservaSimplificada()}ngAfterViewInit(){this.sendEvent("impression")}closeCard(){this.sendEvent("clicked","close_componente_passo_2"),this.hidden.set(!0)}onAccordionChange(e){this.isAccordionOpen.set(e.open)}conferirUltimaReserva(){this.sendEvent("clicked"),this.conferirUltimaReservaEvent.emit(this.adicionaisValidados)}retryLoadingReservation(){this.sendEvent("clicked","adicional_invalido_tentar_novamente"),this.carregarReservaSimplificada()}carregarReservaSimplificada(){this.isLoading.set(!0),this.cotacaoService.validarAdicionais({comboId:this.reservaSimplificadaDados()?.pacoteAdicionais?.codigo,adicionais:this.reservaSimplificadaDados()?.adicionais?.map(e=>$({codigoFrigga:e.codigo},e?.quantidade>0?{quantidade:e.quantidade}:{}))},this.cotacaoId(),this.reservaSimplificadaDados().ofertaId).pipe(Fi(this.destroyRef),He(()=>this.isLoading.set(!1))).subscribe({next:e=>{this.sendUnavailableAdditionalEvent(e),this.adicionaisValidados=e,this.reservaSimplificadaResumo.set(this.mapDadosParaReservaSimplificadaResumo(e)),this.error.set(!1)},error:()=>{this.sendEvent("error"),this.error.set(!0)}})}sendUnavailableAdditionalEvent(e){let a=[...this.mapUnavailableItems(e.combo),...this.mapUnavailableItems(e.adicionais)].join(",");a&&this.sendEvent("aditional_unavaible",a)}mapUnavailableItems(e){return(Array.isArray(e)?e:[e]).filter(o=>!o.selecionado&&o.disponivel!==void 0).map(o=>o.codigoFrigga)}mapDadosParaReservaSimplificadaResumo(e){let a,o=this.reservaSimplificadaDados()?.adicionais?.filter(R=>e?.adicionais?.filter(K=>K.disponivel)?.map(K=>K.codigoFrigga)?.includes(R.codigo)&&R.codigo!==yd)||[],m=this.reservaSimplificadaDados()?.adicionais?.find(R=>R.codigo===yd),_=o?.map(R=>R.nome).join(", "),x=this.reservaSimplificadaDados()?.grupoVeiculo.veiculos.join(", "),O=e?.adicionais?.filter(R=>!R.disponivel)?.map(R=>this.reservaSimplificadaDados()?.adicionais?.find(K=>K.codigo===R.codigoFrigga)?.nome)?.join(", ")||"";return a={id:this.reservaSimplificadaDados()?.ofertaId,grupoCarros:{nome:this.reservaSimplificadaDados()?.grupoVeiculo?.nome??"-",codigoLocaliza:this.reservaSimplificadaDados()?.grupoVeiculo?.codigoLocaliza,veiculos:this.reservaSimplificadaDados().grupoVeiculo.veiculos.join(", "),veiculosResumido:(()=>{let R=this.DESCRIPTION_LIMIT-this.reservaSimplificadaDados().grupoVeiculo.nome.length;return x.concat(this.reservaSimplificadaDados().grupoVeiculo.nome).length>this.DESCRIPTION_LIMIT?x.slice(0,R).concat("..."):x})(),isLengthExceeded:x.concat(this.reservaSimplificadaDados().grupoVeiculo.nome).length>this.DESCRIPTION_LIMIT},pacoteProtecao:e.combo.disponivel?this.reservaSimplificadaDados().pacoteAdicionais.nome:"-",adicionais:o.length?_:"-",adicionaisResumido:o.length?_.length>this.DESCRIPTION_LIMIT?_.slice(0,this.DESCRIPTION_LIMIT).concat("..."):_:"-",quilometragem:m?m.nome:this.translateService.instant("components.smarts.reservaSimplificada.economica"),adicionaisTamanhoExcedido:_.length>this.DESCRIPTION_LIMIT,isAdicionaisAttention:e?.adicionais?.some(R=>!R.disponivel),adicionaisAttention:this.translateService.instant("components.smarts.reservaSimplificada.adicionaisAtencao").replace("{0}",O)},a}sendEvent(e,a="componente_passo_2"){this.monitoringService.sendEvent({component:"simplified_reserve",action:e,componentDescription:a})}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-simplified-booking-card"]],inputs:{cotacaoId:[1,"cotacaoId"],reservaSimplificadaDados:[1,"reservaSimplificadaDados"]},outputs:{conferirUltimaReservaEvent:"conferirUltimaReservaEvent"},decls:1,vars:1,consts:[["summaryItemTemplate",""],["avatarTemplate",""],["closeButtonTemplate",""],["ctaButtonTemplate",""],["erroTemplate",""],["attentionTemplate",""],["data-testid","reserva-simplificada-desktop",1,"rs-card","rs-card--desktop"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"],["data-testid","reserva-simplificada-mobile",1,"rs-card","rs-card--mobile"],["aria-hidden","true",1,"divisao-escolha"],[1,"divisao-escolha__line"],["size","24"],[1,"divisao-escolha__text-group"],[1,"divisao-escolha__text","divisao-escolha__text--bold"],[1,"divisao-escolha__text"],[1,"divi
2der","height-default","first"],[1,"container-card"],[1,"item"],[1,"rs-card__title"],[1,"rs-card__subtitle"],[1,"divider"],[1,"height-default"],[1,"rs-card__column__height"],["data-testid","rs-mobile-hero",1,"rs-mobile-hero"],["data-testid","rs-accordion-detalhes"],["variant","contained",3,"onChanges"],["customTitle",""],[1,"rs-accordion__title"],[1,"rs-mobile-summary",3,"click"],[1,"rs-summary-item"],[1,"rs-summary-item__header"],["aria-hidden","true",1,"rs-summary-item__icon"],["size","16"],[1,"rs-summary-item__title"],[1,"content-items"],["data-testid","rs-summary-item-skeleton",1,"rs-summary-item__description"],[1,"rs-summary-item__description"],["variant","text","width","100%","height","1.6rem"],[1,"rs-summary-item__description-title"],[1,"rs-summary-item__description-text"],["data-testid","rs-ler-mais","ldsTooltip","",1,"rs-summary-item__action",3,"title","arrow"],[1,"rs-summary-item__attention"],["data-testid","rs-attention-trigger","ldsTooltip","",1,"rs-summary-item__attention-btn",3,"click","title","arrow"],["size","16","aria-hidden","true"],["src","assets/icons/avatar-rs.svg","alt","Ilustracao da reserva simplificada","width","224","height","224","loading","lazy","draggable","false"],["ldsIconButton","",1,"rs-card__close",3,"click","size","variant","color"],["size","18","aria-hidden","true"],["ldsButton","",1,"btnReserva",3,"btnReserva--mobile","size","color","fullWidth"],["variant","rounded","width","100%","height","48px"],["ldsButton","",1,"btnReserva",3,"click","size","color","fullWidth"],["size","24","aria-hidden","true"],[1,"erro-template"],["svgName","warning-sign",3,"width","height"],[1,"erro-template__content"],[1,"erro-template__title"],["ldsButton","",1,"erro-template__button",3,"size","color"],["variant","rounded","width","203px","height","52px"],["ldsButton","",1,"erro-template__button",3,"click","size","color"]],template:function(a,o){a&1&&B(0,cv,32,24),a&2&&F(o.hidden()?-1:0)},dependencies:[Ci,Hs,qs,oi,Vs,Ke,ws,Ss,Ka,Is,Rs,js,Ks,A,Zs,$s,Lo,ni,Ia,T],styles:['.rs-card[_ngcontent-%COMP%]{position:relative;display:flex;gap:var(--lds-spacing-2);padding:var(--lds-spacing-1);border:.02rem solid var(--lds-color-accent-secondary-default, #78de1f);border-radius:1.2rem;background-color:var(--lds-color-neutral-surface-low, #f2f2f2);height:20rem}.rs-card--error[_ngcontent-%COMP%]{border:var(--lds-border-width-normal, 2px) solid var(--lds-color-accent-critical-default, #d92020)}.erro-template[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2.4rem}@media(min-width:992px){.erro-template[_ngcontent-%COMP%]{flex-direction:row;align-items:center}}.erro-template__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.erro-template__title[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-high, #262626);font-family:var(--lds-font-brand-family, "Inter");font-size:var(--lds-font-size-heading-lg, 24px);font-style:normal;font-weight:var(--lds-font-weight-bold, 700);line-height:var(--lds-font-lineheight-140, 33.6px)}.erro-template__button[_ngcontent-%COMP%]{font-family:var(--lds-font-brand-family, "Inter");font-size:1.4rem;width:fit-content;margin-top:2.4rem}.first[_ngcontent-%COMP%]{width:50%}.height-default[_ngcontent-%COMP%]{height:20rem}.container-card[_ngcontent-%COMP%]{display:flex;padding:var(--lds-spacing-1)}.item[_ngcontent-%COMP%]{padding:0 2rem;width:60%}.rs-card__avatar[_ngcontent-%COMP%]{width:clamp(8rem,42vw,17rem);height:auto}.rs-summary-item--divider[_ngcontent-%COMP%]{border-bottom:.0625rem solid #d9d9d9;padding:0}.rs-summary-item[_ngcontent-%COMP%]{height:9rem;margin:1rem 2rem;width:25rem}.rs-card__title[_ngcontent-%COMP%]{font-size:2rem;font-family:var(--lds-font-brand-family, "Inter");font-weight:var(--lds-font-brand-weight-stronger);line-height:var(--lds-font-lineheight-140);text-align:left;margin-bottom:1.4rem}.rs-card__subtitle[_ngcontent-%COMP%]{margin:0;font-size:1.4rem;font-family:var(--lds-font-functional-family, "Inter");font-weight:var(--lds-font-functional-weight-weak);line-height:var(--lds-font-lineheight-150);text-align:left;margin-bottom:1.4rem}.rs-card__close[_ngcontent-%COMP%]{position:absolute;top:var(--lds-spacing-2);right:var(--lds-spacing-2);display:inline-flex;align-items:center;justify-content:center;color:#6e6e6ecc;border:0;background-color:transparent;cursor:pointer}.rs-summary-item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--lds-spacing-1)}.rs-summary-item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child > span[_ngcontent-%COMP%]{display:flex;flex:0 0 auto;justify-content:flex-end}.rs-summary-item__attention[_ngcontent-%COMP%]{margin-left:auto}.rs-summary-item__header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--lds-spacing-1)}.rs-summary-item__icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:3rem;height:3rem;border-radius:.75rem;background-color:var(--lds-color-accent-secondary-emphasis-lower, #cefdaf);border:.1rem solid var(--lds-color-accent-secondary-default, #78de1f);color:var(--lds-color-accent-secondary-contrast-lower, #01602a)}.rs-summary-item__title[_ngcontent-%COMP%]{font-family:var(--lds-font-brand-family, "Inter");font-weight:var(--lds-font-brand-weight-strong);font-size:1.6rem;line-height:var(--lds-font-lineheight-140)}.rs-summary-item__action[_ngcontent-%COMP%]{margin-left:0;border:0;color:var(--lds-color-accent-secondary-contrast-lower, #01602a);font-family:var(--lds-font-functional-family, "Inter");font-size:1.2rem;font-weight:var(--lds-font-functional-weight-stronger);cursor:pointer}.rs-summary-item__attention-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:3.2rem;height:3.2rem;padding:0;border:.125rem solid var(--lds-color-accent-warning-emphasis-high, #dfac00);border-radius:1.2rem;background-color:var(--lds-color-accent-warning-default, #ffcf33);color:#473100;cursor:pointer}.rs-summary-item__attention-btn[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:none}.rs-summary-item__attention-btn[_ngcontent-%COMP%]:focus-visible{outline:.125rem solid #473100;outline-offset:.125rem}.rs-summary-item__description[_ngcontent-%COMP%]{flex:1 1 auto;margin:var(--lds-spacing-1) 0 0;font-family:var(--lds-font-functional-family, "Inter");font-weight:var(--lds-font-functional-weight-weak);font-size:1.2rem;line-height:var(--lds-font-lineheight-150);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;margin-top:1rem}.rs-summary-item__description-title[_ngcontent-%COMP%]{font-weight:var(--lds-font-functional-weight-stronger)}.rs-summary-item__description-text[_ngcontent-%COMP%]{font-weight:var(--lds-font-functional-weight-weak)}.divider[_ngcontent-%COMP%]{border-right:.0625rem solid #d9d9d9;height:18rem}.divisao-escolha[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--lds-spacing-1);margin-top:var(--lds-spacing-4);color:var(--lds-color-neutral-text-low, #919191)}.divisao-escolha__line[_ngcontent-%COMP%]{flex:1;height:.0625rem;background-color:var(--lds-color-neutral-border-default, #919191)}.divisao-escolha__text[_ngcontent-%COMP%]{font-family:var(--lds-font-brand-family, "Inter");font-size:1.4rem;font-weight:var(--lds-font-brand-weight-strong);color:var(--lds-color-neutral-text-default, #4a4a4a);line-height:var(--lds-font-lineheight-150)}.divisao-escolha__text--bold[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:var(--lds-font-brand-weight-extrabold, 800)}.divisao-escolha__text-group[_ngcontent-%COMP%]{display:contents}@media(max-width:992px){.divisao-escolha[_ngcontent-%COMP%]{gap:.4rem}.divisao-escolha__text-group[_ngcontent-%COMP%]{display:inline-block;max-width:60%;text-align:center}.divisao-escolha__text-group[_ngcontent-%COMP%] .divisao-escolha__text[_ngcontent-%COMP%], .divisao-escolha__text-group[_ngcontent-%COMP%] .divisao-escolha__text--bold[_ngcontent-%COMP%]{display:inline}.divisao-escolha__text-group[_ngcontent-%COMP%] .divisao-escolha__text--bold[_ngcontent-%COMP%]{margin-right:var(--lds-spacing-0)}.divisao-escolha__line[_ngcontent-%COMP%]{flex:1}}.btnReserva[_ngcontent-%COMP%]{font-size:1.4rem}@media(min-width:992px)and (max-width:1200px){.btnReserva[_ngcontent-%COMP%]{font-size:1.2rem}.first[_ngcontent-%COMP%]{width:45%}
2.rs-card__avatar[_ngcontent-%COMP%]{width:clamp(8rem,42vw,14rem);height:auto}}[_nghost-%COMP%]{font-family:var(--lds-font-brand-family, "Inter")}@media(max-width:992px){.rs-card--desktop[_ngcontent-%COMP%]{display:none}}.rs-card--mobile[_ngcontent-%COMP%]{display:none;flex-direction:column;height:auto;gap:var(--lds-spacing-2);padding:var(--lds-spacing-3);width:100%;box-sizing:border-box}@media(max-width:992px){.rs-card--mobile[_ngcontent-%COMP%]{display:flex}}.rs-mobile-hero[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;text-align:left}.rs-mobile-hero[_ngcontent-%COMP%] .rs-card__avatar--mobile[_ngcontent-%COMP%]{width:clamp(10rem,50vw,14rem);height:auto;margin-bottom:var(--lds-spacing-2)}.rs-mobile-hero[_ngcontent-%COMP%] .rs-card__title[_ngcontent-%COMP%]{width:100%;font-size:2.4rem;margin-bottom:.8rem}.rs-mobile-hero[_ngcontent-%COMP%] .rs-card__subtitle[_ngcontent-%COMP%]{width:100%;margin-bottom:0}.rs-mobile-summary[_ngcontent-%COMP%]{width:100%;border-radius:1.6rem}.rs-mobile-summary[_ngcontent-%COMP%] .rs-summary-item[_ngcontent-%COMP%]{width:auto;height:auto;min-height:6rem;margin:0 1.6rem;padding:var(--lds-spacing-2) var(--lds-spacing-0)}.rs-mobile-summary[_ngcontent-%COMP%] .rs-summary-item--divider[_ngcontent-%COMP%]{border-bottom:.0625rem solid #d9d9d9}.rs-mobile-summary[_ngcontent-%COMP%] .rs-summary-item__description[_ngcontent-%COMP%]{-webkit-line-clamp:1;line-clamp:1}.rs-mobile-summary[_ngcontent-%COMP%] .rs-summary-item__action[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:700}.rs-mobile-summary[_ngcontent-%COMP%] .rs-summary-item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{flex-direction:column;align-items:flex-start}.btnReserva--mobile[_ngcontent-%COMP%]{font-size:1.6rem;margin-top:var(--lds-spacing-1)}@media(min-width:992px)and (max-width:1200px){.rs-summary-item[_ngcontent-%COMP%]{width:20rem}}.rs-accordion__title[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-high, #262626);font-family:var(--lds-font-brand-family, "Inter");text-align:center;font-size:1.6rem;font-weight:600;line-height:150%}'],changeDetection:0});let i=r;return i})();var kd=i=>({value:i}),pv=(i,r)=>r.label;function mv(i,r){if(i&1&&(s(0,"li",12),h(1,"lds-icon-user",21),s(2,"span"),p(3),c(4,"translate"),l()()),i&2){let t=g();n(3),q(" ",t.capacidade.quantidadePassageiros," ",u(4,2,"tariffSelectionPanel.attributes.seats")," ")}}function uv(i,r){if(i&1&&(s(0,"li",12),h(1,"lds-icon-luggage",21),s(2,"span"),p(3),c(4,"translate"),l()()),i&2){let t=g();n(3),q(" ",t.capacidade.quantidadeMalasGrandes," ",u(4,2,"tariffSelectionPanel.attributes.bigLuggage")," ")}}function fv(i,r){if(i&1&&(s(0,"li",12),h(1,"lds-icon-shopping-bag",21),s(2,"span"),p(3),c(4,"translate"),l()()),i&2){let t=g();n(3),q(" ",t.capacidade.quantidadeMalasPequenas," ",u(4,2,"tariffSelectionPanel.attributes.smallLuggage")," ")}}function gv(i,r){i&1&&h(0,"lds-icon-snowflake",21)}function _v(i,r){i&1&&h(0,"lds-icon-automatic-gearbox",21)}function hv(i,r){i&1&&h(0,"lds-icon-electronic-stability-control",21)}function vv(i,r){i&1&&h(0,"lds-icon-door",21)}function Cv(i,r){i&1&&h(0,"lds-icon-tyre",21)}function bv(i,r){i&1&&h(0,"lds-icon-lock",21)}function xv(i,r){i&1&&h(0,"span",22)}function Pv(i,r){if(i&1&&(s(0,"li",13),B(1,gv,1,0,"lds-icon-snowflake",21)(2,_v,1,0,"lds-icon-automatic-gearbox",21)(3,hv,1,0,"lds-icon-electronic-stability-control",21)(4,vv,1,0,"lds-icon-door",21)(5,Cv,1,0,"lds-icon-tyre",21)(6,bv,1,0,"lds-icon-lock",21)(7,xv,1,0,"span",22),s(8,"span"),p(9),l()()),i&2){let t,e=r.$implicit;n(),F((t=e.icon)==="snowflake"?1:t==="automatic"?2:t==="electronic-stability-control"?3:t==="door"?4:t==="tyre"?5:t==="lock"?6:7),n(8),D(e.label)}}function Sv(i,r){i&1&&h(0,"lds-icon-building-store",5)}function yv(i,r){i&1&&h(0,"lds-icon-credit-card",5)}function Mv(i,r){if(i&1&&(s(0,"span",27),p(1),l()),i&2){let t=g().$implicit;n(),f("-",t.percentualDesconto,"%")}}function Dv(i,r){if(i&1&&(s(0,"li",29)(1,"span",36),p(2),c(3,"translate"),l(),s(4,"span",37),p(5),c(6,"number"),l()()),i&2){let t=g(2).$implicit;n(2),f(" ",u(3,3,"tariffSelectionPanel.regularPrice")," "),n(3),q(" ",t.moeda," ",y(6,5,t.valorDiariaSemDesconto,"1.2-2")," ")}}function wv(i,r){if(i&1&&(s(0,"li",29)(1,"span",36),p(2),c(3,"translate"),l()()),i&2){let t=g(2).$implicit;n(2),f(" ",u(3,1,t.hasCoupon?"tariffSelectionPanel.couponApplied":"tariffSelectionPanel.regularPrice")," ")}}function Ov(i,r){if(i&1&&(s(0,"li",29),p(1),c(2,"number"),c(3,"translate"),l()),i&2){let t=g(2).$implicit;n(),f(" ",y(3,4,"tariffSelectionPanel.savings",L(7,kd,t.moeda+" "+y(2,1,t.ahorroDiario,"1.2-2")))," ")}}function kv(i,r){i&1&&(s(0,"li",29),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"tariffSelectionPanel.noSavings")," "))}function Iv(i,r){if(i&1&&(B(0,Dv,7,8,"li",29)(1,wv,4,3,"li",29),B(2,Ov,4,9,"li",29)(3,kv,3,3,"li",29)),i&2){let t=g().$implicit;F(t.tipo==="Link"?0:1),n(2),F((t.tipo==="Link"?t.temDesconto:t.hasCoupon)?2:3)}}function Tv(i,r){if(i&1&&(s(0,"li",29)(1,"span",36),p(2),c(3,"translate"),l(),s(4,"span",38),p(5),c(6,"number"),l()(),s(7,"li",29),p(8),c(9,"number"),c(10,"translate"),l()),i&2){let t=g(2).$implicit;n(2),f(" ",u(3,4,t.tipo==="Link"?"tariffSelectionPanel.discount":"tariffSelectionPanel.couponApplied")," "),n(3),q(" ",t.moeda," ",y(6,6,t.valorDiariaSemDesconto,"1.2-2")," "),n(3),f(" ",y(10,12,"tariffSelectionPanel.savings",L(15,k
2d,t.moeda+" "+y(9,9,t.ahorroDiario,"1.2-2")))," ")}}function Av(i,r){i&1&&(s(0,"li",29)(1,"span",36),p(2),c(3,"translate"),l()(),s(4,"li",29),p(5),c(6,"translate"),l()),i&2&&(n(2),f(" ",u(3,2,"tariffSelectionPanel.standardPrice")," "),n(3),f(" ",u(6,4,"tariffSelectionPanel.noSavings")," "))}function Ev(i,r){if(i&1&&B(0,Tv,11,17)(1,Av,7,6),i&2){let t=g().$implicit;F(t.temDesconto?0:1)}}function Rv(i,r){if(i&1){let t=k();s(0,"button",23),b("click",function(){let a=P(t).$implicit,o=g(2);return S(o.handleSelectTariff(a.tipo))}),s(1,"header",24)(2,"span",25),B(3,Sv,1,0,"lds-icon-building-store",5)(4,yv,1,0,"lds-icon-credit-card",5),l(),s(5,"span",26),p(6),c(7,"translate"),l(),B(8,Mv,2,1,"span",27),l(),s(9,"ul",28),B(10,Iv,4,2)(11,Ev,2,1),s(12,"li",29),p(13),c(14,"translate"),l()(),s(15,"footer",30)(16,"p",31)(17,"span",32),p(18),l(),s(19,"span",33),p(20),c(21,"number"),l(),s(22,"span",34),p(23),c(24,"translate"),l()(),s(25,"p",35),p(26),c(27,"translate"),c(28,"number"),l()()()}if(i&2){let t=r.$implicit,e=g(2);Z("tariff-card--selected",t.tipo===e.selectedTipo)("tariff-card--link",t.tipo==="Link"),Ie("aria-checked",t.tipo===e.selectedTipo),n(3),F(t.tipo==="PagamentoBalcao"?3:4),n(3),f(" ",u(7,16,"prePagamento.meioPagamento."+t.tipo)," "),n(2),F(t.percentualDesconto>0&&!(e.firstTopicVariant==="regularPrice"&&t.tipo==="PagamentoBalcao"&&!t.hasCoupon)?8:-1),n(2),F(e.firstTopicVariant==="regularPrice"?10:11),n(3),f(" ",u(14,18,"tariffSelectionPanel.kmFree")," "),n(5),D(t.moeda),n(2),D(y(21,20,t.valorDiaria,"1.2-2")),n(3),D(u(24,23,"tariffSelectionPanel.perDay")),n(3),st(" ",u(27,25,"tariffSelectionPanel.total")," ",t.moeda," ",y(28,27,t.valorTotal,"1.2-2")," ")}}function Bv(i,r){if(i&1){let t=k();s(0,"div",0),b("click",function(){P(t);let a=g();return S(a.handleBackdropClick())}),l(),s(1,"section",1),c(2,"translate"),s(3,"span",2),b("pointerdown",function(a){P(t);let o=g();return S(o.onDragStart(a))})("pointermove",function(a){P(t);let o=g();return S(o.onDragMove(a))})("pointerup",function(a){P(t);let o=g();return S(o.onDragEnd(a))})("pointercancel",function(a){P(t);let o=g();return S(o.onDragEnd(a))}),l(),h(4,"span",3),s(5,"button",4),c(6,"translate"),b("click",function(){P(t);let a=g();return S(a.handleClose())}),h(7,"lds-icon-close",5),l(),s(8,"div",6)(9,"aside",7)(10,"p",8),p(11),l(),s(12,"p",9),p(13),c(14,"translate"),c(15,"translate"),l(),h(16,"hr",10),s(17,"ul",11),B(18,mv,5,4,"li",12),B(19,uv,5,4,"li",12),B(20,fv,5,4,"li",12),Ai(21,Pv,10,2,"li",13,pv),l(),s(23,"p",14),p(24),c(25,"translate"),l()(),s(26,"div",15)(27,"h3",16),p(28),c(29,"translate"),l(),s(30,"div",17),c(31,"translate"),Ai(32,Rv,29,30,"button",18,Rr().trackByTipo,!0),l(),s(34,"div",19)(35,"button",20),b("click",function(){P(t);let a=g();return S(a.handleContinue())}),p(36),c(37,"translate"),l()()()()()}if(i&2){let t=r,e=g();Z("tariff-panel__backdrop--closing",e.isClosing),n(),$t("transform","translate3d(0, "+e.dragTranslate+"px, 0)"),Z("tariff-panel--entering",e.isEntering)("tariff-panel--dragging",e.isDragging)("tariff-panel--closing",e.isClosing),Ie("aria-label",u(2,29,"tariffSelectionPanel.title")),n(3),$t("left",e.arrowLeftPercent,"%"),n(),Ie("aria-label",u(6,31,"tariffSelectionPanel.close")),n(6),D(t.nome),n(2),fi(" ",u(14,33,"carGroupCard.group")," ",t.codigoLocaliza," - ",t.veiculos==null||t.veiculos[0]==null?null:t.veiculos[0].nome,"",u(15,35,"tariffSelectionPanel.similarSuffix")," "),n(5),F(t.capacidade!=null&&t.capacidade.quantidadePassageiros?18:-1),n(),F(t.capacidade!=null&&t.capacidade.quantidadeMalasGrandes?19:-1),n(),F(t.capacidade!=null&&t.capacidade.quantidadeMalasPequenas?20:-1),n(),Ei(e.extraAccessories),n(3),f(" ",u(25,37,"tariffSelectionPanel.disclaimer")," "),n(3),Z("tariff-panel__title--only-counter",e.hasOnlyCounterTariff),n(),f(" ",u(29,39,e.hasOnlyCounterTariff?"tariffSelectionPanel.titleOnlyCounter"
2:"tariffSelectionPanel.title")," "),n(2),Ie("aria-label",u(31,41,"tariffSelectionPanel.title")),n(2),Ei(e.tariffOptions),n(3),d("disabled",!e.selectedTipo),n(),f(" ",u(37,43,"tariffSelectionPanel.continue")," ")}}var Jn=(()=>{let r=class r{constructor(e,a,o){this.cdr=a,this.elementRef=o,this.group=null,this.offer=null,this.offerBalcao=null,this.quantidadeDiarias=1,this.groupIndex=0,this.respectPreSelectedMeio=!1,this.firstTopicVariant="default",this.continueSelection=new W,this.closePanel=new W,this.tariffOptions=[],this.selectedTipo=null,this.arrowLeftPercent=50,this.isMobile=!1,this.isEntering=!1,this.isDragging=!1,this.isClosing=!1,this.dragTranslate=0,this.MOBILE_BREAKPOINT=992,this.CLOSE_THRESHOLD_PX=100,this.CLOSE_ANIMATION_MS=260,this.accessoryIconByCode={3:"snowflake",15:"automatic"},this.accessoryDescriptionRules=[{icon:"electronic-stability-control",matcher:m=>m.includes("dir. asistida electrica")||m.includes("dir asistida electrica")},{icon:"tyre",matcher:m=>m==="abs"},{icon:"lock",matcher:m=>m==="cierre centralizado"},{icon:"door",matcher:m=>m.includes("levantavidrios electricos")||m.includes("levantavidrios electrico")}],this.dragStartY=0,this.dragStartTranslate=0,this.previousBodyOverflow=null,this.bodyScrollLocked=!1,this.closeTimeoutId=null,this.isBrowser=Be(e)}ngOnChanges(e){if(e.offer||e.quantidadeDiarias){this.tariffOptions=this.buildTariffOptions();let a=this.respectPreSelectedMeio?this.offer?.meioPagamento?.find(_=>_.selecionado)?.tipo:void 0,m=(a?this.tariffOptions.find(_=>_.tipo===a):void 0)??this.tariffOptions.find(_=>_.tipo==="Link");this.selectedTipo=m?.tipo??this.tariffOptions[0]?.tipo??null}(e.groupIndex||e.group)&&(this.updateArrowPositionFromIndex(),this.scheduleArrowMeasurement())}ngOnInit(){this.isBrowser&&(this.updateMobileState(),this.isMobile&&(this.dragTranslate=this.getViewportHeight(),this.isEntering=!0))}ngAfterViewInit(){this.scheduleArrowMeasurement(),this.isBrowser&&this.isMobile&&(this.lockBodyScroll(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.isEntering=!1,this.dragTranslate=0,this.cdr.markForCheck()})}))}ngOnDestroy(){this.restoreBodyScroll(),this.closeTimeoutId!==null&&(clearTimeout(this.closeTimeoutId),this.closeTimeoutId=null)}onResize(){let e=this.isMobile;this.updateMobileState(),e&&!this.isMobile?(this.dragTranslate=0,this.isDragging=!1,this.isEntering=!1,this.isClosing=!1,this.restoreBodyScroll()):!e&&this.isMobile&&this.lockBodyScroll(),this.updateArrowPositionFromIndex(),this.scheduleArrowMeasurement(),this.cdr.markForCheck()}handleSelectTariff(e){this.selectedTipo=e}handleContinue(){let e=this.tariffOptions.find(a=>a.tipo===this.selectedTipo);e&&this.continueSelection.emit(e)}handleClose(){this.dismissWithAnimation()}onDragStart(e){if(!this.isBrowser||!this.isMobile||this.isClosing)return;let a=e.currentTarget;if(a&&typeof a.setPointerCapture=="function")try{a.setPointerCapture(e.pointerId)}catch{}this.dragStartY=e.clientY,this.dragStartTranslate=this.dragTranslate,this.isDragging=!0,e.preventDefault()}onDragMove(e){if(!this.isDragging)return;let a=e.clientY-this.dragStartY;this.dragTranslate=Math.max(0,this.dragStartTranslate+a),this.cdr.markForCheck()}onDragEnd(e){if(!this.isDragging)return;let a=e.currentTarget;if(a&&typeof a.releasePointerCapture=="function")try{a.releasePointerCapture(e.pointerId)}catch{}this.isDragging=!1,this.dragTranslate>this.CLOSE_THRESHOLD_PX?this.dismissWithAnimation():(this.dragTranslate=0,this.cdr.markForCheck())}handleBackdropClick(){this.dismissWithAnimation()}trackByTipo(e,a){return a.tipo}get extraAccessories(){return this.group?.acessorios?.length?this.group.acessorios.filter(e=>!!e.descricao).map(e=>({label:e.descricao,icon:this.resolveAccessoryIcon(e.codigoAcessorio,e.descricao)})):[]}get hasOnlyCounterTariff(){return this.tariffOptions.length===1&&this.tariffOptions[0].tipo==="PagamentoBalcao"}resolveAccessoryIcon(e,a){let o=this.normalizeAccessoryDescription(a),m=this.accessoryDescriptionRules.find(_=>_.matcher(o))?.icon;return m||(e==null?null:this.accessoryIconByCode[e]??null)}normalizeAccessoryDescription(e){return(e??"").trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")}updateArrowPositionFromIndex(){let e=this.getColumnsForViewport(),a=(this.groupIndex%e+e)%e;this.arrowLeftPercent=Math.round((a+.5)*100/e)}scheduleArrowMeasurement(){!this.isBrowser||typeof window>"u"||typeof requestAnimationFrame>"u"||requestAnimationFrame(()=>this.alignArrowWithSelectedCard())}
2alignArrowWithSelectedCard(){let e=this.elementRef?.nativeElement;if(!e)return;let a=e.querySelector(".tariff-panel");if(!a)return;let _=e.closest(".selecao-grupo-tariff-panel-wrapper")?.parentElement?.previousElementSibling;if(!_)return;let x=_.querySelector(".selecao-grupo-box--selected")??(this.group?.codigoLocaliza?_.querySelector(`[data-group-code="${this.group.codigoLocaliza}"]`):null);if(!x)return;let O=a.getBoundingClientRect();if(O.width<=0)return;let R=x.getBoundingClientRect(),me=(R.left+R.width/2-O.left)/O.width*100,ke=Math.max(2,Math.min(98,me));Math.abs(ke-this.arrowLeftPercent)>.1&&(this.arrowLeftPercent=ke,this.cdr.markForCheck())}getColumnsForViewport(){if(!this.isBrowser||typeof window>"u")return 3;let e=window.innerWidth;return e>=1200?3:e>=768?2:1}updateMobileState(){if(!this.isBrowser||typeof window>"u"){this.isMobile=!1;return}this.isMobile=window.innerWidth<this.MOBILE_BREAKPOINT}getViewportHeight(){return!this.isBrowser||typeof window>"u"?0:window.innerHeight||document.documentElement.clientHeight||0}lockBodyScroll(){!this.isBrowser||this.bodyScrollLocked||typeof document>"u"||(this.previousBodyOverflow=document.body.style.overflow||"",document.body.style.overflow="hidden",this.bodyScrollLocked=!0)}restoreBodyScroll(){!this.isBrowser||!this.bodyScrollLocked||typeof document>"u"||(document.body.style.overflow=this.previousBodyOverflow??"",this.bodyScrollLocked=!1,this.previousBodyOverflow=null)}dismissWithAnimation(){if(!this.isBrowser||!this.isMobile){this.closePanel.emit();return}this.isClosing||(this.isClosing=!0,this.dragTranslate=this.getViewportHeight(),this.cdr.markForCheck(),this.closeTimeoutId=setTimeout(()=>{this.closeTimeoutId=null,this.closePanel.emit()},this.CLOSE_ANIMATION_MS))}buildTariffOptions(){let e=this.offer;if(!e)return[];let a=e.meioPagamento?.find(K=>K.tipo==="Link"),o=e.meioPagamento?.find(K=>K.tipo==="PagamentoBalcao"),m=e.tarifa?.moeda??"",_=this.quantidadeDiarias>0?this.quantidadeDiarias:e.quantidadeDiarias??1,x=[],O=this.buildCounterOption({offer:e,linkPayment:a,explicitCounterPayment:o,moeda:m,diarias:_});O&&x.push(O);let R=this.buildPrepaidOption(a,e,m,_);return R&&x.push(R),x}buildPrepaidOption(e,a,o,m){if(!e)return null;let _=e.valorPromocionalPrePago??e.valorDiaria??a.tarifa?.valorDiaria??0,x=a.tarifa?.valorDiaria??_,O=Math.max(e.valorDiariaSemDesconto??0,x,_),R=e.valorTotalDiariasPromocionalPrePago??e.valorTotalPromocionalPrePago??e.valorTotal??_*m;return _?{tipo:"Link",valorDiaria:_,valorDiariaSemDesconto:O,ahorroDiario:Math.max(0,O-_),valorTotal:R,percentualDesconto:e.percentualDesconto??0,moeda:o,temDesconto:O>_}:null}buildCounterOption(e){let{offer:a,linkPayment:o,explicitCounterPayment:m,moeda:_,diarias:x}=e,O=this.offerBalcao?.tarifa??a.tarifa,R=!!O?.existeDescontoPromocional;if(m){let me=m.valorDiaria??0,ke=m.valorDiariaSemDesconto??me,qe=m.valorTotal||me*x;return{tipo:"PagamentoBalcao",valorDiaria:me,valorDiariaSemDesconto:ke,ahorroDiario:Math.max(0,ke-me),valorTotal:qe,percentualDesconto:m.percentualDesconto??0,moeda:_,temDesconto:ke>me,hasCoupon:R}}let K=o?.valorDiariaSemDesconto??a.tarifa?.valorDiaria??o?.valorDiaria??0;return K?{tipo:"PagamentoBalcao",valorDiaria:K,valorDiariaSemDesconto:K,ahorroDiario:0,valorTotal:K*x,percentualDesconto:R?O?.descontoCodigoPromocional??0:0,moeda:_,temDesconto:!1,hasCoupon:R}:null}};r.\u0275fac=function(a){return new(a||r)(v(Ve),v(Xe),v(xa))},r.\u0275cmp=M({type:r,selectors:[["app-tariff-selection-panel"]],hostBindings:function(a,o){a&1&&b("resize",function(){return o.onResize()},mi)},inputs:{group:"group",offer:"offer",offerBalcao:"offerBalcao",quantidadeDiarias:"quantidadeDiarias",groupIndex:"groupIndex",respectPreSelectedMeio:"respectPreSelectedMeio",firstTopicVariant:"firstTopicVariant"},outputs:{continueSelection:"continueSelection",closePanel:"closePanel"},features:[nt],decls:1,vars:1,consts:[["aria-hidden","true",1,"tariff-panel__backdrop",3,"click"],["role","region",1,"tariff-panel"],["aria-hidden","true",1,"tariff-panel__handle",3,"pointerdown","pointermove","pointerup","pointercancel"],["aria-hidden","true",1,"tariff-panel__arrow"],["type","button",1,"tariff-panel__close",3,"click"],["size","20"],[1,"tariff-panel__grid"],[1,"tariff-panel__group-info"],[1,"tariff-panel__group-name"],[1,"tariff-panel__group-code"],[1,"tariff-panel__divider"],[1,"tariff-panel__attributes"],[1,"tariff-panel__attributes__item"],[1,"tariff-panel__attributes__item","tariff-panel__attributes__item--accessory"],[1,"tariff-panel__disclaimer"],[1,"tariff-panel__selection"],[1,"tariff-panel__title"],["role","radiogroup",1,"tariff-panel__options"],["type","button","role","radio",1,"tariff-card",3,"tariff-card--selected","tariff-card--link"],[1,"tariff-panel__actions"],["type","button","ldsButton","","size","lg","variant","contained","color","secondary",1,"tariff-panel__continue",3,"click","disabled"],["size","16"],["aria-hidden","true",1,"tariff-panel__attributes__dot"],["type","button","role","radio",1,"tariff-card",3,"click"],[1,"tariff-card__header"],["aria-hidden","true",1,"tariff-card__icon"],[1,"tariff-card__label"],[1,"tariff-card__discount"],[1,"tariff-card__benefits"],[1,"tariff-card__benefits__item"],[1,"tariff-card__footer"],[1,"tariff-card__price"],[1,"tariff-card__price__moeda"],[1,"tariff-card__price__value"],[1,"tariff-card__price__unit"],[1,"tariff-card__total"],[1,"tariff-card__benefits__item__label"],[1,"tariff-card__benefits__item__value"],[1,"tariff-card__benefits__item__str
2ike"]],template:function(a,o){if(a&1&&B(0,Bv,38,45),a&2){let m;F((m=o.group)?0:-1,m)}},dependencies:[U,A,oi,Ke,Gs,Fs,Ds,Ts,zs,Ls,ys,Es,As,Us,Bs,yt,T],styles:['[_nghost-%COMP%]{display:block;width:100%;font-family:var(--lds-font-brand-family)}.tariff-panel[_ngcontent-%COMP%]{position:relative;width:100%;background:var(--lds-color-accent-primary-emphasis-high);color:var(--lds-color-accent-primary-contrast-auto);border-radius:12px;padding:32px 40px 28px;box-shadow:0 6px 24px #0000001f;overflow:visible;will-change:transform}.tariff-panel__arrow[_ngcontent-%COMP%]{position:absolute;top:-17px;left:50%;width:36px;height:36px;background:var(--lds-color-accent-primary-emphasis-high);border-radius:0 6px 0 0;transform:translate(-50%) rotate(-45deg);transform-origin:center;pointer-events:none}.tariff-panel__handle[_ngcontent-%COMP%]{display:none}.tariff-panel__close[_ngcontent-%COMP%]{position:absolute;top:18px;right:20px;background:transparent;border:0;color:var(--lds-color-accent-primary-contrast-auto);cursor:pointer;padding:6px;line-height:0;border-radius:4px}.tariff-panel__close[_ngcontent-%COMP%]:hover, .tariff-panel__close[_ngcontent-%COMP%]:focus-visible{background:#ffffff1f;outline:none}.tariff-panel__close[_ngcontent-%COMP%] lds-icon-close[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-contrast-auto);display:inline-flex}.tariff-panel__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:40px;align-items:stretch}.tariff-panel__group-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding-right:8px}.tariff-panel__group-name[_ngcontent-%COMP%]{margin:0;font-size:22px;font-weight:500;color:var(--lds-color-accent-primary-contrast-auto);line-height:1.15}.tariff-panel__group-code[_ngcontent-%COMP%]{margin:0;font-size:13px;color:#ffffffbf;line-height:1.35}.tariff-panel__divider[_ngcontent-%COMP%]{width:100%;max-width:100%;border:0;border-top:2px solid var(--lds-color-accent-secondary-default);margin:10px 0 6px}.tariff-panel__attributes[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:0;padding:0;list-style:none}.tariff-panel__attributes__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--lds-color-accent-primary-contrast-auto);line-height:1.3}.tariff-panel__attributes__item[_ngcontent-%COMP%] lds-icon-user[_ngcontent-%COMP%], .tariff-panel__attributes__item[_ngcontent-%COMP%] lds-icon-luggage[_ngcontent-%COMP%], .tariff-panel__attributes__item[_ngcontent-%COMP%] lds-icon-briefcase[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-contrast-auto);display:inline-flex;flex-shrink:0}.tariff-panel__attributes__dot[_ngcontent-%COMP%]{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--lds-color-accent-primary-contrast-auto);flex-shrink:0;margin-left:4px}.tariff-panel__disclaimer[_ngcontent-%COMP%]{margin:16px 0 0;font-size:11px;color:#ffffffbf;line-height:1.4;max-width:320px}.tariff-panel__selection[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;align-items:flex-end;--tariff-cards-width: 596px }.tariff-panel__title[_ngcontent-%COMP%]{font-family:var(--lds-font-brand-family);margin:0;font-size:18px;font-weight:500;color:var(--lds-color-accent-primary-contrast-auto);padding-right:48px;width:100%;max-width:var(--tariff-cards-width)}.tariff-panel__options[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,290px));justify-content:end;gap:16px;width:100%;max-width:var(--tariff-cards-width)}.tariff-panel__options[_ngcontent-%COMP%] .tariff-card[_ngcontent-%COMP%]:only-child{grid-column:1/-1}.tariff-panel__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:4px;width:100%;max-width:var(--tariff-cards-width)}.tariff-panel__continue[_ngcontent-%COMP%]{min-width:180px;border-radius:5.2rem;font-size:1.6rem;font-weight:600;line-height:150%;text-align:center}.tariff-card[_ngcontent-%COMP%]{position:relative;text-align:left;background:var(--lds-color-neutral-background-default);color:var(--lds-color-neutral-text-high);border:3.5px solid transparent;border-radius:15px;padding:16px 18px;
2cursor:pointer;display:flex;flex-direction:column;gap:12px;transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease,color .12s ease}.tariff-card[_ngcontent-%COMP%]:hover, .tariff-card[_ngcontent-%COMP%]:focus-visible{outline:none;border-color:#00a45a80}.tariff-card--selected[_ngcontent-%COMP%]{border-color:var(--lds-color-accent-secondary-default);box-shadow:0 4px 12px #005b342e}.tariff-card__header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.tariff-card__icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--lds-color-neutral-surface-high);color:var(--lds-color-neutral-text-high);flex-shrink:0;transition:background-color .12s ease,color .12s ease}.tariff-card__icon[_ngcontent-%COMP%] lds-icon-building-store[_ngcontent-%COMP%], .tariff-card__icon[_ngcontent-%COMP%] lds-icon-credit-card[_ngcontent-%COMP%]{color:inherit;display:inline-flex}.tariff-card__label[_ngcontent-%COMP%]{flex:1 1 auto;font-size:14px;font-weight:700;color:var(--lds-color-neutral-text-high)}.tariff-card__discount[_ngcontent-%COMP%]{flex-shrink:0;background:var(--lds-color-accent-primary-contrast-high);color:var(--lds-color-accent-secondary-contrast-lower);font-size:12px;font-weight:700;padding:3px 8px;border-radius:999px;line-height:1}.tariff-card__benefits[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0 0 10px 35px;display:flex;flex-direction:column;gap:4px;border-bottom:2px solid var(--lds-color-neutral-border-low);font-weight:600}.tariff-card__benefits__item[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:8px;font-size:12px;color:var(--lds-color-neutral-text-low);line-height:1.35}.tariff-card__benefits__item[_ngcontent-%COMP%]:before{content:"";display:inline-block;flex-shrink:0;width:4px;height:4px;border-radius:50%;background:currentColor;transform:translateY(-2px)}.tariff-card__benefits__item__label[_ngcontent-%COMP%], .tariff-card__benefits__item__value[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-low)}.tariff-card__benefits__item__strike[_ngcontent-%COMP%]{text-decoration:line-through;color:var(--lds-color-neutral-text-low)}.tariff-card__footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;align-items:flex-end;margin-top:2px}.tariff-card__price[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:4px;margin:0}.tariff-card__price__moeda[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:var(--lds-color-neutral-text-high)}.tariff-card__price__value[_ngcontent-%COMP%]{font-size:22px;font-weight:600;color:var(--lds-color-neutral-text-high);line-height:1}.tariff-card__price__unit[_ngcontent-%COMP%]{font-size:12px;color:var(--lds-color-neutral-text-low)}.tariff-card__total[_ngcontent-%COMP%]{margin:0;font-size:12px;font-weight:500;color:var(--lds-color-neutral-text-low)}.tariff-card--selected[_ngcontent-%COMP%] .tariff-card__icon[_ngcontent-%COMP%]{background:var(--lds-color-accent-secondary-default);color:var(--lds-color-accent-primary-emphasis-high)}.tariff-card--selected[_ngcontent-%COMP%] .tariff-card__label[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default)}.tariff-card--selected[_ngcontent-%COMP%] .tariff-card__benefits[_ngcontent-%COMP%]{border-bottom-color:var(--lds-color-accent-primary-emphasis-high)}.tariff-card--selected[_ngcontent-%COMP%] .tariff-card__benefits__item[_ngcontent-%COMP%], .tariff-card--selected[_ngcontent-%COMP%] .tariff-card__benefits__item__label[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-emphasis-high)}.tariff-card--selected[_ngcontent-%COMP%] .tariff-card__price__moeda[_ngcontent-%COMP%], .tariff-card--selected[_ngcontent-%COMP%] .tariff-card__price__value[_ngcontent-%COMP%], .tariff-card--selected[_ngcontent-%COMP%] .tariff-card__price__unit[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default)}.tariff-card--selected[_ngcontent-%COMP%] .tariff-card__total[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-emphasis-high)}.tariff-panel__backdrop[_ngcontent-%COMP%]{display:none}@media(max-width:991.98px){.tariff-panel__backdrop[_ngcontent-%COMP%]{display:block;position:fixed;inset:0;background:#00000073;z-index:1050;opacity:1;animation:_ngcontent-%COMP%_tariff-panel-backdrop-in .22s ease-out;transition:opacity .22s ease-out}.tariff-panel__backdrop--closing[_ngcontent-%COMP%]{opacity:0}
2.tariff-panel[_ngcontent-%COMP%]{position:fixed;inset:auto 0 0;z-index:1060;background:var(--lds-color-accent-primary-emphasis-high);border-radius:20px 20px 0 0;box-shadow:0 -8px 24px #00000040;max-height:90vh;overflow-y:auto;padding:28px 20px 20px;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));transition:transform .26s cubic-bezier(.22,.61,.36,1)}.tariff-panel--entering[_ngcontent-%COMP%], .tariff-panel--dragging[_ngcontent-%COMP%]{transition:none}.tariff-panel__handle[_ngcontent-%COMP%]{display:block;position:absolute;top:10px;left:50%;transform:translate(-50%);width:44px;height:4px;border-radius:2px;background:#ffffff8c;cursor:grab;touch-action:none;z-index:2}.tariff-panel__handle[_ngcontent-%COMP%]:active{cursor:grabbing}.tariff-panel__handle[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:-14px -20px}.tariff-panel__grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:20px}.tariff-panel__group-info[_ngcontent-%COMP%], .tariff-panel__arrow[_ngcontent-%COMP%]{display:none}.tariff-panel__title[_ngcontent-%COMP%]{padding-right:40px;font-size:18px;line-height:1.2;font-weight:500}.tariff-panel__options[_ngcontent-%COMP%]{grid-template-columns:1fr}.tariff-panel__options[_ngcontent-%COMP%] .tariff-card--link[_ngcontent-%COMP%]{order:-1}.tariff-panel__actions[_ngcontent-%COMP%]{justify-content:stretch}.tariff-panel__continue[_ngcontent-%COMP%]{width:100%}}@keyframes _ngcontent-%COMP%_tariff-panel-backdrop-in{0%{opacity:0}to{opacity:1}}'],changeDetection:0});let i=r;return i})();var Id=(()=>{let r=class r{constructor(){this.offerBalcao=null,this.continueSelection=new W,this.closePanel=new W}onContinueSelection(e){this.continueSelection.emit(e)}onClosePanel(){this.closePanel.emit()}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-mexico-step2-inline-tariff-panel"]],inputs:{group:"group",offer:"offer",offerBalcao:"offerBalcao",quantidadeDiarias:"quantidadeDiarias",groupIndex:"groupIndex"},outputs:{continueSelection:"continueSelection",closePanel:"closePanel"},decls:2,vars:5,consts:[[1,"col-12","mexico-step2-inline-tariff-panel-wrapper"],["firstTopicVariant","regularPrice",3,"continueSelection","closePanel","group","offer","offerBalcao","quantidadeDiarias","groupIndex"]],template:function(a,o){a&1&&(s(0,"div",0)(1,"app-tariff-selection-panel",1),b("continueSelection",function(_){return o.onContinueSelection(_)})("closePanel",function(){return o.onClosePanel()}),l()()),a&2&&(n(),d("group",o.group)("offer",o.offer)("offerBalcao",o.offerBalcao)("quantidadeDiarias",o.quantidadeDiarias)("groupIndex",o.groupIndex))},dependencies:[U,Jn],styles:['.mexico-step2-inline-tariff-panel-wrapper[_ngcontent-%COMP%]{position:relative;isolation:isolate;margin-top:8px;margin-bottom:24px}.mexico-step2-inline-tariff-panel-wrapper[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background:var(--lds-color-accent-primary-emphasis-high);box-shadow:0 0 0 100vmax var(--lds-color-accent-primary-emphasis-high);clip-path:inset(0 -100vmax);z-index:-1;pointer-events:none}.mexico-step2-inline-tariff-panel-wrapper[_ngcontent-%COMP%] .tariff-panel{background:transparent;box-shadow:none;border-radius:0}@media(max-width:991.98px){.mexico-step2-inline-tariff-panel-wrapper[_ngcontent-%COMP%]{isolation:auto;margin-top:0;margin-bottom:0}.mexico-step2-inline-tariff-panel-wrapper[_ngcontent-%COMP%]:after{content:none}.mexico-step2-inline-tariff-panel-wrapper[_ngcontent-%COMP%] .tariff-panel{background:var(--lds-color-accent-primary-emphasis-high);box-shadow:0 -8px 24px #00000040;border-radius:20px 20px 0 0}}'],changeDetection:0});let i=r;return i})();function Uv(i,r){if(i&1){let t=k();s(0,"app-simplified-booking-card",10),b("conferirUltimaReservaEvent",function(a){P(t);let o=g();return S(o.goToSimplifiedBooking(a))}),l()}if(i&2){let t=g();d("reservaSimplificadaDados",t.dadosDaReserva.dadosParaReservaSimplificada)("cotacaoId",t.dadosDaReserva.idCotacao)}}function Gv(i,r){i&1&&(s(0,"div",3)(1,"div",5),h(2,"app-barra-navegacao-reserva",11),l()()),i&2&&(n(2),d("step",2))}function jv(i,r){i&1&&(s(0,"p",12),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"partner.doters.dotersSubtitle")," "))}function qv(i,r){if(i&1){let t=k();s(0,"div",13)(1,"div",5)(2,"loc-filtro-reserva",14),b("filtroInserido",function(a){P(t);let o=g();return S(o.filtrarGrupos(a))})("limparFiltroOutput",function(){P(t);let a=g();return S(a.zerarFiltro())}),l()()()}if(i&2){let t=g();n(2),d("numerosDeBagagem",t.quantidadeDeBagagem)("limparFiltro",t.limparFiltro)}}function Hv(i,r){if(i&1){let t=k();s(0,"div",13)(1,"div",5)(2,"loc-filtro-reserva-mexico",14),b("filtroInserido",function(a){P(t);let o=g();return S(o.filtrarGrupos(a))})("limparFiltroOutput",function(){P(t);let a=g();return S(a.zerarFiltro())}),l()()(),h(3,"lds-alert",15),c(4,"translate")}if(i&2){let t=g();n(2),d("numerosDeBagagem",t.quantidadeDeBagagem)("limparFiltro",t.limparFiltro),n(),d("description",u(4,4,"reservationGuarantee"))("showCloseButton",!1)}}function $v(i,r){if(i&1){let t=k();s(0,"div",20)(1,"app-car-group-card",21),b("chooseGroup",function(a){P(t);let o=g(4);return S(o.selecionarGrupo(a))})("checkAvailability",function(a){P(t);let o=g(4);return S(o.abrirModalGrupoAgenciaProxima(a))})("checkNextAvailability",function(a){P(t);let o=g(4);return S(o.abrirModalProximaDisponibilidade(a))})("showInfo",function(a){P(t);let o=g(4);return S(o.preencherDataLayerDetalhesDoGrupo(a))}),l()()}if(i&2){let t=r.$implicit,e=g(4);Z("selecao-grupo-box--selected",e.insiderInitialized&&e.mexicoStep2TariffActive&&e.expandedGroupCode===t.codigoLocaliza),Ie("data-group-code",t.codigoLocaliza),n(),d("group",t)("showPrice",!0)("textButtonCta",e.insiderInitialized&&e.mexicoStep2TariffActive&&e.expandedGroupCode===t.codigoLocaliza?"carGroupCard.chosen":"carGroupCard.choose")("hideSimilar",t.codigoLocaliza==="R"||t.codigoLocaliza==="RX")}}function Wv(i,r){if(i&1){let t=k();s(0,"div",4)(1,"app-mexico-step2-inline-tariff-panel",22),b("continueSelection",function(a){P(t);let o=g(4);return S(o.confirmarTarifaInline(o.getGroupByCode(o.expandedGroupCode),a))})("closePanel",function(){P(t);let a=g(4);return S(a.closeInlineTariffPanel())}),l()()}if(i&2){let t=g(4);n(),d("group",t.getGroupByCode(t.expandedGroupCode))("offer",t.getOfferForGroup(t.expandedGroupCode))("offerBalcao",t.getBalcaoOfferForGroup(t.expandedGroupCode))("quantidadeDiarias",t.quantidadeDiarias)("groupIndex",t.getGroupIndex(t.expandedGroupCode))}}function Kv(i,r){if(i&1&&(V(0),s(1,"div",4),C(2,$v,2,7,"div",18),l(),C(3,Wv,2,5,"div",19),z()),i&2){let t=r.$implicit,e=g(3);n(2),d("ngForOf",t),n(),d("ngIf",e.insiderInitialized&&e.mexicoStep2TariffActive&&e.rowContainsExpanded(t))}}function Zv(i,r){if(i&1){let t=k();C(0,Kv,4,2,"ng-container",16),s(1,"div",4)(2,"div",17),b("scrolled",function(){P(t);let a=g(2);return S(a.carregarCarros())}),l()()}if(i&2){let t=g(2);d("ngForOf",t.getMexicoRows())("ngForTrackBy",t.trackByFirstCode)}}function Yv(i,r){if(i&1){let t=k();s(0,"div",20)(1,"app-box-group-car",24),c(2,"translate"),b("handleButtonCtaClick",function(a){P(t);let o=g(3);return S(o.selecionarGrupo(a))})("handleButtonFastClick",function(){P(t);let a=g(3);return S(a.abrirModalOnboardingFast())})("handleButtonAvailabilityClick",function(a){P(t);let o=g(3);return S(o.abrirModalGrupoAgenciaProxima(a))}
2)("handleShowDetailsClick",function(a){P(t);let o=g(3);return S(o.preencherDataLayerDetalhesDoGrupo(a))})("handleButtonNextAvailabilityClick",function(a){P(t);let o=g(3);return S(o.abrirModalProximaDisponibilidade(a))}),l()()}if(i&2){let t=r.$implicit,e=g(3);n(),d("textButtonCta",Re(u(2,11,"grupoOferta.btnGrupoDeCarro")))("group",t)("isMonthy",e.quantidadeDiarias>29)("haveFast",e.dadosDaReserva.codigoPaisAgenciaRetirada==="0055")("showPercentageText",e.dadosDaReserva.codigoPaisAgenciaRetirada==="0055")("hideSimilar",t.codigoLocaliza==="R"||t.codigoLocaliza==="RX")("interAgency",e.dadosDaReserva.codigoPaisAgenciaRetirada!=="0055")("hasBundles",e.dadosDaReserva.codigoPaisAgenciaRetirada=="0055"&&e.hasBundles)("agency",e.dadosDaReserva.codigoAgenciaRetirada)("franchiseAgency",e.dadosDaReserva==null?null:e.dadosDaReserva.agenciaFranqueado)}}function Qv(i,r){if(i&1){let t=k();s(0,"div",4),C(1,Yv,3,13,"div",23),s(2,"div",17),b("scrolled",function(){P(t);let a=g(2);return S(a.carregarCarros())}),l()()}if(i&2){let t=g(2);n(),d("ngForOf",t.gruposExibido)}}function Xv(i,r){if(i&1&&(V(0),B(1,Zv,3,2)(2,Qv,3,1,"div",4),z()),i&2){let t=g();n(),F(t.reservaMexico?1:2)}}function Jv(i,r){i&1&&(s(0,"div",31)(1,"ds-link",32),c(2,"translate"),p(3),c(4,"translate"),l()()),i&2&&(n(),d("href",u(2,2,"url.grupoDeCarros")),n(2),f(" ",u(4,4,"grupoOferta.vazioBtnGrupos")," "))}function e1(i,r){if(i&1){let t=k();s(0,"div",25)(1,"div",5),h(2,"img",26),c(3,"translate"),s(4,"p",27),p(5),c(6,"translate"),l(),s(7,"p",28),p(8),c(9,"translate"),l(),s(10,"div",29)(11,"ds-new-button",30),b("click",function(){P(t);let a=g();return S(a.zerarFiltro())}),p(12),c(13,"translate"),l()(),B(14,Jv,5,6,"div",31),l()()}if(i&2){let t=g();n(2),d("alt",Re(u(3,6,"fidelidade.meusPontos.extratoVazio.textoCta"))),n(3),D(u(6,8,"grupoOferta.vazioTexto")),n(3),f(" ",u(9,10,"grupoOferta.vazioCta")," "),n(4),D(u(13,12,"grupoOferta.vazioBtnLimpar")),n(2),F(t.isWebview?-1:14)}}var Td=(()=>{let r=class r{constructor(e,a,o,m,_,x,O,R,K,me,ke,qe,at,Pt,Ct,Ht){this.dialog=e,this.reservaStore=a,this.router=o,this.bsService=m,this.translateService=_,this.googleAnalyticsService=x,this.internacionalizacao=O,this.snackBar=R,this.bundleService=K,this.lastBookingAttemptService=me,this.overlayLoading=ke,this.insiderService=qe,this.monitoringService=at,this.simplifiedBookingLoaderService=Pt,this.webviewService=Ct,this.mexicoStep2TariffAbService=Ht,this.isBrowser=Be(I(Ve)),this.processLoading=I(_n),this.posicaoItemInicial=0,this.gruposFiltradoFast=[],this.gruposFiltrado=[],this.gruposExibido=[],this.filtroFastAtivo=!1,this.fitroAtivo=!1,this.limparFiltro=!1,this.listaDeGruposPorTipoBrasil={hatch:["B","BE","C","CE","F","FX","FE"],sedan:["CS","FS","FX","FA","L","T"],suv:["G","GC","GX","LE","GR","GP","TG"],pickup:["V","VP","NX","VD","P"],minivan:["R","RX"],furgao:["U","UF","US","J"]},this.listaDeGruposPorTipoMexico={hatch:["B","FH"],sedan:["FS","FV","FX","L","LX"],suv:["GC","GX","LE","SS","SL"],pickup:["NX","P"],minivan:["GR"],furgao:["U"]},this.listaDeGruposPorTipo=this.listaDeGruposPorTipoBrasil,this.nextStep=!1,this.isWebview=!1,this.insiderInitialized=!1,this.mexicoStep2TariffActive=!1,this.expandedGroupCode=null,this.cardsPerRow=3,this.destroy$=new Ze,this.ngZone=I(Tr)}ngOnInit(){this.isWebview=this.webviewService.isWebView(),this.subscriptionBreakpoint=this.bsService.isDesktop.subscribe(e=>{this.isDesktop=e}),this.codigoPaisDefault=this.internacionalizacao.recuperarCodigoPais(),this.isBrasil=this.codigoPaisDefault===le,this.breadCrumb=[{label:"breadCrumbs.reserva.passo1.label",url:"breadCrumbs.reserva.passo1.url"}],this.getDadosCotacao(),this.hasBundles=this.bundleService.hasBundle(this.dadosDaReserva.codigoAgenciaRetirada),this.isBrasil&&this.dadosDaReserva.quantidadeDiarias<30&&this.hasBundles&&this.googleAnalyticsService.preencherDataLayer({event:"_MensuraEventos",category:"clique",action:"impression",label:"new_card_grupo"}),this.reservaBrasil&&this.enviarEventoGAPrePaidBrasil(),this.listenMexicoStep2TariffAb(),this.listenInsiderInitialized(),this.updateCardsPerRow()}ngOnDestroy(){this.subscriptionBreakpoint?.unsubscribe(),this.subscriptionStore?.unsubscribe(),this.snackBar.dismiss(),this.destroy$.next(),this.destroy$.complete(),this.processLoading.hide()}goToSimplifiedBooking(e){this.processLoading.show();let a=e,o=[...this.mapToRecalculoItems(a.combo),...this.mapToRecalculoItems(a.adicionais)];this.simplifiedBookingLoaderService.setPreloadParams({customerId:this.dadosDaReserva.clienteId,quotationId:this.dadosDaReserva.idCotacao,offerId:this.dadosDaReserva.dadosParaReservaSimplificada?.ofertaId??"",pickupCountryCode:this.dadosDaReserva.codigoPaisAgenciaRetirada,noShow:a.noShow,aditionalList:o}),this.router.navigateByUrl(this.translateService.instant("url.reservaSimplificada"))}mapToRecalculoItems(e){return e?(Array.isArray(e)?e:[e]).filter(o=>o.selecionado||!o.selecionado&&o.disponivel===void 0).map(o=>$({identificador:o.id,selecionado:o.selecionado},o?.quantidade>0?{quantidade:o.quantidade}:{})):[]}sendPersonalizaGroupEvent(){let e=this.dadosDaReserva?.ofertas?.find(o=>o?.grupoVeiculo?.recomendadoPersonaliza),a=e?.grupoVeiculo?.codigoLocaliza;!e||!a||this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"personaliza_group",action:"impression",label:`second_highlight_group_${a}`})}getDadosCotacao(){let e=!1;this.subscriptionStore=this.reservaStore.state$.subscribe(a=>{this.quantidadeDiarias=a?.reserva?.quantidadeDiarias,a.reserva.ofertaSelecionada!==null&&a.reserva.ofertaSelecionada.combos===null&&(a.reserva.ofertaSelecionada=null),a?.reserva?.nomeAgenciaRetirada||this.translateService.get("url.home").pi
2pe(w(1)).subscribe(m=>{this.router.navigate([m])}),this.dadosDaReserva=a?.reserva,this.todasOfertas=this.dadosDaReserva?.ofertas,this.reservaBrasil=this.dadosDaReserva.codigoPaisAgenciaRetirada===le,this.reservaMexico=this.dadosDaReserva.codigoPaisAgenciaRetirada===pe,this.listaDeGruposPorTipo=this.reservaMexico?this.listaDeGruposPorTipoMexico:this.listaDeGruposPorTipoBrasil;let o=this.dadosDaReserva.codigoPaisAgenciaRetirada===le||this.dadosDaReserva.codigoPaisAgenciaRetirada===pe;this.dadosDaReserva?.grupoSelecionado&&!this.nextStep&&this.limparGrupoSelecionada(),this.todasOfertasTratadaEmGrupo=this.todasOfertas?.map(m=>({recomendadoPersonaliza:m.grupoVeiculo?.recomendadoPersonaliza,destaque:m.grupoVeiculo.destaque,categoria:m.grupoVeiculo.categoria,codigoLocaliza:m.grupoVeiculo.codigoLocaliza,codigoInternacional:m.grupoVeiculo.codigoInternacional,codigoGrupoFastEquivalente:m.grupoVeiculo.codigoGrupoFastEquivalente,nome:m.grupoVeiculo.nome,imagemPadrao:m.grupoVeiculo.imagemPadrao,disponivel:m.disponivel,freesale:m.grupoVeiculo.freesale,acessorios:m.grupoVeiculo.acessorios,capacidade:m.grupoVeiculo.capacidade,veiculos:m.grupoVeiculo.veiculos.map(_=>({nome:_.nome,padraoGrupo:_.padraoGrupo,urlImagem:_.urlImagem})),tarifa:{moeda:m.tarifa.moeda,valorDiariaSemCombo:m.tarifa.valorDiariaSemCombo,valorLiquidoSemCodigoPromocional:m.tarifa.valorLiquidoSemCodigoPromocional,valorTotal:m.tarifa.valorTotal,valorTotalDiarias:m.tarifa.valorTotalDiarias,utilizarPontosFidelidade:this.dadosDaReserva.utilizarPontosFidelidade,pontuacaoResgate:m.tarifa.pontuacaoResgate,existeDescontoPromocional:m.tarifa.existeDescontoPromocional,percentualTaxaServico:m?.tarifa?.percentualTaxaServico,valorMensal:m?.tarifa?.valorMensal,valorMensalSemCodigoPromocional:m?.tarifa?.valorMensalSemCodigoPromocional,valorPromocionalPrePago:this.dadosDaReserva.codigoPaisAgenciaRetirada===pe?m?.meioPagamento?.find(_=>_.tipo==="Link")?.valorPromocionalPrePago||m?.tarifa?.valorPromocionalPrePago:void 0,parceiro:m?.tarifa?.parceiro,descontoCodigoPromocional:m?.tarifa?.descontoCodigoPromocional},proximaDataDisponivel:m?.grupoVeiculo?.proximaDataDisponivel,parceiro:this.dadosDaReserva?.parceiro,tipoRetirada:m?.grupoVeiculo?.tipoRetirada,meioPagamento:this.getPrePaidPaymentMethod(m),valorOferta:this.dadosDaReserva.codigoPaisAgenciaRetirada===pe?m?.meioPagamento?.find(_=>_.tipo==="Link")?.valorOferta:void 0})),this.isBrowser&&(e=!!localStorage.getItem("pfam-welcome")),this.dadosDaReserva.quantidadeDiarias>29&&o&&!e&&this.dialog.open(bd,{disableClose:!0,maxWidth:"48rem",maxHeight:"30rem",panelClass:"matDialog100Percent",data:{isMexico:this.reservaMexico}}).afterClosed().subscribe(_=>{_||this.googleAnalyticsService.sendEvent("__MensuraEventos","monthly_rental_modal","clicked","close")}),this.dadosDaReserva.codigoPaisAgenciaRetirada==="0055"&&(this.todasOfertasTratadaEmGrupo=this.todasOfertasTratadaEmGrupo.filter(m=>this.organizeGroups(m))),this.quantidadeDeBagagem=this.todasOfertasTratadaEmGrupo.map(m=>({label:this.translateService.instant("filtroReserva.labelBagagem",{pequenas:m.capacidade.quantidadeMalasPequenas,grandes:m.capacidade.quantidadeMalasGrandes}),malasPequenas:m.capacidade.quantidadeMalasPequenas,malasGrandes:m.capacidade.quantidadeMalasGrandes})),this.quantidadeDeBagagem=this.quantidadeDeBagagem.filter((m,_)=>this.quantidadeDeBagagem.findIndex(x=>m.malasPequenas===x.malasPequenas&&m.malasGrandes===x.malasGrandes)===_),this.gruposExibido=this.todasOfertasTratadaEmGrupo,this.gruposFiltradoFast=this.todasOfertasTratadaEmGrupo.filter(m=>m.categoria===ee.FAST),this.configurarExibicaoGrupos(),this.overlayLoading.hide()}),this.dadosDaReserva.grupoDeCarrosSelecionadoIntegracao&&this._selecionarGrupoEscolhidoIntegracao(),this.sendPersonalizaGroupEvent()}_selecionarGrupoEscolhidoIntegracao(){let e=this.todasOfertasTratadaEmGrupo.filter(a=>a.codigoLocaliza===this.dadosDaReserva.grupoDeCarrosSelecionadoIntegracao?.toUpperCase()&&a.disponivel);e.length&&this.selecionarGrupo(e[0])}limparGrupoSelecionada(){this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{grupoSelecionado:null,ofertaSelecionada:null,grupoDeCarrosSelecionadoIntegracao:null,fast:null}})}organizeGroups(e){return e?.tipoRetirada?(e.categoria=this.defineGroupCategory(e),!0):e.codigoGrupoFastEquivalente?this.processGroupWithEquivalent(e):this.processGroupWithoutEquivalent(e)}processGroupWithEquivalent(e){let a=this.todasOfertasTratadaEmGrupo.find(o=>e.codigoGrupoFastEquivalente===o.codigoLocaliza);return a&&(e.disponivel=e.disponivel||a.disponivel,e.freesale=e.disponivel&&e.freesale||a.disponivel&&a.freesale,e.categoria=ee.FAST),!0}processGroupWithoutEquivalent(e){return!this.todasOfertasTratadaEmGrupo.find(o=>e.codigoLocaliza===o.codigoGrupoFastEquivalente)}
2defineGroupCategory(e){return e.tipoRetirada===ee.FAST||e.tipoRetirada===ee.TODOS?ee.FAST:e.categoria}getPrePaidPaymentMethod(e){if(this.dadosDaReserva.codigoPaisAgenciaRetirada!==le||!this.insiderService.prePaidBrasilCActivated()||!e?.meioPagamento?.length)return;let a=e.meioPagamento?.find(o=>o.tipo==="Link");return{valorPromocionalPrePago:a?.valorPromocionalPrePago,valorTotalDiariasPromocionalPrePago:a?.valorTotalDiariasPromocionalPrePago}}selecionarGrupo(e){if(this.shouldOpenInlineTariffPanel(e)){this.openInlineTariffPanel(e);return}this.nextStep=!0,e?.tipoRetirada?this.saveUnifiedGroup(e):this.saveNonUnifiedGroup(e),this.preencherDataLayerSelecaoGrupo(e),this.translateService.get("lib.newGroupCar.group").pipe(w(1)).subscribe(a=>{let o=`${a.toLowerCase()} ${e.codigoLocaliza} - ${e.nome.toLowerCase()}`;this.lastBookingAttemptService.setCarGroup(e.codigoLocaliza,o)}),this.translateService.get("url.reserva.passo3").pipe(w(1)).subscribe(a=>{this.router.navigate([a])})}listenInsiderInitialized(){this.isBrowser&&this.ngZone.runOutsideAngular(()=>{pi(r.INSIDER_INITIALIZATION_TIMEOUT_MS).pipe(w(1),Se(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>{this.insiderService.refreshCampaigns(),this.insiderInitialized=!0})})})}listenMexicoStep2TariffAb(){this.mexicoStep2TariffAbService.isTestActive$().pipe(Se(this.destroy$)).subscribe(e=>{this.reservaMexico&&(this.mexicoStep2TariffActive=e,this.mexicoStep2TariffAbService.trackImpression())})}shouldOpenInlineTariffPanel(e){return!!e?.disponivel&&this.reservaMexico&&this.mexicoStep2TariffActive}openInlineTariffPanel(e){this.expandedGroupCode=e.codigoLocaliza,this.preencherDataLayerAbrirPainelTarifaMexico(e),this.scrollExpandedCarIntoView(e.codigoLocaliza)}scrollExpandedCarIntoView(e){this.isBrowser&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{document.querySelector(`[data-group-code="${e}"]`)?.scrollIntoView({behavior:"smooth",block:"start"})},80)})}closeInlineTariffPanel(){this.expandedGroupCode=null}getOfferForGroup(e){let a=(this.todasOfertas??[]).filter(R=>R.grupoVeiculo?.codigoLocaliza===e);if(!a.length)return null;let o=a.find(R=>R.meioPagamento?.some(K=>K.tipo==="Link"))??a[0]??null;if(!o)return null;if(o.meioPagamento?.some(R=>R.tipo==="PagamentoBalcao"))return o;let m=a.find(R=>R.meioPagamento?.some(K=>K.tipo==="PagamentoBalcao")),_=m?.meioPagamento?.find(R=>R.tipo==="PagamentoBalcao");if(!m||!_)return o;let x=m.tarifa,O=X($({},_),{valorDiaria:x?.valorDiariaSemCombo??_.valorDiaria??0,valorDiariaSemDesconto:x?.valorLiquidoSemCodigoPromocional??_.valorDiariaSemDesconto??_.valorDiaria??0,valorTotal:x?.valorTotalDiarias??_.valorTotal??0,percentualDesconto:x?.descontoCodigoPromocional??_.percentualDesconto??0,selecionado:!1});return X($({},o),{meioPagamento:[...o.meioPagamento??[],O]})}getBalcaoOfferForGroup(e){return(this.todasOfertas??[]).find(a=>a.grupoVeiculo?.codigoLocaliza===e&&a.meioPagamento?.some(o=>o.tipo==="PagamentoBalcao"))??null}getGroupByCode(e){return this.gruposExibido?.find(a=>a.codigoLocaliza===e)}getGroupIndex(e){return this.gruposExibido?.findIndex(a=>a.codigoLocaliza===e)??0}getMexicoRows(){let e=Math.max(1,this.cardsPerRow),a=this.gruposExibido??[],o=[];for(let m=0;m<a.length;m+=e)o.push(a.slice(m,m+e));return o}rowContainsExpanded(e){return!e||!this.expandedGroupCode?!1:e.some(a=>a.codigoLocaliza===this.expandedGroupCode)}trackByFirstCode(e,a){return a?.[0]?.codigoLocaliza??`row-${e}`}onWindowResize(){this.updateCardsPerRow()}updateCardsPerRow(){if(!this.isBrowser)return;let e=window.innerWidth;e>=1200?this.cardsPerRow=3:e>=768?this.cardsPerRow=2:this.cardsPerRow=1}confirmarTarifaInline(e,a){!e||!a||(this.nextStep=!0,e?.tipoRetirada?this.saveUnifiedGroup(e):this.saveNonUnifiedGroup(e),this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{tipoOfertaPreSelecionada:a.tipo,preSelecionarOfertaPrepago:a.tipo==="Link"}}),this.preencherDataLayerSelecaoGrupo(e),this.preencherDataLayerContinuarPainelTarifaMexico(e,a),this.translateService.get("lib.newGroupCar.group").pipe(w(1)).subscribe(o=>{let m=`${o.toLowerCase()} ${e.codigoLocaliza} - ${e.nome.toLowerCase()}`;this.lastBookingAttemptService.setCarGroup(e.codigoLocaliza,m)}),this.translateService.get("url.reserva.passo3").pipe(w(1)).subscribe(o=>{this.router.navigate([o])}))}preencherDataLayerAbrirPainelTarifaMexico(e){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"ab_test_mexico_step2_tariff",action:"open_tariff_panel",label:e?.codigoLocaliza})}preencherDataLayerContinuarPainelTarifaMexico(e,a){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"ab_test_mexico_step2_tariff",action:"continue_with_tariff",label:`${e?.codigoLocaliza}|${a.tipo}`})}saveNonUnifiedGroup(e){let a=this.todasOfertasTratadaEmGrupo.find(m=>e.codigoGrupoFastEquivalente===m.codigoLocaliza),o=this.todasOfertas.find(m=>e.codigoLocaliza===m.grupoVeiculo.codigoLocaliza);this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{grupoSelecionado:e,fast:e?.categoria===ee.FAST,grupoDeCarrosSelecionadoIntegracao:null,tipoRetirada:{balcao:e.categoria!==ee.FAST&&e.disponivel||e.categoria===ee.FAST&&e.codigoGrupoFastEquivalente&&o?.disponivel,fast:e.categoria===ee.FAST&&e.disponivel||a?.disponivel||!1}}})}saveUnifiedGroup(e){let a=e.tipoRetirada===ee.TODOS;this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{grupoSelecionado:e,fast:e?.categoria===ee.FAST,grupoDeCarrosSelecionadoIntegracao:null,tipoRetirada:{fast:e.tipoRetirada===ee.FAST||a,balcao:e.tipoRetirada===ee.BALCAO||a}}})}filtrarGrupos(e){if(e.tipoDeVeiculo.length>0||e.tipoDeRetiradaFast||e.bagagens){this.fitroAtivo=!0,this.limparFiltro=!1;let a=[];e.tipoDeVeiculo.forEach(o=>this.listaDeGruposPorTipo[o.value].forEach(m=>a.push(m))),this.gruposFiltrado=this.todasOfertasTratadaEmGrupo.filter(o=>e.tipoDeVeiculo.length>0?a.some(m=>m===o.codigoLocaliza):!0).filter(o=>e.tipoDeRetiradaFast?o.categoria===ee.FAST:!0).filter(o=>e.bagagens?o.capacidade.quantidadeMalasPequenas===e.bagagens.malasPequenas&&o.capacidade.quantidadeMalasGrandes===e.bagagens.malasGrandes:!0),this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"Filtro - Passo 2",action:e.tipoDeVeiculo.map(o=>o.label).join(", "),label:`${e.tipoDeRetiradaFast?"Retirada sem filas":"Com atendente no balc\xE3o"} - ${e.bagagens?e.bagagens.label:"N\xFAmero de bagagens"}`,search_results:this.gruposFiltrado.length})}else this.fitroAtivo=!1;this.configurarExibicaoGrupos()}zerarFiltro(){this.fitroAtivo=!1,this.limparFiltro=!0,this.configurarExibicaoGrupos()}abrirModalOnboardingFast(){this.dialog.open(Xi,{disableClose:!0,maxWidth:this.isDesktop?"57.6rem":"100%",maxHeight:this.isDesktop?"56.8rem":"100%",panelClass:"matDialog100Percent"})}abrirModalGrupoAgenciaProxima(e){this.dialog.open(oc,{maxWidth:this.isDesktop?"600px":"100%",maxHeight:this.isDesktop?"550px":"100%",panelClass:"matDialog100Percent",data:e})}abrirModalProximaDisponibilidade(e){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"clique",action:"CTA",label:"Pr\xF3xima disponibilidade"}),this.dialog.open(ac,{maxWidth:"382px",maxHeight:"301px",panelClass:"matDialog100Percent",data:e})}preencherDataLayerGruposExibidos(e){this.googleAnalyticsService.preencherDataLayer({event:"eec.impressionView",ehi:!1,ecommerce:{currencyCode:this.gruposExibido[0].tarifa?.moeda==="R$"?"BRL":this.gruposExibido[0].tarifa?.moeda,impressions:e.map(a=>this.gerarGrupoDoDataLayer(a))}})}preencherDataLayerSelecaoGrupo(e){this.googleAnalyticsService.preencherDataLayer({event:"eec.productClick",ehi:!1,eventCategory:"ecommerce",eventAction:"product click",ecommerce:{currencyCode:e.tarifa?.moeda==="R$"?"BRL":e.tarifa?.moeda,click:{actionField:{list:"Passo 2"},products:[X($({},this.gerarGrupoDoDataLayer(e)),{dimension42:this.fitroAtivo})]}}})}enviarEventoGAPrePaidBrasil(){if(!(this.insiderService.prePaidBrasilAActivated()||this.insiderService.prePaidBrasilBActivated()||this.insiderService.prePaidBrasilCActivated()||this.insiderService.prePaidBrasilDActivated()))return;let o=this.todasOfertas?.some(m=>m?.meioPagamento?.length>0)?this.insiderService.getPrePaidBrasilScenario():"version_refused";this.monitoringService.sendEvent({component:"reservation_pre_pay",action:"impression_flow",componentDescription:o})}preencherDataLayerDetalhesDoGrupo(e){this.googleAnalyticsService.preencherDataLayer({event:"eec.productView",ehi:!1,eventCategory:"ecommerce",eventAction:"product details",ecommerce:{currencyCode:e.tarifa?.moeda==="R$"?"BRL":e.tarifa?.moeda,detail:{products:[this.gerarGrupoDoDataLayer(e)]}}})}gerarGrupoDoDataLayer(e){return{id:e.codigoLocaliza,list:"Passo 2",name:this.getNomeCarroPadrao(e),category:`${e.codigoLocaliza} - ${e.nome}`,category2:e.categoria===ee.FAST,position:this.gruposExibido.findIndex(a=>a.codigoLocaliza===e.codigoLocaliza)+1,price:e.tarifa?.valorDiariaSemCombo}}getNomeCarroPadrao(e){let a=e.veiculos?.find(m=>m.padraoGrupo),o=e.veiculos?.length===1?"":" ou similar";if(a?.nome)return a.nome+o;if(!a&&e.veiculos?.length>0)return e.veiculos[0]+o}configurarExibicaoGrupos(){this.posicaoItemInicial=0,this.gruposExibido=[],this.quantidadeDeGrupos=this.fitroAtivo?this.gruposFiltrado.length:this.todasOfertasTratadaEmGrupo.length,this.carregarCarros()}carregarCarros(){this.posicaoItemInicial<this.quantidadeDeGrupos&&(this.numeroDeCarrosParaCarregar(),this.adicionarCarros(this.posicaoItemInicial,this.posicaoUltimoItem),this.posicaoItemInicial=this.posicaoUltimoItem)}numeroDeCarrosParaCarregar(){let e=this.quantidadeDeGrupos-this.posicaoItemInicial;e<=6?this.posicaoUltimoItem=this.posicaoItemInicial+e:this.posicaoUltimoItem=this.posicaoItemInicial+6}adicionarCarros(e,a){let o=[];for(let m=e;m<a;
2++m)this.fitroAtivo?o.push(this.gruposFiltrado[m]):this.filtroFastAtivo?o.push(this.gruposFiltradoFast[m]):o.push(this.todasOfertasTratadaEmGrupo[m]);this.gruposExibido=[...this.gruposExibido,...o],this.preencherDataLayerGruposExibidos(o)}};r.INSIDER_INITIALIZATION_TIMEOUT_MS=300,r.\u0275fac=function(a){return new(a||r)(v(re),v(fe),v(xe),v(De),v(G),v(Q),v(it),v(Js),v(Mi),v(gl),v(nc),v(_t),v(Dt),v(rc),v(Pe),v(Xn))},r.\u0275cmp=M({type:r,selectors:[["app-selecao-grupo"]],hostBindings:function(a,o){a&1&&b("resize",function(){return o.onWindowResize()},mi)},standalone:!1,decls:15,vars:11,consts:[[3,"breadCrumbs"],[1,"container"],[1,"col-12","col-md-12","col-xl-12",3,"reservaSimplificadaDados","cotacaoId"],[1,"row","barra-navegacao"],[1,"row"],[1,"col-12"],["class","subtitulo-doters",4,"ngIf"],["class","row selecao-grupo-filtro",4,"ngIf"],[4,"ngIf"],["class","row selecao-grupo-vazio",4,"ngIf"],[1,"col-12","col-md-12","col-xl-12",3,"conferirUltimaReservaEvent","reservaSimplificadaDados","cotacaoId"],[3,"step"],[1,"subtitulo-doters"],[1,"row","selecao-grupo-filtro"],[3,"filtroInserido","limparFiltroOutput","numerosDeBagagem","limparFiltro"],["color","neutral",1,"selecao-grupo__alert",3,"description","showCloseButton"],[4,"ngFor","ngForOf","ngForTrackBy"],["infinite-scroll","",3,"scrolled"],["class","col-12 col-md-6 col-xl-4 selecao-grupo-box",3,"selecao-grupo-box--selected",4,"ngFor","ngForOf"],["class","row",4,"ngIf"],[1,"col-12","col-md-6","col-xl-4","selecao-grupo-box"],[3,"chooseGroup","checkAvailability","checkNextAvailability","showInfo","group","showPrice","textButtonCta","hideSimilar"],[3,"continueSelection","closePanel","group","offer","offerBalcao","quantidadeDiarias","groupIndex"],["class","col-12 col-md-6 col-xl-4 selecao-grupo-box",4,"ngFor","ngForOf"],[3,"handleButtonCtaClick","handleButtonFastClick","handleButtonAvailabilityClick","handleShowDetailsClick","handleButtonNextAvailabilityClick","group","isMonthy","haveFast","showPercentageText","textButtonCta","hideSimilar","interAgency","hasBundles","agency","franchiseAgency"],[1,"row","selecao-grupo-vazio"],["src","assets/images/ilustracoes/nenhum-resultado-encotrado.svg","aria-hidden","true","loading","lazy",3,"alt"],[1,"selecao-grupo-vazio__texto"],[1,"selecao-grupo-vazio__cta"],[1,"selecao-grupo-vazio__btn-limpar"],[3,"click"],[1,"selecao-grupo-vazio__btn-grupos"],["theme","primary",3,"href"]],template:function(a,o){a&1&&(h(0,"app-breadcrumb",0)(1,"app-header-preview"),s(2,"section",1),B(3,Uv,1,2,"app-simplified-booking-card",2),B(4,Gv,3,1,"div",3),s(5,"div",4)(6,"div",5)(7,"h2"),p(8),c(9,"translate"),l(),C(10,jv,3,3,"p",6),l()(),C(11,qv,3,2,"div",7),B(12,Hv,5,6),C(13,Xv,3,1,"ng-container",8)(14,e1,15,14,"div",9),l()),a&2&&(d("breadCrumbs",o.breadCrumb),n(3),F(o.reservaBrasil&&!(o.dadosDaReserva!=null&&o.dadosDaReserva.alteracaoReserva)&&(o.dadosDaReserva!=null&&o.dadosDaReserva.dadosParaReservaSimplificada)?3:-1),n(),F(o.isWebview?-1:4),n(4),D(u(9,9,"grupoOferta.titulo")),n(2),d("ngIf",(o.dadosDaReserva==null||o.dadosDaReserva.parceiro==null?null:o.dadosDaReserva.parceiro.partnerIdentifier)==="DOTERS"),n(),d("ngIf",o.isBrasil&&o.reservaBrasil),n(),F(o.reservaMexico?12:-1),n(),d("ngIf",o.gruposExibido.length!==0),n(),d("ngIf",o.gruposExibido.length===0))},dependencies:[ae,N,si,Nt,vn,ec,ud,xd,J,Ga,ro,Od,hn,Id,Za,T],styles:[".header__preview-webview[_ngcontent-%COMP%]{position:sticky;z-index:998;background-color:var(--lds-color-neutral-surface-default);top:0}.header__empty-space-webview[_ngcontent-%COMP%]{height:60px}.barra-navegacao[_ngcontent-%COMP%]{margin:2.4rem auto 3.2rem}h2[_ngcontent-%COMP%]{font-size:2rem;line-height:2.4rem;text-align:center;text-transform:inherit;margin-bottom:2.4rem}@media(min-width:768px){h2[_ngcontent-%COMP%]{font-size:3.2rem;line-height:3.8rem;text-align:start}}.selecao-grupo-filtro[_ngcontent-%COMP%]{z-index:999;margin-bottom:2.4rem}.selecao-grupo-filtro_fast[_ngcontent-%COMP%]{align-items:center;display:flex;gap:.8rem;justify-content:center}@media(min-width:768px){.selecao-grupo-filtro_fast[_ngcontent-%COMP%]{justify-content:flex-start}}.selecao-grupo-filtro_fast[_ngcontent-%COMP%] ds-localiza-fast{align-items:center;display:flex;justify-content:center}.selecao-grupo-box[_ngcontent-%COMP%]{margin-bottom:3.2rem}.selecao-grupo-vazio[_ngcontent-%COMP%]{text-align:center;padding-bottom:12.8rem}.selecao-grupo-vazio[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:44.8rem;width:100%}.selecao-grupo-vazio__texto[_ngcontent-%COMP%]{font-weight:700;margin:1.6rem 0 .8rem}.selecao-grupo-vazio__cta[_ngcontent-%COMP%]{margin-bottom:3.2rem}.selecao-grupo-vazio__btn-limpar[_ngcontent-%COMP%]{margin-bottom:1.6rem}.selecao-grupo__alert[_ngcontent-%COMP%]{display:block;margin-bottom:2.5rem;--lds-components-typography-body-md-size: 1.2rem;--lds-components-typography-body-md-line-height: 160%;--lds-components-alert-padding-top: 1.4rem}.filterFast[_ngcontent-%COMP%]{-moz-transition:all .5s ease;-o-transition:all .5s ease;-webkit-transition:all .5s ease;color:#01602a;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.2rem;transition:all .5s ease}.filterFast[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#383838;font-size:1.5rem}.filterFast[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-family:LocalizaDinDisplay_Bold,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:100}.filterFast[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{border-radius:2rem;border:.1rem solid;cursor:pointer;margin-left:1rem;padding:.2rem 1.5rem 0rem .5rem}.filterFast[_ngcontent-%COMP%] em[_ngcontent-%COMP%] ds-icon{left:.8rem;position:relative}.filterFast--ativo[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{-moz-transition:all .5s ease;-o-transition:all .5s ease;-webkit-transition:all .5s ease;background-color:#01602a;border:.1rem solid #01602a;color:#fff;transition:all .5s ease}.filterFast--desativado[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{-moz-transition:all .5s ease;-o-transition:all .5s ease;-webkit-transition:all .5s ease;transition:all .5s ease}.subtitulo-doters[_ngcontent-%COMP%]{margin-top:-20px;margin-bottom:25px;font-weight:600}.selecao-grupo-box[_ngcontent-%COMP%]{transition:filter .12s ease}.selecao-grupo-box--selected[_ngcontent-%COMP%]{position:relative}.selecao-grupo-box--selected[_ngcontent-%COMP%] .car-group-card{outline:2px solid var(--lds-color-accent-primary-default);outline-offset:-2px;box-shadow:0 6px 18px #005b3424}"]});let i=r;return i})();var t1=i=>
2({"modal-booking-summary--webview":i}),Ad=(()=>{let r=class r{constructor(e,a){this.matDialogRef=e,this.data=a,this.sawTotalValue=new W,this.sawPreAuthorizationValue=new W,this.webviewService=I(Pe)}sawTotalValueEvent(){this.sawTotalValue.emit()}sawPreAuthorizationValueEvent(){this.sawPreAuthorizationValue.emit()}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(ne))},r.\u0275cmp=M({type:r,selectors:[["app-modal-booking-summary"]],outputs:{sawTotalValue:"sawTotalValue",sawPreAuthorizationValue:"sawPreAuthorizationValue"},decls:5,vars:14,consts:[[1,"modal-booking-summary",3,"ngClass"],["data-testid","booking-summary-unit-test",3,"sawTotalValue","sawPreAuthorizationValue","booking","showPreAuthorization","preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization","hasCompleteProtection","showPreAuthorizationLoggedOut","hasCombo"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"h4"),p(2),c(3,"translate"),l(),s(4,"app-booking-summary",1),b("sawTotalValue",function(){return o.sawTotalValueEvent()})("sawPreAuthorizationValue",function(){return o.sawPreAuthorizationValueEvent()}),l()()),a&2&&(d("ngClass",L(12,t1,o.webviewService.isWebView())),n(2),D(u(3,10,"bookingSummary.title")),n(2),d("booking",o.data.bookingData)("showPreAuthorization",o.data.showPreAuthorization)("preAuthorizationValue",o.data.preAuthorizationValue)("loadingPreAuthorization",o.data.loadingPreAuthorization)("errorPreAuthorization",o.data.errorPreAuthorization)("hasCompleteProtection",o.data.hasCompleteProtection)("showPreAuthorizationLoggedOut",o.data.showPreAuthorizationLoggedOut)("hasCombo",o.data.hasCombo))},dependencies:[de,se,Dn,A,T],styles:["h4[_ngcontent-%COMP%]{color:#01602a;font-size:1.8rem;line-height:2.4rem;margin:2.4rem 0 3.2rem;text-align:center}"]});let i=r;return i})();var Ed=i=>({monthly:i}),i1=i=>({monthNumber:i}),o1=i=>({"has-discount":i}),a1=i=>({discount:i});function n1(i,r){if(i&1&&(s(0,"div",27),Ee(1,28),l()),i&2){let t=r.$implicit;g();let e=ue(35);n(),d("ngTemplateOutlet",e)("ngTemplateOutletContext",L(2,Ed,t))}}function r1(i,r){if(i&1&&(s(0,"div",27),Ee(1,28),l()),i&2){let t=r.$implicit;g();let e=ue(35);n(),d("ngTemplateOutlet",e)("ngTemplateOutletContext",L(2,Ed,t))}}function s1(i,r){if(i&1&&(s(0,"div",33),h(1,"app-icon-svg",34),p(2),c(3,"translate"),l()),i&2){let t=g().monthly;n(2),f(" ",y(3,1,"components.dumbs.modalProgressiveDiscount.discountBadge",L(4,a1,t==null?null:t.percentualDesconto))," ")}}function l1(i,r){if(i&1&&(s(0,"p",29),p(1),c(2,"translate"),l(),s(3,"div",30),C(4,s1,4,6,"div",31),s(5,"p",32),p(6),c(7,"ldsCurrency"),l()()),i&2){let t=r.monthly,e=g();n(),f(" ",y(2,4,"components.dumbs.modalProgressiveDiscount.nthMonthLabel",L(10,i1,t==null?null:t.mensalidadeReferencia))," "),n(3),d("ngIf",t==null?null:t.percentualDesconto),n(),d("ngClass",L(12,o1,t==null?null:t.percentualDesconto)),n(),f(" ",y(7,7,t==null?null:t.valorMensal,e.data==null?null:e.data.currency)," ")}}var Rd=(()=>{let r=class r{constructor(){this.translateService=I(G),this.googleAnalyticsService=I(Q),this.data=I(ne),this.matDialogRef=I(Y),this.monthlyFeeDisplayed=0}ngOnInit(){this.emitGaEvent("impression",this.data.days)}get monthlyFeesIncluded(){return this.data.monthlyFeesIncluded}get monthlyFeesSuggested(){return this.data.monthlyFeesSuggested}get culture(){return this.translateService.currentLang}get selectedMonthlyFee(){return this.monthlyFeesSuggested[this.monthlyFeeDisplayed]}changeMonth(e){let a=this.monthlyFeeDisplayed+e;a<0||a>this.monthlyFeesSuggested.length-1||(this.monthlyFeeDisplayed=a,this.emitGaEvent(e===1?"add_icon_clicked":"remove_icon_clicked"))}divider(){this.emitGaEvent("dead_icon_clicked")}handleClose(e){let a=e?"yes_cta_clicked":"no_cta_clicked",o=e?this.selectedMonthlyFee?.totalDiarias:this.data.days;this.emitGaEvent(a,o),this.matDialogRef.close({returnDate:e,clickedOnOneOfTheBtns:!0})}emitGaEvent(e,a,o="progressive_discount",m="__MensuraEventos"){this.googleAnalyticsService.preencherDataLayer({event:m,category:o,action:e,label:a})}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-modal-progressive-discount"]],decls:69,vars:63,consts:[["monthlyList",""],[1,"modal-progressive-discount"],[1,"modal-progressive-discount__title"],[1,"modal-progressive-discount__subtitle"],[1,"modal-progressive-discount__incentive-box"],[1,"modal-progressive-discount__months-selector"],[1,"modal-progressive-discount__months-info"],[1,"modal-progressive-discount__text"],[1,"modal-progressive-discount__counter"],["data-testid","decrement-btn",1,"modal-progressive-discount__counter-button",3,"click","fullwidth","disabled"],["data-testid","month-value",1,"modal-progressive-discount__counter-value"],["data-testid","increment-btn",1,"modal-progressive-discount__counter-button",3,"click","disabled"],[1,"modal-progressive-discount__daily-info"],["class","modal-progressive-discount__monthly-row",4,"ngFor","ngForOf"],["data-testid","divider",1,"modal-progressive-discount__divider",3,"click"],["svgName","add-circle","width","3rem","height","3rem"],[1,"modal-progressive-discount__rental-dates"],[1,"modal-progressive-discount__date-box"],[1,"modal-progressive-discount__date-label"],[1,"modal-progressive-discount__date-box","modal-progressive-discount__date-box--return"],[1,"modal-progressive-discount__previous-date"],[1,"modal-progressive-discount__new-date"],[1,"modal-progressive-discount__cta"],[1,"modal-progressive-discount__cta-text"],[1,"modal-progressive-discount__cta-buttons"],["data-testid","confirm-btn",3,"click","fullwidth"],["theme","secondary","data-testid","close-btn",3,"click","fullwidth"],[1,"modal-progressive-discount__monthly-row"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modal-progressive-discount__monthly-label"],[1,"modal-progressive-discount__monthly-info"],["class","modal-progressive-discount__discount-badge",4,"ngIf"],[1,"modal-progressive-discount__monthly-value",3,"ngClass"],[1,"modal-progressive-discount__discount-badge"],["svgName","rosette-discount","width","1.4rem","height","1.4rem"]],template:function(a,o){if(a&1){let m=k();s(0,"app-modal",1)(1,"header")(2,"h2",2),p(3),c(4,"translate"),l(),s(5,"p",3),p(6),c(7,"translate"),l()(),s(8,"section")(9,"div",4)(10,"div",5)(11,"div",6)(12,"p",7),p(13),c(14,"translate"),l(),s(15,"div",8)(16,"ds-new-button",9),b("click",function(){return P(m),S(o.changeMonth(-1))}),p(17," - "),l(),s(18,"div",10),p(19),l(),s(20,"ds-new-button",11),b("click",function(){return P(m),S(o.changeMonth(1))}),p(21," + "),l()()(),s(22,"div",12)(23,"p"),p(24),c(25,"translate"),l(),s(26,"p"),p(27),c(28,"translate"),l()()(),h(29,"hr"),C(30,n1,2,4,"div",13),s(31,"div",14),b("click",function(){return P(m),S(o.divider())}),h(32,"app-icon-svg",15),l(),C(33,r1,2,4,"div",13)(34,l1,8,14,"ng-template",null,0,Me),l(),s(36,"div",16)(37,"div",17)(38,"p",18),p(39),c(40,"translate"),l(),s(41,"p"),p(42),c(43,"longDate"),c(44,"async"),l()(),s(45,"div",19)(46,"p",18),p(47),c(48,"translate"),l(),s(49,"p",20),p(50),c(51,"longDate"),c(52,"async"),l(),s(53,"p",21),p(54),c(55,"longDate"),c(56,"async"),l()()(),h(57,"hr"),l(),s(58,"footer",22)(59,"p",23),p(60),c(61,"translate"),l(),s(62,"div",24)(63,"ds-new-button",25),b("click",function(){return P(m),S(o.handleClose(o.selectedMonthlyFee==null?null:o.selectedMonthlyFee.dataDevolucao))}),p(64),c(65,"translate"),l(),s(66,"ds-new-button",26),b("click",function(){return P(m),S(o.handleClose())}),p(67),c(68,"translate"),l()()()()}a&2&&(n(3),f(" ",u(4,22,"components.dumbs.modalProgressiveDiscount.title")," "),n(3),f(" ",u(7,24,"components.dumbs.modalProgressiveDiscount.de
2scription")," "),n(7),f(" ",u(14,26,"components.dumbs.modalProgressiveDiscount.chooseMonthsTitle")," "),n(3),d("fullwidth",!0)("disabled",o.monthlyFeeDisplayed==0),n(3),f(" ",o.selectedMonthlyFee==null?null:o.selectedMonthlyFee.mensalidadeReferencia," "),n(),d("disabled",o.monthlyFeeDisplayed==(o.monthlyFeesSuggested==null?null:o.monthlyFeesSuggested.length)-1),n(4),f(" ",u(25,28,"components.dumbs.modalProgressiveDiscount.monthEqualsLabel")," "),n(3),q(" ",u(28,30,"components.dumbs.modalProgressiveDiscount.totalDailiesLabel")," ",o.selectedMonthlyFee==null?null:o.selectedMonthlyFee.totalDiarias," "),n(3),d("ngForOf",o.monthlyFeesIncluded),n(3),d("ngForOf",o.monthlyFeesSuggested),n(6),f(" ",u(40,32,"components.dumbs.modalProgressiveDiscount.pickupDate")," "),n(3),f(" ",u(44,39,Ma(43,34,o.data.pickupDate,"",o.culture,"short"))," "),n(5),f(" ",u(48,41,"components.dumbs.modalProgressiveDiscount.returnDate")," "),n(3),f(" ",u(52,48,Ma(51,43,o.data==null?null:o.data.previousReturnDate,"",o.culture,"short"))," "),n(4),f(" ",u(56,55,Ma(55,50,o.selectedMonthlyFee==null?null:o.selectedMonthlyFee.dataDevolucao,"",o.culture,"short"))," "),n(6),f(" ",u(61,57,"components.dumbs.modalProgressiveDiscount.titleBtns")," "),n(3),d("fullwidth",!0),n(),f(" ",u(65,59,"components.dumbs.modalProgressiveDiscount.confirmBtn")," "),n(2),d("fullwidth",!0),n(),f(" ",u(68,61,"components.dumbs.modalProgressiveDiscount.closeBtn")," "))},dependencies:[U,de,ae,N,Ci,se,oe,J,ni,A,Jt,Ne,Mn,T],styles:['.modal-progressive-discount__title[_ngcontent-%COMP%]{font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:2.4rem;line-height:140%;text-transform:none;margin:0 0 .4rem}.modal-progressive-discount__subtitle[_ngcontent-%COMP%]{font-size:1.6rem;line-height:150%}.modal-progressive-discount__incentive-box[_ngcontent-%COMP%]{border:1px solid #01602a;padding:1.6rem;border-radius:.8rem;margin-top:1.5rem}.modal-progressive-discount__months-selector[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.modal-progressive-discount__months-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.modal-progressive-discount__text[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;line-height:150%;color:#4a4a4a;max-width:135px}.modal-progressive-discount__counter[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;max-height:32px;gap:2rem;background-color:#d1f5dc;border-radius:1.2rem}.modal-progressive-discount__counter-button[_ngcontent-%COMP%] .ds-new-button{height:32px;width:32px;padding:0;border-radius:1.2rem;font-size:2.8rem}.modal-progressive-discount__counter-button[_ngcontent-%COMP%] .ds-new-button--primary:hover{background-color:#78de1f;border:none;color:#004521}.modal-progressive-discount__counter-button[_ngcontent-%COMP%] .ds-new-button--disabled:hover{background-color:#e6e6e6;color:gray}.modal-progressive-discount__counter-value[_ngcontent-%COMP%]{font-weight:700;font-size:1.6rem}.modal-progressive-discount__daily-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.modal-progressive-discount[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border:none;border-top:1px solid #808080}.modal-progressive-discount__monthly-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin:1.5rem 0 0}.modal-progressive-discount__monthly-label[_ngcontent-%COMP%]{font-weight:600;font-size:1.6rem}.modal-progressive-discount__monthly-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:1rem}.modal-progressive-discount__discount-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.5rem;background-color:#cefdaf;border-radius:1.6rem;padding:.5rem 1rem;font-size:1.4rem;font-weight:600;color:#003827;min-width:100px}.modal-progressive-discount__discount-badge[_ngcontent-%COMP%] app-icon-svg[_ngcontent-%COMP%]{height:1.4rem}.modal-progressive-discount__monthly-value[_ngcontent-%COMP%]{font-weight:600;font-size:1.6rem}.modal-progressive-discount__monthly-value.has-discount[_ngcontent-%COMP%]{color:#01602a}.modal-progressive-discount__divider[_ngcontent-%COMP%]{display:flex;align-items:center;margin:1.5rem 0}.modal-progressive-discount__divider[_ngcontent-%COMP%] app-icon-svg[_ngcontent-%COMP%]{margin:0 2rem}.modal-progressive-discount__divider[_ngcontent-%COMP%]:before, .modal-progressive-discount__divider[_ngcontent-%COMP%]:after{content:"";flex:1;height:1px;background:#e6e6e6}.modal-progressive-discount__rental-dates[_ngcontent-%COMP%]{margin:1.5rem 0;display:flex;flex-direction:row;justify-content:space-between}.modal-progressive-discount__date-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;gap:.2rem}.modal-progressive-discount__date-box--return[_ngcontent-%COMP%]{text-align:right}.modal-progressive-discount__previous-date[_ngcontent-%COMP%]{text-decoration:line-through}.modal-progressive-discount__new-date[_ngcontent-%COMP%]{color:#018444}.modal-progressive-discount__date-label[_ngcontent-%COMP%]{font-weight:700}.modal-progressive-discount__cta[_ngcontent-%COMP%]{margin-top:2.5rem;display:flex;flex-direction:column;gap:1rem}.modal-progressive-discount__cta-text[_ngcontent-%COMP%]{font-weight:600}.modal-progressive-discount__cta-buttons[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;gap:1rem}']});let i=r;return i})();function c1(i,r){if(i&1){let t=k();s(0,"a",6),c(1,"translate"),b("click",function(){P(t);let a=g();return S(a.handleEscolherOutroGrupo())}),p(2),c(3,"translate"),l()}i&2&&(d("routerLink",Re(u(1,3,"url.perguntasFrequentes.fast"))),n(2),f(" ",u(3,5,"reserva.passo2.modalFastNaoElegivel.btnEntendaRegras")," "))}var Bd=(()=>
2{let r=class r{constructor(e,a){this.matDialogRef=e,this.dialogData=a,this.isErro=!1}ngOnInit(){this.msgErro=this.dialogData?.msgErro,this.isErro=this.dialogData?.isErro}handleEscolherOutroGrupo(e=!1){this.matDialogRef.close(e)}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(ne))},r.\u0275cmp=M({type:r,selectors:[["app-modal-fast-nao-elegivel"]],standalone:!1,decls:17,vars:19,consts:[[3,"showModalCloseButton"],[1,"conteudo"],[1,"msg-erro"],[1,"escolha-outro-grupo"],[3,"click","fullwidth"],["target","_blank","rel","noopener noreferer",3,"routerLink","click",4,"ngIf"],["target","_blank","rel","noopener noreferer",3,"click","routerLink"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"div",1)(2,"h3"),p(3),c(4,"translate"),c(5,"translate"),l(),s(6,"p",2),p(7),l(),s(8,"p",3),p(9),c(10,"translate"),c(11,"translate"),l(),s(12,"ds-new-button",4),b("click",function(){return o.handleEscolherOutroGrupo(!0)}),p(13),c(14,"translate"),c(15,"translate"),l(),C(16,c1,4,7,"a",5),l()()),a&2&&(d("showModalCloseButton",!1),n(3),f(" ",o.isErro?u(4,7,"reserva.passo2.modalFastNaoElegivel.tituloErro"):u(5,9,"reserva.passo2.modalFastNaoElegivel.titulo")," "),n(4),D(o.msgErro),n(2),f(" ",o.isErro?u(10,11,"reserva.passo2.modalFastNaoElegivel.descricaoErro"):u(11,13,"reserva.passo2.modalFastNaoElegivel.escolherOutroGrupo")," "),n(3),d("fullwidth",!0),n(),f(" ",o.isErro?u(14,15,"reserva.passo2.modalFastNaoElegivel.btnEscolherGrupoErro"):u(15,17,"reserva.passo2.modalFastNaoElegivel.btnEscolherOutroGrupo")," "),n(3),d("ngIf",!o.isErro))},dependencies:[N,La,se,J,T],styles:[".conteudo[_ngcontent-%COMP%]{margin:1.6rem auto;max-width:37.6rem;text-align:center}.conteudo[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#003418;font-size:1.8rem;font-weight:400;line-height:2.2rem}.conteudo[_ngcontent-%COMP%] p.msg-erro[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.6rem;font-weight:400;line-height:2rem;margin:2.4rem 0 1.6rem}.conteudo[_ngcontent-%COMP%] p.escolha-outro-grupo[_ngcontent-%COMP%]{color:#383838;font-size:1.6rem;font-weight:700;line-height:2rem;margin-bottom:2.4rem}.conteudo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#01602a;cursor:pointer;display:block;font-size:1.6rem;font-weight:400;letter-spacing:.05em;line-height:1.9rem;margin-top:2.4rem;text-decoration-line:underline}"]});let i=r;return i})();var d1=["*"];function p1(i,r){if(i&1&&(s(0,"div",16),p(1),l()),i&2){let t=g();n(),f(" ",t.translate().recommended," ")}}function m1(i,r){if(i&1&&(V(0),p(1),c(2,"number"),z()),i&2){let t=g();n(),f(" ",y(2,1,t.offer==null||t.offer.quilometragemControlada==null?null:t.offer.quilometragemControlada.franquiaKmTotalExibicaoAM,"1.0-0")," km ")}}function u1(i,r){if(i&1&&(V(0),p(1),z()),i&2){let t=g();n(),f(" ",t.offer==null?null:t.offer.descricao," ")}}function f1(i,r){if(i&1&&(s(0,"span",17),p(1),c(2,"number"),l()),i&2){let t=g();n(),st(" ",t.translate().average," ",y(2,3,t.offer==null||t.offer.quilometragemControlada==null?null:t.offer.quilometragemControlada.franquiaKmDiariaExibicaoAM,"1.0-0")," km ",t.translate().perDay," ")}}function g1(i,r){if(i&1&&(s(0,"span",18),p(1),s(2,"del"),p(3),c(4,"ldsCurrency"),l()()),i&2){let t=g();n(),f(" ",t.translate().the," "),n(2),q(" ",y(4,3,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.valorLiquidoSemCodigoPromocional,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.moeda),"",t.translate().day," ")}}function _1(i,r){if(i&1&&(s(0,"span",18),p(1),s(2,"del"),p(3),c(4,"ldsCurrency"),l()()),i&2){let t=g();n(),f(" ",t.translate().the," "),n(2),q(" ",y(4,3,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.valorLiquidoSemCodigoPromocional,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.moeda),"",t.translate().day," ")}}function h1(i,r){if(i&1&&(s(0,"div",19)(1,"span"),p(2),l()()),i&2){let t=g();n(2),f(" ",t.translate().main_footer.description," ")}}var Fd=(()=>{let r=class r{constructor(){this.elementRef=I(xa),this.translateService=I(G),this.isSelected=!1,this.translate=Oe(this.translateService.stream("components.dumbs.offer")),this.offer={}}set selected(e){this.isSelected=e,this.updateCollapseState(e)}get recommended(){return this.offer?.melhorCustoBeneficio}get hasCoupon(){return this.offer?.tarifa?.existeDescontoPromocional}updateCollapseState(e){let{nativeElement:a}=this.elementRef;e?a.classList.remove("collapsed"):a.classList.add("collapsed")}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-offer"]],hostVars:6,hostBindings:function(a,o){a&2&&Z("recommended",o.recommended)("selected",o.isSelected)("collapsed",!o.isSelected)},inputs:{offer:"offer",selected:"selected"},ngContentSelectors:d1,decls:37,vars:33,consts:[[1,"offer__header"],["class","offer__header__recommended",4,"ngIf"],[1,"offer__header__title"],[4,"ngIf"],["class","offer__header__subtitle",4,"ngIf"],[1,"offer__header__description"],["class","coupon",4,"ngIf"],[1,"offer__header__actions"],[1,"offer__main"],[1,"offer__main__header"],[1,"offer__main__header__title"],[1,"offer__main__header__description"],[1,"offer__main__body"],[1,"offer__main__body__title"],[1,"offer__main__body__values"],["class","offer__main__footer",4,"ngIf"],[1,"offer__header__recommended"],[1,"offer__header__subtitle"],[1,"coupon"],[1,"offer__main__footer"]],template:function(a,o){a&1&&(rt(),s(0,"header",0),C(1,p1,2,1,"div",1),s(2,"div")(3,"strong",2),C(4,m1,3,4,"ng-container",3)(5,u1,2,1,"ng-container",3),l(),C(6,f1,3,6,"span",4),s(7,"div",5),C(8,g1,5,6,"span",6),s(9,"span"),p(10),c(11,"ldsCurrency"),l(
2)()(),s(12,"div",7),We(13),l()(),s(14,"main",8)(15,"div",9),C(16,_1,5,6,"span",6),s(17,"strong",10),p(18),c(19,"ldsCurrency"),l(),s(20,"p",11),p(21),c(22,"ldsCurrency"),l()(),s(23,"div",12)(24,"strong",13),p(25),l(),s(26,"div",14)(27,"span"),p(28),c(29,"ldsCurrency"),l(),s(30,"span"),p(31),c(32,"ldsCurrency"),l()(),h(33,"hr"),s(34,"span"),p(35),l()(),C(36,h1,3,1,"div",15),l()),a&2&&(n(),d("ngIf",o.offer==null?null:o.offer.melhorCustoBeneficio),n(3),d("ngIf",o.offer==null||o.offer.quilometragemControlada==null?null:o.offer.quilometragemControlada.franquiaKmTotalExibicaoAM),n(),d("ngIf",!(!(o.offer==null||o.offer.quilometragemControlada==null)&&o.offer.quilometragemControlada.franquiaKmTotalExibicaoAM)),n(),d("ngIf",o.offer==null||o.offer.quilometragemControlada==null?null:o.offer.quilometragemControlada.franquiaKmDiariaExibicaoAM),n(2),d("ngIf",o.hasCoupon),n(2),q(" ",y(11,18,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.valorDiaria,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.moeda),"",o.translate().day," "),n(6),d("ngIf",o.hasCoupon),n(2),q(" ",y(19,21,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.valorDiaria,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.moeda)," ",o.translate().perDay," "),n(3),q(" + ",y(22,24,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.valorKmExtra,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.moeda)," ",o.translate().excess," "),n(4),f(" ",o.translate().main_body.title," "),n(3),q(" ",y(29,27,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.valorDiaria,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.moeda)," x 30 ",o.translate().daily," "),n(3),f(" ",y(32,30,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.valorMensal,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.moeda)," "),n(4),D(o.translate().main_body.description),n(),d("ngIf",o.offer==null?null:o.offer.especial))},dependencies:[U,N,yt,Ne],styles:["[_nghost-%COMP%]{display:block;border-width:2px;border-style:solid;border-color:#c8c8c8;border-radius:8px;padding:1.6rem;cursor:pointer;width:100%;--open-duration: .45s;--close-duration: .2s;--open-timing: cubic-bezier(.33, 1, .68, 1);--close-timing: cubic-bezier(.33, 1, .68, 1)}@media(min-width:1200px){[_nghost-%COMP%]{width:340px}}[_nghost-%COMP%]:hover, .selected[_nghost-%COMP%]{border-color:#018444!important;transition:all .2s}.recommended[_nghost-%COMP%]{border-color:#cefdaf}.collapsed[_nghost-%COMP%]{height:fit-content}.collapsed[_nghost-%COMP%] .offer__main[_ngcontent-%COMP%]{max-height:0;margin-top:0;pointer-events:none;transform:translateY(-8px);transition:max-height var(--close-duration) var(--close-timing),margin-top .4s ease,transform .4s var(--close-timing)}.collapsed[_nghost-%COMP%] .offer__header__description[_ngcontent-%COMP%]{opacity:1;visibility:visible;transform:translateY(0);transition:opacity .3s ease,visibility .3s ease,transform .3s ease}[_nghost-%COMP%] hr[_ngcontent-%COMP%]{height:1px;background-color:#d6d6d6;color:#d6d6d6;border:none}[_nghost-%COMP%] .offer__header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;font-weight:700;position:relative}[_nghost-%COMP%] .offer__header__recommended[_ngcontent-%COMP%]{position:absolute;top:-30px;right:0;background-color:#cefdaf;color:#01602a;padding:.4rem 1rem;border-radius:8px;font-size:1.2rem;font-weight:700}[_nghost-%COMP%] .offer__header__title[_ngcontent-%COMP%]{color:#005e3b;font-size:1.7rem}[_nghost-%COMP%] .offer__header__subtitle[_ngcontent-%COMP%]{color:#6e6e6e;font-size:1.4rem;font-weight:500}[_nghost-%COMP%] .offer__header__description[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:1rem;color:#4a4a4a;font-size:1.6rem;margin-top:5px;opacity:0;visibility:hidden;transform:translateY(15px);transition:opacity .25s ease,visibility .25s ease,transform .25s ease}[_nghost-%COMP%] .offer__header__actions[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}[_nghost-%COMP%] .offer__main[_ngcontent-%COMP%]{overflow:hidden;transition:max-height var(--open-duration) var(--open-timing),margin-top .4s ease,transform .4s var(--open-timing);transform:translateY(0);will-change:max-height,margin-top,transform}[_nghost-%COMP%] .offer__main__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}[_nghost-%COMP%] .offer__main__header__title[_ngcontent-%COMP%]{color:#4a4a4a;font-size:2.1rem}[_nghost-%COMP%] .offer__main__header__description[_ngcontent-%COMP%]{color:#6e6e6e;font-size:1.3rem;font-weight:500}[_nghost-%COMP%] .offer__main__body[_ngcontent-%COMP%]{margin:16px 0 8px;background-color:#f2f2f2;padding:16px;border-radius:8px;font-size:1.2rem;font-weight:400}[_nghost-%COMP%] .offer__main__body__title[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:700}[_nghost-%COMP%] .offer__main__body__values[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-top:3px}[_nghost-%COMP%] .offer__main__footer[_ngcontent-%COMP%]{font-size:1.2rem;color:#6e6e6e;font-weight:500}[_nghost-%COMP%] .coupon[_ngcontent-%COMP%]{color:#6e6e6e;font-size:1.4rem;font-weight:400;display:block}"]});let i=r;return i})();function C1(i,r){if(i&1){let t=k();V(0),s(1,"app-offer",9),b("click",function(){let a=P(t).$implicit,o=g(2);return S(o.handleOfferClick(a))}),s(2,"mat-radio-button",10),b("change",function(){let a=P(t).$implicit,o=g(2);return S(o.handleOfferClick(a))}),l()(),z()}if(i&2){let t=r.$implicit,e=g(2);n(),d("offer",t)("selected",(t==null?null:t.ofertaId)===(e.selectedOfferId==null?null:e.selectedOfferId.value)),Ie("data-testid","offer"),n(),d("value",t==null?null:t.ofertaId),Ie("data-testid","offer-radio-"+(t==null?null:t.ofertaId))}}function b1(i,r){if(i&1&&(s(0,"div",7),C(1,C1,3,5,"ng-container",8),l()),i&2){let t=g();n(),d("ngForOf",t.specialOffers)}}function x1(i,r){i&1&&(s(0,"strong",4),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"components.smarts.offers.titleBasicOffers")," "))}function P1(i,r){if(i&1){let t=k();V(0),s(1,"app-offer",9),b("click",function(){let a=P(t).$implicit,o=g(2);return S(o.handleOfferClick(a))}),s(2,"mat-radio-button",10),b("change",function(){let a=P(t).$implicit,o=g(2);return S(o.handleOfferClick(a))}),l()(),z()}if(i&2){let t=r.$implicit,e=g(2);n(),d("offer",t)("selected",(t==null?null:t.ofertaId)===(e.selectedOfferId==null?null:e.selectedOfferId.value)),Ie("data-testid","offer"),n(),d("value",t==null?null:t.ofertaId),Ie("data-testid","offer-radio-"+(t==null?null:t.ofertaId))}}function S1(i,r){if(i&1&&(s(0,"div",11),C(1,x1,3,3,"strong",12),s(2,"div",7),C(3,P1,3,5,"ng-container",8),l()()),i&2){let t=g();Z("offers__basic--no-content",(t.specialOffers==null?null:t.specialOffers.length)===0),n(),d("ngIf",(t.specialOffers==null?null:t.specialOffers.length)>0),n(2),d("ngForOf",t.basicOffers)}}var Vd=(()=>
2{let r=class r{constructor(){this.fb=I(Xr),this.googleAnalyticsService=I(Q),this.offers=[],this.selected=new W,this.form=this.fb.group({selectedOfferId:new _e(null)})}set offerSelected(e){this.selectedOfferId.setValue(e?.ofertaId)}get specialOffers(){return this.offers?.filter(e=>e?.especial===!0)}get basicOffers(){return this.offers?.filter(e=>e?.especial===!1)}get selectedOfferId(){return this.form.controls.selectedOfferId}ngOnInit(){this.impressionEvent()}ngOnChanges(e){e.offerSelected?.currentValue&&e.offerSelected?.firstChange&&this.selected.emit(e.offerSelected.currentValue)}handleOfferClick(e){this.isInvalidSelection(e?.ofertaId)||(this.clickEvent(e),this.selectedOfferId.setValue(e?.ofertaId),this.selected.emit(e))}isInvalidSelection(e){return bs(e)||this.selectedOfferId.value===e}impressionEvent(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"offers_monthly",action:"impression"})}clickEvent(e){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"offers_monthly_selection",action:"clicked",label:e?.descricao})}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-offers"]],inputs:{offers:"offers",offerSelected:"offerSelected"},outputs:{selected:"selected"},features:[nt],decls:13,vars:12,consts:[[1,"offers__title"],[1,"offers__description"],[3,"formGroup"],["formControlName","selectedOfferId"],[1,"offers__subtitle"],["class","offers__list",4,"ngIf"],["class","offers__basic",3,"offers__basic--no-content",4,"ngIf"],[1,"offers__list"],[4,"ngFor","ngForOf"],[3,"click","offer","selected"],[3,"change","value"],[1,"offers__basic"],["class","offers__subtitle",4,"ngIf"]],template:function(a,o){a&1&&(s(0,"h2",0),p(1),c(2,"translate"),l(),s(3,"p",1),p(4),c(5,"translate"),l(),s(6,"form",2)(7,"mat-radio-group",3)(8,"strong",4),p(9),c(10,"translate"),l(),C(11,b1,2,1,"div",5)(12,S1,4,4,"div",6),l()()),a&2&&(n(),f(" ",u(2,6,"components.smarts.offers.title"),` 3`),n(3),f(" ",u(5,8,"components.smarts.offers.description"),` 4`),n(2),d("formGroup",o.form),n(3),f(" ",u(10,10,"components.smarts.offers.titleSpecialOffers")," "),n(2),d("ngIf",(o.specialOffers==null?null:o.specialOffers.length)>0),n(),d("ngIf",o.basicOffers.length>0))},dependencies:[Fd,Wo,an,nn,U,ae,N,be,ct,Ce,lt,dt,Mt,A,T],styles:["[_nghost-%COMP%]{display:block;padding:1.6rem}@media(min-width:1200px){[_nghost-%COMP%]{padding:0}}[_nghost-%COMP%] .offers__title[_ngcontent-%COMP%]{color:#01602a;font-size:2.4rem;text-transform:math-auto}[_nghost-%COMP%] .offers__subtitle[_ngcontent-%COMP%]{display:block;color:#01602a;font-weight:700;margin-top:1.6rem;font-size:1.6rem}[_nghost-%COMP%] .offers__description[_ngcontent-%COMP%]{font-size:1.6rem;margin:.5rem 0 1.8rem}[_nghost-%COMP%] .offers__list[_ngcontent-%COMP%]{padding-top:1.5rem;display:flex;flex-wrap:wrap;gap:1.8rem 1rem}[_nghost-%COMP%] .offers__basic[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-top:1px solid #919191;margin-top:1.6rem;padding-top:1.6rem}[_nghost-%COMP%] .offers__basic--no-content[_ngcontent-%COMP%]{margin:0;padding:0;border:none}"]});let i=r;return i})();var zd=(()=>{let r=class r{constructor(e){this.matDialogRef=e,this.data=I(ne),this.translateService=I(G),this.translate=Oe(this.translateService.stream("components.smarts.dotersInvalidQuantityPointsModal",{}))}onConfirm(){this.matDialogRef.close()}onCancel(){this.matDialogRef.close()}};r.\u0275fac=function(a){return new(a||r)(v(Y))},r.\u0275cmp=M({type:r,selectors:[["app-doters-invalid-quantity-points-modal"]],decls:10,vars:3,consts:[[1,"doters-memberid-validated-modal"],["slot","body",1,"doters-memberid-validated-modal__body"],["width","150px","src","assets/images/parceiros/doters_logo.svg","alt","Doters"],[1,"doters-memberid-validated-modal__title"],[1,"doters-memberid-validated-modal__subtitle"],["slot","footer"],["theme","primary","fullwidth","true",3,"click"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"div",1),h(2,"img",2),s(3,"h2",3),p(4),l(),s(5,"h3",4),p(6),l()(),s(7,"div",5)(8,"ds-new-button",6),b("click",function(){return o.onConfirm()}),p(9),l()()()),a&2&&(n(4),f(" ",o.translate().title," "),n(2),f(" ",o.translate().subtitle," "),n(3),f(" ",o.translate().back," "))},dependencies:[U,Te,be,ze,ai,ti,xi,Le,oe,J,se],styles:[".doters-memberid-validated-modal[_ngcontent-%COMP%]{background:#fff;min-width:400px;max-width:500px;position:relative;overflow:hidden}
4.doters-memberid-validated-modal[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{font-family:LocalizaDinDisplay,OpenSans,Helvetica Neue,Helvetica,Arial,sans-serif!important;text-align:center}.doters-memberid-validated-modal__body[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-around;align-items:center}.doters-memberid-validated-modal__title[_ngcontent-%COMP%]{font-size:23px;line-height:32px;color:#000;margin:16px 0 0;text-transform:none!important}.doters-memberid-validated-modal__subtitle[_ngcontent-%COMP%]{font-size:14px;line-height:20px;font-weight:400;color:#6e6e6e;margin:18px 0}"]});let i=r;return i})();var M1=i=>({minutes:i}),D1=(i,r)=>({minutes:i,seconds:r}),er=(()=>{let r=class r{constructor(e,a){this.dialogRef=e,this.changeDetectorRef=a,this.minutes=0,this.seconds=0,this.momentItStarted=null,this.maxMinutes=10,this.initialTime=this.maxMinutes*60,this.onDestroy$=new Ze}ngOnInit(){this.startTimer()}startTimer(){this.momentItStarted=Date.now(),this.updateDisplayTime(this.initialTime),Ca(1e3).pipe(Se(this.onDestroy$)).subscribe(()=>{if(!this.momentItStarted)return;let e=Math.floor((Date.now()-this.momentItStarted)/1e3),a=this.initialTime-e;if(a>0){this.updateDisplayTime(a);return}this.updateDisplayTime(),this.momentItStarted=null,this.onDestroy$.next(),this.close(!0)})}updateDisplayTime(e=0){let a=Math.floor(e/60),o=e%60;this.minutes=a,this.seconds=o,this.changeDetectorRef.detectChanges()}close(e=!1){this.dialogRef.close(e)}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(Xe))},r.\u0275cmp=M({type:r,selectors:[["app-doters-otp-many-attempts-modal"]],decls:15,vars:27,consts:[[1,"doters-opt-many-attempts-modal",3,"showModalCloseButton"],[1,"doters-opt-many-attempts-modal__title"],[1,"doters-opt-many-attempts-modal__description"],[1,"doters-opt-many-attempts-modal__timer"],[1,"doters-opt-many-attempts-modal__button",3,"click","fullWidth"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"h3",1),p(2),c(3,"translate"),l(),s(4,"p",2),p(5),c(6,"translate"),l(),s(7,"p",3),p(8),c(9,"number"),c(10,"number"),c(11,"translate"),l(),s(12,"app-button",4),b("click",function(){return o.close()}),p(13),c(14,"translate"),l()()),a&2&&(d("showModalCloseButton",!0),n(2),f(" ",u(3,6,"components.smarts.dotersOptManyAttemptsModal.title")," "),n(3),f(" ",y(6,8,"components.smarts.dotersOptManyAttemptsModal.description",L(22,M1,o.maxMinutes))," "),n(3),f(" ",y(11,17,"components.smarts.dotersOptManyAttemptsModal.timer",Ue(24,D1,y(9,11,o.minutes,"2.0-0"),y(10,14,o.seconds,"2.0-0")))," "),n(4),d("fullWidth",!0),n(),f(" ",u(14,20,"components.smarts.dotersOptManyAttemptsModal.button")," "))},dependencies:[U,A,se,Gt,yt,T],styles:[".doters-opt-many-attempts-modal__title[_ngcontent-%COMP%]{margin-top:1.6rem;font-weight:700}.doters-opt-many-attempts-modal__description[_ngcontent-%COMP%]{font-weight:400}.doters-opt-many-attempts-modal__title[_ngcontent-%COMP%], .doters-opt-many-attempts-modal__description[_ngcontent-%COMP%]{margin-bottom:.8rem;color:#000;font-family:var(--lds-font-functional-family);font-size:1.6rem;line-height:150%;text-align:center}.doters-opt-many-attempts-modal__timer[_ngcontent-%COMP%]{margin-bottom:3.2rem;color:var(--lds-color-neutral-text-low);font-family:var(--lds-font-functional-family);font-size:var(--lds-typography-body-xs-size);font-weight:700;text-align:center;line-height:160%}.doters-opt-many-attempts-modal__button[_ngcontent-%COMP%]{--lds-components-button-border-radius: .5rem;text-transform:uppercase}"],changeDetection:0});let i=r;return i})();var la=(()=>{let r=class r extends Ya{constructor(e){super(e),this.httpClient=e}enviarOTP(e){return this.post([uo.PartnerDoters.rota,uo.PartnerDoters.enviarOTP,e],{cotacaoId:e,partnerData:{sendEmail:!0,sendSMS:!1,returnOtp:!1,operation:"Redemption",maxRedemptionPoints:1}})}validarOTP(e,a){try{return this.post([uo.PartnerDoters.rota,uo.PartnerDoters.validarOTP],{cotacaoId:e,codigoOtp:a})}catch(o){throw new Error(`${o}`)}}converterPontos(e,a,o,m){try{let _={cotacaoId:a,ofertaId:o};return m&&m.length>0&&(_.itensParaConversao=m),this.post([uo.PartnerDoters.rota,uo.PartnerDoters.converter,e,"?identitificadorParceiro=DOTERS"],_)}catch{}}};r.\u0275fac=function(a){return new(a||r)(ye(Do))},r.\u0275prov=$e({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();var tr=(()=>
4{let r=class r{constructor(e){this.matDialogRef=e,this.fb=I(za),this.data=I(ne),this.moeda="MX$",this.form=this.fb.group({memberId:["",[j.required]]}),this.translateService=I(G),this.translate=Oe(this.translateService.stream("components.smarts.dotersMemberIdModal",{}))}onConfirm(){this.matDialogRef.close({memberId:this.form.controls.memberId.value})}onCancel(){this.matDialogRef.close()}};r.\u0275fac=function(a){return new(a||r)(v(Y))},r.\u0275cmp=M({type:r,selectors:[["app-doters-memberid-modal"]],inputs:{moeda:"moeda"},decls:15,vars:4,consts:[[1,"modal-doters-memberid"],["slot","header"],[1,"modal-doters-memberid__title"],[1,"modal-doters-memberid__logo"],["src","assets/images/parceiros/doters_logo.svg","alt","Doters Badge",1,"modal-doters-memberid__logo-image"],["slot","body"],[1,"mca__form",3,"formGroup"],["matInput","","maxlength","45","formControlName","memberId"],["slot","footer"],["theme","primary","fullwidth","true",3,"click"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"div",1)(2,"h2",2),p(3),l()(),s(4,"div",3),h(5,"img",4),l(),s(6,"div",5)(7,"form",6)(8,"mat-form-field")(9,"mat-label"),p(10),l(),h(11,"input",7),l()()(),s(12,"div",8)(13,"ds-new-button",9),b("click",function(){return o.onConfirm()}),p(14),l()()()),a&2&&(n(3),D(o.translate().title),n(4),d("formGroup",o.form),n(3),D(o.translate().inputLabel),n(4),f(" ",o.translate().confirm," "))},dependencies:[U,Te,ct,ei,Ce,lt,To,be,dt,Mt,ze,ai,ti,Fo,Bo,Ro,xi,Le,oe,J,se],styles:['.modal-doters-memberid[_ngcontent-%COMP%]{background:#fff;min-width:400px;max-width:500px;position:relative;overflow:hidden}.modal-doters-memberid__title[_ngcontent-%COMP%]{font-size:24px;font-weight:600;color:#212529;margin:0 0 16px;line-height:1.3;text-transform:none!important}.modal-doters-memberid__logo[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:20px}.modal-doters-memberid__logo-image[_ngcontent-%COMP%]{height:48px;width:auto}.modal-doters-memberid__label[_ngcontent-%COMP%]{display:block;font-size:16px;font-weight:500;color:#212529;margin-bottom:8px}.modal-doters-memberid__label[_ngcontent-%COMP%]:after{content:"*";color:#dc3545;margin-left:4px}.modal-doters-memberid__input[_ngcontent-%COMP%]{width:100%;padding:12px 16px;border:2px solid #dee2e6;border-radius:8px;font-size:16px;color:#212529;background-color:#fff;transition:border-color .2s ease,box-shadow .2s ease;box-sizing:border-box}.modal-doters-memberid__input[_ngcontent-%COMP%]:focus{outline:none;border-color:#28a745;box-shadow:0 0 0 3px #28a7451a}.modal-doters-memberid__input[_ngcontent-%COMP%]::placeholder{color:#6c757d;font-style:italic}.modal-doters-memberid__input[_ngcontent-%COMP%]:hover:not(:focus){border-color:#adb5bd}.modal-doters-memberid__footer[_ngcontent-%COMP%]{padding:0 24px 24px}.modal-doters-memberid[_ngcontent-%COMP%] ds-new-button .ds-button{height:48px;font-size:16px;font-weight:600;border-radius:8px;text-transform:none;letter-spacing:0}.modal-doters-memberid[_ngcontent-%COMP%] ds-new-button .ds-button[data-theme=primary]{background-color:#28a745;border-color:#28a745}.modal-doters-memberid[_ngcontent-%COMP%] ds-new-button .ds-button[data-theme=primary]:hover:not(:disabled){background-color:#218838;border-color:#1e7e34}.modal-doters-memberid[_ngcontent-%COMP%] ds-new-button .ds-button[data-theme=primary]:disabled{background-color:#6c757d;border-color:#6c757d;opacity:.6}@media(max-width:480px){.modal[_ngcontent-%COMP%]{min-width:320px;max-width:95vw;margin:16px}.modal__header[_ngcontent-%COMP%]{padding:20px 20px 24px}.modal__title[_ngcontent-%COMP%]{font-size:20px}.modal__body[_ngcontent-%COMP%]{padding:24px 20px}.modal__footer[_ngcontent-%COMP%]{padding:0 20px 20px}}']});let i=r;return i})();var Ld=(()=>{let r=class r{constructor(e,a,o){this.dialogRef=e,this.dialog=a,this.data=o}getMemberId(){return this.data?.parceiro?.data?.memberId||""}handleCancel(){this.dialogRef.close()}handleChangeMemberId(){this.dialog.open(tr,{width:"400px",maxWidth:"90vw",disableClose:!0,panelClass:"popup-memberid-modal"})}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(re),v(ne))},r.\u0275cmp=M({type:r,selectors:[["app-doters-otp-error-modal"]],decls:21,vars:16,consts:[[1,"doters-otp-error-modal"],[1,"doters-otp-error-modal__content"],["src","assets/images/parceiros/doters_logo.svg","alt","Doters",1,"doters-otp-error-modal__logo"],[1,"doters-otp-error-modal__title"],[1,"doters-otp-error-modal__member"],[1,"doters-otp-error-modal__member-id"],[1,"doters-otp-error-modal__desc"],["theme","primary","fullwidth","true",3,"click"],["type","button",1,"btnChangeMember",3,"click"]],template:function(a,o){a&1&&(s(0,"div",0)(1,"div",1),h(2,"img",2),s(3,"h2",3),p(4),c(5,"translate"),l(),s(6,"p",4),p(7),c(8,"translate"),s(9,"span",5),p(10),l()(),s(11,"p",6),p(12),c(13,"translate"),l(),s(14,"ds-new-button",7),b("click",function(){return o.handleCancel()}),V(15),p(16),c(17,"translate"),z(),l(),s(18,"button",8),b("click",function(){return o.handleChangeMemberId()}),p(19),c(20,"translate"),l()()()),a&2&&(n(4),f(" ",u(5,6,"dotersErrorMessages.title")," "),n(3),f(" ",u(8,8,"dotersErrorMessages.socioDoters"),": "),n(3),D(o.getMemberId()),n(2),f(" ",u(13,10,"dotersErrorMessages.message")," "),n(4),f(" ",u(17,12,"dotersErrorMessages.btnError")," "),n(3),f(" ",u(2
40,14,"dotersErrorMessages.btnChangeDoter")," "))},dependencies:[oe,J,zt,A,T],styles:[".doters-otp-error-modal[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:100%}.doters-otp-error-modal__content[_ngcontent-%COMP%]{background:#fff;border-radius:12px;box-shadow:0 2px 24px #00000014;padding:40px 32px 32px;max-width:420px;width:100%;text-align:center}.doters-otp-error-modal__logo[_ngcontent-%COMP%]{width:120px;margin-bottom:24px}.doters-otp-error-modal__title[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:600;margin-bottom:12px;color:#222;line-height:1.2;text-transform:none}.doters-otp-error-modal__member[_ngcontent-%COMP%]{color:#018444;font-size:1.7rem;font-weight:500;margin-bottom:18px}.doters-otp-error-modal__desc[_ngcontent-%COMP%]{color:#888;font-size:15px;margin-bottom:32px;line-height:1.4}.doters-otp-error-modal__continue[_ngcontent-%COMP%]{background:#78de1f;color:#222;border:none;border-radius:8px;font-size:1.1rem;font-weight:700;padding:18px 0;width:100%;margin-bottom:24px;cursor:pointer;transition:background .2s}.doters-otp-error-modal__continue[_ngcontent-%COMP%]:hover{background:#6ad11a}.doters-otp-error-modal__change[_ngcontent-%COMP%]{color:#38b449;font-size:1rem;text-decoration:underline;cursor:pointer;display:inline-block}.btnChangeMember[_ngcontent-%COMP%]{background:none;border:none;color:#01602a;font-family:Localiza DIN Display,sans-serif;font-weight:400;font-size:14px;letter-spacing:.5px;line-height:normal;text-decoration:underline;text-decoration-skip-ink:none;text-decoration-style:solid;text-underline-position:from-font;cursor:pointer;padding:0;margin:26px 0 0;text-align:center;width:328px}"]});let i=r;return i})();var w1=["otpInput"];function O1(i,r){if(i&1&&(s(0,"p",23),p(1),s(2,"span"),p(3),l()()),i&2){let t=g();n(),f(" ",t.translate().memberDoter," "),n(2),f(" ",t.getMemberId()," ")}}function k1(i,r){if(i&1){let t=k();s(0,"input",24,0),b("input",function(a){let o=P(t).index,m=g();return S(m.onInput(a,o))})("keydown",function(a){let o=P(t).index,m=g();return S(m.keydown(a,o))}),l()}if(i&2){let t=r.$implicit;d("formControl",t)}}function I1(i,r){if(i&1&&(s(0,"div",25)(1,"p"),p(2),l()()),i&2){let t=g();n(2),D(t.translateCountDown())}}function T1(i,r){if(i&1&&(V(0),p(1),z()),i&2){let t=g();n(),D(t.translate().confirm)}}function A1(i,r){i&1&&(V(0),h(1,"mat-spinner"),z())}function E1(i,r){if(i&1&&(s(0,"p",28),p(1),l()),i&2){let t=r.$implicit;n(),f(" ",t," ")}}function R1(i,r){if(i&1&&(s(0,"div",26),C(1,E1,2,1,"p",27),l()),i&2){let t=g();n(),d("ngForOf",t.mensagensErro)}}function B1(i,r){if(i&1&&(s(0,"p",29),p(1),l()),i&2){let t=g();n(),f(" ",t.translate().doesnotReceiveCode," ")}}function F1(i,r){if(i&1){let t=k();s(0,"button",30),b("click",function(){P(t);let a=g();return S(a.handleResendCode())}),p(1),l()}if(i&2){let t=g();d("disabled",t.countdownReenvio>0),n(),f(" ",t.translate().resend," ")}}function V1(i,r){if(i&1){let t=k();s(0,"button",31),b("click",function(){P(t);let a=g();return S(a.handleChangeMemberId())}),p(1),l()}if(i&2){let t=g();n(),f(" ",t.translate().changeMemberId," ")}}var ir=(()=>{let r=class r{constructor(e,a,o,m){this.matDialogRef=e,this.dialog=a,this.data=o,this.parceiroRedencionService=m,this.confirmarCodigo=new W,this.cancelar=new W,this.reenviarCodigo=new W,this.alterarNumero=new W,this.translateService=I(G),this.translate=Oe(this.translateService.stream("components.smarts.dotersOTPValidatorModal")),this.statusDown=!1,this.focusedInput=0,this.botaoConfirmarStatus=!0,this.countdownReenvio=60,this.loadingConfirmar=!1,this.mensagensErro=[],this.inputs=Array.from({length:6},(_,x)=>""),this.otpEnviado=!1,this.modelReserva=!1,this.attempts=0,this.otpLength=6,this.otpControls=[],this.modelReserva=o?.modelReserva||!1}ngOnInit(){this.mountForm(),this.startCounter(),this.sendOTPCode()}ngOnDestroy(){this.subscriptionFormularioStatus?.unsubscribe()}sendOTPCode(){this.parceiroRedencionService.enviarOTP(this.data.cotacaoId).subscribe({next:e=>{this.otpEnviado=!0},error:e=>{e?.status===400&&this.matDialogRef.close({manyAttempts:!0})}})}validateOTPCode(){this.data?.cotacaoId&&this.montarCodigoOtp().length===6&&this.parceiroRedencionService.validarOTP(this.data.cotacaoId,this.montarCodigoOtp()).subscribe({next:e=>{this.attempts=0,this.matDialogRef.close(X($({},e),{otpValidado:!0,memberId:this.data.parceiro.data.memberId}))},error:e=>{this.otpForm.reset(),this.mensagensErro=[this.translateService.instant("components.smarts.dotersOTPValidatorModal.invalidCodeError")],this.loadingConfirmar=!1,this.attempts++,this.attempts>=3&&(this.matDialogRef.close(),this.dialog.open(Ld,{width:"400px",maxWidth:"90vw",disableClose:!0,panelClass:"popup-otp-error-modal",data:this.data}))}})}translateCountDown(){return this.translateService.instant("components.smarts.dotersOTPValidatorModal.countdown",{countdownReenvio:this.countdownReenvio})}mountForm(){this.otpControls=Array.from({length:this.otpLength},()=>new _e("",[j.required,j.pattern("[0-9]")])),this.otpForm=new ko(this.otpControls.reduce((e,a,o)=>(e[`digit${o}`]=a,e),{})),this.subscriptionFormularioStatus=this.otpForm.statusChanges.pipe(ba(e=>this.otpForm.valid)).subscribe(()=>this.enableConfirmButton())}enableConfirmButton(){this.botaoConfirmarStatus=!this.otpForm.valid}startCounter(){this.mensagensErro=[];let e=setInterval(()=>{this.countdownReenvio--,this.countdownReenvio<=0&&(this.countdownReenvio=0,clearInterval(e))},1e3)}handleInputKeyDown(e,a){this.statusDown||(this.statusDown=!0)}getFormControlNames(){return Array.from({length:6},(e,a)=>`codigo${a}`)}onInput(e,a){let o=e.target,m=o.value;if(e.inputType==="deleteContentBackward"){let x=o.previousElementSibling;x&&x.focus()}let _=m.replace(/\D/g,"");if(_.length>1){let x=_.split("");for(let R=0;R<x.length&&a+R<this.otpLength;R++)this.otpControls[a+R].setValue(x[R]);let O=Math.min(a+x.length,this.otpLength-1);this.focusInput(O)}else this.otpControls[a].setValue(_),_&&a<this.otpLength-1&&this.focusInput(a+1)}focusInput(e){this.otpInputs.get(e)?.nativeElement.focus()}keydown(e){let a=e.target,o=a.value;if(e.key==="Backspace"&&o===""){let m=a.previousElementSibling;m&&m.focus()}}onSubmit(){if(this.mensagensErro=[],this.otpForm.valid){let e=this.montarCodigoOtp();if(this.loadingConfirmar=!0,this.data.modelReserva){this.matDialogRef.close({codigoOtp:e,success:!0,memberId:this.data.parceiro.data.memberId});return}this.validateOTPCode()}}handleCancel(){this.cancelar.emit(),this.matDialogRef.close({success:!1})}handleResendCode(){this.countdownReenvio===0&&(this.otpForm.reset(),this.countdownReenvio=60,this.startCounter(),this.sendOTPCode(),setTimeout(()=>{this.focusFirstInput()},100))}montarCodigoOtp(){return Object.values(this.otpForm.value).join("")}focusFirstInput(){let e=document.getElementById("codigo0");e&&e.focus()}handleChangeMemberId(){this.dialog.open(tr,{width:"400px",maxWidth:"90vw",disableClose:!0,panelClass:"popup-memberid-modal"}).afterClosed().subscribe(a=>{a?.memberId&&(this.data.parceiro.data.memberId=a.memberId)})}getMemberId(){return this.data?.parceiro?.data?.memberId||""}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(re),v(ne),v(la))},r.\u0275cmp=M({type:r,selectors:[["app-doters-otp-validator-modal"]],viewQuery:function(a,o){if(a&1&&kt(w1,5),a&2){let m;et(m=tt())&&(o.otpInputs=m)}},outputs:{confirmarCodigo:"confirmarCodigo",cancelar:"cancelar",reenviarCodigo:"reenviarCodigo",alterarNumero:"alterarNumero"},decls:27,vars:16,consts:[["otpInput",""],[1,"popup-validacao-otp"],[1,"popup-validacao-otp__content"],["type","button","aria-label","Fechar",1,"popup-validacao-otp__close",3,"click"],[1,"popup-validacao-otp__header"],[1,"popup-validacao-otp__logo"],["src","assets/images/parceiros/doters_logo.svg","alt","Doters"],[1,"popup-validacao-otp__title"],["class","popup-validacao-otp__memberid",4,"ngIf"],[1,"popup-validacao-otp__subtitle"],[1,"popup-validacao-otp__form"],[3,"ngSubmit","formGroup"],[1,"popup-validacao-otp__inputs"],["type","text","maxlength","6","class","popup-validacao-otp__input",3,"formControl","input","keydown",4,"ngFor","ngForOf"],["class","popup-validacao-otp__countdown",4,"ngIf"],[1,"popup-validacao-otp__actions"],["theme","primary",3,"click","fullwidth","disabled"],[4,"ngIf"],["class","popup-validacao-otp__errors",4,"ngIf"],[1,"popup-validacao-otp__footer"],["class","popup-validacao-otp__footer-text",4,"ngIf"],["type","button","class","popup-validacao-otp__link",3,"disabled","click",4,"ngIf"],["type","button","class","popup-validacao-otp__link",3,"click",4,"ngIf"],[1,"popup-validacao-otp__memberid"],["type","text","maxlength","6",1,"popup-validacao-otp__input",3,"input","keydown","formControl"],[1,"popup-validacao-otp__countdown"],[1,"popup-validacao-otp__errors"],["class","popup-validacao-otp__error",4,"ngFor","ngForOf"],[1,"popup-validacao-otp__error"],[1,"popup-validacao-otp__footer-text"],["type","button",1,"popup-validacao-otp__link",3,"click","disabled"],["type","button",1,"popup-validacao-otp__link",3,"click"]],template:function(a,o){a&1&&(s(0,"div",1)(1,"div",2)(2,"button",3),b("click",function(){return o.handleCancel()}),p(3," \xD7 "),l(),s(4,"div",4)(5,"div",5),h(6,"img",6),l(),s(7,"div",7)(8,"h2"),p(9),l(),C(10,O1,4,2,"p",8),s(11,"p",9),p(12),l()()(),s(13,"div",10)(14,"form",11),b("ngSubmit",function(){return o.onSubmit()}),s(15,"div",12),C(16,k1,2,1,"input",13),l(),C(17,I1,3,1,"div",14),s(18,"div",15)(19,"ds-new-button",16),b("click",function(){return o.onSubmit()}),C(20,T1,2,1,"ng-container",17)(21,A1,2,0,"ng-container",17),l()(),C(22,R1,2,1,"div",18),l()(),s(23,"div",19),C(24,B1,2,1,"p",20)(25,F1,2,2,"button",21)(26,V1,2,1,"button",22),l()()()),a&2&&(n(9),D(o.translate().title),n(),d("ngIf",o.getMemberId().length>0),n(2),f(" ",o.translate().subtitle," "),n(2),d("formGroup",o.otpForm),n(2),d("ngForOf",o.otpControls),n(),d("ngIf",o.countdownReenvio>0),n(2),Z("loading",o.loadingConfirmar),d("fullwidth",!0)("disabled",o.botaoConfirmarStatus||o.loadingConfirmar||!o.otpForm.valid),n(),d("ngIf",!o.loadingConfirmar),n(),d("ngIf",o.loadingConfirmar),n(),d("ngIf",(o.mensagensErro==null?null:o.mensagensErro.length)>0),n(2),d("ngIf",o.countdownReenvio<1),n(),d("ngIf",o.countdownReenvio<1),n(),d("ngIf",!o.modelReserva))},dependencies:[U,ae,N,be,ct,ei,Ce,lt,To,bi,dt,ze,ai,ti,xi,mt,pt,A,oe,J,zt],styles:[".popup-validacao-otp[_ngcontent-%COMP%]{background:#fff;padding:30px 2rem;max-width:400px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:32px}.popup-validacao-otp__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:32px;align-items:center}.popup-validacao-otp__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;align-items:center;text-align:center}.popup-validacao-otp__logo[_ngcontent-%COMP%]{height:37px;width:112px}.popup-validacao-otp__logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}.popup-validacao-otp__title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;align-items:center}.popup-validacao-otp__title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-transform:none;font-family:Localiza DIN Display,sans-serif;font-weight:700;font-size:24px;line-height:32px;color:#000;margin:0;text-align:center;white-space:pre-line}.popup-validacao-otp__memberid[_ngcontent-%COMP%]{font-family:Localiza DIN Display,sans-serif;font-weight:400;font-size:16px;line-height:22px;color:#018444;margin:0;text-align:center}.popup-validacao-otp__memberid[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.popup-validacao-otp__subtitle[_ngcontent-%COMP%]{font-family:Localiza DIN Display,sans-serif;font-weight:400;font-size:14px;line-height:20px;color:#6e6e6e;letter-spacing:.5px;text-align:center;margin:0;width:100%}.popup-validacao-otp__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;align-items:center;width:100%}.popup-validacao-otp__form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;align-items:center;width:100%;max-width:33rem}.popup-validacao-otp__inputs[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:space-between;width:100%;max-width:33rem;margin-bottom:4px}.popup-validacao-otp__input[_ngcontent-%COMP%]{width:48px;height:48px;border:1px solid #808080;border-radius:12px;background:#fff;text-align:center;font-family:Inter,sans-serif;font-weight:700;font-size:16px;line-height:24px;color:#4a4a4a;outline:none}.popup-validacao-otp__input[_ngcontent-%COMP%]:focus{border-color:#01602a;box-shadow:0 0 0 2px #01602a1a}.popup-validacao-otp__input[_ngcontent-%COMP%]:invalid{border-color:#ea4343}.popup-validacao-otp__input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .popup-validacao-otp__input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.popup-validacao-otp__input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.popup-validacao-otp__countdown[_ngcontent-%COMP%]{align-self:flex-end;width:100%;max-width:33rem;text-align:right}.popup-validacao-otp__countdown[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:Localiza DIN Display,sans-serif;font-weight:400;font-size:14px;line-height:20px;color:#6e6e6e;letter-spacing:.5px;margin:0}.popup-validacao-otp__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;width:100%;margin-top:28px}.popup-validacao-otp__btn[_ngcontent-%COMP%]{width:100%;height:40px;border-radius:5px;border:none;padding:10px;font-family:Localiza DIN Display,sans-serif;font-weight:400;font-size:14px;line-height:18px;text-transform:uppercase;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.popup-validacao-otp__btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.popup-validacao-otp__btn--primary[_ngcontent-%COMP%]{background:#78de1f;color:#004521}.popup-validacao-otp__btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#6cc81c}.popup-validacao-otp__btn--primary[_ngcontent-%COMP%]:focus{outline:2px solid #01602a;outline-offset:2px}.popup-validacao-otp__btn--primary.loading[_ngcontent-%COMP%]{opacity:.8}.popup-validacao-otp__btn--secondary[_ngcontent-%COMP%]{background:#fff;color:#01602a;border:1px solid #01602a}.popup-validacao-otp__btn--secondary[_ngcontent-%COMP%]:hover:not(:disabled){background:#01602a0d}.popup-validacao-otp__btn--secondary[_ngcontent-%COMP%]:focus{outline:2px solid #01602a;outline-offset:2px}.popup-validacao-otp__errors[_ngcontent-%COMP%]{margin-top:8px;width:100%}.popup-validacao-otp__error[_ngcontent-%COMP%]{color:#c61616;font-family:Localiza DIN Display,sans-serif;font-size:12px;font-weight:500;line-height:12px;margin:3px 0 0}.popup-validacao-otp__footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;align-items:flex-start;width:100%;text-align:center;font-family:Localiza DIN Display,sans-serif;font-weight:400;font-size:14px;letter-spacing:.5px}.popup-validacao-otp__footer-text[_ngcontent-%COMP%]{color:#6e6e6e;margin:0;line-height:20px;width:100%;min-width:max-content}.popup-validacao-otp__link[_ngcontent-%COMP%]{background:none;border:none;color:#01602a;font-family:Localiza DIN Display,sans-serif;font-weight:400;font-size:14px;letter-spacing:.5px;line-height:normal;text-decoration:underline;text-decoration-skip-ink:none;text-decoration-style:solid;text-underline-position:from-font;cursor:pointer;padding:0;margin:0;text-align:center;width:100%}.popup-validacao-otp__link[_ngcontent-%COMP%]:hover:not(:disabled){color:#002e14}.popup-validacao-otp__link[_ngcontent-%COMP%]:disabled{color:#6e6e6e;text-decoration:none;cursor:not-allowed}.popup-validacao-otp__link[_ngcontent-%COMP%]:focus{outline:2px solid #01602a;outline-offset:2px}.popup-validacao-otp[_ngcontent-%COMP%] .popup-validacao-otp__content[_ngcontent-%COMP%]{position:relative}.popup-validacao-otp[_ngcontent-%COMP%] .popup-validacao-otp__close[_ngcontent-%COMP%]{position:absolute;top:-14px;right:-14px;background:transparent;border:none;font-size:4rem;color:#888;cursor:pointer;z-index:2;line-height:1;transition:color .2s}@media(max-width:600px){.popup-validacao-otp[_ngcontent-%COMP%] .popup-validacao-otp__close[_ngcontent-%COMP%]{right:0}}.popup-validacao-otp[_ngcontent-%COMP%] .popup-validacao-otp__close[_ngcontent-%COMP%]:hover{color:#222}.popup-validacao-otp[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{margin:10px 0}@media screen and (max-width:410px){.popup-validacao-otp__inputs[_ngcont
4ent-%COMP%]{gap:.2rem}.popup-validacao-otp__input[_ngcontent-%COMP%]{width:4.4rem;height:4.4rem}}@media screen and (max-width:360px){.popup-validacao-otp__input[_ngcontent-%COMP%]{width:4rem;height:4rem}}@media(min-width:576px){.popup-validacao-otp[_ngcontent-%COMP%]{padding:30px 10px;max-width:360px}.popup-validacao-otp__subtitle[_ngcontent-%COMP%], .popup-validacao-otp__countdown[_ngcontent-%COMP%], .popup-validacao-otp__link[_ngcontent-%COMP%]{width:100%}}"]});let i=r;return i})();var z1=(i,r,t)=>({"doters-points__option--selected":i,"doters-points__option--unselected":r,"doters-points__option--disabled":t}),Nd=i=>({"doters-points__radio--selected":i}),L1=(i,r)=>({"doters-points__option--selected":i,"doters-points__option--unselected":r}),N1=(i,r)=>({userName:i,availablePoints:r});function U1(i,r){if(i&1&&(s(0,"h1",15),p(1),c(2,"ldsCurrency"),c(3,"translate"),l()),i&2){let t=g();n(),f(" ",y(3,4,"components.smarts.dotersPointUseSelector.title",Ue(7,N1,t.dadosDaReserva.parceiro==null||t.dadosDaReserva.parceiro.partnerUser==null?null:t.dadosDaReserva.parceiro.partnerUser.name,y(2,1,t.dadosDaReserva.parceiro==null||t.dadosDaReserva.parceiro.partnerUser==null?null:t.dadosDaReserva.parceiro.partnerUser.balance,"DOTERS")))," ")}}function G1(i,r){if(i&1){let t=k();s(0,"div",16)(1,"span",17),p(2,"\u26A0\uFE0F"),l(),s(3,"p",18),p(4),s(5,"a",19),b("click",function(){P(t);let a=g();return S(a.abrirModalValidacaoOtp())}),p(6),l(),p(7,". "),l()()}if(i&2){let t=g();n(4),f(" ",t.translate().acumulationMessage," "),n(2),D(t.translate().acumulationMessageLink)}}function j1(i,r){i&1&&h(0,"div",20)}function q1(i,r){i&1&&h(0,"div",21)}var Ud=(()=>{let r=class r{constructor(e){this.dialog=e,this.selectionChange=new W,this.translateService=I(G),this.translate=Oe(this.translateService.stream("components.smarts.dotersPointUseSelector")),this.selectedOption="earn",this.canUsePoints=!1}ngOnInit(){this.checkCanUsePoints(),this.canUsePoints?this.selectOption("use"):(this.selectOption("earn"),this.dadosDaReserva?.parceiro?.partnerUser&&this.insufficientPointsAlert()),this.abrirModalValidacaoOtp()}checkCanUsePoints(){this.canUsePoints=(this.dadosDaReserva?.parceiro?.partnerUser?.balance||0)>100}selectOption(e){!this.canUsePoints&&e==="use"||(this.selectedOption=e,this.selectionChange.emit(e))}insufficientPointsAlert(){this.dialog.open(zd,{width:"400px",maxWidth:"90vw",disableClose:!1,panelClass:"popup-memberid-modal"})}abrirModalValidacaoOtp(){this.dialog.open(ir,{width:"400px",maxWidth:"90vw",disableClose:!0,panelClass:"popup-validacao-otp-dialog",data:{cotacaoId:this.dadosDaReserva.idCotacao,parceiro:this.dadosDaReserva.parceiro}}).afterClosed().subscribe(a=>{if(a?.manyAttempts){this.openModalManyAttempts();return}a?.success&&this.dadosDaReserva.parceiro&&(this.dadosDaReserva.parceiro.partnerUser=a.userData,this.dadosDaReserva.parceiro.data.memberId=a.memberId||"",this.dadosDaReserva.parceiro.otpValidado=a.otpValidado||!1),this.checkCanUsePoints(),this.canUsePoints&&this.selectOption("use")})}openModalManyAttempts(){this.dialog.open(er,{width:"400px"}).afterClosed().subscribe(a=>{a&&this.abrirModalValidacaoOtp()})}};r.\u0275fac=function(a){return new(a||r)(v(re))},r.\u0275cmp=M({type:r,selectors:[["app-doters-point-use-selector"]],inputs:{dadosDaReserva:"dadosDaReserva"},outputs:{selectionChange:"selectionChange"},decls:28,vars:25,consts:[[1,"modal"],["class","modal__title",4,"ngIf"],["class","alert-box alert-box--warning",4,"ngIf"],[1,"doters-points"],[1,"doters-points__option",3,"click","ngClass"],[1,"doters-points__radio",3,"ngClass"],["class","doters-points__radio-dot doters-points__radio-dot--use",4,"ngIf"],[1,"doters-points__content"],[1,"doters-points__title","doters-points__title--use"],[1,"doters-points__title"],[1,"doters-points__description"],[1,"doters-points__badge"],["src","assets/images/parceiros/doters_logo.svg","alt","Doters Badge",1,"doters-points__badge-image"],["class","doters-points__radio-dot doters-points__radio-dot--earn",4,"ngIf"],[1,"doters-points__title","doters-points__title--earn"],[1,"modal__title"],[1,"alert-box","alert-box--warning"],["aria-hidden","true",1,"alert-box__icon"],[1,"alert-box__text"],[3,"click"],[1,"doters-points__radio-dot","doters-points__radio-dot--use"],[1,"doters-points__radio-dot","doters-points__radio-dot--earn"]],template:function(a,o){a&1&&(s(0,"div",0),C(1,U1,4,10,"h1",1)(2,G1,8,2,"div",2),s(3,"div",3)(4,"div",4),b("click",function(){return o.selectOption("use")}),s(5,"div",5),C(6,j1,1,0,"div",6),l(),s(7,"div",7)(8,"span",8),p(9),l(),s(10,"span",9),p(11),l(),s(12,"div",10),p(13),l()(),s(14,"div",11),h(15,"img",12),l()(),s(16,"div",4),b("click",function(){return o.selectOption("earn")}),s(17,"div",5),C(18,q1,1,0,"div",13),l(),s(19,"div",7)(20,"span",14),p(21),l(),s(22,"span",9),p(23),l(),s(24,"div",10),p(25),l()(),s(26,"div",11),h(27,"img",12),l()()()()),a&2&&(n(),d("ngIf",o.dadosDaReserva.parceiro==null?null:o.dadosDaReserva.parceiro.partnerUser),n(),d("ngIf",!(o.dadosDaReserva.parceiro!=null&&o.dadosDaReserva.parceiro.partnerUser)),n(2),d("ngClass",Kt(14,z1,o.selectedOption==="use",o.selectedOption!=="use",!o.canUsePoints)),n(),d("ngClass",L(18,Nd,o.selectedOption==="use")),n(),d("ngIf",o.selectedOption==="use"),n(3),f("",o.translate().queimarPontos.colorido," "),n(2),f(" ",o.translate().queimarPontos.negrito),n(2),f(" ",o.translate().queimarPontos.normal," "),n(3),d("ngClass",Ue(20,L1,o.selectedOption==="earn",o.selectedOption!=="earn")),n(),d("ngClass",L(23,Nd,o.selectedOption==="earn")),n(),d("ngIf",o.selectedOption==="earn"),n(3),f("",o.translate().ganharPontos.colorido," "),n(2),f(" ",o.translate().ganharPontos.negrito," "),n(2),f(" ",o.translate().ganharPontos.normal," "))},dependencies:[U,de,N,A,ze,T,Ne],styles:[".modal[_ngcontent-%COMP%] .doters-points[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:2rem}.modal__title[_ngcontent-%COMP%]{font-size:1.8rem;font-weight:400;padding-bottom:10px;color:#01602a;text-transform:none}.modal[_ngcontent-%COMP%] .doters-points__option[_ngcontent-%COMP%]{flex:1;min-width:min(100%,316px);display:flex;align-items:center;gap:.75rem;padding:2rem;border:2px solid #e5e7eb;border-radius:1rem;cursor:pointer;transition:all .3s ease;background-color:#fff}.modal[_ngcontent-%COMP%] .doters-points__option--selected[_ngcontent-%COMP%]{border-color:#01602a;background-color:#f0fdf4}.modal[_ngcontent-%COMP%] .doters-points__option--disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.6}.modal[_ngcontent-%COMP%] .doters-points__option--unselected[_ngcontent-%COMP%]:hover{border-color:#d1d5db}.modal[_ngcontent-%COMP%] .doters-points__radio[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;border:2px solid #d1d5db;border-radius:50%;display:flex;align-items:center;justify-content:center}.modal[_ngcontent-%COMP%] .doters-points__radio--selected[_ngcontent-%COMP%]{border-color:#004521}.modal[_ngcontent-%COMP%] .doters-points__radio-dot[_ngcontent-%COMP%]{width:.75rem;height:.75rem;border-radius:50%;background-color:#54b026}.modal[_ngcontent-%COMP%] .doters-points__content[_ngcontent-%COMP%]{flex:1;font-size:1.5rem}.modal[_ngcontent-%COMP%] .doters-points__title[_ngcontent-%COMP%]{font-weight:700;color:#1f2937}.modal[_ngcontent-%COMP%] .doters-points__title--use[_ngcontent-%COMP%]{color:#f97316}.modal[_ngcontent-%COMP%] .doters-points__title--earn[_ngcontent-%COMP%]{color:#3b82f6}.modal[_ngcontent-%COMP%] .doters-points__description[_ngcontent-%COMP%]{color:#4b5563}.modal[_ngcontent-%COMP%] .doters-points__badge[_ngcontent-%COMP%]{width:94px}
4.modal[_ngcontent-%COMP%] .doters-points__badge-dot[_ngcontent-%COMP%]{width:.75rem;height:.75rem;background-color:#22c55e;border-radius:50%}.modal[_ngcontent-%COMP%] .doters-points__badge-text[_ngcontent-%COMP%]{color:#1f2937}.modal[_ngcontent-%COMP%] .alert-box[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding:16px 20px;border-radius:8px;font-family:Arial,sans-serif;font-size:14px;max-width:900px;margin-top:16px;margin-bottom:16px}.modal[_ngcontent-%COMP%] .alert-box--warning[_ngcontent-%COMP%]{background-color:#fdf3d3;color:#795d00}.modal[_ngcontent-%COMP%] .alert-box__icon[_ngcontent-%COMP%]{margin-right:12px;font-size:20px;line-height:1.2}.modal[_ngcontent-%COMP%] .alert-box__text[_ngcontent-%COMP%]{margin:0}.modal[_ngcontent-%COMP%] .alert-box__text[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#795d00;cursor:pointer}.modal[_ngcontent-%COMP%] .alert-box__link[_ngcontent-%COMP%]{color:#4a3c00;text-decoration:underline;font-weight:500}.modal[_ngcontent-%COMP%] .alert-box__link[_ngcontent-%COMP%]:hover{text-decoration:none}@media screen and (max-width:991px){.modal[_ngcontent-%COMP%]{padding:0 1.5rem}.modal__title[_ngcontent-%COMP%]{padding-bottom:0}}"]});let i=r;return i})();var $1=i=>({"grupo-escolhido--aberto":i}),W1=i=>({container:i});function K1(i,r){i&1&&h(0,"i-feather",10)}function Z1(i,r){if(i&1&&h(0,"app-car-group-card",8),i&2){let t=g();d("group",t.grupoEscolhido)("showPrice",!1)("showButton",!1)("showCarMessage",!0)}}function Y1(i,r){if(i&1){let t=k();s(0,"app-box-group-car",11),b("handleButtonFastClick",function(){P(t);let a=g();return S(a.abrirModalOnboardingFast())}),l()}if(i&2){let t=g();d("group",t.grupoEscolhido)("showPrice",!1)("showButtonCta",!1)("alignHeight",!1)("interAgency",t.displayGroupNameAsFeatured)}}var Gd=(()=>{let r=class r{constructor(e,a){this.dialog=e,this.breakpointService=a,this.displayGroupNameAsFeatured=!0,this.codigoPaisAgenciaRetirada=It(),this.isMexico=Ri(()=>this.codigoPaisAgenciaRetirada()==="0052")}ngOnInit(){this.subscriptionBreakpoint=this.breakpointService.isDesktop.subscribe(e=>this.isDesktop=e),this.subscriptionBreakpoint=this.breakpointService.isTablet.subscribe(e=>{this.isTablet=e,this.boxGrupoSelecionadoAberto=e})}ngOnDestroy(){this.subscriptionBreakpoint?.unsubscribe()}AbrirOuFecharBoxGrupoSelecionado(){this.isTablet||(this.boxGrupoSelecionadoAberto=!this.boxGrupoSelecionadoAberto)}abrirModalOnboardingFast(){this.dialog.open(Xi,{disableClose:!0,maxWidth:this.isDesktop?"57.6rem":"100%",maxHeight:this.isDesktop?"56.8rem":"100%",panelClass:"matDialog100Percent"})}};r.\u0275fac=function(a){return new(a||r)(v(re),v(De))},r.\u0275cmp=M({type:r,selectors:[["app-grupo-escolhido"]],inputs:{grupoEscolhido:"grupoEscolhido",displayGroupNameAsFeatured:"displayGroupNameAsFeatured",codigoPaisAgenciaRetirada:[1,"codigoPaisAgenciaRetirada"]},standalone:!1,decls:12,vars:13,consts:[[1,"grupo-escolhido",3,"ngClass"],[3,"ngClass"],[1,"grupo-escolhido-header",3,"click"],[1,"grupo-escolhido-header-titulo"],[1,"grupo-escolhido-header-titulo__icone-flip",3,"icon","size"],[1,"grupo-escolhido-header-titulo__texto"],["name","chevron-down","class","grupo-escolhido-header__icone",4,"ngIf"],[1,"grupo-escolhido-conteudo"],[3,"group","showPrice","showButton","showCarMessage"],[3,"group","showPrice","showButtonCta","alignHeight","interAgency"],["name","chevron-down",1,"grupo-escolhido-header__icone"],[3,"handleButtonFastClick","group","showPrice","showButtonCta","alignHeight","interAgency"]],template:function(a,o){a&1&&(s(0,"section",0)(1,"div",1)(2,"header",2),b("click",function(){return o.AbrirOuFecharBoxGrupoSelecionado()}),s(3,"div",3),h(4,"loc-icon",4),s(5,"p",5),p(6),c(7,"translate"),l()(),C(8,K1,1,0,"i-feather",6),l(),s(9,"div",7),B(10,Z1,1,4,"app-car-group-card",8)(11,Y1,1,5,"app-box-group-car",9),l()()()),a&2&&(d("ngClass",L(9,$1,o.boxGrupoSelecionadoAberto)),n(),d("ngClass",L(11,W1,!o.isTablet)),n(3),d("icon","car_ico")("size","lg"),n(2),f(" ",u(7,7,"reserva.passo3.grupoEscolhido.titulo")," "),n(2),d("ngIf",!o.isTablet),n(2),F(o.isMexico()?10:11))},dependencies:[de,N,vn,Bt,Ho,hn,T],styles:[".grupo-escolhido[_ngcontent-%COMP%]{background-color:#f2f2f2;margin-bottom:2.4rem}@media(min-width:992px){.grupo-escolhido[_ngcontent-%COMP%]{background-color:transparent}}.grupo-escolhido--aberto[_ngcontent-%COMP%] .grupo-escolhido-conteudo[_ngcontent-%COMP%]{display:block}.grupo-escolhido--aberto[_ngcontent-%COMP%] .grupo-escolhido-header__icone[_ngcontent-%COMP%]{transform:rotate(180deg)}.grupo-escolhido-header[_ngcontent-%COMP%]{align-items:center;color:#01602a;display:flex;justify-content:space-between;padding:1.6rem 0}@media(min-width:992px){.grupo-escolhido-header[_ngcontent-%COMP%]{padding-top:0}}.grupo-escolhido-header-titulo[_ngcontent-%COMP%]{align-items:center;display:flex;gap:.8rem}.grupo-escolhido-header-titulo__icone[_ngcontent-%COMP%]{height:2.4rem;width:2.4rem}.grupo-escolhido-header-titulo__icone-flip[_ngcontent-%COMP%]{transform:scale
4X(-1)}.grupo-escolhido-header-titulo__texto[_ngcontent-%COMP%]{font-size:1.6rem;line-height:2.4rem}.grupo-escolhido-header__icone[_ngcontent-%COMP%]{transition:.4s}@media(min-width:992px){.grupo-escolhido-header__icone[_ngcontent-%COMP%]{display:none}}.grupo-escolhido-conteudo[_ngcontent-%COMP%]{animation-duration:.4s;animation-name:_ngcontent-%COMP%_example;display:none;padding-bottom:1.6rem;transform-origin:top}@media(min-width:992px){.grupo-escolhido-conteudo[_ngcontent-%COMP%]{padding-bottom:0}}@keyframes _ngcontent-%COMP%_example{0%{transform:scaleY(0)}to{transform:scaleY(1)}}"]});let i=r;return i})();function X1(i,r){if(i&1&&(s(0,"p",16),p(1),l()),i&2){let t=r.$implicit;n(),f(" ",t," ")}}function J1(i,r){i&1&&(s(0,"div",6)(1,"p",11),p(2),c(3,"translate"),l(),s(4,"div",12),C(5,X1,2,1,"p",13),c(6,"translate"),s(7,"p",14)(8,"a",15),c(9,"translate"),p(10),c(11,"translate"),l()()()()),i&2&&(n(2),D(u(3,5,"components.modalTarifas.tituloAlquiler")),n(3),d("ngForOf",u(6,7,"components.modalTarifas.itensAlquiler")),n(3),d("href",Re(u(9,9,"components.modalTarifas.itensAlquilerLink")),bt),n(2),D(u(11,11,"components.modalTarifas.itensAlquilerTextLink")))}function eC(i,r){if(i&1&&(s(0,"p",16),p(1),l()),i&2){let t=r.$implicit;n(),f(" ",t," ")}}function tC(i,r){i&1&&(s(0,"div",7)(1,"p",17),p(2),c(3,"translate"),l(),s(4,"div",18),C(5,eC,2,1,"p",13),c(6,"translate"),l()()),i&2&&(n(2),f(" ",u(3,2,"components.modalTarifas.tituloPagoEnAgencia")," "),n(3),d("ngForOf",u(6,4,"components.modalTarifas.itensPagoEnAgencia")))}function iC(i,r){if(i&1&&(s(0,"p",16),p(1),l()),i&2){let t=r.$implicit;n(),f(" ",t," ")}}function oC(i,r){i&1&&(s(0,"div",8)(1,"p",11),p(2),c(3,"translate"),l(),s(4,"div",19),C(5,iC,2,1,"p",13),c(6,"translate"),s(7,"p",14)(8,"a",15),c(9,"translate"),p(10),c(11,"translate"),l()()()()),i&2&&(n(2),D(u(3,5,"components.modalTarifas.tituloPagoEnLinea")),n(3),d("ngForOf",u(6,7,"components.modalTarifas.itensPagoEnLinea")),n(3),d("href",Re(u(9,9,"components.modalTarifas.itensPagoEnLineaLink")),bt),n(2),D(u(11,11,"components.modalTarifas.itensPagoEnLineaTextLink")))}var jd=(()=>{let r=class r{constructor(e,a){this.dialogRef=e,this.data=a,this.codigosTarifa=[],this.descontoPromocional=!1}ngOnInit(){this.codigosTarifa=this.data.map(e=>e.codigoTarifa),this.descontoPromocional=this.data.some(e=>e.existeDescontoPromocional)}get exibeTarifaAlquiler(){return this.codigosTarifa.includes("012396")}get exibeTarifaAgencia(){return this.codigosTarifa.includes("016697")||this.codigosTarifa.includes("016699")||this.codigosTarifa.includes("016696")}get exibeTarifaEnLinea(){return this.exibeTarifaAgencia&&this.descontoPromocional&&this.data.length>1}get quantidadeTarifasExibidas(){return[this.exibeTarifaAlquiler,this.exibeTarifaAgencia,this.exibeTarifaEnLinea].filter(Boolean).length}closeModal(){this.dialogRef.close()}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(ne))},r.\u0275cmp=M({type:r,selectors:[["app-modal-tarifas"]],decls:16,vars:16,consts:[[1,"modal-tarifas-container"],[1,"modal-tarifas-container__title-icon"],[1,"modal-tarifas-container__title"],[1,"last-booking-attempt__close",3,"click"],[1,"modal-tarifas-container__container-scroll"],[1,"modal-tarifas"],[1,"modal-tarifas__container-alquiler"],[1,"modal-tarifas__container-agencia"],[1,"modal-tarifas__container-en-linea"],[1,"modal-tarifas-container__container-button"],["color","secondary",3,"click","fullWidth"],[1,"modal-tarifas__title"],[1,"modal-tarifas__itens-alquiler"],["class","modal-tarifas__itens-text",4,"ngFor","ngForOf"],[1,"modal-tarifas__itens-text-link"],["target","_blank","rel","noopener noreferrer",3,"href"],[1,"modal-tarifas__itens-text"],[1,"modal-tarifas__container-agencia-title"],[1,"modal-tarifas__itens-agencia"],[1,"modal-tarifas__itens-en-linea"]],template:function(a,o){a&1&&(s(0,"div",0)(1,"div",1)(2,"p",2),p(3),c(4,"translate"),l(),s(5,"a",3),b("click",function(){return o.closeModal()}),h(6,"lds-icon-close"),l()(),s(7,"div",4)(8,"div",5),B(9,J1,12,13,"div",6),B(10,tC,7,6,"div",7),B(11,oC,12,13,"div",8),l(),s(12,"div",9)(13,"a
4pp-button",10),b("click",function(){return o.closeModal()}),p(14),c(15,"translate"),l()()()()),a&2&&(n(3),D(u(4,12,"components.modalTarifas.titulo")),n(5),Z("modal-tarifas--1-column",o.quantidadeTarifasExibidas===1)("modal-tarifas--2-columns",o.quantidadeTarifasExibidas===2)("modal-tarifas--3-columns",o.quantidadeTarifasExibidas===3),n(),F(o.exibeTarifaAlquiler?9:-1),n(),F(o.exibeTarifaAgencia?10:-1),n(),F(o.exibeTarifaEnLinea?11:-1),n(2),d("fullWidth",!0),n(),f(" ",u(15,14,"components.modalTarifas.btnContinue")," "))},dependencies:[Le,oe,A,U,ae,Gt,Ke,T],styles:[".modal-tarifas-container[_ngcontent-%COMP%]{padding:31px 15px 40px;display:flex;flex-direction:column}.modal-tarifas-container__container-scroll[_ngcontent-%COMP%]{overflow:visible}.modal-tarifas-container__title-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-tarifas-container__title-icon[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;color:gray}.modal-tarifas-container__title[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family);font-weight:700;color:#262626;font-size:24px;flex-shrink:0}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas[_ngcontent-%COMP%]{display:flex;width:100%}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--1-column[_ngcontent-%COMP%] > [class*=__container-][_ngcontent-%COMP%]{flex:1 1 100%;max-width:100%}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--1-column[_ngcontent-%COMP%] > .modal-tarifas__container-agencia[_ngcontent-%COMP%]{border-left:none;border-right:none;margin-left:0;margin-right:0;padding-left:0}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--1-column[_ngcontent-%COMP%] .modal-tarifas__container-agencia-title[_ngcontent-%COMP%]{margin-left:0}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--1-column[_ngcontent-%COMP%] .modal-tarifas__itens-agencia[_ngcontent-%COMP%]{margin-left:4px}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--2-columns[_ngcontent-%COMP%] > .modal-tarifas__container-agencia[_ngcontent-%COMP%]:first-child{border-left:none;margin-left:0}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--2-columns[_ngcontent-%COMP%] > [class*=__container-][_ngcontent-%COMP%]{flex:1 1 50%;max-width:50%}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--2-columns[_ngcontent-%COMP%] > [class*=__container-][_ngcontent-%COMP%]:last-child{border-right:none}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--2-columns[_ngcontent-%COMP%] > .modal-tarifas__container-agencia[_ngcontent-%COMP%]:last-child{margin-right:0}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--3-columns[_ngcontent-%COMP%] > [class*=__container-][_ngcontent-%COMP%]{flex:1 1 33.333%;max-width:33.333%}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__container-alquiler[_ngcontent-%COMP%]{padding:0}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__itens-alquiler[_ngcontent-%COMP%]{margin-left:4px}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__title[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family);text-decoration:underline;font-weight:600;color:#4a4a4a;font-size:16px;margin-bottom:20px}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__itens-text[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family);font-weight:400;color:#4a4a4a;font-size:14px;margin-bottom:6px}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__container-agencia[_ngcontent-%COMP%]{border-right:2px solid #018444;border-left:2px solid #018444;margin-left:10px;margin-right:10px;padding:0 14px 0 0}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__container-agencia-title[_ngcontent-%COMP%]{margin-left:20px;font-family:var(--lds-font-functional-family);text-decoration:underline;font-weight:600;color:#4a4a4a;font-size:16px;margin-bottom:20px}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__itens-agencia[_ngcontent-%COMP%]{margin-left:24px}
4.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__itens-en-linea[_ngcontent-%COMP%]{margin-left:2px}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__itens-text-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family);color:#1e852d;font-weight:700;font-size:14px}.modal-tarifas-container__container-button[_ngcontent-%COMP%]{margin-top:50px}@media(max-width:768px){.modal-tarifas-container[_ngcontent-%COMP%]{padding:16px 16px 20px}.modal-tarifas-container__title[_ngcontent-%COMP%]{width:321px;margin-left:10px}.modal-tarifas-container__container-scroll[_ngcontent-%COMP%]{overflow-y:auto;max-height:calc(100dvh - 120px);min-height:0;padding-right:4px;-webkit-overflow-scrolling:touch}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas[_ngcontent-%COMP%]{display:block}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--1-column[_ngcontent-%COMP%] > [class*=__container-][_ngcontent-%COMP%], .modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--2-columns[_ngcontent-%COMP%] >
4 [class*=__container-][_ngcontent-%COMP%], .modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas--3-columns[_ngcontent-%COMP%] > [class*=__container-][_ngcontent-%COMP%]{flex:none;max-width:100%}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__itens-alquiler[_ngcontent-%COMP%], .modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__itens-agencia[_ngcontent-%COMP%], .modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__itens-en-linea[_ngcontent-%COMP%]{margin-left:12px;margin-bottom:17px}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__container-agencia[_ngcontent-%COMP%]{margin:0 0 17px;border-left:none;border-right:none}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__container-agencia-title[_ngcontent-%COMP%]{margin-top:5px;margin-left:0}.modal-tarifas-container[_ngcontent-%COMP%] .modal-tarifas__container-en-linea[_ngcontent-%COMP%]{padding:0}}"]});let i=r;return i})();var qt=(function(i){return i.PAGA_EN_LINEA="Descuento por pago anticipado",i.PRE_PAGO="Tarifa pr\xE9-pago",i.PREPAID="PREPAID!",i.PAGAR_EN_MOSTRADOR="PAGAR EN MOSTRADOR",i})(qt||{});var aC=i=>({"new-offer--active":i}),nC=i=>({width:i}),rC=i=>({percentualTaxaServico:i});function sC(i,r){i&1&&(V(0),p(1),c(2,"translate"),z()),i&2&&(n(),f(" ",u(2,1,"tarifaLigera.titulo")," "))}function lC(i,r){if(i&1&&(V(0),p(1),z()),i&2){let t=g(2);n(),f(" ",t.offer==null?null:t.offer.descricao," ")}}function cC(i,r){if(i&1&&(p(0),c(1,"translateText"),c(2,"async")),i&2){let t=g(2);f(" ",u(2,4,y(1,1,t.getButtonText(),t.getButtonText()))," ")}}function dC(i,r){if(i&1&&C(0,lC,2,1,"ng-container",10)(1,cC,3,6,"ng-template",null,3,Me),i&2){let t=ue(2),e=g();d("ngIf",e.isTarifaMensal())("ngIfElse",t)}}function pC(i,r){i&1&&(s(0,"p"),p(1),c(2,"translateText"),c(3,"async"),l()),i&2&&(n(),f(" ",u(3,4,y(2,1,"lib.newOffer.couponApplied","Cupom"))," "))}function mC(i,r){if(i&1&&(s(0,"div",32)(1,"p",33),p(2),c(3,"preco"),l(),s(4,"div",34),C(5,pC,4,6,"p",27),p(6),l()()),i&2){let t=g();n(2),q(" ",t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.moeda," ",y(3,4,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.valorLiquidoSemCodigoPromocional,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.moeda)," "),n(3),d("ngIf",!t.isOnlinePayment()),n(),f(" -",t.getDiscountPercentage(),"% ")}}function uC(i,r){i&1&&(V(0),p(1),c(2,"translate"),z()),i&2&&(n(),f(" ",u(2,1,"tarifaLigera.subtitulo")," "))}function fC(i,r){i&1&&(p(0),c(1,"translateText"),c(2,"async")),i&2&&f(" ",u(2,4,y(1,1,"lib.newOffer.standardPrice","Pre\xE7o padr\xE3o"))," ")}function gC(i,r){if(i&1&&(s(0,"div",32),C(1,uC,3,3,"ng-container",10)(2,fC,3,6,"ng-template",null,4,Me),l()),i&2){let t=ue(3),e=g();n(),d("ngIf",e.offer==null?null:e.offer.kmControlado)("ngIfElse",t)}}function _C(i,r){i&1&&(s(0,"div",32),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"lib.newOffer.precioConDescuento")," "))}function hC(i,r){i&1&&h(0,"img",35)}function vC(i,r){if(i&1&&(s(0,"p",36),p(1),c(2,"translateText"),c(3,"async"),c(4,"number"),c(5,"translateText"),c(6,"async"),l()),i&2){let t=g();n(),st(" ",u(3,6,y(2,3,"lib.newOffer.loyalty.or","ou"))," ",y(4,8,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.pontuacaoResgate,"1.0-0")," ",u(6,14,y(5,11,"lib.newOffer.loyalty.points","pontos"))," ")}}function CC(i,r){if(i&1&&(s(0,"p",37),p(1),c(2,"translateText"),c(3,"async"),l()),i&2){let t=g();n(),f(" ",u(3,5,mo(2,1,"lib.newOffer.rentFee","*Prote\xE7\xF5es e taxa de aluguel (12%) n\xE3o inclusas neste valor.",L(7,rC,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.percentualTaxaServico)))," ")}}function bC(i,r){i&1&&(s(0,"div",41),h(1,"img",42)(2,"img",43),l())}function xC(i,r){if(i&1&&(s(0,"div",38)(1,"p",39),p(2),c(3,"translateText"),c(4,"async"),c(5,"preco"),c(6,"translateText"),c(7,"async"),l(),C(8,bC,3,0,"div",40),l()),i&2){let t=g();n(2),fi(" ",u(4,8,y(3,5,"lib.newOffer.savings","Economize"))," ",t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.moeda," ",y(5,10,t.getSavingsAmount(),t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.moeda),"/",u(7,16,y(6,
413,"lib.newOffer.perDay","dia"))," "),n(6),d("ngIf",t.isOnlinePayment())}}function PC(i,r){i&1&&h(0,"div",44)}function SC(i,r){if(i&1&&(s(0,"div",44),C(1,PC,1,0,"div",24),l()),i&2){let t=g();n(),d("ngIf",!(!(t.offer==null||t.offer.tarifa==null)&&t.offer.tarifa.existeDescontoPromocional)&&!(t.offer!=null&&t.offer.kmControlado))}}function yC(i,r){if(i&1){let t=k();s(0,"a",48),b("click",function(a){return P(t),g(2).abrirDetalhes(),a.preventDefault(),S(a.stopPropagation())}),p(1),c(2,"translate"),l()}i&2&&(n(),f(" ",u(2,1,"offerDetailsPopup.btnDetalhes")," "))}function MC(i,r){if(i&1&&(s(0,"section",45)(1,"p",46),p(2),c(3,"translate"),l(),s(4,"p",46),p(5),c(6,"translate"),l(),s(7,"p",46),p(8),c(9,"translate"),C(10,yC,3,3,"a",47),l()()),i&2){let t=g();n(2),D(u(3,4,"tarifaLigera.itens.item1")),n(3),D(u(6,6,"tarifaLigera.itens.item2")),n(3),f(" ",u(9,8,"tarifaLigera.itens.item3")," "),n(2),d("ngIf",!t.isTarifaMensal())}}function DC(i,r){if(i&1&&Ee(0,50),i&2){g(2);let t=ue(41);d("ngTemplateOutlet",t)}}function wC(i,r){if(i&1&&Ee(0,50),i&2){g(2);let t=ue(43);d("ngTemplateOutlet",t)}}function OC(i,r){if(i&1&&(s(0,"section"),C(1,DC,1,1,"ng-container",49)(2,wC,1,1,"ng-container",49),l()),i&2){let t=g();n(),d("ngIf",!t.isArgentina),n(),d("ngIf",t.isArgentina)}}function kC(i,r){i&1&&(s(0,"span",51),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"lib.newOffer.noSavings")," "))}function IC(i,r){i&1&&(s(0,"span",51),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"lib.newOffer.conAhorro")," "))}function TC(i,r){i&1&&h(0,"div",44)}function AC(i,r){if(i&1&&(s(0,"li"),p(1),l()),i&2){let t=r.$implicit;n(),D(t)}}function EC(i,r){if(i&1&&(s(0,"ul"),C(1,AC,2,1,"li",52),l()),i&2){let t=g();n(),d("ngForOf",t.offer.atributos)}}function RC(i,r){i&1&&(s(0,"div",53)(1,"span",54),p(2),c(3,"translateText"),c(4,"async"),l()()),i&2&&(n(2),f(" ",u(4,4,y(3,1,"lib.newOffer.noChangesAllowed","*Esta op\xE7\xE3o n\xE3o permite altera\xE7\xF5es na reserva. Voc\xEA poder\xE1 cancelar se precisar."))," "))}function BC(i,r){i&1&&(s(0,"p",55),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"lib.newOffer.tarifaNoReembolsable"),` 5`))}function FC(i,r){i&1&&(s(0,"div",56)(1,"span",57),p(2),c(3,"translate"),l(),s(4,"span",57),p(5),c(6,"translate"),l(),s(7,"span",57),p(8),c(9,"translate"),l()()),i&2&&(n(2),D(u(3,3,"offerDetailsPopup.libreKm")),n(3),D(u(6,5,"offerDetailsPopup.incluyeAsistencias")),n(3),D(u(9,7,"offerDetailsPopup.tasaAlquiler")))}function VC(i,r){i&1&&(s(0,"div",56)(1,"span",57),p(2),c(3,"translate"),l(),s(4,"span",57),p(5),c(6,"translate"),l()()),i&2&&(n(2),D(u(3,2,"offerDetailsPopup.offerDetailsPopupArgentina.libreKm")),n(3),f(" ",u(6,4,"offerDetailsPopup.offerDetailsPopupArgentina.protecci\xF3nDelVeh\xEDculo")," "))}var qd=(()=>{let r=class r{constructor(){this.showPercentageText=!0,this.showPrepagoMessage=!1,this.isArgentina=!1,this.handleButtonCtaClick=new W,this.showDetail
5sPopup=!1,this.offerCardTarifasENUM=qt}abrirDetalhes(){this.showDetailsPopup=!0}handleButtonCta(){this.handleButtonCtaClick.emit(this.offer)}handleRadioClick(e){e.stopPropagation(),this.handleButtonCtaClick.emit(this.offer)}exibirCupomAplicado(){return this.offer?.tarifa?.existeDescontoPromocional&&this.offer?.tarifa?.moeda==="MXN"&&this.offer?.meioPagamento?.some(e=>e.tipo=="PagamentoBalcao"&&e.selecionado)}exibeImagemMercadoPago(){let e=this.isArgentina&&this.offer.descricao===qt.PAGA_EN_LINEA,a=this.offer.descricao===qt.PRE_PAGO||this.offer.descricao===qt.PREPAID;return e||a}exibeTextoSemEconomia(){return!this.offer?.tarifa?.existeDescontoPromocional&&!this.offer?.kmControlado&&this.offer?.descricao!==qt.PAGA_EN_LINEA&&this.offer?.descricao!==qt.PRE_PAGO&&this.offer?.descricao!==qt.PREPAID}exibeTextoComEconomia(){return this.isArgentina&&(this.offer?.descricao===qt.PAGA_EN_LINEA||this.offer?.descricao===qt.PRE_PAGO||this.offer?.descricao===qt.PREPAID)}getSelectedPaymentType(){if(!this.offer?.meioPagamento?.length)return null;let e=this.offer.meioPagamento.find(a=>a.selecionado);return e?e.tipo:null}verificaDescricaoOfertaArgentina(){return this.offer.descricao===qt.PAGA_EN_LINEA?"lib.newOffer.btnPayOnlineArgentina":this.offer.descricao===qt.PAGAR_EN_MOSTRADOR?"lib.newOffer.btnPayAgencyArgentina":this.formatarDescricao(this.offer.descricao)}formatarDescricao(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}isOnlinePayment(){return this.getSelectedPaymentType()==="Link"}getButtonText(){return this.isArgentina?this.verificaDescricaoOfertaArgentina():this.getSelectedPaymentType()==="Link"?"lib.newOffer.btnPayOnline":"lib.newOffer.btnPayAgency"}getSavingsAmount(){let e=this.offer?.tarifa?.valorDiariaSemCombo,a=this.offer?.tarifa?.valorLiquidoSemCodigoPromocional;if(e==null||a==null)return 0;let o=a-e;return o>0?o:0}getDiscountPercentage(){let e=this.offer?.meioPagamento?.find(a=>a.selecionado);return e&&e.tipo==="Link"?e.percentualDesconto||0:this.offer?.tarifa?.descontoCodigoPromocional||0}isTarifaMensal(){return this.offer?.tarifa?.codigoTarifa==="016921"||this.offer?.tarifa?.codigoTarifa==="016922"}displayCambioMessage(){return this.isOnlinePayment()&&!this.isArgentina}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-offer-card"]],inputs:{offer:"offer",showPercentageText:"showPercentageText",showPrepagoMessage:"showPrepagoMessage",isArgentina:"isArgentina"},outputs:{handleButtonCtaClick:"handleButtonCtaClick"},standalone:!1,decls:44,vars:37,consts:[["checkMensal",""],["templateColombia",""],["templateArgentina",""],["defaultTitle",""],["defaultStandardPrice",""],[1,"new-offer-container"],[1,"new-offer",3,"click","ngClass","ngStyle"],[1,"offer-header-section"],[1,"new-offer-radio"],[1,"new-offer-value-title"],[4,"ngIf","ngIfElse"],["type","radio",3,"click","checked"],["class","new-offer-discount-section",4,"ngIf"],[1,"offer-divider"],[1,"offer-content-section"],[1,"new-offer-value-and-img"],[1,"new-offer-value"],[1,"new-offer-value__coin"],[1,"new-offer-value__rate"],[1,"new-offer-value__day"],["style","height: 27px; width: 102px","src","assets/images/cartao-credito/mercado-pago.png","alt","Mercado Pago","class","payment-card-logo",4,"ngIf"],["class","new-offer-loyalty",4,"ngIf"],["class","new-offer__rent-fee",4,"ngIf"],["class","savings-text-prepaid",4,"ngIf"],["class","savings-section",4,"ngIf"],[1,"tarifaLigera-items"],["class","tarifa-ligera-section",4,"ngIf"],[4,"ngIf"],["class","savings-text",4,"ngIf"],[3,"close","visible"],["class","cambio-message",4,"ngIf"],["class","texto-no-reembolsable",4,"ngIf"],[1,"new-offer-discount-section"],[1,"new-offer-discounted"],[1,"discount-badge"],["src","assets/images/cartao-credito/mercado-pago.png","alt","Mercado Pago",1,"payment-card-logo",2,"height","27px","width","102px"],[1,"new-offer-loyalty"],[1,"new-offer__rent-fee"],[1,"savings-text-prepaid"],[1,"savings-text-prepaid__text"],["class","payment-cards",4,"ngIf"],[1,"payment-cards"],["src","assets/images/cartao-credito/visa.png","alt","Visa",1,"payment-card-logo"],["src","assets/images/cartao-credito/mastercard.png","alt","Mastercard",1,"payment-card-logo"],[1,"savings-section"],[1,"tarifa-ligera-section"],[1,"tarifa-ligera-section__tarifa-ligera-item"],["class","card-link",3,"click",4,"ngIf"],[1,"card-link",3,"click"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"savings-text"],[4,"ngFor","ngForOf"],[1,"cambio-message"],[1,"cambio-message__text"],[1,"texto-no-reembolsable"],[1,"offerDetails"],[1,"offerDetails__offer"]],template:function(a,o){if(a&1){let m=k();
5s(0,"div",5)(1,"article",6),b("click",function(){return P(m),S(o.handleButtonCta())}),s(2,"div",7)(3,"div",8)(4,"span",9),C(5,sC,3,3,"ng-container",10)(6,dC,3,2,"ng-template",null,0,Me),l(),s(8,"input",11),b("click",function(x){return P(m),S(o.handleRadioClick(x))}),l()(),C(9,mC,7,7,"div",12)(10,gC,4,2,"div",12)(11,_C,3,3,"div",12),l(),h(12,"div",13),s(13,"div",14)(14,"div",15)(15,"p",16)(16,"span",17),p(17),l(),s(18,"span",18),p(19),c(20,"preco"),l(),s(21,"span",19),p(22),c(23,"translateText"),c(24,"async"),l()(),C(25,hC,1,0,"img",20),l(),C(26,vC,7,16,"p",21)(27,CC,4,9,"p",22)(28,xC,9,18,"div",23)(29,SC,2,1,"div",24),s(30,"div",25),C(31,MC,11,10,"section",26)(32,OC,3,2,"section",27)(33,kC,3,3,"span",28)(34,IC,3,3,"span",28)(35,TC,1,0,"div",24)(36,EC,2,1,"ul",27),s(37,"app-offer-details-popup",29),b("close",function(){return P(m),S(o.showDetailsPopup=!1)}),l()(),C(38,RC,5,6,"div",30),l()()(),C(39,BC,3,3,"p",31)(40,FC,10,9,"ng-template",null,1,Me)(42,VC,7,6,"ng-template",null,2,Me)}if(a&2){let m=ue(7);n(),d("ngClass",L(33,aC,o.offer==null?null:o.offer.selecionado))("ngStyle",L(35,nC,o.isArgentina?"36rem":"242px")),n(4),d("ngIf",(o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.codigoTarifa)==="012396")("ngIfElse",m),n(3),d("checked",o.offer==null?null:o.offer.selecionado),n(),d("ngIf",o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.existeDescontoPromocional),n(),d("ngIf",!(!(o.offer==null||o.offer.tarifa==null)&&o.offer.tarifa.existeDescontoPromocional)&&(o.offer==null?null:o.offer.descricao)!==o.offerCardTarifasENUM.PAGA_EN_LINEA),n(),d("ngIf",(o.offer==null?null:o.offer.descricao)===o.offerCardTarifasENUM.PAGA_EN_LINEA),n(6),f(" ",o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.moeda," "),n(2),f(" ",y(20,25,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.valorDiariaSemCombo,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.moeda)," "),n(3),f(" ",u(24,31,y(23,28,"lib.newOffer.day","/dia"))," "),n(3),d("ngIf",o.exibeImagemMercadoPago()),n(),d("ngIf",o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.utilizarPontosFidelidade),n(),d("ngIf",o.showPercentageText&&(o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.percentualTaxaServico)),n(),d("ngIf",o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.existeDescontoPromocional),n(),d("ngIf",!(!(o.offer==null||o.offer.tarifa==null)&&o.offer.tarifa.existeDescontoPromocional)),n(2),d("ngIf",(o.offer==null?null:o.offer.kmControlado)&&!o.isTarifaMensal()),n(),d("ngIf",!(o.offer!=null&&o.offer.kmControlado)&&!o.isTarifaMensal()),n(),d("ngIf",o.exibeTextoSemEconomia()),n(),d("ngIf",o.exibeTextoComEconomia()),n(),d("ngIf",!(!(o.offer==null||o.offer.tarifa==null)&&o.offer.tarifa.existeDescontoPromocional)&&!(o.offer!=null&&o.offer.kmControlado)),n(),d("ngIf",o.isTarifaMensal()&&(o.offer==null||o.offer.atributos==null?null:o.offer.atributos.length)),n(),d("visible",o.showDetail
5sPopup),n(),d("ngIf",o.displayCambioMessage()),n(),d("ngIf",o.exibeTextoComEconomia())}},dependencies:[de,ae,N,Ci,$r,Ml,Jt,yt,T,ja,yi],styles:['.new-offer-container[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:space-between}.new-offer[_ngcontent-%COMP%]{background-color:#fff;border-radius:1.8rem;border:.1rem solid #d6d6d6;display:flex;flex-direction:column;height:100%;padding:2rem 2rem 1rem;transition:.2s;position:relative;margin-bottom:7px;cursor:pointer}.new-offer-radio[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-self:top;width:100%;margin-bottom:1.2rem}.new-offer-radio[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:#4a4a4a}.new-offer-radio[_ngcontent-%COMP%] .new-offer-value-title[_ngcontent-%COMP%]{font-size:2rem;font-weight:600;line-height:2.4rem;color:#018444;width:100%;font-family:var(--lds-font-functional-family)}.new-offer-radio[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{appearance:none;width:2rem;height:2rem;border:.2rem solid #808080;border-radius:50%;margin:0;cursor:pointer;position:relative;transition:all .2s ease}.new-offer-radio[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked{border-color:#018444;background-color:#fff}.new-offer-radio[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:1rem;height:1rem;background-color:#018444;border-radius:50%}.new-offer-radio[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:hover{border-color:#018444}.new-offer__name[_ngcontent-%COMP%]{border-bottom:.1rem solid #d6d6d6;color:#4a4a4a;font-size:1.8rem;line-height:3.2rem;margin:0 0 2.4rem;padding-bottom:1.6rem;text-align:center;text-transform:uppercase}.new-offer-discount-section[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:left;gap:1rem;margin-bottom:3.8rem}.new-offer-discount-section[_ngcontent-%COMP%] .discount-badge[_ngcontent-%COMP%]{background-color:#018444;color:#fff;padding:.4rem 1.2rem;border-radius:2rem;font-weight:700;font-size:1.4rem;display:flex;flex-direction:row;align-items:center;gap:.4rem}.new-offer-discounted[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.4rem;text-decoration:line-through}.new-offer-value[_ngcontent-%COMP%]{color:#018444;font-size:2rem;font-weight:600;line-height:140%;margin:0;text-align:center;width:100%;display:flex;align-self:center;align-items:center;min-height:48px;white-space:nowrap}.new-offer-value__rate[_ngcontent-%COMP%]{font-size:2rem;font-weight:600;color:#018444;font-family:var(--lds-font-functional-family)}.new-offer-value__coin[_ngcontent-%COMP%]{font-size:2rem;font-weight:600;color:#018444;margin-right:.4rem}.new-offer-value__day[_ngcontent-%COMP%]{font-weight:400;letter-spacing:0%;vertical-align:middle;color:#4a4a4a;font-size:1.4rem;line-height:1.6rem;margin-left:.4rem;font-family:var(--lds-font-functional-family)}.new-offer-km-extra[_ngcontent-%COMP%]{color:#018444;text-align:center;margin:.4rem 0 0}.new-offer__discount-coupon[_ngcontent-%COMP%]{display:flex;background-color:#01602a;color:#01602a;padding:2px 10px;font-size:17px;font-weight:700;border-radius:20px;margin:10px;max-width:200px;align-items:center;justify-content:center;gap:6px}.new-offer-loyalty[_ngcontent-%COMP%]{text-align:center;margin:.4rem 0 0}.new-offer__rent-fee[_ngcontent-%COMP%]{color:#4a4a4a;margin:1.2rem 0 2.4rem;text-align:center}.new-offer--active[_ngcontent-%COMP%]{border-color:#018444}.new-offer--active[_ngcontent-%COMP%] .new-offer__name[_ngcontent-%COMP%]{border-color:#018444;color:#018444}.new-offer-button-cta[_ngcontent-%COMP%]{margin-top:2.4rem}.new-offer[_ngcontent-%COMP%] .savings-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.8rem}.new-offer[_ngcontent-%COMP%] .savings-section[_ngcontent-%COMP%] .coupon-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.6rem;background-color:#cefdaf;color:#018444;padding:.8rem 1.6rem;border-radius:2rem;font-size:1.4rem;font-weight:400}.new-offer[_ngcontent-%COMP%] .savings-section[_ngcontent-%COMP%] .coupon-badge[_ngcontent-%COMP%] ds-icon[_ngcontent-%COMP%]{color:#018444}.new-offer[_ngcontent-%COMP%] .savings-text[_ngcontent-%COMP%]{color:#262626;font-size:1.4rem;margin:0;font-weight:700;font-family:var(--lds-font-functional-family)}.new-offer-text-green[_ngcontent-%COMP%]{font-size:1.6rem;color:#018444;font-weight:400;line-height:140%;margin:0}.new-offer[_ngcontent-%COMP%] .payment-cards[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:2.5rem;gap:.8rem}.new-offer[_ngcontent-%COMP%] .payment-cards[_ngcontent-%COMP%] .payment-card-logo[_ngcontent-%COMP%]{height:2.5rem;object-fit:contain}.offer-divider[_ngcontent-%COMP%]{width:100%;height:1px;background-color:#d6d6d6}.offer-header-section[_ngcontent-%COMP%]{min-height:6rem}.offer-content-section[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;align-items:flex-start}.offer-content-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:.8rem 0;padding-left:2rem;list-style-type:disc;width:100%;text-align:left}.offer-content-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;text-align:left;line-height:2rem}.offer-content-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{margin-bottom:0}.new-offer-restriction[_ngcontent-%COMP%]{color:#6e6e6e;font-size:1.2rem;font-weight:400;line-height:160%;margin:0;text-align:center;align-self:center;width:100%;height:4.5rem;padding-left:1.6rem;padding-right:1.6rem}.savings-text-prepaid[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-weight:700;color:#262626;font-size:1.4rem;width:100%}.savings-text-prepaid__text[_ngcontent-%COMP%]{font-size:13px}.offerDetails[_ngcontent-%COMP%]{display:grid;font-family:var(--lds-font-functional-family)}.offerDetails__offer[_ngcontent-%COMP%]{margin-bottom:5px;font-family:var(--lds-font-functional-family)}.new-offer-value-and-img[_ngcontent-%COMP%]{width:28rem;display:inline-flex;align-items:center;justify-content:space-between;width:100%}.texto-no-reembolsable[_ngcontent-%COMP%]{font-weight:400;font-style:Regular;letter-spacing:0%;color:#6e6e6e;margin-left:5px;font-family:var(--lds-font-functional-family)}.new-offer-discount-section[_ngcontent-%COMP%], .tarifaLigera-items[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family)}.tarifa-ligera-section__tarifa-ligera-item[_ngcontent-%COMP%]{margin-bottom:7px}.cambio-message[_ngcontent-%COMP%]{text-align:center;margin-top:10px}.cambio-message__text[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family);color:#6e6e6e;font-size:11px;white-space:pre-line}.card-link[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family);
5display:block;margin-left:11rem}']});let i=r;return i})();var LC=i=>({percentualTaxaServico:i}),NC=i=>({puntosDoters:i});function UC(i,r){i&1&&(V(0),p(1),c(2,"translate"),z()),i&2&&(n(),f(" ",u(2,1,"tarifaLigera.titulo")," "))}function GC(i,r){if(i&1&&(p(0),c(1,"translateText"),c(2,"async")),i&2){let t=g();f(" ",u(2,4,y(1,1,t.getButtonText(),t.getButtonText()))," ")}}function jC(i,r){i&1&&(s(0,"p"),p(1),c(2,"translateText"),c(3,"async"),l()),i&2&&(n(),f(" ",u(3,4,y(2,1,"lib.newOffer.couponApplied","Cupom"))," "))}function qC(i,r){if(i&1&&(s(0,"div",20)(1,"s",21),p(2),c(3,"preco"),l(),s(4,"div",22),C(5,jC,4,6,"p",19),p(6),l()()),i&2){let t=g();n(2),q("",t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.moeda," ",y(3,4,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.valorLiquidoSemCodigoPromocional,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.moeda)),n(3),d("ngIf",!t.isOnlinePayment()),n(),f(" -",t.getDiscountPercentage(),"% ")}}function HC(i,r){i&1&&(V(0),p(1),c(2,"translate"),z()),i&2&&(n(),f(" ",u(2,1,"tarifaLigera.subtitulo")," "))}function $C(i,r){i&1&&(p(0),c(1,"translateText"),c(2,"async")),i&2&&f(" ",u(2,4,y(1,1,"lib.newOffer.standardPrice","Pre\xE7o padr\xE3o"))," ")}function WC(i,r){if(i&1&&(s(0,"div",20),C(1,HC,3,3,"ng-container",7)(2,$C,3,6,"ng-template",null,1,Me),l()),i&2){let t=ue(3),e=g();n(),d("ngIf",e.offer==null?null:e.offer.kmControlado)("ngIfElse",t)}}function KC(i,r){if(i&1&&(s(0,"p",23),p(1),c(2,"translateText"),c(3,"async"),c(4,"number"),c(5,"translateText"),c(6,"async"),l()),i&2){let t=g();n(),st(" ",u(3,6,y(2,3,"lib.newOffer.loyalty.or","ou"))," ",y(4,8,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.pontuacaoResgate,"1.0-0")," ",u(6,14,y(5,11,"lib.newOffer.loyalty.points","pontos"))," ")}}function ZC(i,r){if(i&1&&(s(0,"p",24),p(1),c(2,"translateText"),c(3,"async"),l()),i&2){let t=g();n(),f(" ",u(3,5,mo(2,1,"lib.newOffer.rentFee","*Prote\xE7\xF5es e taxa de aluguel (12%) n\xE3o inclusas neste valor.",L(7,LC,t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.percentualTaxaServico)))," ")}}function YC(i,r){if(i&1&&(s(0,"p",25),p(1),c(2,"translate"),c(3,"translateText"),c(4,"async"),l()),i&2){let t=g();n(),q(" ",y(2,2,"lib.newOffer.puntosDoters",L(10,NC,t.formatDotersPoints(t.offer==null||t.offer.tarifa==null||t.offer.tarifa.parceiro==null?null:t.offer.tarifa.parceiro.pontosValorDiaria))),"/",u(4,8,y(3,5,"lib.newOffer.perDay","dia"))," ")}}function QC(i,r){if(i&1&&(s(0,"p",25),p(1),c(2,"translateText"),c(3,"async"),c(4,"preco"),c(5,"translateText"),c(6,"async"),l()),i&2){let t=g();n(),fi(" ",u(3,7,y(2,4,"lib.newOffer.savings","Economize"))," ",t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.moeda," ",y(4,9,t.getSavingsAmount(),t.offer==null||t.offer.tarifa==null?null:t.offer.tarifa.moeda),"/",u(6,15,y(5,12,"lib.newOffer.perDay","dia"))," ")}}function XC(i,r){i&1&&(s(0,"p",25),p(1),c(2,"translateText"),c(3,"async"),l()),i&2&&(n(),f(" ",u(3,4,y(2,1,"lib.newOffer.noSavings","Sem economia"))," "))}function JC(i,r){if(i&1&&(s(0,"li"),p(1),l()),i&2){let t=r.$implicit;n(),D(t)}}function eb(i,r){if(i&1&&(s(0,"ul"),C(1,JC,2,1,"li",26),l()),i&2){let t=g();n(),d("ngForOf",t.offer.atributos)}}var Hd=(()=>{let r=class r{constructor(){this.showPercentageText=!0,this.showPrepagoMessage=!1,this.useType="earn",this.handleButtonCtaClick=new W,this.showDetail
5sPopup=!1,this.isWebView=I(Pe).isWebView}abrirDetalhes(){this.showDetailsPopup=!0}handleButtonCta(){this.handleButtonCtaClick.emit(this.offer)}handleRadioClick(e){e.stopPropagation(),this.handleButtonCtaClick.emit(this.offer)}exibirCupomAplicado(){return this.offer?.tarifa?.existeDescontoPromocional&&this.offer?.tarifa?.moeda==="MXN"&&this.offer?.meioPagamento?.some(e=>e.tipo=="PagamentoBalcao"&&e.selecionado)}getSelectedPaymentType(){if(!this.offer?.meioPagamento?.length)return null;let e=this.offer.meioPagamento.find(a=>a.selecionado);return e?e.tipo:null}isOnlinePayment(){return this.getSelectedPaymentType()==="Link"}getButtonText(){return this.getSelectedPaymentType()==="Link"?"lib.newOffer.btnPayOnline":"lib.newOffer.btnPayAgency"}getSavingsAmount(){let e=this.offer?.tarifa?.valorDiariaSemCombo,a=this.offer?.tarifa?.valorLiquidoSemCodigoPromocional;if(e==null||a==null)return 0;let o=a-e;return Math.max(o,0)}getDiscountPercentage(){let e=this.offer?.meioPagamento?.find(a=>a.selecionado);return e?.tipo==="Link"?e.percentualDesconto||0:this.offer?.tarifa?.descontoCodigoPromocional||0}formatDotersPoints(e){return qr(e,"en-US","1.0-0")}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-offer-card-mx"]],inputs:{offer:"offer",showPercentageText:"showPercentageText",showPrepagoMessage:"showPrepagoMessage",useType:"useType"},outputs:{handleButtonCtaClick:"handleButtonCtaClick"},standalone:!1,decls:30,vars:26,consts:[["defaultTitle",""],["defaultStandardPrice",""],[1,"new-offer-container"],[1,"new-offer",3,"click"],[1,"offer-header-section"],[1,"new-offer-radio"],[1,"new-offer-value-title"],[4,"ngIf","ngIfElse"],["type","radio",3,"click","checked"],["class","new-offer-discount-section",4,"ngIf"],[1,"offer-content-section"],[1,"new-offer-value"],[1,"new-offer-value__coin"],[1,"new-offer-value__rate"],[1,"new-offer-value__day"],["class","new-offer-loyalty",4,"ngIf"],["class","new-offer__rent-fee",4,"ngIf"],[1,"savings-section"],["class","savings-text",4,"ngIf"],[4,"ngIf"],[1,"new-offer-discount-section"],[1,"new-offer-discounted"],[1,"discount-badge"],[1,"new-offer-loyalty"],[1,"new-offer__rent-fee"],[1,"savings-text"],[4,"ngFor","ngForOf"]],template:function(a,o){if(a&1){let m=k();s(0,"div",2)(1,"article",3),b("click",function(){return P(m),S(o.handleButtonCta())}),s(2,"div",4)(3,"div",5)(4,"span",6),C(5,UC,3,3,"ng-container",7)(6,GC,3,6,"ng-template",null,0,Me),l(),s(8,"input",8),b("click",function(x){return P(m),S(o.handleRadioClick(x))}),l()(),C(9,qC,7,7,"div",9)(10,WC,4,2,"div",9),l(),s(11,"div",10)(12,"p",11)(13,"span",12),p(14),l(),s(15,"span",13),p(16),c(17,"preco"),l(),s(18,"span",14),p(19),c(20,"translateText"),c(21,"async"),l()(),C(22,KC,7,16,"p",15)(23,ZC,4,9,"p",16),s(24,"div",17),C(25,YC,5,12,"p",18)(26,QC,7,17,"p",18)(27,XC,4,6,"p",18),l(),s(28,"div"),C(29,eb,2,1,"ul",19),l()()()()}if(a&2){let m=ue(7);n(),Z("new-offer--active",o.offer==null?null:o.offer.selecionado)("new-offer--webview",o.isWebView()),n(4),d("ngIf",o.offer==null?null:o.offer.kmControlado)("ngIfElse",m),n(3),d("checked",o.offer==null?null:o.offer.selecionado),n(),d("ngIf",o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.existeDescontoPromocional),n(),d("ngIf",!(!(o.offer==null||o.offer.tarifa==null)&&o.offer.tarifa.existeDescontoPromocional)),n(4),f(" ",o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.moeda," "),n(2),f(" ",y(17,18,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.valorDiariaSemCombo,o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.moeda)," "),n(3),f(" ",u(21,24,y(20,21,"lib.newOffer.day","/dia"))," "),n(3),d("ngIf",o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.utilizarPontosFidelidade),n(),d("ngIf",o.showPercentageText&&(o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.percentualTaxaServico)),n(2),d("ngIf",(o.offer==null?null:o.offer.tarifa.parceiro)&&o.useType==="use"),n(),d("ngIf",(o.offer==null||o.offer.tarifa==null?null:o.offer.tarifa.existeDescontoPromocional)&&!(o.offer!=null&&o.offer.tarifa.parceiro&&o.useType==="use")),n(),d("ngIf",!(!(o.offer==null||o.offer.tarifa==null)&&o.offer.tarifa.existeDescontoPromocional)&&!(o.offer!=null&&o.offer.tarifa.parceiro&&o.useType==="use")),n(2),d("ngIf",o.offer==null||o.offer.atributos==null?null:o.offer.atributos.length)}},dependencies:[ae,N,Jt,yt,T,ja,yi],styles:['[_nghost-%COMP%]{display:block;width:100%}.new-offer-container[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:space-between}.new-offer[_ngcontent-%COMP%]{background-color:#fff;border-radius:1.8rem;border:.1rem solid #d6d6d6;display:flex;flex-direction:column;height:100%;width:100%;max-width:250px;padding:2rem 2rem 1rem;transition:.2s;position:relative;cursor:pointer}.new-offer--webview[_ngcontent-%COMP%]{max-width:none;width:100%;box-sizing:border-box}.new-offer-radio[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;align-self:top;width:100%;margin-bottom:1.2rem}.new-offer-radio[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:#4a4a4a}.new-offer-radio[_ngcontent-%COMP%] .new-offer-value-title[_ngcontent-%COMP%]{font-size:2rem;font-weight:600;line-height:2.4rem;color:#018444;width:100%}.new-offer-radio[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{appearance:none;width:2rem;height:2rem;border:.2rem solid #808080;border-radius:50%;margin:0;cursor:pointer;position:relative;transition:all .2s ease}.new-offer-radio[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked{border-color:#018444;background-color:#fff}.new-offer-radio[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:1rem;height:1rem;background-color:#018444;border-radius:50%}.new-offer-radio[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:hover{border-color:#018444}.new-offer__name[_ngcontent-%COMP%]{border-bottom:.1rem solid #d6d6d6;color:#4a4a4a;font-size:1.8rem;line-height:3.2rem;margin:0 0 2.4rem;padding-bottom:1.6rem;text-align:center;text-transform:uppercase}.new-offer-discount-section[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:left;gap:1rem;padding-bottom:10px;border-bottom:1px solid #d6d6d6}.new-offer-discount-section[_ngcontent-%COMP%] .discount-badge[_ngcontent-%COMP%]{background-color:#018444;color:#fff;padding:.4rem 1.2rem;border-radius:2rem;font-weight:700;font-size:1.4rem;display:flex;flex-direction:row;align-items:center;gap:.4rem}.new-offer-discounted[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.4rem;text-decoration:line-through}.new-offer-value[_ngcontent-%COMP%]{color:#018444;font-size:2rem;font-weight:600;line-height:140%;text-align:center;display:flex;align-items:center;min-height:48px;white-space:nowrap}.new-offer-value__rate[_ngcontent-%COMP%]{color:#018444}.new-offer-value__coin[_ngcontent-%COMP%]{color:#018444;margin-right:.4rem}.new-offer-value__day[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.4rem;line-height:1.6rem;margin-left:.4rem}.new-offer-km-extra[_ngcontent-%COMP%]{color:#018444;text-align:center;margin:.4rem 0 0}.new-offer__discount-coupon[_ngcontent-%COMP%]{display:flex;background-color:#01602a;color:#01602a;padding:2px 10px;font-size:17px;font-weight:700;border-radius:20px;margin:10px;
5max-width:200px;align-items:center;justify-content:center;gap:6px}.new-offer-loyalty[_ngcontent-%COMP%]{text-align:center;margin:.4rem 0 0}.new-offer__rent-fee[_ngcontent-%COMP%]{color:#4a4a4a;margin:1.2rem 0 2.4rem;text-align:center}.new-offer--active[_ngcontent-%COMP%]{border-color:#018444}.new-offer--active[_ngcontent-%COMP%] .new-offer__name[_ngcontent-%COMP%]{border-color:#018444;color:#018444}.new-offer-button-cta[_ngcontent-%COMP%]{margin-top:2.4rem}.new-offer[_ngcontent-%COMP%] .savings-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.8rem;width:100%}.new-offer[_ngcontent-%COMP%] .savings-section[_ngcontent-%COMP%] .savings-text[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.4rem;margin:0;font-weight:700}.new-offer[_ngcontent-%COMP%] .savings-section[_ngcontent-%COMP%] .coupon-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.6rem;background-color:#cefdaf;color:#018444;padding:.8rem 1.6rem;border-radius:2rem;font-size:1.4rem;font-weight:400}.new-offer[_ngcontent-%COMP%] .savings-section[_ngcontent-%COMP%] .coupon-badge[_ngcontent-%COMP%] ds-icon[_ngcontent-%COMP%]{color:#018444}.new-offer-text-green[_ngcontent-%COMP%]{font-size:1.6rem;color:#018444;font-weight:400;line-height:140%;margin:0}.offer-header-section[_ngcontent-%COMP%]{min-height:6rem}.offer-content-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}.offer-content-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:.8rem 0;padding-left:0;list-style-type:none;width:100%;text-align:left}.offer-content-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;text-align:left;line-height:2rem}.offer-content-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{margin-bottom:0}.new-offer-restriction[_ngcontent-%COMP%]{color:#6e6e6e;font-size:1.2rem;font-weight:400;line-height:160%;margin:0;text-align:center;align-self:center;width:100%;height:4.5rem;padding-left:1.6rem;padding-right:1.6rem}']});let i=r;return i})();var ib=i=>({container:i}),ob=(i,r,t,e,a,o)=>({"lista-de-ofertas-conteudo--3colum":i,"lista-de-ofertas-conteudo--2colum":r,"lista-de-ofertas-conteudo--1colum":t,"lista-de-ofertas-conteudo--1colum-prepaid":e,"lista-de-ofertas-conteudo--2colum-prepaid":a,"lista-de-ofertas-conteudo--webview":o}),ab=(i,r,t)=>({"lista-de-ofertas-btn--3colum":i,"lista-de-ofertas-btn--2colum":r,"lista-de-ofertas-btn--1colum":t}),nb=i=>({"tarifa-info__no-prepaid":i});function rb(i,r){i&1&&(s(0,"h2",5),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo3.listaDeOfertas.titulo")," "))}function sb(i,r){if(i&1&&(s(0,"h2",5),p(1),c(2,"translate"),l()),i&2){let t=g();n(),f(" ",u(2,1,(t.ofertasExibidas==null?null:t.ofertasExibidas.length)===1?"reserva.passo3.listaDeOfertas.tituloColombia1Oferta":"reserva.passo3.listaDeOfertas.tituloColombia2Ofertas")," ")}}function lb(i,r){if(i&1&&(s(0,"p",6),p(1),c(2,"translate"),l()),i&2){let t=g();n(),f(" ",u(2,1,(t.ofertasExibidas==null?null:t.ofertasExibidas.length)===1?"reserva.passo3.listaDeOfertas.subTituloColombia1Oferta":"reserva.passo3.listaDeOfertas.subTituloColombia2Ofertas")," ")}}function cb(i,r){if(i&1){let t=k();s(0,"header",16),b("click",function(){P(t);let a=g(2);return S(a.abrirOuFecharBoxListaDeOfertas())}),s(1,"p",17),p(2),c(3,"translate"),l(),h(4,"i-feather",18),l()}i&2&&(n(2),f(" ",u(3,1,"reserva.passo3.listaDeOfertas.titulo")," "))}function db(i,r){if(i&1){let t=k();s(0,"ds-new-offer",22),b("handleButtonCtaClick",function(a){P(t);let o=g(3);return S(o.selecionarOferta(a))}),l()}if(i&2){let t=g().$implicit,e=g(2);d("offer",t)("showPercentageText",e.showPercentageText)("showPrepagoMessage",e.isPrepaidPaymentMethodSelected(t))}}function pb(i,r){if(i&1){let t=k();s(0,"app-offer-card",23),b("handleButtonCtaClick",function(a){P(t);let o=g(3);return S(o.selecionarOferta(a))}),l()}if(i&2){let t=g().$implicit,e=g(2);d("offer",t)("isArgentina",e.isArgentina())("showPercentageText",e.showPercentageText)}}function mb(i,r){if(i&1){let t=k();s(0,"app-offer-card-mx",24),b("handleButtonCtaClick",function(a){P(t);let o=g(3);return S(o.selecionarOferta(a))}),l()}if(i&2){let t=g().$implicit,e=g(2);d("offer",t)("useType",e.dadosParceiroDoters==null?null:e.dadosParceiroDoters.usageType)("showPercentageText",e.showPercentageText)}}function ub(i,r){if(i&1&&(V(0),C(1,db,1,3,"ds-new-offer",19)(2,pb,1,3,"app-offer-card",20)(3,mb,1,3,"app-offer-card-mx",21),z()),i&2){let t=g(2);n(),d("ngIf",!t.isColombia()&&!t.isArgentina()&&!t.isMexico()),n(),d("ngIf",t.isColombia()||t.isArgentina()),n(),d("ngIf",t.isMexico())}}function fb(i,r){if(i&1){let t=k();s(0,"div",25)(1,"ds-new-button",26),b("click",function(){P(t);let a=g(2);return S(a.handleClickAccessMoreOffers())}),p(2),c(3,"translate"),l()()}if(i&2){let t=g(2);d("ngClass",Kt(5,ab,(t.ofertasExibidas==null?null:t.ofertasExibidas.length)>2,(t.ofertasExibidas==null?null:t.ofertasExibidas.length)===2,(t.ofertasExibidas==null?null:t.ofertasExibidas.length)===1)),n(),d("fullwidth",!0),n(),f(" ",u(3,3,t.exibindoTodasOfertas?"reserva.passo3.listaDeOfertas.btnAccessFewerConditions":"reserva.passo3.listaDeOfertas.btnAccessMoreConditions")," ")}}function gb(i,r){if(i&1){let t=k();s(0,"div",27)(1,"a",28),b("click",function(){P(t);let a=g(2);return S(a.openTarifasModal())}),p(2),c(3,"translate"),l()()}if(i&2){let t=g(2);d("ngClass",L(4,nb,!t.hasPrepaidPaymentMethod)),n(2),f(" ",u(3,2,"reserva.passo3.listaDeOfertas.btnTarifModal")," ")}}function _b(i,r){i&1&&(s(0,"div",29)(1,"div",30),h(2,"app-secure-online-payment",31),l()()),i&2&&(n(2),d("theme","border"))}function hb(i,r){if(i&1&&(s(0,"section",7)(1,"div",8),C(2,cb,5,3,"header",9),s(3,"div",10)(4,"div",11),C(5,ub,4,3,"ng-container",12),l(),C(6,fb,4,9,"div",13),l()(),C(7,gb,4,6,"div",14)(8,_b,3,1,"div",15),l()),i&2){let t=g();Z("lista-de-ofertas--aberto",t.boxListaDeOfertasAberto)("lista-de-ofertas--webview",t.isWebView()),n(),d("ngClass",L(11,ib,!t.isTablet)),n(),d("ngIf",!t.isTablet),n(2),d("ngClass",Gr(13,ob,(t.ofertasExibidas==null?null:t.ofertasExibidas.length)>2,(t.ofertasExibidas==null?null:t.ofertasExibidas.length)===2,(t.ofertasExibidas==null?null:t.ofertasExibidas.length)===1,(t.isColombia()||t.isArgentina())&&(t.ofertasExibidas==null?null:t.ofertasExibidas.length)===1,(t.isColombia()||t.isArgentina())&&(t.ofertasExibidas==null?null:t.ofertasExibidas.length)===2,t.isWebView())),n(),d("ngForOf",t.ofertasExibidas),n(),d("ngIf",!t.alugelMensal&&(t.ofertas==null?null:t.ofertas.length)>1&&t.reservaBrasil),n(),d("ngIf",t.isColombia()),n(),d("ngIf",t.hasPrepaidPaymentMethod&&!t.isTablet&&t.boxListaDeOfertasAberto)}}function vb(i,r){i&1&&h(0,"app-secure-online-payment",31),i&2&&d("theme","border")}var $d=(()=>{let r=class r{get ofertasExibidas(){return this.ajustaOrdemDoTituloParaPrimeiraPosicao(this._ofertasExibidas)}set ofertasExibidas(e){this._ofertasExibidas=e,this.updateHasPrepaidPaymentMethod(),this.ensureOnlyOneOfferIsSelected()}constructor(e,a,o){this.googleAnalyticsService=e,this.viewportScroller=a,this.dialog=o,this.PAGAR_EN_MOSTRADOR="PAGAR EN MOSTRADOR",this.PAGAR_EN_LINEA="Descuento por pago anticipado",this.isWebView=I(Pe).isWebView,this.showPercentageText=!0,this.alugelMensal=!1,this.reservaBrasil=!1,this.ofertaUnica=!1,this.meioPagamentoSelecionado=null,this.rentInMexico=!1,this.ofertaSelecionada=new W,this.ofertaPreselecionada=!1,this.boxListaDeOfertasAberto=!0,this.exibindoTodasOfertas=!1,this.offerClicked=!1,this.hasPrepaidPaymentMethod=!1,this._ofertasExibidas=[]}ngOnInit(){this.filtrarTarifaLigeraComDescontoColombia(this._ofertasExibidas)}ngOnChanges(e){(!this.ofertaUnica||this.ofertas.length!==1)&&this.alugelMensal&&this.reservaBrasil&&this.offerSelectedId&&!this.ofertaSelecionadaa&&
5(this.ofertaSelecionadaa=this.ofertas.find(o=>o?.ofertaId===this.offerSelectedId)),e.ofertas&&(e.ofertas.firstChange||(e.ofertas.currentValue?.length||0)!=(e.ofertas.previousValue?.length||0))&&(this.ofertasExibidas=e.ofertas.currentValue);let a=this.ofertaSelecionadaEstaNaLista();this.ofertaMenorValor=this.ofertas?.find(o=>o?.melhorOferta)||this.ofertas[0],a||(this.exibindoTodasOfertas=!1,this.ofertaSelecionadaa=null),!this.ofertaUnica||this.ofertas.length!==1?this.alugelMensal||!this.reservaBrasil?this.offerClicked||this.setOffersDisplayedWithSelection():this.exibindoTodasOfertas?this.ofertasExibidas=[...this.ofertas]:a&&this.ofertaSelecionadaa?this.ofertasExibidas=[X($({},this.ofertaSelecionadaa),{selecionado:!0})]:(this.ofertasExibidas=[this.ofertaMenorValor],this.ofertas?.length===1&&(this.ofertaSelecionadaa=this.ofertaMenorValor)):(this.ofertas[0].selecionado=!0,(this.ofertas[0]?.grupoVeiculo?.tipoRetirada||!a)&&(this.ofertaSelecionada.emit(this.ofertas[0]),this.ofertaSelecionadaa=this.ofertas[0])),!this.ofertaPreselecionada&&this.meioPagamentoSelecionado&&(this.ofertaPreselecionada=!0,this.ofertasExibidas.forEach(o=>{o.meioPagamento?.some(m=>m.tipo==this.meioPagamentoSelecionado&&m.selecionado)?(o.selecionado=!0,this.ofertaSelecionadaa=o):o.selecionado=!1}),this.ofertaSelecionadaa&&this.selecionarOferta(this.ofertaSelecionadaa)),this.selectFirstOffer()}filtrarTarifaLigeraComDescontoColombia(e){if(!this.isColombia()||!e)return;let a=e.find(o=>o?.tarifa?.codigoTarifa==="012396"&&o.tarifa.existeDescontoPromocional);if(a){this.ofertasExibidas=e.filter(o=>o!==a);return}else this.ofertasExibidas=e}ajustaOrdemDoTituloParaPrimeiraPosicao(e){if(e&&e[0]?.descricao===this.PAGAR_EN_LINEA&&e[1]?.descricao===this.PAGAR_EN_MOSTRADOR){let a=this.ofertas.find(m=>m.descricao===this.PAGAR_EN_MOSTRADOR),o=this.ofertas.filter(m=>m.descricao!==this.PAGAR_EN_MOSTRADOR);return a&&(this.ofertasExibidas=[a,...o]),this.ofertasExibidas}return e}handleClickAccessMoreOffers(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"clique",action:"CTA",label:this.exibindoTodasOfertas?"acessar_menos":"acessar_mais"}),this.exibindoTodasOfertas?this.displayFewerOffers():this.displayMoreOffers(),this.exibindoTodasOfertas=!this.exibindoTodasOfertas}abrirOuFecharBoxListaDeOfertas(){this.boxListaDeOfertasAberto=!this.boxListaDeOfertasAberto}selecionarOferta(e){this.offerClicked=!1,this.ofertaSelecionada.emit(e),this.ofertaSelecionadaa=e,this.isTablet||this.abrirOuFecharBoxListaDeOfertas(),this.setOffersDisplayedWithSelection(),this.rentInMexico||this.scrollToElement(),this.offerClicked=!0}selectFirstOffer(){if(this.rentInMexico&&this.dadosParceiroDoters?.otpValidado&&!this.ofertaSelecionadaa&&this.ofertas?.length>0){let e=this.ofertas[0];this.selecionarOferta(e)}}scrollToElement(){pi(800).pipe(w(1)).subscribe(()=>this.viewportScroller.scrollToAnchor("lista-de-adicionais"))}ofertaSelecionadaEstaNaLista(){return!!this.ofertas.find(a=>a.ofertaId===this.ofertaSelecionadaa?.ofertaId)}updateSelectedOffers(){this.filtrarTarifaLigeraComDescontoColombia(this.ofertasExibidas),this.ofertasExibidas=this.ofertasExibidas.map(e=>
5{let a=this.ofertaSelecionadaa&&(e.ofertaMeioPagamentoId?e.ofertaMeioPagamentoId===this.ofertaSelecionadaa.ofertaMeioPagamentoId:e.ofertaId===this.ofertaSelecionadaa.ofertaId);return X($({},e),{selecionado:!!a})})}setOffersDisplayedWithSelection(){let e=this.ofertaSelecionadaEstaNaLista();(this.alugelMensal||!this.reservaBrasil)&&(this.exibindoTodasOfertas=!0),this.exibindoTodasOfertas?(this.ofertasExibidas=[...this.ofertas],e&&this.ofertaSelecionadaa&&this.updateSelectedOffers()):(e&&this.ofertaSelecionadaa?this.ofertasExibidas=[X($({},this.ofertaSelecionadaa),{selecionado:!0})]:this.ofertasExibidas=[this.ofertaMenorValor],!e&&this.ofertas?.length===1&&(this.ofertaSelecionadaa=this.ofertaMenorValor))}displayFewerOffers(){this.ofertasExibidas=[this.ofertaSelecionadaEstaNaLista()?X($({},this.ofertaSelecionadaa),{selecionado:!0}):this.ofertaMenorValor]}displayMoreOffers(){this.ofertasExibidas=[...this.ofertas],this.ofertaSelecionadaEstaNaLista()&&this.updateSelectedOffers()}isPrepaidPaymentMethodSelected(e){return e?.meioPagamento?.some(a=>a.tipo==="Link"&&a.selecionado)||!1}updateHasPrepaidPaymentMethod(){this.hasPrepaidPaymentMethod=(this.ofertasExibidas||[]).some(e=>e?.meioPagamento?.some(a=>a.tipo==="Link")||!1)}isColombia(){return this.codigoPaisAgenciaRetirada===Fe}isArgentina(){return this.codigoPaisAgenciaRetirada===Yi}get shouldShowPrepaidOffer(){return this.isColombia()||this.isMexico()}isMexico(){return this.codigoPaisAgenciaRetirada===pe}get isPrepaid(){return this.hasPrepaidPaymentMethod}openTarifasModal(){this.dialog.open(jd,{maxWidth:"900px",panelClass:"tarifas-modal-dialog",data:this.ofertasExibidas.map(e=>e.tarifa)})}ensureOnlyOneOfferIsSelected(){this._ofertasExibidas&&this._ofertasExibidas.length>0&&(this._ofertasExibidas=this._ofertasExibidas.map(e=>X($({},e),{selecionado:this.ofertaSelecionadaa?e.ofertaMeioPagamentoId?e.ofertaMeioPagamentoId===this.ofertaSelecionadaa.ofertaMeioPagamentoId:e.ofertaId===this.ofertaSelecionadaa.ofertaId:!1})))}};r.\u0275fac=function(a){return new(a||r)(v(Q),v(Aa),v(re))},r.\u0275cmp=M({type:r,selectors:[["app-lista-de-ofertas"]],inputs:{ofertas:"ofertas",isTablet:"isTablet",showPercentageText:"showPercentageText",alugelMensal:"alugelMensal",reservaBrasil:"reservaBrasil",ofertaUnica:"ofertaUnica",offerSelectedId:"offerSelectedId",meioPagamentoSelecionado:"meioPagamentoSelecionado",codigoPaisAgenciaRetirada:"codigoPaisAgenciaRetirada",rentInMexico:"rentInMexico",dadosParceiroDoters:"dadosParceiroDoters"},outputs:{ofertaSelecionada:"ofertaSelecionada"},standalone:!1,features:[nt],decls:6,vars:5,consts:[[1,"list-offer-title-header"],["class","list-offer-title",4,"ngIf"],["class","list-offer-subtitle",4,"ngIf"],["class","lista-de-ofertas",3,"lista-de-ofertas--aberto","lista-de-ofertas--webview",4,"ngIf"],[3,"theme",4,"ngIf"],[1,"list-offer-title"],[1,"list-offer-subtitle"],[1,"lista-de-ofertas"],[3,"ngClass"],["class","lista-de-ofertas-header",3,"click",4,"ngIf"],[1,"lista-de-ofertas-conteudoo"],[1,"lista-de-ofertas-conteudo",3,"ngClass"],[4,"ngFor","ngForOf"],["class","lista-de-ofertas-btn",3,"ngClass",4,"ngIf"],["class","tarifa-info",3,"ngClass",4,"ngIf"],["class","lista-de-ofertas__secure-online-payment",4,"ngIf"],[1,"lista-de-ofertas-header",3,"click"],[1,"lista-de-ofertas-header__titulo"],["name","chevron-down",1,"lista-de-ofertas-header__icone"],[3,"offer","showPercentageText","showPrepagoMessage","handleButtonCtaClick",4,"ngIf"],[3,"offer","isArgentina","showPercentageText","handleButtonCtaClick",4,"ngIf"],[3,"offer","useType","showPercentageText","handleButtonCtaClick",4,"ngIf"],[3,"handleButtonCtaClick","offer","showPercentageText","showPrepagoMessage"],[3,"handleButtonCtaClick","offer","isArgentina","showPercentageText"],[3,"handleButtonCtaClick","offer","useType","showPercentageText"],[1,"lista-de-ofertas-btn",3,"ngClass"],["theme","secondary",3,"click","fullwidth"],[1,"tarifa-info",3,"ngClass"],[1,"tarifa-info__link",3,"click"],[1,"lista-de-ofertas__secure-online-payment"],[1,"horizontal-margin"],[3,"theme"]],template:function(a,o){a&1&&(s(0,"div",0),C(1,rb,3,3,"h2",1)(2,sb,3,3,"h2",1)(3,lb,3,3,"p",2),l(),C(4,hb,9,20,"section",3)(5,vb,1,1,"app-secure-online-payment",4)),a&2&&(n(),d("ngIf",!o.ofertaUnica&&o.isTablet&&!o.isColombia()),n(),d("ngIf",o.isColombia()),n(),d("ngIf",o.isColombia()||o.isArgentina()),n(),d("ngIf",!o.ofertaUnica),n(),d("ngIf",o.hasPrepaidPaymentMethod&&o.isTablet))},dependencies:[de,ae,N,vs,J,Bt,ra,qd,Hd,T],styles:[".tarifa-info[_ngcontent-%COMP%]{text-align:center;margin:16px 0}.tarifa-info__link[_ngcontent-%COMP%]{color:#01602a;text-decoration:underline;cursor:pointer;font-size:14px}.tarifa-info__link[_ngcontent-%COMP%]:hover{text-decoration:none}
5.tarifa-info__no-prepaid[_ngcontent-%COMP%]{margin-bottom:-50px}.horizontal-margin[_ngcontent-%COMP%]{margin-left:15px;margin-right:15px}.lista-de-ofertas[_ngcontent-%COMP%]{padding-left:0;margin-bottom:2.4rem}@media(min-width:992px){.lista-de-ofertas[_ngcontent-%COMP%]{padding:1.6rem;border-radius:.8rem}}.lista-de-ofertas--aberto[_ngcontent-%COMP%] .lista-de-ofertas-conteudoo[_ngcontent-%COMP%]{display:grid}.lista-de-ofertas--aberto[_ngcontent-%COMP%] .lista-de-ofertas-header__icone[_ngcontent-%COMP%]{transform:rotate(180deg)}.lista-de-ofertas--webview[_ngcontent-%COMP%]{width:100%}.lista-de-ofertas--webview[_ngcontent-%COMP%] .lista-de-ofertas-conteudoo[_ngcontent-%COMP%]{width:100%;justify-content:stretch;justify-items:stretch}.lista-de-ofertas-header[_ngcontent-%COMP%]{align-items:center;color:#01602a;cursor:pointer;display:flex;justify-content:space-between;padding:1.6rem 0;transition:.2s}.lista-de-ofertas-header[_ngcontent-%COMP%]:hover{color:#1e852d}.lista-de-ofertas-header__titulo[_ngcontent-%COMP%]{font-family:var(--lds-font-functional-family);font-size:1.6rem;line-height:2.4rem}.lista-de-ofertas-header__icone[_ngcontent-%COMP%]{transition:.4s}@media(min-width:992px){.lista-de-ofertas-header__icone[_ngcontent-%COMP%]{display:none}}.lista-de-ofertas-conteudoo[_ngcontent-%COMP%]{display:none;justify-content:center}.lista-de-ofertas-conteudo[_ngcontent-%COMP%]{animation-duration:.4s;animation-name:_ngcontent-%COMP%_example;display:grid;gap:1.6rem;grid-template-columns:1fr;padding-bottom:1.6rem;transform-origin:top;max-width:50rem}@media(min-width:768px){.lista-de-ofertas-conteudo[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr;justify-content:center}.lista-de-ofertas-conteudo--1colum[_ngcontent-%COMP%]{grid-template-columns:25rem}.lista-de-ofertas-conteudo--1colum-prepaid[_ngcontent-%COMP%]{grid-template-columns:auto}.lista-de-ofertas-conteudo--2colum[_ngcontent-%COMP%]{grid-template-columns:25rem 25rem}.lista-de-ofertas-conteudo--2colum-prepaid[_ngcontent-%COMP%]{grid-template-columns:auto auto}.lista-de-ofertas-conteudo--3colum[_ngcontent-%COMP%]{display:inline-flex;grid-template-columns:repeat(auto-fill,22rem)}}.lista-de-ofertas-conteudo--webview[_ngcontent-%COMP%]{box-sizing:border-box;max-width:none;width:100%;padding-inline:1.6rem;display:grid;grid-template-columns:1fr}@media(min-width:768px){.lista-de-ofertas-conteudo--webview[_ngcontent-%COMP%]{grid-template-columns:1fr}.lista-de-ofertas-conteudo--webview.lista-de-ofertas-conteudo--1colum[_ngcontent-%COMP%], .lista-de-ofertas-conteudo--webview.lista-de-ofertas-conteudo--1colum-prepaid[_ngcontent-%COMP%], .lista-de-ofertas-conteudo--webview.lista-de-ofertas-conteudo--2colum[_ngcontent-%COMP%], .lista-de-ofertas-conteudo--webview.lista-de-ofertas-conteudo--2colum-prepaid[_ngcontent-%COMP%], .lista-de-ofertas-conteudo--webview.lista-de-ofertas-conteudo--3colum[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;max-width:none}}@media(min-width:992px){.lista-de-ofertas-conteudo[_ngcontent-%COMP%]{padding-bottom:0}}.lista-de-ofertas-btn[_ngcontent-%COMP%]{display:grid;justify-content:center;grid-template-columns:1fr;margin-bottom:1.6rem}@media(min-width:992px){.lista-de-ofertas-btn[_ngcontent-%COMP%]{margin:1.6rem 0 0}}@media(min-width:768px){.lista-de-ofertas-btn--1colum[_ngcontent-%COMP%]{grid-template-columns:18rem;justify-content:center}.lista-de-ofertas-btn--2colum[_ngcontent-%COMP%]{grid-template-columns:37.2rem;justify-content:center}.lista-de-ofertas-btn--3colum[_ngcontent-%COMP%]{grid-template-columns:1fr;max-width:50rem;margin:0 auto}}.lista-de-ofertas-btn__icon[_ngcontent-%COMP%]{align-items:center;display:flex;height:1rem;justify-content:center;width:1rem}.lista-de-ofertas-btn[_ngcontent-%COMP%] .ds-new-button{padding:0 1rem}.lista-de-ofertas-btn[_ngcontent-%COMP%] .ds-new-button--secondary:hover{background-color:#fff;border:.1rem solid #01602a;color:#01602a}.lista-de-ofertas__secure-online-payment[_ngcontent-%COMP%]{padding-bottom:2rem;animation-duration:.4s;animation-name:_ngcontent-%COMP%_example;transform-origin:top}h2[_ngcontent-%COMP%]{text-transform:math-auto;margin:0 0 1rem}@keyframes _ngcontent-%COMP%_example{0%{transform:scaleY(0)}to{transform:scaleY(1)}} ds-new-offer .ds-new-button{padding:0 1rem!important}.list-offer-title[_ngcontent-%COMP%]{font-size:2.4rem;line-height:2.4rem;color:#4a4a4a;font-family:var(--lds-font-functional-family)}.list-offer-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-family:var(--lds-font-functional-family)}@media screen and (max-width:576px){.list-offer-title-header[_ngcontent-%COMP%]{margin-left:16px}}"]});let i=r;return i})();
5var Ii=(function(i){return i.NOPACKAGETOBASIC="noPackageToBasic",i.BASICTOINTERMEDIATE="basicToIntermediate",i.INTERMEDIATETOCOMPLETE="intermediateToComplete",i.DOWNGRADEINCENTIVE="downgradeIncentive",i})(Ii||{});var co=class{constructor(){this.translateService=I(G),this.data=I(ne),this.matDialogRef=I(Y),this.googleAnalyticsService=I(Q),this.sendEventCalled=!1,this.translate=Oe(this.translateService.stream(`components.dumbs.upsellModals.${this.data?.modalKey}`))}close(r){if(this.matDialogRef.close(r),this.data?.modalKey===Ii.DOWNGRADEINCENTIVE&&!this.sendEventCalled){let t=this.getCloseLabel(r);this.sendEvent("upsell_maintence_cta",t),this.sendEventCalled=!0}}sendEvent(r,t,e="clicked"){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:r,action:e,label:`${this.data?.monthly?"AM ":""}${t}`})}getCloseLabel(r){return r?"nome"in r&&r.nome===this.data?.upgradeBundle?.nome?`Manter ${this.data?.upgradeBundle?.nome}`:`Reduzir para ${this.data?.currentBundle?.nome}`:"Remover Pacote"}};var Wd=i=>({name:i});function bb(i,r){if(i&1){let t=k();s(0,"div",20),b("click",function(){P(t);let a=g();return S(a.openComparisonModal())}),p(1),c(2,"translate"),h(3,"app-icon-svg",21),l()}i&2&&(n(),f(" ",u(2,1,"components.dumbs.upsellModals.compareAllPackages")," "))}var Kd=(()=>{let r=class r extends co{constructor(){super(...arguments),this.dialog=I(re),this.rentalPackagesService=I(Yo)}ngOnInit(){this.sendEvent("upsell_maintence_modal",this.data?.upgradeBundle?.nome,"impression")}get isInfoBundlesActive(){return this.rentalPackagesService.infoBundlesActive(this.data?.monthly)}openComparisonModal(){this.sendEvent("upsell_maintence_link","Comparar Todos os Pacotes"),this.dialog.open(Qo,{maxWidth:this.data?.desktop?"35vw":"95vw",maxHeight:this.data?.desktop?"80vh":"70vh",panelClass:"matDialog100Percent",data:this.data?.monthly})}};r.\u0275fac=(()=>{let e;return function(o){return(e||(e=Hi(r)))(o||r)}})(),r.\u0275cmp=M({type:r,selectors:[["app-modal-upsell-downgrade"]],features:[Po],decls:50,vars:44,consts:[[3,"showModalCloseButton"],[1,"modal-upsell-downgrade"],[1,"modal-upsell-downgrade__title"],[1,"modal-upsell-downgrade__content"],["alt","Img info","loading","lazy","media","(min-width: 576px)","width","537px","height","197px",3,"srcset"],["alt","Img info","loading","lazy","width","385px","height","197px",3,"src"],[1,"modal-upsell-downgrade__compare"],["aria-label","Select an option",1,"modal-upsell-downgrade__options"],[1,"modal-upsell-downgrade__card","modal-upsell-downgrade__card--best",3,"click"],[1,"modal-upsell-downgrade__card-header"],[1,"modal-upsell-downgrade__badge"],["svgName","rosette-discount","height","20px","width","20px",1,"modal-upsell-downgrade__icon"],[3,"change","value"],[1,"modal-upsell-downgrade__card-title"],[1,"modal-upsell-downgrade__price"],[1,"modal-upsell-downgrade__total"],[1,"modal-upsell-downgrade__card","modal-upsell-downgrade__card--standard",3,"click"],["svgName","plus-circle","height","20px","width","20px",1,"modal-upsell-downgrade__icon"],[1,"modal-upsell-downgrade__divider"],["theme","link-primary",3,"click"],[1,"modal-upsell-downgrade__compare",3,"click"],["svgName","info-circle","height","24px","width","24px",1,"modal-upsell-downgrade__compare-icon"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"div",1)(2,"header")(3,"h2",2),p(4),l()(),s(5,"main",3)(6,"picture"),h(7,"source",4)(8,"img",5),l(),B(9,bb,4,3,"div",6),s(10,"mat-radio-group",7)(11,"div",8),b("click",function(){return o.close(o.data==null?null:o.data.upgradeBundle)}),s(12,"div",9)(13,"div",10),h(14,"app-icon-svg",11),s(15,"p"),p(16),l()(),s(17,"mat-radio-button",12),b("change",function(){return o.close(o.data==null?null:o.data.upgradeBundle)}),l()(),s(18,"p",13),p(19),c(20,"translate"),l(),s(21,"div")(22,"p",14),p(23),c(24,"ldsCurrency"),l(),s(25,"p",15),p(26),c(27,"translate"),c(28,"ldsCurrency"),l()()(),s(29,"div",16),b("click",function(){return o.close(o.data==null?null:o.data.currentBundle)}),s(30,"div",9)(31,"div",10),h(32,"app-icon-svg",17),s(33,"p"),p(34),l()(),s(35,"mat-radio-button",12),b("change",function(){return o.close(o.data==null?null:o.data.currentBundle)}),l()(),s(36,"p",13),p(37),c(38,"translate"),l(),s(39,"div")(40,"p",14),p(41),c(42,"ldsCurrency"),l(
5),s(43,"p",15),p(44),c(45,"translate"),c(46,"ldsCurrency"),l()()()(),s(47,"div",18)(48,"ds-new-button",19),b("click",function(){return o.close(null)}),p(49),l()()()()()),a&2&&(d("showModalCloseButton",!1),n(4),f(" ",o.translate().title," "),n(3),d("srcset",o.translate().imgDesktop),n(),d("src",o.translate().imgMobile,bt),n(),F(o.isInfoBundlesActive?9:-1),n(7),f(" ",o.translate().betterOption," "),n(),d("value",o.data==null||o.data.upgradeBundle==null?null:o.data.upgradeBundle.codigo),n(2),f(" ",y(20,18,"components.dumbs.upsellModals.downgradeIncentive.betterOptionValue",L(40,Wd,o.data==null||o.data.upgradeBundle==null?null:o.data.upgradeBundle.nome))," "),n(4),f(" ",y(24,21,o.data==null||o.data.upgradeBundle==null?null:o.data.upgradeBundle.valorDiariaComDesconto,o.data==null?null:o.data.currency)," /dia "),n(3),q(" ",u(27,24,"components.dumbs.upsellModals.totalPrice")," ",y(28,26,o.data==null||o.data.upgradeBundle==null?null:o.data.upgradeBundle.totalComDesconto,o.data==null?null:o.data.currency)," "),n(8),f(" ",o.translate().worstOption," "),n(),d("value",o.data==null||o.data.currentBundle==null?null:o.data.currentBundle.codigo),n(2),f(" ",y(38,29,"components.dumbs.upsellModals.downgradeIncentive.worstOptionValue",L(42,Wd,o.data==null||o.data.currentBundle==null?null:o.data.currentBundle.nome))," "),n(4),f(" ",y(42,32,o.data==null||o.data.currentBundle==null?null:o.data.currentBundle.valorDiariaComDesconto,o.data==null?null:o.data.currency)," /dia "),n(3),q(" ",u(45,35,"components.dumbs.upsellModals.totalPrice")," ",y(46,37,o.data==null||o.data.currentBundle==null?null:o.data.currentBundle.totalComDesconto,o.data==null?null:o.data.currency)," "),n(5),f(" ",o.translate().btn1," "))},dependencies:[U,se,Wo,an,nn,ni,oe,J,A,T,Ne],styles:[".modal-upsell-downgrade__title[_ngcontent-%COMP%]{text-transform:none;font-size:2.4rem}.modal-upsell-downgrade__content[_ngcontent-%COMP%]{margin-top:1rem;display:flex;flex-direction:column;gap:2rem}.modal-upsell-downgrade__compare[_ngcontent-%COMP%]{border:1px solid #018444;border-radius:1.2rem;text-align:center;color:#018444;font-weight:700;padding:.6rem 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:1rem}.modal-upsell-downgrade__compare-icon[_ngcontent-%COMP%]{width:24px;height:24px}.modal-upsell-downgrade__options[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column;width:100%;gap:1rem}@media(min-width:992px){.modal-upsell-downgrade__options[_ngcontent-%COMP%]{flex-direction:row}}.modal-upsell-downgrade__card[_ngcontent-%COMP%]{border-radius:8px;padding:16px 20px;width:100%;display:flex;flex-direction:column;gap:1.5rem;box-shadow:0 2px 4px 1px #00000026;color:#262626}.modal-upsell-downgrade__card--best[_ngcontent-%COMP%]{background-color:#78de1f;border:1px solid #54b026}.modal-upsell-downgrade__card--best[_ngcontent-%COMP%]:hover{background-color:#54b026;border:1px solid #01602a;color:#fff}.modal-upsell-downgrade__card--standard[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.1019607843);background-color:#f2f2f2}.modal-upsell-downgrade__card--standard[_ngcontent-%COMP%]:hover{background-color:#d1f5dc;border:1px solid #45c983}.modal-upsell-downgrade__card--standard[_ngcontent-%COMP%]:hover .modal-upsell-downgrade__badge[_ngcontent-%COMP%]{color:#fff;background-color:#45c983}.modal-upsell-downgrade__card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.modal-upsell-downgrade__badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;background-color:#cefdaf;border-radius:12px;padding:4px 12px;color:#01602a;font-weight:700}.modal-upsell-downgrade__icon[_ngcontent-%COMP%]{height:20px;width:20px}.modal-upsell-downgrade__card-title[_ngcontent-%COMP%]{font-size:1.8rem;font-weight:600}.modal-upsell-downgrade__price[_ngcontent-%COMP%]{font-weight:600;font-size:1.8rem}.modal-upsell-downgrade__total[_ngcontent-%COMP%]{font-size:1.4rem}.modal-upsell-downgrade__divider[_ngcontent-%COMP%]{text-align:center}"]});let i=r;return i})();var xb=i=>({container:i});function Pb(i,r){if(i&1){let t=k();s(0,"section",7)(1,"app-rental-packages",8),b("handlePackageSelection",function(a){P(t);let o=g();
5return S(o.handleBundleProtection(a))})("handleComparationClick",function(a){P(t);let o=g();return S(o.handleClickInfoCombo(a))})("handleCarrouselClick",function(a){P(t);let o=g();return S(o.handleCarrouselClick(a))})("handleChangeItem",function(a){P(t);let o=g();return S(o.handleChangeItemMobile(a))})("handleViewPackages",function(a){P(t);let o=g();return S(o.handleViewCombos(a))}),l()()}if(i&2){let t=g();n(),d("packages",t.combo)("currencySymbol",t.reserva==null||t.reserva.ofertaSelecionada==null||t.reserva.ofertaSelecionada.tarifa==null?null:t.reserva.ofertaSelecionada.tarifa.moeda)("isDesktop",t.isDesktop)("selectedPackage",t.selectedCombo)("monthlyFlow",(t.reserva==null||t.reserva.ofertaSelecionada==null?null:t.reserva.ofertaSelecionada.mensal)??!1)("changeFlow",!1)("offerSelectedByUser",t.offerSelectedByUser())}}function Sb(i,r){if(i&1){let t=k();s(0,"ds-new-button",14),b("click",function(){P(t);let a=g(2);return S(a.abrirModalConhecaOsProdutos())}),p(1),c(2,"translate"),l()}i&2&&(n(),f(" ",u(2,1,"reserva.passo3.adicionais.conheca")," "))}function yb(i,r){if(i&1){let t=k();s(0,"section",9)(1,"div",10)(2,"h2",11),p(3),c(4,"translate"),l(),C(5,Sb,3,3,"ds-new-button",12),l(),s(6,"ds-additional-list",13),b("itemChanged",function(a){P(t);let o=g();return S(o.handleAlteracaoEquipamentosOpcionais(a))}),l()()}if(i&2){let t=g();n(3),f(" ",u(4,10,"reserva.passo3.adicionais.titulo")," "),n(2),d("ngIf",t.reservaBrasil||t.reservaColombia||t.reservaArgentina),n(),d("currencySymbol",t.reserva==null||t.reserva.ofertaSelecionada==null?null:t.reserva.ofertaSelecionada.tarifa.moeda)("isMexico",t.isMexico)("gridCount",t.isDesktop?2:1)("isCombo",t.reserva==null||t.reserva.ofertaSelecionada==null?null:t.reserva.ofertaSelecionada.combo)("isHertz",t.reserva==null?null:t.reserva.agenciaParceira)("items",t.reserva==null||t.reserva.ofertaSelecionada==null?null:t.reserva.ofertaSelecionada.itens)("isDesktop",t.isDesktop)("featured",t.reserva==null?null:t.reserva.ofertaSelecionada.destaque)}}function Mb(i,r){if(i&1){let t=k();s(0,"section",9)(1,"div",15)(2,"h2",16),p(3),c(4,"translate"),l()(),s(5,"app-rental-add-ons",17),b("itemChanged",function(a){P(t);let o=g();return S(o.handleAlteracaoEquipamentosOpcionais(a))}),l()()}if(i&2){let t=g();n(3),f(" ",u(4,11,"reserva.passo3.adicionais.supplementYourIncome")," "),n(2),d("isHertz",t.reserva==null?null:t.reserva.agenciaParceira)("isCombo",t.reserva==null||t.reserva.ofertaSelecionada==null?null:t.reserva.ofertaSelecionada.combo)("isDesktop",t.isDesktop)("rentInMexico",t.rentInMexico)("rentInColombia",t.reservaColombia)("rentInArgentina",t.reservaArgentina)("rentInBrasil",t.reservaBrasil)("currencySymbol",t.reserva==null||t.reserva.ofertaSelecionada==null?null:t.reserva.ofertaSelecionada.tarifa.moeda)("items",t.reserva==null||t.reserva.ofertaSelecionada==null?null:t.reserva.ofertaSelecionada.itens)("featured",t.reserva==null?null:t.reserva.ofertaSelecionada.destaque)}}function Db(i,r){i&1&&(s(0,"section",18),h(1,"app-info",19),c(2,"translate"),c(3,"translate"),l()),i&2&&(n(),d("title",u(2,3,"msgAdditionalphysical.title"))("description",u(3,5,"msgAdditionalphysical.description"))("color","info"))}function wb(i,r){if(i&1&&h(0,"app-toast-erro",20),i&2){let t=g();d("mensagensErro",t.mensagensUsuario)}}var Zd={protecaoCarro:"PROTECAO_CARRO",coberturaParaTerceiros:"SEGURO_TERCEIRO",ProtecaoTotalAvarias:"COPARTICIPACAO_REDUZIDA",ProtecaoDeVidrosPremiumEPneus:"PROTECAO_VIDRO_PNEUS"},Yd=(()=>{let r=class r{constructor(e,a,o,m,_,x,O,R,K,me){this.breakpointService=e,this.cotacaoService=a,this.progressSpinner=o,this._googleAnalyticsService=m,this.internacionalizacaoService=_,this.dialog=x,this.insiderService=O,this.bundleService=R,this.featureFlagService=K,this.platform=me,this.reserva={},this.showComboProtection=!1,this.showComboOrAdditional=!1,this.protecaoPreSelecionada="",this.offerSelectedByUser=It.required(),this.equipamentosOpcionaisChanged=new W,this.listAdditionalEventSent=!1,this.status=0,this.hideRemoveProtection=!0,this.newOfferSelected=!1,this.isAdditionalPhysical=!1,this.adicionalSelecionado=new Array,this.selectedProtectionMexico=new Array,this.addCarbonFree=new Array,this.convertComboToAdditional=[],this.changeComboIndex=!1,this.isBrowser=Be(this.platform)}ngOnChanges(e){if(e.reserva){this.tratarEquipamentosOpcionaisAlteracaoReserva(),this.checkAdicionais();let a=this.reserva.ofertaSelecionada?.itens.filter(o=>!o.permiteAlteracao&&o.codigoAdicionalFrigga===Zd.protecaoCarro||!o.permiteAlteracao&&o.codigoAdicionalFrigga===Zd.coberturaParaTerceiros)||[];this.hideRemoveProtection=a?.length<=1,this.showComboProtection&&(this.combo=this.reserva.ofertaSelecionada?.combos)}this.checkListAdditionalVisibility()}get isListAdditionalVisible(){return!this.rentInMexico&&!this.reservaColombia&&!this.showComboOrAdditional}checkListAdditionalVisibility(){this.isListAdditionalVisible&&!this.listAdditionalEventSent&&this.reserva?.ofertaSelecionada?.itens&&this.reserva?.ofertaSelecionada?.itens?.length>0&&(this.listAdditionalEventSent=!0,this._googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"avulsos_screen",action:"impression"}))}ngOnInit(){this.subscriptionBreakpoint=this.breakpointService.isDesktop.subscribe(e=>this.isDesktop=e),this.subscriptionBreakpoint=this.breakpointService.isTablet.subscribe(e=>this.isTablet=e),this.verificaCodigoPaisAgenciaRetirada(this.reserva.codigoPaisAgenciaRetirada),this.codigoPaisDefault=this.internacionalizacaoService.recuperarCodigoPais(),this.isMexico=this.codigoPaisDefault===pe,this.tratarEquipamentosOpcionaisAlteracaoReserva(),this.checkAdicionais(),this.selectedProtectionMexico?.length&&this.recalcularOferta(this.selectedProtectionMexico),this.showComboProtection&&(this.combo=this.reserva.ofertaSelecionada?.combos,this.hasPreFlaggedCombo=this.combo?.find(e=>e?.selecionado),this.hasPreFlaggedCombo&&this.trackComboSelection(this.hasPreFlaggedCombo?.nomeComercial,!0)),this.isAdditionalPhysical=this.reserva?.ofertaSelecionada?.itens?.length==0,this.checkListAdditionalVisibility()}verificaCodigoPaisAgenciaRetirada(e){this.reservaBrasil=e===le,this.reservaColombia=e===Fe,this.reservaArgentina=e===Yi,this.rentInMexico=e===pe}ngOnDestroy(){this.subscriptionBreakpoint?.unsubscribe()}tratarEquipamentosOpcionaisAlteracaoReserva(){return ji(this,null,function*(){if(this.reserva.alteracaoReserva&&this.reserva.ofertaSelecionada&&!this.reserva.ofertaSelecionada.ofertaAlterada&&this.reserva.ofertaSelecionada.itens&&this.reserva.adicionaisReserva){this.reserva.ofertaSelecionada.ofertaAlterada=!0;let e=this.filtrarAdicionaisParaAtualizar();this.cotacaoService.loadingOferta(!0),this.progressSpinner.spin$.next(!0);let a=e.filter(x=>x.tipoItem===je.SERVICO),o=yield this.atualizarOpcionaisNaOferta(a),m=e.filter(x=>x.tipoItem===je.EQUIPAMENTO),_=yield this.atualizarEquipamentosNaOferta(m);_?this.equipamentosOpcionaisChanged.emit(X($({},_),{ofertaAlterada:!0})):o&&this.equipamentosOpcionaisChanged.emit(X($({},o),{ofertaAlterada:!0})),this.cotacaoService.loadingOferta(!1),this.progressSpinner.spin$.next(!1),this.exibirToastErro=this.erroAtualizarOferta}})}handleClickInfoCombo(e){this.abrirModalConhecaOsOpcionais(e?.nomeComercial)}filtrarAdicionaisParaAtualizar(){let e=[];return this.reserva.ofertaSelecionada.itens.forEach(a=>{let o=this.reserva.adicionaisReserva.find(m=>m.nome===a.descricao);o&&!a.selecionado?e.push(X($({},a),{quantidade:o.unidades,quantidadeDeDiarias:o.quantidadeDeDiarias,selecionado:!0})):!o&&a.selecionado&&a.permiteAlteracao&&e.push(X($({},a),{quantidade:0,quantidadeDeDiarias:0,selecionado:!1}))}),e}atualizarOpcionaisNaOferta(e){let a,o=this.createRecalculationItem(e);if(this.reserva.ofertaSelecionada){let m=this.setSelectedPickUpType(this.reserva.ofertaSelecionada);this.cotacaoService.RecalcularOfertaBundle(this.reserva.idCotacao,this.reserva.ofertaSelecionada.ofertaId,o,this.reserva?.codigoPaisAgenciaRetirada,m).pipe(w(1)).subscribe(_=>{a=_},_=>{_&&_.error&&_.error.mensagensUsuario&&(this.mensagensUsuario=_.error.mensagensUsuario),e.forEach(x=>{x.selecionado=!o[0].selecionado}),this.cotacaoService.loadingOferta(!1),this.progressSpinner.spin$.next(!1),this.erroAtualizarOferta=!0})}return a}
5atualizarEquipamentosNaOferta(e){return ji(this,null,function*(){let a,o=this.createRecalculationItem(e);if(this.reserva.ofertaSelecionada){let m=this.setSelectedPickUpType(this.reserva.ofertaSelecionada);this.cotacaoService.RecalcularOfertaBundle(this.reserva.idCotacao,this.reserva.ofertaSelecionada.ofertaId,o,this.reserva?.codigoPaisAgenciaRetirada,m).pipe(w(1)).subscribe(_=>{a=_},_=>{_&&_.error&&_.error.mensagensUsuario&&(this.mensagensUsuario=_.error.mensagensUsuario),e.forEach(x=>{x.selecionado=!o[0].selecionado}),this.cotacaoService.loadingOferta(!1),this.progressSpinner.spin$.next(!1),this.erroAtualizarOferta=!0})}return a})}createRecalculationItem(e){let a=new Array;return e.forEach(o=>{o.tipoItem===je.SERVICO?o.permiteAlteracao&&a.push({identificador:o.adicionalId,selecionado:o.selecionado,permiteAlteracao:o.permiteAlteracao}):o.permiteAlteracao&&a.push({identificador:o.adicionalId,selecionado:o.selecionado,quantidade:o.quantidade,permiteAlteracao:o.permiteAlteracao})}),a}handleAdditionalHighlightSelection(e){this.reserva.ofertaSelecionada?.destaque?.codigo===e?.item?.codigoAdicionalFrigga&&this.isBrowser&&!e?.item?.selecionado&&localStorage.setItem("additional_highlight",JSON.stringify(!0))}handleAlteracaoEquipamentosOpcionais(e){this.handleAdditionalHighlightSelection(e);let a;e.length?a=e:a=[e.item];let o=this.createRecalculationItem(a);this.recalcularOferta(o,a[0])}recalcularOferta(e,a){if(this.reserva.idCotacao&&this.reserva?.ofertaSelecionada){this.cotacaoService.loadingOferta(!0),this.progressSpinner.spin$.next(!0);let{idCotacao:o,ofertaSelecionada:m}=this.reserva,_=this.setSelectedPickUpType(m);this.cotacaoService.RecalcularOfertaBundle(o,m.ofertaId,e,this.reserva?.codigoPaisAgenciaRetirada,_).pipe(w(1)).subscribe(x=>{a&&this.preencherDataLayer(x,a),this.equipamentosOpcionaisChanged.emit(X($({},x),{ofertaAlterada:!0,combos:this.combo})),this.cotacaoService.loadingOferta(!1),this.progressSpinner.spin$.next(!1),this.exibirToastErro=!1},({error:x})=>{(x?.error||x.mensagensUsuario)&&(this.mensagensUsuario=x?.error?.mensagensUsuario?x.error.mensagensUsuario:x.mensagensUsuario),a&&(a.selecionado=!e[0].selecionado),this.cotacaoService.loadingOferta(!1),this.progressSpinner.spin$.next(!1),this.exibirToastErro=!0})}}abrirModalConhecaOsProdutos(){this.dialog.open(sc,{maxWidth:this.isDesktop?"60vw":"100%",maxHeight:this.isDesktop?"80vh":"100%",panelClass:"matDialog100Percent",data:{isBrasil:this.reservaBrasil,isColombia:this.reservaColombia,isArgentina:this.reservaArgentina}})}abrirModalConhecaOsOpcionais(e){this.dialog.open(Qo,{maxWidth:this.isDesktop?"35vw":"95vw",maxHeight:this.isDesktop?"80vh":"70vh",panelClass:"matDialog100Percent",data:this.reserva?.ofertaSelecionada?.mensal}),this.trackViewDetails(e)}openModalDefaultPFAM(){this.changeComboIndex=!1,this.dialog.open(lc,{maxWidth:this.isDesktop?"30vw":"100%",maxHeight:this.isDesktop?"auto":"42vh",disableClose:!0,data:{combos:this.combo}}).afterClosed().pipe(w(1)).subscribe(a=>{if(a){this.selectedCombo=a,this.setSelectedBundle(a),this.changeComboIndex=!0;return}this.selectedCombo.selecionado=!0,this.combo=this.combo.map(o=>o.codigo===this.selectedCombo.codigo?X($({},o),{selecionado:!0}):X($({},o),{selecionado:!1}))})}checkAdicionais(){if(this.codigoOferta!=this.reserva.ofertaSelecionada?.ofertaId&&this.status!==0){let e=this.createRecalculationItem(this.reserva?.ofertaSelecionada?.itens??[]);this.codigoOferta=this.reserva.ofertaSelecionada?.ofertaId??"",this.selectPreFlag(e),this.newOfferSelected=!0,this.recalcularOferta(e)}this.status===0&&this.reserva.ofertaSelecionada?.ofertaId&&(this.pushSelectedProtectionMexico(),this.codigoOferta=this.reserva.ofertaSelecionada.ofertaId)}selectPreFlag(e){if(!this.selectedProtectionMexico?.length||!e?.length)return;let a=this.selectedProtectionMexico[0]?.identificador;e.forEach(o=>{o.identificador===a&&(o.selecionado=!0,o.quantidade=1)})}pushSelectedProtectionMexico(){if(this.reserva?.ofertaSelecionada?.itens.length){for(let e of this.reserva.ofertaSelecionada.itens)if(e.codigoAdicionalFrigga===this.protecaoPreSelecionada&&!this.selectedProtectionMexico.some(a=>a.identificador===e.adicionalId))this.selectedProtectionMexico.push({identificador:e.adicionalId,selecionado:!0,quantidade:1});else if(!this.protecaoPreSelecionada&&e.codigoAdicionalFrigga==="PROTECCION_PARCIAL"){this.selectedProtectionMexico.push({identificador:e.adicionalId,selecionado:!0,quantidade:1});break}}}preencherDataLayer(e,a){let o=e.itens.find(x=>x.codigoAdicionalFrigga===a.codigoAdicionalFrigga),m=e.combos.find(x=>x.codigo===a.codigoAdicionalFrigga);o?.selecionado||m?.selecionado?this.preencherDataLayerAdicionar(e):this.preencherDataLayerRemover(e,a)}preencherDataLayerAdicionar(e){let a=e.itens.filter(m=>m.selecionado).map(m=>this.criarProdutoDataLayer(m)),o=this.convertComboToAdditional[0]?this.criarProdutoDataLayer(this.convertComboToAdditional[0]):{};this._googleAnalyticsService.preencherDataLayer({event:"eec.addToCart",eventCategory:"ecommerce",eventAction:"add to cart",ehi:!1,ecommerce:{currencyCode:e.tarifa.moeda==="R$"?"BRL":e.tarifa?.moeda,add:{products:$({bundle:$({},o)},a)}}})}preencherDataLayerRemover(e,a){this._googleAnalyticsService.preencherDataLayer({event:"eec.removeFromCart",eventCategory:"ecommerce",eventAction:"remove from cart",ehi:!1,ecommerce:{currencyCode:e.tarifa.moeda==="R$"?"BRL":e.tarifa?.moeda,remove:{products:[this.criarProdutoDataLayer(a)]}}})}criarProdutoDataLayer(e){return{id:e.codigoAdicionalFrigga,name:e.descricao,category:e.tipoItem==="Servico"?"Opcionais":"Equipamentos",price:e.valor,quantidade:e.quantidade===0?1:e.quantidade}}handleBundleProtection(e){return ji(this,null,function*(){let a=this.reserva.ofertaSelecionada?.combos.some(o=>o.obrigatorio);if(this.selectedCombo=e,a&&this.reserva?.ofertaSelecionada?.especial&&!e?.selecionado){this.openModalDefaultPFAM();return}this.handleUpsellFlow(e)})}handleUpsellFlow(e){let a=this.combo?.findIndex(x=>x?.codigo===e?.codigo),o=this.featureFlagService.valueFlag("upsell_bundles_index"),m=this.insiderService.preFlagPremiumBundleActivated()?o?.indexes?.COMPLETE:o?.indexes?.INTERMEDIATE;if(!o?.activeAD||this.bundleService.sawUpsellModal||!this.hasPreFlaggedCombo||e?.selecionado||a!==m||this.reserva?.ofertaSelecionada?.mensal){this.setSelectedBundle(e);return}let _=o?.indexes?.INTERMEDIATE;this.openModalUpsell(null,_)}openModalUpsell(e,a){let o=this.combo?.[a],m=a>0?this.combo?.[a-1]:null,{ofertaSelecionada:_,tipoRetiradaSelecionado:x}=this.reserva||{};this.dialog.open(Kd,{height:this.isDesktop?"auto":"100%",maxHeight:this.isDesktop?"85vh":"100%",maxWidth:this.isDesktop?"585px":"100%",disableClose:!0,data:{modalKey:Ii.DOWNGRADEINCENTIVE,showPricePerDayTitle:!1,pricePerDay:o?.diferencaValorDiariaComboInferior,totalPrice:o?.totalComDesconto,currency:_?.tarifa?.moeda??"R$",desktop:this.isDesktop,currentBundle:m,upgradeBundle:o,reservation:{cotationId:this.reserva?.ofertaSelecionada?.cotacaoId??"",offerId:this.reserva?.ofertaSelecionada?.ofertaId??"",pickUpType:x==Ge.FAST?ee.FAST:ee.BALCAO},coparticipationAmount:e?.valorCoparticipacao,reducedCoparticipationAmount:e?.valorCoparticipacaoReduzida}}).afterClosed().pipe(w(1)).subscribe(R=>{R&&(this.selectedCombo=R,this.selectedCombo.selecionado=!0),this.setSelectedBundle(this.selectedCombo),this.bundleService.setS
5awUpsellModal("true")})}setSelectedBundle(e){let a=new Array;this.convertComboToAdditional=[{adicionalId:"",agrupamento:"",codigo:0,codigoAdicionalFrigga:e.codigo,descricaoAdicionalFrigga:"",dependencias:[],descricao:e.nome,incluso:!1,permiteAlteracao:e.permiteAlteracao,quantidade:1,quantidadeDeDiarias:e.quantidadeDiariasCobradas,selecionado:e.selecionado,tipoCoberturaAdicional:cc.COMBO,tipoCobranca:dc.DIARIA,tipoItem:je.SERVICO,unidades:1,valor:e.valorDiariaComDesconto,valorTotal:e.totalComDesconto}],this.newOfferSelected?this.newOfferSelected=!1:(a.push({identificador:e.codigo,selecionado:e.selecionado||!1}),this.handleOfferRecalculate(a,this.convertComboToAdditional[0])),this.trackComboSelection(e.nomeComercial,e.selecionado),this.isAdditionalPhysical=this.reserva.ofertaSelecionada?.itens?.length==0}handleOfferRecalculate(e,a){this.reserva&&this.reserva.ofertaSelecionada&&this.reserva.ofertaSelecionada.itens&&this.recalcularOferta(e,a)}handleCarrouselClick(e){this.trackEvent("__MensuraEventos",`click_${e}`,"CTA",`btn_seta_bundle_${e}`)}handleChangeItemMobile(e){this.viewBundlesEvent(e.nomeComercial)}handleViewCombos(){this.reserva.ofertaSelecionada?.combos?.forEach(a=>{this.viewBundlesEvent(a.nomeComercial)})}viewBundlesEvent(e){this.trackEvent("__MensuraEventos","Bundles exibido","impression",`view_bundles_${ft(e.toLowerCase())}`)}trackViewDetails(e){this.trackEvent("__MensuraEventos","clique","CTA",e?`ver_detalhes_${ft(e.toLowerCase())}`:"ver_detalhes")}trackComboSelection(e,a){let o=a?"selecionar":"remover";this.trackEvent("__MensuraEventos","clique","CTA",`${o}_${ft(e.toLowerCase())}`)}trackEvent(e,a,o,m){this._googleAnalyticsService.preencherDataLayer({event:e,category:a,action:o,label:m})}setSelectedPickUpType(e){return e?.grupoVeiculo?.tipoRetirada?this.reserva?.tipoRetiradaSelecionado==Ge.FAST?ee.FAST:ee.BALCAO:null}};r.\u0275fac=function(a){return new(a||r)(v(De),v(ht),v(gt),v(Q),v(it),v(re),v(_t),v(Mi),v(wt),v(Ve))},r.\u0275cmp=M({type:r,selectors:[["app-opcionais-equipamentos"]],inputs:{reserva:"reserva",showComboProtection:"showComboProtection",showComboOrAdditional:"showComboOrAdditional",protecaoPreSelecionada:"protecaoPreSelecionada",offerSelectedByUser:[1,"offerSelectedByUser"]},outputs:{equipamentosOpcionaisChanged:"equipamentosOpcionaisChanged"},standalone:!1,features:[nt],decls:9,vars:8,consts:[["id","lista-de-adicionais",1,"lista-de-adicionais"],[1,"lista-de-adicionais-conteudo"],[3,"ngClass"],["class","list-combo","id","bundles",4,"ngIf"],["class","list-additional",4,"ngIf"],["class","info-physical-additional",4,"ngIf"],[3,"mensagensErro",4,"ngIf"],["id","bundles",1,"list-combo"],[3,"handlePackageSelection","handleComparationClick","handleCarrouselClick","handleChangeItem","handleViewPackages","packages","currencySymbol","isDesktop","selectedPackage","monthlyFlow","changeFlow","offerSelectedByUser"],[1,"list-additional"],[1,"lista-de-adicionais-conteudo-header","lista-de-adicionais-conteudo-header--border-botom","lista-de-adicionais-conteudo-header--flex"],[1,"lista-de-adicionais-conteudo-header__titulo"],["theme","link-primary",3,"click",4,"ngIf"],[3,"itemChanged","currencySymbol","isMexico","gridCount","isCombo","isHertz","items","isDesktop","featured"],["theme","link-primary",3,"click"],[1,"lista-de-adicionais-conteudo-header","lista-de-adicionais-conteudo-header--rental-add-ons-title","lista-de-adicionais-conteudo-header--flex"],[1,"lista-de-adicionais-conteudo-header__rental-add-ons-title"],[3,"itemChanged","isHertz","isCombo","isDesktop","rentInMexico","rentInColombia","rentInArgentina","rentInBrasil","currencySymbol","items","featured"],[1,"info-physical-additional"],[3,"title","description","color"],[3,"mensagensErro"]],template:function(a,o){a&1&&(s(0,"section",0)(1,"div")(2,"div",1)(3,"div",2),C(4,Pb,2,7,"section",3)(5,yb,7,12,"section",4)(6,Mb,6,13,"section",4)(7,Db,4,7,"section",5),l(),C(8,wb,1,1,"app-toast-erro",6),l()()()),a&2&&(n(3),d("ngClass",L(6,xb,!o.isTablet)),n(),d("ngIf",o.showComboOrAdditional),n(),d("ngIf",!o.rentInMexico&&!o.reservaColombia&&!o.reservaArgentina&&!o.showComboOrAdditional),n(),d("ngIf",(o.rentInMexico||o.reservaColombia||o.reservaArgentina)&&!o.showComboOrAdditional),n(),d("ngIf",!o.showComboOrAdditional&&(o.reserva==null?null:o.reserva.tipoRetiradaSelecionado)==="fast"&&!o.isAdditionalPhysical),n(),d("ngIf",o.exibirToastErro))},dependencies:[de,N,Ot,qa,J,Si,pc,mc,T],styles:[".lista-de-adicionais[_ngcontent-%COMP%]{background-color:#f2f2f2}.lista-de-adicionais-header[_ngcontent-%COMP%]{align-items:center;color:#01602a;cursor:pointer;display:flex;justify-content:space-between;padding-top:1.6rem;padding-bottom:1.6rem;transition:.2s}@media(min-width:992px){.lista-de-adicionais-header[_ngcontent-%COMP%]{display:none}}.lista-de-adicionais-header[_ngcontent-%COMP%]:hover{color:#1e852d}.lista-de-adicionais-header__titulo[_ngcontent-%COMP%]{font-size:1.6rem;line-height:2.4rem}.lista-de-adicionais-conteudo[_ngcontent-%COMP%]{background-color:#fff;padding-bottom:.6rem}.lista-de-adicionais-conteudo-header[_ngcontent-%COMP%]{margin:5rem 0 3rem}.lista-de-adicionais-conteudo-header--border-botom[_ngcontent-%COMP%]{border-bottom:1px solid #d6d6d6}.lista-de-adicionais-conteudo-header--flex[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;justify-content:center}@media(min-width:992px){.lista-de-adicionais-conteudo-header--flex[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between;padding-top:0}}.lista-de-adicionais-conteudo-header--rental-add-ons-title[_ngcontent-%COMP%]{margin-bottom:.8rem}.lista-de-adicionais-conteudo-header__titulo[_ngcontent-%COMP%]{color:#01602a;font-size:2.4rem;text-transform:math-auto}.lista-de-adicionais-conteudo-header__rental-add-ons-title[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-default);font-weight:700;font-family:Inter,LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:2.4rem;line-height:140%;text-transform:math-auto}.lista-de-adicionais-conteudo-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:LocalizaDinDisplay_Bold,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.6rem;margin:.5rem 0 2rem}.info-physical-additional[_ngcontent-%COMP%]{margin:1rem 0 3rem}"]});let i=r;return i})();var ca=class{};var kb=i=>({container:i}),Ib=(i,r)=>({nomeGrupo:i,descricaoGrupo:r});function Tb(i,r){if(i&1){let t=k();
5s(0,"div",5)(1,"header"),p(2),l(),s(3,"section")(4,"div",6)(5,"div",7),h(6,"p",8)(7,"img",9),l()(),s(8,"div",10)(9,"p"),p(10),c(11,"translate"),l(),s(12,"ds-new-button",11),b("click",function(){let a=P(t).$implicit,o=g();return S(o.cliqueUpgrade(a))}),p(13),c(14,"translate"),c(15,"translate"),l()()()()}if(i&2){let t=r.$implicit,e=r.index,a=g();n(2),D(a.titulo),n(4),d("innerHtml",a.frase[e],te),n(),d("src",Re(t.urlImagem),bt),n(3),f(" ",y(11,7,"reserva.passo3.upgrades.grupo",Ue(14,Ib,t.nomeGrupo,t.descricao.toLowerCase()))," "),n(2),d("active",t.selecionado),n(),f(" ",t.selecionado?u(14,10,"reserva.passo3.upgrades.cancelar"):u(15,12,"reserva.passo3.upgrades.fazerUpgrade")," ")}}function Ab(i,r){if(i&1&&h(0,"app-toast-erro",12),i&2){let t=g();d("mensagensErro",t.mensagensUsuario)}}var ci={CONCEDIDO_FRASE:"reserva.passo3.upgrades.concedido.frase",CONCEDIDO_TITULO:"reserva.passo3.upgrades.concedido.titulo",GARANTIDO_FRASE:"reserva.passo3.upgrades.garantido.frase",GARANTIDO_TITULO:"reserva.passo3.upgrades.garantido.titulo",VENDIDO_FRASE:"reserva.passo3.upgrades.vendido.frase",VENDIDO_TITULO:"reserva.passo3.upgrades.vendido.titulo"},Qd=(()=>{let r=class r{constructor(e,a,o,m,_){this.cotacaoService=e,this.decimalPipe=a,this.progressSpinner=o,this.translateService=m,this.monitoringService=_,this.upgradeChanged=new W,this.frase=new Array}ngOnInit(){let e=this.upgrades?.map(a=>a.tipoUpgrade).filter(Boolean).join(", ");this.sendEvent("impression",e),window.dataLayer=window.dataLayer||[],this.tratarUpgrade()}tratarUpgrade(){this.upgrades.forEach(e=>{switch(e.tipoUpgrade){case"Vendido":{let a=`${this.moeda} ${this.decimalPipe.transform(e.valorAdicional,"1.2-2")}`;this.moeda==="MXN"&&(a=a.replace(",",".")),this.translateService.get([ci.VENDIDO_FRASE,ci.VENDIDO_TITULO],{valor:a}).pipe(w(1)).subscribe(o=>{this.frase.push(o[ci.VENDIDO_FRASE]),this.titulo=o[ci.VENDIDO_TITULO]});break}case"Concedido":{this.translateService.get([ci.CONCEDIDO_FRASE,ci.CONCEDIDO_TITULO]).pipe(w(1)).subscribe(a=>{this.frase.push(a[ci.CONCEDIDO_FRASE]),this.titulo=a[ci.CONCEDIDO_TITULO]});break}case"Garantido":{this.translateService.get([ci.GARANTIDO_FRASE,ci.GARANTIDO_TITULO]).pipe(w(1)).subscribe(a=>{this.frase.push(a[ci.GARANTIDO_FRASE]),this.titulo=a[ci.GARANTIDO_TITULO]});break}}})}cliqueUpgrade(e){let{codigo:a,descricao:o,nomeGrupo:m,selecionado:_,tipoUpgrade:x}=e,O=new ca;O.selecionado=!_,O.identificador=a,this.sendEvent(_?"Upgrade removido":"Upgrade selecionado",`${x} - ${m} - ${o}`),this.recalcularOferta(O)}recalcularOferta(e){this.cotacaoService.loadingOferta(!0),this.progressSpinner.spin$.next(!0),this.cotacaoService.RecalcularOfertaBundle(this.cotacaoId,this.ofertaId,[e],this.codigoPaisAgenciaRetirada,this.setSelectedPickUpType(),gc.UPGRADE).pipe(w(1),Dr(a=>(this.exibirToastErroFazerUpgrade=!1,Pr(a)))).subscribe(a=>{this.upgradeChanged.emit(a),this.cotacaoService.loadingOferta(!1),this.progressSpinner.spin$.next(!1)},a=>{a&&a.error&&a.error.mensagensUsuario&&(this.mensagensUsuario=a.error.mensagensUsuario),this.exibirToastErroFazerUpgrade=!0,this.cotacaoService.loadingOferta(!1),this.progressSpinner.spin$.next(!1),this.exibirToastErroFazerUpgrade=!0})}setSelectedPickUpType(){return this.offerPickUpType?this.selectedPickUpType==Ge.FAST?ee.FAST:ee.BALCAO:null}sendEvent(e,a){this.monitoringService.sendEvent($({component:"selecao_upgrade",action:e},a&&{componentDescription:a}))}};r.\u0275fac=function(a){return new(a||r)(v(ht),v(yt),v(gt),v(G),v(Dt))},r.\u0275cmp=M({type:r,selectors:[["app-selecao-upgrades"]],inputs:{upgrades:"upgrades",cotacaoId:"cotacaoId",ofertaId:"ofertaId",moeda:"moeda",isTablet:"isTablet",offerPickUpType:"offerPickUpType",selectedPickUpType:"selectedPickUpType",codigoPaisAgenciaRetirada:"codigoPaisAgenciaRetirada"},outputs:{upgradeChanged:"upgradeChanged"},standalone:!1,decls:7,vars:8,consts:[[3,"ngClass"],[1,"upgrades__titulo"],[1,"upgrades__itens"],["class","upgrade",4,"ngFor","ngForOf"],[3,"mensagensErro",4,"ngIf"],[1,"upgrade"],[1,"carro"],[1,"box"],[3,"innerHtml"],["alt","","aria-hidden","true","loading","lazy",3,"src"],[1,"coluna"],[3,"click","active"],[3,"mensagensErro"]],template:function(a,o){a&1&&(s(0,"div",0)(1,"h3",1),p(2),c(3,"translate"),l(),s(4,"div",2),C(5,Tb,16,17,"div",3),l(),C(6,Ab,1,1,"app-toast-erro",4),l()),a&2&&(d("ngClass",L(6,kb,!o.isTablet)),n(2),f(" ",u(3,4,"reserva.passo3.upgrades.titulo")," "),n(3),d("ngForOf",o.upgrades),n(),d("ngIf",o.exibirToastErroFazerUpgrade))},dependencies:[de,ae,N,Ot,J,T],styles:[".upgrades__titulo[_ngcontent-%COMP%]{color:#004521;margin-bottom:1.6rem}@media(min-width:1200px){.upgrades__itens[_ngcontent-%COMP%]{display:grid;grid-gap:1.8rem;grid-template-columns:1fr 1fr}}.upgrade[_ngcontent-%COMP%]{margin-bottom:16px}.upgrade[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{background:#01602a;color:#fff;font-size:1.6rem;padding:.8rem 1.6rem}.upgrade[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{background:#fff;padding:16px}.upgrade[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .carro[_ngcontent-%COMP%]{display:flex;flex-direction:row}.upgrade[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .carro[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{border:2px solid #004521;border-radius:.4rem;padding:2.1rem 2.5rem 1.8rem 1rem;position:relative;text-align:center;width:68%}.upgrade[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .carro[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{align-items:center;color:#01602a;font-family:LocalizaDinDisplay_Bold,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.6rem;line-height:2.1rem}.upgrade[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .carro[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:87px;position:absolute;right:-12.5rem;top:-8px;width:16.1rem}.upgrade[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .coluna[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin-top:1.8rem}.upgrade[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .coluna[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#004521;font-family:LocalizaDinDisplay_Bold,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.4rem;line-height:16px;max-width:13rem;text-transform:capitalize}"]});let i=r;return i})();var or=(function(i){return i.Passo2="Passo 2",i.Passo3="Passo 3",i})(or||{});var Rb=i=>({"btn__adicionar--disabled":i}),Xd=(()=>
5{let r=class r{constructor(e,a,o,m,_,x,O,R,K,me,ke,qe,at){this.matDialogRef=e,this.dialogData=a,this.router=o,this.authService=m,this.dialog=_,this.translateService=x,this.reservaStore=O,this.reservaAnalyticsService=R,this.cotacaoService=K,this.progressSpinner=me,this.featureToggleService=ke,this.googleAnalyticsService=qe,this.platform=at,this.reserva=new xs,this.disable=!1,this.featureToggleKey=ut.featureToggle.uniid,this.isUniIIDActive=!1,this.adicionalSelecionado=[],this.redirecionar=new W,this.isBrowser=Be(this.platform)}ngOnInit(){this.dialogData?.protecoes&&(this.protecoes=this.dialogData.protecoes),this.dialogData?.reserva&&(this.reserva=this.dialogData.reserva),this.dialogData?.isNoShow&&(this.isNoShow=this.dialogData.isNoShow),this.dialogData?.fccra&&(this.fccra=this.dialogData.fccra),this.dialogData?.isDesktop&&(this.isDesktop=this.dialogData.isDesktop),this.dialogData?.texto&&(this.texto=this.dialogData.texto),this.dialogData?.titulo&&(this.titulo=this.dialogData.titulo),this.usuario=this.authService.obterUsuarioLogado(),this.traduzirChavesMensagens(),this.DatalayerInicial()}DatalayerInicial(){let e=[];this.protecoes.map(o=>e.push(o.descricao)),this.protecoes.filter(o=>o.selecionado===!0).map(o=>this.adicionalSelecionado.push(o.descricao)),this.dataLayer("Impress\xE3o do Modal",e.join(", "))}traduzirChavesMensagens(){this.translateService.get("url.reserva.passo4").pipe(w(1)).subscribe(e=>{this.urlPassoQuatroReserva=e})}handleAlteracaoOpcionais({item:e}){if(e){this.item=e;let a=this.criarItemRecalculoCotacaoOpcional(e);this.itemSelecionado=a.selecionado===!0,this.itemSelecionado?this.disable=!0:this.disable=!1,this.recalcularOferta([a],e),this.preencherGa(e,jt.Opcionais,a),a.selecionado?this.adicionalSelecionado.push(e.descricao):this.adicionalSelecionado=this.adicionalSelecionado.filter(o=>o!=e.descricao)}else{this.item.selecionado=!this.item.selecionado;let a=this.criarItemRecalculoCotacaoOpcional(this.item);this.itemSelecionado=a.selecionado===!0,this.itemSelecionado?this.disable=!0:this.disable=!1,this.recalcularOferta([a],this.item),this.preencherGa(this.item,jt.Opcionais,a),a.selecionado?this.adicionalSelecionado.push(this.item.descricao):this.adicionalSelecionado=this.adicionalSelecionado.filter(o=>o!=this.item.descricao)}}criarItemRecalculoCotacaoOpcional(e){let{adicionalId:a,selecionado:o}=e,m=new ca;return m.identificador=a,m.selecionado=o,m}preencherGa(e,a,o){this.isBrowser&&(window.dataLayer=window.dataLayer||[],e.selecionado||o.selecionado?(this.reservaAnalyticsService.preencherClick(e,or.Passo3,a),this.reservaAnalyticsService.preencherAdd(e,a)):(this.reservaAnalyticsService.preencherClick(e,or.Passo3,a),this.reservaAnalyticsService.preencherRemove(e,a)))}recalcularOferta(e,a){this.cotacaoService.loadingOferta(!0),this.progressSpinner.spin$.next(!0),this.cotacaoService.RecalcularOfertaBundle(this.reserva.idCotacao,this.reserva.ofertaSelecionada.ofertaId,e,this.reserva?.codigoPaisAgenciaRetirada,this.setSelectedPickUpType()).pipe(w(1)).subscribe(o=>{this.manterQuantidadeSelecionada(o,this.reserva.ofertaSelecionada),this.salvarDadosStore(X($({},o),{ofertaAlterada:!0})),this.cotacaoService.loadingOferta(!1),this.progressSpinner.spin$.next(!1)},()=>{a&&(a.selecionado=!e[0].selecionado),this.cotacaoService.loadingOferta(!1),this.progressSpinner.spin$.next(!1)})}continuar(){this.dataLayer("Continuar sem Prote\xE7\xE3o"," "),this.item&&this.handleAlteracaoOpcionais(this.item),!this.usuario&&(this.isNoShow||this.fccra)?(this.logar(),this.closeModal()):(this.closeModal(),this.redirecionar.emit(!0))}adiconarProtecao(){this.itemSelecionado&&(this.dataLayer("Adicionar Prote\xE7\xF5es",this.adicionalSelecionado.join(", ")),!this.usuario&&(this.isNoShow||this.fccra)?(this.logar(),this.closeModal()):(this.closeModal(),this.redirecionar.emit(!0)))}manterQuantidadeSelecionada(e,a){e&&e.itens&&a&&a.itens&&e.itens.forEach(o=>{let m=a.itens.find(_=>o.adicionalId===_.adicionalId);m&&(o.quantidade=m.quantidade)})}salvarDadosStore(e){this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{ofertas:this.reserva.ofertas.map(a=>(a.ofertaId===e.ofertaId&&(a=X($({},a),{ofertaAlterada:e.ofertaAlterada})),a)),ofertaSelecionada:$({},e)}})}logar(){this.featureToggleService.validarEstadoFuncionalidade(this.featureToggleKey).pipe(w(1)).subscribe(e=>{this.isUniIIDActive=e.ativo,this.isUniIIDActive?this.uniIdLogin():this.openModalLogin()},e=>{console.log("erro ao buscar FT",e)})}openModalLogin(){this.dialog.open(fo,{minHeight:this.isDesktop?"51rem":"100%",maxWidth:this.isDesktop?"53.8rem":"100%",height:this.isDesktop?"auto":"100%",width:"100%"}).afterClosed().pipe(w(1)).subscribe(a=>{a&&(this.usuario=this.authService.obterUsuarioLogado(),this.usuario&&this.redirecionar.emit(!0))})}closeModal(){this.matDialogRef.close()}uniIdLogin(){let e=localStorage.getItem("reservaPasso3"),a=e?JSON.parse(e):null;a&&(a.reserva.isPasso3Concluido=!0,localStorage.setItem("reservaPasso3",JSON.stringify(a))),this.authService.grantCo
5dePostUniId()}dataLayer(e,a){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",ofertaSelecionada:this.reserva.ofertaSelecionada.descricao,category:"Modal Prote\xE7\xE3o",action:e,label:a})}setSelectedPickUpType(){return this.reserva?.ofertaSelecionada?.grupoVeiculo?.tipoRetirada?this.reserva?.tipoRetiradaSelecionado==Ge.FAST?ee.FAST:ee.BALCAO:null}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(ne),v(xe),v(Ye),v(re),v(G),v(fe),v(Yn),v(ht),v(gt),v(Qt),v(Q),v(Ve))},r.\u0275cmp=M({type:r,selectors:[["app-modal-sem-protecao"]],outputs:{redirecionar:"redirecionar"},standalone:!1,decls:16,vars:17,consts:[[1,"card"],[1,"card__btn-fechar",3,"click"],[3,"innerHTML"],[1,"card__box"],["src","assets/images/modal-sem-protecao.webp","alt","imagem ilustrativa","aria-hidden","true","loading","lazy"],[1,"card__protecoes"],[3,"itemChanged","currencySymbol","gridCount","isCombo","isHertz","items"],[1,"card__btn"],["type","button","size","md","theme","primary",1,"btn__adicionar",3,"click","disabled","ngClass"],["type","button","size","md","theme","link",1,"card__btn__continuar",3,"click"]],template:function(a,o){a&1&&(s(0,"div",0)(1,"button",1),b("click",function(){return o.closeModal()}),p(2,"x"),l(),h(3,"h3",2),s(4,"div",3),h(5,"img",4)(6,"p",2),l(),s(7,"div",5)(8,"ds-additional-list",6),b("itemChanged",function(_){return o.handleAlteracaoOpcionais(_)}),l()(),s(9,"div",7)(10,"ds-button",8),b("click",function(){return o.adiconarProtecao()}),p(11),c(12,"translate"),l(),s(13,"ds-button",9),b("click",function(){return o.continuar()}),p(14),c(15,"translate"),l()()()),a&2&&(n(3),d("innerHTML",o.titulo,te),n(3),d("innerHTML",o.texto,te),n(2),d("currencySymbol",o.reserva.ofertaSelecionada.tarifa.moeda)("gridCount",(o.isDesktop,1))("isCombo",o.reserva.ofertaSelecionada.combo)("isHertz",o.reserva.agenciaParceira)("items",o.protecoes),n(2),d("disabled",!o.disable)("ngClass",L(15,Rb,!o.disable)),n(),f(" ",u(12,11,"incentivoAsProtecoes.btnAdicionar")," "),n(3),f(" ",u(15,13,"incentivoAsProtecoes.btnContinuar")," "))},dependencies:[de,qa,Zi,T],styles:[".card[_ngcontent-%COMP%]{background:#fff;padding:4.5rem 2rem;position:relative}@media(min-width:1200px){.card[_ngcontent-%COMP%]{padding:4.5rem 5rem;min-height:51rem}}.card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.card__btn-fechar[_ngcontent-%COMP%]{background-color:transparent;color:#000;cursor:pointer;border:none;font-size:2.5rem;font-weight:bolder;position:absolute;right:.5rem;top:0;width:2rem;height:2rem}.card__box[_ngcontent-%COMP%]{padding:2rem 0}@media(min-width:1200px){.card__box[_ngcontent-%COMP%]{display:flex;padding:2rem 0}}.card__box[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 auto 2em;width:16em;display:block}@media(min-width:1200px){.card__box[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{padding-right:2rem;margin:auto;width:auto}}.card__box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center}@media(min-width:1200px){.card__box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left}}ds-additional-list[_ngcontent-%COMP%] .protection__title{display:none}ds-additional-list[_ngcontent-%COMP%] .protection__subTitle{display:none}ds-button[_ngcontent-%COMP%] button{margin:0 auto;width:27rem}.btn__adicionar--disabled[_ngcontent-%COMP%] .ds-button--primary{background:#f2f2f2}"]});let i=r;return i})();var Jd=(()=>{let r=class r{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!1)}continue(){this.dialogRef.close(!0)}};r.\u0275fac=function(a){return new(a||r)(v(Y))},r.\u0275cmp=M({type:r,selectors:[["app-alert-no-protection-selected"]],decls:20,vars:16,consts:[[1,"alert-no-protection-selected",3,"showModalCloseButton"],[1,"alert-no-protection-selected__header"],[1,"alert-no-protection-selected__header__title"],[1,"alert-no-protection-selected__header__close",3,"click"],[1,"alert-no-protection-selected__body"],["loading","lazy","src","assets\\images\\ilustracoes\\car-insurance.svg",1,"alert-no-protection-selected__body__image",3,"alt"],[1,"alert-no-protection-selected__body__content"],[1,"alert-no-protection-selected__footer"],["type","button",1,"alert-no-protection-selected__footer__button-secondary",3,"click"],["type","button",1,"alert-no-protection-selected__footer__button-basic-secondary",3,"click"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"div",1)(2,"h3",2),p(3),c(4,"translate"),l(),s(5,"button",3),b("click",function(){return o.close()}),h(6,"lds-icon-close"),l()(),s(7,"div",4),h(8,"img",5),c(9,"translate"),s(10,"p",6),p(11),c(12,"translate"),l()(),s(13,"div",7)(14,"button",8),b("click",function(){return o.close()}),p(15),c(16,"translate"),l(),s(17,"button",9),b("click",function(){return o.continue()}),p(18),c(19,"translate"),l()()()),a&2&&(d("showModalCloseButton",!1),n(3),f(" ",u(4,6,"alertNoProtectionSelected.title")," "),n(5),d("alt",u(9,8,"alertNoProtectionSelected.alt")),n(3),f(" ",u(12,10,"alertNoProtectionSelected.content")," "),n(4),f(" ",u(16,12,"alertNoProtectionSelected.btnSelectProtection")," "),n(3),f(" ",u(19,14,"alertNoProtectionSelected.btnContinue")," "))},dependencies:[U,A,se,Ke,T],styles:['.alert-no-protection-selected__header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start;gap:2.4rem}.alert-no-protection-selected__header__title[_ngcontent-%COMP%]{color:var(--lds-color-accent-primary-default);font-family:var(--lds-font-brand-family);font-size:2rem;font-weight:600;line-height:140%}.alert-no-protection-selected__header__close[_ngcontent-%COMP%]{display:flex;padding:0;border:none;color:var(--lds-color-neutral-icon-low);background-color:#0000;cursor:pointer}.alert-no-protection-selected__header__close[_ngcontent-%COMP%]:hover{opacity:.8;transition:opacity .2s}.alert-no-protection-selected__body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.alert-no-protection-selected__body__image[_ngcontent-%COMP%]{width:15rem;min-height:10.7rem;margin:1.6rem auto}.alert-no-protection-selected__body__content[_ngcontent-%COMP%]{color:var(--lds-color-neutral-text-low);font-family:var(--lds-font-functional-family);font-size:1.4rem;font-weight:400;line-height:150%}.alert-no-protection-selected__footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.8rem;margin-top:3.2rem}.alert-no-protection-selected__footer__button-secondary[_ngcontent-%COMP%], .alert-no-protection-selected__footer__button-basic-secondary[_ngcontent-%COMP%]{position:relative;width:100%;padding:.8rem 1.5rem;font-family:var(--lds-font-functional-family);font-size:1.6rem;font-weight:600;line-height:150%;text-align:center;cursor:pointer;transition:all .1s ease-out;overflow:hidden}.alert-no-protection-selected__footer__button-secondary[_ngcontent-%COMP%]:focus, .alert-no-protection-selected__footer__button-basic-secondary[_ngcontent-%COMP%]:focus{outline:2px solid var(--lds-state-focused-color);outline-offset:2px}.alert-no-protection-selected__footer__button-secondary[_ngcontent-%COMP%]:after, .alert-no-protection-selected__footer__button-basic-secondary[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.alert-no-protection-selected__footer__button-secondary[_ngcontent-%COMP%]:hover:after, .alert-no-protection-selected__footer__button-basic-secondary[_ngcontent-%COMP%]:hover:after{background-color:var(--lds-state-hovered-color);opacity:var(--lds-state-hovered-opacity)}.alert-no-protection-selected__footer__button-secondary[_ngcontent-%COMP%]{border:none;border-radius:2.4rem;color:var(--lds-color-accent-primary-contrast-auto);background-color:var(--lds-color-accent-primary-default)}.alert-no-protection-selected__footer__button-basic-secondary[_ngcontent-%COMP%]{border:none;border-radius:2.4rem;color:var(--lds-color-accent-primary-contrast-default);background-color:#0000}'],changeDetection:0});let i=r;return i})();var Bb=["*"];function Fb(i,r){if(i&1&&(s(0,"span"),p(1),c(2,"ldsCurrency"),l(
5)),i&2){let t=g();n(),q(" ",y(2,2,t.data==null?null:t.data.pricePerDay,t.data==null?null:t.data.currency)," ",t.translate().perDay," ")}}function Vb(i,r){if(i&1){let t=k();s(0,"nav")(1,"div",9),b("click",function(){P(t);let a=g();return S(a.openComparisonModal())}),p(2),l()()}if(i&2){let t=g();n(2),f(" ",t.translate().compareAllPackages," ")}}function zb(i,r){if(i&1&&h(0,"app-info",10),i&2){let t=g();d("title",t.translate().error.title)("description",t.translate().error.body)("icon","error")("color","error")}}function Lb(i,r){if(i&1&&(s(0,"span"),p(1),l()),i&2){let t=g();n(),q("",t.translate()[t.data==null?null:t.data.modalKey].btn1,"",t.data==null||t.data.upgradeBundle==null?null:t.data.upgradeBundle.nome)}}function Nb(i,r){if(i&1&&(s(0,"span",11),p(1),h(2,"mat-spinner"),l()),i&2){let t=g();n(),f(" ",t.translate().loading," ")}}var ar=(()=>{let r=class r{constructor(){this.selectedBundle=new W,this.translateService=I(G),this.dialog=I(re),this.cotationService=I(ht),this.data=I(ne),this.googleAnalyticsService=I(Q),this.rentalPackagesService=I(Yo),this.translate=Oe(this.translateService.stream("components.dumbs.upsellModals")),this.recalculationError=!1,this.isLoading=!1}ngOnInit(){let e=this.getEventCategory("modal");this.sendEvent(e,this.data?.currentBundle?.nome??"Sem Pacote","impression")}get isInfoBundlesActive(){return this.rentalPackagesService.infoBundlesActive(this.data?.monthly)}getEventCategory(e){return`upsell_upgrade_${e}`}openComparisonModal(){let e=this.getEventCategory("link");this.sendEvent(e,"Comparar Todos os Pacotes"),this.dialog.open(Qo,{maxWidth:this.data?.desktop?"35vw":"95vw",maxHeight:this.data?.desktop?"80vh":"70vh",panelClass:"matDialog100Percent",data:this.data?.monthly})}close(e){e||this.sentKeepEvent(),this.selectedBundle.emit(e)}handleSelectUpgradeBundle(e){this.sendEvent("upsell_upgrade_cta",`Upgrade ${this.data?.upgradeBundle?.nome}`),this.isLoading=!0,this.recalculationError=!1;let a=[{identificador:e?.codigo,selecionado:!0}],{cotationId:o,offerId:m,pickUpType:_,codigoPaisAgenciaRetirada:x}=this.data?.reservation||{};this.cotationService.RecalcularOfertaBundle(o,m,a,x,_).pipe(w(1),vo(()=>(this.recalculationError=!0,va)),He(()=>this.isLoading=!1)).subscribe(O=>{this.recalculationError=!1,this.close(O)})}sentKeepEvent(){let e=this.getEventCategory("cta"),a=this.data?.currentBundle?`Continuar Com ${this.data?.currentBundle?.nome}`:"Continuar Sem Pacote";this.sendEvent(e,a)}sendEvent(e,a,o="clicked"){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:e,action:o,label:`${this.data?.monthly?"AM ":""}${a}`})}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-modal-upsell"]],outputs:{selectedBundle:"selectedBundle"},ngContentSelectors:Bb,decls:26,vars:21,consts:[[3,"showModalCloseButton"],[1,"modal-upsell"],[4,"ngIf"],[1,"price-per-day"],[1,"default-btns"],["data-testId","recalculation-error",3,"title","description","icon","color",4,"ngIf"],["data-testId","upgrade-btn",3,"click","fullwidth"],["class","loading","data-testId","loading",4,"ngIf"],["theme","secondary","data-testId","current-btn",3,"click","fullwidth"],["data-testId","compare-all",3,"click"],["data-testId","recalculation-error",3,"title","description","icon","color"],["data-testId","loading",1,"loading"]],template:function(a,o){if(a&1&&(rt(),s(0,"app-modal",0)(1,"div",1)(2,"header")(3,"h2"),p(4),C(5,Fb,3,5,"span",2),l()(),s(6,"main"),We(7),B(8,Vb,3,1,"nav"),s(9,"section")(10,"p",3)(11,"span"),p(12),c(13,"ldsCurrency"),l(),p(14),l(),s(15,"p"),p(16),c(17,"ldsCurrency"),l()()(),s(18,"footer")(19,"div",4),C(20,zb,1,4,"app-info",5),s(21,"ds-new-button",6),b("click",function(){return o.handleSelectUpgradeBundle(o.data==null?null:o.data.upgradeBundle)}),C(22,Lb,2,2,"span",2)(23,Nb,3,1,"span",7),l(),s(24,"ds-new-button",8),b("click",function(){return o.close(null)}),p(25),l()()()()()),a&2){let m;d("showModalCloseButton",!1),n(4),f(" ",(m=o.translate()[o.data==null?null:o.data.modalKey])==null?null:m.title," "),n(),d("ngIf",o.data==null?null:o.data.showPricePerDayTitle),n(3),F(o.isInfoBundlesActive?8:-1),n(4),f("+ ",y(13,15,o.data==null?null:o.data.pricePerDay,o.data==null?null:o.data.currency)),n(2),f(" ",o.translate().day," "),n(2),q(" ",o.translate().totalPrice," ",
5y(17,18,o.data==null?null:o.data.totalPrice,o.data==null?null:o.data.currency)," "),n(4),d("ngIf",o.recalculationError),n(),d("fullwidth",!0),n(),d("ngIf",!o.isLoading),n(),d("ngIf",o.isLoading),n(),d("fullwidth",!0),n(),q(" ",o.translate()[o.data==null?null:o.data.modalKey].btn2,"",o.data==null||o.data.currentBundle==null?null:o.data.currentBundle.nome," ")}},dependencies:[se,oe,J,A,U,N,Si,mt,pt,Ne],styles:[".modal-upsell[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif}.modal-upsell[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:2.2rem;text-transform:none;color:#1e852d}.modal-upsell[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}.modal-upsell[_ngcontent-%COMP%] main[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{width:100%;text-align:center}.modal-upsell[_ngcontent-%COMP%] main[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:700;color:#007dbb;text-decoration:underline;cursor:pointer}.modal-upsell[_ngcontent-%COMP%] main[_ngcontent-%COMP%] .price-per-day[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700}.modal-upsell[_ngcontent-%COMP%] main[_ngcontent-%COMP%] .price-per-day[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:2.2rem}.modal-upsell[_ngcontent-%COMP%] main[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:400}.modal-upsell[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{width:100%}.modal-upsell[_ngcontent-%COMP%] footer[_ngcontent-%COMP%] .default-btns[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.modal-upsell[_ngcontent-%COMP%] footer[_ngcontent-%COMP%] .default-btns[_ngcontent-%COMP%] .mat-mdc-progress-spinner[_ngcontent-%COMP%]{margin-bottom:0}.modal-upsell[_ngcontent-%COMP%] footer[_ngcontent-%COMP%] .pre-flag-basic-incentive-btns[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.modal-upsell[_ngcontent-%COMP%] footer[_ngcontent-%COMP%] .pre-flag-basic-incentive-btns[_ngcontent-%COMP%] ds-new-button[_ngcontent-%COMP%]{width:100%}.modal-upsell[_ngcontent-%COMP%] footer[_ngcontent-%COMP%] .pre-flag-basic-incentive-btns[_ngcontent-%COMP%] .ds-new-button{text-transform:none;padding:0px 1rem;font-weight:700}@media(min-width:1200px){.modal-upsell[_ngcontent-%COMP%] footer[_ngcontent-%COMP%] .pre-flag-basic-incentive-btns[_ngcontent-%COMP%]{flex-direction:row}}.modal-upsell[_ngcontent-%COMP%] footer[_ngcontent-%COMP%] .pre-flag-to-basic-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:1rem}"]});let i=r;return i})();var Ub=i=>({name:i});function Gb(i,r){if(i&1&&(s(0,"li")(1,"mat-icon"),p(2,"done"),l(),s(3,"div"),p(4),l()()),i&2){let t=r.$implicit;n(4),D(t)}}function jb(i,r){if(i&1&&(s(0,"li")(1,"mat-icon"),p(2,"done"),l(),s(3,"div"),p(4),l()()),i&2){let t=r.$implicit;n(4),D(t)}}var xr=(()=>{let r=class r extends co{emitEvent(e){let a=e?"open":"close";this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"upsell_upgrade_details",action:"clicked",label:`${this.data?.monthly?"AM ":""}${a}`})}};r.\u0275fac=(()=>{let e;return function(o){return(e||(e=Hi(r)))(o||r)}})(),r.\u0275cmp=M({type:r,selectors:[["app-modal-upsell-comparison"]],features:[Po],decls:18,vars:9,consts:[[3,"selectedBundle"],[1,"modal-upsell-comparison"],[3,"opened","closed"],["data-testId","upsell-comparison-panel"],[4,"ngFor","ngForOf"],[1,"add-circle"],[1,"completo"]],template:function(a,o){a&1&&(s(0,"app-modal-upsell",0),b("selectedBundle",function(_){return o.close(_)}),s(1,"div",1)(2,"h3"),p(3),c(4,"translate"),l(),s(5,"section")(6,"mat-expansion-panel",2),b("opened",function(){return o.emitEvent(!0)})("closed",function(){return o.emitEvent(!1)}),s(7,"mat-expansion-panel-header",3)(8,"mat-panel-title"),p(9),l()(),s(10,"ul"),C(11,Gb,5,1,"li",4),l()()(),s(12,"section")(13,"mat-icon",5),p(14,"add_circle"),l()(),s(15,"section",6)(16,"ul"),C(17,jb,5,1,"li",4),l()()()()),a&2&&(n(3),f(" ",y(4,4,"components.dumbs.upsellModals."+(o.data==null?null:o.data.modalKey)+".subtitle",L(7,Ub,o.data==null||o.data.upgradeBundle==null?null:o.data.upgradeBundle.nome))," "),n(6),f(" ",o.data==null||o.data.currentBundle==null?null:o.data.currentBundle.nome," "),n(2),d("ngForOf",o.data==null?null:o.data.intermediatePackageItems),n(6),d("ngForOf",o.data==null?null:o.data.completePackageItems))},dependencies:[ar,gs,ms,us,fs,U,ae,Le,Ft,A,T],styles:[".modal-upsell-comparison[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}.modal-upsell-comparison[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.6rem;font-weight:400}.modal-upsell-comparison[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #d6d6d6;border-radius:.8rem}.modal-upsell-comparison[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]{background:none;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.4rem;font-weight:500;text-transform:uppercase}
5.modal-upsell-comparison[_ngcontent-%COMP%] .add-circle[_ngcontent-%COMP%]{color:#01602a}.modal-upsell-comparison[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{width:100%;text-align:center}.modal-upsell-comparison[_ngcontent-%COMP%] .completo[_ngcontent-%COMP%]{border:1px solid #01602a;padding:1.5rem;border-radius:.8rem}.modal-upsell-comparison[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0}.modal-upsell-comparison[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;gap:1rem;list-style:none;font-size:1.2rem;text-align:left}.modal-upsell-comparison[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#54b026;font-size:2rem}.modal-upsell-comparison[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%}"]});let i=r;return i})();var qb=i=>({name:i});function Hb(i,r){if(i&1&&(s(0,"p"),p(1),c(2,"ldsCurrency"),l()),i&2){let t=g();n(),f(" ",y(2,1,t.data==null?null:t.data.coparticipationAmount,t.data==null?null:t.data.currency)," ")}}var ep=(()=>{let r=class r extends co{};r.\u0275fac=(()=>{let e;return function(o){return(e||(e=Hi(r)))(o||r)}})(),r.\u0275cmp=M({type:r,selectors:[["app-modal-upsell-coparticipation"]],features:[Po],decls:23,vars:17,consts:[[3,"selectedBundle"],[1,"modal-upsell-coparticipation"],[1,"info"],[1,"material-icons-outlined"],[1,"values"],[1,"worst-option"],[3,"innerHTML"],[4,"ngIf"],[1,"best-option"]],template:function(a,o){a&1&&(s(0,"app-modal-upsell",0),b("selectedBundle",function(_){return o.close(_)}),s(1,"div",1)(2,"section",2)(3,"div")(4,"mat-icon",3),p(5,"info"),l()(),s(6,"p"),p(7),c(8,"translate"),l()(),s(9,"section",4)(10,"div",5)(11,"p"),p(12),l(),h(13,"p",6),C(14,Hb,3,4,"p",7),l(),s(15,"div",8)(16,"p"),p(17),l(),s(18,"p")(19,"span"),p(20),l(),p(21),c(22,"ldsCurrency"),l()()()()()),a&2&&(n(7),f(" ",y(8,9,"components.dumbs.upsellModals."+(o.data==null?null:o.data.modalKey)+".info",L(15,qb,o.data==null||o.data.upgradeBundle==null?null:o.data.upgradeBundle.nome))," "),n(5),q("",o.translate().worstOption,"",o.data==null||o.data.currentBundle==null?null:o.data.currentBundle.nome),n(),d("innerHTML",o.translate().worstOptionValue,te),n(),d("ngIf",o.data==null?null:o.data.coparticipationAmount),n(3),q("",o.translate().betterOption,"",o.data==null||o.data.upgradeBundle==null?null:o.data.upgradeBundle.nome),n(3),D(o.translate().betterOptionValue),n(),f(" ",y(22,12,o.data==null?null:o.data.reducedCoparticipationAmount,o.data==null?null:o.data.currency)," "))},dependencies:[ar,U,N,Le,Ft,A,Ne,T],styles:[".modal-upsell-coparticipation[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}.modal-upsell-coparticipation[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{width:100%;text-align:center}.modal-upsell-coparticipation[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{display:flex;gap:1.5rem;text-align:justify;background:#f2f2f2;padding:1.5rem;border-radius:.8rem}.modal-upsell-coparticipation[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:400}.modal-upsell-coparticipation[_ngcontent-%COMP%] .values[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.modal-upsell-coparticipation[_ngcontent-%COMP%] .values[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:1.4rem}@media(min-width:992px){.modal-upsell-coparticipation[_ngcontent-%COMP%] .values[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:1.6rem}}.modal-upsell-coparticipation[_ngcontent-%COMP%] .values[_ngcontent-%COMP%] .worst-option[_ngcontent-%COMP%]{color:#6e6e6e;font-weight:400}.modal-upsell-coparticipation[_ngcontent-%COMP%] .values[_ngcontent-%COMP%] .best-option[_ngcontent-%COMP%]{color:#1e852d;font-weight:700}"]});let i=r;return i})();var $b=i=>({name:i}),tp=(()=>{let r=class r{constructor(){this.data=I(ne),this.matDialogRef=I(Y),this.translateService=I(G),this.translate=Oe(this.translateService.stream("components.dumbs.upsellModals.success"))}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=M({type:r,selectors:[["app-modal-upsell-success"]],decls:12,vars:10,consts:[[3,"showModalCloseButton"],[1,"modal-upsell-success"],[3,"click","fullwidth"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"div",1)(2,"header")(3,"h2"),p(4),c(5,"translate"),l()(),s(6,"main")(7,"p"),p(8),l()(),s(9,"footer")(10,"ds-new-button",2),b("click",function(){return o.matDialogRef.close()}),p(11),l()()()()),a&2&&(d("showModalCloseButton",!1),n(4),f(" ",y(5,5,"components.dumbs.upsellModals.success.title",L(8,$b,o.data))," "),n(4),f(" ",o.translate().body," "),n(2),d("fullwidth",!0),n(),f(" ",o.translate().btn," "))},dependencies:[se,oe,J,A,T],styles:[".modal-upsell-success[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif}.modal-upsell-success[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:2.2rem;text-transform:none;color:#1e852d}.modal-upsell-success[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{font-size:1.6rem}.modal-upsell-success[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{width:100%}"]});let i=r;return i})();var Wb=i=>({percentage:i}),Kb=i=>({packageName:i});function Zb(i,r){if(i&1&&(s(0,"div",8)(1,"div",9)(2,"div"),p(3),c(4,"translate"),l(),s(5,"div",10),p(6),l()(),s(7,"div",11)(8,"div"),p(9),c(10,"translate"),l(),s(11,"div"),p(12),l()()()),i&2){let t=g();n(3),D(u(4,4,"modalWithoutCharge.withoutBundle")),n(3),f(" ",t.dialogData==null||t.dialogData.values==null?null:t.dialogData.values.valorPreAutorizacaoSemProtecaoFormatado," "),n(3),f(" ",y(10,6,"modalWithoutCharge.withBundle",L(9,Kb,t.dialogData==null?null:t.dialogData.packageName))," "),n(3),f(" ",t.dialogData==null||t.dialogData.values==null?null:t.dialogData.values.valorPreAutorizacaoComProtecaoFormatado," ")}}var ip=(()=>
5{let r=class r{constructor(e,a){this.matDialogRef=e,this.dialogData=a}close(e){this.matDialogRef.close(e)}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(ne))},r.\u0275cmp=M({type:r,selectors:[["app-modal-without-charge"]],decls:25,vars:25,consts:[[1,"modal-without-charge"],[1,"modal-without-charge__sub-title"],[1,"material-icons-outlined"],["class","modal-without-charge__values",4,"ngIf"],[1,"modal-without-charge__description"],[1,"modal-without-charge__buttons"],[3,"click","fullwidth"],["theme","secondary",3,"click","fullwidth"],[1,"modal-without-charge__values"],[1,"modal-without-charge__item","modal-without-charge__item--gray"],[1,"modal-without-charge__item--cut"],[1,"modal-without-charge__item","modal-without-charge__item--green"]],template:function(a,o){a&1&&(s(0,"app-modal",0)(1,"h3"),p(2),c(3,"translate"),c(4,"translate"),l(),s(5,"div",1)(6,"div")(7,"mat-icon",2),p(8," info "),l()(),s(9,"div")(10,"p"),p(11),c(12,"translate"),l()()(),C(13,Zb,13,11,"div",3),s(14,"p",4),p(15),c(16,"translate"),c(17,"translate"),l(),s(18,"div",5)(19,"ds-new-button",6),b("click",function(){return o.close(!1)}),p(20),c(21,"translate"),l(),s(22,"ds-new-button",7),b("click",function(){return o.close(!0)}),p(23),c(24,"translate"),l()()()),a&2&&(n(2),f(" ",!(o.dialogData==null||o.dialogData.values==null)&&o.dialogData.values.preAutorizacao?y(3,8,"modalWithoutCharge.title",L(23,Wb,o.dialogData==null||o.dialogData.values==null?null:o.dialogData.values.percentualDiferencaValoresPreAutorizacao)):u(4,11,"modalWithoutCharge.titleWithoutPreAuthorization")," "),n(9),f(" ",u(12,13,"modalWithoutCharge.subTitle")," "),n(2),d("ngIf",o.dialogData==null||o.dialogData.values==null?null:o.dialogData.values.valorPreAutorizacaoSemProtecao),n(2),f(" ",!(o.dialogData==null||o.dialogData.values==null)&&o.dialogData.values.preAutorizacao?u(16,15,"modalWithoutCharge.description"):u(17,17,"modalWithoutCharge.descriptionWithoutPreAuthorization")," "),n(4),d("fullwidth",!0),n(),f(" ",u(21,19,"modalWithoutCharge.buttons.adicionar")," "),n(2),d("fullwidth",!0),n(),f(" ",u(24,21,"modalWithoutCharge.buttons.continuar")," "))},dependencies:[U,N,se,oe,J,A,Le,Ft,T],styles:[".modal-without-charge[_ngcontent-%COMP%]{color:#4a4a4a}.modal-without-charge[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#004521;line-height:2rem;margin:1rem 0 2rem}.modal-without-charge__sub-title[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:2rem;background-color:#f2f2f2;border-radius:1rem;padding:1.5rem;margin-bottom:2rem}.modal-without-charge__values[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;margin-bottom:2rem;font-size:1.5rem}.modal-without-charge__item[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.modal-without-charge__item--cut[_ngcontent-%COMP%]{text-decoration:line-through}.modal-without-charge__item--gray[_ngcontent-%COMP%]{color:#6e6e6e}.modal-without-charge__item--green[_ngcontent-%COMP%]{color:#004521;font-weight:700}.modal-without-charge__description[_ngcontent-%COMP%]{font-size:1.4rem;line-height:2rem;margin-bottom:2rem;text-align:left}@media(min-width:992px){.modal-without-charge__description[_ngcontent-%COMP%]{text-align:center}}.modal-without-charge__buttons[_ngcontent-%COMP%]{display:flex;gap:1.6rem;align-items:center;flex-direction:column;justify-content:space-between}.modal-without-charge__buttons[_ngcontent-%COMP%] ds-new-button[_ngcontent-%COMP%]{width:100%}.modal-without-charge__buttons[_ngcontent-%COMP%] .ds-new-button{padding:0 2rem}@media(min-width:992px){.modal-without-charge__buttons[_ngcontent-%COMP%]{flex-direction:row}}"]});let i=r;return i})();var op=(()=>{let r=class r extends Qs{constructor(){super(...arguments),this.http=I(Do)}getCoparticipationValues(e){return this.http.post(`${this.APIURL}/Valores/coparticipacao`,e)}};r.\u0275fac=(()=>{let e;return function(o){return(e||(e=Hi(r)))(o||r)}})(),r.\u0275prov=$e({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();var Qb=(i,r,t)=>({numeroParcelas:i,moeda:r,valorParcelas:t}),Xb=i=>({dotersPoints:i}),Jb=i=>({"booking-details__button--flex":i});function ex(i,r){if(i&1&&(s(0,"p",10),p(1),c(2,"preco"),c(3,"translate"),l()),i&2){let t=g(2);n(),f(" ",y(3,4,"reserva.passo3.detalhesReserva.parcelamento",Kt(7,Qb,t.numeroParcelas||1,t.moeda,y(2,1,t.valorParcelas,t.moeda)))," ")}}function tx(i,r){if(i&1&&(s(0,"p",11),p(1),c(2,"ldsCurrency"),c(3,"translate"),l()),i&2){let t=g(2);
5n(),f(" ",y(3,4,"bookingSummary.dotersPoints",L(7,Xb,y(2,1,(t.reserva==null||t.reserva.ofertaSelecionada==null||t.reserva.ofertaSelecionada.tarifa==null||t.reserva.ofertaSelecionada.tarifa.parceiro==null?null:t.reserva.ofertaSelecionada.tarifa.parceiro.pontosValorTotal)||0,"DOTERS")))," ")}}function ix(i,r){if(i&1&&h(0,"p",12),i&2){let t=g(2);d("innerHTML",t.parcelamentoDaOferta==null||t.parcelamentoDaOferta.msgPadrao==null?null:t.parcelamentoDaOferta.msgPadrao.msg,te)}}function ox(i,r){if(i&1){let t=k();s(0,"div",4)(1,"div")(2,"p"),p(3),c(4,"translate"),l(),s(5,"button",5),b("click",function(){P(t);let a=g();return S(a.handleClickValueDetails.emit(!0))}),p(6),c(7,"translate"),l()(),s(8,"div",6)(9,"p"),p(10),c(11,"preco"),l(),C(12,ex,4,11,"p",7)(13,tx,4,9,"p",8)(14,ix,1,1,"p",9),l()()}if(i&2){let t=g();n(3),f(" ",u(4,7,"reserva.passo3.detalhesReserva.valorTotalPrevisto")," "),n(3),f(" ",u(7,9,"reserva.passo3.detalhesReserva.detalhesDaReserva")," "),n(4),q("",t.moeda," ",y(11,11,t.valorTotal,t.moeda)),n(2),d("ngIf",t.numeroParcelas>1&&(t.parcelamentoDaOferta==null?null:t.parcelamentoDaOferta.toggleParcelamento)||!t.isBrasil&&!t.codAgencia&&!t.reserva.parceiro),n(),d("ngIf",(t.reserva==null?null:t.reserva.parceiro)&&(t.reserva==null||t.reserva.parceiro==null?null:t.reserva.parceiro.partnerIdentifier)==="DOTERS"&&(t.reserva==null||t.reserva.parceiro==null?null:t.reserva.parceiro.usageType)==="use"),n(),d("ngIf",(t.parcelamentoDaOferta==null||t.parcelamentoDaOferta.msgPadrao==null?null:t.parcelamentoDaOferta.msgPadrao.toggleMsg)&&t.codAgencia&&!(t.reserva.ofertaSelecionada!=null&&t.reserva.ofertaSelecionada.mensal)&&!(t.reserva!=null&&t.reserva.agenciaFranqueado))}}function ax(i,r){if(i&1){let t=k();V(0),s(1,"div",13)(2,"ds-new-button",14),b("click",function(){P(t);let a=g();return S(a.onOfferSelectionContinue())}),p(3),c(4,"translate"),l()(),z()}if(i&2){let t=g();n(2),d("disabled",!t.newOffer),n(),f(" ",u(4,2,"reserva.passo3.detalhesReserva.continuar")," ")}}function nx(i,r){if(i&1){let t=k();V(0),s(1,"div",15)(2,"ds-new-button",16),b("click",function(){P(t);let a=g(2);return S(a.toggleCombo())}),p(3),c(4,"translate"),l(),s(5,"ds-new-button",5),b("click",function(){P(t);let a=g(2);return S(a.comboRedirect())}),p(6),c(7,"translate"),l()(),z()}i&2&&(n(2),d("theme","secondary"),n(),f(" ",u(4,3,"reserva.passo3.detalhesReserva.voltar")," "),n(3),f(" ",u(7,5,"reserva.passo3.detalhesReserva.continuar")," "))}function rx(i,r){if(i&1&&(V(0),C(1,nx,8,7,"ng-container",2),z()),i&2){let t=g();n(),d("ngIf",!t.showComboOrAdditional)}}function sx(i,r){if(i&1){let t=k();V(0),s(1,"div",17)(2,"ds-new-button",18),b("click",function(){P(t);let a=g();return S(a.continuar())}),p(3),c(4,"translate"),l()(),z()}i&2&&(n(2),d("fullwidth",!0),n(),f(" ",u(4,2,"reserva.passo3.detalhesReserva.continuar")," "))}function lx(i,r){i&1&&(s(0,"p",19),p(1),c(2,"translate"),l()),i&2&&(n(),f(" ",u(2,1,"reserva.passo3.detalhesReserva.textInfoPre")," "))}function cx(i,r){if(i&1){let t=k();s(0,"button",24),b("click",function(){P(t);let a=g(2);return S(a.onOfferSelectionContinue(!0))}),p(1),c(2,"translate"),l()}i&2&&(d("variant","outlined")("color","primary"),n(),f(" ",u(2,3,"reserva.passo3.detalhesReserva.voltar")," "))}function dx(i,r){if(i&1){let t=k();s(0,"button",25),b("click",function(){P(t);let a=g(2);return S(a.openProtectionsPage())}),p(1),c(2,"translate"),l()}i&2&&(d("variant","outlined")("color","primary"),n(),f(" ",u(2,3,"components.dumbs.rentalPackages.btns.readMoreAboutProtections")," "))}function px(i,r){if(i&1){let t=k();V(0),s(1,"div",20),B(2,cx,3,5,"button",21),B(3,dx,3,5,"button",22),s(4,"button",23),b("click",function(){P(t);let a=g();return S(a.toggleCombo())}),p(5),c(6,"translate"),c(7,"translate"),l()(),z()}if(i&2){let t=g();n(),Z("read-more-protections",t.showBtnReadMoreProtections),d("ngClass",L(12,Jb,t.monthlyFlow&&!t.showOfferStep)),n(),F(t.monthlyFlow&&!t.showOfferStep?2:-1),n(),F(t.showBtnReadMoreProtections?3:-1),n(),d("variant",t.monthlyFlow&&!t.showOfferStep&&!t.comboSelected||t.showBtnReadMoreProtections||t.comboSelected?"contained":"outlined")("color",t.monthlyFlow&&!t.showOfferStep&&!t.comboSelected||t.showBtnReadMoreProtections?"secondary":t.themeBtn),n(),f(" ",t.comboSelected?u(6,8,"reserva.passo3.detalhesReserva.continuar"):u(7,10,"reserva.passo3.detalhesReserva.continuarSemcombo")," ")}}var ap=(()=>
5{let r=class r{constructor(e,a,o,m,_,x,O,R,K,me,ke,qe,at,Pt,Ct,Ht,At,Gi){this.platform=e,this.document=a,this.authService=o,this.breakpointService=m,this.dialog=_,this.translateService=x,this.featureToggleService=O,this.googleAnalyticsService=R,this.viewportScroller=K,this.parcelamento=me,this.internacionalizacaoService=ke,this.cartoesService=qe,this.progressSpinner=at,this.reservaStore=Pt,this.coparticipationService=Ct,this.bundleService=Ht,this.featureFlagService=At,this.rentalPackagesService=Gi,this.showInfoTwentySevenHours=!1,this.showComboProtection=!1,this.showComboOrAdditional=!0,this.showOfferStep=!1,this.newOffer=!1,this.monthlyFlow=!1,this.clickContinuar=new W,this.logouPreAutorizacao=new W,this.sawTotalValueEvent=new W,this.showComboOrAdditionalEvent=new W,this.handleClickValueDetails=new W,this.equipamentosOpcionaisChanged=new W,this.handleOfferSelectionContinue=new W,this.COUNTRY_CODE_BRASIL=le,this.featureToggleKey=ut.featureToggle.uniid,this.isUniIIDActive=!1,this.combos=[],this.themeBtn="secondary",this.controlModal=!0,this.incentivoAsProtecoes={exibirProtecoesDeAvarias:{titulo:"",texto:""},exibirCoberturaParaTerceiros:{titulo:"",texto:""},exibirProtecoesDeAvarias_exibirCoberturaParaTerceiros:{titulo:"",texto:""}},this.clickExecuted=!1}ngOnInit(){this.handleUniId(),this.detalhesReserva(),this.usuario=this.authService.obterUsuarioLogado(),this.cotacaoSubscription=ht.emitirLoadingOferta.subscribe(e=>{this.buscandoReserva=e}),this.subscriptionBreakpoint=this.breakpointService.isDesktop.subscribe(e=>this.isDesktop=e),this.subscriptionBreakpoint=this.breakpointService.isTablet.subscribe(e=>this.isTablet=e),this.traduzirChavesMensagens(),this.isBrasil=this.internacionalizacaoService.recuperarCodigoPais()===le,this.codAgencia=this.reserva?.codigoPaisAgenciaRetirada===le,this.parcelamentoDaOferta=this.parcelamento.getParcelamentoDaOferta()}ngOnChanges(e){if(e.reserva){if(e.reserva.currentValue.ofertaSelecionada?.combos){this.combos=e.reserva.currentValue.ofertaSelecionada.combos;let a=e.reserva.currentValue.ofertaSelecionada?.combos.filter(o=>o.selecionado);this.comboSelected=a?.length>0,this.nameOfSelectedCombo=this.comboSelected?ft(a[0].nomeComercial.toLowerCase()):null,this.themeBtn=this.comboSelected?"secondary":"primary"}this.detalhesReserva()}}ngOnDestroy(){this.cotacaoSubscription?.unsubscribe(),this.subscriptionBreakpoint?.unsubscribe()}detalhesReserva(){this.reserva&&this.reserva.ofertaSelecionada?(this.ofertaSelecionada=!0,this.moeda=this.reserva.ofertaSelecionada.tarifa?.moeda,this.valorTotal=this.reserva.ofertaSelecionada.valorTotal,this.numeroParcelas=this.reserva.ofertaSelecionada.tarifa?.numeroParcelas,this.valorParcelas=this.reserva.ofertaSelecionada.tarifa?.valorParcelas,this.agenciaHertz=this.reserva.agenciaParceira,this.pontuacaoResgateTotal=this.reserva.ofertaSelecionada.tarifa?.pontuacaoResgateTotal,this.utilizarPontosFidelidade=this.reserva.utilizarPontosFidelidade):this.ofertaSelecionada=!1}continuar(){if(this.trackEvent("__MensuraEventos","Selecao_Oferta","Continuar",`${this.moeda} ${this.valorTotal}`),this.reserva.ofertaSelecionada?.mensal||this.eventKMSelection(),this.reserva?.codigoPaisAgenciaRetirada===pe){this.protectionVerification();return}if(this.isBrasil){this.verificaProtecoes();return}this.redirectTo()}oi(){this.handleClickValueDetails.emit(!0)}logar(e=!0){this.featureToggleService.validarEstadoFuncionalidade(this.featureToggleKey).pipe(w(1)).subscribe(a=>{this.isUniIIDActive=a.ativo,this.isUniIIDActive?this.uniIdLogin(e):this.openModalLogin(e)})}openModalLogin(e){this.dialog.open(fo,{minHeight:this.isDesktop?"51rem":"100%",maxWidth:this.isDesktop?"53.8rem":"100%",height:this.isDesktop?"auto":"100%",width:"100%"}).afterClosed().pipe(w(1)).subscribe(o=>{o&&(this.usuario=this.authService.obterUsuarioLogado(),this.usuario&&e?this.clickContinuar.emit(!0):this.logouPreAutorizacao.emit(!0))})}protectionVerification(){let e=new Set(["PROTECCION_BASICA","PROTECCION_PARCIAL","PROTECCION_TOTAL"]);if(!this.reserva?.ofertaSelecionada?.itens.find(o=>e.has(o.codigoAdicionalFrigga)&&o.selecionado)){this.openAlertNoProtectionSelected();return}this.redirectTo()}openAlertNoProtectionSelected(){this.dialog.open(Jd,{maxWidth:"32rem"}).afterClosed().pipe(w(1)).subscribe(a=>{if(a){this.redirectTo();return}this.scrollToElement()})}scrollToElement(){pi(300).pipe(w(1)).subscribe(()=>{this.viewportScroller.scrollToPosition([0,0]),this.viewportScroller.scrollToAnchor("lista-de-adicionais")})}verificaProtecoes(){let e=this.reserva.ofertaSelecionada.itens.find(m=>m.codigoAdicionalFrigga==="COPARTICIPACAO_REDUZIDA"),a=this.reserva.ofertaSelecionada.itens.find(m=>m.codigoAdicionalFrigga==="SEGURO_TERCEIRO"),o=this.reserva.ofertaSelecionada.itens.find(m=>m.codigoAdicionalFrigga==="PROTECAO_CARRO");e&&a&&o?this.validaProtecoes(e,a,o):this.redirectTo()}validaProtecoes(e,a,o){!e?.selecionado&&o?.selecionado&&a?.selecionado&&this.chamadaModalProtecao([e],this.incentivoAsProtecoes.exibirProtecoesDeAvarias.texto,this.incentivoAsProtecoes.exibirProtecoesDeAvarias.titulo),e?.selecionado&&o?.selecionado&&!a?.selecionado&&this.chamadaModalProtecao([a],this.incentivoAsProtecoes.exibirCoberturaParaTerceiros.texto,this.incentivoAsProtecoes.exibirCoberturaParaTerceiros.titulo),!e?.selecionado&&!o?.selecionado&&a?.selecionado&&this.chamadaModalProtecao([e,a],this.incentivoAsProtecoes.exibirProtecoesDeAvarias_exibirCoberturaParaTerceiros.texto,this.incentivoAsProtecoes.exibirProtecoesDeAvarias_exibirCoberturaParaTerceiros.titulo),e?.selecionado&&o?.selecionado&&a?.selecionado&&this.redirectTo(),!e?.selecionado&&o?.selecionado&&!a?.selecionado&&this.redirectTo(),!e?.selecionado&&!o?.selecionado&&!a?.selecionado&&this.redirectTo()}redirectTo(){!this.usuario&&(this.isNoShow||this.fccraAtivo)?this.logar():this.clickContinuar.emit(!0)}chamadaModalProtecao(e,a,o){this.dialog.open(Xd,{minHeight:this.isDesktop?"51rem":"100%",maxWidth:this.isDesktop?"53.8rem":"100%",height:this.isDesktop?"auto":"100%",width:"100%",data:{reserva:this.reserva,protecoes:e,isNoShow:this.isNoShow,fccra:this.fccraAtivo,isDesktop:this.isDesktop,texto:a,titulo:o}}).componentInstance.redirecionar.subscribe(_=>{_&&this.clickContinuar.emit(!0)})}traduzirChavesMensagens(){this.translateService.get("url.reserva.passo4").pipe(w(1)).subscribe(e=>{this.urlPassoQuatroReserva=e}),this.translateService.get("incentivoAsProtecoes.protecoesDeAvarias").pipe(w(1)).subscribe(e=>{this.incentivoAsProtecoes.exibirProtecoesDeAvarias.texto=e.texto,this.incentivoAsProtecoes.exibirProtecoesDeAvarias.titulo=e.titulo}),this.translateService.get("incentivoAsProtecoes.coberturaParaTerceiros").pipe(w(1)).subscribe(e=>{this.incentivoAsProtecoes.exibirCoberturaParaTerceiros.texto=e.texto,this.incentivoAsProtecoes.exibirCoberturaParaTerceiros.titulo=e.titulo}),this.translateService.get("incentivoAsProtecoes.protecoesDeAvarias_coberturaParaTerceiros").pipe(w(1)).subscribe(e=>{this.incentivoAsProtecoes.exibirProtecoesDeAvarias_exibirCoberturaParaTerceiros.texto=e.texto,this.incentivoAsProtecoes.exibirProtecoesDeAvarias_exibirCoberturaParaTerceiros.titulo=e.titulo})}uniIdLogin(e){let a=localStorage.getItem("reservaPasso3"),o=a?JSON.parse(a):null;o&&(o.reserva.isPasso3Concluido=e,localStorage.setItem("reservaPasso3",JSON.stringify(o))),Be(this.platform)&&localStorage.setItem("ondeLogou","addons_continue_button"),this.authService.grantCo
5dePostUniId()}handleUniId(){this.featureToggleKey=ut.featureToggle.uniid,this.featureToggleService.validarEstadoFuncionalidade(this.featureToggleKey).pipe(w(1)).subscribe(e=>{this.isUniIIDActive=e.ativo},e=>{console.log("erro ao buscar FT",e)})}sawTotalValue(){this.isDesktop||this.sawTotalValueEvent.emit()}lidarComReservaSemAdicionais(){this.reserva.ofertaSelecionada?.itens?.length===0&&this.redirectTo()}ngAfterViewChecked(){let e=JSON.parse(localStorage.getItem("additional_highlight"))||null;if(this.reserva.ofertaSelecionada?.kmControlado&&e||this.clickExecuted)return;let a=this.document.querySelector(".protection__item--featured");if(a){let o=a.querySelector('input[type="checkbox"]');o&&this.reserva.ofertaSelecionada?.destaque?.preFlag&&!o.checked&&(o.click(),this.clickExecuted=!0)}}toggleCombo(){this.lidarComReservaSemAdicionais(),this.eventComboSelection(),this.reserva.ofertaSelecionada?.mensal||this.eventKMSelection(),this.reserva.ofertaSelecionada?.itens.length===0&&this.reserva.ofertaSelecionada?.grupoVeiculo.categoria.toLowerCase()==="fast"&&this.eventFastWithCompletePackage(),this.handleUpsellFlow()}handleUpsellFlow(){let e=this.featureFlagService.valueFlag("upsell_bundles_index"),a=this.reserva.ofertaSelecionada?.mensal,o=e?.activeAM,m=e?.activeAD,_,x;if(this.combos_index=e?.indexes,o&&a&&(_=!0),m&&!a&&(x=!0),!_&&!x){this.handleControlVariantFlow();return}let R=this.combos?.findIndex(K=>K?.selecionado);if(this.bundleService.sawUpsellModal||R===this.combos_index?.COMPLETE||!this.showComboOrAdditional){this.exitUpsellFlow();return}if(_){this.handleVariantBFlow(R);return}this.handleVariantCFlow(R)}handleVariantBFlow(e){switch(e){case this.combos_index?.NO_PACKAGE:this.getCoparticipationValues(Ii.NOPACKAGETOBASIC,this.combos_index?.BASIC);break;case this.combos_index?.BASIC:this.getCoparticipationValues(Ii.BASICTOINTERMEDIATE,this.combos_index?.INTERMEDIATE);break;case this.combos_index?.INTERMEDIATE:this.openModalUpsell(xr,this.buildModalUpsellComparisonData());break}}handleVariantCFlow(e){e===this.combos_index?.INTERMEDIATE?this.openModalUpsell(xr,this.buildModalUpsellComparisonData()):this.exitUpsellFlow()}handleControlVariantFlow(){if(!this.showComboOrAdditional||this.comboSelected||!this.controlModal||this.reserva.ofertaSelecionada?.mensal){this.exitUpsellFlow();return}this.modalWithoutProtection()}exitUpsellFlow(){this.controlModal=!1,this.viewportScroller.scrollToPosition([0,0]),this.showComboOrAdditionalEvent.emit(!this.showComboOrAdditional)}getCoparticipationValues(e,a){this.progressSpinner.spin$.next(!0),this.coparticipationService.getCoparticipationValues(this.buildCoparticipationRequest()).pipe(w(1),vo(()=>(this.exitUpsellFlow(),va)),He(()=>this.progressSpinner.spin$.next(!1))).subscribe(o=>{if(!o){this.exitUpsellFlow();return}let m=this.buildModalUpsellCoparticipationData(e,a,o);this.openModalUpsell(ep,m)})}buildCoparticipationRequest(){let{codigoAgenciaRetirada:e,codigoAgenciaDevolucao:a,dataRetirada:o,dataDevolucao:m,ofertaSelecionada:_,grupoSelecionado:x}=this.reserva||{},O=_?.upgrades?.find(R=>R.selecionado)?.nomeGrupo;return{agencia:{retirada:e,devolucao:a},periodo:{retirada:o,devolucao:m},tarifa:_?.tarifa?.codigoTarifa??"",grupo:O||x?.codigoLocaliza}}buildBaseModalUpsellData(e,a){let o=this.combos?.[a],m=a>0?this.combos?.[a-1]:null,{ofertaSelecionada:_,tipoRetiradaSelecionado:x,codigoPaisAgenciaRetirada:O}=this.reserva||{};return{modalKey:e,showPricePerDayTitle:!0,pricePerDay:o?.diferencaValorDiariaComboInferior,totalPrice:o?.totalComDesconto,currency:_?.tarifa?.moeda??"R$",desktop:this.isDesktop,currentBundle:m,upgradeBundle:o,monthly:_?.mensal??!1,reservation:{cotationId:_?.cotacaoId??"",offerId:_?.ofertaId??"",pickUpType:x===Ge.FAST?ee.FAST:ee.BALCAO,codigoPaisAgenciaRetirada:O}}}buildModalUpsellCoparticipationData(e,a,o){let m=e===Ii.NOPACKAGETOBASIC,_=this.buildBaseModalUpsellData(e,a);return X($({},_),{coparticipationAmount:this.getCoparticipationAmount(m,o),reducedCoparticipationAmount:this.getReducedCoparticipationAmount(m,o)})}getCoparticipationAmount(e,a){return e?a.valorCoparticipacaoReduzida:a.valorCoparticipacao}
5getReducedCoparticipationAmount(e,a){return e?a.valorCoparticipacao:a.valorCoparticipacaoReduzida}buildModalUpsellComparisonData(){let e=this.combos?.[this.combos_index?.INTERMEDIATE],a=this.buildBaseModalUpsellData(Ii.INTERMEDIATETOCOMPLETE,this.combos_index?.COMPLETE);return X($({},a),{intermediatePackageItems:e?.descricoesItens,completePackageItems:e?.descricoesItensNaoInclusos})}openModalUpsell(e,a){this.dialog.open(e,{height:"auto",width:"458px",disableClose:!0,data:a}).afterClosed().pipe(w(1)).subscribe(m=>{this.bundleService.setSawUpsellModal("true"),m?this.openSuccessModal(m):this.exitUpsellFlow()})}openSuccessModal(e){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"confirmation",action:"impression",label:`${this.reserva?.ofertaSelecionada?.mensal?"AM ":""}Pacote Atualizado`});let a=e?.combos?.find(m=>m.selecionado)?.nomeComercial;this.dialog.open(tp,{width:"326px",height:"auto",disableClose:!0,data:a}).afterClosed().pipe(w(1)).subscribe(()=>{this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"confirmation",action:"clicked",label:`${this.reserva?.ofertaSelecionada?.mensal?"AM ":""}continuar`}),this.equipamentosOpcionaisChanged.emit(e),this.viewportScroller.scrollToPosition([0,0]),this.showComboOrAdditionalEvent.emit(!this.showComboOrAdditional),e?.itens?.length===0&&this.redirectTo()})}comboRedirect(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"Selecao_Oferta",action:"Continuar",label:`${this.moeda} ${this.valorTotal}`}),this.redirectTo()}trackModalImpression(){this.trackEvent("__MensuraEventos","clique","impression","modal_sem_pacote")}eventComboSelection(){this.showComboOrAdditional&&this.comboSelected&&this.trackEvent("__MensuraEventos","Selecao bundles","continuar",`${this.reserva?.ofertaSelecionada?.mensal?"AM_":""}continuou_com_bundles_${this.nameOfSelectedCombo}`)}eventKMSelection(){let e=this.reserva.ofertaSelecionada?.quilometragemControlada?.controlada;this.trackEvent("__MensuraEventos","Selecao KM AD","click",`continuou_com_${e?"quilometragemcontrolado":"quilometragemlivre"}`)}eventFastWithCompletePackage(){this.trackEvent("__MensuraEventos","choice_unavailable","skipped","fast_pacote_completo")}trackCloseModal(e){let a;e===void 0?a="fechar_modal_pacote":e?a="btn_continuar_sem_pacote":a="btn_adicionar_pacote",this.trackEvent("__MensuraEventos","clique","CTA",a)}trackEvent(e,a,o,m){this.googleAnalyticsService.preencherDataLayer({event:e,category:a,action:o,label:m})}modalWithoutProtection(){let e={preAutorizacao:!0,unidadeMonetaria:"R$",valorPreAutorizacaoComProtecao:0,valorPreAutorizacaoSemProtecao:0,valorPreAutorizacaoComProtecaoFormatado:"",valorPreAutorizacaoSemProtecaoFormatado:"",percentualDiferencaValoresPreAutorizacao:87},a={codigoAgenciaRetirada:this.reserva?.codigoAgenciaRetirada,codigoGrupoVeiculo:this.reserva?.grupoSelecionado?.codigoLocaliza,dataHoraRetirada:this.reserva?.dataRetirada,dataHoraDevolucao:this.reserva?.dataDevolucao};if(this.reserva.valoresModalPreAutorizacao){this.openModalWithoutCharge(this.reserva.valoresModalPreAutorizacao);return}this.progressSpinner.spin$.next(!0),this.cartoesService.getValuesPreAuthorization(a).pipe(w(1)).subscribe(o=>{o||this.openModalWithoutCharge(e),this.handleValuesModalWithoutAuthorization(o)},()=>{this.progressSpinner.spin$.next(!1),this.openModalWithoutCharge(e)})}handleValuesModalWithoutAuthorization(e){this.progressSpinner.spin$.next(!1),e&&this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{valoresModalPreAutorizacao:e}}),this.openModalWithoutCharge(e)}openModalWithoutCharge(e){e.preAutorizacao=!(!e?.valorPreAutorizacaoComProtecao&&e?.valorPreAutorizacaoSemProtecao);let a=this.dialog.open(ip,{minHeight:"25rem",maxWidth:this.isDesktop?"45rem":"30rem",height:"auto",width:"100%",data:{values:e,packageName:this.combos?.[this.combos_index?.BASIC]?.nome??""}});a.afterOpened().subscribe(()=>this.trackModalImpression()),a.afterClosed().pipe(w(1)).subscribe(o=>{o&&this.showComboOrAdditionalEvent.emit(!this.showComboOrAdditional),this.trackCloseModal(o),pi(300).pipe(w(1)).subscribe(()=>{this.viewportScroller.scrollToPosition([0,0]),this.viewportScroller.scrollToAnchor("bundles")})})}onOfferSelectionContinue(e=!1){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:e?"return_offers":"continue_offers",action:"clicked"}),this.handleOfferSelectionContinue.emit(e)}
5get showDetailsOnMonthlyFlow(){return this.codAgencia&&this.monthlyFlow?!!this.reserva?.ofertaSelecionada:!0}openProtectionsPage(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"clique",action:"CTA",label:"ler_sobre_protecoes"}),window.open("https://www.localiza.com/brasil/pt-br/protecoes","_blank","noopener,noreferrer")}get showBtnReadMoreProtections(){return this.rentalPackagesService.getConfigValue(this.reserva.ofertaSelecionada?.mensal,this.isDesktop)?.showBtnReadMoreProtections??!1}};r.\u0275fac=function(a){return new(a||r)(v(Ve),v(kr),v(Ye),v(De),v(re),v(G),v(Qt),v(Q),v(Aa),v($o),v(it),v(Zo),v(gt),v(fe),v(op),v(Mi),v(wt),v(Yo))},r.\u0275cmp=M({type:r,selectors:[["app-detalhes-reserva"]],inputs:{reserva:"reserva",isNoShow:"isNoShow",fccraAtivo:"fccraAtivo",showPreAutorizacao:"showPreAutorizacao",textPFAMPreAutorizacao:"textPFAMPreAutorizacao",preAutorizacaoValue:"preAutorizacaoValue",carregandoPreAutorizacao:"carregandoPreAutorizacao",errorPreAutorizacao:"errorPreAutorizacao",showInfoTwentySevenHours:"showInfoTwentySevenHours",showComboProtection:"showComboProtection",showComboOrAdditional:"showComboOrAdditional",showOfferStep:"showOfferStep",newOffer:"newOffer",monthlyFlow:"monthlyFlow"},outputs:{clickContinuar:"clickContinuar",logouPreAutorizacao:"logouPreAutorizacao",sawTotalValueEvent:"sawTotalValueEvent",showComboOrAdditionalEvent:"showComboOrAdditionalEvent",handleClickValueDetails:"handleClickValueDetails",equipamentosOpcionaisChanged:"equipamentosOpcionaisChanged",handleOfferSelectionContinue:"handleOfferSelectionContinue"},standalone:!1,features:[nt],decls:7,vars:6,consts:[[1,"booking-details"],["class","booking-details-content",4,"ngIf"],[4,"ngIf"],["class","booking-details__text-click-details",4,"ngIf"],[1,"booking-details-content"],[3,"click"],[1,"booking-details-value"],["class","booking-details-value__installments",4,"ngIf"],["class","booking-details-value__points",4,"ngIf"],["class","booking-details-value__installments",3,"innerHTML",4,"ngIf"],[1,"booking-details-value__installments"],[1,"booking-details-value__points"],[1,"booking-details-value__installments",3,"innerHTML"],[1,"booking-details__button","booking-details__button--no-combo","booking-details__button--top"],["data-testid","continue-offer-selection",3,"click","disabled"],[1,"booking-details__button","booking-details__button--flex"],[3,"click","theme"],[1,"booking-details__button","booking-details__button--no-combo"],[3,"click","fullwidth"],[1,"booking-details__text-click-details"],[1,"booking-details__button","booking-details__button--secondary",3,"ngClass"],["ldsButton","","size","lg","data-testid","return-offer-selection",1,"new-btn",3,"variant","color"],["ldsButton","","size","lg",1,"new-btn",3,"variant","color"],["ldsButton","","size","lg","data-testid","continuar",1,"new-btn",3,"click","variant","color"],["ldsButton","","size","lg","data-testid","return-offer-selection",1,"new-btn",3,"click","variant","color"],["ldsButton","","size","lg",1,"new-btn",3,"click","variant","color"]],template:function(a,o){a&1&&(s(0,"section",0),C(1,ox,15,14,"div",1)(2,ax,5,4,"ng-container",2)(3,rx,2,1,"ng-container",2)(4,sx,5,4,"ng-container",2)(5,lx,3,3,"p",3),l(),C(6,px,8,14,"ng-container",2)),a&2&&(n(),d("ngIf",o.showDetail
5sOnMonthlyFlow),n(),d("ngIf",o.monthlyFlow&&o.showOfferStep),n(),d("ngIf",o.showComboProtection&&!o.showOfferStep),n(),d("ngIf",!o.showComboProtection&&!o.showOfferStep),n(),d("ngIf",o.codAgencia&&(!(o.reserva==null||o.reserva.ofertas[0]==null)&&o.reserva.ofertas[0].mensal)?!!(o.reserva!=null&&o.reserva.ofertaSelecionada):o.codAgencia),n(),d("ngIf",o.showComboOrAdditional&&!o.showOfferStep))},dependencies:[de,N,J,oi,T,yi,Ne],styles:['.booking-details[_ngcontent-%COMP%]{background-color:#fff;bottom:0;box-shadow:0 -.3rem 1.3rem #0000001c;left:0;padding:1.6rem;position:sticky;z-index:999}@media(min-width:992px){.booking-details[_ngcontent-%COMP%]{box-shadow:none;padding:0;position:relative;z-index:0}}.booking-details-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:1.6rem}@media(min-width:992px){.booking-details-content[_ngcontent-%COMP%]{display:none}}.booking-details-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child p[_ngcontent-%COMP%]{color:#383838;font-size:1.8rem}@media(max-width:380px){.booking-details-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child p[_ngcontent-%COMP%]{font-size:1.6rem}}.booking-details-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child button[_ngcontent-%COMP%]{background:transparent;border:none;color:#01602a;font-size:1.2rem;font-weight:700;margin-top:.8rem;outline:none;padding:0}.booking-details-value[_ngcontent-%COMP%]{width:18rem;text-align:right}@media(min-width:992px){.booking-details-value[_ngcontent-%COMP%]{width:auto;text-align:left}}.booking-details-value[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child{color:#003418;font-size:2.8rem;line-height:3.36rem}.booking-details-value__installments[_ngcontent-%COMP%]{color:#6e6e6e}.booking-details-value__points[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;line-height:2rem;margin:.4rem 0;color:#018444}.booking-details__text-click-details[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.2rem;margin-top:1.6rem}@media(min-width:992px){.booking-details__text-click-details[_ngcontent-%COMP%]{display:none}}.booking-details__button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%}.booking-details__button--no-combo[_ngcontent-%COMP%] > ds-new-button[_ngcontent-%COMP%]{width:100%}@media(min-width:992px){.booking-details__button--no-combo[_ngcontent-%COMP%] > ds-new-button[_ngcontent-%COMP%]{width:auto}}.booking-details__button--secondary[_ngcontent-%COMP%]{background:#fff;margin:2rem 0;padding:0 3rem}.booking-details__button--secondary[_ngcontent-%COMP%] > ds-new-button[_ngcontent-%COMP%]{display:block;width:100%}@media(min-width:992px){.booking-details__button--secondary[_ngcontent-%COMP%] > ds-new-button[_ngcontent-%COMP%]{width:auto}}@media(min-width:992px){.booking-details__button--secondary[_ngcontent-%COMP%]{margin:auto;padding:0}}.booking-details__button--flex[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;gap:2rem}@media(min-width:992px){.booking-details__button--flex[_ngcontent-%COMP%]{max-width:none;gap:0}}.booking-details__button--flex[_ngcontent-%COMP%] ds-new-button[_ngcontent-%COMP%]{width:16rem}.booking-details__button--top[_ngcontent-%COMP%]{margin-top:0}@media(min-width:992px){.booking-details__button--top[_ngcontent-%COMP%]{margin-top:5rem}}.booking-details__button--top[_ngcontent-%COMP%] .ds-new-button{width:100%}.booking-details__button--flex[_ngcontent-%COMP%] ds-new-button[_ngcontent-%COMP%] button{width:auto}.new-btn[_ngcontent-%COMP%]{font-size:1.6rem;font-family:var(--lds-font-functional-family, "Inter", sans-serif);width:100%}@media(min-width:992px){.new-btn[_ngcontent-%COMP%]{width:212px}}.booking-details__button--secondary.read-more-protections[_ngcontent-%COMP%]{gap:2rem}']});let i=r;return i})();var ux=["itenReservationElement"],fx=["unlimitedKm"],np=i=>({container:i}),gx=i=>({"no-gutters":i}),_x=i=>({"d-none":i}),hx=i=>({"mx-tariff-trigger--aberto":i}),vx=()=>({height:"18rem","border-radius":"8px","margin-bottom":"1.6rem"});function Cx(i,r){if(i&1&&h(0,"app-breadcrumb",2),i&2){let t=g();d("breadCrumbs",t.breadCrumb)}}function bx(i,r){i&1&&h(0,"app-header-preview")}function xx(i,r){i&1&&(s(0,"div",4)(1,"div",12),h(2,"app-barra-navegacao-reserva",13),l()()),i&2&&(n(2),d("step",3))}function Px(i,r){if(i&1&&h(0,"app-grupo-escolhido",14),i&2){let t=g();d("grupoEscolhido",t.reserva==null?null:t.reserva.grupoSelecionado)("displayGroupNameAsFeatured",(t.reserva==null?null:t.reserva.codigoPaisAgenciaRetirada)!=="0055")("codigoPaisAgenciaRetirada",t.reserva==null?null:t.reserva.codigoPaisAgenciaRetirada)}}function Sx(i,r){if(i&1){let t=k();s(0,"app-box-booking-summary",15),b("logouPreAutorizacao",function(a){P(t);let o=g();return S(o.handleLogarPreAutorizacao(a))})("sawTotalValue",function(){P(t);let a=g();return S(a.sawTotalValueEvent())})("sawPreAuthorizationValue",function(){P(t);let a=g();return S(a.sawPreAuthorizationValueEvent())}),l()}if(i&2){let t=g();d("bookingData",t.reserva)("showPreAuthorization",t.showPreAutorizacao)("preAuthorizationValue",t.preAutorizacaoValue)("loadingPreAuthorization",t.carregandoPreAutorizacao)("errorPreAuthorization",t.ocorreuErroPreAutorizacao)("hasCompleteProtection",t.hasCompleteProtection)("showPreAuthorizationLoggedOut",t.showPreAuthorizationLoggedOut)("hasCombo",t.showComboOrAdditional)}}function yx(i,r){i&1&&h(0,"app-toast-erro")}function Mx(i,r){if(i&1){let t=k();V(0),s(1,"app-unlimited-km",16,0),b("offerSelected",function(a){P(t);let o=g(2);return S(o.selectOffer(a))})("addiotionalSelected",function(a){P(t);let o=g(2);return S(o.recalcularOfertaBundle(a))})("kmSelected",function(){P(t);let a=g(2);return S(a.kmSelected=!0)})("offerSelectedByUser",function(){P(t);let a=g(2);return S(a.offerSelectedByUser=!0)}),l(),z()}if(i&2){let t=g(2);n(),d("hasDiscount",t.hasDiscountOffer)("offers",t.ofertasDisponiveis)("selectedOffer",t.ofertaSelecionada)}}function Dx(i,r){if(i&1){let t=k();
5s(0,"app-doters-point-use-selector",21),b("selectionChange",function(a){P(t);let o=g(3);return S(o.onDoterSelectionChange(a))}),l()}if(i&2){let t=g(3);d("dadosDaReserva",t.reserva)}}function wx(i,r){if(i&1){let t=k();s(0,"app-lista-de-ofertas",22),b("ofertaSelecionada",function(a){P(t);let o=g(3);return S(o.selecionarOferta(a))}),l()}if(i&2){let t=g(3);$t("display",t.reserva.codigoPaisAgenciaRetirada==="0055"?"none":"block"),d("ngClass",L(15,_x,t.reserva.codigoPaisAgenciaRetirada==="0055"))("alugelMensal",t.reserva.quantidadeDiarias>=30)("reservaBrasil",t.reserva.codigoPaisAgenciaRetirada==="0055")("rentInMexico",t.reserva.codigoPaisAgenciaRetirada==="0052")("codigoPaisAgenciaRetirada",t.reserva.codigoPaisAgenciaRetirada)("ofertas",t.ofertasDisponiveis)("ofertaUnica",t.ofertaUnica)("dadosParceiroDoters",t.reserva.parceiro)("isTablet",t.isTablet)("showPercentageText",(t.reserva==null?null:t.reserva.codigoPaisAgenciaRetirada)==="0055")("meioPagamentoSelecionado",t.meioPagamentoSelecionado)("offerSelectedId",t.ofertaSelecionada==null?null:t.ofertaSelecionada.ofertaId)("parceiroReserva",t.reserva.parceiro)}}function Ox(i,r){if(i&1){let t=k();s(0,"app-tariff-selection-panel",29),b("continueSelection",function(a){P(t);let o=g(4);return S(o.handleMobileTariffContinue(a))})("closePanel",function(){P(t);let a=g(4);return S(a.closeMobileTariffPanel())}),l()}if(i&2){let t=g(4);d("group",t.reserva==null?null:t.reserva.grupoSelecionado)("offer",t.mexicoTariffPanelOffer)("quantidadeDiarias",(t.reserva==null?null:t.reserva.quantidadeDiarias)||1)("groupIndex",0)("respectPreSelectedMeio",!0)}}function kx(i,r){if(i&1){let t=k();V(0),s(1,"section",23)(2,"div",5)(3,"button",24),b("click",function(){P(t);let a=g(3);return S(a.openMobileTariffPanel())}),s(4,"span",25)(5,"span",26),p(6),c(7,"translate"),l()(),h(8,"i-feather",27),l()()(),C(9,Ox,1,5,"app-tariff-selection-panel",28),z()}if(i&2){let t=g(3);n(),d("ngClass",L(7,hx,t.showMobileTariffPanel)),n(),d("ngClass",L(9,np,!t.isTablet)),n(),Ie("aria-expanded",t.showMobileTariffPanel),n(3),f(" ",u(7,5,"reserva.passo3.listaDeOfertas.titulo")," "),n(3),d("ngIf",t.showMobileTariffPanel&&t.mexicoTariffPanelOffer)}}function Ix(i,r){i&1&&(s(0,"section",30),h(1,"ngx-skeleton-loader",31),l()),i&2&&(n(),d("theme",Wt(1,vx)))}function Tx(i,r){if(i&1){let t=k();s(0,"app-offers",32),b("selected",function(a){P(t);let o=g(3);return S(o.selecionarOferta(a))}),l()}if(i&2){let t=g(3);d("offers",t.ofertasDisponiveis)("offerSelected",t.ofertaSelecionada)}}function Ax(i,r){if(i&1&&(V(0),C(1,Dx,1,1,"app-doters-point-use-selector",17)(2,wx,1,17,"app-lista-de-ofertas",18)(3,kx,10,11,"ng-container",11)(4,Ix,2,2,"section",19)(5,Tx,1,2,"app-offers",20),z()),i&2){let t=g(2);n(),d("ngIf",t.OferecerRedencaoPontosDoters&&t.reserva.parceiro),n(),d("ngIf",!t.mexicoStep2TariffActive),n(),d("ngIf",t.mexicoStep2TariffActive&&!t.isTablet),n(),d("ngIf",t.showMexicoAbProtectionsSkeleton),n(),d("ngIf",t.reserva.quantidadeDiarias>=30&&t.reserva.codigoPaisAgenciaRetirada==="0055")}}function Ex(i,r){if(i&1){let t=k();s(0,"app-offers",32),b("selected",function(a){P(t);let o=g(3);return S(o.selectOffer(a))}),l()}if(i&2){let t=g(3);d("offers",t.ofertasDisponiveis)("offerSelected",t.ofertaSelecionada)}}function Rx(i,r){if(i&1){let t=k();V(0),s(1,"app-lista-de-ofertas",33),b("ofertaSelecionada",function(a){P(t);let o=g(2);return S(o.selectOffer(a))}),l(),C(2,Ex,1,2,"app-offers",20),z()}if(i&2){let t=g(2);n(),$t("display",t.reserva.codigoPaisAgenciaRetirada==="0055"?"none":"block"),d("alugelMensal",t.reserva.quantidadeDiarias>=30)("reservaBrasil",t.reserva.codigoPaisAgenciaRetirada==="0055")("codigoPaisAgenciaRetirada",t.reserva.codigoPaisAgenciaRetirada)("ofertas",t.ofertasDisponiveis)("ofertaUnica",t.ofertaUnica)("isTablet",t.isTablet)("showPercentageText",(t.reserva==null?null:t.reserva.codigoPaisAgenciaRetirada)==="0055")("meioPagamentoSelecionado",t.meioPagamentoSelecionado)("offerSelectedId",t.ofertaSelecionada==null?null:t.ofertaSelecionada.ofertaId),n(),d("ngIf",t.reserva.quantidadeDiarias>=30&&t.reserva.codigoPaisAgenciaRetirada==="0055")}
5}function Bx(i,r){if(i&1){let t=k();s(0,"app-offers",36),b("selected",function(a){P(t);let o=g(3);return S(o.selectOffer(a))}),l()}if(i&2){let t=g(3);d("offers",t.ofertasDisponiveis)}}function Fx(i,r){if(i&1){let t=k();V(0),s(1,"app-lista-de-ofertas",34),b("ofertaSelecionada",function(a){P(t);let o=g(2);return S(o.selectOffer(a))}),l(),C(2,Bx,1,1,"app-offers",35),z()}if(i&2){let t=g(2);n(),d("alugelMensal",t.reserva.quantidadeDiarias>=30)("reservaBrasil",t.reserva.codigoPaisAgenciaRetirada==="0055")("codigoPaisAgenciaRetirada",t.reserva.codigoPaisAgenciaRetirada)("ofertas",t.ofertasDisponiveis)("ofertaUnica",t.ofertaUnica)("isTablet",t.isTablet)("showPercentageText",(t.reserva==null?null:t.reserva.codigoPaisAgenciaRetirada)==="0055")("offerSelectedId",t.ofertaSelecionada==null?null:t.ofertaSelecionada.ofertaId),n(),d("ngIf",t.reserva.quantidadeDiarias>=30&&t.reserva.codigoPaisAgenciaRetirada==="0055")}}function Vx(i,r){if(i&1){let t=k();s(0,"app-opcionais-equipamentos",39),b("equipamentosOpcionaisChanged",function(a){P(t);let o=g(3);return S(o.handleAlteracaoEquipamentosOpcionais(a))}),l()}if(i&2){let t=g(3);d("reserva",t.reserva)("showComboProtection",t.showComboProtection)("showComboOrAdditional",t.showComboOrAdditional)("offerSelectedByUser",t.offerSelectedByUser)("protecaoPreSelecionada",t.protecaoPreSelecionada)}}function zx(i,r){if(i&1){let t=k();s(0,"app-selecao-upgrades",41),b("upgradeChanged",function(a){P(t);let o=g(4);return S(o.handleAlteracaoUpgrade(a))}),l()}if(i&2){let t=g(4);d("cotacaoId",t.reserva==null?null:t.reserva.idCotacao)("moeda",t.ofertaSelecionada==null||t.ofertaSelecionada.tarifa==null?null:t.ofertaSelecionada.tarifa.moeda)("ofertaId",t.ofertaSelecionada==null?null:t.ofertaSelecionada.ofertaId)("upgrades",t.upgradesDisponiveis)("isTablet",t.isTablet)("offerPickUpType",t.ofertaSelecionada==null||t.ofertaSelecionada.grupoVeiculo==null?null:t.ofertaSelecionada.grupoVeiculo.tipoRetirada)("selectedPickUpType",t.tipoRetiradaSelecionada)("codigoPaisAgenciaRetirada",t.reserva==null?null:t.reserva.codigoPaisAgenciaRetirada)}}function Lx(i,r){if(i&1&&(V(0),C(1,zx,1,8,"app-selecao-upgrades",40),z()),i&2){let t=g(3);n(),d("ngIf",t.ofertaSelecionada&&t.upgradesDisponiveis&&!t.hideUpgradeForMexicoPrepaid)}}function Nx(i,r){if(i&1){let t=k();s(0,"app-selecao-upgrades",43),b("upgradeChanged",function(a){P(t);let o=g(4);return S(o.handleAlteracaoUpgrade(a))}),l()}if(i&2){let t=g(4);d("cotacaoId",t.reserva==null?null:t.reserva.idCotacao)("moeda",t.ofertaSelecionada==null||t.ofertaSelecionada.tarifa==null?null:t.ofertaSelecionada.tarifa.moeda)("ofertaId",t.ofertaSelecionada==null?null:t.ofertaSelecionada.ofertaId)("upgrades",t.upgradesDisponiveis)("isTablet",t.isTablet)("codigoPaisAgenciaRetirada",t.reserva==null?null:t.reserva.codigoPaisAgenciaRetirada)}}function Ux(i,r){if(i&1&&(V(0),C(1,Nx,1,6,"app-selecao-upgrades",42),z()),i&2){let t=g(3);n(),d("ngIf",t.ofertaSelecionada&&t.upgradesDisponiveis&&!t.hideUpgradeForMexicoPrepaid)}}function Gx(i,r){if(i&1){let t=k();s(0,"app-detalhes-reserva",44),b("clickContinuar",function(a){P(t);let o=g(3);return S(o.handleClickContinuar(a))})("logouPreAutorizacao",function(a){P(t);let o=g(3);return S(o.handleLogarPreAutorizacao(a))})("handleClickValueDetails",function(a){P(t);let o=g(3);return S(o.handleClickValueDetails(a))})("sawTotalValueEvent",function(){P(t);let a=g(3);return S(a.sawTotalValueEvent())})("showComboOrAdditionalEvent",function(a){P(t);let o=g(3);return S(o.showComboOrAdditionalEvent(a))})("equipamentosOpcionaisChanged",function(a){P(t);let o=g(3);return S(o.handleAlteracaoEquipamentosOpcionais(a))})("handleOfferSelectionContinue",function(a){P(t);let o=g(3);return S(o.handleOfferSelectionContinue(a))}),l()}if(i&2){let t=g(3);d("reserva",t.reserva)("isNoShow",t.ofertaSelecionada==null||t.ofertaSelecionada.noShow==null?null:t.ofertaSelecionada.noShow.cobrar)("fccraAtivo",t.fccraAtivo)("textPFAMPreAutorizacao",(t.reserva==null?null:t.reserva.quantidadeDiarias)>=30)("showPreAutorizacao",t.showPreAutorizacao)("preAutorizacaoValue",t.preAutorizacaoValue)("carregandoPreAutorizacao",t.carregandoPreAutorizacao)("errorPreAutorizacao",t.ocorreuErroPreAutorizacao)("showComboProtection",t.showComboProtection)("showInfoTwentySevenHours",(t.reserva==null?null:t.reserva.quantidadeDiarias)<30&&(t.reserva==null?null:t.reserva.codigoPaisAgenciaRetirada)=="0055")("showComboOrAdditional",t.showComboOrAdditional)("showOfferStep",t.showOfferStep)("newOffer",!!t.newOffer)("monthlyFlow",t.monthlyFlow)}}function jx(i,r){if(i&1&&(V(0),s(1,"div",null,1),C(3,Vx,1,5,"app-opcionais-equipamentos",37),l(),C(4,Lx,2,1,"ng-container",11)(5,Ux,2,1,"ng-container",11)(6,Gx,1,14,"app-detalhes-reserva",38),z()),i&2){let t=g(2);n(3),d("ngIf",t.showSectionBundle&&!t.showOfferStep),n(),d("ngIf",t.showComboProtection&&t.showComboOrAdditional),n(),d("ngIf",!t.showComboProtection),n(),d("ngIf",t.isBrazil&&(t.showOfferStep||t.showSectionBundle)||t.ofertaSelecionada&&t.showSectionBundle)}}function qx(i,r){if(i&1&&(V(0),C(1,Mx,3,3,"ng-container",11)(2,Ax,6,5,"ng-container",11)(3,Rx,3,12,"ng-container",11)(4,Fx,3,9,"ng-container",11)(5,jx,7,4,"ng-container",11),z()),i&2){let t=g();n(),d("ngIf",t.showUnlimitedKM),n(),d("ngIf",t.isInternational),n(),d("ngIf",(t.isFranchise||t.showComboOrAdditional&&t.showOfferStepOnMonthlyFlow)&&!t.isInternational),n(),d("ngIf",t.monthlyFlow&&t.isBrazil&&!t.isFranchise&&!t.showComboProtection&&!t.showComboOrAdditional&&t.showOfferStepOnMonthlyFlow),n(),d("ngIf",t.kmSelected||t.showOfferStep||t.hasOfferSelectedInForm)}}function Hx(i,r){i&1&&h(0,"app-toast-erro")}var rp=(()=>{let r=class r{get hasOfferSelectedInForm(){return this.unlimitedKm?.hasOfferSelectedInForm()}constructor(e,a,o,m,_,x,O,R,K,me,ke,qe,at,Pt,Ct,Ht,At,Gi,St,Ti,nr){this.platformId=e,this.reservaStore=a,this.cotacaoService=o,this.dialog=m,this.progressSpinner=_,this.router=x,this.breakpointService=O,this.translateService=R,this.featureToggleService=K,this.internacionalizacao=me,this.authService=ke,this.clienteService=qe,this.googleAnalyticsService=at,this.topbarFirstStepService=Pt,this._cartoesService=Ct,this.bundleService=Ht,this.insiderService=At,this.reservationFilterParamService=Gi,this.featureFlagService=St,this.webviewService=Ti,this.mexicoStep2TariffAbService=nr,this.usuarioNaoElegivelFast=!1,this.colapsarTipoRetirada=!1,this.featureToggleKey=ut.featureToggle.uniid,this.isUniIIDActive=!0,this.preAutorizacaoValue=null,this.hasCompleteProtection=!1,this.verificouPreAutorizacao=!1,this.showPreAutorizacao=!1,this.continuarPasso04=!1,this.showComboProtection=!1,this.showComboOrAdditional=!0,this.showOfferStep=!1,this.showHighlightedFast=!1,this.showOnlyDesk=!1,this.showOnlyFast=!1,this.showPickUpTypeBtn=!0,this.ofertaUnica=!1,this.showSectionBundle=!1,this.showSectionUnlimitedkm=!1,this.kmSelected=!1,this.partnerDoterUsageType="use",this.emitedSelectedPickUpType=!1,this.meioPagamentoSelecionado=null,this.protecaoPreSelecionada=null,this.showProgressiveDiscountModal=!1,this.clickedOnOneOfTheBtns=!1,this.isWebview=!1,this.mexicoStep2TariffActive=!1,this.mexicoStep2AutoSelectDone=!1,this.showMobileTariffPanel=!1,this.mexicoTariffPanelOffer=null,this.offerSelectedByUser=!1,this.isBrowser=Be(this.platformId)}get hasDiscountOffer(){return this.ofertasDisponiveis.some(e=>e.tarifa?.existeDescontoPromocional)}get showUnlimitedKM(){return this.monthlyFlow?!1:this.showSectionUnlimitedkm&&this.showComboOrAdditional&&!!this.ofertaSelecionada}ngOnInit(){this.isWebview=this.webviewService.isWebView(),this.setOfferSelectedByUserFromStep3Login(),this.checkUniidToggle(),this.breadCrumb=[{label:"breadCrumbs.reserva.passo3.label",url:"breadCrumbs.reserva.passo3.url"}],this.subscriptionBreakpoint=this.breakpointService.isDesktop.subscribe(e=>this.isDesktop=e),this.subscriptionBreakpoint=this.breakpointService.isTablet.subscribe(e=>this.isTablet=e),this.featureToggleService.validarEstadoFuncionalidade(ut.featureToggle.fccra).pipe(w(1)).subscribe(e=>this.fccraAtivo=e.ativo),this.codigoPaisDefault=this.internacionalizacao.recuperarCodigoPais(),this.isBrasil=this.codigoPaisDefault===le,this.isMexico=this.codigoPaisDefault===pe,this.isMexico&&this.mexicoStep2TariffAbService.isTestActive$().pipe(w(1)).subscribe(e=>{this.mexicoStep2TariffActive=e,this.mexicoStep2TariffAbService.trackImpression(),e&&this.preencherDataLayerMexicoStep3Impressao()}),this.getDadosCotacao(),this.showOfferStep=this.isBrazil&&this.monthlyFlow}setOfferSelectedByUserFromStep3Login(){if(!this.isBrowser)return;localStorage.getItem("isLoginClickedOnStep3")==="true"&&(this.offerSelectedByUser=!0,localStorage.removeItem("isLoginClickedOnStep3"))}ngOnDestroy(){this.subscriptionCotacao?.unsubscribe(),this.subscriptionBreakpoint?.unsubscribe(),this.subscriptionStore?.unsubscribe(),this.reservaStore.resetPasso3ReservaLocalStorage(),this.continuarPasso04||this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{exibirPreAutorizacao:!1,valorPreAutorizacao:null,valoresModalPreAutorizacao:null}})}IsPrepaidEnabled(e){if(e?.reserva?.preSelecionarOfertaPrepago){this.meioPagamentoSelecionado="Link";let a=this.ofertasDisponiveis?.find(o=>o.meioPagamento?.some(m=>m.tipo===this.meioPagamentoSelecionado&&m.selecionado));a&&(a.selecionado=!0,this.ofertaSelecionada=a)}this.protecaoPreSelecionada=e?.reserva?.protecaoSelecionada}IsTipoOfertaPreSelecionada(e){if(e?.reserva?.tipoOfertaPreSelecionada){this.meioPagamentoSelecionado=e?.reserva?.tipoOfertaPreSelecionada;let a=this.ofertasDisponiveis?.find(o=>o.meioPagamento?.some(m=>m.tipo===this.meioPagamentoSelecionado&&m.selecionado));a&&(a.selecionado=!0,this.ofertaSelecionada=a)}else this.IsPrepaidEnabled(e);this.attemptMexicoStep2AutoSelect(),this.protecaoPreSelecionada=e?.reserva?.protecaoSelecionada}attemptMexicoStep2AutoSelect(){let e=this.reserva?.codigoPaisAgenciaRetirada===pe,a=this.ofertasDisponiveis?.length===1&&(this.ofertasDisponiveis[0]?.meioPagamento?.length??0)<=1,o=this.mexicoStep2TariffActive||!!this.meioPagamentoSelecionado||a;if(!e||!o||this.mexicoStep2AutoSelectDone||!this.ofertasDisponiveis?.length)return;let m=this.meioPagamentoSelecionado?this.ofertasDisponiveis.find(_=>_.meioPagamento?.some(x=>x.tipo===this.meioPagamentoSelecionado&&x.selecionado)):void 0;if(!m&&this.meioPagamentoSelecionado&&(m=this.ofertasDisponiveis.find(_=>_.meioPagamento?.some(x=>x.tipo===this.meioPagamentoSelecionado))),!m){let _=new Set;if(this.ofertasDisponiveis.forEach(x=>x.meioPagamento?.forEach(O=>{O?.tipo&&_.add(O.tipo)})),_.size===1){let[x]=Array.from(_);this.meioPagamentoSelecionado=x,m=this.ofertasDisponiveis.find(O=>O.meioPagamento?.some(R=>R.tipo===x&&R.selecionado))??this.ofertasDisponiveis[0]}}!m&&a&&(m=this.ofertasDisponiveis[0],this.meioPagamentoSelecionado||(this.meioPagamentoSelecionado="PagamentoBalcao")),m&&(m.selecionado=!0,this.meioPagamentoSelecionado&&m.meioPagamento?.forEach(_=>{_.selecionado=_.tipo===this.meioPagamentoSelecionado}),this.ofertaSelecionada=m,this.mexicoStep2AutoSelectDone=!0,this.selecionarOferta(this.ofertaSelecionada))}buildMexicoTariffPanelOffer(){let e=this.ofertasDisponiveis??[];
5if(!e.length)return null;let a=e.find(St=>St.meioPagamento?.some(Ti=>Ti.tipo==="Link"&&Ti.selecionado)),o=e.find(St=>St.meioPagamento?.some(Ti=>Ti.tipo==="PagamentoBalcao"&&Ti.selecionado)),m=e[0],_=a??o??m;if(!_)return null;let x=this.reserva?.quantidadeDiarias||_.quantidadeDiarias||1,O=_.tarifa?.moeda??"",R=a??m,K=o??m,me=R.meioPagamento?.find(St=>St.tipo==="Link"),ke=K.meioPagamento?.find(St=>St.tipo==="PagamentoBalcao"),qe=R.tarifa?.valorDiariaSemCombo??me?.valorDiaria??0,at=R.tarifa?.valorTotalDiarias||me?.valorTotal||qe*x,Pt=me?.valorDiariaSemDesconto??qe,Ct=K.tarifa?.valorDiariaSemCombo||ke?.valorDiaria||Pt,Ht=K.tarifa?.valorTotalDiarias||ke?.valorTotal||Ct*x,At=[];return a&&me&&At.push(X($({},me),{tipo:"Link",selecionado:this.meioPagamentoSelecionado==="Link",valorDiaria:qe,valorDiariaSemDesconto:Pt,valorTotal:at,valorPromocionalPrePago:qe,valorTotalDiariasPromocionalPrePago:at,percentualDesconto:me.percentualDesconto??0})),o&&ke&&At.push(X($({},ke),{tipo:"PagamentoBalcao",selecionado:this.meioPagamentoSelecionado==="PagamentoBalcao",valorDiaria:Ct,valorDiariaSemDesconto:Ct,valorTotal:Ht,percentualDesconto:0})),!At.length&&_.meioPagamento?.length&&_.meioPagamento.forEach(St=>{At.push(X($({},St),{selecionado:St.tipo===this.meioPagamentoSelecionado}))}),X($({},_),{quantidadeDiarias:x,tarifa:X($({},_.tarifa??{}),{moeda:O,valorDiaria:At[0]?.valorDiaria??qe}),meioPagamento:At})}openMobileTariffPanel(){this.mexicoStep2TariffActive&&(this.mexicoTariffPanelOffer=this.buildMexicoTariffPanelOffer(),this.showMobileTariffPanel=!0,this.preencherDataLayerMexicoPainelMobileAberto())}closeMobileTariffPanel(){this.showMobileTariffPanel=!1,this.mexicoTariffPanelOffer=null}handleMobileTariffContinue(e){this.closeMobileTariffPanel(),!(!e||e.tipo===this.meioPagamentoSelecionado)&&(this.preencherDataLayerMexicoPainelMobileTarifaConfirmada(e),this.meioPagamentoSelecionado=e.tipo,this.mexicoStep2AutoSelectDone=!1,this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{tipoOfertaPreSelecionada:e.tipo,preSelecionarOfertaPrepago:e.tipo==="Link"}}),this.attemptMexicoStep2AutoSelect())}getDadosCotacao(){this.subscriptionStore=this.reservaStore.state$.subscribe(e=>{let a=localStorage.getItem("reservaPasso3"),o=a?JSON.parse(a):null;this.handleReservaState(e,o),this.handlePreAutorizacao(),this.handleOfertaSelecionada(),this.handleCodigoPaisAgenciaRetirada(),this.handleLoginPasso3(),this.IsTipoOfertaPreSelecionada(e),this.handleHideFast()})}handleReservaState(e,a){!e.reserva.grupoSelecionado&&!a?this._redirectHome():e.reserva.isPasso3Concluido=!1,e.reserva.grupoSelecionado?localStorage.setItem("reservaPasso3",JSON.stringify(e)):e.reserva.codigoAgenciaRetirada===null&&(a.reserva.dataRetirada=Uo.datas.obterDate(a.reserva.dataRetirada,!0),a.reserva.dataDevolucao=Uo.datas.obterDate(a.reserva.dataDevolucao,!0),e=a,this.reservaStore.setState(e)),this.reserva=e.reserva,this.removeIvaForColombia()}removeIvaForColombia(){this.reserva?.codigoPaisAgenciaRetirada===Fe&&this.reserva?.ofertaSelecionada?.tarifa?.valoresAdicionais?.length&&(this.reserva.ofertaSelecionada.tarifa.valoresAdicionais=this.reserva.ofertaSelecionada.tarifa.valoresAdicionais?.filter(e=>e.descricao?.toUpperCase()!==sn.Iva))}handlePreAutorizacao(){!this.verificouPreAutorizacao&&this.reserva.codigoPaisAgenciaRetirada===le&&this.reserva.quantidadeDiarias<Xa&&(this.verificouPreAutorizacao=!0,this.featureToggleService.validarEstadoFuncionalidade(ut.featureToggle.pre_autorizacao).pipe(w(1)).subscribe(e=>this.showPreAutorizacao=e.ativo))}handleOfertaSelecionada(){this.reserva?.ofertaSelecionada&&(this.ofertaSelecionada=this.reserva.ofertaSelecionada,this.atualizarListaUpgradesDisponiveis(this.ofertaSelecionada),this.hasBundles=this.bundleService.hasBundle(this.reserva?.codigoAgenciaRetirada),this.reserva.codigoPaisAgenciaRetirada===le&&this.reserva?.quantidadeDiarias<30&&this.hasBundles&&(this.ofertaUnica=!0))}handleCodigoPaisAgenciaRetirada(){!this.emitedSelectedPickUpType&&this.isBrazil&&(this.monthlyFlow||this.isFranchise)&&(this.emitSelectedPickUpType("balcao"),this.emitedSelectedPickUpType=!0),this.buscarCotacaoReservaPorGrupo("balcao"),this.reserva?.ofertaSelecionada?.combos&&this.reserva?.ofertaSelecionada?.combos.length>0&&(this.showSectionBundle=!0,this.showComboProtection=!0,this.buscarCotacaoReservaPorGrupo("balcao")),this.updatePickupOptions()}
5handleLoginPasso3(){if(this.reserva?.isLoginPasso3&&this.authService.autenticado()&&this.ofertaSelecionada){let e=this.reserva.ofertaSelecionada;this.selecionarTipoRetirada(this.reserva.tipoRetiradaSelecionado!==null?this.reserva.tipoRetiradaSelecionado:"balcao"),e&&this.selecionarOferta(e),this.reserva.tipoRetiradaSelecionado==Ge.FAST&&this._checkLoginFast(e)}}handleHideFast(){this.reserva?.hideFast&&(this.selecionarTipoRetirada("balcao"),this.colapsarTipoRetirada=!this.isDesktop,this._limparHideFast())}tratarOfertasPrePagamentoMexico(e){return e=this.tratarOfertasPrePagamentoMexicoDuplicadas(e),e.ofertas.forEach(a=>{this.criarMeioPagamentoEmOfertas(a)}),e.ofertas=this.criarOfertaDeMeioPagamento(e.ofertas),e}tratarOfertasPrePagamentoMexicoDuplicadas(e){return e.ofertas.some((o,m,_)=>_.findIndex(x=>x.ofertaId===o.ofertaId)!==m)&&(e.ofertas=e.ofertas.filter((o,m,_)=>_.findIndex(x=>x.ofertaId===o.ofertaId)===m),e.ofertas=e.ofertas.map(o=>X($({},o),{meioPagamento:o?.meioPagamento?.filter(m=>m.tipo==="Link")}))),e}criarMeioPagamentoEmOfertas(e){e.meioPagamento??=new Array;let a=e.meioPagamento?.find(o=>o.tipo==="Link");if(a!=null){let o=e.meioPagamento.find(m=>m.tipo==="PagamentoBalcao");o!=null?(o.valorDiaria=a.valorDiariaSemDesconto,o.valorTotal=0,o.valorDiariaSemDesconto=a.valorDiariaSemDesconto):e.meioPagamento.push({identificador:"",selecionado:!1,tipo:"PagamentoBalcao",percentualDesconto:0,codigo:"En Mostrador",valorDiaria:a.valorDiariaSemDesconto,valorTotal:0,valorDiariaSemDesconto:a.valorDiariaSemDesconto,valorOferta:a.valorOferta,valorPromocional:a.valorPromocional,valorPromocionalPrePago:a.valorPromocionalPrePago})}}criarOfertaDeMeioPagamento(e){let a=[];return e.forEach(o=>{o.meioPagamento?.length>1&&o.meioPagamento.forEach(m=>{m.selecionado=!1;let _=this.translateService.instant(`prePagamento.meioPagamento.${m.tipo}`),x=structuredClone(o);x.ofertaMeioPagamentoId=`${x.ofertaId}_${m.tipo}`,x.meioPagamento=structuredClone(o.meioPagamento),x.descricao=_,x.valorTotal=m.valorTotal,x.tarifa.valorDiariaSemCombo=m.valorDiaria,x.tarifa.valorTotalDiarias=m.valorTotal,x.tarifa.valorLiquidoSemCodigoPromocional=m.valorOferta,x.tarifa.valorDiariaSemCombo=m.valorPromocional,m.tipo==="Link"&&(x.atributos=structuredClone(o.atributos),x.tarifa.valorLiquidoSemCodigoPromocional=m.valorOferta,x.tarifa.valorDiariaSemCombo=m.valorPromocionalPrePago,x.tarifa.existeDescontoPromocional=!0),x.meioPagamento.forEach(O=>{O.selecionado=O.tipo===m.tipo}),o.selecionado=!1,a.unshift(x)})}),a.length===0?e:a}meioDePagamentoAtualizarOferta(e){let a=e.meioPagamento?.find(o=>o.selecionado&&o.tipo==="Link");a&&(e.descricao=this.translateService.instant(`prePagamento.meioPagamento.${a.tipo}`))}bestCostBenefitOffer(){let e=this.featureFlagService.valueFlag("oferta_melhor_custo_beneficio");return e?.testeAtivo?e?.cenariosTeste?.find(o=>this.insiderService.bestValueActivated(o?.codigosVariacaoOfertaCustoBeneficio))?.nomeOferta??e?.melhorCustoBeneficio:e?.melhorCustoBeneficio}validarBuscarCotacaoReservaPorGrupo(){return this.reserva?.idCotacao&&this.reserva?.grupoSelecionado?.codigoLocaliza}atualizarTipoRetirada(e){this.reserva.tipoRetiradaSelecionado=e==="balcao"?Ge.BALCAO:Ge.FAST}configuraGrupoPorTipoDeRetirada(e){if(e==="fast")return this.tipoRetiradaFastSelecionada?(this.ofertasDisponiveis=this.tipoRetiradaFastSelecionada.ofertas,this.progressSpinner.spin$.next(!1),null):this.reserva.grupoSelecionado.codigoGrupoFastEquivalente?this.reserva.grupoSelecionado.codigoGrupoFastEquivalente:this.reserva.grupoSelecionado.codigoLocaliza;if(e==="balcao")return this.tipoRetiradaBalcaoSelecionada&&!this.reserva.parceiro?(this.ofertasDisponiveis=this.tipoRetiradaBalcaoSelecionada.ofertas,this.progressSpinner.spin$.next(!1),null):this.reserva?.grupoSelecionado?.codigoLocaliza}checaSeOfertaUnica(){this.reserva.codigoPaisAgenciaRetirada===le&&this.reserva?.quantidadeDiarias<30&&this.hasBundles&&(this.ofertaUnica=!0)}obterOfertaDeMelhorCustoBeneficio(){return this.isBrazil&&!this.isFranchise&&this.monthlyFlow?this.bestCostBenefitOffer():void 0}buscarCotacaoReservaPorGrupo(e,a=null){if(!this.validarBuscarCotacaoReservaPorGrupo()||this.mexicoStep2TariffActive&&this.mexicoStep2AutoSelectDone&&!this.showSectionBundle)return;this.atualizarTipoRetirada(e),this.progressSpinner.spin$.next(!0);let o=this.configuraGrupoPorTipoDeRetirada(e);if(!o){this.attemptMexicoStep2AutoSelect();return}this.ocorreuErroBuscarCotacaoPorGrupo=!1,this.hasBundles=this.bundleService.hasBundle(this.reserva?.codigoAgenciaRetirada),this.checaSeOfertaUnica();let m=this.obterOfertaDeMelhorCustoBeneficio();this.subscriptionCotacao=this.cotacaoService.BuscarCotacaoReservaPorGrupo(this.reserva.idCotacao,o,this.reserva.codigoPaisAgenciaRetirada!=="0055",this.reserva.codigoPaisAgenciaRetirada,m).subscribe(_=>{if(_.ofertas.sort((x,O)=>x.tarifa.valorDiariaSemCombo<O.tarifa.valorDiariaSemCombo?-1:x.tarifa.valorDiariaSemCombo>O.tarifa.valorDiariaSemCombo?1:0),this.reserva?.codigoPaisAgenciaRetirada!==le&&(_=this.tratarOfertasPrePagamentoMexico(_)),this.showSectionUnlimitedkm=_?.exibirSelecaoQuilometragem??!1,!this.tipoRetiradaFastSelecionada&&e==="fast"?(this.tipoRetiradaFastSelecionada=_,this.ofertasDisponiveis=_.ofertas):!this.tipoRetiradaBalcaoSelecionada&&e==="balcao"&&(this.tipoRetiradaBalcaoSelecionada=_,this.ofertasDisponiveis=_.ofertas),(this.ofertaSelecionada||_?.ofertas[0]?.grupoVeiculo?.tipoRetirada)&&(this.ofertasDisponiveis=_.ofertas.map(x=>x.ofertaId===this.ofertaSelecionada?.ofertaId?X($({},x),{selecionado:!0}):x)),this.reserva.parceiro&&this.partnerDoterUsageType==="use"){let x=_.ofertas?.filter(O=>O.meioPagamento?.some(R=>R.tipo==="PagamentoBalcao"&&R.selecionado)||O.meioPagamento?.length===0);this.ofertasDisponiveis=x}this._focarAdicionais(a),this.terminouDeCarregar=!0,this.showPickUpTypeBtn=!1,this.progressSpinner.spin$.next(!1),this.attemptMexicoStep2AutoSelect()},({error:_})=>{this.mensagensErroBuscarCotacaoPorGrupo=_?.mensagensUsuario,this.ocorreuErroBuscarCotacaoPorGrupo=!0,this.terminouDeCarregar=!0,this.showPickUpTypeBtn=!0,this.progressSpinner.spin$.next(!1)})}_focarAdicionais(e){pi(200).pipe(w(1)).subscribe(()=>{let a=this.reserva?.codigoPaisAgenciaRetirada===pe;(this.isBrowser&&!a||e==="dotersSelection")&&document.querySelector("#lista-ofertas")?.scrollIntoView({behavior:"smooth"})})}atualizarListaUpgradesDisponiveis(e){e&&e.upgrades&&(this.upgradesDisponiveis=e.upgrades.length>0?e.upgrades:null)}salvarDadosStore(e){this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{ofertas:this.reserva.ofertas.map(a=>(a.ofertaId===e.ofertaId&&(a=X($({},a),{ofertaAlterada:e.ofertaAlterada})),a)),ofertaSelecionada:X($({},e),{destaque:this.itemFeatured}),hideFast:!1,isLoginPasso3:!1}})}selecionarTipoRetirada(e,a=!1){if(this.emitSelectedPickUpType(e),this.isBrowser&&a&&localStorage.setItem("controlledKmSelected",""),this.showSectionBundle&&(this.showSectionBundle=!1),!this.tipoRetiradaSelecionada)this.tipoRetiradaSelecionada=e,this.reserva.tipoRetiradaSelecionado=e=="balcao"?Ge.BALCAO:Ge.FAST;else if(this.tipoRetiradaSelecionada===e)return;this.ofertaSelecionada=null,this.tipoRetiradaSelecionada=e,this.reserva.tipoRetiradaSelecionado=e=="balcao"?Ge.BALCAO:Ge.FAST,this.buscarCotacaoReservaPorGrupo(e)}selectOffer(e){if(this.isBrazil&&this.monthlyFlow){this.newOffer=e;return}this.selecionarOferta(e)}selecionarOferta(e){let a=this.reserva?.tipoRetiradaSelecionado==="fast";this.kmSelected=!this.showSectionUnlimitedkm,a&&!this.authService.autenticado()?this.logar(e):(this.handleOfferSelection(e),this.isMexico&&this.preencherDataLayerOfertaSelecionada(e))}handleOfferSelection(e){this.reserva?.codigoPaisAgenciaRetirada===Fe?this.preencherDataLayerColombiaOfertaSelecionada(e):this.ofertaSelecionada&&this.preencherDataLayerRemovendoOfertaSelecionada(this.ofertaSelecionada),this.progressSpinner.spin$.next(!0);let a=this.reserva?.codigoPaisAgenciaRetirada===le?[]:this.getMeioPagamentoSelecionado(e),o=this.reserva?.codigoPaisAgenciaRetirada!==le,m=!!e?.meioPagamento?.some(O=>O?.selecionado),_=o&&(this.ofertasDisponiveis?.length??0)===1&&(e?.meioPagamento?.length??0)<=1,x=this.setSelectedPickUpType(e);this.cotacaoService.GetOfferSelected(e.cotacaoId,e.ofertaId,x,this.comboPreFlag,this.reserva?.codigoPaisAgenciaRetirada).pipe(yr(1e3)).subscribe(O=>{a.length>0||o&&m||_?this.recalcularOfertaBundle(e,a):(this.tratarCotacao(O),this.kmSelected=!0)},()=>{this.progressSpinner.spin$.next(!1),this.showSectionBundle=!0})}
5getMeioPagamentoSelecionado(e){return e.meioPagamento?.filter(a=>a.identificador!=="").map(a=>({identificador:a.identificador,quantidade:a.selecionado?1:0,selecionado:a.selecionado,permiteAlteracao:!0}))||[]}get comboPreFlag(){return this.dailyFlow&&this.isBrazil&&!this.isFranchise&&(!this.reserva.ofertaSelecionada?.combos||this.reserva.ofertaSelecionada?.combos.length==0)&&this.insiderService.preFlagPremiumBundleActivated()?this.featureFlagService.valueFlag("upsell_bundles_index")?.indexes?.COMPLETE:null}recalcularOfertaBundle(e,a){a||this.progressSpinner.spin$.next(!0);let o=e?.quilometragemControlada?.adicionalKmLivre,m=[{identificador:o?.codigo,selecionado:o?.selecionado}],_=this.setSelectedPickUpType(e);this.cotacaoService.RecalcularOfertaBundle(e.cotacaoId,e.ofertaId,a||m,this.reserva?.codigoPaisAgenciaRetirada,_).subscribe(x=>{this.tratarCotacao(x,!0),this.kmSelected=!0,this.progressSpinner.spin$.next(!1)},()=>{this.progressSpinner.spin$.next(!1),this.showSectionBundle=!0})}tratarCotacao(e,a=!1){if(a||(this.itemFeatured=e.destaque,this.combo=e.combos),this.meioDePagamentoAtualizarOferta(e),this.salvarDadosStore(e),this.showProgressiveDiscountModal||this.openProgressiveDiscountModal(),this.showSectionBundle=!0,(this.offerSelectedByUser||!this.isBrazil)&&this.focusAdditional(),this.showComboProtection=this.reserva.codigoPaisAgenciaRetirada==="0055"&&this.reserva.ofertaSelecionada?.combos?.length>0&&this.hasBundles,this.showComboProtection||(this.showComboOrAdditional=!1),this.reserva.ofertaSelecionada=X($({},e),{destaque:this.itemFeatured,combos:this.combo}),this.showPreAutorizacao&&this.isPreAuthorizationValueVisible()){let o=this.criarListaDeProtecoesPreAutorizacao(e);this.getDadosPreAutorizacao(o),this.ultimaListaDeCodigosFriggaPreAutorizacao=o}this.progressSpinner.spin$.next(!1)}focusAdditional(){let e=this.reserva.codigoPaisAgenciaRetirada===pe;!this.isBrowser||!e||pi(200).pipe(w(1)).subscribe(()=>{if(this.isWebview){this.scrollProtectionsTitleBelowWebviewHeader();return}document.querySelector("#lista-adicionais")?.scrollIntoView({behavior:"smooth"})})}scrollProtectionsTitleBelowWebviewHeader(){let e=document.querySelector(".lista-de-adicionais-conteudo-header__rental-add-ons-title")??document.querySelector("#lista-adicionais");if(!e){window.scrollTo({top:0,behavior:"smooth"});return}let o=document.querySelector(".header__preview-webview")?.getBoundingClientRect().height??0,_=e.getBoundingClientRect().top+window.scrollY-o-8;window.scrollTo({top:Math.max(0,_),behavior:"smooth"})}handleClickValueDetails(){let e=this.dialog.open(Ad,{maxWidth:"100%",height:"100%",width:"100%",data:{bookingData:this.reserva,showPreAuthorization:this.showPreAutorizacao,preAuthorizationValue:this.preAutorizacaoValue,loadingPreAuthorization:this.carregandoPreAutorizacao,errorPreAuthorization:this.ocorreuErroPreAutorizacao,hasCompleteProtection:this.hasCompleteProtection,showPreAuthorizationLoggedOut:this.showPreAuthorizationLoggedOut,hasCombo:this.showComboOrAdditional}});e.componentInstance.sawTotalValue.subscribe(()=>{this.sawTotalValueEvent("visualizacao_valor_total_detalhes")}),e.componentInstance.sawPreAuthorizationValue.subscribe(()=>{this.sawPreAuthorizationValueEvent("visualizacao_pre_autorizacao_mobile")})}logar(e){this.isUniIIDActive?this.uniIdLogin(e):this.abrirModalLogin(e)}ativarOfertaSelecionada(){this.ofertasDisponiveis&&(this.ofertasDisponiveis=this.ofertasDisponiveis.map(e=>X($({},e),{selecionado:e.ofertaId===this.ofertaSelecionada?.ofertaId})))}verificarElegibilidadeFast(e){this.progressSpinner.spin$.next(!0),this.clienteService.verifyDigitalPickupEligibility(this.reserva.codigoAgenciaRetirada).pipe(w(1)).subscribe(a=>{if(a?.elegivelRetiradaDigital){if(this.ofertaSelecionada&&this.preencherDataLayerRemovendoOfertaSelecionada(this.ofertaSelecionada),this.showPreAutorizacao&&this.isPreAuthorizationValueVisible()){let o=this.criarListaDeProtecoesPreAutorizacao(this.ofertaSelecionada);this.getDadosPreAutorizacao(o),this.ultimaListaDeCodigosFriggaPreAutorizacao=o}this.atualizarListaUpgradesDisponiveis(e),this.salvarDadosStore(e),this.ativarOfertaSelecionada(),this.preencherDataLayerAddOfertaSelecionada(e),this.progressSpinner.spin$.next(!1)}else this.mensagensErroFastNaoElegivel=a.mensagemParaCliente,this.progressSpinner.spin$.next(!1),this.abrirModalNaoElegivelFast()},()=>{this.ocorreuErroRotaElegibilidadeFast=!0,this.progressSpinner.spin$.next(!1),this.abrirModalNaoElegivelFast()})}criarNovaCotacao(){this.progressSpinner.spin$.next(!0),this.usuarioNaoElegivelFast=!0,this.ocorreuErroNovaCotacao=!1;let e=new ic;e.codigoAgenciaRetirada=this.reserva.codigoAgenciaRetirada,e.dataHoraRetirada=this.topbarFirstStepService.formatDateTimeAsISOString(this.reserva.dataRetirada,this.reserva.horaRetirada),e.codigoAgenciaDevolucao=this.reserva.codigoAgenciaDevolucao,e.dataHoraDevolucao=this.topbarFirstStepService.formatDateTimeAsISOString(this.reserva.dataDevolucao,this.reserva.horaDevolucao),this.usuario?.id&&(e.clienteId=this.usuario.id),e.quantidadeDiasSomados=this.reserva.quantidadeDiarias,e.reservaParceiro=this.reserva.agenciaParceira,e.reservaParceiro?(this.reserva.codigoPromocionalPC&&(e.codigoPromocionalPC=this.reserva.codigoPromocionalPC),this.reserva.codigoPromocionalCDP&&(e.codigoPromocionalCDP=this.reserva.codigoPromocionalCDP),e.utilizarPontos=!1):(this.reserva.codigoPromocional&&(e.codigoPromocional=this.reserva.codigoPromocional),this.reserva.codigoPromocionalCriptografado&&(e.codigoPromocionalCriptografado=this.reserva.codigoPromocionalCriptografado),e.utilizarPontos=this.reserva.utilizarPontosFidelidade),this.cotacaoService.CriarMelhoresOfertas(e,!1,void 0,void 0,this.reserva?.codigoPaisAgenciaRetirada).pipe(w(1)).subscribe(a=>{this.salvarNovaCotacaoNoStore(a),this.preencherDataLayerNovaCotacao(e,a),this.progressSpinner.spin$.next(!1),this.translateService.get("url.reserva.passo2").pipe(w(1)).subscribe(o=>{this.router.navigate([o])})},()=>{this.progressSpinner.spin$.next(!1),this.ocorreuErroNovaCotacao=!0})}salvarNovaCotacaoNoStore(e){this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{idCotacao:e.cotacaoReservaId,ofertas:e.ofertas.map(a=>X($({},a),{ofertaAlterada:!1})),hideFast:!1,ofertaSelecionada:null,grupoSelecionado:null,clienteId:this.usuario?.id}})}_limparHideFast(){this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{hideFast:!1}})}handleAlteracaoUpgrade(e){if(this.meioDePagamentoAtualizarOferta(e),this.salvarDadosStore(X($({},e),{ofertaAlterada:this.ofertaSelecionada?.ofertaAlterada||!1})),this.showPreAutorizacao&&this.isPreAuthorizationValueVisible()){let a=this.criarListaDeProtecoesPreAutorizacao(e);this.getDadosPreAutorizacao(a),this.ultimaListaDeCodigosFriggaPreAutorizacao=a}}handleAlteracaoEquipamentosOpcionais(e){if(this.meioDePagamentoAtualizarOferta(e),this.salvarDadosStore(e),this.showPreAutorizacao&&this.isPreAuthorizationValueVisible()){let a=this.criarListaDeProtecoesPreAutorizacao(e);this.hasCompleteProtection=a?.length>0,JSON.stringify(a)!==JSON.stringify(this.ultimaListaDeCodigosFriggaPreAutorizacao)&&(this.getDadosPreAutorizacao(a),this.ultimaListaDeCodigosFriggaPreAutorizacao=a)}}abrirModalLogin(e){this.dialog.open(fo,{maxWidth:this.isDesktop?"53.6rem":"100%",height:this.isDesktop?"auto":"100%",width:"100%"}).afterClosed().pipe(w(1)).subscribe(o=>{o&&this._checkLoginFast(e)}
5)}_checkLoginFast(e){this.usuario=this.authService.obterUsuarioLogado(),this.usuario&&e&&(this.verificarElegibilidadeFast(e),this.preencherDataLayerConfirmarFast())}uniIdLogin(e=null){this.progressSpinner.spin$.next(!0),e&&this.salvarDadosStore(e),this.isBrowser&&localStorage.setItem("ondeLogou","pickup_method_rd"),this.authService.grantCodePostUniId()}abrirModalNaoElegivelFast(){this.dialog.open(Bd,{disableClose:!0,maxWidth:this.isDesktop?"53.6rem":"100%",height:this.isDesktop?"auto":"100%",width:"100%",data:{msgErro:this.mensagensErroFastNaoElegivel,isErro:this.ocorreuErroRotaElegibilidadeFast}}).afterClosed().pipe(w(1)).subscribe(a=>{a&&this.usuario&&(this.criarNovaCotacao(),this.preencherDataLayerFastNaoElegivel())})}preencherDataLayerRemovendoOfertaSelecionada(e){this.googleAnalyticsService.preencherDataLayer({event:"eec.removeFromCart",eventCategory:"ecommerce",eventAction:"remove from cart",ehi:!1,ecommerce:{currencyCode:e.tarifa.moeda==="R$"?"BRL":e.tarifa?.moeda,remove:{products:[{id:e.descricao.replace(/- /g,"").replace(/â /,"").replace(/ /g,"_").toUpperCase(),name:e.descricao,category:"Pacotes",price:e.tarifa.valorDiariaSemCombo}]}}})}preencherDataLayerOfertaSelecionada(e){let a={event:"add_to_cart",ecommerce:{currency:e.tarifa.moeda==="R$"?"BRL":e.tarifa?.moeda,value:e.tarifa.valorDiariaSemCombo,items:[{item_id:e.descricao.replace(/- /g,"").replace(/â /,"").replace(/ /g,"_").toUpperCase(),item_name:e.descricao,item_category:"Pacotes",coupon:"",price:e.tarifa.valorDiariaSemCombo,quantity:this.reserva.quantidadeDiarias}]}};dataLayer.push({ecommerce:null}),dataLayer.push(a)}preencherDataLayerColombiaOfertaSelecionada(e){!e||!this.reserva||this.googleAnalyticsService.preencherDataLayer({event:"add_to_cart",ecommerce:{currency:e.tarifa.moeda==="R$"?"BRL":e.tarifa?.moeda,value:e.tarifa.valorDiariaSemCombo,items:[{item_id:e.meioPagamento?.find(a=>a.selecionado)?.tipo=="Link"?"PG":"PA",item_name:e.descricao,item_category:e.grupoVeiculo.codigoLocaliza,coupon:this.reserva.codigoPromocional||"",price:e.tarifa.valorDiariaSemCombo,quantity:this.reserva.quantidadeDiarias}]}})}preencherDataLayerAddOfertaSelecionada(e){this.googleAnalyticsService.preencherDataLayer({event:"eec.addToCart",eventCategory:"ecommerce",eventAction:"add to cart",ehi:!1,ecommerce:{currencyCode:e.tarifa.moeda==="R$"?"BRL":e.tarifa?.moeda,add:{products:[{id:e.descricao.replace(/- /g,"").replace(/â /,"").replace(/ /g,"_").toUpperCase(),name:e.descricao,category:"Pacotes",price:e.tarifa.valorDiariaSemCombo}]}}})}preencherDataLayerFastNaoElegivel(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"Selecao_Oferta",action:"Confirmar cpf nao elegivel",label:this.usuario?.id})}preencherDataLayerConfirmarFast(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"Selecao_Oferta",action:"Confirmar fast",label:this.usuario?.id})}preencherDataLayerNovaCotacao(e,a){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"Selecao_Oferta",action:"Criando nova cotacao",dadosdaBusca:{cotacaoReservaId:a.cotacaoReservaId,datas:{dataHoraDevolucao:a.dataHoraDevolucao,dataHoraRetirada:a.dataHoraRetirada},locais:{localRetirada:{codigoLocaliza:e.codigoAgenciaRetirada},localDevolucao:{codigoLocaliza:e.codigoAgenciaDevolucao}}}})}_redirectHome(){this.translateService.get("url.home").pipe(w(1)).subscribe(e=>{this.router.navigate([e])})}checkUniidToggle(){this.featureToggleService.validarEstadoFuncionalidade(this.featureToggleKey).pipe(w(1)).subscribe(e=>{this.isUniIIDActive=e.ativo},e=>{this._redirectHome()})}criarListaDeProtecoesPreAutorizacao(e){let a=e.itens.filter(m=>m.selecionado)||[],o=e?.combos?.find(m=>m.selecionado)?.itens||[];return[...a,...o].filter(m=>this.listaDeProtecoes.includes(m.codigoAdicionalFrigga)).map(m=>m.codigoAdicionalFrigga)}handleClickContinuar(e){if(this.continuarPasso04=!0,this.showPreAutorizacao&&!this.preAutorizacaoValue&&this.isPreAuthorizationValueVisible()&&this.ofertaSelecionada){let a=this.criarListaDeProtecoesPreAutorizacao(this.ofertaSelecionada);this.getDadosPreAutorizacao(a),this.ultimaListaDeCodigosFriggaPreAutorizacao=a}this.translateService.get("url.reserva.passo4").pipe(w(1)).subscribe(a=>{this.router.navigate([a])})}handleLogarPreAutorizacao(e){if(e&&this.ofertaSelecionada&&this.showPreAutorizacao&&this.authService.autenticado()){let a=this.criarListaDeProtecoesPreAutorizacao(this.ofertaSelecionada);this.getDadosPreAutorizacao(a),this.ultimaListaDeCodigosFriggaPreAutorizacao=a}}getDadosPreAutorizacao(e){this.progressSpinner.spin$.next(!0),this.carregandoPreAutorizacao=!0,this.ocorreuErroPreAutorizacao=!1;let a=this.reserva?.ofertaSelecionada?.upgrades.find(m=>m.selecionado),o={codigoAgenciaRetirada:this.reserva?.codigoAgenciaRetirada,codigoGrupoVeiculo:a?a.nomeGrupo:this.reserva?.grupoSelecionado?.codigoLocaliza,dataHoraRetirada:this.reserva?.dataRetirada,dataHoraDevolucao:this.reserva?.dataDevolucao,codigosFrigga:e};this._cartoesService.getValorPreAutorizacao(o).subscribe({next:m=>{this.preAutorizacaoValue=m?.valorPreAutorizacaoFormatado,this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{exibirPreAutorizacao:this.showPreAutorizacao,valorPreAutorizacao:this.preAutorizacaoValue,valoresModalPreAutorizacao:null}}),this.carregandoPreAutorizacao=!1,this.progressSpinner.spin$.next(!1)},error:()=>{this.carregandoPreAutorizacao=!1,this.ocorreuErroPreAutorizacao=!0,this.progressSpinner.spin$.next(!1)}})}sawTotalValueEvent(e){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"view_total_value",action:e,label:"passo_03"})}showComboOrAdditionalEvent(e){this.showComboProtection&&(this.showComboOrAdditional=e),this.showComboOrAdditional&&this.isDesktop&&this.itemReservationEl.nativeElement.scrollIntoView({behavior:"smooth"})}openModalOnboardingFast(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"pickup_method",action:"clicked",fast:this.reserva?.tipoRetirada?.fast,balcao:this.reserva?.tipoRetirada?.balcao,label:"como_usar_a_retirada_digital"}),this.dialog.open(Xi,{disableClose:!0,maxWidth:this.isDesktop?"57.6rem":"100%",maxHeight:this.isDesktop?"56.8rem":"100%",panelClass:"matDialog100Percent"})}get monthlyFlow(){return this.reserva?.ofertas[0]?.mensal===!0}
5get dailyFlow(){return this.reserva?.ofertas[0]?.mensal===!1}get isBrazil(){return this.reserva?.codigoPaisAgenciaRetirada===le}get isInternational(){return this.reserva?.codigoPaisAgenciaRetirada!==le}get hideUpgradeForMexicoPrepaid(){let e=this.reserva?.codigoPaisAgenciaRetirada===pe,a=this.ofertaSelecionada?.meioPagamento?.some(o=>o.tipo==="Link"&&o.selecionado);return e&&a}get isFranchise(){return this.reserva?.agenciaFranqueado??!1}get showPickUpType(){return this.isBrazil&&this.dailyFlow&&(this.isFranchise||!this.showComboProtection||this.showComboOrAdditional)}updatePickupOptions(){if(!this.reserva?.tipoRetirada)return;let{balcao:e,fast:a}=this.reserva.tipoRetirada;this.showHighlightedFast=e&&a,this.showOnlyDesk=!a&&e,this.showOnlyFast=!e&&a}emitSelectedPickUpType(e){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"pickup_method",action:"clicked",fast:e==="fast",balcao:e==="balcao",label:"continuar"})}sawPreAuthorizationValueEvent(e="visualizacao_pre_autorizacao"){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",action:"impression",category:"booking_overview",label:this.isPreAuthorizationValueVisible()?"pre_authorization_value_Showed":"pre_authorization_value_Not_Showed"})}get showPreAuthorizationLoggedOut(){return this.insiderService.preAuthorizationLoggedOutActivated()}isPreAuthorizationValueVisible(){return this.showPreAuthorizationLoggedOut||!!this.authService.autenticado()}setSelectedPickUpType(e){return e?.grupoVeiculo?.tipoRetirada?this.reserva?.tipoRetiradaSelecionado==Ge.FAST?ee.FAST:ee.BALCAO:null}get listaDeProtecoes(){return this.featureFlagService.valueFlag("itens_pre_autorizao")}get OferecerRedencaoPontosDoters(){return this.featureFlagService.valueFlag("doters_redencion")}onDoterSelectionChange(e){this.ofertasDisponiveis=[],this.reserva?.parceiro&&(this.partnerDoterUsageType=e,this.reserva.parceiro.usageType=e,this.showSectionBundle=!1,this.buscarCotacaoReservaPorGrupo("balcao","dotersSelection"))}handleOfferSelectionContinue(e){if(this.ofertaSelecionada?.ofertaId==this.newOffer?.ofertaId){e||(this.showProgressiveDiscountModal=this.clickedOnOneOfTheBtns,this.selecionarOferta(this.newOffer)),this.showOfferStep=e;return}if(!e){this.showProgressiveDiscountModal=!1,this.selecionarOferta(this.newOffer);return}this.openProgressiveDiscountExitModal().afterClosed().subscribe(o=>{this.sendAnalyticsOnProgressiveDiscountExit(o),o&&(this.cotacaoService.setHasOptedIntoProgressiveDiscount(!1),this.updateStoreOnProgressiveDiscountChange("",null,this.reserva.oldOfferDetail),this.newOffer=this.ofertaSelecionada,this.showOfferStep=e,this.selecionarOferta(this.newOffer))})}openProgressiveDiscountModal(){let e=this.getProgressiveDiscountModalData();if(!e)return;this.dialog.open(Rd,{disableClose:!0,maxWidth:this.isDesktop?"450px":"100%",maxHeight:this.isDesktop?"90vh":"100%",height:this.isDesktop?"auto":"100%",data:e}).afterClosed().subscribe(o=>{this.clickedOnOneOfTheBtns=o?.clickedOnOneOfTheBtns??!1,this.clickedOnOneOfTheBtns||this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"progressive_discount",action:"x_cta_clicked",label:this.getProgressiveDiscountModalData()?.days}),this.handleProgressiveDiscountReturn(o?.returnDate)})}getProgressiveDiscountModalData(){let e=this.reserva?.ofertaSelecionada;if(!this.monthlyFlow||!e?.mensalidades?.length){this.showOfferStep=!1;return}let a=e?.mensalidades?.filter(m=>m?.condicaoMensalidade===Di.SUGERIDA);if(!a?.length){this.showOfferStep=!1;return}let o=e?.mensalidades?.filter(m=>m?.condicaoMensalidade===Di.INCLUSA);return{pickupDate:this.reserva?.dataRetirada,previousReturnDate:this.reserva?.dataDevolucao,currency:e?.tarifa?.moeda??"R$",monthlyFeesSuggested:a,monthlyFeesIncluded:o,days:e?.quantidadeDiarias}}handleProgressiveDiscountReturn(e){if(!e){this.showOfferStep=!1,this.cotacaoService.setHasOptedIntoProgressiveDiscount(!1);return}this.progressSpinner.spin$.next(!0),this.cotacaoService.setHasOptedIntoProgressiveDiscount(!0);let a=$({},this.reserva?.ofertaSelecionada);this.cotacaoService.submitNewOfferSelection(this.reserva?.ofertaSelecionada?.cotacaoId??"",this.reserva?.ofertaSelecionada?.ofertaId??"",e).pipe(w(1),He(()=>this.progressSpinner.spin$.next(!1))).subscribe({next:o=>{this.showProgressiveDiscountModal=!0,this.tratarCotacao(o),this.updateStoreOnProgressiveDiscountChange(e,a),this.showOfferStep=!1},error:()=>this.openProgressiveDiscountErrorModal()})}openProgressiveDiscountErrorModal(){this.dialog.open(gn,{maxWidth:this.isDesktop?"30vw":"9
50vw",maxHeight:"auto",disableClose:!0,data:{icon:"status-error",title:"components.dumbs.modalProgressiveDiscount.error.title",description:"components.dumbs.modalProgressiveDiscount.error.description",labelBtn:"components.dumbs.errorModal.btnLabel",translateTexts:!0,disableEvents:!0}}).afterClosed().subscribe(()=>{this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"progressive_discount",action:"clicked_error"}),this.showOfferStep=!1,this.showProgressiveDiscountModal=!1})}openProgressiveDiscountExitModal(){return this.dialog.open(jn,{maxWidth:this.isDesktop?"450px":"360px",disableClose:!0,data:{startDate:this.reserva?.dataRetirada,endDate:this.reserva?.dataDevolucao,days:this.reserva?.quantidadeDiarias}})}canDeactivate(){return this.openProgressiveDiscountExitModal().afterClosed().pipe(po(a=>(this.sendAnalyticsOnProgressiveDiscountExit(a),a?(this.cotacaoService.setHasOptedIntoProgressiveDiscount(!1),this.updateStoreOnProgressiveDiscountChange("",null,this.reserva.ofertaSelecionada),!0):!1)))}sendAnalyticsOnProgressiveDiscountExit(e){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"progressive_discount",action:e?"clicked_yes_reset_modal":"clicked_no_reset_modal"})}updateStoreOnProgressiveDiscountChange(e,a,o){let m={};m.newReturnDate=e,m.oldOfferDetail=a,o&&(m.ofertaSelecionada=o),this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:m})}get showOfferStepOnMonthlyFlow(){return this.monthlyFlow?this.showOfferStep:!0}get showMexicoAbProtectionsSkeleton(){return this.mexicoStep2TariffActive&&this.terminouDeCarregar&&!this.showSectionBundle&&!this.showMobileTariffPanel&&!this.ocorreuErroBuscarCotacaoPorGrupo&&!this.ocorreuErroNovaCotacao}preencherDataLayerMexicoStep3Impressao(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"ab_test_mexico_step2_tariff",action:"step3_view",label:this.meioPagamentoSelecionado??"none"})}preencherDataLayerMexicoPainelMobileAberto(){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"ab_test_mexico_step2_tariff",action:"open_mobile_tariff_panel",label:this.meioPagamentoSelecionado??"none"})}preencherDataLayerMexicoPainelMobileTarifaConfirmada(e){this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"ab_test_mexico_step2_tariff",action:"change_tariff_mobile",label:e.tipo})}};r.\u0275fac=function(a){return new(a||r)(v(Ve),v(fe),v(ht),v(re),v(gt),v(xe),v(De),v(G),v(Qt),v(it),v(Ye),v(Pi),v(Q),v(ul),v(Zo),v(Mi),v(_t),v(fc),v(wt),v(Pe),v(Xn))},r.\u0275cmp=M({type:r,selectors:[["app-selecao-ofertas-opcionais"]],viewQuery:function(a,o){if(a&1&&(kt(ux,5),kt(fx,5)),a&2){let m;et(m=tt())&&(o.itemReservationEl=m.first),et(m=tt())&&(o.unlimitedKm=m.first)}},standalone:!1,decls:13,vars:16,consts:[["unlimitedKm",""],["itenReservationElement",""],[3,"breadCrumbs"],[1,"selecionar-oferta"],[1,"row","barra-navegacao"],[3,"ngClass"],[1,"row",3,"ngClass"],[1,"col-12","col-lg-4","order-1","order-lg-3"],[3,"grupoEscolhido","displayGroupNameAsFeatured","codigoPaisAgenciaRetirada",4,"ngIf"],["data-testid","box-booking-summary",3,"bookingData","showPreAuthorization","preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization","hasCompleteProtection","showPreAuthorizationLoggedOut","hasCombo","logouPreAutorizacao","sawTotalValue","sawPreAuthorizationValue",4,"ngIf"],[1,"col-12","col-lg-8","order-3","order-lg-2"],[4,"ngIf"],[1,"col-12"],[3,"step"],[3,"grupoEscolhido","displayGroupNameAsFeatured","codigoPaisAgenciaRetirada"],["data-testid","box-booking-summary",3,"logouPreAutorizacao","sawTotalValue","sawPreAuthorizationValue","bookingData","showPreAuthorization","preAuthorizationValue","loadingPreAuthorization","errorPreAuthorization","hasCompleteProtection","showPreAuthorizationLoggedOut","hasCombo"],["data-testid","unlimited-km",1,"unlimited-km",3,"offerSelected","addiotionalSelected","kmSelected","offerSelectedByUser","hasDiscount","offers","selectedOffer"],[3,"dadosDaReserva","selectionChange",4,"ngIf"],["id","lista-ofertas-0055",3,"ngClass","display","alugelMensal","reservaBrasil","rentInMexico","codigoPaisAgenciaRetirada","ofertas","ofertaUnica","dadosParceiroDoters","isTablet","showPercentageText","meioPagamentoSelecionado","offerSelectedId","parceiroReserva","ofertaSelecionada",4,"ngIf"],["class","mx-ab-protections-skeleton","data-testid","mx-ab-protections-skeleton","aria-hidden","true",4,"ngIf"],[3,"offers","offerSelected","selected",4,"ngIf"],[3,"selectionChange","dadosDaReserva"],["id","lista-ofertas-0055",3,"ofertaSelecionada","ngClass","alugelMensal","reservaBrasil","rentInMexico","codigoPaisAgenciaRetirada","ofertas","ofertaUnica","dadosParceiroDoters","isTablet","showPercentageText","meioPagamentoSelecionado","offerSelectedId","parceiroReserva"],[1,"mx-tariff-trigger",3,"ngClass"],["type","button",1,"mx-tariff-trigger__header",3,"click"],[1,"mx-tariff-trigger__titulo"],[1,"mx-tariff-trigger__titulo-texto"],["name","chevron-down",1,"mx-tariff-trigger__icone"],[3,"group","offer","quantidadeDiarias","groupIndex","respectPreSelectedMeio","continueSelection","closePanel",4,"ngIf"],[3,"continueSelection","closePanel","group","offer","quantidadeDiarias","groupIndex","respectPreSelectedMeio"],["data-testid","mx-ab-protections-skeleton","aria-hidden","true",1,"mx-ab-protections-skeleton"],["count","3",3,"theme"],[3,"selected","offers","offerSelected"],["id","lista-ofertas-franchise",3,"ofertaSelecionada","alugelMensal","reservaBrasil","codigoPaisAgenciaRetirada","ofertas","ofertaUnica","isTablet","showPercentageText","meioPagamentoSelecionado","offerSelectedId"],["id","lista-ofertas",3,"ofertaSelecionada","alugelMensal","reservaBrasil","codigoPaisAgenciaRetirada","ofertas","ofertaUnica","isTablet","showPercentageText","offerSelectedId"],[3,"offers","selected",4,"ngIf"],[3,"selected","offers"],["id","lista-adicionais",3,"reserva","
5showComboProtection","showComboOrAdditional","offerSelectedByUser","protecaoPreSelecionada","equipamentosOpcionaisChanged",4,"ngIf"],[3,"reserva","isNoShow","fccraAtivo","textPFAMPreAutorizacao","showPreAutorizacao","preAutorizacaoValue","carregandoPreAutorizacao","errorPreAutorizacao","showComboProtection","showInfoTwentySevenHours","showComboOrAdditional","showOfferStep","newOffer","monthlyFlow","clickContinuar","logouPreAutorizacao","handleClickValueDetails","sawTotalValueEvent","showComboOrAdditionalEvent","equipamentosOpcionaisChanged","handleOfferSelectionContinue",4,"ngIf"],["id","lista-adicionais",3,"equipamentosOpcionaisChanged","reserva","showComboProtection","showComboOrAdditional","offerSelectedByUser","protecaoPreSelecionada"],[3,"cotacaoId","moeda","ofertaId","upgrades","isTablet","offerPickUpType","selectedPickUpType","codigoPaisAgenciaRetirada","upgradeChanged",4,"ngIf"],[3,"upgradeChanged","cotacaoId","moeda","ofertaId","upgrades","isTablet","offerPickUpType","selectedPickUpType","codigoPaisAgenciaRetirada"],[3,"cotacaoId","moeda","ofertaId","upgrades","isTablet","codigoPaisAgenciaRetirada","upgradeChanged",4,"ngIf"],[3,"upgradeChanged","cotacaoId","moeda","ofertaId","upgrades","isTablet","codigoPaisAgenciaRetirada"],[3,"clickContinuar","logouPreAutorizacao","handleClickValueDetails","sawTotalValueEvent","showComboOrAdditionalEvent","equipamentosOpcionaisChanged","handleOfferSelectionContinue","reserva","isNoShow","fccraAtivo","textPFAMPreAutorizacao","showPreAutorizacao","preAutorizacaoValue","carregandoPreAutorizacao","errorPreAutorizacao","showComboProtection","showInfoTwentySevenHours","showComboOrAdditional","showOfferStep","newOffer","monthlyFlow"]],template:function(a,o){a&1&&(B(0,Cx,1,1,"app-breadcrumb",2),B(1,bx,1,0,"app-header-preview"),s(2,"section",3),B(3,xx,3,1,"div",4),s(4,"div",5)(5,"div",6)(6,"div",7),C(7,Px,1,3,"app-grupo-escolhido",8)(8,Sx,1,8,"app-box-booking-summary",9),l(),s(9,"div",10),C(10,yx,1,0,"app-toast-erro",11)(11,qx,6,5,"ng-container",11)(12,Hx,1,0,"app-toast-erro",11),l()()()()),a&2&&(F(o.isWebview?-1:0),n(),F(o.terminouDeCarregar?1:-1),n(),Z("selecionar-oferta--webview",o.isWebview),n(),F(o.isWebview?-1:3),n(),d("ngClass",L(12,np,o.isTablet)),n(),d("ngClass",L(14,gx,!o.isTablet)),n(2),d("ngIf",(o.reserva==null?null:o.reserva.codigoPaisAgenciaRetirada)!=="0055"&&(o.reserva==null?null:o.reserva.grupoSelecionado)&&!o.webviewService.isWebView()),n(),d("ngIf",o.ofertaSelecionada&&o.isTablet&&o.kmSelected),n(2),d("ngIf",o.ocorreuErroBuscarCotacaoPorGrupo&&o.terminouDeCarregar),n(),d("ngIf",o.terminouDeCarregar&&(!o.ocorreuErroBuscarCotacaoPorGrupo||!o.ocorreuErroNovaCotacao)),n(),d("ngIf",o.ocorreuErroNovaCotacao&&o.terminouDeCarregar))},dependencies:[Vd,de,N,Nt,si,Ot,Bt,fl,ki,uc,Ud,ro,Jn,Gd,$d,Yd,Qd,ap,T],styles:["h1[_ngcontent-%COMP%]{color:#01602a;font-size:3.2rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;line-height:3.8rem;text-transform:none}h2[_ngcontent-%COMP%]{font-size:2.4rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;line-height:2.9rem;color:#01602a;text-transform:none}h3[_ngcontent-%COMP%]{font-size:2rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;line-height:2.4rem;color:#01602a}.barra-navegacao[_ngcontent-%COMP%]{margin:2.4rem auto 3.2rem}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{font-size:2rem;line-height:3.2rem;text-transform:inherit;font-weight:400;margin-bottom:1.2rem}@media(min-width:768px){h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{font-size:2.5rem;line-height:3.8rem}}p[_ngcontent-%COMP%]{color:#4a4a4a;font-size:1.2rem;line-height:1.4rem;margin-bottom:1.2rem}@media(min-width:768px){.selecionar-oferta[_ngcontent-%COMP%]{padding-bottom:12rem}}.selecionar-oferta--webview[_ngcontent-%COMP%] #lista-adicionais[_ngcontent-%COMP%], .selecionar-oferta--webview[_ngcontent-%COMP%] #lista-de-adicionais, .selecionar-oferta--webview[_ngcontent-%COMP%] #bundles, .selecionar-oferta--webview[_ngcontent-%COMP%] .lista-de-adicionais-conteudo-header__rental-add-ons-title{scroll-margin-top:var(--webview-header-offset, calc(env(safe-area-inset-top, 0px) + 9.6rem) )}.pickup-type[_ngcontent-%COMP%]{padding:1.6rem}@media(min-width:1200px){.pickup-type[_ngcontent-%COMP%]{padding:0}}.mx-tariff-trigger[_ngcontent-%COMP%]{background-color:#f2f2f2;margin-bottom:2.4rem;margin-top:-24px}@media(min-width:992px){.mx-tariff-trigger[_ngcontent-%COMP%]{background-color:transparent}}.selecionar-oferta--webview[_ngcontent-%COMP%] .mx-tariff-trigger[_ngcontent-%COMP%]{margin-top:0}.mx-tariff-trigger--aberto[_ngcontent-%COMP%] .mx-tariff-trigger__icone[_ngcontent-%COMP%]{transform:rotate(180deg)}.mx-tariff-trigger__header[_ngcontent-%COMP%]{align-items:center;background:transparent;border:0;color:#01602a;cursor:pointer;display:flex;justify-content:space-between;padding:1.6rem 0;width:100%}.mx-tariff-trigger__header[_ngcontent-%COMP%]:focus-visible{outline:2px solid #01602a;outline-offset:2px}.mx-tariff-trigger__titulo[_ngcontent-%COMP%]{align-items:center;display:flex;gap:.8rem}.mx-tariff-trigger__titulo-icone[_ngcontent-%COMP%]{height:2.4rem;width:2.4rem}.mx-tariff-trigger__titulo-texto[_ngcontent-%COMP%]{font-size:1.6rem;line-height:2.4rem;text-align:left}.mx-tariff-trigger__icone[_ngcontent-%COMP%]{height:2.4rem;width:2.4rem;transition:.4s}.mx-ab-protections-skeleton[_ngcontent-%COMP%]{display:block;margin-top:1.6rem}.mx-ab-protections-skeleton[_ngcontent-%COMP%] ngx-skeleton-loader[_ngcontent-%COMP%]{display:block}"]});let i=r;return i})();function $x(i,r){if(i&1&&(s(0,"span",14),p(1),l()),i&2){let t=g();n(),f(" ",t.translate().minimumValueError," ")}}function Wx(i,r){i&1&&h(0,"mat-spinner",15)}function Kx(i,r){if(i&1&&(s(0,"span"),p(1),c(2,"ldsCurrency"),l(
5)),i&2){let t=g();n(),f(" + ",y(2,1,t.parceiroValorPontos.valorRestanteEmPesos,(t.ofertaSelecionada==null||t.ofertaSelecionada.ofertaSelecionada==null||t.ofertaSelecionada.ofertaSelecionada.tarifa==null?null:t.ofertaSelecionada.ofertaSelecionada.tarifa.moeda)||"MXN")," ")}}var sp=(()=>{let r=class r{constructor(e,a){this.matDialogRef=e,this.parceiroRedencionService=a,this.data=I(ne),this.userName=this.data.userName||"",this.availablePoints=this.data.availablePoints||90800,this.maxPoints=1e3,this.convertendoValor=!1,this.editingPoints=!0,this.translateService=I(G),this.translate=Oe(this.translateService.stream("components.smarts.dotersPointsConvertModalComponent",{userName:this.userName,availablePoints:this.availablePoints})),this.parceiroValorPontos={id:Date.now().toString(),pontos:0,valor:0,valorRestanteEmPesos:0},this.pointsChangeSubject=new Ze,this.destroy$=new Ze,this.pointsChangeSubject.pipe(Co(2e3),Se(this.destroy$)).subscribe(o=>{let m=Math.min(Math.max(o,100),this.getMaxPoints());this.parceiroValorPontos.pontos=m,this.processPointsChange(m)})}ngOnInit(){this.maxPoints=this.data?.reserva?.ofertaSelecionada?.tarifa?.parceiro?.pontosValorTotal}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getMaxPoints(){return Math.min(this.availablePoints,this.maxPoints)}canConfirm(){return this.parceiroValorPontos.pontos>=100&&this.parceiroValorPontos.pontos<=this.getMaxPoints()}onPointsChange(e){let a=Number(e.target.value);this.editingPoints=!0;let o=Number.isNaN(a)?0:a;e.target.value=o,this.parceiroValorPontos.pontos=Number(o.toFixed(2)),o>this.getMaxPoints()&&(this.parceiroValorPontos.pontos=this.getMaxPoints()),this.canConfirm()&&(this.convertendoValor=!0,this.pointsChangeSubject.next(this.parceiroValorPontos.pontos))}processPointsChange(e){this.parceiroValorPontos.pontos=Number(e.toFixed(2)),this.parceiroRedencionService.converterPontos("PontosParaMoedas",this.data.cotacaoId,this.data.ofertaId,[{id:Date.now().toString(),pontos:this.parceiroValorPontos.pontos,valor:0}])?.subscribe(a=>{this.parceiroValorPontos.valor=a[0]?.valor||0,this.parceiroValorPontos.valorRestanteEmPesos=a[0]?.valorRestanteEmPesos||0,this.convertendoValor=!1,this.editingPoints=!1})}onConfirm(){this.matDialogRef.close({pontos:this.parceiroValorPontos.pontos,valor:this.parceiroValorPontos.valor,valorRestanteEmPesos:this.parceiroValorPontos.valorRestanteEmPesos})}onCancel(){this.matDialogRef.close()}};r.\u0275fac=function(a){return new(a||r)(v(Y),v(la))},r.\u0275cmp=M({type:r,selectors:[["app-doters-points-convert-modal"]],decls:19,vars:11,consts:[[1,"modal"],[1,"modal__header"],[1,"modal__title"],[1,"modal__subtitle"],[1,"modal__body"],["for","pointsInput",1,"modal__label"],["id","pointsInput","type","number","min","100",1,"modal__input",3,"ngModelChange","input","ngModel","max"],["class","modal__error",4,"ngIf"],[1,"modal__conversion"],["class","spinner",4,"ngIf"],[4,"ngIf"],[1,"modal__footer"],["theme","primary","fullwidth","true",3,"click","disabled"],["theme","secondary","fullwidth","true",3,"click"],[1,"modal__error"],[1,"spinner"]],template:function(a,o){a&1&&(s(0,"div",0)(1,"div",1)(2,"h2",2),p(3),l(),s(4,"p",3),p(5),l()(),s(6,"div",4)(7,"label",5),p(8),l(),s(9,"input",6),hi("ngModelChange",function(_){return _i(o.parceiroValorPontos.pontos,_)||(o.parceiroValorPontos.pontos=_),_}),b("input",function(_){return o.onPointsChange(_)}),l(),C(10,$x,2,1,"span",7),s(11,"div",8),C(12,Wx,1,0,"mat-spinner",9)(13,Kx,3,4,"span",10),l()(),s(14,"div",11)(15,"ds-new-button",12),b("click",function(){return o.onConfirm()}),p(16),l(),s(17,"ds-new-button",13),b("click",function(){return o.onCancel()}),p(18),l()()()),a&2&&(n(3),D(o.translate().title),n(2),f(" ",o.translate().subtitle," "),n(3),f(" ",o.translate().inputTitle," "),n(),gi("ngModel",o.parceiroValorPontos.pontos),d("max",o.availablePoints),n(),d("ngIf",o.parceiroValorPontos.pontos<100),n(2),d("ngIf",o.convertendoValor),n(),d("ngIf",!o.editingPoints&&o.parceiroValorPontos.valorRestanteEmPesos!==null&&o.parceiroValorPontos.valorRestanteEmPesos>0),n(2),d("disabled",o.convertendoValor||!o.canConfirm()),n(),f(" ",o.translate().confirm," "),n(2),f(" ",o.translate().cancel," "))},dependencies:[U,N,Te,ei,Kr,Ce,Qr,Yr,Io,be,ze,ai,ti,xi,oe,J,mt,pt,Ne],styles:[".modal[_ngcontent-%COMP%]{background:#fff;padding:3rem;border-radius:8px;max-width:400px;margin:auto;box-shadow:0 2px 10px #0000001a}.modal__header[_ngcontent-%COMP%]{margin-bottom:1rem}.modal__title[_ngcontent-%COMP%]{font-size:1.8rem;font-weight:700}.modal__subtitle[_ngcontent-%COMP%]{font-size:1.5rem;color:#4a4a4a;margin:15px 0}.modal__body[_ngcontent-%COMP%]{margin-bottom:1.5rem}.modal__label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem;font-weight:500;color:#01602a}.modal__input[_ngcontent-%COMP%]{width:100%;padding:.5rem;font-size:1.8rem;margin-bottom:1.5rem;border-bottom:1px;border-left:0px;border-right:0px;border-top:0px;border-style:solid;line-height:24px}.modal__input[_ngcontent-%COMP%]:focus-visible{outline-width:0px}.modal__conversion[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700;color:#01602a;text-align:center;margin-bottom:3rem}.modal__footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column;gap:17px}.modal__error[_ngcontent-%COMP%]{color:#c61616;font-size:.9rem;margin-top:-1rem;margin-bottom:1rem;display:block;text-align:center}"]});let i=r;return i})();var Zx=i=>({userName:i}),Yx=i=>({"redeem-points__radio--disabled":i});function Qx(i,r){if(i&1&&(s(0,"span"),p(1),c(2,"ldsCurrency"),l(
5)),i&2){let t=g().$implicit,e=g();n(),f("+ ",y(2,1,t.valorRestanteEmPesos,(e.reserva==null||e.reserva.ofertaSelecionada==null||e.reserva.ofertaSelecionada.tarifa==null?null:e.reserva.ofertaSelecionada.tarifa.moeda)||"MXN"))}}function Xx(i,r){if(i&1&&(s(0,"span",18),p(1),l()),i&2){let t,e=g(2);n(),D((t=e.translate())==null?null:t.insufficientPoints)}}function Jx(i,r){if(i&1){let t=k();s(0,"li",11)(1,"label",12)(2,"input",13),hi("ngModelChange",function(a){P(t);let o=g();return _i(o.opcionSelecionada,a)||(o.opcionSelecionada=a),S(a)}),b("change",function(){let a=P(t).$implicit,o=g();return S(o.seleccionarOpcion(a))}),l(),h(3,"span",14),s(4,"span",15),p(5),c(6,"ldsCurrency"),C(7,Qx,3,4,"span",16)(8,Xx,2,1,"span",17),l()()()}if(i&2){let t,e=r.$implicit,a=g();d("ngClass",L(11,Yx,e.pontos>a.availablePoints)),n(2),d("value",e),gi("ngModel",a.opcionSelecionada),d("disabled",e.pontos>a.availablePoints),n(3),q(" ",y(6,8,e.pontos,"DOTERS")," ",(t=a.translate())==null?null:t.conversion," "),n(2),d("ngIf",e.valorRestanteEmPesos),n(),d("ngIf",e.pontos>a.availablePoints)}}var lp=(()=>{let r=class r{constructor(e,a){this.dialog=e,this.parceiroRedencionService=a,this.pontosSelecionados=new W,this.userName="",this.availablePoints=0,this.pointsOptions=[],this.translateService=I(G),this.translate=Oe(this.translateService.stream("components.smarts.dotersPointsSelectorComponent")),this.customPoints=null}ngOnInit(){this.userName=this.reserva?.parceiro?.partnerUser?.name,this.availablePoints=this.reserva?.parceiro?.partnerUser?.balance,this.preencherOpcoes()}preencherOpcoes(){this.reserva.ofertaSelecionada?.tarifa.parceiro?.pontosValorTotal&&this.parceiroRedencionService.converterPontos("PontosParaMoedas",this.reserva.idCotacao,this.reserva?.ofertaSelecionada?.ofertaId).subscribe(a=>{this.pointsOptions=a.sort((o,m)=>m.pontos-o.pontos)})}seleccionarOpcion(e){e.pontos>this.availablePoints||this.pontosSelecionados.emit(e)}openDotersPointsModal(){this.dialog.open(sp,{width:"400px",maxWidth:"90vw",disableClose:!0,panelClass:"popup-validacao-otp-dialog",data:{userName:this.userName,availablePoints:this.availablePoints,cotacaoId:this.reserva?.idCotacao,ofertaId:this.reserva?.ofertaSelecionada?.ofertaId,reserva:this.reserva}}).afterClosed().subscribe(a=>{a!==void 0&&(this.pointsOptions=[...this.pointsOptions,{id:"a",pontos:a.pontos,valor:a.valor,valorRestanteEmPesos:a.valorRestanteEmPesos}].sort((o,m)=>m.pontos-o.pontos))})}};r.\u0275fac=function(a){return new(a||r)(v(re),v(la))},r.\u0275cmp=M({type:r,selectors:[["app-doters-points-selector"]],inputs:{reserva:"reserva"},outputs:{pontosSelecionados:"pontosSelecionados"},decls:22,vars:18,consts:[[1,"redeem-points"],[1,"redeem-points__header"],[1,"redeem-points__options-container"],[1,"redeem-points__selector"],[1,"redeem-points__selector-title"],[1,"redeem-points__options"],["class","redeem-points__option",3,"ngClass",4,"ngFor","ngForOf"],[1,"redeem-points__option"],[1,"redeem-points__custom"],["for","customPoints",1,"redeem-points__label"],[1,"redeem-points__custom-link",3,"click"],[1,"redeem-points__option",3,"ngClass"],[1,"redeem-points__radio"],["type","radio","name","option",1,"redeem-points__radio-input",3,"ngModelChange","change","value","ngModel","disabled"],[1,"redeem-points__radio-mark"],[1,"redeem-points__option-text"],[4,"ngIf"],["class","redeem-points__insuficiente",4,"ngIf"],[1,"redeem-points__insuficiente"]],template:function(a,o){if(a&1&&(s(0,"div",0)(1,"div",1)(2,"span"),p(3),c(4,"translate"),s(5,"strong"),p(6),c(7,"ldsCurrency"),c(8,"translate"),l(),p(9),l()(),s(10,"div",2)(11,"div",3)(12,"h3",4),p(13),l(),s(14,"ul",5),C(15,Jx,9,13,"li",6),s(16,"li",7)(17,"div",8)(18,"label",9),p(19),s(20,"a",10),b("click",function(){return o.openDotersPointsModal()}),p(21),l()()()()()()()()),a&2){let m,_,x,O;n(3),f("",y(4,8,"components.smarts.dotersPointsSelectorComponent.header.hello",L(16,Zx,o.userName))," "),n(3),q("",y(7,11,o.availablePoints,"DOTERS")," ",u(8,14,"components.smarts.dotersPointsSelectorComponent.header.points")),n(3),f(" ",(m=o.translate())==null||m.header==null?null:m.header.avaliable),n(4),f(" ",(_=o.translate())==null?null:_.title," "),n(2),d("ngForOf",o.pointsOptions),n(4),f("",(x=o.translate())==null?null:x.otherQuantity," "),n(2),D((O=o.translate())==null?null:O.otherQuantityInput)}},dependencies:[U,de,ae,N,Te,ei,Zr,Ce,Io,A,T,Ne],styles:['.redeem-points[_ngcontent-%COMP%]{padding:1rem;font-family:Arial,sans-serif;background-color:#f2f2f2}.redeem-points__header[_ngcontent-%COMP%]{padding:10px;color:#01602a}.redeem-points__options-container[_ngcontent-%COMP%]{flex:1;margin-right:1rem;display:flex;flex-direction:row;justify-content:space-around;min-width:316px;margin-top:50px}.redeem-points__radio[_ngcontent-%COMP%]{display:inline-flex;align-items:center;cursor:pointer;font-family:sans-serif}.redeem-points__radio-input[_ngcontent-%COMP%]{display:none}.redeem-points__radio-mark[_ngcontent-%COMP%]{width:20px;height:20px;min-width:20px;min-height:20px;border:2px solid #6e6e6e;border-radius:50%;position:relative;margin-right:8px}.redeem-points__radio-mark[_ngcontent-%COMP%]:after{content:"";position:absolute;top:3px;left:3px;width:10px;height:10px;background-color:#003827;border-radius:50%;opacity:0;transition:opacity .2s ease}.redeem-points__radio[_ngcontent-%COMP%]:checked + .redeem-points__radio-mark[_ngcontent-%COMP%]{border:2px solid #018444!important}.redeem-points__radio-input[_ngcontent-%COMP%]:checked + .redeem-points__radio-mark[_ngcontent-%COMP%]:after{opacity:1}.redeem-points__radio--disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.6;
5color:#c2c2c2}.redeem-points__radio--disabled[_ngcontent-%COMP%] .radio-box__radio-mark[_ngcontent-%COMP%]{border-color:#c2c2c2}.redeem-points__radio--disabled[_ngcontent-%COMP%] .radio-box__radio-mark[_ngcontent-%COMP%]:after{background-color:#fff}.redeem-points__options[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0 0 1rem}.redeem-points__options[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#01602a;font-weight:700;padding:10px 5px;border-top:1px solid #ccc}.redeem-points__options__option[_ngcontent-%COMP%]{margin-bottom:.5rem}.redeem-points__custom[_ngcontent-%COMP%]{margin-top:1rem}.redeem-points__label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem}.redeem-points__selector[_ngcontent-%COMP%]{max-width:316px;background-color:#fff;border:1px solid gray;padding:24px;border-radius:8px}.redeem-points__selector-title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:#003418;margin-bottom:16px;text-align:center}.redeem-points__custom-link[_ngcontent-%COMP%]{cursor:pointer}']});let i=r;return i})();var e2=i=>({container:i}),t2=i=>({"no-gutters":i});function i2(i,r){i&1&&h(0,"app-trigger-escassez")}function o2(i,r){if(i&1&&(s(0,"div",18)(1,"div",19),h(2,"app-toast-erro",20),l()()),i&2){let t=g();n(2),d("mensagensErro",t.mensagensErro)}}function a2(i,r){i&1&&(V(0),p(1),c(2,"translate"),z()),i&2&&(n(),f(" ",u(2,1,"reserva.selecaoPuntosDoters.reservarComPontos")," "))}function n2(i,r){i&1&&(V(0),p(1),c(2,"translate"),z()),i&2&&(n(),f(" ",u(2,1,"reserva.selecaoPuntosDoters.reservar")," "))}function r2(i,r){i&1&&h(0,"mat-spinner",21)}var cp=(()=>{let r=class r{constructor(e,a,o,m,_,x,O,R){this.reservaStore=e,this.translateService=a,this.router=o,this.breakpointService=m,this.recaptchaV3Service=_,this.reservaService=x,this.dialog=O,this.webviewService=R,this.exibirTriggerEscassez=!1,this.breadCrumb=[],this.isDesktop=!1,this.isTablet=!1,this.processandoReserva=!1,this.mensagensErro=[],this.toastErro=!1,this.codigoOtp="",this.isWebview=!1}ngOnInit(){this.isWebview=this.webviewService.isWebView(),this.reservaStore.state$.pipe(w(1)).subscribe(e=>{let a=e.reserva?.codigoPaisAgenciaRetirada===pe;this.exibirTriggerEscassez=a}),this.breadCrumb=[{label:"breadCrumbs.reserva.passo5.label",url:"breadCrumbs.reserva.passo5.url"}],this.bpSubscription=this.breakpointService.isDesktop.subscribe(e=>this.isDesktop=e),this.bpSubscription=this.breakpointService.isTablet.subscribe(e=>this.isTablet=e),this.handleReservaState()}ngOnDestroy(){this.bpSubscription&&this.bpSubscription?.unsubscribe(),this.obterReservaSubscription&&this.obterReservaSubscription.unsubscribe()}handleReservaState(){this.obterReservaSubscription=this.reservaStore.state$.subscribe(e=>{this.reserva=e.reserva})}processarReserva(){this.processandoReserva=!0,this.criarReserva()}montarDadosCriarReserva(){let e=this.reserva?.parceiro?.dadosCriarReserva;return this.pontuacaoSelecionada.pontos==0?e.dadosParceiro.partnershipOperation="Acumulacion":e.dadosParceiro.partnershipOperation="Redencion",e.dadosParceiro.data.TotalPoints=this.pontuacaoSelecionada.pontos.toString(),e.dadosParceiro.data.TotalPesos=this.pontuacaoSelecionada.valorRestanteEmPesos?.toString(),e.dadosParceiro.data.otp=this.codigoOtp,e}selecionarPontos(e){this.pontuacaoSelecionada=e,this.reserva?.ofertaSelecionada&&this.reserva?.ofertaSelecionada.tarifa&&this.reserva?.ofertaSelecionada.tarifa.parceiro&&(this.reserva.ofertaSelecionada.tarifa.parceiro.pontosValorTotal=e.pontos,this.reserva.ofertaSelecionada.tarifa.parceiro.valorRestanteEmPesos=e.valorRestanteEmPesos||0),this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{reserva:this.reserva}})}criarReserva(){let e=this.montarDadosCriarReserva();this.recaptchaV3Service.execute("criarReserva").subscribe(a=>{this.reservaService.criarReserva(e,a).subscribe({next:o=>{this.reservaStore.actions.emit({type:ie.ATUALIZAR,payload:{reservaRealizadaNr:o,cliente:{clientePessoaFisicaId:e.usuarioReserva.codigoUsuarioReserva,codigoNacionalidade:e.usuarioReserva.nacionalidade,tipoDocumento:e.usuarioReserva.tipoDocumento,numeroDocumento:e.usuarioReserva.documento,nome:e.usuarioReserva.nomeUsuarioReserva,email:e.usuarioReserva.contatosReserva[0].emailReserva,celular:{tipoTelefone:e.usuarioReserva.contatosReserva[0].telefone.tipoTelefone,ddi:e.usuarioReserva.contatosReserva[0].telefone.ddi,ddd:e.usuarioReserva.contatosReserva[0].telefone.ddd,numero:e.usuarioReserva.contatosReserva[0].telefone.numeroTelefone},descricaoCliente:e.usuarioReserva.descricaoDocumento}}}),this.translateService.get("url.reserva.confirmacao").pipe(w(1)).subscribe(m=>{this.router.navigate([m])})},error:o=>{this.processandoReserva=!1,o?.error?.codigo===403?this.translateService.get("url.reserva.reservaNegada").pipe(w(1)).subscribe(m=>this.router.navigate([m])):(this.mensagensErro=o.error.mensagensUsuario,this.toastErro=!0)}})})}openDotersPointsModal(){this.processandoReserva=!0,this.dialog.open(ir,{width:"400px",maxWidth:"90vw",disableClose:!0,panelClass:"popup-validacao-otp-dialog",data:{cotacaoId:this.reserva.idCotacao,modelReserva:"reserva",parceiro:this.reserva.parceiro}}).afterClosed().subscribe(a=>{if(a?.manyAttempts){this.processandoReserva=!1,this.openModalManyAttempts();return}
5if(a?.success){this.codigoOtp=a.codigoOtp,this.criarReserva();return}this.processandoReserva=!1})}openModalManyAttempts(){this.dialog.open(er,{width:"400px"}).afterClosed().subscribe(a=>{a&&this.openDotersPointsModal()})}};r.\u0275fac=function(a){return new(a||r)(v(fe),v(G),v(xe),v(De),v(Wi),v(Ut),v(re),v(Pe))},r.\u0275cmp=M({type:r,selectors:[["app-selecao-puntos-doters"]],decls:27,vars:24,consts:[[3,"breadCrumbs"],[1,"container","selecao-puntos-doters"],[1,"barra-navegacao"],[1,"col-12","p-0"],[3,"step","isPrePagamentoMexico"],[3,"ngClass"],[1,"row",3,"ngClass"],[1,"col-12","col-lg-4","order-1","order-lg-3"],["data-testid","box-booking-summary",3,"bookingData","showPreAuthorization"],[1,"col-12","col-lg-8","order-3","order-lg-2","mb-5"],[1,"col-12","doters-title"],[3,"pontosSelecionados","reserva"],[1,"col-12","mt-5","politica-cancelamento","mb-5"],["class","row",4,"ngIf"],[1,"button-container"],["type","submit","data-testid","btn-submit",1,"btn-submit-ds",3,"click","disabled"],[4,"ngIf"],["class","spinner",4,"ngIf"],[1,"row"],[1,"col","col-lg-6"],[3,"mensagensErro"],[1,"spinner"]],template:function(a,o){a&1&&(h(0,"app-breadcrumb",0),s(1,"section",1)(2,"div",2)(3,"div",3),h(4,"app-barra-navegacao-reserva",4),B(5,i2,1,0,"app-trigger-escassez"),l()()(),s(6,"div",5)(7,"div",6)(8,"div",7),h(9,"app-box-booking-summary",8),l(),s(10,"div",9)(11,"div",10)(12,"h2"),p(13),c(14,"translate"),l(),s(15,"p"),p(16),c(17,"translate"),l()(),s(18,"app-doters-points-selector",11),b("pontosSelecionados",function(_){return o.selecionarPontos(_)}),l(),s(19,"div",12),h(20,"app-doters-cancellation-policy"),l(),C(21,o2,3,1,"div",13),s(22,"div",14)(23,"ds-new-button",15),b("click",function(){return o.openDotersPointsModal()}),C(24,a2,3,3,"ng-container",16)(25,n2,3,3,"ng-container",16)(26,r2,1,0,"mat-spinner",17),l()()()()()),a&2&&(d("breadCrumbs",o.breadCrumb),n(4),d("step",6)("isPrePagamentoMexico",!0),n(),F(o.exibirTriggerEscassez&&!o.isWebview?5:-1),n(),d("ngClass",L(20,e2,o.isTablet)),n(),d("ngClass",L(22,t2,!o.isTablet)),n(2),d("bookingData",o.reserva)("showPreAuthorization",!1),n(4),D(u(14,16,"reserva.selecaoPuntosDoters.titulo")),n(3),D(u(17,18,"reserva.selecaoPuntosDoters.subTitulo")),n(2),d("reserva",o.reserva),n(3),d("ngIf",o.toastErro),n(2),d("disabled",!o.pontuacaoSelecionada),n(),d("ngIf",!o.processandoReserva&&((o.pontuacaoSelecionada==null?null:o.pontuacaoSelecionada.pontos)>0||!o.pontuacaoSelecionada)),n(),d("ngIf",!o.processandoReserva&&(o.pontuacaoSelecionada==null?null:o.pontuacaoSelecionada.pontos)===0),n(),d("ngIf",o.processandoReserva))},dependencies:[U,de,N,no,si,Qi,Nt,A,Vt,Zt,oe,J,zt,Oi,lp,ki,mt,pt,Go,Ot,xn,T],styles:[".selecao-puntos-doters[_ngcontent-%COMP%]{margin:2.4rem auto 3.2rem}@media(min-width:768px){h2[_ngcontent-%COMP%]{font-size:3.2rem;line-height:3.8rem;text-align:start}}h2[_ngcontent-%COMP%]{font-size:3.2rem;line-height:2.4rem;text-transform:inherit;margin-bottom:2.4rem}h4[_ngcontent-%COMP%]{font-size:1.8rem;line-height:2.4rem;margin-bottom:1.2rem;color:#01602a}p[_ngcontent-%COMP%]{font-size:1.4rem;line-height:2.4rem;margin-bottom:2.4rem}.doters-title[_ngcontent-%COMP%], .politica-cancelamento[_ngcontent-%COMP%]{padding:0}@media screen and (max-width:991px){.doters-title[_ngcontent-%COMP%], .politica-cancelamento[_ngcontent-%COMP%]{padding:0 1.5rem}}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:space-around;margin:10px 0} .mat-mdc-progress-spinner{margin:0}"]});let i=r;return i})();var dp=(()=>{let r=class r{constructor(e,a,o,m){this.router=e,this.translateService=a,this.reservaStore=o,this.googleAnalyticsService=m}ngOnInit(){this.buscarDadosStore(),this.limparStore()}handleCtaReservaNegada(){this.translateService.get("url.perguntasFrequentes.home").pipe(w(1)).subscribe(e=>this.router.navigate([e]))}buscarDadosStore(){this.reservaStore.state$.pipe(w(1)).subscribe(e=>{e.reserva&&e.reserva.cliente?this.preencherDataLayerPurchase(e.reserva):this.translateService.get("url.home").pipe(w(1)).subscribe(a=>this.router.navigate([a]))})}limparStore(){this.reservaStore.actions.emit({type:ie.LIMPAR})}preencherDataLayerPurchase(e){let a={id:e.grupoSelecionado?.codigoLocaliza,name:this.getNomeCarroPadrao(e.grupoSelecionado),category:e.grupoSelecionado?.codigoLocaliza+" - "+e.grupoSelecionado?.nome,price:e.ofertaSelecionada?.tarifa.valorDiariaSemCombo,variant:e.ofertaSelecionada?.descricao,quantity:e.ofertaSelecionada?.quantidadeDiarias},o={id:e.ofertaSelecionada?.descricao.replace(/- /g,"").replace(/â /,"").replace(/ /g,"_").toUpperCase(),name:e.ofertaSelecionada?.descricao,category:"Pacotes",price:e.ofertaSelecionada?.tarifa.valorDiariaSemCombo},m=e.ofertaSelecionada?.itens?.filter(O=>O.selecionado&&O.tipoItem===je.SERVICO).map(O=>({id:O.codigoAdicionalFrigga,name:O.descricao,category:"Opcionais",price:O.valor}))||[],_=e.ofertaSelecionada?.itens?.filter(O=>O.selecionado&&O.tipoItem===je.EQUIPAMENTO).map(O=>({id:O.codigoAdicionalFrigga,name:O.descricao,category:"Equipamentos",price:O.valor,quantity:O.quantidade}))||[],x=[a,o,...m,..._];e.quantidadeHorasExtras>0&&x.push({id:"HORA_EXTRA",name:"Hora Extra",category:"Opcionais",price:21,quantity:e?.quantidadeHorasExtras}),this.googleAnalyticsService.preencherDataLayer({event:"eec.purchase",score:"reprovado",ecommerce:{currencyCode:e.ofertaSelecionada?.tarifa.moeda==="R$"?"BRL":e.ofertaSelecionada?.tarifa.moeda,purchase:{actionField:{id:e?.reservaRealizadaNr?.localizador?e.reservaRealizadaNr.localizador:
5Math.floor(Math.random()*999999999999).toString(),action:"purchase",revenue:e?.ofertaSelecionada?.valorTotal.toFixed(2).toString(),coupon:e?.reservaRealizadaNr?.codigoPromocional?e.reservaRealizadaNr.codigoPromocional:null,tipo_reserva:"Comum"},products:x}},user_data:{email_address:e?.cliente?.email,address:{first_name:e?.cliente?.nome?.split(" ").slice(0,1).join(" "),last_name:e?.cliente?.nome?.split(" ").slice(-1).join(" ")}}})}getNomeCarroPadrao(e){let a=e?.veiculos?.find(m=>m.padraoGrupo===!0),o=e?.veiculos?.length===1?"":" ou similar";return a||(a=e?.veiculos[0]),a?.nome+o}};r.\u0275fac=function(a){return new(a||r)(v(xe),v(G),v(fe),v(Q))},r.\u0275cmp=M({type:r,selectors:[["reserva-negada"]],standalone:!1,decls:14,vars:9,consts:[[1,"container"],[1,"row"],[1,"col-12"],[1,"content"],[1,"img"],["src","./assets/images/ops.svg","alt","","aria-hidden","true","loading","lazy"],[3,"innerHTML"],["type","button","size","lg","theme","primary",3,"click"]],template:function(a,o){a&1&&(s(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),h(5,"img",5),l(),s(6,"h1"),p(7),c(8,"translate"),l(),h(9,"p",6),c(10,"translate"),s(11,"ds-button",7),b("click",function(){return o.handleCtaReservaNegada()}),p(12),c(13,"translate"),l()()()()()),a&2&&(n(7),D(u(8,3,"reserva.reservaNegada.title")),n(2),d("innerHTML",u(10,5,"reserva.reservaNegada.description"),te),n(3),f(" ",u(13,7,"reserva.reservaNegada.btn")," "))},dependencies:[Zi,T],styles:["h1[_ngcontent-%COMP%]{color:#01602a;font-size:3.2rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;line-height:3.8rem;text-transform:none}h2[_ngcontent-%COMP%]{font-size:2.4rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;line-height:2.9rem;color:#01602a;text-transform:none}h3[_ngcontent-%COMP%]{font-size:2rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;line-height:2.4rem;color:#01602a}.content[_ngcontent-%COMP%]{max-width:54rem;margin:8rem auto;text-align:center}.content[_ngcontent-%COMP%] .img[_ngcontent-%COMP%]{width:30rem;margin:0 auto}.content[_ngcontent-%COMP%] .img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;max-width:100%}@media(min-width:1200px){.content[_ngcontent-%COMP%] .img[_ngcontent-%COMP%]{width:40rem}}.content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{padding:3rem 0;font-weight:700}.content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:2}.content[_ngcontent-%COMP%] .ds-button{margin:3rem auto 2rem;padding:0px 5.2rem}"]});let i=r;return i})();var pp=(()=>{let r=class r{constructor(e){this.clienteService=e}resolve(){return this.clienteService.GetNacionalidade()}};r.\u0275fac=function(a){return new(a||r)(ye(Pi))},r.\u0275prov=$e({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();var s2=il([{i18nPathKey:"fluxoDeReserva.consultarReserva",component:_c,canActivate:[bc],data:{pageView:{name:"minhasreservas",step:"01"}},sitemap:{priority:.8}},{i18nPathKey:"fluxoDeReserva.minhasReservas",component:vc,canActivate:[pl],data:{pageView:{name:"minhasreservas",step:"01"}}},{i18nPathKey:"fluxoDeReserva.minhasReservasCodigo",component:hc,data:{pageView:{name:"minhasreservas",step:"02"}}},{i18nPathKey:"alteraReservas.alteraReserva",loadChildren:()=>import("./chunk-OFLQ64JM.js").then(i=>i.AlteraReservaModule)},{i18nPathKey:"",component:Bc,children:[{i18nPathKey:"fluxoDeReserva.passo1",component:_l,data:{pageView:{name:"reserva",step:"01"}}},{i18nPathKey:"fluxoDeReserva.passo2",component:Td,data:{pageView:{name:"reserva",step:"02"}}},{i18nPathKey:"fluxoDeReserva.passo3",component:rp,data:{pageView:{name:"reserva",step:"03"}},canDeactivate:[pr]},{i18nPathKey:"fluxoDeReserva.passo4",component:md,resolve:{protecaoDados:Cl,nacionalidades:pp},data:{operacao:"reserva",pageView:{name:"reserva",step:"04"}},canDeactivate:[pr]},{i18nPathKey:"fluxoDeReserva.passo5",component:hd,data:{pageView:{name:"reserva",step:"05"}}},{i18nPathKey:"fluxoDeReserva.selecaoPuntosDoters",component:cp,data:{pageView:{name:"reserva",
5step:"06"}}},{i18nPathKey:"fluxoDeReserva.reservaNegada",component:dp,data:{pageView:{name:"reserva",step:"reserva negada"}}},{i18nPathKey:"fluxoDeReserva.confirmacao",component:Rc,canDeactivate:[Cc],data:{pageView:{name:"reserva",step:"05"}}}]}]),yj=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=Rt({type:r}),r.\u0275inj=Et({imports:[Zt.forChild(s2),Zt]});let i=r;return i})();export{Pn as a,wi as b,xn as c,no as d,ki as e,ro as f,ra as g,sd as h,md as i,fd as j,_d as k,hd as l,Jn as m,Id as n,Od as o,xd as p,Jd as q,Vd as r,zd as s,tr as t,ir as u,Ud as v,sp as w,lp as x,cp as y,s2 as z,yj as A};
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.