1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5557],{5630:function(e,t,a){"use strict";var l,n=a(7294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}t.Z=function(e){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 8 14"},e),l||(l=n.createElement("path",{fill:"#949494",d:"M0 7.008c0-.43.15-.838.424-1.146L5.214.493A1.42 1.42 0 0 1 6.274 0c.404-.001.782.173 1.065.49l.231.258c.28.312.432.725.429 1.164s-.16.849-.445 1.156L3.913 7.014l3.61 3.924c.285.307.444.72.446 1.162s-.153.857-.437 1.17l-.227.25c-.283.311-.66.482-1.06.48a1.42 1.42 0 0 1-1.057-.491l-1.571-1.75a.59.59 0 0 1 .004-.773.465.465 0 0 1 .702.004l1.572 1.75c.095.107.22.165.354.166.134 0 .26-.056.354-.16l.227-.25a.57.57 0 0 0 .145-.39.57.57 0 0 0-.149-.388l-3.97-4.315a.58.58 0 0 1-.148-.39c0-.147.054-.287.148-.39L6.858 2.29a.57.57 0 0 0 .148-.386.57.57 0 0 0-.142-.388l-.231-.258a.47.47 0 0 0-.355-.163.47.47 0 0 0-.355.165l-4.79 5.368a.59.59 0 0 0 .003.764l1.45 1.632a.59.59 0 0 1-.007.773.465.465 0 0 1-.703-.008l-1.45-1.63A1.72 1.72 0 0 1 0 7.01z"})))}},9329:function(e,t,a){"use strict";var l,n=a(7294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}t.Z=function(e){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 8 14"},e),l||(l=n.createElement("path",{fill:"#949494",d:"M8 7.008c0-.43-.15-.838-.424-1.146L2.786.493A1.42 1.42 0 0 0 1.726 0 1.42 1.42 0 0 0 .66.49L.429.747A1.72 1.72 0 0 0 0 1.912c.003.438.16.849.445 1.156l3.642 3.946-3.61 3.924c-.285.307-.444.72-.446 1.162s.153.857.437 1.17l.227.25c.283.311.66.482 1.06.48.401-.002.777-.177 1.057-.491l1.571-1.75a.59.59 0 0 0-.004-.773.465.465 0 0 0-.702.004l-1.572 1.75a.47.47 0 0 1-.354.166.47.47 0 0 1-.354-.16l-.227-.25a.57.57 0 0 1-.145-.39c0-.147.053-.285.149-.388l3.97-4.315a.58.58 0 0 0 .148-.39.58.58 0 0 0-.148-.39L1.
1142 2.29a.57.57 0 0 1-.148-.386.57.57 0 0 1 .142-.388l.231-.258a.47.47 0 0 1 .355-.163c.135 0 .26.059.355.165l4.79 5.368a.59.59 0 0 1-.003.764l-1.45 1.632a.59.59 0 0 0 .007.773c.196.212.511.208.703-.008l1.45-1.63A1.72 1.72 0 0 0 8 7.01z"})))}},8579:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/impreso",function(){return a(9808)}])},3932:function(e,t,a){"use strict";a.d(t,{IJ:function(){return i},Ui:function(){return s},y5:function(){return r},zT:function(){return o}});var l=a(9186);let n=e=>{let t=new URLSearchParams;return e.forEach(e=>t.append("_fields[]",e)),t.toString()};l.cE;let s=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=[],r=0,o=new URLSearchParams(e),i=n(t),c="".concat(o,"&").concat(i),d=await fetch("".concat(l.jg,"/api/proxy-wp?url=").concat("/wp/v2/posts?".concat(c).replaceAll("&","\xbf")),{method:"GET",...a&&{next:{revalidate:a}},headers:{"Content-Type":"application/json"}});if(!d.ok)return{posts:s,count:r};let u=await d.json();return{posts:s=u.jsonBody,count:r=u.count}},r=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=[],r=0,o=new URLSearchParams(e),i=n(t),c="".concat(o,"&").concat(i),d=await fetch("".concat(l.jg,"/api/proxy-wp-ad?url=").concat("/wp/v2/posts?".concat(c).replaceAll("&","\xbf")),{method:"GET",...a&&{next:{revalidate:a}},headers:{"Content-Type":"application/json"}});if(!d.ok)return{posts:s,count:r};let u=await d.json();return{posts:s=u.jsonBody,count:r=u.count}},o=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=[],r=0,o=new URLSearchParams(e),i=n(t),c="".concat(o,"&").concat(i),d=await fetch("".concat(l.jg,"/api/proxy-wp-vsd?url=").concat("/wp/v2/posts?".concat(c).replaceAll("&","\xbf")),{method:"GET",...a&&{next:{revalidate:a}},headers:{"Content-Type":"application/json"}});if(!d.ok)return{posts:s,count:r};let u=await d.json();return{posts:s=u.jsonBody,count:r=u.count}},i=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,t={last:"",elder:""},a=await fetch("".concat(l.jg,"/api/proxy-wp?url=").concat("/react-app/v1/magazine-dates".replaceAll("&","\xbf")),{method:"GET",...e&&{next:{revalidate:e}},headers:{"Content-Type":"application/json"}});return a.ok?{dates:t=(await a.json()).jsonBody}:{dates:t}}},1027:function(e,t,a){"use strict";a.d(t,{MG:function(){return n},lt:function(){return l}});let l=["title","excerpt","date","full_featured_image","pdf_thumbnail","slug"],n=["id","title","excerpt","content","date","slug","full_categories","full_tags","full_authors","full_featured_image","pdf_thumbnail","url_video","pdf_shortcode_id"]},9808:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return R}});var l=a(5893),n=a(4978),s=a(3340),r=a(9243),o=a(3932),i=a(1163),c=a(7294),d=a(7722),u=a(5675),p=a.n(u),h=a(1664),x=a.n(h),v=a(178),f=a(6158),g=e=>{var t,a,n;let{mag:s}=e;return s?(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(x(),{href:"/impreso/"+(null==s?void 0:s.slug),children:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)("div",{className:" relative w-full border border-[#aaaaaa] bg-white",style:{aspectRatio:.77},children:(0,l.jsx)(p(),{src:(null==s?void 0:null===(t=s.pdf_thumbnail)||void 0===t?void 0:t.sourceUrl)||"/grupo.jpg",fill:!0,alt:(0,d.Jx)((null==s?void 0:null===(a=s.title)||void 0===a?void 0:a.rendered)||"",{level:d.Sp.HTML}),style:{aspectRatio:.76,objectFit:"contain"}})}),(0,l.jsx)("div",{className:"font-RobotoBold text-[14px] leading-[18px] font-[600] first-letter:uppercase",children:(0,d.Jx)((null==s?void 0:null===(n=s.title)||void 0===n?void 0:n.rendered)||"",{level:d.Sp.HTML})}),(0,l.jsx)("div",{className:"font-Roboto text-[#bf930d] uppercase font-[300]",children:(0,f.WU)(null==s?void 0:s.date,"MMMM dd',' yyyy",{locale:v.es})})]})})}):null},m=a(1027),j=a(1358),y=a.n(j),b=a(5630),w=a(9329),N=e=>{let{pageCount:t,pageRangeDisplayed:a=1,onPageChange:n,initialPage:s=1}=e,r=()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[o,d]=(0,c.useState)(s),u=(0,i.useRouter)();return(0,c.useEffect)(()=>{d(s)},[s]),(0,l.jsx)(y(),{breakLabel:"...",initialPage:s,nextLabel:(0,l.jsx)(l.Fragment,{children:!(o>=t-1)&&(0,l.jsx)("div",{className:"h-[30px] bg-[#EEEEEE] h-[20px] w-[24px] rounded-[10px] flex justify-center items-center ml-2 sm:ml-[20px]",style:{display:s!==t-1?"flex":"none"}
1,children:(0,l.jsx)(w.Z,{className:"h-[15px] w-[12px] text-black"})})}),onPageChange:e=>{let t=u.asPath.split("?")[0],a=u.query.tag,l=u.query.date;e.selected+1>1?a?u.push({pathname:t,query:{p:(e.selected+1).toString(),tag:a,date:l}},void 0,{shallow:!0}):l?u.push({pathname:t,query:{p:(e.selected+1).toString(),tag:a,date:l}},void 0,{shallow:!0}):u.push({pathname:t,query:{p:(e.selected+1).toString()}},void 0,{shallow:!0}):a?u.push({pathname:t,query:{tag:a,date:l}},void 0,{shallow:!0}):l?u.push({pathname:t,query:{tag:a,date:l}},void 0,{shallow:!0}):u.push({pathname:t,query:{}},void 0,{shallow:!0}),n&&r()},pageRangeDisplayed:a,marginPagesDisplayed:1,pageCount:t,className:"inline-flex text-[14px] sm:text-[16px] font-Roboto",pageClassName:"",pageLinkClassName:"text-[#888888] text-[14px] h-[30px] w-[30px] rounded-[5px] flex justify-center items-center mx-1",breakClassName:"text-[#888888] h-[30px] w-[30px] bg-white rounded-[5px] flex justify-center items-center mx-1",activeClassName:" bg-[#EEEEEE] text-[14px] border-none border rounded-[5px] text-[#888888]",previousLabel:(0,l.jsx)(l.Fragment,{children:0!==o&&(0,l.jsx)("div",{className:"h-[30px] bg-[#EEEEEE] h-[20px] w-[24px] rounded-[10px] justify-center items-center mr-2",style:{display:s?"flex":"none"},children:(0,l.jsx)(b.Z,{className:"h-[15px] w-[12px] text-black "})})})})},_=a(9332),E=e=>{let{options:t,selected:a,defaultLabel:n="Seleccione",query:s,preQuery:r,preQueryValue:o}=e,i=null==t?void 0:t.concat({value:"",label:n}),c=(0,_.useRouter)();return(0,l.jsxs)("div",{className:"relative inline-block",children:[(0,l.jsx)("select",{id:"dynamicSelect",value:a,style:{borderRadius:"20px"},className:"bg-transparent placeholder:text-slate-400 text-slate-700 text-sm border border-slate-200 pl-3 pr-8 py-2 transition duration-300 ease focus:outline-none focus:border-slate-400 hover:border-slate-400 shadow-sm focus:shadow-md appearance-none cursor-pointer min-w-[50px]",onChange:e=>{let t=new URLSearchParams({[s]:e.target.value,[r]:o});c.push("?".concat(t,"#paginated-magazine"))},children:null==i?void 0:i.map((e,t)=>(0,l.jsx)("option",{className:"cursor-pointer",value:e.value,children:e.label},"opcion-in-selector"+t))}),(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.2",stroke:"currentColor",className:"h-5 w-5 ml-1 absolute top-2.5 right-2.5 text-slate-700 pointer-events-none",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})})]})},S=a(8377);let L=(e,t)=>{let a=[],l=new Date(e);l.setDate(1),l.setHours(0,0,0,0);let n=(0,S.z)(l,0),s=new Date(t);s.setDate(1),s.setHours(0,0,0,0);let r=(0,S.z)(s,0);for(;r<=n;)a.push({label:(0,f.WU)(r,"MMMM yyyy",{locale:v.es}),value:r.toISOString()}),r=(0,S.z)(r,1),console.log({dates:a});return a};var k=()=>{var e,t,a,n;let[s,r]=(0,c.useState)(void 0),[i,d]=(0,c.useState)(void 0);return(0,c.useEffect)(()=>{(0,o.y5)({categories:"147743",per_page:"1",offset:"0"},m.MG,300).then(e=>{var t;r(null==e?void 0:null===(t=e.posts)||void 0===t?void 0:t[0])}).catch(()=>console.log("hubo un error en traer la revistas ad")),(0,o.zT)({categories:"149553",per_page:"1",offset:"0"},m.MG,300).then(e=>{var t;d(null==e?void 0:null===(t=e.posts)||void 0===t?void 0:t[0])}).catch(()=>console.log("hubo un error en traer la revista vsd"))},[]),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 gap-6",children:[(0,l.jsxs)("div",{className:"grid sm:grid-cols-magazine-card gap-y-2 sm:gap-y-0 sm:gap-x-2 lg:gap-x-4 col-span-1 py-[10px] border-t border-b border-[#818181]",children:[(0,l.jsx)("div",{className:"col-span-1 flex justify-center",children:(0,l.jsx)("a",{href:(null==i?void 0:i.slug)?"https://vsd.mx/impreso/"+(null==i?void 0:i.slug):"/",target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)("div",{className:"relative w-[170px] h-[220px] border border-[#aaaaaa] bg-white",children:(0,l.jsx)(p(),{alt:"Portada 1 revista",fill:!0,src:(null==i?void 0:null===(e=i.pdf_thumbnail)||void 0===e?void 0:e.sourceUrl)||(null==i?void 0:null===(t=i.full_featured_image)||void 0===t?void 0:t.sourceUrl)||"/portada5.jpg",style:{objectFit:"contain"}})})})}),(0,l.jsx)("div",{className:"col-span-1",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"font-bold",children:"La revista VSD!"})," es un ejercicio editorial que acerca a los lectores y usuarios a lo mejor de la vida y estilo en Quer\xe9taro. Con 16 a\xf1os de presencia en la ciudad, la revista VSD! ahora integra una agenda para disfrutar eventos y lugares que hacen de nuestra ciudad un gran espacio de d\xeda
1y de noche. La edici\xf3n cuenta con una secci\xf3n de"," ",(0,l.jsx)("a",{href:"https://www.planetadelibros.com.mx/",target:"_blank",rel:"noopener noreferrer",className:"text-brand hover:underline",children:"Editorial Planeta"}),"."]})})]}),(0,l.jsxs)("div",{className:"grid sm:grid-cols-magazine-card-inv gap-y-2 sm:gap-y-0 sm:gap-x-2 lg:gap-x-4 col-span-1 py-[10px] border-t border-b border-[#818181]",children:[(0,l.jsx)("div",{className:"col-span-1",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"font-bold",children:"AD Comunicaciones"})," es l\xedder en impactos gracias a su creciente difusi\xf3n en plataformas digitales que muestra contenidos de alto nivel y relevancia que generan inter\xe9s entre los usuarios."]})}),(0,l.jsx)("div",{className:"col-span-1 flex justify-center",children:(0,l.jsx)("a",{href:(null==s?void 0:s.slug)?"https://aldialogo.mx/impreso/"+(null==s?void 0:s.slug):"https://issuu.com/periodicoamqueretaro/docs/perfiles_agosto_2024_-_jairo_morales",target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)("div",{className:"relative w-[170px] h-[220px] border border-[#aaaaaa] bg-white",children:(0,l.jsx)(p(),{alt:"Portada 1 revista",fill:!0,src:(null==s?void 0:null===(a=s.pdf_thumbnail)||void 0===a?void 0:a.sourceUrl)||(null==s?void 0:null===(n=s.full_featured_image)||void 0===n?void 0:n.sourceUrl)||"/portada5.jpg",style:{objectFit:"contain"}})})})})]})]})},q=()=>{let e=(0,i.useRouter)(),[t,a]=(0,c.useState)(!1),[n,s]=(0,c.useState)([]),[r,d]=(0,c.useState)([]),[u,p]=(0,c.useState)(0),h=parseInt(e.query.p||"1"),x=e.query.tag||"",v=e.query.date||"";return(0,c.useEffect)(()=>{a(!0),(0,o.Ui)({categories:"146166",per_page:"18",offset:((h-1)*18).toString(),...v?{after:v,before:(0,S.z)(new Date(v),1).toISOString()}:{}},m.lt,300).then(e=>{s(null==e?void 0:e.posts),p(null==e?void 0:e.count),a(!1)}).catch(()=>console.log("hubo un error en traer las revistas"))},[h,x,v]),(0,c.useEffect)(()=>{(0,o.IJ)().then(e=>{console.log({dates:e}),d(L(e.dates.last,e.dates.elder))}).catch(()=>console.log("hubo un error al obtener las fechas"))},[]),(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"md:flex md:justify-between items-center space-y-4",children:[(0,l.jsx)("div",{className:"font-RobotoBold text-[20px] leading-[20px] font-[600] text-center",children:"Versiones anteriores"}),(0,l.jsx)("div",{className:"flex items-center space-x-2 justify-center",children:(0,l.jsx)(E,{preQueryValue:x,selected:v,preQuery:"tag",query:"date",options:r,defaultLabel:"Desde el inicio de los tiempos"})})]}),(0,l.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-6 justify-center place-items-center items-center place-content-center",children:t?(0,l.jsx)("div",{className:"py-8 flex justify-center col-span-full",children:(0,l.jsxs)("div",{className:"loading-dots",children:[(0,l.jsx)("span",{children:"Cargando"}),(0,l.jsx)("span",{className:"dot",children:"."}),(0,l.jsx)("span",{className:"dot",children:"."}),(0,l.jsx)("span",{className:"dot",children:"."})]})}):(0,l.jsx)(l.Fragment,{children:(null==n?void 0:n.length)?n.map((e,t)=>(0,l.jsx)(g,{mag:e},"mag"+e.title.rendered+t)):(0,l.jsx)("div",{className:"col-span-full font-Roboto text-center py-8",children:"No existen revistas con ese criterio de busqueda"})})}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(N,{pageCount:Math.ceil(u/18),initialPage:h-1})}),(0,l.jsx)("div",{children:(0,l.jsx)(k,{})})]})},C=a(206),P=()=>(0,l.jsxs)("div",{className:"py-4 space-y-4",children:[(0,l.jsx)(r.default,{children:(0,l.jsx)(s.default,{text:["Versi\xf3n impresa"],slugs:["impreso"]})}),(0,l.jsx)(r.default,{children:(0,l.jsx)("div",{id:"paginated-magazine",className:"font-RobotoBold text-center font-bold text-[28px] leading-[32px]",children:"Edici\xf3n digital del peri\xf3dico Perfiles"})}),(0,l.jsx)(C.Z,{}),(0,l.jsx)("div",{children:(0,l.jsx)(r.default,{children:(0,l.jsx)(q,{})})})]}),R=()=>(0,l.jsx)(n.default,{children:(0,l.jsx)(P,{})})}},function(e){e.O(0,[1664,5675,7722,4066,3095,603,2888,9774,179],function(){return e(e.s=8579)}),_N_E=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.