PageSourceSearch

https://buenazo.pe/_next/static/chunks/666-b7baa556820c8cd2.js

js buenazo.pe collected 2026-10-02 20:42:24 UTC 17,772 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[666],{4508:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var a=n(5893),i=n(5152),l=n.n(i),r=l()((function(){return n.e(893).then(n.bind(n,3893))}),{loadableGenerated:{webpack:function(){return[3893]}}}),o=function(e){var t=null;if(e.data&&Object.keys(e.data)&&Object.keys(e.data).length>0){var n=e.data;if(n.content&&Object.keys(n.content)&&Object.keys(n.content).length>0){var i=n.content;t=i.includes('<p class="MsoNormal" style="text-align:justify"')?(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:i.replace(/(<p class="MsoNormal" style="text-align:justify">|<\/p>)/g,"").replace(/alt=".*?"/,"")}}):i.includes("jwplayer")?(0,a.jsx)(r,{content:i}):(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:i.replace(/(<p>|<\/p>)/g,"").replace(/alt=".*?"/,"")}})}}return t},s=n(7294),c=function(e){var t=null;if(e.data&&Object.keys(e.data)&&Object.keys(e.data).length>0){var n=e.data;if(n.content&&n.content.length>0){var a={dangerouslySetInnerHTML:{__html:n.content.replace(/(<table class="">|<\/table>)/g,"")}};t=s.createElement("table",a)}}return t},d=function(e){var t,n=null;if(e.data&&Object.keys(e.data)&&Object.keys(e.data).length>0){var a=e.data;if(a.custom&&Object.keys(a.custom)&&Object.keys(a.custom).length>0&&a.custom.level&&a.custom.level.length>0){var i=a.custom.level;t="h".concat(void 0===i?{}:i)}if(a.content&&a.content.length>0&&a.content.includes(t)){var l={dangerouslySetInnerHTML:{__html:a.content.replace(/(<\/?h)([0-6]>)/gi,"")}};n=s.createElement(t,l)}}return n},u=n(2469),m=function(e){var t,n=null,i=null;if(e.data&&Object.keys(e.data)&&Object.keys(e.data).length>0){var l=e.data;if(l.content&&l.content.length>0&&(t=l.content.match(/\<img.+src\=(?:\"|\')(.+?)(?:\"|\')(?:.+?)\>/)),l.custom&&l.custom.caption&&l.custom.caption.length>0&&(i=(0,a.jsx)("span",{style:{fontStyle:"italic",fontSize:"15px",fontFamily:"sans-serif",display:"block",marginBottom:"20px",textAlign:"center"},dangerouslySetInnerHTML:{__html:l.custom.caption}})),t&&t[1]&&t[1].length>0){var r,o=208,s=265,c=374,d=null===l||void 0===l?void 0:l.custom,m=d.width,p=d.height;parseInt(m)&&parseInt(p)&&(o=parseInt(335*parseInt(p)/parseInt(m)),s=parseInt(335*parseInt(p)/parseInt(m)),c=parseInt(640*parseInt(p)/parseInt(m))),r="".concat((0,u.Z)(t[1],640,c)," ",640,"w, ").concat((0,u.Z)(t[1],500,s)," ",335,"w, ").concat((0,u.Z)(t[1],360,o)," ").concat(o,"w"),n=t[1].includes("https://buenazo.cronosmedia.glr.pe")?(0,a.jsx)("div",{className:"content_img",children:(0,a.jsx)("img",{srcSet:r,sizes:"(max-width: 1000px) 97vw, 640px",width:640,height:c,src:(0,u.Z)(t[1],640,c),alt:e.data.alt||e.data.custom.caption||"buenazo.pe",title:e.data.alt||e.data.custom.caption||"buenazo.pe",loading:"lazy",decoding:"async"})}):(0,a.jsx)("img",{src:t[1],alt:e.data.alt||e.data.custom.caption||"buenazo.pe",title:e.data.alt||e.data.custom.caption||"buenazo.pe"})}return(0,a.jsxs)(a.Fragment,{children:[n,i]})}return null},p=function(e){var t=null;if(e.data&&Object.keys(e.data)&&Object.keys(e.data).length>0){var n=e.data;if(n.content&&n.content.length>0){var a={dangerouslySetInnerHTML:{__html:n.content.replace(/(<ul>|<\/ul>)/g,"")}};t=s.createElement("ul",a)}}return t},v=n(904),h=n(645),f=n.n(h),g=l()((function(){return n.e(208).then(n.bind(n,7208))}),{loadableGenerated:{webpack:function(){return[7208]}}}),b=l()((function(){return n.e(438).then(n.bind(n,9438))}),{loadableGenerated:{webpack:function(){return[9438]}}}),y=function(e){var t=null;if(e.data&&Object.keys(e.data)&&Object.keys(e.data).length>0){var n=e.data;if(n.content&&n.content.length>0){var i=n.content;if(i.includes("twitter-tweet")){var l=[];i.replace(/(https?:\/\/twitter\.com\/(?:#!\/)?(\w+)\/status(?:es)?\/(\d+))/g,(function(e,t,n,a){l.push(n,a)})),t=(0,a.jsx)(g,{tweetId:l[1],contentId:l[0]})}else if(i.includes("img")){var r=i.match(/\<img.+src\=(?:\"|\')(.+?)(?:\"|\')(?:.+?)\>/);r&&r.length&&r[1]&&r[1].length&&(t=s.createElement("img",{src:r[1],className:"image-html"}))}else if(i.includes("jwplayer"))t=(0,a.jsx)("div",{className:"embed-html-jwplayer",dangerouslySetInnerHTML:{__html:i}});else if(i.includes('class="instagram-media"')){var o=/(https?:\/\/(?:www\.)?instagram\.com\/p\/([^?#&]+)).*/g,c="",d="";i.includes("data-instgrm-permalink")?(i.replace(/data-instgrm-permalink=\"(.*?)\"/gi,(function(e,t){return d=t})),d.replace(o,(function(e,t,n){c=n.includes("/")?n.replace("/",""):n}))):i.replace(o,(function(e,t,n){c=n.includes("/")?n.replace("/",""):n})),t=(0,a.jsx)(b,{instPost:c,contentId:c})}if(i.includes("iframe")){if(i.includes("content.jwplatform.com")||i.includes("cdn.jwplayer.com"))return null;if(i.includes("https://flo.uri.sh/visualisation/")||i.includes("https://flo.uri.sh/story/"))t=(0,a.jsx)("div",{className:contentElement__flourish,dangerouslySetInnerHTML:{__html:i}});else{var u=(0,v.Sp)(i),m=u.src,p=u.width.includes("%")?640:u.width||640,h=u.height.includes("%")?480:u.height||480,y=h/p*100,w=h/p*200,j={paddingTop:(Math.round(y,-1)||"56")+"%",position:"relative",overflow:"hidden"}
1,_=function(){var e=(0,s.useState)({width:void 0,height:void 0}),t=e[0],n=e[1];return(0,s.useEffect)((function(){var e=function(){n({width:window.innerWidth,height:window.innerHeight})};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),t}().width;if(i.includes("https://www.facebook.com/")){var x='\n                    <iframe\n                        class="type-element-coreEmbed element_youtube" \n                        src="'.concat(m,'" \n                        width="100%"\n                        height="380" \n                        frameborder="0"\n                        fullscreen\n                        loading="lazy"\n                        allowfullscreen\n                        title="type-elment-html-embed-mdstrm-').concat(m,'"\n                    ></iframe>\n                ');t=(0,a.jsx)("div",{alt:"content-type-element-html html__mdstrm",children:(0,a.jsx)("div",{style:_<600?{paddingTop:(Math.round(w,-1)||"56")+"%",position:"relative",overflow:"hidden"}:j,className:"contentElement__html",dangerouslySetInnerHTML:{__html:x}})})}else if(m&&m){var k='\n                        <iframe\n                            class="type-element-coreEmbed element_youtube" \n                            src="'.concat(m,'" \n                            width="100%"\n                            height="380" \n                            frameborder="0"\n                            fullscreen\n                            loading="lazy"\n                            allowfullscreen\n                            title="type-elment-html-embed-mdstrm-').concat(m,'"\n                        ></iframe>\n                    ');t=(0,a.jsx)("div",{alt:"content-type-element-html html__mdstrm",children:(0,a.jsx)("div",{className:"contentElement__html",dangerouslySetInnerHTML:{__html:k}})})}else t=null}}else if(i.includes("mdstrm.com")){var I,E=(null===(I=i.split('<iframe src="')[1])||void 0===I?void 0:I.split('" ')[0])||"";t=(0,a.jsx)("iframe",{className:f()["content-iframe"],src:E||"",width:"100%",height:"250",scrolling:"no",frameBorder:"0",allow:"autoplay; fullscreen; encrypted-media",allowFullScreen:!0})}else t=null}}return t},w=n(9512),j=l()((function(){return n.e(438).then(n.bind(n,9438))}),{loadableGenerated:{webpack:function(){return[9438]}}}),_=l()((function(){return n.e(848).then(n.bind(n,6848))}),{loadableGenerated:{webpack:function(){return[6848]}}}),x=function(e){var t,n=null;if(e.data&&Object.keys(e.data)&&Object.keys(e.data).length>0){var i=e.data;if(i&&i.attributes&&Object.keys(i.attributes)&&Object.keys(i.attributes).length>0){var l=i.attributes;if("rich"===l.type&&l.url&&l.url.length>0&&"twitter"===l.providerNameSlug){var r=l.url.match(/^https?:\/\/twitter\.com\/(?:#!\/)?(\w+)\/status(es)?\/(\d+)$/);r&&r[3]&&r[1]&&(n=(0,a.jsx)(w.iD,{className:"embed_twitter",tweetId:r[3]}))}else if("rich"===l.type&&l.url&&l.url.length>0&&"instagram"===l.providerNameSlug){var o="";l.url.replace(/(https?:\/\/(?:www\.)?instagram\.com\/p\/([^?#&]+)).*/g,(function(e,t,n){o=n.includes("/")?n.replace("/",""):n})),n=(0,a.jsx)(j,{instPost:o,contentId:o})}else if("video"===l.type&&l.url&&l.url.length>0&&"youtube"===l.providerNameSlug){var c="";l.url.replace(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/gi,(function(e,t){return c=t})),n=s.createElement("iframe",{width:"470",height:"320",src:"https://www.youtube.com/embed/".concat(c),frameBorder:"0",allowFullScreen:"",className:"element_youtube"})}else n=("rich"===l.type||"video"===l.type)&&l.url&&l.url.length>0&&"facebook"===l.providerNameSlug?(0,a.jsx)(_,{url:l.url}):null;"photo"===l.type&&l.url&&l.url.length>0&&(t=l.url,n=s.createElement("img",{src:t}))}}return n},k=function(e){var t=null;if(e.data&&Object.keys(e.data)&&Object.keys(e.data).length>0){var n=e.data;if("core-embed/youtube"===n.type&&n.attributes&&Object.keys(n.attributes)&&Object.keys(n.attributes).length>0){var a=n.attributes;if(a.url&&a.url.length>0){var i=a.url,l="";i.replace(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/gi,(function(e,t){return l=t})).replace("https://www.",""),t=s.createElement("iframe",{width:"470",height:"320",src:"https://www.youtube.com/embed/".concat(l),frameBorder:"0",allowFullScreen:"",className:"element_youtube coreEmbed_youtube"})}}}return t},I=n(3213),E=function(e){var t=e.data,n=e.dataAds,i=e.lang;return(0,a.jsx)(I.Z,{lang:i,type:t.typeAds,data:n||{}})},L=n(4272),N=function(e){var t=null,n=null;(e.sectionName&&e.sectionName.length>0&&(n=e.sectionName),e.data&&Object.keys(e.data)&&Object.keys(e.data).length>0)&&(t=e.data.map((function(t,i){return"paragraph"!==t.type||t.content.includes('<div class="fb-post"')?t.type.includes("table")?(0,a.jsx)(c,{data:t},"table-".concat(i)):"heading"===t.type?(0,a.jsx)(d,{data:t},"heading-".concat(i)):"image"===t.type?(0,a.jsx)(m,{data:t,section:n},"image-".concat(i)):"script"===t.type&&"exco"===t.name?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:'(function(d,s,n){var js,fjs=d.getElementsByTagName(s)[0];js=d.createElement(s);js.className=n;js.src="//player.ex.co/player/9ded6689-d025-4817-87ab-ce61f526caa9";fjs.parentNode.insertBefore(js,fjs);}(document,"script","exco-player"));'}}),(0,a.jsx)("div",{id:"9ded6689-d025-4817-87ab-ce61f526caa9"})]}):"list"===t.type?(0,a.jsx)(p,{data:t},"list-".concat(i)):"html"===t.type?(0,a.jsx)(y,{data:t},"html-".concat(i)):"embed"===t.type?(0,a.jsx)(x,{data:t},"embed-".concat(i)):"socialPage"===t.type?(0,a.jsx)(L.Z,{},"social-".concat(i)):t.type.includes("core-embed")?(0,a.jsx)(k,{data:t},"".concat(t.type,"-").concat(i)):"ads"===t.type?(0,a.jsx)(E,{data:t,dataAds:e.dataAds},"".concat(t.type,"-").concat(i)):void 0:(0,a.jsx)(o,{data:t},"paragraph-".concat(i))})));return t}},4272:function(e,t,n){"use strict";var a=n(5893),i=n(9786),l=n.n(i);t.Z=function(){return(0,a.jsx)("a",{target:"_blank",href:"https://www.whatsapp.com/channel/0029VbBv7zY9sBIFYpvSVz0i",className:l()["social-channel"],
1children:"\xdanete a nuestro canal de Whatsapp"})}},3805:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var a=n(828),i=n(5893),l=n(7294),r=function(e,t){var n="";return"youtube"==t&&(n="https://www.youtube.com/embed/".concat(e,"/")),n},o=function(e,t){var n="";return"youtube"==t&&(n="https://i3.ytimg.com/vi/".concat(e,"/0.jpg")),n},s=function(e){if(e){var t;e.includes("youtu.be")||e.includes("youtube.com")?t="youtube":e.includes("mdstrm.com")&&(t="mediastream");var n=function(e,t){var n="";if("youtube"==t){if(e.includes("/shorts/"))return e.split("/shorts/")[1].split("/")[0].split("?")[0];if(e.includes("/embed/"))return e.split("/embed/")[1].split("/")[0].split("?")[0];e.includes("/watch?")&&e.split("watch?")[1].split("&").forEach((function(e){var t=e.split("=");"v"==t[0]&&(n=t[1])})),e.includes("https://youtu.be/")&&(n=e.split("youtu.be/")[1].split("/")[0].split("?")[0])}else if("mediastream"==t){var a;n=null===(a=e.split("mdstrm.com/embed/")[1])||void 0===a?void 0:a.split("?")[0]}return n}(e,t);return{id:n,thumbnailUrl:o(n,t),contentUrl:"",embedUrl:r(n,t)||e}}return null},c=n(1169),d=n(5710),u=function(e){var t=e.data,n=e.size,r=(0,l.useRef)(null);return(0,l.useEffect)((function(){if(r.current&&r.current.classList.contains("not-loaded")){var e,n=r.current,i=null===t||void 0===t||null===(e=t.data)||void 0===e?void 0:e.type_video;if(n.classList.remove("not-loaded"),n.classList.add("loading"),["youtube","mediastream"].includes(i)){var l,o,c;if(null===t||void 0===t||null===(l=t.data)||void 0===l?void 0:l.embed){var d,u=(null===t||void 0===t||null===(d=t.data)||void 0===d?void 0:d.embed).match(/src=["']([^"']+)["']/i),m=u?u[1]:null;m&&(c=m.replace(/^http:/i,"https:"))}else c=null===t||void 0===t?void 0:t.path;var p=c?null===(o=s(c))||void 0===o?void 0:o.embedUrl:null;if(p){var v,h={player:"6046a1b40dfc1c07c50cdd80"};if(p.includes("?")){var f=p.split("?")[1];f&&f.split("&").forEach((function(e){if(e){var t=(0,a.Z)(e.split("="),2),n=t[0],i=t[1];n&&(h[n]=i||"")}}))}var g=Object.keys(h).map((function(e){return e+"="+h[e]})).join("&");p.includes("player=")||(p=p.split("?")[0]+"?"+g);var b=document.createElement("iframe");b.allow="fullscreen",b.src=p,b.title=(null===t||void 0===t||null===(v=t.data)||void 0===v?void 0:v.title)||"Video de Buenazo",b.loading="lazy",n.prepend(b);var y=n.querySelector("[class*='imageInternalContainer']");y&&(y.style.display="none"),b.addEventListener("load",(function(){n.classList.remove("loading"),n.classList.add("loaded")}))}else{var w=document.createElement("div");w.innerHTML="Multimedia no v\xe1lido \ud83d\ude1e",n.appendChild(w),n.classList.remove("loading")}}else if("facebook"==i){var j=null===t||void 0===t?void 0:t.path;if(j){if(!document.getElementById("fb-root")){var _=document.createElement("div");_.id="fb-root",document.body.prepend(_)}if(document.getElementById("facebook-jssdk"))n.classList.remove("loading"),window.FB&&window.FB.XFBML.parse();else{var x=document.createElement("script");x.src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2",x.id="facebook-jssdk",x.async=!0,x.defer=!0,x.addEventListener("load",(function(){n.classList.remove("loading"),window.FB&&window.FB.XFBML.parse()})),x.crossorigin="anonymous",document.body.prepend(x)}var k=document.createElement("div");k.id="video-player",k.className="fb-video",k.dataset.href=j,k.dataset.width="1000",k.dataset.height="560",k.dataset.allowfullscreen="true",Array.from(n.children).forEach((function(e){e.style.display="none"})),n.appendChild(k)}else n.classList.remove("loading")}else n.classList.remove("loading")}}),[r]),(0,i.jsx)("div",{ref:r,className:"".concat(d.videoInternalContainer," not-loaded"),children:(0,i.jsx)(c.x,{showCredits:!0,data:t,resize:n})})}},1169:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var a=n(5893),i=n(9926),l=n(5835),r=new i.Z,o=function(e){var t,n,i,o,s,c,d,u,m,p,v,h,f,g,b=e.data,y=e.resize,w=e.showCredits,j="image"==(null===b||void 0===b?void 0:b.type)?null===b||void 0===b?void 0:b.path:null===b||void 0===b||null===(t=b.data)||void 0===t?void 0:t.image_path,_=null===b||void 0===b||null===(n=b.data)||void 0===n?void 0:n.title,x=(null===b||void 0===b||null===(i=b.data)||void 0===i?void 0:i.source)||_,k=null===b||void 0===b||null===(o=b.data)||void 0===o?void 0:o.title;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:l.imageInternalContainer,children:(0,a.jsxs)("picture",{children:[(0,a.jsx)("source",{media:"(min-width:768px)",srcSet:r.resizeWapa(j,null===y||void 0===y||null===(s=y.desktop)||void 0===s?void 0:s.width,null===y||void 0===y||null===(c=y.desktop)||void 0===c?void 0:c.height)}),(0,a.jsx)("source",{media:"(max-width:767px)",srcSet:r.resizeWapa(j,null===y||void 0===y||null===(d=y.tablet)||void 0===d?void 0:d.width,null===y||void 0===y||null===(u=y.tablet)||void 0===u?void 0:u.height)}),(0,a.jsx)("source",{media:"(max-width:360px)",srcSet:r.resizeWapa(j,null===y||void 0===y||null===(m=y.mobile)||void 0===m?void 0:m.width,null===y||void 0===y||null===(p=y.mobile)||void 0===p?void 0:p.height)}),(0,a.jsx)("img",{fetchPriority:"high",width:null===y||void 0===y||null===(v=y.desktop)||void 0===v?void 0:v.width,height:null===y||void 0===y||null===(h=y.desktop)||void 0===h?void 0:h.height,src:r.resizeWapa(j,null===y||void 0===y||null===(f=y.desktop)||void 0===f?void 0:f.width,null===y||void 0===y||null===(g=y.desktop)||void 0===g?void 0:g.height),alt:k,title:_})]})}),w&&(0,a.jsx)("div",{className:l.imageInternalLegend,children:(0,a.jsx)("span",{children:x})})]})}},9926:function(e,t,n){"use strict";var a=n(3454);function i(){}i.prototype.resizeWapa=function(e,t,n,i){var l=null;return e&&e.includes("https://buenazo.cronosmedia.glr.pe")?(l="".concat("https://imgmedia.buenazo.pe","/").concat(t,"x").concat(n,"/buenazo").concat(e.replace("https://buenazo.cronosmedia.glr.pe","").replace(".jpg",".webp")),l=i?l.replace(".webp",".jpg"):l.replace(".jpg",".webp")):l=e||a.env.IMG_150x150,l},t.Z=i},645:function(e){e.exports={"content-iframe":"html_content-iframe__GWA91"}},9786:function(e){e.exports={"social-channel":"social_social-channel__1CF_p"}},5710:function(e){e.exports={videoInternalContainer:"VideoComponent_videoInternalContainer__71rGZ","screen-spinner-animation":"VideoComponent_screen-spinner-animation__hR3Ni",mainContent__video:"VideoComponent_mainContent__video__61T_V","video-player":"VideoComponent_video-player__VUI58","not-playing":"VideoComponent_not-playing__QkGf6",loading:"VideoComponent_loading__OfiW2"}},5835:function(e){e.exports={imageInternalContainer:"ImageMedia_imageInternalContainer__SGK30",imageInternalLegend:"ImageMedia_imageInternalLegend__nKBOv"}}}]);

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.