1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[96720],{96720:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return v}});var n=a(52676),i=a(75271),r=a(40507),s=a.n(r),o=a(83191),l=a.n(o),c=a(8339),p=a(18800),d=a(33168);let u=e=>{let{schema:t}=e;try{switch(t["@type"]){case"AmusementPark":return!0;case"FAQPage":return!(0,d.xb)(t.mainEntity);default:return!1}}catch(e){return!1}};var g=e=>{let{type:t,language:a,breadcrumbs:n,canonical:r,resort:s,product:o,hotel:l,faqs:c,itemList:u,schemaApp:g,listSchema:m,turist:y,eventSchema:h,raiting:f}=e,[v,b]=(0,i.useState)(""),[S,x]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{var e,i,v,S,j;let A="https://www.xcaret.com",w={...p.SI,"@type":t};switch(t){case"BreadcrumbList":(0,d.xb)(n)||(w={...w,itemListElement:n.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.text,item:""!==e.href?"".concat(A).concat(e.href):r}))},x(!0)),b(JSON.stringify(w));break;case"ListItem":w={...w},(0,d.xb)(m)||(w={...w,...p.pI,itemListElement:m.itemListElement.map((e,t)=>({"@type":"ListItem",position:t+1,item:{"@type":"Product",name:null==e?void 0:e.item.name}}))},x(!0)),b(JSON.stringify(w));break;case"WebSite":w={"@type":t},(0,d.xb)(a)||(w={...w,...p.PN,potencialAction:{...p.PN.potencialAction,url:"".concat(A,"/").concat(a,"/"),target:{...p.PN.potencialAction.target,urlTemplate:"".concat(A,"/").concat(a,"/search/?q={search_term_string}")}}},x(!0)),b(JSON.stringify(w));break;case"Resort":w={...p.p2},(0,d.xb)(s)||(w={...p.p2,"@type":"Resort",name:s.name,image:s.image,url:s.url,telephone:s.telephone,address:{"@type":"PostalAddress",...s.address,streetAddress:s.address.streetAddress,addressLocality:s.address.addressLocality,addressCountry:s.address.addressCountry,postalCode:s.address.postalCode},sameAs:s.sameAs},x(!0)),b(JSON.stringify(w));break;case"Hotel":if(w={...w},!(0,d.xb)(l)){let t=[];if(null==l?void 0:null===(e=l.hoursSpecification)||void 0===e?void 0:e.days){for(let e=0;e<l.hoursSpecification.days.length;e+=1)t.push('"'.concat(l.hoursSpecification.days[e],'"'));w={...w,...p.vo,name:l.name,description:l.description,address:{...p.vo.address,addressCountry:l.address.country,addressLocality:l.address.locality,addressRegion:l.address.region,postalCode:l.address.zip,streetAddress:l.address.address},telephone:l.telephone,image:l.image,geo:{...p.vo.geo,latitude:l.geo.lat,longitude:l.geo.lng},priceRange:l.price,openingHoursSpecification:{...p.vo.openingHoursSpecification,dayOfWeek:t,opens:l.hoursSpecification.opens,closes:l.hoursSpecification.closes}},x(!0)}}b(JSON.stringify(w));break;case"FAQPage":w={...w},(0,d.xb)(c)||(w={...w,...p.I1,mainEntity:c.mainEntity.map(e=>{var t;
1return{"@type":"Question",name:null==e?void 0:e.name,acceptedAnswer:{"@type":"Answer",text:null==e?void 0:null===(t=e.acceptedAnswer)||void 0===t?void 0:t.text}}})},x(!0)),b(JSON.stringify(w));break;case"ItemList":if(w={...w},!(0,d.xb)(u)){let e=u.itemListElement||[];w={...w,"@id":u.url,name:u.name,url:u.url,numberOfItems:u.numberOfItems,itemListOrder:u.itemListOrder,itemListElement:e.map(e=>({"@type":null==e?void 0:e.type,position:null==e?void 0:e.position,item:{"@type":"Product","@id":null==e?void 0:e.url,name:null==e?void 0:e.name,description:null==e?void 0:e.description,url:null==e?void 0:e.url,category:null==e?void 0:e.category,brand:{"@type":"Brand",name:null==e?void 0:e.brand},...e.rating&&{aggregateRating:{"@type":"AggregateRating",ratingValue:e.rating.value,reviewCount:e.rating.review}}}}))},x(!0)}b(JSON.stringify(w));break;case"app":w={...w},(0,d.xb)(g)||(w={"@context":"https://schema.org","@type":["MobileApplication","WebApplication"],name:g.name,operatingSystem:g.operatingSystem,applicationCategory:g.applicationCategory,aggregateRating:{"@type":"AggregateRating",ratingValue:g.ratingValue,ratingCount:g.ratingCount},offers:{"@type":"Offer",price:g.price,priceCurrency:g.priceCurrency},...p.tP}),x(!0),b(JSON.stringify(w));break;case"AppDevice":w={...w},(0,d.xb)(g)||(w={"@context":"https://schema.org","@type":"MobileApplication",name:g.name,operatingSystem:g.operatingSystem,applicationCategory:g.applicationCategory,aggregateRating:{"@type":"AggregateRating",ratingValue:null==g?void 0:null===(i=g.aggregateRating)||void 0===i?void 0:i.value,ratingCount:null==g?void 0:null===(v=g.aggregateRating)||void 0===v?void 0:v.count},offers:{"@type":"Offer",price:null==g?void 0:null===(S=g.offers)||void 0===S?void 0:S.price,priceCurrency:null==g?void 0:null===(j=g.offers)||void 0===j?void 0:j.priceCurrency}},x(!0)),b(JSON.stringify(w));break;case"Review":if(w={...w},!(0,d.xb)(o)&&f){let e=Number(f.AverageRating).toFixed(1);w={...w,"@context":"https://schema.org","@type":"Product",name:o.name,description:o.description,image:o.image,brand:{"@type":"Brand",name:o.brand},aggregateRating:{"@type":"AggregateRating",ratingValue:e,reviewCount:f.TotalReviewCount},offers:{"@type":"Offer",url:o.offers.url,price:o.offers.price,priceCurrency:o.offers.priceCurrency,availability:"https://schema.org/InStock",priceSpecification:{"@type":"PriceSpecification",priceType:"https://schema.org/UnitPriceSpecification",price:o.priceSpecification,priceCurrency:o.offers.priceCurrency}}},x(!0)}b(JSON.stringify(w));break;case"ProductStatic":w={...w},(0,d.xb)(o)||(w={...w,"@context":"https://schema.org","@type":"Product","@id":o.id,name:o.name,description:o.description,url:o.url,image:o.image,brand:{"@type":"Brand",name:o.brand},category:o.category,aggregateRating:{"@type":"AggregateRating",ratingValue:o.ratingValue,bestRating:o.bestRating,ratingCount:o.ratingCount}},(0,d.xb)(o.offers)?w.availability="https://schema.org/InStock":w.offers={"@type":"AggregateOffer",url:o.offers.url,price:o.offers.price,lowPrice:o.offers.lowPrice,highPrice:o.offers.highPrice,availability:"https://schema.org/InStock"},x(!0)),b(JSON.stringify(w));break;case"Event":w={...w},(0,d.xb)(h)||(w={...w,"@type":"Event",...h},x(!0)),b(JSON.stringify(w));break;case"TuristAttraction":w={...w},(0,d.xb)(y)||(w={...w,"@id":y.id?y.id:y.url,"@type":"TouristAttraction",name:y.name,description:y.description,url:y.url,image:y.image,touristType:y.touristType,containedInPlace:{"@type":"Place",name:y.containedInPlaceName,url:y.containedInPlaceUrl},inLanguage:y.inLanguage,address:{"@type":"PostalAddress",addressLocality:y.addressLocality,addressRegion:y.addressRegion,addressCountry:y.addressCountry},...y.latitude&&{geo:{"@type":"GeoCoordinates",latitude:y.latitude,longitude:y.longitude}},mainEntityOfPage:{"@type":"WebPage","@id":y.url},publicAccess:y.publicAccess,availableLanguage:y.availableLanguage,telephone:y.telephone,sameAs:y.sameAs},x(!0)),b(JSON.stringify(w));break;default:w={...w},x(!1),b(JSON.stringify(w))}},[]),S?v:null},m=a(17948),y=(e,t)=>((0,i.useEffect)(()=>
1{let a=(null==e?void 0:e.email)||null,n=(null==e?void 0:e.userName)||null;null!==a&&(window.adaSettings={conversationEndCallback:()=>{},language:t,metaFields:{username:n,email:a}}),null===a&&null===n&&(window.adaSettings={language:t})},[e,t]),[e,t]),h=a(86433);let f=e=>{var t,a,i;let r,s,{t:o,metas:p,noFollow:f,language:v,categories:b,userData:S,chat:x,webchat:j,reviews:A}=e,{title:w,description:L,opengraph:_,twitter:C,canonical:O}=p,I=(0,d.xb)(b)?[]:b.join(","),{section:P}=o,R=g({type:"WebSite",language:v}),E=g({type:"Hotel",hotel:null==P?void 0:P.schemaHotel}),T=g({type:"Resort",resort:null==P?void 0:P.schemaResort}),k=g({type:"Review",product:null==P?void 0:P.schemaProduct,raiting:A}),H=g({type:"ProductStatic",product:null==P?void 0:P.schemaProductStatic,raiting:A}),N=g({type:"Event",eventSchema:null==P?void 0:P.eventSchema}),M=g({type:"AppDevice",schemaApp:null==P?void 0:P.schemaAppAndroid}),F=g({type:"AppDevice",schemaApp:null==P?void 0:P.schemaAppIos}),J=(null==p?void 0:p.schemas)||[],V=J.filter(e=>u({schema:e})).map(e=>(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}})),W=(null==P?void 0:P.dataAppSchema)?g({type:"app",schemaApp:null==o?void 0:null===(t=o.global)||void 0===t?void 0:t.dataAppSchema}):null,B={...null==o?void 0:null===(a=o.global)||void 0===a?void 0:a.schemaTouristAttraction,...null==P?void 0:P.schemaTouristAttraction},D=g({type:"TuristAttraction",turist:B}),U=g({type:"BreadcrumbList",breadcrumbs:null==P?void 0:P.breadcrums}),q=g({type:"FAQPage",faqs:null==P?void 0:P.schemaFAQS}),Q=g({type:"ItemList",itemList:null==P?void 0:P.schemaItemList}),Z=null!==(i=null==P?void 0:P.schemas)&&void 0!==i?i:[],G=new h.Z(x,j);if(G.isEnableSalesForce()){let e=G.getSettingsSalesForce();(0,m.Z)(v,null==e?void 0:e.chatKey,null==e?void 0:e.chatId,null==e?void 0:e.chatUrl,null==e?void 0:e.scrt2URL,null==e?void 0:e.embedScriptSrc)}G.isEnableSalesForce()||y(S,v);let X=c.H||"";return c.H.startsWith("https")||(X="https://www.xcaret.com".concat(c.H)),_&&(r=(0,n.jsxs)(n.Fragment,{children:[_.title&&(0,n.jsx)("meta",{property:"og:title",content:_.title}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),O&&(0,n.jsx)("meta",{property:"og:url",content:O}),(0,n.jsx)("meta",{property:"fb:app_id",content:" 423163087721156"}),_.image&&(0,n.jsx)("meta",{property:"og:image",content:"".concat(X).concat(_.image)}),_.description&&(0,n.jsx)("meta",{property:"og:description",content:_.description}),(0,n.jsx)("meta",{name:"apple-mobile-web-app-capable",content:"yes"})]})),C&&(s=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{name:"twitter:card",content:"summary"}),C.creator&&(0,n.jsx)("meta",{name:"twitter:creator",content:C.creator}),O&&(0,n.jsx)("meta",{property:"twitter:url",content:O}),C.title&&(0,n.jsx)("meta",{name:"twitter:title",value:C.title}),C.description&&(0,n.jsx)("meta",{name:"twitter:description",value:C.description}),C.image&&(0,n.jsx)("meta",{name:"twitter:image",value:"".concat(c.H).concat(_.image)})]})),(0,n.jsxs)(l(),{children:[(0,n.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),f&&(0,n.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),!f&&(0,n.jsx)("meta",{name:"robots",content:"index, follow"}),(0,n.jsx)("title",{children:w}),L&&(0,n.jsx)("meta",{name:"description",content:L}),I.length>0&&(0,n.jsx)("meta",{name:"keywords",content:I}),r,s,O&&(0,n.jsx)("link",{rel:"canonical",href:O}),R&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:R}}),E&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:E}}),T&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:T}}),k&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:k}}),N&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:N}}),M&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:M}}),F&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:F}}),H&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:H}}),U&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:U}}),q&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:q}}),D&&(null==P?void 0:P.schemaTouristAttraction)&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:D}}),Z.length>0?Z.map((e,t)=>(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}},t)):Q&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:Q}}),W&&((null==P?void 0:P.dataAppSchema)===!0?(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:W}}):""),V,(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, minimum-scale=1, viewport-fit=cover"}),(0,n.jsx)("meta",{name:"format-detection",content:"telephone=no"}),(0,n.jsx)("meta",{itemProp:"name",content:"Xcaret"}),(0,n.jsx)("meta",{property:"og:site_name",content:"Xcaret"}),!G.isEnableSalesForce()&&(0,n.jsx)("script",{id:"__ada","data-handle":"xcaret",src:"https://static.ada.support/embed2.js"})]})};f.propTypes={metas:s().instanceOf(Object).isRequired,noFollow:s().bool,t:s().instanceOf(Object),language:s().string,categories:s().instanceOf(Array),userData:s().instanceOf(Object),chat:s().instanceOf(Object),webchat:s().instanceOf(Object)},f.defaultProps={noFollow:!1,categories:[],t:{},language:"es",userData:null,chat:null,webchat:null};var v=f},86433:function(e,t){"use strict";t.Z=class{constructor(e,t){this.isEnableADAChat=()=>{let e=!1;if(this.chat){let t=this.chat.socialMedia.find(e=>e.adaChat);if(t){let{adaChat:a}=t;e=a}}return e},this.isEnableSalesForce=()=>{var e;let t=(null===(e=this.webchat)||void 0===e?void 0:e.enable)||!1;return t&&(t=!0),t}
1,this.getSettingsSalesForce=()=>{let e=null;if(this.webchat){let{chatKey:t,chatId:a,chatUrl:n,scrt:i,embedScriptSrc:r}=this.webchat;e={chatKey:t,chatId:a,chatUrl:n,scrt2URL:i.scrt2URL,embedScriptSrc:r}}return e},this.chat=e,this.webchat=t}}},17948:function(e,t,a){"use strict";var n=a(75271);t.Z=(e,t,a,i,r,s)=>{(0,n.useEffect)(()=>{let n=document.createElement("script");n.lang="text/javascript",n.addEventListener("load",n=>{try{embeddedservice_bootstrap.settings.language=e,embeddedservice_bootstrap.settings.hideChatButtonOnLoad=!0,embeddedservice_bootstrap.init(t,a,i,{scrt2URL:r})}catch(e){console.error("Error loading Embedded Messaging: ",e)}}),n.src=s,document.body.appendChild(n)},[])}},18800:function(e,t,a){"use strict";a.d(t,{I1:function(){return l},PN:function(){return i},SI:function(){return n},p2:function(){return s},pI:function(){return c},tP:function(){return o},vo:function(){return r}});let n={"@context":"https://schema.org","@type":""},i={potencialAction:{"@type":"SearchAction",url:"",target:{"@type":"EntryPoint",urlTemplate:""},"query-input":"required name=search_term_string"}},r={name:"",description:"",address:{"@type":"PostalAddress",addressCountry:"",addressLocality:"",addressRegion:"",postalCode:"",streetAddress:""},telephone:"",image:"",geo:{"@type":"GeoCoordinates",latitude:"",longitude:""},priceRange:"",openingHoursSpecification:{"@type":"OpeningHoursSpecification",dayOfWeek:"",opens:"",closes:""}},s={"@context":"https://schema.org","@type":"Resort",name:"",image:"","@id":"",url:"",telephone:"",address:{"@type":"PostalAddress",streetAddress:"",addressLocality:"",postalCode:"",addressCountry:""},sameAs:""},o={"@context":"https://schema.org","@type":"WebApplication",name:"",operatingSystem:"",applicationCateogry:"",aggregateRating:{"@type":"AggregateRating",ratingValue:"",ratingCount:""},offers:{"@type":"Offer",price:"",priceCurrency:""}},l={mainEntity:[]},c={itemListElement:[]}},83191:function(e,t,a){e.exports=a(12753)}}]);
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.