sito web:Disco | Homesoddisfare
document.cookie="VtexWorkspace=master%3A-;expires=Mon,23Dec202417:44:26GMT;path=/;secure;samesite=none"functionhandleCSSFallback(){varfallbackTemplate=document.querySelector('template#stylesFallback');varfallbackContent=fallbackTemplate.content.cloneNode(true);document.head.appendChild(fallbackContent);}(function(){lettiempo=""if(!tiempo||tiempo==="0"){tiempo=60;}else{tiempo=parseInt(tiempo)}constoptions={method:'GET'};letfechaActual=newDate();fechaActual.setDate(fechaActual.getDate()-1);letanio=fechaActual.getFullYear();letmes=(fechaActual.getMonth()+1).toString().padStart(2,'0');letdia=fechaActual.getDate().toString().padStart(2,'0');letfechaAyer=anio+'-'+mes+'-'+dia;constsetDollarData=(data)=>{letdollar=data[0]?.exchange;constcookieString=`dp=${dollar};path=/`tDisco | Homery{document.cookie=cookieString;}catch(error){console.error("Erroralestablecerlacookiedólar:",error);}}consthref=window.location.hrefletstore='';if(href.includes('express.')){if(window.location.host.includes('disco')){store='discouy.myvtex.com';}else{store='devotouy.myvtex.com';}}constfetchDollarValue=()=>{fetch(`${store}/api/dataentities/DO/search?_where=date>${fechaAyer}&_sort=date%20DESC&_fields=exchange`,options).then(response=>response.json()).then(response=>{if(response?.length>0){setDollarData(response)}else{fetch(`${store}/api/dataentities/DO/search?_sort=date%20DESC&_fields=exchange`,options).then(res=>res.json()).then(res=>{setDollarData(res)})}}).then(()=>{consteventoActualizacion=newEvent('actualizacionDolar');document.dispatchEvent(eventoActualizacion);}).catch(err=>console.error(err));}fetchDollarValue()setInterval(fetchDollarValue,tiempo*)})()!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){if(arguments[1]==="Purchase"&&typeofarguments[3]?.eventID==="undefined"&&arguments[2]?.content_type!=="product")return;if(arguments[1]==="AddToCart"&&typeofarguments[3]?.eventID==="undefined"&&arguments[2]?.content_type!=="product")return;if(arguments[1]==="PeView"&&typeofarguments[3]?.eventID==="undefined")return;if(arguments[1]==="Search"&&typeofarguments[3]?.eventID==="undefined")return;if(arguments[1]==="ViewContent"&&typeofarguments[3]?.eventID==="undefined"&&arguments[2]?.content_type!=="product")return;n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.head.getElementsByTName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','connect.facebook.net/en_US/fbevents.js');fbq.disablePushState=true;fbq.allowDuplicatePeViews=true;window.pixelId="";window.fbPixelItemPrefix="";window.fireEvents=window.pixelId!==""&&"".toLowerCase()!=='false';fbeConsentSetting="false";if(fbeConsentSetting=='true'){fbq('consent','revoke')document.cookie="fbe_consent=false;SameSite=None;Secure"}(function(){vargtmId="GTM-W3RLL6Z";varsendGA4EventsValue="true"varsendGA4Events=sendGA4EventsValue=='true'window.__gtm__=Disco | Home{sendGA4Events}if(!gtmId){console.error('Warning:NoGoogleTManerIDisdefined.Pleaseconfigureitintheappsadmin.');}else{console.log('estoyengoogletmaner')window.dataLayer=window.dataLayer||[];window.dataLayer.push({'gtm.blacklist':undefined});//GTMscriptsnippet.Takenfrom:developers.google.com/t-maner/quickstart(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':newDate().getTime(),event:'gtm.js'});varf=d.getElementsByTName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer',gtmId)}})()(functionwebChat(){vardelayWebChat="30";vartoken="1AAC5FFE150E3C70FFB81D73";varactive="true";delayWebChat=Number(delayWebChat)vartimerWebChat=0if(!active||active==="false")return;if(localStore.getItem("timerWebChat")){timerWebChat=Number(localStore.getItem("timerWebChat"))}else{localStore.setItem("timerWebChat",0)}constchangeZIndex=()=>{leticono=document.getElementsByClassName("webchatStartButtonContainer");if(icono.length){icono[0].style.zIndex="1";}else{setTimeout(()=>{changeZIndex()},1500)}}if(timerWebChat===delayWebChat){varproto=document.location.protocol||'http:';varnode=document.createElement('script');node.type='text/jascript';node.async=true;node.src=proto+`//webchat-cls4-dal.i6.inconcertcc.com/v3/click_to_chat?token=${token}`;vars=document.getElementsByTName('script')[0];s.parentNode.insertBefore(node,s);changeZIndex()}else{setTimeout(()=>{localStore.setItem("timerWebChat",timerWebChat+1)webChat()},1000)}})()consthomeRedirects=()=>{constsellerUrl=localStore?.getItem('sellerUrl')constpath=window.location.pathnameif(sellerUrl&&path==='/'){window.location.pathname=sellerUrl}}constredirectEntregaRapida=()=>{if(localStore?.getItem('searchCriteriaDev')==='true'){if(window.location.pathname==='/'){window.location.href='/discoya'}}else{if(window.location.pathname==='/discoya'){window.location.href='/'}}localStore.removeItem('toDevYa')}constdeppLink=(url)=>{constpath='/cupones'constappLink='discoapp';constappStoreURDisco | HomeL=url;lettimeoutId;constvisibilityChangeHandler=()=>{if(document.visibilityState==='hidden'){//AlcerrarparairalaaplicacióncancelarelsetTimeoutyredirigiralsitioclearTimeout(timeoutId);window.location.href=path;}};//regarelmanejadorparaelcambiodevisibilidaddocument.addEventListener('visibilitychange',visibilityChangeHandler);//Intentaabrirlaaplicaciónwindow.location.href=appLink;//EsperaunmomentoyredirigealaAppStoresilaaplicaciónnoseabretimeoutId=setTimeout(()=>{document.removeEventListener('visibilitychange',visibilityChangeHandler);window.open(appStoreURL);},3000);}(function(){homeRedirects()redirectEntregaRapida()localStore.removeItem("toDevYa")letactive="true";letactiveAppRedirect="true";if(active&&window?.location?.href?.includes("?sc=")){leturl=window.location.href.split("?sc=")letnumber=Number(url[1].slice(0,2))letnewUrl=url[0]+`?sc=${localStore.getItem("sc")??1}`if((number!==1&&number!==2)||window.location.href.split("?sc=").length>2){window.location.href=newUrl}}if(activeAppRedirect&&window.location.pathname.toLowerCase()==="/appdisco"){letdevice=nigator.userent;if(device.match(/Iphone/i)||device.match(/Ipod/i)||device.match(/iPhone|iPad|iPod/i)){deppLink("apps.apple.com/uy/app/disco/id85?l=es-MX");}elseif(device.match(/Android/i)){deppLink("play.google.com/store/apps/details?id=com.disco.android.vtex&hl=es_419&gl=US");}elseif(device.match(/Huawei/i)){deppLink("appgallery.huawei.com/#/app/C5");}else{window.location="/cupones";}}})()SupermercadosDiscodelUruguayCargando...IramisPedidosCategoríasDecoraciónNideñaFeriadelDíaNuevoscatálogosCuponesGiftcardSalóndelvinoclub20004500!function(e,t){"usestrict";if(!e.setImmediate){varn,a,s,o,c,i=1,r={},f=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[objectprocess]"==={}.toString.call(e.process)?n=function(e){process.nextTick(function(){g(e)})}:!function(){if(e.postMesse&&!e.importScripts){vart=!0,n=e.onmesse;returne.onmesse=function(){t=!1},e.postMesse("","*"),e.onmesse=n,t}}()?e.MesseChannel?((s=newMesseChannel).port1.onmesse=function(e){g(e.data)},n=function(e){s.port2.postMesse(e)}):l&&"onreadystatechange"inl.createElement("script")?(a=l.documentElement,n=function(e){vart=l.createElement("script");t.onreadystatechange=function(){g(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):n=function(e){setTimeout(g,0,e)}:(o="setImmediate$"+Math.random()+"$",c=function(t){t.source===e&&"string"==typeoft.data&&0===t.data.indexOf(o)&&g(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("messe",c,!1):e.attachEvent("onmesse",c),n=function(t){e.postMesse(o+t,"*")}),u.setImmediate=function(e){"function"!=typeofe&&(e=newFunction(""+e));for(vart=newArray(arguments.length-1),a=0;aconstisProduction=!window.location.href.includes('myvtex');if(isProduction){//CapturarerroresgeneralesdeJaScriptwindow.addEventListener('error',(e)=>{e.preventDefault();try{consterrorData={event:'customErrorEvent',errorType:'jascript_error',messe:e.messe??'',source:e.filename??'',line_col:e.lineno&&e.colno?`${e.lineno}:${e.colno}`:'',stack:e.error?.stack??'',};window.dataLayer=window.dataLayer||[];window.dataLayer.push(errorData);}catch(e){console.error('Errormanejandoeleventodeerror:',e);}});//Capturarpromesasnomanejadaswindow.addEventListener('unhandledrejection',(e)=>{e.preventDefault();try{constrejectionData={event:'customErrorEvent',errorType:'unhandled_promise',messe:e.reason?.messe||ev.reason||'Unknownreason',stack:e.reason?.stack||null,};window.dataLayer=window.dataLayer||[];window.dataLayer.push(rejectionData);}catch(e){console.error('Errormanejandolapromesanomanejada:',e);}});}(function(){varstylesActive="true";if(!stylesActive)return;lettargetClass=""constcheckStyles=async()=>{letdataColores=awaitfetch("/files/contenidos.json").then(res=>res.json()).then(res=>res.estilosLanding)letthisLanding=dataColores?.find((element)=>element.url===window.location.pathname)letorigin=window.location.pathnameif(thisLanding){targetClass=document.querySelector(".render-container").className.split("store-custom-")[1].split("")[0]document.querySelector(".render-container").classList.add("stylesCustomLanding")let{fondo,botones,flechas,marca,titulos,textoYPrecios,borde}=thisLanding.estiloslet{fechaDesde,fechaHasta}=thisLandingletdateDesde=newDate(`${fechaDesde}T00:00:00`)letdateHasta=newDate(`${fechaHasta}T00:00:00`)lethoy=newDate()if(fechaDesde>hoy||fechaHasta{for(constmutationofmutationsList){if(mutation.type==='attributes'&&mutation.attributeName==='class'){console.log('Clasesdelelementohancambiado:',targetElement.className);if(targetElement.className.includes(targetClass)){if(targetElement.className.includes("stylesCustomLanding"))returncheckStyles()}else{if(!targetElement.className.includes("stylesCustomLanding"))returndocument.querySelector(".render-container").classList.remove("stylesCustomLanding")}}}};constobserver=newMutationObserver(mutationCallback);observer.observe(targetElement,observerOptions);checkStyles()})()