PageSourceSearch

https://www.lojasrenner.com.br/_next/static/chunks/456.16b9db7d21673a87.js

js lojasrenner.com.br collected 2026-09-24 08:42:28 UTC 9,246 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[456],{40456:function(f,b,a){"use strict";a.r(b);var g=a(16835),h=a(31513),i=a(29201),j=a(11769),k=a(67294),c=a(38144),l=a.n(c),m=a(33297),d=a(5152),e=a.n(d),n=a(27215),o=a(22190),p=a(14674),q=a(11163),r=a(96486),s=a(1336),t=a(83922),u=a(85893),v=e()(function(){return Promise.all([a.e(6066),a.e(9439),a.e(2357)]).then(a.bind(a,2080))},{ssr:!1,loadableGenerated:{webpack:function(){return[2080]}}});b.default=function(x){var b=x.contentItem,y=(0,q.useRouter)(),z=b.fastBuy,a=(0,j.Y_)(b.placement,b.watcher),c=(0,k.useState)(!1),A=c[0],I=c[1],d=(0,k.useRef)(null),B=(0,n.useIntersection)({rootMargin:"500px 0px"}),e=(0,g.Z)(B,2),C=e[0],f=e[1],D=(0,n.useIntersection)({}),w=(0,g.Z)(D,2),J=w[0],E=w[1],F=(0,k.useCallback)(function(c){if("home"===G)return null==c?void 0:null===(e=c.items)|| void 0===e?void 0:e.map(function(b){return{product_id:null==b?void 0:b.productShortName,item_id:(0,t.Kj)(null==b?void 0:b.linkURL),item_name:null==b?void 0:b.name,item_brand:null==b?void 0:b.brand,price:parseFloat(null==b?void 0:b.salePrice)||parseFloat(null==b?void 0:b.price),currency:"BRL",item_list_name:null==a?void 0:a.message,item_category:null==b?void 0:b.parent_categories}});var d,e,f=(0,s.RN)(b,c);return null==c?void 0:null===(d=c.items)|| void 0===d?void 0:d.map(function(a){return{price:parseFloat(null==a?void 0:a.salePrice)||parseFloat(null==a?void 0:a.price),discount:(null==a?void 0:a.price)-(null==a?void 0:a.salePrice)||0,product_id:null==a?void 0:a.productShortName,item_id:(0,t.Kj)(null==a?void 0:a.linkURL),item_category:null==a?void 0:a.parent_categories,item_list_name:null==c?void 0:c.message,item_brand:null==a?void 0:a.brand,item_name:null==a?void 0:a.name,currency:"BRL",affiliation:f}})},[]),G=(0,k.useMemo)(function(){return(0,p.C$)(y.pathname)?"home":(0,p.VP)(y.pathname)?"produto":void 0},[y.pathname]),H=(0,k.useCallback)(function(a){a&&a.children.length>0&&J(a)},[]);return(0,k.useEffect)(function(){null!=d&&d.current&&C(d.current)},[C,d]),(0,k.useEffect)(function(){if(E&&!A&&!(0,r.isEmpty)(a)){if(window.dataLayer.push({items:void 0}),"home"===G){(0,o.b)({event_name:"view_item_list",company_country:"renner_br",journey:"current",section_name:"vitrine_horizontal_section",element_name:"vitrine_horizontal",event_type:"view",element_type:"list",screen_name:G,item_list_id:null==a?void 0:a.name,item_list_name:null==a?void 0:a.message,items:F(a),list_type:"recomendacao"});return}(0,o.b)({element_name:(null==a?void 0:a.message.replace(/ /g,"_"))||"vitrine_horizontal",section_name:"vitrine_horizontal_section",item_list_name:null==a?void 0:a.message,event_name:"view_item_list",company_country:"renner_br",screen_name:G,items:F(a),item_list_id:null==a?void 0:a.name,element_type:"image",list_type:"vitrine",event_type:"view",journey:"current"}),I(!0)}},[F,a,G,A,E]),(0,u.jsxs)("div",{ref:d,children:[(0,m.UE)(null==a?void 0:a.items)&&(0,u.jsxs)("div",{ref:H,className:"".concat(l().carouselContainer," wrapper"),"data-placement-type":b.placement,"data-watcher":b.watcher,children:[a.message?(0,u.jsx)("h2",{className:l().title,children:a.message}):(0,u.jsx)("h2",{className:l().title,children:"\xa0"}),(0,u.jsx)(h.Z,{forceRender:(0,m.UE)(null==a?void 0:a.items)&&f,children:(0,u.jsx)(v,{data:a,fastBuy:z,onSelectItem:function(c,d){var e=(0,s.RN)(b,c);if(window.dataLayer.push({items:void 0}),"home"===G){(0,o.b)({event_name:"select_item",journey:"current",company_country:"renner_br",section_name:"vitrine_horizontal_section",element_name:"ir_para_a_pdp",event_type:"click",element_type:"image",screen_name:G,item_list_id:null==a?void 0:a.name,item_list_name:null==a?void 0:a.message,items:[{product_id:null==c?void 0:c.productShortName,item_id:(0,t.Kj)(null==c?void 0:c.link),item_name:null==c?void 0:c.name,item_brand:null==c?void 0:c.brand,price:parseFloat(null==c?void 0:c.price)||void 0,currency:"BRL",item_list_name:null==a?void 0:a.message,item_category:null==c?void 0:c.category}]});return}(0,o.b)({event_name:"select_item",section_name:"vitrine_horizontal_section",element_name:"vitrine_horizontal",event_type:"click",element_type:d,screen_name:G,item_list_id:null==a?void 0:a.name,item_list_name:null==a?void 0:a.message,company_country:"renner_br",journey:"current",items:[{discount:(null==c?void 0:c.price)-(null==c?void 0:c.salePrice)||0,price:parseFloat(null==c?void 0:c.price)||void 0,product_id:null==c?void 0:c.productShortName,item_category:null==c?void 0:c.category,item_list_name:null==a?void 0:a.message,item_brand:null==c?void 0:c.brand,affiliation:e,item_name:null==c?void 0:c.name,item_id:null==c?void 0:c.id,currency:"BRL"}]})}})})]}),(!f||(0,m.xb)(null==a?void 0:a.items))&&(0,u.jsx)(u.Fragment,{children:(null==a?void 0:a.items)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"".concat(l().shimmer," only-desk"),children:(0,u.jsx)(i.Z,{className:l().deskShowcaseContainer})}),(0,u.jsx)("div",{className:"".concat(l().shimmer," only-mob"),children:(0,u.jsx)(i.Z,{className:l().mobileShowcaseContainer})})]})})]})}},11769:function(c,b,a){"use strict";a.d(b,{W5:function(){return i},Y_:function(){return j},ls:function(){return k}});var d=a(27812),e=a(67294),f=a(35049),g=a(13244),h=a(73816),i=function(){var a=(0,h.e)();(0,e.useEffect)(function(){(0,g.vs)(a.rrPage)},[])},j=function(b){var c=arguments.length>1&& void 0!==arguments[1]?arguments[1]:g.DA.LOADED,a=(0,e.useState)({}),d=a[0],j=a[1],i=(0,h.e)();return(0,e.useEffect)(function(){var a=(0,f.d5)(b,j,!0).subscribe();a&&(0,g.KM)(b,c,a,i.rrPage)},[b,i.rrPage,c]),d},k=function(a){var c=arguments.length>1&& void 0!==arguments[1]?arguments[1]:g.DA.LOADED,b=(0,e.useState)(new Array(a.length)),i=b[0],k=b[1],j=(0,h.e)();return(0,e.useEffect)(function(){var b=function(b){k(function(c){var e=a.indexOf(b.name);if(e<0)return c;var f=(0,d.Z)(c);return f[e]=b,f})};a.map(function(a){return(0,f.d5)(a,b,!0).subscribe()}
1).forEach(function(b,d){b&&(0,g.KM)(a[d],c,b,j.rrPage)})},[a,j.rrPage,c]),i}},18215:function(c,b,a){"use strict";a.d(b,{Ak:function(){return l},E3:function(){return r},ES:function(){return p},HV:function(){return t},HW:function(){return u},LP:function(){return o},a_:function(){return n},ow:function(){return m},wB:function(){return q}}),a(81898);var d=a(7792),e=a(99569),f=a(40097),g=a(38531),h=a(63291),i=a(10654),j=a(24870),k=function(b){var a=(0,e.Rw)(b,"prop.sku.freeGift");if(a)return Array.isArray(a)||g.Z.warn("attribute prop.sku.freeGift is not an array. {0}",a),a.map(function(a){return JSON.parse(a)})},l=function(a){return{description:(0,f.IL)(a,"prop.product.displayName"),img:(0,f.IL)(a,"prop.product.smallImageUrl"),link:(0,f.IL)(a,"prop.product.url"),skuList:(0,e.Rw)(a,"prop.product.skuListRefAttribute"),skuId:(0,e.Rw)(a,"prop.product.defaultSku"),defaultSku:(0,f.IL)(a,"prop.product.defaultSku"),productId:(0,f.IL)(a,"prop.product.repositoryId"),stampIds:(0,e.Rw)(a,"prop.product.availableStamps"),freeGift:k(a),brand:(0,f.IL)(a,"prop.product.brand.name"),category:(0,f.sm)(a,"dim.product.categoryHierarchy")[0]||"",id:(0,f.IL)(a,"prop.product.repositoryId"),url:"".concat(d.V.SiteStore.site.publicUrl||((0,i.sk)()?"":window.location.href)).concat((0,f.IL)(a,"prop.product.url"),"?sku=").concat((0,f.IL)(a,"prop.product.defaultSku")),price:(0,f.IL)(a,"prop.sku.activePrice"),recordId:(0,f.IL)(a,"record.id"),googleVtoEnabled:"1"===(0,f.IL)(a,"prop.product.googleVtoEnabled")}},m=function(a,b){if(!b)return Array.isArray(a)?a:[a||""];if(!a)return[b];var c=[];return(c=(c=Array.isArray(a)?a:a.split(",")).filter(function(a){return a!==b})).unshift(b),c},n=function(a){return(0,f.IL)(a.record,"dim.product.productModel")===h.e3},o=function(a){return(0,f.IL)(a.record,"dim.product.productModel")===h.cy},p=function(a){return a.productModel===h.cy},q=function(a,d){if(a.preOrder)return d||(0,j.nI)("product","product.box.preOrder.nodate.label");var b,c=null==a?void 0:null===(b=a.stamps)|| void 0===b?void 0:b.find(function(a){return!!a.description&&"tag"!==a.stampModel});return c&&c.description},r=function(b,c){var a;return b&&(null===(a=Object.keys(b))|| void 0===a?void 0:a.length)!==0?h.a3:c?c.includes("<")?h.JI:h.qJ:void 0},s=["perfumaria-e-cosmeticos","perfumeria-y-cosmeticos"],t=function b(a){return Array.isArray(a)?b(a[0]):s.some(function(b){return a.startsWith(b)})},u=function(a){return!a.hexCode&&a.image}},1336:function(c,b,a){"use strict";a.d(b,{Oo:function(){return h},RN:function(){return g}});var d=a(18215),e=a(40097),f=a(24870),g=function(b,c){var a;return(0,d.a_)(b)?(null==c?void 0:null===(a=c.sellerData)|| void 0===a?void 0:a.fantasyName)||(0,e.IL)(b.record,"dim.product.sellerName"):(0,f.nI)("product","product.soldBy.lrsa")},h=function(a){return(0,e.IL)(a.record,"dim.product.parentCategorie.displayName")}},38144:function(a){a.exports={"w-full":"ReactRRShowcase_w-full__la01z",hidden:"ReactRRShowcase_hidden__Hn6X6",title:"ReactRRShowcase_title__IvYrx",carouselContainer:"ReactRRShowcase_carouselContainer__6_2O4",arrowButtons:"ReactRRShowcase_arrowButtons__KBKen",productBoxContent:"ReactRRShowcase_productBoxContent__gE6V2",deskShowcaseContainer:"ReactRRShowcase_deskShowcaseContainer__u4Lyf",mobileShowcaseContainer:"ReactRRShowcase_mobileShowcaseContainer__JtzNg",shimmer:"ReactRRShowcase_shimmer__q6FUq"}}}])

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.