1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6676],{23083:(e,t,a)=>{"use strict";a.d(t,{AdBannerHtml:()=>r});var l=a(95155),i=a(12115);function r(e){let{html:t,className:a}=e,r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=r.current;if(e){for(let a of(e.innerHTML=t,Array.from(e.querySelectorAll("script")))){let e=document.createElement("script");for(let t of a.attributes)e.setAttribute(t.name,t.value);e.text=a.textContent||"",a.replaceWith(e)}try{let t=window;e.querySelector(".adsbygoogle")&&Array.isArray(t.adsbygoogle)&&t.adsbygoogle.push({})}catch(e){}}},[t]),(0,l.jsx)("div",{ref:r,className:a})}},24667:(e,t,a)=>{"use strict";a.d(t,{HomeMetalsWidget:()=>d});var l=a(95155),i=a(12115),r=a(6874),n=a.n(r),s=a(8564),o=a(71229);let c=["cobre","oro","plata"];function d(e){var t,a;let{initialData:r}=e,d=(0,i.useMemo)(()=>c.filter(e=>{var t;return null==(t=r[e])?void 0:t.quote}),[r]),[u,m]=(0,i.useState)(null!=(t=d[0])?t:"cobre"),[h,b]=(0,i.useState)(r);(0,i.useEffect)(()=>{!d.includes(u)&&d[0]&&m(d[0])},[u,d]),(0,i.useEffect)(()=>{let e=!1,t=async()=>{try{let t=await fetch("/api/metals/".concat(u),{cache:"no-store"});if(!t.ok||e)return;let a=await t.json();e||b(e=>({...e,[u]:a}))}catch(e){}};t();let a=window.setInterval(t,6e4);return()=>{e=!0,window.clearInterval(a)}},[u]);let p=h[u],f=null!=(a=null==p?void 0:p.chart)?a:[],x=(0,i.useMemo)(()=>(function(e,t,a){if(e.length<2)return"";let l=e.map(e=>e.price),i=Math.min(...l),r=Math.max(...l)-i||1;return e.map((t,a)=>{let l=a/(e.length-1)*320,n=70-(t.price-i)/r*68;return"".concat(0===a?"M":"L").concat(l.toFixed(2),",").concat(n.toFixed(2))}).join(" ")})(f,0,72),[f]);if(!(null==p?void 0:p.quote)||0===d.length)return null;let v=(0,s.AK)(u),y=p.quote,j=y.change>=0;return(0,l.jsxs)("section",{className:"home-metals","aria-label":"Cotizaciones de metales",children:[(0,l.jsx)("div",{className:"home-metals-tabs",role:"tablist","aria-label":"Seleccionar metal",children:d.map(e=>{let t=(0,s.AK)(e),a=e===u;return(0,l.jsx)("button",{type:"button",role:"tab",id:"home-metals-tab-".concat(e),"aria-selected":a,"aria-controls":"home-metals-panel",className:"home-metals-tab".concat(a?" home-metals-tab--active":""),onClick:()=>m(e),children:t.name},e)})}),(0,l.jsxs)("div",{id:"home-metals-panel",role:"tabpanel","aria-labelledby":"home-metals-tab-".concat(u),className:"home-metals-panel",children:[(0,l.jsxs)("div",{className:"home-metals-header",children:[(0,l.jsxs)("div",{className:"home-metals-id",children:[(0,l.jsx)("span",{className:"home-metals-symbol",style:{color:v.color},children:v.symbol}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"home-metals-name",children:v.name}),(0,l.jsx)("p",{className:"home-metals-unit",children:v.unit})]})]}),(0,l.jsxs)("div",{className:"home-metals-quote",children:[(0,l.jsxs)("p",{className:"home-metals-price",children:[(0,o.CD)(u,y.price)," ",(0,l.jsx)("span",{className:"home-metals-currency",children:y.currency})]}),(0,l.jsxs)("p",{className:"home-metals-change".concat(j?" metal-change--up":" metal-change--down"),children:[j?"+":"",(0,o.CD)(u,y.change)," (",(0,o.Bd)(y.changePercent),")"]})]})]}),(0,l.jsx)("div",{className:"home-metals-chart","aria-hidden":f.length<2,children:x?(0,l.jsx)("svg",{viewBox:"0 0 ".concat(320," ").concat(72),preserveAspectRatio:"none",role:"img","aria-label":"Gr\xe1fico intrad\xeda de ".concat(v.name,": ").concat((0,o.CD)(u,y.price)," ").concat(y.currency),children:(0,l.jsx)("path",{d:x,fill:"none",stroke:v.color,strokeWidth:"2",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,l.jsx)("p",{className:"home-metals-chart-empty",children:"Sin datos de gr\xe1fico"})}),(0,l.jsxs)(n(),{href:"/".concat(v.slug),className:"home-metals-link",children:["Ver precio del ",v.name.toLowerCase()," â"]})]})]})}},62328:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,6874,23)),Promise.resolve().then(a.t.bind(a,33063,23)),Promise.resolve().then(a.bind(a,23083)),Promise.resolve().then(a.bind(a,24667)),Promise.resolve().then(a.bind(a,68048)),Promise.resolve().then(a.t.bind(a,93158,23))},66766:(e,t,a)=>{"use strict";a.d(t,{default:()=>i.a});var l=a(71469),i=a.n(l)},68048:(e,t,a)=>{"use strict";a.d(t,{RediminYoutubeSection:()=>c});var l=a(95155),i=a(66766),r=a(12115);let n={url:"https://www.youtube.com/@revistadigitalminera",label:"Revista Digital Minera",handle:"@revistadigitalminera"};function s(){return(0,l.jsxs)("svg",{viewBox:"0 0 68 48",width:"68",height:"48",focusable:"false","aria-hidden":"true",children:[(0,l.jsx)("path",{d:"M66.52 7.74a8.28 8.28 0 0 0-5.82-5.85C55.79 1 34 1 34 1s-21.79 0-26.7 0.89A8.28 8.28 0 0 0 1.48 7.74 86.57 86.57 0 0 0 0.6 24a86.57 86.57 0 0 0 0.88 16.26 8.28 8.28 0 0 0 5.82 5.85C12.21 47 34 47 34 47s21.79 0 26.7-0.89a8.28 8.28 0 0 0 5.82-5.85A86.57 86.57 0 0 0 67.4 24a86.57 86.57 0 0 0-0.88-16.26z",fill:"#f00"}),(0,l.jsx)("path",{d:"M45 24 27 14v20",fill:"#fff"})]})}function o(){return(0,l.jsxs)("div",{className:"redimin-youtube",children:[(0,l.jsxs)("a",{href:n.url,className:"redimin-youtube-player",target:"_blank",rel:"noopener noreferrer","aria-label":"Ver canal de YouTube ".concat(n.label),children:[(0,l.jsx)("span",{className:"redimin-youtube-play",children:(0,l.jsx)(s,{})}),(0,l.jsx)("span",{className:"redimin-youtube-label",children:n.handle})]}),(0,l.jsx)("p",{className:"redimin-youtube-cta",children:(0,l.jsx)("a",{href:n.url,className:"redimin-youtube-button",target:"_blank",rel:"noopener noreferrer",children:"Ver canal en YouTube"})})]})}function c(e){var t,a,c;let{blockTitle:d,videos:u}=e,[m,h]=(0,r.useState)(null!=(a=null==(t=u[0])?void 0:t.videoId)?a:""),[b,p]=(0,r.useState)(!1);if(0===u.length)return(0,l.jsx)(o,{});let f=null!=(c=u.find(e=>e.videoId===m))?c:u[0],x=u.filter(e=>e.videoId!==f.videoId);return(0,l.jsxs)("div",{className:"redimin-youtube",children:[(0,l.jsxs)("div",{className:"redimin-youtube-layout",children:[(0,l.jsxs)("div",{className:"redimin-youtube-featured",children:[(0,l.jsx)("div",{className:"redimin-youtube-embed",children:b?(0,l.jsx)("iframe",{src:"https://www.youtube-nocookie.com/embed/".concat(f.videoId,"?rel=0"),title:f.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
1 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,loading:"lazy"},f.videoId):(0,l.jsxs)("button",{type:"button",className:"redimin-youtube-facade",onClick:()=>p(!0),"aria-label":"Reproducir: ".concat(f.title),children:[(0,l.jsx)(i.default,{src:f.thumbnailUrl,alt:"",width:480,height:270,sizes:"(max-width: 900px) 100vw, 640px",loading:"lazy",unoptimized:!0}),(0,l.jsx)("span",{className:"redimin-youtube-facade-play","aria-hidden":"true",children:(0,l.jsx)(s,{})})]})}),(0,l.jsx)("h3",{className:"redimin-youtube-featured-title",children:(0,l.jsx)("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",children:f.title})}),f.publishedAt&&(0,l.jsx)("p",{className:"redimin-youtube-featured-meta",children:f.publishedAt})]}),x.length>0&&(0,l.jsx)("ul",{className:"redimin-youtube-list","aria-label":"M\xe1s videos de ".concat(d),children:x.map(e=>(0,l.jsx)("li",{children:(0,l.jsxs)("button",{type:"button",className:["redimin-youtube-item",e.videoId===f.videoId&&"redimin-youtube-item--active"].filter(Boolean).join(" "),onClick:()=>{h(e.videoId),p(!0)},"aria-label":"Reproducir: ".concat(e.title),"aria-current":e.videoId===f.videoId?"true":void 0,children:[(0,l.jsxs)("span",{className:"redimin-youtube-thumb",children:[(0,l.jsx)(i.default,{src:e.thumbnailUrl,alt:"",width:168,height:94,sizes:"120px",loading:"lazy",unoptimized:!0}),(0,l.jsx)("span",{className:"redimin-youtube-thumb-play","aria-hidden":"true",children:(0,l.jsx)(s,{})})]}),(0,l.jsxs)("span",{className:"redimin-youtube-item-text",children:[(0,l.jsx)("span",{className:"redimin-youtube-item-title",children:e.title}),e.publishedAt&&(0,l.jsx)("span",{className:"redimin-youtube-item-meta",children:e.publishedAt})]})]})},e.videoId))})]}),(0,l.jsx)("p",{className:"redimin-youtube-cta",children:(0,l.jsx)("a",{href:n.url,className:"redimin-youtube-button",target:"_blank",rel:"noopener noreferrer",children:"Ver canal en YouTube"})})]})}},71469:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{default:function(){return o},getImageProps:function(){return s}});let l=a(88229),i=a(38883),r=a(33063),n=l._(a(51193));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:n.default,imgConf:{deviceSizes:[640,828,1080,1200,1920],imageSizes:[256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let o=r.Image},93158:()=>{}},e=>{e.O(0,[3759,6874,3063,9641,2999,1229,8441,5964,7358],()=>e(e.s=62328)),_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.