"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1047],{27330:function(e,t,n){n.d(t,{c:function(){return h},Z:function(){return p}});var o=n(52676),l=n(33323),r=n(17019),i=n(68616),a=n(17420),d=n(41888),s=n(6790);let c=(e,t)=>{let n=s.G[e];n&&(0,d.VV)({event:n,pageType:s.p,store:t})},u=e=>{let{id:t,label:n,variant:l,cssClasses:d,href:s,cookieName:u,css:h,actionType:p="button",datalayerEventKey:g,onActionClick:C,size:x,action:f}=e;if(!t)return null;let{whitelabel:m}=(0,a.l)();return(0,o.jsx)(i.z,{variant:l,className:d,onClick:e=>{if(e.preventDefault(),g&&c(g,m.name),"link"===p&&s){window.open(s,"_blank");return}if("noTabLink"===p&&s){r.V.delete(u),history.replaceState(location.origin,"",s),location.reload();return}f?f(e):C&&C(e)},fill:!0,css:h||{marginBottom:"$8px"},dangerouslySetInnerHTML:{__html:n||"<p>Label n\xe3o informada.</p>"},"data-testid":t||"error-dialog-action",size:x},t)};u.displayName="DialogAction";let h=e=>{let{actions:t,onActionClick:n,...r}=e;if(!t.length)return null;let i=t.length>1,a=i?"$8px":"0",d=t.map((e,t)=>(0,o.jsx)(u,{...e,css:{marginBottom:a},onActionClick:n,paddingLeft:"0",paddingRight:"0"},"".concat(e.id,"-").concat(t)));return(0,o.jsx)(l.x,{as:"footer",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",...i&&{marginBottom:"-8px"},"data-testid":"error-dialog-footer",...r,children:d})};h.displayName="DialogFooter";var p=h},52133:function(e,t,n){n.d(t,{D:function(){return c}});var o=n(52676),l=n(75271),r=n(33323),i=n(82454),a=n(61772),d=n(17420),s=n(1439);let c=e=>{let{showDialog:t=!1,setShowDialog:n,children:c,wrapperCss:u={},containerCss:h={},alignItems:p="center",hideIconClose:g,onCloseDialog:C,isRelative:x=!1,...f}=e,m=(0,l.useRef)(null),v=(0,l.useRef)(null),{isMobile:w}=(0,d.l)(),E=(0,l.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.classList.add("out"),setTimeout(()=>{var e;document.querySelector(".dialog-background")||(document.body.style.overflow="visible"),null===(e=m.current)||void 0===e||e.classList.remove("out"),C&&C({}),n(!1)},300)},[n,m]),b=(0,l.useCallback)(e=>{"Escape"===e.key&&t&&E()},[t,E]);if((0,l.useEffect)(()=>(!x&&t&&(document.body.style.overflow="hidden"),g||document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b),document.body.style.overflow="visible"}),[t,E]),!t)return null;let _=x||w?"%":"vh",j=x?"%":"vw";return(0,o.jsxs)(a.W,{ref:m,position:x?"absolute":"fixed",display:"flex",alignItems:p,flexDirection:"column",top:0,left:0,minHeight:w?"-webkit-fill-available":"100".concat(_),minWidth:"100".concat(j),height:"100".concat(_),width:"100".concat(j),zIndex:190,css:{justifyContent:"center",...s.p,...h},"data-testid":f.dataTestId||"dialog-container",children:[(0,o.jsx)(i.I,{ref:v,position:"absolute",minHeight:"100".concat(_),minWidth:"100".concat(j),height:"100".concat(_),width:"100".concat(j),backgroundColor:"whiteAlpha.700",className:"dialog-background","data-testid":"dialog-background",...!g&&{onClick:e=>{v.current===e.target&&E()}}}),(0,o.jsx)(r.x,{display:"flex",flexDirection:"column",position:"relative",maxWidth:"800px",boxShadow:"md",background:"white",borderY:"1px solid",borderX:["none","1px solid"],borderTopColor:"blackAlpha.100",borderBottomColor:"blackAlpha.100",borderRightColor:["none","blackAlpha.100"],borderLeftColor:["none","blackAlpha.100"],borderRadius:"lg",zIndex:3,className:"dialog-wrapper","data-testid":"dialog-wrapper",css:u,children:c})]})};c.displayName="DialogBackground",t.Z=c},76350:function(e,t,n){n.d(t,{f:function(){return f}});var o=n(52676);n(75271);var l=n(72591),r=n(56457),i=n(2038);let a=e=>{let{width:t,height:n,color:l,...r}=e;return(0,o.jsxs)(i.A0,{width:t||i.g9,height:n||i.iP,viewBox:"0 0 24 24",fill:l||"currentColor",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.313 3.5 3.5 7.313 3.5 12C3.5 16.687 7.313 20.5 12 20.5C16.687 20.5 20.5 16.687 20.5 12C20.5 7.313 16.687 3.5 12 3.5ZM12 22C6.486 22 2 17.514 2 12C2 6.486 6.486 2 12 2C17.514 2 22 6.486 22 12C22 17.514 17.514 22 12 22Z"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5458 15.1396C14.3538 15.1396 14.1617 15.0666 14.0157 14.9196L9.21975 10.1226C8.92675 9.82965 8.92675 9.35565 9.21975 9.06265C9.51375 8.76965 9.98775 8.76965 10.2797 9.06265L15.0757 13.8596C15.3688 14.1526 15.3688 14.6266 15.0757 14.9196C14.9297 15.0666 14.7368 15.1396 14.5458 15.1396Z"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00012 14.3893C9.00012 14.1973 9.07313 14.0053 9.22012 13.8593L14.0171 9.06326C14.3101 8.77026 14.7841 8.77026 15.0771 9.06326C15.3701 9.35726 15.3701 9.83126 15.0771 10.1233L10.2801 14.9193C9.98712 15.2123 9.51313 15.2123 9.22012 14.9193C9.07313 14.7733 9.00012 14.5803 9.00012 14.3893Z"})]})};var d=n(78631),s=n(79310),c=n(73481);let u=(0,c.zo)("div",{padding:"$16px",width:"100%",borderRadius:"$sm",borderWidth:"$hairline",variants:{status:{info:{borderColor:"$infoLight",backgroundColor:"$infoLightest"},success:{borderColor:"$successLight",backgroundColor:"$successLightest"},warning:{borderColor:"$warningLight",backgroundColor:"$warningLightest"},error:{borderColor:"$errorLight",backgroundColor:"$errorLightest"}}}}),h=(0,c.zo)("div",{display:"flex",gap:"$8px",position:"relative",variants:{centered:{true:{alignItems:"center"},false:{alignItems:"flex-start"}}}}),p=(0,c.zo)("div",{position:"absolute",top:"0px",right:"0px",cursor:"pointer","& svg":{fill:"$neutralMedium"}}),g=(0,c.zo)("div",{fontSize:"$xxs",color:"$neutralDarkest"}),C=(0,c.zo)("div",{width:"$20px",height:"$20px",marginRight:"$4px"}),x=(0,c.zo)("div",{fontSize:"$xxxs",color:"$neutralDark",paddingLeft:"$28px",marginLeft:"$4px",marginTop:"$4px","@sm":{marginTop:"$8px"},a:{color:"$infoMedium",textDecoration:"underline"}}),f=e=>{let{status:t="info",title:n,text:i,dangerouslyTitle:c,dangerouslyText:f,css:m,cssTitle:v,cssText:w,icon:E,iconCentered:b=!1,onClick:_,onCloseClick:j}=e,k={width:"24px",height:"24px"};return n||i?(0,o.jsxs)(u,{status:t,css:{...m},"data-testid":"inline-banner-".concat(t),children:[(0,o.jsxs)(h,{css:{...v},centered:b,"data-testid":"inline-banner-header",children:[(0,o.jsx)(C,{children:null!=E?E:(e=>{switch(e){case"success":return(0,o.jsx)(s.g,{fill:l.uH.colors.successMedium,...k});case"warning":return(0,o.jsx)(d.U,{fill:l.uH.colors.warningMedium,...k});case"error":return(0,o.jsx)(a,{fill:l.uH.colors.errorMedium,...k});default:return(0,o.jsx)(d.U,{fill:l.uH.colors.infoMedium,...k})}})(t)}),c?(0,o.jsx)(g,{dangerouslySetInnerHTML:{__html:null!=n?n:""}}):(0,o.jsx)(g,{children:n}),j&&(0,o.jsx)(p,{children:(0,o.jsx)(r.Z,{onClick:j,"data-testid":"inline-banner-close"})})]}),f?(0,o.jsx)(x,{css:{...w},onClick:_,dangerouslySetInnerHTML:{__html:null!=i?i:""},"data-testid":"inline-banner-text"}):(0,o.jsx)(x,{onClick:_,css:{...w},"data-testid":"inline-banner-text",children:i})]}):null}},33128:function(e,t,n){n.d(t,{u:function(){return g}});var o=n(52676),l=n(75271),r=n(68616),i=n(52133),a=n(33323),d=n(70202),s=n(56457),c=n(8241);let u={padding:"4",overflowY:"scroll"},h={display:"flex",justifyContent:"space-between",borderBottom:"1px solid",borderBottomColor:"gray.100",padding:"4",fontSize:["sm","lg"],alignItems:"center",gridGap:"4"},p=e=>{let{content:t,isContentString:n,iframe:l,handler:r,children:i,...d}=e,s=t&&!l,c=!t&&!l&&!i;return(0,o.jsx)(a.x,{...s&&{...n&&{onClick:r},...n&&{dangerouslySetInnerHTML:{__html:t}},...u},...c&&{as:"p",onClick:r,...u},...d,"data-testid":"modal-content",children:i?(0,o.jsx)(o.Fragment,{children:i}):null})},g=e=>{let{customTitle:t,content:n,iframeUrl:u,iframeCss:g,showModal:C=!1,setShowModal:x,stylesModalTitle:f,closeIcon:m=s.b,dataTestId:v,children:w,overrideWrapperCss:E,btnCloseVariant:b,containerCss:_,...j}=e,{isMobile:k}=(0,c.l)(),R="string"==typeof n,y=e=>{e.preventDefault();let t=e.target;(null==t?void 0:t.href)&&window.open(t.href,"_blank")},L=u?u.replace(/[^a-z0-9]/gi,""):"",T=f?{...f}:{...h};return((0,l.useEffect)(()=>{var e;let t=document.getElementById(L);if(t)return null===(e=t.contentWindow)||void 0===e||e.addEventListener("click",y),()=>{var e;null===(e=t.contentWindow)||void 0===e||e.removeEventListener("click",y)}},[L]),C)?(0,o.jsxs)(i.D,{showDialog:C,setShowDialog:x,wrapperCss:{width:["100vw","80%"],height:[k?"100%":"calc(100vh - 57px)","auto"],maxHeight:["100vh","60vh"],borderRadius:[0,"md"],...E},containerCss:{...k?{justifyContent:"flex-start"}:{justifyContent:"center"},..._},dataTestId:v||"modal-container",children:[(0,o.jsxs)(a.x,{css:T,"data-testid":"modal-header",children:[(0,o.jsx)(a.x,{as:"h2",flexGrow:1,overflow:"hidden",whiteSpace:"nowrap",lineHeight:"116%",css:{textOverflow:"ellipsis",color:"black "},"data-testid":"modal-title",children:t}),(0,o.jsx)(a.x,{padding:"1",height:"auto",color:"gray.300",alignSelf:"flex-end",children:(0,o.jsx)(r.z,{variant:b||"tertiary",onClick:()=>x(!1),"data-testid":"modal-close-button",children:(0,o.jsx)(m,{width:"16px",height:"16px"})})})]}),n&&!u&&(0,o.jsx)(p,{content:n,isContentString:R,handler:y,children:R?null:(0,o.jsx)(o.Fragment,{children:n})}),u&&(0,o.jsx)(p,{iframe:u,children:u?(0,o.jsx)(d.F,{loader:!0,loaderColor:"gray",width:"100%",height:"100%",children:(0,o.jsx)("iframe",{id:L,width:"100%",height:"100%",style:g,src:u,"data-testid":"modal-iframe"})}):null}),!n&&!u&&w&&(0,o.jsx)(p,{...j,children:w}),!n&&!u&&!w&&(0,o.jsx)(p,{children:"Nenhum conte\xfado dispon\xedvel."})]}):null};g.displayName="Modal",t.Z=g},70202:function(e,t,n){n.d(t,{F:function(){return r}});var o=n(52676);let l=(0,n(52410).Se)("div"),r=e=>{let{loader:t,loaderColor:n="light",...r}=e;return(0,o.jsx)(l,{...r,...t?{backgroundImage:"url('/next-static/loader-".concat(n,".gif')"),backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}})};r.displayName="BoxLoader",t.Z=r},78631:function(e,t,n){n.d(t,{U:function(){return r}});var o=n(52676),l=n(2038);let r=e=>{let{width:t,height:n,color:r,...i}=e;return(0,o.jsxs)(l.A0,{width:t||l.g9,height:n||l.iP,viewBox:"0 0 24 24",fill:r||"currentColor",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.313 3.5 3.5 7.313 3.5 12C3.5 16.687 7.313 20.5 12 20.5C16.687 20.5 20.5 16.687 20.5 12C20.5 7.313 16.687 3.5 12 3.5ZM12 22C6.486 22 2 17.514 2 12C2 6.486 6.486 2 12 2C17.514 2 22 6.486 22 12C22 17.514 17.514 22 12 22Z"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9941 16.75C11.5801 16.75 11.2441 16.414 11.2441 16V12C11.2441 11.586 11.5801 11.25 11.9941 11.25C12.4081 11.25 12.7441 11.586 12.7441 12V16C12.7441 16.414 12.4081 16.75 11.9941 16.75Z"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9991 9.2041C11.4461 9.2041 10.9941 8.7571 10.9941 8.2041C10.9941 7.6511 11.4371 7.2041 11.9891 7.2041H11.9991C12.5521 7.2041 12.9991 7.6511 12.9991 8.2041C12.9991 8.7571 12.5521 9.2041 11.9991 9.2041Z"})]})};t.Z=r},79310:function(e,t,n){n.d(t,{g:function(){return r}});var o=n(52676),l=n(2038);let r=e=>{let{width:t,height:n,color:r,...i}=e;return(0,o.jsxs)(l.A0,{width:t||l.g9,height:n||l.iP,viewBox:"0 0 24 24",fill:r||"currentColor",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.313 3.5 3.5 7.313 3.5 12C3.5 16.687 7.313 20.5 12 20.5C16.687 20.5 20.5 16.687 20.5 12C20.5 7.313 16.687 3.5 12 3.5ZM12 22C6.486 22 2 17.514 2 12C2 6.486 6.486 2 12 2C17.514 2 22 6.486 22 12C22 17.514 17.514 22 12 22Z"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8152 15.1229C10.6242 15.1229 10.4312 15.0499 10.2852 14.9029L7.91116 12.5299C7.61816 12.2369 7.61816 11.7629 7.91116 11.4699C8.20416 11.1769 8.67816 11.1769 8.97116 11.4699L10.8152 13.3119L15.0312 9.09695C15.3242 8.80395 15.7982 8.80395 16.0912 9.09695C16.3842 9.38995 16.3842 9.86395 16.0912 10.1569L11.3452 14.9029C11.1992 15.0499 11.0072 15.1229 10.8152 15.1229Z"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8152 15.1229C10.6242 15.1229 10.4312 15.0499 10.2852 14.9029L7.91116 12.5299C7.61816 12.2369 7.61816 11.7629 7.91116 11.4699C8.20416 11.1769 8.67816 11.1769 8.97116 11.4699L10.8152 13.3119L15.0312 9.09695C15.3242 8.80395 15.7982 8.80395 16.0912 9.09695C16.3842 9.38995 16.3842 9.86395 16.0912 10.1569L11.3452 14.9029C11.1992 15.0499 11.0072 15.1229 10.8152 15.1229Z"})]})};t.Z=r},6790:function(e,t,n){n.d(t,{G:function(){return o},p:function(){return l}});let o={ENTRANCE:"entrance",PASSENGER_DATA:"passengerData",BUYER_DATA:"buyerData",INSURANCE_DATA:"insuranceData",PAYMENT_DATA:"paymentData",FORM_SUBMITTED:"formSubmitted",ORDER_REQUESTED:"orderRequested",INSTALLMENT_COUNT:"optionInstallmentCount",NEWSLETTER:"optionNewsLetterBox",NEWSLETTER_CHECKED:"newsletterBoxCheck",NEWSLETTER_UNCHECKED:"newsletterBoxUncheck",ACCEPT_CHANGE_PAYMENT_PIX:"acceptChangePaymentToPix",REFUSE_CHANGE_PAYMENT_PIX:"refuseChangePaymentToPix",PAYMENT_TYPE:"optionPaymentType",PAYMENT_PRICE_CHANGE:"paymentPriceChange",PRICE_CHANGE:"priceChangeMessage",CHECKOUT:"checkout",APPLY_COUPON:"apply_coupon",ERROR_APPLY_COUPON:"error_apply_coupon",CHECKOUT_ENTRANCE_SERVICE_FEE_AB_TEST:"checkout_entrance_service_fee_ab_test",OPEN_THREEDS_CHALENGE:"open_3ds_challenge"},l="checkout"}}]);