1"use strict";(self.webpackChunkturista_provincias=self.webpackChunkturista_provincias||[]).push([[855],{6882:function(e,t,a){a.d(t,{A:function(){return v}});var r=a(6540),n=a(4794),l=a(2532),i=a(8027);var o=e=>{let{noticia:t}=e;const{allFile:a}=(0,n.useStaticQuery)("1914601541"),o=t.hometext,c=`/article${t.sid}.html`,s=t.topicimage?(e=>{const t=a.nodes.find((t=>t.relativePath===e));return t?(0,l.c)(t.childImageSharp.gatsbyImageData):null})(t.topicimage):null,m=t.topictext?`/noticias/tema/${encodeURIComponent(t.topictext.replace(/ /g,"-"))}.html`:"";return r.createElement("article",{className:"transition rounded-lg bg-white hover:bg-gray-50 shadow-md hover:shadow-xl relative mb-5 p-4 overflow-hidden"},r.createElement("div",{className:"flex flex-col md:flex-row gap-4 items-start"},s&&r.createElement("div",{className:"w-full md:w-1/4 mb-4 md:mb-0"},r.createElement(n.Link,{to:m},r.createElement(l.G,{image:s,className:"rounded-lg w-full h-32 object-cover",alt:t.topictext||"",title:t.topictext||""}))),r.createElement("div",{className:"w-full md:w-3/4"},r.createElement(n.Link,{to:c,className:"block"},r.createElement("h3",{className:"text-2xl font-bold text-gray-800 mb-2"},t.title),r.createElement("div",{className:"text-gray-600 mb-4",dangerouslySetInnerHTML:{__html:o}})))),r.createElement("footer",{className:"mt-4 pt-4 border-t flex items-center justify-between text-gray-500"},r.createElement("span",{className:"flex items-center gap-2"},r.createElement(i.obD,{className:"text-gray-500"}),t.date),t.cattitle&&r.createElement(n.Link,{to:`/noticias/${encodeURIComponent(t.cattitle.replace(/ /g,"_"))}.html`},r.createElement("span",{className:"bg-gray-100 text-gray-800 px-2 py-1 rounded-full text-sm font-semibold flex items-center"},r.createElement(i.M1W,{className:"mr-1"})," ",t.cattitle))))},c=a(7581),s=a(4755);var m=e=>{let{url:t,description:a}=e;return r.createElement(d,{to:t},a)};const d=(0,c.default)(s.Link).withConfig({displayName:"ButtonPages__Wrapper",componentId:"sc-1vvenpm-0"})(["border:1px solid ",";border-radius:50px;box-shadow:var(--light-shadow);padding:1rem;background:var(--clr-white);margin-right:1.5rem;transition:var(--transition);:hover{background:",";box-shadow:var(--dark-shadow);}"],(e=>e.theme.colors.primary5),(e=>e.theme.colors.primary5));var p=e=>{let t,a,{pageInfo:n,url:l}=e;return n?(n.hasNextPage&&(t=`${l}/${n.currentPage+1}.html`),n.hasPreviousPage&&(a=`${l}/${n.currentPage-1}.html`,2===n.currentPage&&(a=`${l}`,"/noticias/ultimas"===l&&(a="/noticias"))),r.createElement(u,null,a&&r.createElement(m,{url:a,description:"« ArtÃculos mas recientes"}),t&&r.createElement(m,{url:t,description:"ArtÃculos mas antigüos »"}))):""};const u=c.default.div.withConfig({displayName:"Pagination__Wrapper",componentId:"sc-1mu65l2-0"})(["display:flex;justify-content:flex-end;"]);var g=a(3104),h=a(6756);var v=e=>{let{noticias:t,isHome:a,pageInfo:n,url:l,perPage:i}=e;const{t:c}=(0,s.useTranslation)(),{0:m,1:d}=(0,r.useState)(1),{0:u,1:v}=(0,r.useState)(t.slice(0,i*m));return r.createElement("div",null,u.map(((e,t)=>r.createElement(r.Fragment,null,t%5==0&&t>0&&r.createElement(g.A,{slot:"9869048679",format:"fluid",layoutKey:"-ch-4k+ey-rv+je"}),r.createElement(o,{key:e.id,noticia:e})))),u.length<t.length&&r.createElement(h.A,{onClick:()=>{const e=m+1;v(t.slice(0,i*e)),d(e)},title:`${c("Más Noticias")} ...`}),!a&&r.createElement(p,{pageInfo:n,url:l}))}},6756:function(e,t,a){var r=a(6540),n=a(7581),l=a(4941);t.A=e=>{let{title:t,onClick:a}=e;return r.createElement(i,{onClick:a},t)};const i=n.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),l.A.lg,(e=>e.theme.colors.primary5),(e=>e.theme.colors.primary10))},628:function(e,t,a){a.d(t,{A:function(){return d}});var r=a(6540),n=a(7581),l=a(3291),i=a(3679),o=a(4755);var c=()=>{const{t:e}=(0,o.useTranslation)();return r.createElement(s,null,r.createElement("ul",{className:"flex gap-px flex-wrap md:flex-col"},l.A.map((t=>r.createElement("li",{key:t.id,className:"w-fit text-xs sm:text-sm md:w-auto md:text-lg"},r.createElement(o.Link,{to:t.url,activeClassName:"active",className:"flex gap-3 items-center"},t.icon," ",e(t.text)))))))};const s=n.default.div.withConfig({displayName:"SideNavSec__Wrapper",componentId:"sc-1zy9lm-0"})(["li{background:url(",") repeat-x left top;background-color:",";max-height:51px;text-transform:uppercase;display:block;a{color:var(--clr-white);padding:1rem;:hover{background-color:var(--clr-white);color:",";}}}.active{background-color:var(--clr-white);color:",";}"],i.A,(e=>e.theme.colors.primary1),(e=>e.theme.colors.primary1),(e=>e.theme.colors.primary1));var m=a(4941);var d=e=>{let{title:t,children:a,sideNavSec:n}=e;return r.createElement(p,null,r.createElement("h2",{className:"nav_main--h2"},t),r.createElement("div",{className:"economy_bg"},n&&r.createElement(c,null),r.createElement("div",{className:"nav_link_details"},a)))};const p=n.default.div.withConfig({displayName:"ContainerGrecas__Wrapper",componentId:"sc-n0zic9-0"})(["background:",";padding-bottom:10px;margin-bottom:12px;border-radius:5px;position:relative;.nav_main--h2{background:url(",") repeat-x left top;margin:0px 0 0.65rem 0;font-size:2.2rem;font-weight:normal;line-height:62px;color:var(--clr-white);padding:0 0 0 18px;text-transform:uppercase;border-radius:5px 5px 0px 0px;position:relative;}.economy_bg{background:",";margin:0 10px 0 10px;padding:5px;display:flex;flex-direction:column;@media ","{flex-direction:row;}}.nav_link_details{background:var(--clr-white);padding:1rem;width:100%;overflow:hidden;}"],(e=>e.theme.colors.primary1),(e=>e.theme.images.headingBg),(e=>e.theme.colors.primary10),m.A.lg)},3407:function(e,t,a){a.r(t);var r=a(6540),n=a(9569),l=a(6882),i=a(628),o=a(6081),c=a(4755),s=a(7620),m=a(4510),d=a(3104);const p=r.lazy((()=>a.e(907).then(a.bind(a,4907)))),u=r.lazy((()=>a.e(884).then(a.bind(a,3884))));t.default=e=>{let{data:t,pageContext:a}=e;const g=t.site.siteMetadata,{t:h}=(0,c.useTranslation)();let v=`El turista ${h(g.estado.name)} cuenta con las herramientas necesarias para que el turista pueda planear su viaje por ${h(g.estado.name)}; hoteles, noticias, información y mucho más...`;return"en"===a.language&&(v=`The turista ${h(g.estado.name)} has all the necesary tools for the tourist can plain his travel to ${h(g.estado.name)}, hotels, news, information and much more...`),r.createElement(n.A,{heroImg:t.image.childImageSharp,main:h(t.site.siteMetadata.estado.name),sub:h(t.site.siteMetadata.estado.slogan)},r.createElement(s.A,{title:h("inicio"),description:v}),r.createElement(i.A,{title:h(g.title),sideNavSec:!0},r.createElement(r.Suspense,{fallback:r.createElement("div",null,"Cargando...")},r.createElement(u,{metadata:t.site.siteMetadata,pageContext:a,seoDescription:v}),r.createElement(p,{metadata:g,locations:t.locations.nodes}))),r.createElement("div",{className:"md:flex gap-4"},r.createElement("div",{className:"cont-area",style:{background:"var(--clr-white)"}},r.createElement("h3",{className:"text-red-600"},r.createElement(c.Trans,null,"Ãltimas Noticias de turismo en")," ",g.estado.name),r.createElement(l.A,{noticias:t.allNoticia.nodes,perPage:3,title:"Ãltimas Noticias",isHome:"si"})),r.createElement("div",null,r.createElement(m.A,{title:h("Compartir")},r.createElement(o.A,{title:h("¿Ya conoces el Turista?")})),r.createElement(r.Suspense,{fallback:r.createElement("div",null,"Cargando...")},r.createElement(d.A,{style:{display:"inline-block",width:"300px",height:"600px"},className:"mx-auto hidden md:inline-block"})),r.createElement(m.A,{title:`${h("Acerca de")} Turista ${g.estado.name}`},v))))}}}]); 2//# sourceMappingURL=component---src-templates-index-template-js-f4ffc4a52055349ebcdf.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.