PageSourceSearch

https://www.xcaret.com/_next/static/chunks/82947.bb565cbcb2cf11da.js

js xcaret.com collected 2026-10-02 02:55:44 UTC 17,930 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82947,57231,56432,66360],{57231:function(e,t,i){"use strict";i.r(t);var r=i(52676);i(75271);var a=i(40507),n=i.n(a),d=i(86513),o=i.n(d);let s=e=>{let{className:t,children:i,type:a,...n}=e;return(0,r.jsx)("button",{...n,type:a,className:"".concat(o().roundedButton," roundedButton ").concat(t),children:i})};s.propTypes={className:n().string,children:n().oneOfType([n().element,n().string,n().instanceOf(Array)]),type:n().string.isRequired},s.defaultProps={className:"",children:null},t.default=s},28498:function(e,t,i){"use strict";i.d(t,{$Q:function(){return g},Oj:function(){return m},h2:function(){return d}});var r=i(40507),a=i.n(r),n=i(39956);let d=["addableActivityInfo","admissionLink","adultsOnly","allowedCustomer","avisos","banksBell","buttonOnly","buyDate","calculating","calendarPresales","canAddFood","canAddPhoto","canAddTransportation","canSelectSchedule","currency","currentComponents","customAnalyticsEvent","customClassBooking","customLabel","dataInfoUser","firstDateCalendar","fixedDates","food","g","hasFood","hasPhoto","hasPresale","hasSchedule","hasTransportation","hideSpecialColors","initialDate","initialGeographic","installmentsInfo","isAddingActivity","isPackage","isXenotes","labelProduct","labels","language","lastSelectedComponent","loadingPhotoPrice","loadingTotal","metricasGA4","moreInfoButton","multipleSelection","noPrice","normalAmountValue","packageData","pageGA4","park","paxAdult","paxChildren","photoPrice","places","prePurchaseDays","priceConditionLabel","priceTotal","productId","promocode","promoDescription","promoLabel","schedules","selectedPlace","selectedSchedule","sendAnalyticsEvent","setBuyDate","setCalculateInternalPrices","setCurrentComponent","setHasFood","setHasPhoto","setHasTransportation","setIsAddingActivity","setPackageRequest","setPaxAdult","setPaxChildren","setPrePurchaseDays","setSelectedPlace","setSelectedSchedule","showDiscounts","showNormalAmount","showPreSaleLbl","submitShopping","submitShoppingAndPay","subseccionGA4","templateActiveTab","total","tourOnly","upliftInitialized","upliftLabels","upliftOrderData","withPrices","withSpecialEventsPricing","showNormalAmountLbl"],{shape:o,number:s,string:l,oneOfType:u,bool:c,func:p,instanceOf:h,element:v}=a(),g={bookingNormalAmount:l,bookingPriceContainer:l,bookingPriceWrapper:l,btnContainer:l,button:l,buttonAdmission:l,buttonCotiza:l,buttonCustomContainer:l,buttonLblCustom:l,buttonMore:l,buttonOutline:l,buttonPhoto:l,buttonDiscountPercentage:l,productBtnContent:l,productBtnMore:l,extraInfo:l,isTransportationFix:l,justifyEvenly:l,label:l,labels:l,lightGreenSummer:l,list:h(Array),marginLeft:l,message:l,paxLbl:l,prebuildContainer:l,price:o({value:l,regLabel:l,regPrice:l,total:l,onlinePrice:l}),priceInstallments:l,priceLabelPresale:l,priceMSI:l,productBtn:l,promoCircle:l,rounded:l,shoppingCart:l,text:l,textColor:l,textlist:l},m={addableActivityInfo:o({availableDates:h(Array),label:l,labelListing:l,price:s}),added:c,addedLength:s,addProduct:p,admissionLink:l,allCalendarDiscounts:o({label:l,discount:l}),allowedCustomer:o({Adults:c,Children:c,Infants:c}),avisos:h(Object),banksBell:v,buttonOnly:c,buyDate:l,calculating:c.isRequired,calendarPresales:h(Array),canAddFood:c.isRequired,canAddPhoto:c.isRequired,canAddTransportation:c.isRequired,canSelectSchedule:c.isRequired,currency:l.isRequired,currentComponents:h(Array),customAnalyticsEvent:p,customClassBooking:o(g),firstDateCalendar:l,fixedDates:h(Array),food:o({diffAdults:s,diffChildren:s}).isRequired,hasFood:c.isRequired,hasPhoto:c.isRequired,hasPresale:c,hasTransportation:c.isRequired,hidePrices:c,initialDate:l,initialGeographic:s,installmentsInfo:o({availableBanks:h(Array),highestMsi:s,installmentAmount:s}),isAddingActivity:c,isPackage:c,labelProduct:l,labels:o(n.Bi).isRequired,language:l.isRequired,loadingPhotoPrice:c,loadingTotal:c,metricasGA4:h(Object),moreInfoButton:o({url:l,text:l}),multipleSelection:c||s,noPrice:c,normalAmountValue:s.isRequired,pageGA4:h(Object),park:l,paxAdult:o({pax:u([l,s]),priceBefore:u([l,s]),price:u([l,s])}).isRequired,paxChildren:o({pax:u([l,s]),priceBefore:u([l,s]),price:u([l,s])}).isRequired,photoPrice:u([l,s]),places:h(Array).isRequired,prePurchaseDays:s,priceConditionLabel:l,productId:s,productLoadedSuccesfully:c,promocode:l,promoDescription:l,schedules:h(Array),selectedPlace:l.isRequired,selectedSchedule:l.isRequired,sendAnalyticsEvent:p,setBuyDate:p.isRequired,setCalculateInternalPrices:p,setCurrentComponent:p,setHasFood:p.isRequired,setHasPhoto:p.isRequired,setHasTransportation:p.isRequired,setIsAddingActivity:p,setPaxAdult:p.isRequired,setPaxChildren:p.isRequired,setPrePurchaseDays:p.isRequired,setProduct:p,setSelectedPlace:p.isRequired,setSelectedSchedule:p.isRequired,showAddableActivity:c,showDiscounts:c.isRequired,showMaxModal:p,showNormalAmount:c,submitShopping:p.isRequired,submitShoppingAndPay:p.isRequired,subseccionGA4:l,templateActiveTab:u([l,s]),total:s.isRequired,tourOnly:c,upliftInitialized:c,upliftLabels:o({allowedCurrencies:h(Array),currenciesConfiguration:h(Object)}),upliftOrderData:h(Object),withPrices:c,withSpecialEventsPricing:c}},17920:function(e,t,i){"use strict";i.d(t,{S5:function(){return g},BD:function(){return p},BN:function(){return s},iK:function(){return h},iI:function(){return u},Qh:function(){return v},_r:function(){return l},be:function(){return q}});var r=i(14855),a=i(32771),n=i(9951);let d=(0,a.U)((e,t)=>({language:"es",currency:"",infoGA4Root:null,userData:null,async setSiteVariables(t){let{language:i,currency:r,infoGA4Root:a}=t,d=null;try{let e=await (0,n.ts)();d=null==e?void 0:e.data}catch(e){console.error("Error fetching user data:",e),d=null}e({language:i,currency:r,infoGA4Root:a,userData:d})}})),o=e=>{var t;let i=[],r=(null==e?void 0:null===(t=e.ShoppingCart)||void 0===t?void 0:t.Individuals)||[];for(let e=0;e<r.length;e+=1){let t=r[e],a={brand:t.FamilyName,category:t.BusinessUnitName,dateOfVisit:t.BookingDate,id:t.ProductCode,name:t.ProductName},n=t.Components||[];
1if(n.length>1&&n[1].BookingDate!==a.dateOfVisit&&(a.dateOfVisit2=n[1].BookingDate),t.Pax.Adults>0){let e=JSON.parse(JSON.stringify(a));e.quantity=t.Pax.Adults,e.price=t.Pax.AdultsPrice,e.variant="Adulto",i.push(e)}if(t.Pax.Children>0){let e=JSON.parse(JSON.stringify(a));e.quantity=t.Pax.Children,e.price=t.Pax.ChildrenPrice,e.variant="Menor",i.push(e)}}return i},s=(e,t,i)=>{let r=o(e);return{event:"addToCart",exchangeRate:i,ecommerce:{currencyCode:t,add:{products:r}}}},l=(e,t)=>{var i,r,a,n,d,o,s,l;let u=[],c=(null==t?void 0:null===(i=t.Cart)||void 0===i?void 0:null===(r=i.PackageProducts)||void 0===r?void 0:r.Products)||[],p=(null==t?void 0:null===(a=t.Cart)||void 0===a?void 0:null===(n=a.IndividualProducts)||void 0===n?void 0:n.Products)||[],h=(null==t?void 0:null===(d=t.Cart)||void 0===d?void 0:null===(o=d.ActivityProducts)||void 0===o?void 0:o.Products)||[],v=[...c,...p,...h],g=v.filter(t=>t.IdCart===e||t.IdCartParent===e);for(let e=0;e<g.length;e+=1){let t=g[e],i={name:null==t?void 0:t.Name,id:null==t?void 0:t.Code,price:null==t?void 0:t.Amount,brand:null==t?void 0:t.Family,category:null==t?void 0:t.UnitBusiness,dateOfVisit:null==t?void 0:t.BookingDate},r=(null==t?void 0:null===(s=t.Guests)||void 0===s?void 0:s.Adults)||0;if(r>0){let e=JSON.parse(JSON.stringify(i));e.price=null==t?void 0:t.NormalAdults,e.quantity=r,e.variant="Adulto",u.push(e)}let a=(null==t?void 0:null===(l=t.Guests)||void 0===l?void 0:l.Children)||0;if(a>0){let e=JSON.parse(JSON.stringify(i));e.price=null==t?void 0:t.NomrmalChildren,e.quantity=a,e.variant="Menor",u.push(e)}}return{event:"removeFromCart",exchangeRate:null==t?void 0:t.ExchangeRate,ecommerce:{currencyCode:null==t?void 0:t.Currency,remove:{products:u}}}},u=(e,t,i,r)=>{var a,n;let d=e.Activities||[],o=e.Addons||[],s=[...d,...o],l=s.find(e=>e.Id===t);return{exchangeRate:null==e?void 0:e.ExchangeRate,ecommerce:{currencyCode:i,detail:{actionField:{list:r},products:[{name:null==l?void 0:l.Name,id:null==l?void 0:l.Code,price:null==l?void 0:l.Amount,brand:null==l?void 0:null===(a=l.Family)||void 0===a?void 0:a.Name,category:null==l?void 0:null===(n=l.BusinessUnit)||void 0===n?void 0:n.Name,variant:"Adulto"}]}}}},c=(e,t)=>{var i;let r=[],a=(null==e?void 0:null===(i=e.ShoppingCart)||void 0===i?void 0:i.Individuals)||[];for(let e=0;e<a.length;e+=1){let i=a[e];if(!t){let e={brand:i.FamilyName,category:i.BusinessUnitName,dateOfVisit:i.BookingDate,id:i.ProductCode,name:i.ProductName};if(i.Pax.AdultsParent>0){let t=JSON.parse(JSON.stringify(e));t.quantity=i.Pax.AdultsParent,t.price=i.Pax.AdultsPrice,t.variant="Adulto",r.push(t)}if(i.Pax.ChildrenParent>0){let t=JSON.parse(JSON.stringify(e));t.quantity=i.Pax.ChildrenParent,t.price=i.Pax.ChildrenPrice,t.variant="Menor",r.push(t)}}let n={brand:i.FamilyNameAct,category:i.BusinessUnitNameAct,dateOfVisit:i.BookingDate,id:i.ProductCodeAct,name:i.ProductNameAct};if(i.Pax.Adults>0){let e=JSON.parse(JSON.stringify(n));e.quantity=i.Pax.Adults,e.price=i.Pax.AdultsPriceAct,e.variant="Adulto",r.push(e)}if(i.Pax.Children>0){let e=JSON.parse(JSON.stringify(n));e.quantity=i.Pax.Adults,e.price=i.Pax.ChildrenPriceAct,e.variant="Menor",r.push(e)}}return r},p=(e,t,i,r)=>{let a=c(e,r);return{event:"addToCart",exchangeRate:i,ecommerce:{currencyCode:t,add:{products:a}}}},h=(e,t,i)=>{let{packageDetail:r}=e||{},a=(null==r?void 0:r.Components)||[],n=[];for(let e=0;e<a.length;e+=1){var d,o;let t=a[e];n.push({name:null==t?void 0:t.Name,id:null==t?void 0:t.Code,price:null==t?void 0:t.NormalAdultAmount,brand:null==t?void 0:null===(d=t.Family)||void 0===d?void 0:d.Name,category:null==t?void 0:null===(o=t.BusinessUnit)||void 0===o?void 0:o.Name,variant:"Adulto"})}return{exchangeRate:null==r?void 0:r.ExchangeRate,ecommerce:{currencyCode:t,detail:{actionField:{list:i},products:n}}}},v=(e,t,i,r)=>{let a=[];for(let i=0;i<e.length;i+=1){var n,d;let r=e[i];a.push({name:r.Name,id:r.Code,price:r.NormalAmount,brand:null===(n=r.Family)||void 0===n?void 0:n.Name,category:null===(d=r.BusinessUnit)||void 0===d?void 0:d.Name,variant:"Adulto",list:t,position:i+1})}return{exchangeRate:r,ecommerce:{currencyCode:i,impressions:a}}};class g{captureEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.eventList.find(t=>t.name===e),r=null==i?void 0:i.content;if(r){let e={...this.eventBase,...r,...t};e=JSON.parse(String(JSON.stringify(e)).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""));try{dataLayer.push(e)}catch(t){console.log("captureEvent error",e)}}}constructor(e,t,i,r,a,n){this.eventBase={...t,page_moneda:String(i).toLowerCase(),page_idioma:String(r).toLowerCase(),page_type:a,page_seccion:n},this.eventList=e}}let m=e=>{e&&Object.keys(e).length&&(null===r.sendGTMEvent||void 0===r.sendGTMEvent||(0,r.sendGTMEvent)(e))};async function R(){var e;let{language:t,currency:i,infoGA4Root:r,userData:a}=d.getState(),n={user_id:null!==(e=null==a?void 0:a.sId)&&void 0!==e?e:"n/a",user_login:(null==a?void 0:a.foundData)?"si":"no",user_pais:String((null==a?void 0:a.country)&&(null==a?void 0:a.country)!==""?a.country:"n/a").toLowerCase(),user_estado:String((null==a?void 0:a.state)&&(null==a?void 0:a.state)!==""?a.state:"n/a").toLowerCase()};return{eventDatalayer:function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d={event:e,page_idioma:t.toLowerCase()||"es",page_moneda:i.toLowerCase()||"n/a",...n,...r||{},...a};return d}}}let q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"interaccion";R().then(i=>{let{eventDatalayer:r}=i,a=r(t,e);m({...a})}).catch(e=>console.error("Error sending datalayer interaction",e))}},32164:function(e,t,i){"use strict";i.d(t,{OA:function(){return o},PN:function(){return u},V4:function(){return s},e0:function(){return l}});var r=i(52043),a=i.n(r),n=i(55311);let d={Authorization:"Bearer ".concat("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkdydXBvIFhjYXJldCIsImlhdCI6MTYwMDE2NzU0MH0.U9SmlMNq5_sr4COSCqSSOjcSgfW3gbSkrOXuEnhTkWA"),PrefixProject:"gx-parques"},o=function(e,t,i,r,d,o){let s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,c=!(arguments.length>9)||void 0===arguments[9]||arguments[9],p=arguments.length>10&&void 0!==arguments[10]&&arguments[10],h=!(arguments.length>11)||void 0===arguments[11]||arguments[11],v=arguments.length>12&&void 0!==arguments[12]?arguments[12]:[],g=String(t).toUpperCase(),m={lang:g,currency:i,products:e,startDate:r,adults:l,isMobile:o,businessUnitCode:s,withInstallments:p,withSpecialEventPricing:h,installmentsProducts:v};return r?m.startDate=r:m.startDate=a()().add(7,"day").format("YYYY-MM-DD"),d&&(m.promotionCode=d,c&&(m.children=u)),m.withPresaleCalendar=!0,n.Z.post("/xapi/product",m)},s=function(e,t,i,r,d,o){let s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",l=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=String(t).toUpperCase(),c={lang:u,currency:i,products:e,startDate:r,adults:1,isMobile:o,businessUnitCode:s,addComponentsForNormalAmounts:l};return r?c.startDate=r:c.startDate=a()().add(7,"day").format("YYYY-MM-DD"),d&&(c.promotionCode=d,c.children=1),n.Z.post("/xapi/product-with-components",c)},l=(e,t,i,r,a,d)=>{let o=String(t).toUpperCase(),s={lang:o,currency:i,products:e,startDate:r,adults:parseInt(a,10),children:parseInt(d,10)};return n.Z.post("/xapi/photopass",s)},u=(e,t,i,r,a,o,s,l)=>{let u={lang:t,currency:i,packageId:r,unitBusinessCode:a},c=[],p=e.length;for(let t=0;t<p;t+=1)c.push({Id:e[t],visitDate:l,Adults:o,Children:s});return u.products=c,n.Z.post("/xapi/prebuild-package",{headers:d,...u})}},39956:function(e,t,i){"use strict";i.d(t,{Bi:function(){return p},Ew:function(){return h},PO:function(){return v}});var r=i(40507),a=i.n(r);let{shape:n,number:d,string:o,oneOfType:s,bool:l,func:u,instanceOf:c}=a(),p={activitySelectLabel:o,addServices:o,adultLabel:o.isRequired,adultLabelPlural
1:o,adultLabelSingular:o,adultPaxDefault:o.isRequired,adultPaxPlural:o.isRequired,adultPaxSingular:o.isRequired,btnAdd:o.isRequired,btnAddCart:o.isRequired,btnGetAdmi:o,btnInfo:o.isRequired,btnInfoAlt:o,btnPay:o.isRequired,btnQuotate:o,calendarPlaceholder:o.isRequired,childLabel:o.isRequired,childPaxDefault:o.isRequired,childPaxPark:c(Object),childPaxPlural:o.isRequired,childPaxSingular:o.isRequired,customProductLabels:c(Array),food:n({addonAdd:s([o,c(Array)]).isRequired,addonAdds:o,addonRemove:o.isRequired,icon:o,tooltip:o.isRequired}),legal:o.isRequired,msgConfirm:o,paymentMSI:n({fromMSI:o,labelMSI:o,toMSI:o}),perPerson:o,photo:n({addonAdd:s([o,c(Array)]).isRequired,addonAdds:o,addonRemove:o.isRequired,icon:o,tooltip:o.isRequired}),regularPrice:o,sameDayPackageTab:o,saving:o,scheduleDefault:o.isRequired,totalLabel:o.isRequired,transport:n({addonAdd:s([o,c(Array)]).isRequired,addonAdds:o,addonRemove:o.isRequired,disabledSameDay:o,icon:o,noTransport:o,selectDefault:o.isRequired,tooltip:o.isRequired}),twoDayPackageTab:o},h={addableActivityInfo:c(Object),buyDate:o,calculating:l.isRequired,canAddFood:l.isRequired,canAddPhoto:l.isRequired,canAddTransportation:l.isRequired,canSelectSchedule:l.isRequired,currency:o.isRequired,fixedDates:c(Array),hasFood:l.isRequired,hasPhoto:l.isRequired,hasTransportation:l.isRequired,initialDate:o,isAddingActivity:l,labelProduct:o,labels:n(p).isRequired,language:o,loadingTotal:l,packageData:c(Array).isRequired,paxAdult:n({pax:s([o,d]).isRequired,price:s([o,d]).isRequired}).isRequired,paxChildren:n({pax:s([o,d]).isRequired,price:s([o,d]).isRequired}).isRequired,places:c(Array).isRequired,productId:d,schedules:c(Array),selectedPlace:o.isRequired,selectedSchedule:o.isRequired,setBuyDate:u.isRequired,setHasFood:u.isRequired,setHasPhoto:u.isRequired,setHasTransportation:u.isRequired,setIsAddingActivity:u,setPackageRequest:u.isRequired,setPaxAdult:u.isRequired,setPaxChildren:u.isRequired,setSelectedPlace:u.isRequired,setSelectedSchedule:u.isRequired,submitShopping:u.isRequired,submitShoppingAndPay:u,total:d.isRequired,tourOnly:l,u:c(Object),upliftInitialized:l,upliftOrderData:c(Object)},v={calculating:l.isRequired,currency:o.isRequired,labels:n(p).isRequired,paxAdult:n({pax:s([o,d]).isRequired,price:s([o,d]).isRequired}).isRequired,paxChildren:n({pax:s([o,d]).isRequired,price:s([o,d]).isRequired}).isRequired,setPaxAdult:u.isRequired,setPaxChildren:u.isRequired};l.isRequired,l.isRequired,l.isRequired,l.isRequired,o.isRequired,l.isRequired,l.isRequired,l.isRequired,n(p).isRequired,n({pax:s([o,d]).isRequired,price:s([o,d]).isRequired}).isRequired,n({pax:s([o,d]).isRequired,price:s([o,d]).isRequired}).isRequired,c(Array).isRequired,o.isRequired,u.isRequired,u.isRequired,u.isRequired,u.isRequired,u.isRequired,u.isRequired,u.isRequired,d.isRequired},33498:function(e,t,i){"use strict";var r=i(120),a=i.n(r);let n=a().create({baseURL:"https://parks.api.xcaret.com/api/v1",withCredentials:!0});n.interceptors.request.use(e=>{try{let t=btoa(window.location.host+window.location.pathname);return e.headers={...e.headers,HostNamePath:t},e}catch(t){return e}}),delete n.defaults.headers.common["X-Requested-With"],t.Z=n},86513:function(e){e.exports={roundedButton:"rounded-button_roundedButton__RgSWV"}},32771:function(e,t,i){"use strict";i.d(t,{U:function(){return s}});var r=i(75271);let a=e=>{let t;let i=new Set,r=(e,r)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),i.forEach(i=>i(t,e))}},a=()=>t,n={setState:r,getState:a,getInitialState:()=>d,subscribe:e=>(i.add(e),()=>i.delete(e))},d=t=e(r,a,n);return n},n=e=>e?a(e):a,d=e=>e,o=e=>{let t=n(e),i=e=>(function(e,t=d){let i=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(i),i})(t,e);return Object.assign(i,t),i},s=e=>e?o(e):o}}]);

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.