1"use strict";(this.webpackChunkFusion_components=this.webpackChunkFusion_components||[]).push([[203],{9913:function(e,r,t){t.r(r),t.d(r,{default:function(){return v}});var n=t(809),s=t(9894),i=t.n(s),a=t(1445),o=t(7382),c=t(2753),l=t(5415),u=t(7312),d=t(4766);const g=({story:e={}})=>{const{imageSrc:r="",link:t,title:n,promoItems:s={}}=e,i=(0,l.aX)(r),{basic:a={}}=s||{},o=()=>n?(0,d.jsx)("div",{className:"background-feature-card-title",children:(0,d.jsx)("p",{className:"background-feature-card-title-text",children:n})}):null,g=()=>{if((0,u.RI)(i)&&(0,u.RI)(a))return null;const e=(0,u.RI)(i)?a:i||{};return(0,d.jsx)("div",{className:"background-feature-card-ctn",children:(0,d.jsx)(c.A,{alt:n,ansImage:e,aspect:"16:9",imageClasses:"background-feature-card-img",lazyLoading:!1,media:"background-feature-card"})})};return t?(0,d.jsxs)("a",{className:"background-feature-card",href:t,target:"_blank",rel:"noreferrer",children:[o(),g()]}):(0,d.jsxs)("div",{className:"background-feature-card-full-width-img",children:[o(),g()]})};g.propTypes={story:i().shape({title:i().string,imageSrc:i().string,link:i().string})};var f=g,p=t(9028),b=t(6252);function h(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function m(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?h(Object(t),!0).forEach(function(r){w(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function w(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const y=({customFields:e={},data:r={}})=>{const{backgroundColor:t="",cardLink:s="",contentColor:i="white",description:c=b.dn.description,showDescription:l=!0,showLogo:g=!0,showTitle:h=!0,srcBackground:w=b.dn.srcBackground,srcBackgroundMobile:y=b.dn.srcBackgroundMobile,srcLogo:v=b.dn.srcLogo,title:j=b.dn.title}=e,[k,x]=(0,n.useState)(0),[O,P]=(0,n.useState)(0),N="white"!==i?` background-cards-left-${i}`:"",{stories:S=[],fetchedStories:E=[]}=r||{},A=0===E?.length,B=(0,u.O2)(),D={onInit:e=>{P(e.params.slidesPerView)},onSlideChange:e=>{x(e.activeIndex)},autoplay:!1,a11y:{prevSlideMessage:"Diapositiva anterior",nextSlideMessage:"Diapositiva siguiente"},modules:[a.Ij,a.Vx,a.Jq,a.dK],navigation:{nextEl:`.next-slider-bfc-${B}`,prevEl:`.prev-slider-bfc-${B}`},breakpoints:{993:{slidesPerView:A?1:2,spaceBetween:15}},pagination:{clickable:!0},slidesPerGroup:1,slidesPerView:1,spaceBetween:15};return(0,d.jsxs)("div",{className:"background-feature-cards",style:(()=>{const e="undefined"!=typeof window&&window.innerWidth<577;return t?{backgroundColor:t}:y&&e?{backgroundImage:`url(https://www.infobae.com${y})`,backgroundSize:"cover"}:{backgroundImage:`url(https://www.infobae.com${w})`,backgroundSize:"cover"}})(),children:[(()=>{const e=()=>g?(0,d.jsx)("div",{className:"background-feature-cards-left-logo",children:(0,d.jsx)("img",{alt:j,className:"background-feature-cards-left-logo-img",src:v})}):null,r=()=>(0,d.jsxs)("div",{className:"background-feature-cards-left-content",children:[h?(0,d.jsx)("h2",{className:`background-feature-cards-left-title${N}`,children:j}):null,l?(0,d.jsx)("p",{className:`background-feature-cards-left-description${N}`,children:c}):null]});return s?(0,d.jsxs)("a",{className:"background-feature-cards-left",href:s,target:"_blank",rel:"noreferrer",children:[e(),r()]}):(0,d.jsxs)("div",{className:"background-feature-cards-left",children:[e(),r()]})})(),(0,d.jsx)("div",{className:"background-feature-cards-right",children:(()=>{const e=S.map(e=>{const r=E.length>0&&E.find(r=>r?.website_url===e.link);return{imageSrc:e.imageSrc||"",promoItems:r?.promo_items||{},link:e.link||r?.website_url||"",title:e.title||r?.headlines?.basic||""}});return 1===e.length?(0,d.jsx)("div",{className:"background-feature-cards-right-stories",children:(0,d.jsx)(f,{story:e[0]})}):(0,d.jsxs)("div",{className:"background-feature-cards-right-stories",children:[S.length>1&&O!==S.length?(0,d.jsx)(p.A,{direction:"left",active:k>0,className:`prev-arrow-bfc prev-slider-bfc-${B}`,colorBase:"white"===i?"#EAEAEA":"#1f1f1f"}):null,(0,d.jsx)(o.RC,m(m({className:"background-feature-cards-right-swiper"},D),{},{children:e.map((e,r)=>(0,d.jsx)(o.qr,{children:(0,d.jsx)(f,{story:e})},r))})),(()=>{if(S.length>1&&O!==S.length){const e=()=>1===O?k<S.length-1:k<S.length-2;return(0,d.jsx)(p.A,{direction:"right",active:e(),className:`next-arrow-bfc next-slider-bfc-${B}`,colorBase:"white"===i?"#EAEAEA":"#1f1f1f"})}return null})()]})})()})]})};
1y.static=!1,y.label="BackgroundFeature+Cards",y.propTypes={customFields:i().shape({showLogo:i().bool,showTitle:i().bool,showDescription:i().bool,srcLogo:i().string,title:i().string,description:i().string,cardLink:i().string,contentColor:i().string,backgroundColor:i().string,srcBackground:i().string,srcBackgroundMobile:i().string}),data:i().shape({stories:i().arrayOf(i().object),fetchedStories:i().arrayOf(i().object)})};var v=y},9028:function(e,r,t){t(809);var n=t(9894),s=t.n(n),i=t(4766);function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function o(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(Object(t),!0).forEach(function(r){c(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function c(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const l=({direction:e,active:r,className:t,colorBase:n="#EAEAEA"})=>{const s=()=>r?{cursor:"pointer"}:{},a=()=>r?{stroke:n||"#EAEAEA",opacity:1,strokeOpacity:1,fillOpacity:1}:{};return"left"===e?(0,i.jsxs)("svg",{className:t,style:s(),xmlns:"http://www.w3.org/2000/svg",width:"41",height:"41",fill:"none",viewBox:"0 0 41 41",children:[(0,i.jsx)("rect",{width:"39",height:"39",x:"-0.5",y:"0.5",stroke:n,strokeOpacity:"0.5",rx:"19.5",transform:"matrix(-1 0 0 1 39.5 .906)",style:a()}),(0,i.jsx)("path",{fill:n,fillOpacity:"0.5",d:"M23.75 29.906c.628 0 1.13-.502 1.13-1.131 0-.323-.125-.628-.358-.844l-7.614-7.003 7.613-7.003a1.158 1.158 0 00.126-1.616 1.141 1.141 0 00-1.616-.126c-.018.018-.054.036-.072.054l-8.51 7.847a1.156 1.156 0 000 1.688l8.528 7.829c.216.198.485.305.772.305z",style:a()})]}):(0,i.jsxs)("svg",{style:o({transform:"rotateY(180deg)"},s()),xmlns:"http://www.w3.org/2000/svg",width:"41",height:"41",fill:"none",viewBox:"0 0 41 41",className:t,children:[(0,i.jsx)("rect",{width:"39",height:"39",x:"-0.5",y:"0.5",stroke:n,strokeOpacity:"0.5",rx:"19.5",transform:"matrix(-1 0 0 1 39.5 .906)",style:a()}),(0,i.jsx)("path",{fill:n,fillOpacity:"0.5",d:"M23.75 29.906c.628 0 1.13-.502 1.13-1.131 0-.323-.125-.628-.358-.844l-7.614-7.003 7.613-7.003a1.158 1.158 0 00.126-1.616 1.141 1.141 0 00-1.616-.126c-.018.018-.054.036-.072.054l-8.51 7.847a1.156 1.156 0 000 1.688l8.528 7.829c.216.198.485.305.772.305z",style:a()})]})};l.propTypes={direction:s().string,active:s().bool,className:s().string,colorBase:s().string},r.A=l}}]);
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.