1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3188],{85327:function(e,t,n){"use strict";var r=n(57437);n(2265),t.Z=e=>{let{htmlContent:t,className:n}=e;return(0,r.jsx)("div",{className:n,dangerouslySetInnerHTML:{__html:t}})}},65482:function(e,t,n){"use strict";var r=n(57437);n(2265),t.Z=e=>{var t,n,i;let{model:o,style:l,className:s,index:a}=e;return(0,r.jsx)("img",{alt:o.seo.alt,title:o.seo.alt,width:(null===(t=o.img)||void 0===t?void 0:t.width)||0,height:(null===(n=o.img)||void 0===n?void 0:n.height)||0,style:l,className:s,src:"".concat(null==o?void 0:null===(i=o.img)||void 0===i?void 0:i.url)},a)}},34299:function(e,t,n){"use strict";var r=n(57437);n(2265);var i=n(79714);n(6179),t.Z=e=>{let{setValue:t,value:n,setShow:o,onChangeDate:l,dates:s=[],handleMonthChange:a,maxDate:u}=e,c=s.map(e=>new Date(e.selectedDate)),d=e=>c.some(t=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear());return(0,r.jsx)(i.ZP,{tileDisabled:e=>{let{date:t}=e;return!d(t)},onChange:e=>{let n=null;Array.isArray(e)?n=e[0]:e instanceof Date&&(n=e),n?(t(n),l(n)):t(null),o&&o(!1)},value:n,tileClassName:e=>{let{date:t,view:n}=e;if("month"===n){if(0===t.getDay()||6===t.getDay())return"weekend";if(t.toDateString()===new Date().toDateString())return"today"}return null},formatShortWeekday:(e,t)=>t.toLocaleDateString("pt-BR",{weekday:"short"}),minDate:new Date,maxDate:u,prev2Label:null,next2Label:null,onActiveStartDateChange:e=>{let{activeStartDate:t}=e;return t?a({activeStartDate:t}):null}})}},20448:function(e,t,n){"use strict";var r=n(57437),i=n(2265),o=n(58223),l=n(38998),s=n(10712),a=n(39363),u=n(83415),c=n.n(u);t.Z=e=>{let{isTitle:t,item:n,dic:u,setObjProduct:d=()=>{},setVisitedSteps:_,setCurrentStep:v,isCheckout:p=!0,prices:f={},setShowWellnessModal:h}=e,m=(null==n?void 0:null===(S=n.ranges)||void 0===S?void 0:null===(g=S.labelsRealSorted)||void 0===g?void 0:g.length)>0?null==n?void 0:null===(y=n.ranges)||void 0===y?void 0:y.labelsRealSorted:["Adult","Child","Infant","Elders","Student"],{cart:T}=(0,o.Z)();var g,S,y,b=0;let[x,k]=(0,i.useState)(Array(null==m?void 0:m.length).fill(0)),[w,C]=(0,i.useState)(0),j=(0,a.J)("site"),N="TKT-HL589735,TKT-HY830299".split(","),D=(e,r)=>{let i=[...x];t?i[e]=w+1<=j?i[e]+r:i[e]:i[e]=w+1<=(null==n?void 0:n.limit)&&w+1<=j?i[e]+r:i[e],k(i)},A=(e,t)=>{let n=[...x];n[e]>0&&(n[e]=n[e]-t),k(n)};(0,i.useEffect)(()=>{d({adults:x[0],childs:x[1],infants:x[2],elders:x[3]||0,student:x[4]||0}),C(x.reduce((e,t)=>e+t,0))},[x]),(0,i.useEffect)(()=>{0===w&&p&&(v(1),_([1]))},[w]);let O=e=>(null==e?void 0:e.some(e=>n.productCode===e))?null==u?void 0:u.startingFrom:null,E=e=>{let{ticket:t}=e;if(null==f?void 0:f.adult){var i;return(0,r.jsxs)("small",{className:n.isAddOn?c().ticketHeaderSubtitleAddOn:c().ticketHeaderSubtitle,children:[O(N)," ",null===(i=f["".concat(t.toLocaleLowerCase())])||void 0===i?void 0:i.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})]})}return(0,r.jsx)(r.Fragment,{})};return(0,r.jsxs)("div",{className:"".concat(c().gridinternal," my-2"),style:{borderRadius:"1rem"},children:[t&&(0,r.jsx)("h5",{className:c().ticketCard,children:null==u?void 0:u.titlePeople}),null==m?void 0:m.map((e,t)=>{if(n.ranges["isActive".concat(e)]&&n.ranges["label".concat(e)])return(0,r.jsxs)("div",{className:c().ticketCard,children:[(0,r.jsxs)("div",{className:c().ticketHeader,children:[(0,r.jsx)("label",{children:(0,r.jsx)("span",{style:{fontSize:"12px",wordBreak:"break-word"},children:n.ranges["label".concat(e)]})}),(0,r.jsx)(E,{ticket:e})]}),(0,r.jsxs)("div",{className:c().quantityContainer,children:[(0,r.jsx)("button",{className:c().button,onClick:()=>A(t,n.ranges["increment".concat(e)]),children:"-"}),(0,r.jsx)("span",{className:c().quantity,children:x[t]}),(0,r.jsx)("button",{className:c().button,onClick:()=>D(t,n.ranges["increment".concat(e)]),children:"+"})]})]},n.ranges["label".concat(e)])}),(0,r.jsx)(()=>w>=(null==n?void 0:n.limit)?(0,r.jsx)("div",{className:"".concat(c().validation_count," mx-4 p-3"),children:(0,r.jsx)("small",{children:null==u?void 0:u.maxTicketStock})}):w>
1=j||(T.dados.forEach(e=>{b=b+e.adults+e.childs+e.infants+e.elders+e.student}),w+b>=j&&(C(w+b),1))?(0,r.jsx)("div",{className:"".concat(c().validation_count," mx-4 p-3"),children:(0,r.jsxs)("small",{children:[null==u?void 0:u.maxTicketPrefix,j,null==u?void 0:u.maxTicketSuffix,(0,r.jsxs)("a",{href:"https://api.whatsapp.com/send?phone=5521982350821",target:"_blank",children:[null==u?void 0:u.linkMaxTicket,"."]})]})}):void 0,{}),(0,r.jsx)(()=>{let e=(0,l.v_)(n.productCode,"wellness");return s.y.WELLNESS_ENABLED&&e&&p?(0,r.jsxs)("button",{className:"mx-4 mt-3 ".concat(c().btn_time_line),onClick:()=>null==h?void 0:h(!0),children:[(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("circle",{cx:"8",cy:"8",r:"7.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,r.jsx)("path",{d:"M8 7v5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,r.jsx)("circle",{cx:"8",cy:"4.5",r:"0.75",fill:"currentColor"})]}),null==u?void 0:u.viewClassSchedule]}):(0,r.jsx)(r.Fragment,{})},{})]})}},52576:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(57437),i=n(2265),o=n(99376),l=n(8877),s=n(95023),a=n(76871),u=n(200),c=n(32030),d=n.n(c),_=n(36941),v=e=>{let{disable:t,disponible:n,x:{lastetSpots:i},dic:o}=e,l=t?null==o?void 0:o.soldOut:n<=6?"".concat(n," ").concat(1===n?null==o?void 0:o.spot:null==o?void 0:o.spots):n<=i?null==o?void 0:o.lastSpots:null;return l?(0,r.jsx)("small",{style:{fontSize:".7rem",fontWeight:400},children:l}):null},p=n(89400),f=n(40257),h=e=>{let{startDate:t,isLoading:n,objHours:c,objProduct:h,setObjProduct:m,isFast:T,setSelectTime:g,selectTime:S,setInfoSummary:y,allowPurchase:b=!0,errorMessage:x="",isAddon:k=!1}=e,w=(0,_.Z)(h),C=(0,o.useParams)(),[j,N]=(0,i.useState)({default:""});function D(e,n,r){var i,o,l,u,c;let d=(null==n?void 0:n.length)>1?null==e?void 0:e.hora:null===(i=n[0])||void 0===i?void 0:i.hora,_=(0,s.Z)(d,null===(o=n[r+1])||void 0===o?void 0:o.hora,null===(c=(0,a.vh)(t))||void 0===c?void 0:null===(u=c.split("/"))||void 0===u?void 0:null===(l=u.reverse())||void 0===l?void 0:l.join("-"),null==h?void 0:h.productCode,null==C?void 0:C.lng),v={time:d,rangeTime:_,limit:T?null==e?void 0:e.balanceAvailableByChannel:void 0},f={...h,...v,priceAdults:n[r].sellingTarifAdultFinal,priceChilds:n[r].sellingTarifChildFinal,priceElders:n[r].sellingTarifEldersFinal,priceInfants:n[r].sellingTarifInfantFinal,priceStudent:n[r].sellingTarifStudentFinal};g(_),T?m(e=>({...f})):((0,p.K)((null==h?void 0:h.productCode)==="PRD-KS640370"?"summary":"visit-rio"),g(d),k?m({addOns:[{...null==h?void 0:h.addOns,...f}]}):m({...f}),null==y||y([{...f,...e}]))}return((0,i.useEffect)(()=>{k&&(null==c?void 0:c.length)>0&&D(c[0],c,0)},[]),(0,i.useEffect)(()=>{(async()=>{N(await (0,l.R)(C.lng,"fastBuy"))})()},[C.lng]),(0,i.useEffect)(()=>{g("")},[t]),(0,i.useEffect)(()=>{k||g("")},[w]),n)?(0,r.jsx)("div",{className:T?d().visitHourFast:d().visitHour,children:(0,r.jsx)(u.Nw,{})}):(null==c?void 0:c.length)>0&&b&&(T||w)||k?(0,r.jsx)("div",{className:T?d().visitHourFast:d().visitHour,children:null==c?void 0:c.map((e,n)=>{var i,o,l,u,_,p;let m;let T=(null==h?void 0:h.productCode)===f.env.REACT_APP_SUPPLIER_BEACH?null==e?void 0:e.totalAmount:null==e?void 0:e.balanceAvailableByChannel,g=T<=0,y=T<w,b=g||y;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("span",{className:"text-grey flex flex-col justify-center ".concat(b?d().hourDisable:""," ").concat(S===e.hora?d().hourSelected:""),onClick:()=>!b&&D(e,c,n),style:{cursor:"pointer"},children:[(o=e.hora,l=null===(i=c[n+1])||void 0===i?void 0:i.hora,m=o.split(":")[0]+":"+o.split(":")[1],(0,s.Z)(m,l,null===(p=(0,a.vh)(t))||void 0===p?void 0:null===(_=p.split("/"))||void 0===_?void 0:null===(u=_.reverse())||void 0===u?void 0:u.join("-"),null==h?void 0:h.productCode,null==C?void 0:C.lng)),e.seeSpots&&(0,r.jsx)("small",{style:{fontWeight:300,fontSize:"0.9rem",marginBottom:"1px"},children:(0,a.L6)(e.sellingTarifAdultFinal)}),(0,r.jsx)(v,{disable:g,disponible:T,x:e,dic:j})]},e.hora)})})}):x?(0,r.jsxs)("div",{className:"text-center",style:{color:"#FF0000"},children:[(0,r.jsx)("h5",{style:{fontWeight:800},children:x}),(0,r.jsx)("small",{children:null==j?void 0:j.otherDate})]}):void 0}},81439:function(e,t,n){"use strict";var r=n(57437),i=n(2265),o=n(35877),l=n.n(o),s=n(8877),a=n(99376);t.Z=e=>{let{isCenter:t}=e,n=(0,a.useParams)(),[o,u]=(0,i.useState)({default:""});return(0,i.useEffect)(()=>{(async()=>{u(await (0,s.R)(n.lng,"step-tour"))})()},[n.lng]),(0,r.jsx)("div",{className:"".concat(l().subtitleHoursContent," ").concat(t&&l().subtitleHoursCenter),children:(0,r.jsx)("small",{className:"".concat(l().subtitleHoursText),children:null==o?void 0:o.afterFree})})}},51648:function(e,t,n){"use strict";var r=n(57437),i=n(2265),o=n(54887),l=n(95553),s=n.n(l);t.Z=e=>{let{show:t,setShow:n,title:l,children:a,className:u,overlayClassName:c,isBlock:d=!0,closeOnOverlayClick:_=!0}=e,[v,p]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{p(!0)},[]),t&&v)?(0,o.createPortal)((0,r.jsx)("div",{className:"".concat(s().modalOverlay," ").concat(null!=c?c:""),onClick:()=>_&&n(!1),children:(0,r.jsxs)("div",{className:"".concat(u," ").concat(s().modalContent),onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("div",{className:"flex justify-between",style:{maxHeight:"1.5rem"},children:[(0,r.jsx)("h3",{className:s().modalHeader,children:l}),(0,r.jsx)("button",{className:s().modalClose,onClick:()=>n(!1),children:"\xd7"})]}),(0,r.jsx)("div",{className:"".concat(s().modalBody," ").concat(d&&s().modalColumn),children:a})]})}),document.body):null}},33897:function(e,t,n){"use strict";n.d(t,{PJ:function(){return l},Sv:function(){return s},mo:function(){return o}});var r=n(10712);function i(e){var t;return null!==(t=null==e?void 0:e.tipoAddOn)&&void 0!==t?t:1}function o(e){return 1===i(e)}function l(e){return r.y.ADDON_ADD_ONLY_ENABLED&&2===i(e)}function s(e){return r.y.ADDON_ADD_ONLY_ENABLED?e:e.filter(e=>2!==i(e))}},47575:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(69152),i=n(58223);let o=()=>{var e;let{cart:t}=(0,i.Z)();return void 0===t.dados||0===t.dados.length?r.Xp.NOTPRODUCT:(null===(e=t.dados)||void 0===e?void 0:e.some(e=>null==e?void 0:e.isSocios))?r.Xp.HASPARTNERS:r.Xp.HASDEFAULT}},29208:function(e,t,n){"use strict";n.d(t,{n:function(){return d}});var r=n(57437),i=n(2265),o=n(99376),l=n(76871);let s=e=>{let{checked:t,label:n,onChange:i}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{type:"checkbox",id:"inputCheck",name:"inputCheck",checked:t,onChange:e=>null==i?void 0:i(e.target.checked)}),(0,r.jsx)("label",{htmlFor:"inputCheck",style:{marginLeft:"0.5rem",fontWeight:400,fontSize:"1.4rem",lineHeight:"1.75rem",color:"#333333"},children:n})]})};var a=n(8877),u=n(9703),c=n(64770);let d=e=>{let{className:t,checked:n,style:d,setChecked:_=()=>{},funcObjProduct:v=()=>{}}=e,p=(0,o.useParams)(),[f,h]=(0,i.useState)({default:""}),{visitRioInfo:m,setVisitRioInfo:T}=(0,c.j)();return((0,i.useEffect)(()=>{(async()=>{h(await (0,a.R)(p.lng,"visit-rio"))})()},[p.lng]),(0,i.useEffect)(()=>{(async()=>{let e=await (0,u.ZP)();null==T||T(e)})()},[]),(null==m?void 0:m.valor)&&0!==Number(m.valor))?(0,r.jsxs)("div",{id:"visit-rio",className:t,children:[(0,r.jsx)("h5",{children:null==f?void 0:f.title}),(0,r.jsx)("div",{style:{...d},children:(0,r.jsx)(s,{checked:n,onChange:e=>{_(e)},label:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("b",{children:[null==f?void 0:f.donateText," ",(0,l.L6)(Number(null==m?void 0:m.valor))," ",null==f?void 0:f.perTicket]})," ",null==f?void 0:f.description," ",(0,r.jsx)("a",{href:"https://visitrio.com.br/",target:"_blank",children:null==f?void 0:f.learnMore})]})})})]}):null}},28131:function(e,t,n){"use strict";async function r(e,t,n){let r={method:n,headers:{"Content-Type":"application/json"},body:JSON.stringify(e)};try{let e=await fetch("".concat("https://backend.bondinho.com.br/api").concat(t),r);if(200===e.status)return await e.json();{let t=await e.json();throw Error(JSON.stringify(t))}}catch(e){return e}}n.d(t,{Z:function(){return i}});class i{async calendar(e,t){return r(t,e?"/Products/GetCalendarTourAsync":"/Products/GetCalendarTicketAsync","POST")}}},11392:function(e,t,n){"use strict";async function r(e,t,n){let r={method:n,headers:{"Content-Type":"application/json"},body:JSON.stringify(e)};try{let e=await fetch("".concat("https://backend.bondinho.com.br/api").concat(t),r);if(200===e.status)return await e.json();{let t=await e.json();throw Error(JSON.stringify(t))}}catch(e){return e}}n.d(t,{Z:function(){return i}});class i{async single(e,t){return r(t,e?"/Products/FetchSingleTourAsync":"/Products/FetchSingleTicketAsync","POST")}}},36790:function(e,t,n){"use strict";async function r(e,t,n){let r={method:n,headers:{"Content-Type":"application/json"},body:JSON.stringify(e)};try{let e=await fetch("".concat("https://backend.bondinho.com.br/api").concat(t),r);if(200===e.status)return await e.json();{let t=await e.json();throw Error(JSON.stringify(t))}}catch(e){return e}}n.d(t,{Z:function(){return i}});class i{async hours(e){return r(e,"/Products/GetTicketAndTourHoursStockAsync","POST")}}},502:function(e,t,n){"use strict";async function r(e,t,n){let r={method:n,headers:{"Content-Type":"application/json"},body:JSON.stringify(e)};try{let e=await fetch("".concat("https://backend.bondinho.com.br/api").concat(t),r);if(200===e.status)return await e.json();{let t=await e.json();throw Error(JSON.stringify(t))}}catch(e){return e}}n.d(t,{Z:function(){return i}});class i{async products(e){return r(e,"/Products/GetProductsRangeFromCategories","POST")}}},7598:function(e,t,n){"use strict";n.d(t,{W:function(){return u},g:function(){return c}});var r=n(57437),i=n(2265),o=n(89400),l=n(28870),s=n(33897);let a=(0,i.createContext)(void 0),u=e=>{let{children:t,totalSteps:n,isVisited:u,skeleton:c,clearOnMount:_}=e,v=(0,l.N)(),[p,f]=(0,i.useState)(()=>{{if(_)return;let e=sessionStorage.getItem("objProductWithAddOn");if(e){let t=JSON.parse(e);return(null==t?void 0:t.addOns)&&(t.addOns=(0,s.Sv)(t.addOns)),t}}}),[h,m]=(0,i.useState)(!1),[T,g]=(0,i.useState)([]),[S,y]=(0,i.useState)(1),[b,x]=(0,i.useState)([1]),[k,w]=(0,i.useState)(!1),[C,j]=(0,i.useState)(v);return((0,i.useEffect)(()=>{var e;w(!0);let t=Number(null===(e=sessionStorage)||void 0===e?void 0:e.getItem("controlStep"));t&&y(t)},[]),k)?(0,r.jsx)(a.Provider,{value:{currentStep:S,visitedSteps:b,totalSteps:n,isVisited:u,objProduct:p,loadingHours:h,isAddOn:C,arrayControl:T,nextStep:()=>{y(e=>{let t=Math.min(e+1,n);if(!u){var r;(0,o.K)(),null===(r=sessionStorage)||void 0===r||r.setItem("controlStep",String(t))}return t}),u&&x(e=>e.includes(S+1)?e:[...e,S+1])},prevStep:()=>{y(e=>{let t=Math.max(e-1,1);if(!u){var n;(0,o.K)(),null===(n=sessionStorage)||void 0===n||n.setItem("controlStep",String(t))}return t}),u&&x(e=>e.filter(e=>e!==S))},setObjProduct:e=>{f(t=>({...t,...e}))}
1,patchObjProduct:f,setCurrentStep:y,setVisitedSteps:x,setLoadingHours:m,setIsAddOn:j,setArrayControl:g},children:t}):(0,r.jsx)(r.Fragment,{children:c||(0,r.jsx)(d,{})})},c=()=>{let e=(0,i.useContext)(a);if(!e)throw Error("useStep must be used within a StepProvider");return e},d=()=>(0,r.jsx)("div",{style:{padding:"20px",textAlign:"center"},children:(0,r.jsx)("p",{children:"Carregando..."})})},8306:function(e,t,n){"use strict";n.d(t,{S:function(){return l}});var r=n(57437),i=n(7598),o=n(44156);let l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=(0,o.k)(),{objProduct:s}=(0,i.g)(),a=1;if((null==s?void 0:s.isSocios)||l?a=12:e>=150&&e<200?a=3:e>=200&&e<250?a=4:e>=250&&e<300?a=5:e>=300&&(a=6),n){let t=[];for(let n=1;n<=a;n++){let r=e/n;t.push({id:String(n),description:1===n?"\xe0 vista ".concat(r.toLocaleString("pt-br",{style:"currency",currency:"BRL"})):"".concat(n,"x de ").concat(r.toLocaleString("pt-br",{style:"currency",currency:"BRL"}))})}return t}if(!(a>1))return(0,r.jsx)("span",{children:"\xe0 vista"});{let n=e/a;return(0,r.jsxs)("span",{style:{textAlign:"end",display:"block"},children:[null==t?void 0:t.until," "," ",(0,r.jsxs)("b",{children:[a,"x ",null==t?void 0:t.of," "," ",n.toLocaleString("pt-br",{style:"currency",currency:"BRL"})," "," "]}),(0,r.jsx)("br",{}),null==t?void 0:t.multiPay]})}}},2743:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var r=n(69152),i=n(99376);function o(){return(0,i.useSearchParams)().has("trilha")?r.l9.TRILHA:r.l9.SITE}},39363:function(e,t,n){"use strict";n.d(t,{J:function(){return u}});var r=n(2265);class i{get(e){let t=this.cache.get(e);return t?Date.now()>t.expiration?(this.cache.delete(e),null):t.data:null}set(e,t){this.cache.set(e,{data:t,expiration:Date.now()+this.ttl})}delete(e){this.cache.delete(e)}constructor(e){this.ttl=e,this.cache=new Map}}let o=new i(6e4);async function l(e){try{let t=await fetch("".concat("https://backend.bondinho.com.br/api","/SourceTicketLimits/GetBySourceAsync/").concat(e));if(!t.ok)return null;return t.json()}catch(e){return null}}async function s(e){let t=o.get(e);if(t)return t;let n=await l(e);return n&&o.set(e,n),n}var a=n(10712);function u(e){let[t,n]=(0,r.useState)(1/0);return(0,r.useEffect)(()=>{if(!a.y.TICKETS_LIMIT_ENABLED){n(6);return}s(e).then(e=>{var t;if(!e){n(6);return}let r=null===(t=e.data)||void 0===t?void 0:t.row;(null==r?void 0:r.isActive)?n(r.maxTicketsPerPurchase):n(6)})},[e]),t}},36577:function(e,t,n){"use strict";async function r(e,t,n){let r={method:n,headers:{"Content-Type":"application/json"},body:JSON.stringify(e)};try{let e=await fetch("".concat("https://backend.bondinho.com.br/api").concat(t),r);if(200===e.status)return await e.json();{let t=await e.json();throw Error(JSON.stringify(t))}}catch(e){return e}}n.d(t,{Z:function(){return c}});class i{async verifyAddOn(e){return r(e,"/Addon/CheckAddOnAvailability","POST")}}var o=n(33897);async function l(e){var t,n,r;let{cart:l}=e,s=new i,a=await s.verifyAddOn(l);if(a instanceof Error)return null;let u=null!==(r=null==a?void 0:null===(n=a.data)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.data)&&void 0!==r?r:[],c=(0,o.Sv)(u).filter(e=>!l.dados.some(t=>t.productCode===e.produtoFinal));return c.length>0?c:null}let s=e=>e.sort((e,t)=>t.prioridade-e.prioridade);var a=n(89400),u=n(48721),c=async function(e){let{cart:t,objProduct:n,checkedVisitRio:r,addItemCart:i,setErrorMessage:o,setCurrentStep:c=()=>{},setVisitedSteps:d=()=>{},setIsAddOn:_,setObjProduct:v,finishStep:p,isStepTour:f=!0,controlContextStep:h,alreadyInCartMessage:m=""}=e;if(!n)return;let T={...n,isVisitRio:r},g=null==i?void 0:i(T);if(g){let e=await l({cart:{...g,dados:g.dados.filter(e=>!e.itensAddon)}});if((null==e?void 0:e.length)>0){let t=s(e).map(e=>{var t,n,r,i,o;return{...e,priceAdults:null==e?void 0:null===(t=e.addOnHorarios[0])||void 0===t?void 0:t.sellingTariffAdult,priceChilds:null==e?void 0:null===(n=e.addOnHorarios[0])||void 0===n?void 0:n.sellingTariffChild,priceInfants:null==e?void 0:null===(r=e.addOnHorarios[0])||void 0===r?void 0:r.sellingTariffInfant,priceElders:null==e?void 0:null===(i=e.addOnHorarios[0])||void 0===i?void 0:i.sellingTariffElders,priceStudent:null==e?void 0:null===(o=e.addOnHorarios[0])||void 0===o?void 0:o.sellingTariffStudent,adults:0,childs:0,infants:0,elders:0,student:0}}),n=t[0],r=g.dados.find(e=>
1e.productCode===n.produtoOriginal&&n.date.includes(e.date)),i=t.filter(e=>e.produtoOriginal===(null==r?void 0:r.productCode)&&e.date.includes(null==r?void 0:r.date)).filter((e,t,n)=>n.findIndex(t=>t.produtoFinal===e.produtoFinal)===t),o={...r,addOns:i};sessionStorage.setItem("objProductWithAddOn",JSON.stringify(o)),f?(c(1),d([1]),(0,a.K)()):h("/comprar-ingresso","1",!0),_(!0),v(o)}else null===u.d||void 0===u.d||(0,u.d)(),f?p():h("/comprar-ingresso","2",!1)}else o(m)}},36941:function(e,t,n){"use strict";function r(e){return void 0!==e?e&&Number((null==e?void 0:e.adults)||0)+Number((null==e?void 0:e.childs)||0)+Number((null==e?void 0:e.elders)||0)+Number((null==e?void 0:e.infants)||0)+Number((null==e?void 0:e.student)||0):0}n.d(t,{Z:function(){return r}})},44156:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(58223);let i=()=>{let{cart:e}=(0,r.Z)();return e.dados.some(e=>e.isSocios)}},38998:function(e,t,n){"use strict";n.d(t,{Ad:function(){return o},ES:function(){return a},LX:function(){return s},v_:function(){return i}});let r={amanhecer:"PRD-KS640370",guidedTour:"PRD-NM190138",cableCar:"TKT-DC755053",stateTicket:"TKT-QS410696",fastAccess:"TKT-HL589735",btExperience:"TKT-OM741916",wellness:"TKT-VD141518",helicopter:"TKT-NX034294"},i=(e,t)=>e===r[t],o=e=>i(e,"amanhecer"),l=["amanhecer","wellness"],s=e=>!l.some(t=>i(e,t)),a=e=>i(e,"helicopter")},48721:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});let r=()=>sessionStorage.removeItem("objProductWithAddOn")},48723:function(e,t,n){"use strict";var r=n(69152),i=n(4828),o=n.n(i);t.Z=e=>{var t,n;o().dataLayer({dataLayer:{event:r.T$.VIEWITEM,ecommerce:{detail:{products:[{name:null==e?void 0:e.productName,id:null==e?void 0:e.productCode,price:null==e?void 0:null===(n=e.modalities[0])||void 0===n?void 0:null===(t=n.tarif)||void 0===t?void 0:t.price,brand:r.T$.BRAND}]}}}})}},10712:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});let r={INTERNATIONAL_COMPANY:!0,SOCIOS_ENABLED:!1,WELLNESS_ENABLED:!0,TICKETS_LIMIT_ENABLED:!1,WALLET_ENABLED:!0,MODAL_ADDON_ENABLED:!0,ADDON_ADD_ONLY_ENABLED:!0}},95023:function(e,t,n){"use strict";var r=n(28252);t.Z=(e,t,n,i,o)=>{let l={weekFinalHour:19,weekendFinalHour:19,weekDayInicial:"19h",weekDayFinal:"19h30",weekendInicial:"19h",weekendFinal:"19h30"},s=null==n?void 0:n.split("T")[0],[a,u]=e.split(":").map(Number);if(isNaN(a)||isNaN(u))throw Error("Hor\xe1rio inv\xe1lido. Certifique-se de que est\xe1 no formato HH:mm.");let c=new Date("".concat(s,"T00:00:00")),d=new Date("2026-06-19T00:00:00"),_=new Date("2026-06-19T23:59:59"),v=new Date("2026-06-19T00:00:00"),p=new Date("2026-06-19T23:59:59");if((c>=d&&c<=_||c>=v&&c<=p)&&(l={weekendFinalHour:21,weekFinalHour:21,weekDayInicial:"21h",weekDayFinal:"21h30",weekendInicial:"21h",weekendFinal:"21h30"}),"PRD-NM190138".includes(i)||"PRD-KS640370".includes(i)||"TKT-VD141518".includes(i))return"".concat(a.toString().padStart(2,"0"),"h").concat(u>0?u:"");if(isNaN(c.getTime()))throw Error("Data inv\xe1lida. Certifique-se de fornecer uma data v\xe1lida.");if(!t&&(a===l.weekendFinalHour||a===l.weekFinalHour))return(0,r.r)(c)?"en"===o||"es"===o?"".concat(l.weekendInicial," - ").concat(l.weekendFinal):"".concat(l.weekendInicial," \xe0s ").concat(l.weekendFinal):"en"===o||"es"===o?"".concat(l.weekDayInicial," - ").concat(l.weekDayFinal):"".concat(l.weekDayInicial," \xe0s ").concat(l.weekDayFinal);let f=a+1,h="TKT-OM741916".includes(i)?"00":u;if(t){let[e,n]=t.split(":").map(Number),r=new Date(c);r.setHours(e,n,0,0);let i=new Date(c);i.setHours(a,u,0,0),(r.getTime()-i.getTime())/6e4<60&&(f=e,h=n)}return"".concat(a.toString().padStart(2,"0"),"h").concat(u?"".concat(u.toString().padStart(2,"0")):""," ").concat("en"===o||"es"===o?"-":"\xe0s"," ").concat(f.toString().padStart(2,"0"),"h").concat(h?"".concat(h.toString().padStart(2,"0")):"")}},28870:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});let r=()=>"true"===sessionStorage.getItem("isAddOn")},28252:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(69152);function i(e){let t=e.getDay();return t===r.pq.FRIDAY||t===r.pq.SATURDAY||t===r.pq.SUNDAY}},76871:function(e,t,n){"use strict";n.d(t,{J5:function(){return c},L6:function(){return o},ME:function(){return s},Qe:function(){return u},lV:function(){return l},vh:function(){return i},z1:function(){return a}});var r=n(69152);let i=e=>{var t,n,r;return null==e?void 0:null===(r=e.replace("T00:00:00",""))||void 0===r?void 0:null===(n=r.split("-"))||void 0===n?void 0:null===(t=n.reverse())||void 0===t?void 0:t.join("/")},o=e=>
1null==e?void 0:e.toLocaleString("pt-br",{style:"currency",currency:"BRL"}),l=e=>e?e.normalize("NFD").replace(/[Ì-ͯ]/g,"").toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""):"",s=e=>e=(e=(e=(e=(e=e.replace(/\D/g,"")).slice(0,11)).replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d{1,2})$/,"$1-$2"),a=e=>e=(e=(e=(e=e.replace(/\D/g,"")).slice(0,11)).replace(/^(\d{2})(\d)/,"($1) $2")).replace(/(\d{5})(\d)/,"$1-$2"),u=e=>e=(e=(e=e.replace(/\D/g,"")).slice(0,8)).replace(/(\d{5})(\d)/,"$1-$2"),c=e=>{switch(Array.isArray(e)?e[0]:e){case r.SQ.EN:return 2;case r.SQ.ES:return 3;default:return 1}}},32030:function(e){e.exports={visitHourFast:"hours_visitHourFast__cEfcX",hourDisable:"hours_hourDisable__w0knF",visitHour:"hours_visitHour__vG8KG",hourSelected:"hours_hourSelected__te2HK",validation_count:"hours_validation_count__oS87J"}},35877:function(e){e.exports={subtitleHoursContent:"subtitleHours_subtitleHoursContent__hkLQ4",subtitleHoursCenter:"subtitleHours_subtitleHoursCenter__BS09g",subtitleHoursText:"subtitleHours_subtitleHoursText__poKsx"}},95553:function(e){e.exports={modalOverlay:"modal_modalOverlay__IXOmp",modalContent:"modal_modalContent__2JgaU",modalClose:"modal_modalClose__ZiJg4",modalHeader:"modal_modalHeader__EK8kB",modalBody:"modal_modalBody__dQXOg",modalColumn:"modal_modalColumn__3cqvQ"}},83415:function(e){e.exports={grid:"stepTour_grid__qXO_M",hero_bilhete:"stepTour_hero_bilhete__0drf8",breadcrumb:"stepTour_breadcrumb__0RNWS",top_selector:"stepTour_top_selector__vXpWv",items_type:"stepTour_items_type__fiAh9",item_type:"stepTour_item_type__xj06v",body_passeio:"stepTour_body_passeio__JCpnm",step_items:"stepTour_step_items__BiP0M",active:"stepTour_active__gKuaZ",grid_columns:"stepTour_grid_columns__eseq3",attentionMobile:"stepTour_attentionMobile__hV3zX",selector:"stepTour_selector__eylCq",radius_box:"stepTour_radius_box__ll_yH",flex_div:"stepTour_flex_div__NJvCl",radius_box_black:"stepTour_radius_box_black__ivBAg",item_box:"stepTour_item_box__zkWcM",faq:"stepTour_faq__bSTof",container:"stepTour_container__UgYbn",ticketHeader:"stepTour_ticketHeader__qmwgi",title:"stepTour_title__Wce0l",gridinternal:"stepTour_gridinternal__QhtMR",ticketCard:"stepTour_ticketCard___Opy4",ticketHeaderSubtitle:"stepTour_ticketHeaderSubtitle__YY5tn",ticketHeaderSubtitleAddOn:"stepTour_ticketHeaderSubtitleAddOn__hwiGe",addonOffPrice:"stepTour_addonOffPrice__OilyG",addonOffPriceFrom:"stepTour_addonOffPriceFrom__yenB6",addonOffPriceTo:"stepTour_addonOffPriceTo__2OP8d",addonOffBadge:"stepTour_addonOffBadge__eOPrt",ticketIcon:"stepTour_ticketIcon__r3AFj",ticketPrice:"stepTour_ticketPrice__Y6LQi",ticketDescription:"stepTour_ticketDescription__Xz5dT",quantityContainer:"stepTour_quantityContainer__s7ASw",button:"stepTour_button__YnyHH",quantity:"stepTour_quantity__Kp9YQ",moreInfo:"stepTour_moreInfo__CH_2I",btnOrange:"stepTour_btnOrange__Yo1CU",btnOutlineGray:"stepTour_btnOutlineGray__Ajhak",btnAdd:"stepTour_btnAdd__dCudM",rules:"stepTour_rules__BpsH_",visitHour:"stepTour_visitHour__naFqN",hourDisable:"stepTour_hourDisable__FB0ra",hourSelected:"stepTour_hourSelected__NTWjr",validation_count:"stepTour_validation_count__8WbUS",calendarWeekShow:"stepTour_calendarWeekShow__o8gxc",calendarWeekDay:"stepTour_calendarWeekDay__sOukO",tabContainer:"stepTour_tabContainer__w3DED",tabButton:"stepTour_tabButton__pfjN1",tabButtonActive:"stepTour_tabButtonActive__2_sW5",tabContent:"stepTour_tabContent__C8D3V",termsModalContent:"stepTour_termsModalContent__S_esx",helisightTermsModalContent:"stepTour_helisightTermsModalContent__b7POK",termsLink:"stepTour_termsLink__rz7zT",termsModalBody:"stepTour_termsModalBody__4sRqA",termsModalSkeleton:"stepTour_termsModalSkeleton__oYsFG",termsSkeletonLine:"stepTour_termsSkeletonLine__evb_O",termsSkeletonLineShort:"stepTour_termsSkeletonLineShort__oYQ3B",termsSkeletonPulse:"stepTour_termsSkeletonPulse__5Fbiu",termsErrorMsg:"stepTour_termsErrorMsg__1ekZ7",termsModalFooter:"stepTour_termsModalFooter__nyQVf",termsModalSecondaryButton:"stepTour_termsModalSecondaryButton__2uwuC",termsModalAcceptButton:"stepTour_termsModalAcceptButton__cyffp",termsModalCloseButton:"stepTour_termsModalCloseButton__XGJAV",btn_time_line:"stepTour_btn_time_line__j_Xto",wellnessModalTitle:"stepTour_wellnessModalTitle__QR2h8",wellnessModalSubtitle:"stepTour_wellnessModalSubtitle__w4Glb",wellnessScheduleList:"stepTour_wellnessScheduleList__Vst1a",wellnessScheduleItem:"stepTour_wellnessScheduleItem__Tb9YS",wellnessScheduleDateDay:"stepTour_wellnessScheduleDateDay__g4lr9",wellnessScheduleDateName:"stepTour_wellnessScheduleDateName__mqqnO",wellnessScheduleClass:"stepTour_wellnessScheduleClass__yC26b",rulesSociosStyle:"stepTour_rulesSociosStyle__ioMjV",attentionDesktop:"stepTour_attentionDesktop__fc_7u",cadastroComprarBilhete:"stepTour_cadastroComprarBilhete__LoEfB",form:"stepTour_form__yLbll",inputGroup:"stepTour_inputGroup__5_Qpm",visitRio:"stepTour_visitRio__aULk5"}}}]);
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.