"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[8892],{48908:(e,i,t)=>{t.d(i,{x:()=>r,N:()=>a});var l=t(74848),n=t(97505),s=t.n(n);const r=e=>{let{url:i}=e;return(0,l.jsx)(s(),{children:`\n var trackMclicks = document.createElement('img');\n trackMclicks.src = '${i}';\n trackMclicks.style.opacity='0.0';\n trackMclicks.style.visibility='hidden';\n trackMclicks.style.position='absolute';\n trackMclicks.style.zIndex='-1';\n trackMclicks.style.width = '0';\n trackMclicks.style.height = '0';\n trackMclicks.style.border = 'none';\n document.body.appendChild(trackMclicks);\n `})},a=e=>{let{size:i}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 14 15",fill:"none",className:"verified-store-icon",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"\n M10.8685 1.78742L11.2716 3.22834L12.7125 3.63244C13.2336 3.77873 13.6587\n 4.15603 13.8659 4.65604C14.073 5.15605 14.0393 5.72346 13.7744\n 6.19541L13.0414 7.49996L13.7734 8.8035C14.0387 9.2754 14.0728 9.84297\n 13.8658 10.3432C13.6588 10.8435 13.2337 11.221 12.7125\n 11.3675L11.2716 11.7716L10.8675 13.2125C10.7212 13.7336 10.3439\n 14.1587 9.84392 14.3659C9.34392 14.573 8.77651 14.5393 8.30457\n 14.2744L7.00003 13.5414L5.6965 14.2734C5.22461 14.5387 4.65704\n 14.5728 4.1568 14.3658C3.65656 14.1588 3.279 13.7337 3.13255\n 13.2125L2.72845 11.7716L1.28755 11.3675C0.766478 11.2212 0.341345\n 10.8439 0.134185 10.3439C-0.0729747 9.84387 -0.0392527 9.27646\n 0.225672 8.80451L0.958658 7.49996L0.226674 6.19641C-0.0386657\n 5.72452 -0.0727368 5.15695 0.134246 4.6567C0.341229 4.15646\n 0.766362 3.77889 1.28755 3.63244L2.72845 3.22834L3.13255\n 1.78742C3.27892 1.26664 3.65605 0.841753 4.15578 0.634622C4.65551\n 0.427492 5.22263 0.460997 5.69449 0.72553L6.99903 1.45852L8.30256\n 0.726533C8.7105 0.497002 9.19292 0.43894 9.64367 0.565122C10.0944\n 0.691304 10.4766 0.991393 10.7061 1.39936C10.7763 1.5217 10.830\n 1.65205 10.8685 1.78742ZM9.14991 5.11952L6.18087 8.0906L4.84926\n 6.75597C4.76865 6.67282 4.65722 6.62672 4.54142 6.62863C4.42563\n 6.62672 4.3142 6.67282 4.23359 6.75597L3.61692 7.37065C3.53403\n 7.45136 3.48829 7.56281 3.49058 7.67848C3.49058 7.79881 3.53269\n 7.90109 3.61692 7.98532L5.87303 10.2374C5.95382 10.3202 6.06522\n 10.366 6.18087 10.3638C6.29647 10.3657 6.40778 10.32 6.4887\n 10.2374L10.3833 6.34887C10.4661 6.26815 10.5119 6.1567 10.5096\n 6.04103C10.5116 5.9257 10.4659 5.81467 10.3833 5.73419L9.76658\n 5.11852C9.6858 5.03573 9.5744 4.99001 9.45875 4.99217C9.3421\n 4.99101 9.2307 5.03673 9.14991 5.11952Z\n ",fill:"#3483FA"})})}},53149:(e,i,t)=>{t.d(i,{Ay:()=>l});const l=t(85647).Ay},78819:(e,i,t)=>{t.d(i,{v:()=>M});var l=t(89379),n=t(74848),s=t(96540),r=t(48908),a=t(59326),c=t(61678),o=t(14207),d=t(17939),C=t(38888),m=t(53149),h=t(35421),x=t.n(h);const v=e=>{const{items:i,IconFactory:t,hasOverlay:s}=e;return(0,n.jsx)("div",{className:"carousel",children:(0,n.jsx)(o.Ay,{"aria-label":"Brand carousel",children:i.map((e=>(0,n.jsx)(d.C7,{spacing:12,children:(0,n.jsx)(C.dk,(0,l.A)({IconFactory:t,hasOverlay:s},e))},e.id)))})})},p="hero-top",_=e=>{var i;const{items:t,lowEnd:l}=e,[{content:{images:s,texts:r},event_tracking:{click:a}}]=t,[c]=a;return(0,n.jsx)("a",{href:c.url,children:(0,n.jsxs)("div",{className:`${p}`,children:[(0,n.jsx)(x(),{preload:!0,src:s.primary_logo,alt:null!==(i=r.alt_logo)&&void 0!==i?i:"",lowEnd:l,lazyload:"off"}),(0,n.jsx)("div",{className:`${p}__section-text`,children:(0,n.jsx)("div",{className:`${p}__section-text-primary-title`,children:(0,n.jsx)(m.Ay,{size:"s",className:`${p}__section-text-primary-title-typography`,component:"h3",children:r.primary_title})})})]})})},u=()=>(0,n.jsx)("svg",{width:"7",height:"9",viewBox:"0 0 7 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M0.950035 0.900286L4.54642 4.49667L0.946289 8.09681L1.79482 8.94534L6.24348 4.49667L1.79856 0.0517578L0.950035 0.900286Z",fill:"#3483FA"})}),g="hero-bot",j=e=>{const{items:i}=e,[{event_tracking:{click:t},content:{is_verified_store:l,texts:s}}]=i,[a]=t;return(0,n.jsxs)("div",{className:`${g}`,children:[(0,n.jsx)("a",{href:a.url,children:(0,n.jsxs)("div",{className:`${g}__text-cta`,children:[l&&(0,n.jsx)(r.N,{size:10}),(0,n.jsx)(m.Ay,{className:`${g}__text-cta-typography`,size:"xs",color:"link",children:s.cta}),(0,n.jsx)("div",{className:`${g}__text-cta-chevron`,children:(0,n.jsx)(u,{})})]})}),(0,n.jsx)("div",{className:`${g}__text-promoted`,children:(0,n.jsx)(m.Ay,{className:`${g}__text-promoted-typography`,color:"secondary",size:"xs",component:"h2",children:s.promoted})})]})},y=()=>(0,n.jsx)("svg",{width:"7",height:"9",viewBox:"0 0 7 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M0.950035 0.900286L4.54642 4.49667L0.946289 8.09681L1.79482 8.94534L6.24348 4.49667L1.79856 0.0517578L0.950035 0.900286Z",fill:"#3483FA"})}),w="hero",N=e=>{var i;const{items:t,isMobile:s,lowEnd:a}=e,[{event_tracking:{click:c},content:{is_verified_store:o,images:d,texts:C},template:{tag:h}}]=t,[v]=c,p="brand-ads-vertical"===h?{width:138,height:138}:{width:140,height:140};return(0,n.jsx)("a",{href:v.url,children:(0,n.jsxs)("div",{className:`${w}`,children:[(0,n.jsx)("div",{className:`${w}__left`,children:(0,n.jsx)(x(),(0,l.A)({preload:!0,src:d.primary_logo,alt:null!==(i=C.alt_logo)&&void 0!==i?i:"",lowEnd:a,lazyload:"off"},s?{width:80,height:80}:p))}),(0,n.jsx)("div",{className:`${w}__right`,children:(0,n.jsxs)("div",{className:`${w}__right-section-text`,children:[(0,n.jsx)(m.Ay,{className:`${w}__right-section-text-promoted-typography`,color:"secondary",size:s?"xs":"s",component:"h2",children:C.promoted}),(0,n.jsx)("div",{className:`${w}__right-section-text-primary-title`,children:(0,n.jsx)(m.Ay,{size:s?"s":"l",className:`${w}__right-section-text-primary-title-typography`,component:"h3",children:C.primary_title})}),(0,n.jsxs)("div",{className:`${w}__right-section-text-cta`,children:[o&&(0,n.jsx)(r.N,{size:s?10:14}),(0,n.jsx)(m.Ay,{className:`${w}__right-section-text-cta-typography`,size:"xs",color:"link",children:C.cta}),(0,n.jsx)("div",{className:`${w}__right-section-text-cta-chevron`,children:(0,n.jsx)(y,{})})]})]})})]})})},f=e=>{const{content:i,items:t,IconFactory:s,hasOverlay:r,lowEnd:o,tag:d}=e,C="brand-ads-vertical"===d?"brand-wrapper-mobile-old":"brand-wrapper-mobile-new";return(0,n.jsx)(a.Ay,{paddingSize:"0",className:C,children:(0,n.jsxs)(c.Wu,{children:[(0,n.jsx)("div",{className:`${C}__container-top`,children:"brand-ads-vertical"===d?(0,n.jsx)(N,(0,l.A)((0,l.A)({},i),{},{isMobile:!0,lowEnd:o})):(0,n.jsx)(_,(0,l.A)((0,l.A)({},i),{},{lowEnd:o}))}),(0,n.jsx)(v,{items:t,IconFactory:s,hasOverlay:null==r||r}),"brand-ads-vertical"!==d&&(0,n.jsx)("div",{className:`${C}__container-bot`,children:(0,n.jsx)(j,(0,l.A)({},i))})]})})};f.displayName="BrandWrapperMobile";const $=e=>{const{tag:i,items:t}=e,l="brand-ads-vertical"===i?"grid-old":"grid-new";return(0,n.jsx)("div",{className:l,children:t.map((e=>(0,n.jsxs)("a",{href:e.url,children:[(0,n.jsxs)("div",{className:`${l}__container-img`,children:[(0,n.jsx)(x(),{preload:!0,className:`${l}__image`,src:e.image.src,alt:"",lazyload:"off",width:134,height:134},"image"),(0,n.jsx)("div",{className:`${l}__dimmer`})]}),(0,n.jsx)(m.Ay,{size:"xs",color:"primary",component:"p",className:`${l}__title`,children:e.title})]},e.id)))})},k=e=>{const{content:i,items:t,lowEnd:s,tag:r}=e,o="brand-ads-vertical"===r?"brand-wrapper-desktop-old":"brand-wrapper-desktop-new";return(0,n.jsx)(a.Ay,{paddingSize:"8",className:o,children:(0,n.jsxs)(c.Wu,{className:`${o}__container`,children:[(0,n.jsx)("div",{className:`${o}__container-left`,children:(0,n.jsx)(N,(0,l.A)((0,l.A)({},i),{},{lowEnd:s}))}),(0,n.jsx)("div",{className:`${o}__container-right`,children:(0,n.jsx)($,{tag:r,items:t})})]})})};k.displayName="BrandWrapperDesktop";const L=e=>{const i="MXN"===e.currency_id?",":".",[t,l]=String(e.amount).split("."),n=t.replace(/\B(?=(\d{3})+(?!\d))/g,i);return{currency_id:e.currency_id,symbol:e.symbol,decimal_separator:e.decimal_separator,fraction:n,cents:l}},b=e=>{var i,t;return e.promise&&!e.shipping?{fullfilment:e.promise.fulfillment,promise:{text:e.promise.text,highlight:"#FFFFFF"===e.promise.color}}:{text:null===(i=e.shipping)||void 0===i?void 0:i.text,fullfilment:null===(t=e.shipping)||void 0===t?void 0:t.fulfillment}},A=e=>{const i={melichoice_icon:"meli_icon"};return e&&i[e]?i[e]:"black_friday_icon"},z=(e,i)=>e.map((e=>{var t;return{className:!i||!e.title||e.price||e.shipping||e.dod?"brand-item":"brand-item-only-title",lazyLoad:!1,priceSizeOverride:{price:i?18:20,discount:12},image:{size:"80px",src:e.picture},id:e.id,url:e.event_tracking.click[0].url,title:e.title,price:e.price&&L(e.price),shipping:(e.shipping||e.promise)&&b(e),discount:(null===(t=e.price)||void 0===t?void 0:t.discount_label)&&e.price.discount_label,highlight_deal:e.dod&&{label:{background:e.dod.background,size:10,text:e.dod.text},icon:{id:e.dod.icon_id&&A(e.dod.icon_id)}}}})),E="viewability-enabled",M=e=>{var i;const{content:t,isMobile:l,IconFactory:a,hasOverlay:c,lowEnd:o}=e,d=(e=>(e=>"fast_loading"in e)(e)?{items:e.fast_loading.items}:e)(t);if((e=>{var i;if((null==e||null===(i=e.items)||void 0===i?void 0:i.length)>0){var t,l;const[i]=e.items;if(i.content&&(null===(t=i.event_tracking)||void 0===t||null===(t=t.click)||void 0===t?void 0:t.length)>0&&(null===(l=i.event_tracking)||void 0===l||null===(l=l.print)||void 0===l?void 0:l.length)>0){const[{url:e}]=i.event_tracking.click,[{url:t}]=i.event_tracking.print,{images:l,texts:n,marketplace_items:s}=i.content;return!(l&&n&&e&&t&&(null==s?void 0:s.length)>0)}}return!0})(d))return null;const C=(0,s.useRef)(null),[{content:m,event_tracking:{print:h,view:x},template:{tag:v}}]=d.items,[{url:p}]=h,_=x?null===(i=[...x])||void 0===i||null===(i=i.shift())||void 0===i?void 0:i.url:null,u=l?f:k;return((e,i,t)=>{const l=()=>{var t;const l=null===(t=window.viewability)||void 0===t?void 0:t.addSession();null==l||l.setMeliVaTrackUrl(i),null==l||l.start(null==e?void 0:e.current)};(0,s.useEffect)((()=>{return!t&&i&&e?(s=window.viewability)&&"1.0.0"!==(null==s?void 0:s.version)?(null===(n=window.viewability)||void 0===n||n.addSession(e.current,i),()=>null):(e=>e&&""!==(null==e?void 0:e.getNonceToken()))(window.viewability)?(l(),()=>null):(window.addEventListener(E,l),()=>{window.removeEventListener(E,l)}):()=>null;var n,s}),[e,i,t])})(C,_),(0,n.jsxs)("div",{ref:C,children:[(0,n.jsx)(u,{items:z(m.marketplace_items,l),content:d,IconFactory:a,hasOverlay:c,lowEnd:o,tag:v}),p&&(0,n.jsx)(r.x,{url:p})]})}},92072:(e,i,t)=>{t.d(i,{v:()=>U});var l=t(89379),n=t(74848),s=t(96540),r=t(48908),a=t(59326),c=t(61678),o=t(53149),d=t(35421),C=t.n(d),m=t(32485),h=t.n(m),x=t(14207),v=t(17939),p=t(40668),_=t(91319),u=t(45220);const g="brand-wrapper-showroom",j=`${g}-desktop`,y=`${g}-mobile`,w=`${y}-hero`,N=e=>{const{items:i,lowEnd:t}=e,[{event_tracking:{click:l},content:{images:s,texts:r}}]=i,[a]=l;return(0,n.jsxs)("div",{className:w,children:[(0,n.jsx)("a",{href:a.url,className:`${w}-main-logo-container`,children:(0,n.jsx)(C(),{className:`${w}-main-logo`,preload:!0,src:s.primary_logo,alt:"",lowEnd:t,lazyload:"off",width:80,height:80})}),(0,n.jsx)(o.Ay,{size:"s",className:`${w}-primary-title`,component:"h3",children:r.primary_title})]})},f=()=>(0,n.jsx)("svg",{width:"7",height:"9",viewBox:"0 0 7 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M0.950035 0.900286L4.54642 4.49667L0.946289 8.09681L1.79482 8.94534L6.24348 4.49667L1.79856 0.0517578L0.950035 0.900286Z",fill:"#3483FA"})}),$=e=>{const{items:i,className:t,isMobile:l}=e,[{event_tracking:{click:s},content:{is_verified_store:a,texts:c}}]=i,[d]=s,C=`${l?y:j}-brand-cta`;return(0,n.jsxs)("a",{href:d.url,className:h()(C,t),children:[a&&(0,n.jsx)(r.N,{size:l?10:14}),(0,n.jsx)(o.Ay,{className:`${C}-typography`,size:"xs",color:"link",children:c.cta}),(0,n.jsx)("div",{className:`${C}-chevron`,children:(0,n.jsx)(f,{})})]})},k=`${y}-footer`,L=e=>{const{items:i}=e,[{content:{texts:t}}]=i;return(0,n.jsxs)("div",{className:k,children:[(0,n.jsx)($,(0,l.A)((0,l.A)({},e),{},{className:`${k}-brand-cta`,isMobile:!0})),(0,n.jsx)(o.Ay,{className:`${k}-promoted-typography`,color:"secondary",size:"s",component:"h2",children:t.promoted})]})},b=e=>{let{className:i,size:t}=e;return(0,n.jsxs)("svg",{className:h()("icon-meli-choice",i),xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:"none",viewBox:`0 0 ${t.width} ${t.height}`,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0214 6.17386C18.0214 3.08276 13.9874 0.562946 9.01101 0.562946C4.03492 0.562946 0.00103839 3.08276 0.00103839 6.17386C0.00103839 6.25369 0 6.4744 0 6.50232C0 9.78151 3.52585 12.4375 9.00984 12.4375C14.5278 12.4375 18.0214 9.78225 18.0214 6.50294V6.17386Z",fill:"white"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.01266 11.4453C4.22789 11.4453 0.349121 9.08293 0.349121 6.16879C0.349121 3.2544 4.22789 0.891898 9.01266 0.891898C13.7976 0.891898 17.6763 3.2544 17.6763 6.16879C17.6763 9.08293 13.7976 11.4453 9.01266 11.4453Z",fill:"#00A650"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.1358 4.50681C6.13125 4.51509 6.04481 4.60023 6.10088 4.66869C6.23769 4.8349 6.65992 4.9303 7.08696 4.8391C7.34124 4.78473 7.66703 4.53795 7.98283 4.29945C8.32498 4.04068 8.66428 3.78155 9.00565 3.67848C9.36688 3.569 9.59831 3.61596 9.75134 3.65995C9.91917 3.70765 10.1163 3.81281 10.4311 4.03759C11.024 4.46195 13.4076 6.44273 13.8195 6.78516C14.1511 6.64255 15.6254 6.03839 17.6286 5.61799C17.4546 4.60122 16.805 3.67095 15.8197 2.90923C14.4465 3.4584 12.7682 3.74484 11.1273 2.98177C11.1189 2.97856 10.2307 2.57842 9.35467 2.59807C8.05266 2.62674 7.48856 3.1633 6.89174 3.73125L6.1358 4.50681Z",fill:"white"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7226 6.99985C13.6947 6.97624 10.9198 4.66465 10.2911 4.21472C9.92739 3.95496 9.72504 3.88873 9.51256 3.8629C9.40197 3.84931 9.2492 3.86883 9.14237 3.89676C8.84993 3.97251 8.46755 4.21595 8.128 4.47212C7.7765 4.73867 7.44512 4.98965 7.13776 5.05527C6.74473 5.13906 6.265 5.0402 6.04603 4.8992C5.95724 4.84248 5.89494 4.77686 5.86483 4.71013C5.78409 4.53156 5.93323 4.38883 5.95763 4.36498L6.72344 3.57645C6.81236 3.4918 6.90218 3.40728 6.99381 3.32386C6.74668 3.35451 6.51836 3.41457 6.29602 3.47351C6.01851 3.54778 5.75164 3.61847 5.48179 3.61834C5.36913 3.61834 4.76517 3.52406 4.65056 3.4944C3.95757 3.31385 3.34946 3.13801 2.441 2.73417C1.35238 3.50577 0.624336 4.47039 0.414062 5.53301C0.57047 5.57231 0.822539 5.64373 0.928455 5.6661C3.3919 6.18759 4.15914 6.72477 4.29829 6.83697C4.44898 6.67731 4.6664 6.57623 4.90899 6.57623C5.1817 6.5766 5.42715 6.70697 5.57654 6.90852C5.71763 6.80237 5.9122 6.71179 6.16375 6.71192C6.27798 6.71192 6.39635 6.73206 6.51603 6.77074C6.79405 6.86157 6.93748 7.03778 7.01173 7.19719C7.10505 7.15703 7.21966 7.1275 7.35465 7.12787C7.48731 7.12787 7.62529 7.15679 7.7643 7.21388C8.21859 7.39949 8.28934 7.82421 8.24806 8.14452C8.28038 8.14081 8.31296 8.13945 8.34606 8.13945C8.88459 8.13982 9.32266 8.55652 9.3224 9.06948C9.3224 9.22815 9.2797 9.37743 9.20558 9.50854C9.35213 9.58701 9.72569 9.76434 10.0536 9.72479C10.3156 9.69341 10.4152 9.60802 10.4507 9.56019C10.475 9.52707 10.501 9.48864 10.477 9.46096L9.78189 8.72582C9.78189 8.72582 9.66741 8.62275 9.70518 8.58309C9.74451 8.54218 9.81512 8.60076 9.86509 8.64055C10.2189 8.92193 10.6509 9.34628 10.6509 9.34628C10.6582 9.35086 10.6867 9.40474 10.8465 9.43205C10.984 9.4554 11.2272 9.44181 11.3958 9.30995C11.4384 9.27671 11.4808 9.23519 11.5164 9.19231C11.5135 9.19441 11.5113 9.19725 11.5086 9.19824C11.6863 8.98174 11.489 8.76264 11.489 8.76264L10.6775 7.89502C10.6775 7.89502 10.5615 7.79295 10.6008 7.7518C10.6362 7.71621 10.7109 7.76996 10.7616 7.81025C11.0186 8.01477 11.3817 8.36164 11.7296 8.68615C11.7975 8.73335 12.1033 8.91353 12.5083 8.66032C12.7539 8.50684 12.8033 8.31839 12.7963 8.17615C12.7792 7.98783 12.625 7.85375 12.625 7.85375L11.5164 6.79273C11.5164 6.79273 11.3994 6.69758 11.4407 6.64939C11.4746 6.60885 11.5507 6.66731 11.6004 6.70697C11.9537 6.98823 12.9095 7.82261 12.9095 7.82261C12.9231 7.83175 13.2535 8.05567 13.6616 7.80827C13.8075 7.71942 13.9008 7.58547 13.9088 7.43001C13.9227 7.16012 13.7226 6.99985 13.7226 6.99985Z",fill:"white"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.34603 8.34529C8.17418 8.34331 7.98623 8.44057 7.9617 8.42635C7.94807 8.41783 7.97221 8.35209 7.98817 8.31415C8.00479 8.27646 8.23116 7.62806 7.67925 7.40291C7.25715 7.23015 6.99898 7.42453 6.9102 7.51227C6.88696 7.53513 6.87658 7.5334 6.87398 7.50399C6.86542 7.38734 6.81051 7.07136 6.44604 6.96558C5.92529 6.8137 5.5904 7.15984 5.50539 7.28477C5.46736 7.00215 5.21646 6.78269 4.90909 6.78256C4.57512 6.78219 4.30423 7.03984 4.30371 7.35768C4.30371 7.67551 4.57434 7.93329 4.90831 7.93329C5.07069 7.93366 5.21775 7.87187 5.32626 7.77264C5.32977 7.77573 5.33107 7.78117 5.32938 7.79204C5.30407 7.9344 5.25708 8.45169 5.82612 8.66226C6.0543 8.74666 6.24835 8.68388 6.4093 8.5765C6.45707 8.54424 6.46499 8.55796 6.45811 8.60072C6.4376 8.73381 6.46356 9.01865 6.88307 9.18066C7.20224 9.30411 7.3911 9.17769 7.5148 9.06882C7.56867 9.02211 7.58333 9.02965 7.58619 9.10194C7.60138 9.48687 7.93729 9.7926 8.34512 9.79297C8.76554 9.79334 9.10613 9.46982 9.10626 9.06981C9.10665 8.66967 8.76619 8.34961 8.34603 8.34529Z",fill:"white"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.34606 9.7416C7.9651 9.74123 7.65553 9.45947 7.64151 9.10037C7.64047 9.0696 7.63723 8.98767 7.56454 8.98767C7.53469 8.98767 7.5086 9.00484 7.47861 9.03055C7.39502 9.10444 7.28833 9.17958 7.13244 9.17958C7.06183 9.17958 6.98525 9.16388 6.90438 9.13237C6.50214 8.97729 6.49656 8.71432 6.51291 8.60854C6.51745 8.58036 6.51888 8.55095 6.4985 8.52821L6.47371 8.50708H6.44866C6.42828 8.50708 6.40713 8.51499 6.3787 8.53415C6.2624 8.61187 6.15077 8.64969 6.03733 8.64969C5.9749 8.64969 5.91078 8.6377 5.84679 8.61422C5.31708 8.41799 5.35887 7.9421 5.38483 7.79888C5.3886 7.76996 5.38107 7.74735 5.36173 7.73239L5.32435 7.70311L5.28943 7.73499C5.18611 7.82965 5.05125 7.88155 4.90925 7.88155C4.60591 7.88118 4.35916 7.64663 4.35929 7.35784C4.35955 7.06892 4.60656 6.8345 4.9099 6.83487C5.18403 6.83487 5.41741 7.03098 5.45233 7.29172L5.47128 7.43235L5.5524 7.31335C5.56149 7.29939 5.7837 6.97945 6.19218 6.97982C6.26993 6.97982 6.35027 6.99181 6.43101 7.01554C6.75667 7.11019 6.81184 7.39133 6.82041 7.50848C6.82612 7.57669 6.87713 7.58002 6.88712 7.58002C6.91529 7.58002 6.93593 7.56297 6.95072 7.54839C7.01212 7.48734 7.14594 7.38577 7.35543 7.38577C7.45136 7.38601 7.55338 7.40764 7.65864 7.45077C8.17628 7.6622 7.94148 8.28836 7.93862 8.29491C7.89423 8.39871 7.89241 8.44455 7.93421 8.471L7.95459 8.48027H7.96977C7.99314 8.48027 8.02208 8.47063 8.06998 8.45518C8.14059 8.43195 8.24676 8.3971 8.34619 8.39735C8.73584 8.4013 9.05307 8.70332 9.05294 9.06997C9.05255 9.44044 8.73545 9.7416 8.34606 9.7416ZM13.8301 6.72365C12.9755 6.01347 10.9999 4.37845 10.4649 3.99611C10.1592 3.77713 9.95076 3.66159 9.76774 3.60969C9.68558 3.58596 9.57175 3.55915 9.4252 3.55902C9.28918 3.55902 9.14302 3.58238 8.99038 3.6286C8.6446 3.73277 8.30011 3.99339 7.96692 4.24548L7.94978 4.25846C7.63943 4.49325 7.3187 4.73632 7.07598 4.78797C6.96993 4.81071 6.86103 4.82233 6.75239 4.82233C6.48046 4.82196 6.23618 4.74732 6.14467 4.63622C6.12962 4.61781 6.13935 4.58803 6.17466 4.54515L6.17933 4.53947L6.93125 3.76799C7.52015 3.20733 8.07647 2.67793 9.35706 2.64988C9.37809 2.64926 9.39976 2.64889 9.42092 2.64889C10.2179 2.64939 11.0147 2.9891 11.1041 3.02852C11.8514 3.37551 12.6228 3.55186 13.3982 3.55247C14.2065 3.55272 15.0403 3.36229 15.917 2.97797C15.8191 2.8995 15.7172 2.82326 15.6123 2.74837C14.8421 3.06621 14.1083 3.22685 13.4004 3.22661C12.6774 3.22599 11.9548 3.06077 11.2535 2.7349C11.2166 2.7181 10.3366 2.32315 9.42131 2.32278C9.3973 2.32278 9.37302 2.32315 9.34901 2.32352C8.27337 2.3475 7.6676 2.71105 7.26016 3.02975C6.86389 3.0389 6.52213 3.12985 6.21788 3.21067C5.94647 3.28246 5.71218 3.34474 5.48348 3.34462C5.38925 3.34462 5.21986 3.33646 5.20454 3.33597C4.9417 3.32843 3.6171 3.01912 2.56353 2.63926C2.45606 2.71179 2.35261 2.78668 2.25175 2.86293C3.35244 3.29247 4.69184 3.62489 5.11459 3.65084C5.23219 3.65813 5.35757 3.67086 5.48283 3.67111C5.76255 3.67111 6.04161 3.59634 6.31172 3.52442C6.47125 3.48179 6.64738 3.43545 6.83248 3.40159C6.78302 3.44781 6.7337 3.49464 6.68425 3.54185L5.92025 4.32865C5.86015 4.38648 5.72958 4.5407 5.81563 4.73064C5.8499 4.80725 5.91934 4.88053 6.01656 4.94294C6.19867 5.05959 6.52459 5.13856 6.82741 5.1388C6.94216 5.13893 7.05093 5.12793 7.15087 5.10655C7.47109 5.03809 7.807 4.7834 8.16291 4.51401C8.44639 4.29961 8.84929 4.02725 9.15769 3.94717C9.24388 3.92493 9.34979 3.91096 9.43481 3.91096C9.46025 3.91121 9.48426 3.91195 9.50659 3.91504C9.71037 3.93963 9.90741 4.00562 10.2592 4.25697C10.8862 4.70543 13.6614 7.01677 13.6886 7.03963C13.6904 7.04099 13.8674 7.18632 13.8551 7.4279C13.8485 7.5626 13.77 7.68235 13.6334 7.76526C13.515 7.83681 13.3926 7.87327 13.2691 7.87327C13.0837 7.8729 12.9559 7.79023 12.9477 7.78454C12.9374 7.77663 11.9865 6.94658 11.6368 6.6678C11.581 6.62393 11.5269 6.58426 11.4721 6.58426C11.4429 6.58401 11.4171 6.596 11.3996 6.61688C11.3444 6.68139 11.4062 6.77086 11.4787 6.8298L12.5894 7.89255C12.5894 7.89255 12.7278 8.01587 12.7429 8.17887C12.7516 8.35509 12.663 8.50251 12.4791 8.61719C12.3481 8.69937 12.2154 8.74113 12.0854 8.74113C11.915 8.74113 11.7952 8.66724 11.7687 8.64969L11.6093 8.50016C11.3182 8.22743 11.0176 7.94544 10.7974 7.77058C10.7438 7.72807 10.6865 7.68889 10.6319 7.68889C10.6049 7.68889 10.5805 7.69841 10.562 7.71707C10.5368 7.74364 10.5194 7.79146 10.5818 7.87055C10.6077 7.90317 10.638 7.93011 10.638 7.93011L11.4485 8.79674C11.4553 8.80453 11.6156 8.98594 11.4667 9.1666L11.4381 9.2012C11.4138 9.22666 11.3876 9.25002 11.3628 9.27041C11.2245 9.37841 11.0398 9.3899 10.9667 9.3899C10.9276 9.3899 10.8899 9.38669 10.8571 9.381C10.7772 9.36741 10.7234 9.34616 10.6975 9.31687L10.6878 9.30711C10.6434 9.26361 10.2348 8.86656 9.89676 8.59791C9.85224 8.56232 9.79669 8.51759 9.73919 8.51759C9.71076 8.51759 9.68558 8.52821 9.66598 8.54873C9.59913 8.61842 9.69947 8.72272 9.74204 8.76091L10.4335 9.48666C10.4327 9.49309 10.4239 9.50804 10.4071 9.53102C10.3825 9.56365 10.2985 9.64348 10.0478 9.67338C10.0177 9.67721 9.98671 9.6787 9.95608 9.6787C9.69752 9.6787 9.4217 9.5592 9.27957 9.4874C9.34421 9.3574 9.37783 9.21405 9.37783 9.07034C9.37809 8.52871 8.916 8.08804 8.3471 8.08767C8.3349 8.08767 8.32192 8.08804 8.30984 8.08841C8.32841 7.84114 8.2918 7.37279 7.78689 7.16667C7.64151 7.10686 7.49666 7.07633 7.35569 7.07633C7.2455 7.07633 7.13945 7.09425 7.03976 7.13071C6.93515 6.93719 6.76148 6.79619 6.53485 6.72266C6.40972 6.68139 6.28512 6.6605 6.16479 6.6605C5.95465 6.6605 5.76112 6.71945 5.58849 6.83635C5.42299 6.64049 5.17326 6.52457 4.91016 6.52457C4.6799 6.52457 4.45846 6.61231 4.29439 6.76703C4.07919 6.61058 3.22563 6.09428 0.941305 5.60048C0.830587 5.57675 0.576701 5.5073 0.421202 5.46405C0.395372 5.58182 0.375643 5.70082 0.362793 5.82081C0.362793 5.82081 0.784119 5.91695 0.866931 5.93463C3.20058 6.42818 3.97171 6.94127 4.10203 7.03827C4.0579 7.13911 4.03493 7.2481 4.0348 7.35784C4.03441 7.81679 4.42653 8.19061 4.90912 8.19098C4.96312 8.19098 5.01672 8.18653 5.06942 8.17726C5.14198 8.51499 5.37419 8.77104 5.72906 8.90252C5.83277 8.94046 5.93764 8.95999 6.04057 8.95999C6.10729 8.96011 6.17427 8.95208 6.23982 8.93614C6.30523 9.09468 6.45269 9.29215 6.78237 9.41968C6.89789 9.46392 7.01342 9.48703 7.12582 9.48703C7.21759 9.48703 7.30728 9.47171 7.39282 9.4418C7.55078 9.80808 7.92681 10.0508 8.34593 10.0508C8.62357 10.0512 8.8903 9.94339 9.08474 9.75284C9.25127 9.84095 9.60264 10.0004 9.95777 10.0009C10.0037 10.0009 10.0468 9.99764 10.0899 9.99282C10.4426 9.95031 10.6068 9.81908 10.6822 9.717C10.6957 9.69921 10.708 9.6803 10.7184 9.66065C10.8016 9.68339 10.8932 9.70205 10.998 9.7023C11.1907 9.7023 11.3754 9.63977 11.5623 9.51014C11.7459 9.38409 11.8763 9.2033 11.895 9.04921C11.8954 9.04723 11.8958 9.04488 11.8961 9.04266C11.958 9.05477 12.0214 9.06107 12.0848 9.06107C12.2831 9.06107 12.4781 9.00225 12.6645 8.88596C13.024 8.66155 13.0864 8.36856 13.0805 8.17664C13.1433 8.18913 13.2077 8.19555 13.2715 8.19555C13.4577 8.19555 13.6404 8.14229 13.8146 8.03651C14.0375 7.90095 14.1716 7.69334 14.1919 7.45175C14.2058 7.28752 14.1631 7.12181 14.0721 6.97933C14.6744 6.7323 16.051 6.25419 17.672 5.90645C17.6622 5.78671 17.6441 5.66857 17.6216 5.55093C15.6602 5.96527 14.1967 6.56832 13.8301 6.72365Z",fill:"#00A650"})]})},A=e=>{let{text:i,text_color:t,background:l}=e;return i?{color:t,background:l}:{}},z=e=>{let{background:i,text_color:t,icon_id:l,text:s,isMobile:r}=e;const a={text:s,background:i,text_color:t},c=r?`${y}-dod-pill`:`${j}-dod-pill`;return(0,n.jsxs)("span",{className:h()(c),style:A(a),children:[(0,n.jsx)("span",{className:h()(`${c}__icon`),children:s&&l&&(0,n.jsx)(b,{className:h()(c),size:{width:"18px",height:"11px"}})}),(0,n.jsx)("span",{className:h()(`${c}__text`),children:s})]})},E=e=>{const{image:i,title:t,subtitle:s,attributes:r,price:d,lowEnd:m,isMobile:x,url:v,dod:u,button:g}=e,w=x?`${y}-item`:`${j}-item`;return(0,n.jsxs)("div",{className:w,children:[(0,n.jsx)("a",{href:v,className:`${w}__clickable`,children:(0,n.jsx)("div",{className:`${w}__image-container`,children:(0,n.jsx)(C(),{className:`${w}__image`,preload:!0,src:i.src,alt:t,lowEnd:m,lazyload:"off"})})}),(0,n.jsxs)(a.Ay,{paddingSize:"0",className:`${w}__text-card`,children:[(0,n.jsx)("div",{className:`${w}__dod`,children:u&&(0,n.jsx)(z,(0,l.A)({isMobile:x},u))}),(0,n.jsxs)(c.Wu,{className:h()(`${w}__text-card-content`),children:[(0,n.jsxs)("div",{className:`${w}__text-card-content__left`,children:[(0,n.jsx)(o.Ay,{className:`${w}__text-card-content__left-item`,component:"h3",size:"m",weight:"semibold",children:t}),(0,n.jsx)(o.Ay,{className:`${w}__text-card-content__left-item`,size:x?"xs":"s",color:"secondary",children:s}),(0,n.jsx)(o.Ay,{className:`${w}__text-card-content__left-item`,size:"xs",children:r})]}),(0,n.jsxs)("div",{className:`${w}__text-card-content__right`,children:[(0,n.jsx)(_.Ay,{className:`${w}__text-card__price`,amount:d,size:x?18:24}),!x&&(null==g?void 0:g.text)&&(0,n.jsx)(p.Ay,{type:"button",hierarchy:"loud",size:"small",href:v,children:null==g?void 0:g.text})]})]})]})]})},M=`${y}-carousel`,S=e=>{const{lowEnd:i,items:t}=e;return(0,n.jsx)("div",{className:M,children:(0,n.jsx)(x.Ay,{"aria-label":"",className:`${M}__free`,children:t.map((e=>(0,n.jsx)(v.C7,{children:(0,n.jsx)(E,(0,l.A)((0,l.A)({lowEnd:i},e),{},{isMobile:!0}))},e.id)))})})},F=y,R=e=>{const{content:i,items:t,lowEnd:s}=e;return(0,n.jsx)(a.Ay,{paddingSize:"0",className:F,children:(0,n.jsxs)(c.Wu,{children:[(0,n.jsx)(N,(0,l.A)((0,l.A)({},i),{},{lowEnd:s})),(0,n.jsx)(S,{items:t,lowEnd:s}),(0,n.jsx)(L,(0,l.A)({},i))]})})};R.displayName="BrandWrapperShowroomMobile";const B=`${j}-hero`,Z=e=>{const{items:i,lowEnd:t}=e,[{event_tracking:{click:s},content:{images:r,texts:a}}]=i,[c]=s;return(0,n.jsxs)("div",{className:B,children:[(0,n.jsx)("a",{href:c.url,className:`${B}-clickable`,children:(0,n.jsx)("div",{className:`${B}-main-logo-container`,children:(0,n.jsx)(C(),{className:`${B}-main-logo`,preload:!0,src:r.primary_logo,alt:a.primary_title||"Logo",lowEnd:t,lazyload:"on",width:120,height:120})})}),(0,n.jsxs)("div",{className:`${B}-section-text`,children:[(0,n.jsx)(o.Ay,{className:`${B}-section-text-promoted-typography`,color:"secondary",size:"s",component:"h2",children:a.promoted}),(0,n.jsx)(o.Ay,{size:"l",component:"h3",className:`${B}-section-text-primary-title`,children:a.primary_title}),(0,n.jsx)($,(0,l.A)((0,l.A)({},e),{},{className:`${B}-brand-cta`}))]})]})},O=`${j}-carousel`,I=e=>{const{lowEnd:i,items:t}=e;return(0,n.jsx)("div",{className:`${O}`,children:(0,n.jsx)(u.G,{className:`${O}__container`,arrows:!0,arrowsSize:"small",pagination:!1,strictBoundaries:!1,infinite:!0,children:t.map((e=>(0,n.jsx)(u.j5,{className:`${O}__slide`,children:(0,n.jsx)(E,(0,l.A)({lowEnd:i},e))},e.id)))})})},W=j,D=e=>{const{content:i,items:t,lowEnd:s}=e;return(0,n.jsx)(a.Ay,{paddingSize:"0",className:W,children:(0,n.jsxs)(c.Wu,{className:`${W}__container`,children:[(0,n.jsx)("div",{className:`${W}__container-left`,children:(0,n.jsx)(Z,(0,l.A)((0,l.A)({},i),{},{lowEnd:s}))}),(0,n.jsx)("div",{className:`${W}__container-right`,children:(0,n.jsx)(I,{lowEnd:s,items:t})})]})})};D.displayName="BrandWrapperVISDesktop";const H=e=>{const i="MXN"===e.currency_id?",":".",[t,l]=String(e.amount).split("."),n=t.replace(/\B(?=(\d{3})+(?!\d))/g,i);return{currencyId:e.currency_id,symbol:e.symbol,fraction:n,cents:l}},T="viewability-enabled",U=e=>{var i;const{content:t,isMobile:a,lowEnd:c}=e,o=(e=>(e=>"fast_loading"in e)(e)?{items:e.fast_loading.items}:e)(t);if((e=>{var i;if((null==e||null===(i=e.items)||void 0===i?void 0:i.length)>0){var t,l;const[i]=e.items;if(i.content&&(null===(t=i.event_tracking)||void 0===t||null===(t=t.click)||void 0===t?void 0:t.length)>0&&(null===(l=i.event_tracking)||void 0===l||null===(l=l.print)||void 0===l?void 0:l.length)>0){const[{url:e}]=i.event_tracking.click,[{url:t}]=i.event_tracking.print,{images:l,texts:n,marketplace_items:s}=i.content;return!(l&&n&&e&&t&&(null==s?void 0:s.length)>0)}}return!0})(o))return null;const d=(0,s.useRef)(null),[{content:C,event_tracking:{print:m,view:h}}]=o.items,[{url:x}]=m,v=h?null===(i=[...h])||void 0===i||null===(i=i.shift())||void 0===i?void 0:i.url:null,p=a?R:D;return((e,i,t)=>{const l=()=>{var t;const l=null===(t=window.viewability)||void 0===t?void 0:t.addSession();null==l||l.setMeliVaTrackUrl(i),null==l||l.start(null==e?void 0:e.current)};(0,s.useEffect)((()=>{return!t&&i&&e?(s=window.viewability)&&"1.0.0"!==(null==s?void 0:s.version)?(null===(n=window.viewability)||void 0===n||n.addSession(e.current,i),()=>null):(e=>e&&""!==(null==e?void 0:e.getNonceToken()))(window.viewability)?(l(),()=>null):(window.addEventListener(T,l),()=>{window.removeEventListener(T,l)}):()=>null;var n,s}),[e,i,t])})(d,v),(0,n.jsxs)("div",{ref:d,children:[(0,n.jsx)(p,{items:(_=C.marketplace_items,_.map((e=>(0,l.A)((0,l.A)({},e),{},{image:{src:e.picture},price:e.price&&H(e.price),url:e.event_tracking.click[0].url})))),content:o,lowEnd:c}),x&&(0,n.jsx)(r.x,{url:x})]});var _}}}]); //# sourceMappingURL=8892.8fa325ba.js.map