1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2853],{62853:function(e,t,n){n.r(t);var a=n(52676),l=n(75271),i=n(40507),r=n.n(i),o=n(51218),s=n.n(o),d=n(52527),c=n.n(d),u=n(93858),p=n(87354),x=n(77306),v=n(436),f=n(92251),h=n(67074),m=n(11761);let g=c()(()=>n.e(5016).then(n.bind(n,5016)),{loadableGenerated:{webpack:()=>[5016]}}),b=c()(()=>n.e(980).then(n.bind(n,40980)),{loadableGenerated:{webpack:()=>[40980]}}),y=c()(()=>n.e(3082).then(n.bind(n,73082)),{loadableGenerated:{webpack:()=>[73082]}}),w=c()(()=>Promise.resolve().then(n.bind(n,10900)),{loadableGenerated:{webpack:()=>[10900]}}),N=c()(()=>Promise.all([n.e(1922),n.e(396)]).then(n.bind(n,70396)),{loadableGenerated:{webpack:()=>[70396]}}),j=c()(()=>n.e(5895).then(n.bind(n,45895)),{loadableGenerated:{webpack:()=>[45895]}}),k=e=>{var t,n,i,r,o;let{paxChildren:d,paxAdult:c,calculating:p,currency:k,setPaxAdult:O,setPaxChildren:T,canAddFood:I,hasFood:S,setHasFood:P,total:_,loadingTotal:D,canAddPhoto:C,hasPhoto:A,canAddTransportation:E,hasTransportation:L,schedules:M,canSelectSchedule:U,selectedSchedule:R,setSelectedSchedule:Y,setHasPhoto:J,initialDate:G,buyDate:Q,setBuyDate:H,places:V,setSelectedPlace:K,submitShopping:q,labels:z,productId:B,setPrePurchaseDays:F,labelProduct:W,prePurchaseDays:X,park:Z,tourOnly:$,hasPresale:ee,calendarPresales:et,isXenotes:en,addableActivityInfo:ea,isAddingActivity:el,setIsAddingActivity:ei,language:er,fixedDates:eo,upliftInitialized:es,upliftOrderData:ed,u:ec,customClassBooking:eu,selectedPlace:ep,withPrices:ex,upliftStyle:ev,dataInfoUser:ef,showNormalAmount:eh,normalAmountValue:em,photoPrice:eg,promocode:eb}=e,[ey,ew]=(0,l.useState)(!1),[eN,ej]=(0,l.useState)(0);(0,l.useEffect)(()=>{if(ey&&(null==window?void 0:window.Uplift)){let e=(0,f.NS)(_,ed,Q,c,d);window.Uplift.Payments.load(e)}},[ey]),(0,l.useEffect)(()=>{var e;let t=(null==ec?void 0:null===(e=ec.uplift)||void 0===e?void 0:e.allowedCurrencies)||[];ew(!1),!Number.isNaN(_)&&es&&window.Uplift&&t.indexOf(k)>-1&&eN!==_&&(ej(_),setTimeout(()=>{ew(!0)},1e3))},[es,_]);let ek=e=>{K(e)},[eO,eT]=(0,l.useState)(!1),eI=e=>{O({...c,pax:e.target.value}),eT(!0)},eS=s()(),eP=Q===eS.format("YYYY-MM-DD"),e_=0;try{let e=s()(Q);eS&&e&&(e_=e.diff(eS,"day")+1)}catch(e){e_=X}let eD=!1;if(ea){let e=(null==ea?void 0:ea.availableDates)||[];eD=e.indexOf(Q)>-1&&ea.price>0}let eC=[];if(Array.isArray(eo))try{for(let e=0;e<eo.length;e+=1){let t=s()(eo[e]);(t.isSame(eS,"day")||t.isAfter(eS))&&eC.push(eo[e])}}catch(e){eC=[]}let eA=eC.map(e=>{let t="DD MMMM";"en"===er&&(t="MMMM DD");let n=(0,v.T)(e,er,t);return(0,a.jsx)("option",{value:e,children:n},e)}),eE=z.genericPresale;if(eh)for(let e=0;e<et.length;e+=1)e_>=et[e].fromDay&&(eE=et[e].labelPrecompra);return(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault(),q()},children:(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsxs)("div",{className:"flex flex-col w-full",children:[(0,a.jsx)("div",{className:"w-full",children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[W&&(0,a.jsx)("div",{className:"".concat(Object.keys(eu).length>0?eu.labels:"w-2/3 mr-2 px-4 py-3 text-center bg-booking-parks-home-label rounded"),children:W}),E&&(0,a.jsx)(b,{places:V,onClick:()=>{if(!(0,h.xb)(ef)){var e,t,n,a;let l=new m.v1(k,er);l.buildStructure({id:null==ef?void 0:null===(e=ef.userInfo)||void 0===e?void 0:e.id,withLogin:null==ef?void 0:null===(t=ef.userInfo)||void 0===t?void 0:t.withLogin,country:null==ef?void 0:null===(n=ef.userInfo)||void 0===n?void 0:n.pais,state:null==ef?void 0:null===(a=ef.userInfo)||void 0===a?void 0:a.estado,pageType:m.nJ.HOME,pageSection:m.os.INIT,pageSubsection:m.y3.QUOTE_PARKS,interactionText:m.x6.QUOTE_TRANSPORTATION,pageEvent:m.TL.INTERACTION});let i=l.generateDataLayer();l.pushDataLayer(i)}},selectDefault:z.transport.selectDefault,className:"".concat(eu.isTransportationFix?"":"w-full"," mx-2 h-12 pr-8 border border-newxcaret-grey text-newxcaret-darkgrey text-sm bg-white"),onChange:e=>ek(e.target.value),tourOnly:$}),U&&L&&(0,a.jsx)(g,{schedules:M,selectDefault:z.scheduleDefault,value:R,className:"w-full mx-2 h-12 pr-8 border border-newxcaret-grey text-newxcaret-darkgrey text-sm bg-white",onCh
1ange:e=>Y(e.target.value),isShown:!0}),(0,a.jsx)(y,{className:"w-full mx-2 h-12 pr-8 border border-newxcaret-grey text-newxcaret-darkgrey text-sm bg-white",onClick:()=>{if(!(0,h.xb)(ef)){var e,t,n,a;let l=new m.v1(k,er);l.buildStructure({id:null==ef?void 0:null===(e=ef.userInfo)||void 0===e?void 0:e.id,withLogin:null==ef?void 0:null===(t=ef.userInfo)||void 0===t?void 0:t.withLogin,country:null==ef?void 0:null===(n=ef.userInfo)||void 0===n?void 0:n.pais,state:null==ef?void 0:null===(a=ef.userInfo)||void 0===a?void 0:a.estado,pageType:m.nJ.HOME,pageSection:m.os.INIT,pageSubsection:m.y3.QUOTE_PARKS,interactionText:m.x6.QUOTE_ADULTS,pageEvent:m.TL.INTERACTION});let i=l.generateDataLayer();l.pushDataLayer(i)}},maxPax:20,singular:z.adultPaxSingular,plural:z.adultPaxPlural,onChange:e=>eI(e),children:(0,a.jsx)("option",{value:"1",children:z.adultPaxDefault})}),(0,a.jsx)(y,{className:"w-full mx-2 h-12 pr-8 border border-newxcaret-grey text-newxcaret-darkgrey text-sm bg-white",onClick:()=>{if(!(0,h.xb)(ef)){var e,t,n,a;let l=new m.v1(k,er);l.buildStructure({id:null==ef?void 0:null===(e=ef.userInfo)||void 0===e?void 0:e.id,withLogin:null==ef?void 0:null===(t=ef.userInfo)||void 0===t?void 0:t.withLogin,country:null==ef?void 0:null===(n=ef.userInfo)||void 0===n?void 0:n.pais,state:null==ef?void 0:null===(a=ef.userInfo)||void 0===a?void 0:a.estado,pageType:m.nJ.HOME,pageSection:m.os.INIT,pageSubsection:m.y3.QUOTE_PARKS,interactionText:m.x6.QUOTE_CHILDREN,pageEvent:m.TL.INTERACTION});let i=l.generateDataLayer();l.pushDataLayer(i)}},maxPax:20,singular:z.childPaxSingular,plural:z.childPaxPlural,onChange:e=>T({...d,pax:e.target.value}),children:(0,a.jsx)("option",{value:"",children:Z&&null!==Z&&z.childPaxPark[Z]?"".concat(z.childLabel," ").concat(z.childPaxPark[Z]):en?z.childPaxDefaultXN:z.childPaxDefault})}),0===eC.length&&(0,a.jsx)(N,{classContainer:"w-full ml-2 text-newxcaret-darkgrey text-sm bg-white rounded border border-newxcaret-grey ",onClick:()=>{if(!(0,h.xb)(ef)){var e,t,n,a;let l=new m.v1(k,er);l.buildStructure({id:null==ef?void 0:null===(e=ef.userInfo)||void 0===e?void 0:e.id,withLogin:null==ef?void 0:null===(t=ef.userInfo)||void 0===t?void 0:t.withLogin,country:null==ef?void 0:null===(n=ef.userInfo)||void 0===n?void 0:n.pais,state:null==ef?void 0:null===(a=ef.userInfo)||void 0===a?void 0:a.estado,pageType:m.nJ.HOME,pageSection:m.os.INIT,pageSubsection:m.y3.QUOTE_PARKS,interactionText:m.x6.QUOTE_DATE_VISIT,pageEvent:m.TL.INTERACTION});let i=l.generateDataLayer();l.pushDataLayer(i)}},productId:B,disabled:p,className:"h-12 p-2 rounded",placeholder:z.calendarPlaceholder,initialDate:G,onChange:(e,t,n)=>{H(e),F(n)},noCustomization:!0,withPrices:ex,selectedPlace:ep,hasTransportation:L,labelsCalendar:z.calendarPrice,promocode:eb}),eC.length>0&&(0,a.jsx)("div",{className:"w-full border border-newxcaret-grey text-newxcaret-darkgrey text-sm bg-white rounded",children:(0,a.jsx)("select",{name:"fixedDatesSelector",className:"p-2 py-3 rounded w-full",onChange:e=>H(e.target.value),defaultValue:Q,value:Q,children:eA})})]})}),eP&&L&&(0,a.jsx)("div",{className:"w-full text-right mt-2",children:null===(t=z.transport)||void 0===t?void 0:t.disabledSameDay}),eD&&(0,a.jsxs)("div",{className:"w-full flex text-left mt-2",children:[(0,a.jsx)("input",{type:"checkbox",className:"hidden",id:"isAddingActivity".concat(B),checked:el,onChange:e=>ei(e.target.checked)}),(0,a.jsxs)("label",{htmlFor:"isAddingActivity".concat(B),className:"flex flex-row items-center",children:[(0,a.jsx)("div",{className:"h-6 w-6 border mx-2 flex items-center justify-center cursor-pointer border-booking-parks-text-label",children:el&&(0,a.jsx)(u.G,{icon:"check",className:"".concat(el?"block":""," text-white text-booking-parks-text-label")})}),(0,a.jsxs)("span",{className:"text-booking-parks-text-label",children:[" ","".concat(null==ea?void 0:ea.label).replace("{0}","".concat((0,x.xG)(ea.price,k)))]})]})]}),C&&eO&&(0,a.jsx)("div",{className:"flex items-center justify-end h-full pt-4",children:(0,a.jsx)(j,{textOn:"".concat(null==z?void 0:z.photo2.addonAdd," ").concat(eg>0?(0,x.xG)(eg,k,!0):""),textOff:z.photo2.addonRemove,icon:z.photo2.icon,classContainer:"ml-2",classOn:"py-2 ".concat(Object.keys(eu).length>0&&eu.buttonPhoto||"bg-lightpastel-green text-newxcaret-darkgrey","}
1"),classOff:"py-2 bg-gray-200 text-newxcaret-darkgrey",pressed:A,onTurnOn:()=>{if(J(!0),!(0,h.xb)(ef)){var e,t,n,a;let l=new m.v1(k,er);l.buildStructure({withLogin:null==ef?void 0:null===(e=ef.userInfo)||void 0===e?void 0:e.withLogin,id:null==ef?void 0:null===(t=ef.userInfo)||void 0===t?void 0:t.id,country:null==ef?void 0:null===(n=ef.userInfo)||void 0===n?void 0:n.pais,state:null==ef?void 0:null===(a=ef.userInfo)||void 0===a?void 0:a.estado,pageType:m.nJ.HOME,pageSection:m.os.INIT,pageSubsection:m.y3.QUOTE_PARKS,interactionText:m.x6.QUOTE_ADD_PHOTOPASS,pageEvent:m.TL.INTERACTION});let i=l.generateDataLayer();l.pushDataLayer(i)}},onTurnOff:()=>J(!1)})}),(0,a.jsxs)("div",{className:"w-full flex justify-end items-center mt-2",children:[I&&(0,a.jsx)("div",{className:"flex flex-1 justify-between items-center text-gray-100 mr-8",children:(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)(j,{textOn:z.food.addonAdd,textOff:z.food.addonRemove,icon:z.food.icon,classContainer:"mx-2",classOn:"py-1 bg-green-600",classOff:"py-1 bg-gray-200 text-gray-700",pressed:S,onTurnOn:()=>P(!0),onTurnOff:()=>P(!1)})})})}),(0,a.jsxs)("div",{className:"flex items-center justify-end h-full",children:[(0,a.jsxs)("div",{children:[eh&&(X>=7||""!==eb)&&em>0&&(0,a.jsxs)("div",{className:"flex justify-end items-center text-sm",children:[(0,a.jsxs)("span",{className:"".concat(Object.keys(eu).length>0?null==eu?void 0:null===(n=eu.price)||void 0===n?void 0:n.regLabel:"text-booking-parks-text-total"," mr-2 uppercase"),children:[z.regular,":"]}),(0,a.jsx)("span",{className:"line-through",children:(0,a.jsx)(w,{amount:em,loading:D||p,currency:k,styleCustom:"".concat(Object.keys(eu).length>0?null==eu?void 0:null===(i=eu.price)||void 0===i?void 0:i.regPrice:"text-booking-parks-text-total"," px-1")})})]}),(0,a.jsxs)("div",{className:"flex justify-end items-center font-semibold",children:[(0,a.jsx)("span",{className:"".concat(Object.keys(eu).length>0?null==eu?void 0:null===(r=eu.price)||void 0===r?void 0:r.total:"text-booking-parks-text-total"," mr-2 uppercase"),children:eE}),(0,a.jsx)("span",{children:(0,a.jsx)(w,{amount:_,loading:D||p,currency:k,styleCustom:"".concat(Object.keys(eu).length>0?null==eu?void 0:null===(o=eu.price)||void 0===o?void 0:o.onlinePrice:"text-booking-parks-text-total"," px-1")})})]})]}),(0,a.jsx)("button",{id:"addToCart",className:"".concat(Object.keys(eu).length>0?eu.button:"".concat(eP&&L?"bg-gray-200 text-gray-700 my-4":"bparks-btn-cta ")," rounded-full px-4 w-48 py-2 uppercase ml-4"),type:"submit",disabled:eP&&L,children:z.btnAdd})]})]}),(0,a.jsx)("div",{className:ey?"flex flex-1 items-center justify-end h-full":"hidden",style:ev,children:(0,f.lu)(_||0,z,k,!1)})]})})})};k.propTypes={...p.Ew,hasPresale:r().bool,customClassBooking:r().instanceOf(Object),withPrices:r().bool,upliftStyle:r().instanceOf(Object),dataInfoUser:r().instanceOf(Object),showNormalAmount:r().bool,normalAmountValue:r().number,prePurchaseDays:r().number,calendarPresales:r().instanceOf(Array),promocode:r().string},k.defaultProps={...p.Ew,hasPresale:!0,customClassBooking:{},withPrices:!1,upliftStyle:{},dataInfoUser:null,showNormalAmount:!1,normalAmountValue:0,prePurchaseDays:7,calendarPresales:[],promocode:""},t.default=k},436:function(e,t,n){n.d(t,{T:function(){return i}});var a=n(51218),l=n.n(a);n(98481);let i=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"DD MMMM YYYY";return l()(e).locale(t||"en").format(n)}},92251:function(e,t,n){n.d(t,{NS:function(){return s},gG:function(){return d},lu:function(){return c}});var a=n(52676),l=n(51218),i=n.n(l);let r=e=>i()(e).format("YYYYMMDD"),o=e=>{let t=Math.round(100*e+Number.EPSILON);return t},s=(e,t,n,a,l)=>{let i=[],s=r(n),d={event_name:t.event_name,venue_name:t.venue_name,start_date:s,end_date:s,reference_id:t.reference_id,type:"theme park"};if(a&&a.pax>0){let e=JSON.parse(JSON.stringify(d));e.event_name="".concat(e.event_name," Adulto"),e.unit_price=o(a.price*a.pax),e.quantity=a.pax,e.insurance=[{id:"0",types:["cancellation"],price:o(a.price*a.pax)}],e.remarks="Adult pricing",i.push(e)}if(l&&l.pax>0){let e=JSON.parse(JSON.stringify(d));e.event_name="".concat(e.event_name," Menor"),e.unit_price=o(l.price*l.pax),e.quantity=l.pax,e.insurance=[{id:"0",types:["cancellation"],price:o(l.price*l.pax)}],e.remarks="Child pricing",i.push(e)}return{event_tickets:i,add_ons:[],order_amount:o(e)}},d=(e,t)=>{let n=[],[a,l]=t,i=r(null==a?void 0:a.VisitDate),s={event_name:"Paquete ".concat(null==a?void 0:a.Code," + ").concat(null==l?void 0:l.Code),venue_name:null==a?void 0:a.BusinessUnitName,start_date:i,end_date:i,reference_id:"".concat(null==a?void 0:a.Code,"+").concat(null==l?void 0:l.Code),type:"theme park"},d=JSON.parse(JSON.stringify(s));return d.event_name="".concat(d.event_name," Adulto"),d.unit_price=o(e.price),d.quantity=1,d.insurance=[{id:"0",types:["cancellation"],price:o(e.price)}],d.remarks="Adult pricing",n.push(d),{event_tickets:n,add_ons:[],order_amount:o(e.price)}},c=function(e,t,n){let l=!(arguments.length>3)||void 0===arguments[3]||arguments[3];return(0,a.jsxs)("div",{style:{display:"none",cursor:"pointer"},"data-up-price-value":o(e||0),"data-up-price-type":"activity_option","data-up-price-model":"total","data-up-taxes-included":"true",className:"".concat(l?"text-center":""," relative text-xs"),children:["".concat(null==t?void 0:t.or," "),(0,a.jsxs)("span",{className:"text-uplift-blue",children:["".concat(null==t?void 0:t.from," "),(0,a.jsx)("span",{"data-up-from-currency-unit-major":""})," ".concat(n,"/").concat(null==t?void 0:t.mo),(0,a.jsx)("span",{"data-up-tooltip":"",className:"absolute top-0 px-1",children:(0,a.jsx)("svg",{stroke:"currentColor",fill:"
1currentColor",strokeWidth:"0",viewBox:"0 0 1024 1024",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"})})})]})]})}}}]);
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.