1(self.webpackChunkturista_provincias=self.webpackChunkturista_provincias||[]).push([[600],{8529:function(e,t,r){"use strict";var a=r(6540),l=r(9411);t.A=e=>{let{hotel:t}=e;const r=t.portada?`https://turista.me${t.portada}`:"",s=`//jet.turista.com.mx/hotels?hotelId=${t.travelpayoutsid}`;return a.createElement("div",{className:"bg-gray-100 shadow-md w-80 flex flex-col mb-8 transition-transform duration-300 hover:shadow-lg hover:scale-105",itemScope:!0,itemType:"https://schema.org/Hotel"},a.createElement("div",{className:"relative overflow-hidden"},a.createElement("a",{href:s,target:"_blank",rel:"noreferrer"},a.createElement("img",{src:r,alt:t.nombre,className:"w-full h-60 object-cover transition-transform duration-300 hover:scale-110",itemProp:"image"})),a.createElement("div",{className:"absolute top-2 right-2 flex justify-end"},t.rating>0&&a.createElement("div",{className:"bg-white bg-opacity-80 text-yellow-500 p-1 text-lg font-bold"},t.rating,"â
"))),a.createElement("div",{className:"flex justify-between p-4"},a.createElement("div",{className:"text-left"},a.createElement("div",{className:"text-lg font-bold",itemProp:"name"},t.nombre),t.cuartos&&a.createElement("p",{className:"text-sm text-gray-700 mt-1"},"Cuartos: ",t.cuartos),t.desc_spanish&&t.desc_spanish.length>200&&a.createElement("p",{className:"text-sm text-gray-400 mt-2",dangerouslySetInnerHTML:{__html:t.desc_spanish.substring(0,200)}})),a.createElement("div",{className:"border-l border-gray-300 pl-4 flex flex-col items-center"},a.createElement(l.A,{type:1}),t.lowestrate>0&&a.createElement("div",{className:"text-center text-green-600 text-lg font-bold mt-2"},a.createElement("span",{className:"block text-sm text-gray-500"},"MXN"),new Intl.NumberFormat("es-MX",{style:"currency",currency:"MXN"}).format(t.lowestrate),a.createElement("span",{className:"block text-sm text-gray-500"},"prom/noche")),a.createElement("a",{href:s,target:"_blank",rel:"noreferrer",className:"bg-yellow-500 text-white rounded-lg px-4 py-2 mt-4 text-xs font-semibold hover:shadow-lg transition-shadow duration-300"},"Reservar Ahora"))),a.createElement("div",{className:"text-center text-gray-500 p-4",itemProp:"address"},t.direccion.substring(0,45)))}},6756:function(e,t,r){"use strict";var a=r(6540),l=r(7581),s=r(4941);t.A=e=>{let{title:t,onClick:r}=e;return a.createElement(o,{onClick:r},t)};const o=l.default.div.withConfig({displayName:"ButtonMoreHotels__Wrapper",componentId:"sc-vbz1q7-0"})(["margin:1rem auto 2rem !important;background:red;width:50%;text-align:center;border:1px solid ",";color:",";font-size:1.5rem;border-radius:50px;box-shadow:var(--light-shadow);padding:1rem;background:var(--clr-white);transition:var(--transition);@media ","{width:25%;}:hover{cursor:pointer;background:",";box-shadow:var(--dark-shadow);color:",";}"],(e=>e.theme.colors.primary5),(e=>e.theme.colors.primary8),s.A.lg,(e=>e.theme.colors.primary5),(e=>e.theme.colors.primary10))},1770:function(e,t,r){"use strict";var a=r(6540),l=r(4794);t.A=()=>a.createElement(l.Script,{src:"//js-na1.hs-scripts.com/22470940.js"})},1430:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return L}});var a=r(4506),l=r(6540),s=r(9569),o=r(7620),n=r(2532),i=r(3861),c=r(1805),m=r(9907),d=r(6347),h=r(8529),p=r(6756);var u=e=>{let{hoteles:t,perPage:r}=e;const{0:a,1:s}=(0,l.useState)(1),{0:o,1:n}=(0,l.useState)(t.slice(0,r*a));let i=null;return l.createElement("div",{className:"flex flex-col items-center"},l.createElement("div",{className:"hotels-list flex flex-wrap justify-around w-full"},o.map((e=>{const t=e.rating!==i;return i=e.rating,l.createElement(l.Fragment,{key:e.strapi_id},t&&l.createElement("h3",{className:"w-full p-4 text-lg font-semibold"},l.createElement("i",null,"Hoteles en ",e.location.hvi_desc_spanish)," ",e.rating," Estrellas"),l.createElement(h.A,{hotel:e}))}))),o.length<t.length&&l.createElement(p.A,{onClick:()=>{const e=a+1;n(t.slice(0,r*e)),s(e)},title:"Más Hoteles..."}))},g=r(1778),f=r(6168),v=r(5902),x=r(4510),E=r(7581),b=r(1735);var $=e=>{let{hoteles:t,title:r}=e;return l.createElement(w,null,l.createElement("h5",null,r),l.createElement("ul",null,t.map((e=>l.createElement("li",{key:e.strapi_id},l.createElement("a",{href:`//jet.turista.com.mx${e.link}`,target:"_blank",rel:"noreferrer",title:e.nombre},l.createElement("span",{className:"flex items-center"},l.createElement(b.XWt,null)," ",e.nombre.substring(0,40)),l.createElement("div",{className:"items"},e.stars>0&&l.createElement("span",{className:"stars"},e.rating,"â"),l.createElement("span",{className:"precio"},e.lowestrate?new Intl.NumberFormat("es-MX",{style:"currency",currency:"MXN"}).format(e.lowestrate):""))))))))};const w=E.default.div.withConfig({displayName:"lista-hoteles-ul__Wrapper",componentId:"sc-oecyif-0"})(["h5{color:var(--clr-grey-1);}ul{margin-bottom:1rem;}li{height:22px;line-height:22px;padding-bottom:2px;font-size:13px;border-bottom:1px dotted var(--clr-grey-9);a{color:#979696;display:block;height:22px;padding:0 0 0 10px;display:flex;justify-content:space-between;:hover{color:var(--clr-white);background:",";}}}.precio{text-align:right;color:#4caf50;font-size:0.9rem;font-weight:500;margin-left:5px;}.stars{color:#f9c40a;margin-left:5px;}.rating-number{margin-left:5px;color:#fff;background:#a2b86b;padding:0 3px;border-radius:2px;font-size:12px;font-weight:700;}"],(e=>e.theme.colors.primary1));var y=r(4941);var N=e=>{let{data:t}=e;const{location:r}=t,a=r.hvi_desc_spanish;return l.createElement(x.A,{title:`Top Hoteles ${a}`},l.createElement(k,null,l.createElement($,{title:`Los Hoteles más Económicos de ${a}`,hoteles:t.topecono.nodes}),l.createElement($,{title:`Los Hoteles más Grandes de ${a}`,hoteles:t.topgrandes.nodes})))};const k=E.default.div.withConfig({displayName:"block-tophotels__Wrapper",componentId:"sc-p1vbjb-0"})(["display:flex;flex-wrap:wrap;flex-direction:column;@media","{flex-direction:row;}@media","{flex-direction:column;}"],y.A.lg,y.A.laptopL);var _=r(4794),A=r(6387);var H=e=>{let{estrellas:t,vista:r}=e;return console.log("estrellas",t),console.log("vista",r),l.createElement(x.A,{title:"Hoteles por CategorÃa"},l.createElement(C,null,t.map((e=>l.createElement("li",{key:e},l.createElement(_.Link,{to:`/${(0,A.Te)(r,"spanish",e)}`,activeClassName:"active",className:"stars",title:`Hoteles ${e} estrellas`},e," estrellas"))))))};const C=E.default.ul.withConfig({displayName:"block-stars__Wrapper",componentId:"sc-ye2au7-0"})(["display:flex;justify-content:space-around;.stars{color:#f9c40a;font-size:1.2rem;}li{height:22px;line-height:22px;padding-bottom:2px;font-size:13px;border-bottom:1px dotted var(--clr-grey-9);a{color:#979696;:hover{color:var(--clr-white);background:",";}}}.active{color:var(--clr-white);background:",";}"],(e=>e.theme.colors.primary1),(e=>e.theme.colors.primary1));r(1770);var T=r(5667);var L=e=>{let{data:t,pageContext:r}=e;const{location:h,image:p}=t.location,x=t.location.hvi_desc_spanish,E=t.location.banner_spanish,b=t.site.siteMetadata,$=t.hoteles.nodes.length,w=(0,a.A)(t.hoteles.estrellas).reverse(),y=[];
1for(const a of r.destinos){const e={title:a.hvi_desc_spanish,slug:(0,T.vistaToUrlHtml)(a,"spanish")};y.push(e)}const k={title:`${b.estado.name}`,items:y,linkTo:""};let _=`GuÃa de Hoteles en ${x}`,A=`Encuentre su Hotel en ${x}, ${b.estado.name} y resérvelo en lÃnea con las diferentes opiones de esta guÃa de Hoteles en ${x}.`,C=0,L=0;for(const a of t.hoteles.nodes)a.lowestrate>0&&(C+=1,L+=a.lowestrate);const j=L/C;return l.createElement(s.A,{linkExterno:"/hoteles",seoTitle:`Hoteles en ${x} `,footerList1:g.A,footerList2:f.A},l.createElement(o.A,{title:_,description:A,image:p?(0,n.d)(p.localFile.childImageSharp):""}),l.createElement("section",{className:"section-center"},l.createElement("div",{className:"back-white mt-4"},l.createElement(i.A,{image:E,vistaDesc:x,estado:b.estado,subTitle:`${$} hoteles en `,title:`${x} Hoteles`}),l.createElement(v.A,{homeLink:"/hoteles",homeTitle:"Hoteles",tree:[],endTitle:x,singleUrl:!0}),l.createElement("div",{className:"padding-1"},l.createElement("h2",null,"Hoteles en ",x),l.createElement("p",null,"Una noche de hospedaje en ",x," cuesta en promedio"," ",l.createElement("span",{className:"green-text"},new Intl.NumberFormat("es-MX",{style:"currency",currency:"MXN"}).format(j))," ","pesos.")),l.createElement(c.A,{vista:t.location}),l.createElement("div",{className:"back-white"},l.createElement(u,{hoteles:t.hoteles.nodes,perPage:r.perPage})),l.createElement(m.A,{location:x})),l.createElement("div",null,$>r.perPage&&l.createElement(l.Fragment,null,l.createElement(N,{data:t,location:h}),l.createElement(H,{estrellas:w,vista:t.location})),l.createElement(d.A,{title:_,description:A,image:p||"",showHotelsBox:!0,listItems1:k}))))}},5667:function(e){const t=function(e,t){if(void 0===t&&(t="-"),!e)return"";e=e.trim().toLowerCase();const r={"á":"a","à ":"a","ä":"a","â":"a","é":"e","è":"e","ë":"e","ê":"e","Ã":"i","ì":"i","ï":"i","î":"i","ó":"o","ò":"o","ö":"o","ô":"o","ú":"u","ù":"u","ü":"u","û":"u","ñ":"n","ç":"c","@":"at","&":"and"};return e=(e=e.replace(/[áà äâéèëêÃìïîóòöôúùüûñç@&]/g,(e=>r[e]))).replace(/[\W_]+/g,t)},r=(e,r)=>{const a=e.alias||e[`hvi_desc_${r}`];return t(a,"+")},a=(e,t)=>e.length<=t?e:e.substring(0,t)+"...",l=(e,t,a)=>{const l=r(e,t).toLowerCase();let s;s="english"===t?`${l}-hotels-${e.hviid}`:`hoteles-${l}-${e.hviid}`;return`${s}-${a}.html`};e.exports={sanearString:t,vistaToUrl:r,getFirstChars:a,normalizeString:e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),stripTagsAndTruncate:(e,t)=>{const r=e.replace(/<\/?[^>]+(>|$)/g,"");return a(r,t)},hotelToUrlHtml:(e,r,a)=>{const l=t(r,"+").toLowerCase();return"english"===a?`${l}-hotel-${e}.html`:`hotel-${l}-${e}.html`},vistaToUrlHtml:function(e,t,a){void 0===a&&(a=null);const l=r(e,t).toLowerCase();let s,o;return s="english"===t?`${l}-hotels-${e.hviid}.html`:`hoteles-${l}-${e.hviid}.html`,o=a?`${a.canonical}/${s}`:s,o},vistaActionToUrlHtml:l,vistaPageToUrl:function(e,t,a,s,o){void 0===o&&(o=null);const n=r(e,t).toLowerCase();let i,c;i="english"===t?`${n}-hotels-${e.hviid}`:`hoteles-${n}-${e.hviid}`;let m=!1;return"index"===s&&(c=1===a?l(e,t,s):`${i}-p${a}.html`,m=!0),"estrellas"!==s&&"stars"!==s||(c=1===a?`${i}-${s}-${o}.html`:`${i}-${s}-${o}-p${a}.html`,m=!0),m||(c=1===a?l(e,t,s):`${i}-${s}-p${a}.html`),c},vistaStarsToUrl:(e,t,a)=>{const l=r(e,t).toLowerCase();let s,o;"english"===t?(s=`${l}-hotels-${e.hviid}`,o="-stars-"):(s=`hoteles-${l}-${e.hviid}`,o="-estrellas-");return`${s}${o}${a}.html`}}}}]); 2//# sourceMappingURL=component---src-templates-hoteles-locations-home-template-js-0ae78f3d0b8fabc70f60.js.map
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.