1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7325],{2383:(e,t,r)=>{"use strict";r.d(t,{$O:()=>l,Dx:()=>s,Uc:()=>d,k3:()=>n,r2:()=>c,tw:()=>a,zQ:()=>o});var i=r(40525);let o=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"latest",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,{data:n}=await i.re.get("/canais/avaliacoes/produto/".concat(e),{params:{order:r,page:o,perPage:3,ratings:t}});return n},n=async e=>{let{data:t}=await i.re.get("/canais/avaliacoes/".concat(e));return t},a=async(e,t,r)=>{await i.re.post("/canais/avaliacoes",{pedido_item_id:e,nota:t,comentario:r})},l=async(e,t,r)=>{await i.re.put("/canais/avaliacoes/".concat(e),{nota:t,comentario:r})},d=async(e,t)=>{await i.re.post("/canais/avaliacoes/".concat(e,"/curtir"),{curtir:t})},s=async(e,t)=>{await i.re.patch("/canais/avaliacoes/".concat(e,"/curtir"),{curtir:t})},c=async e=>{await i.re.delete("/canais/avaliacoes/".concat(e,"/curtir"))}},10775:(e,t,r)=>{"use strict";r.d(t,{$:()=>i});let i=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:2,maximumFractionDigits:3})},12147:()=>{},12681:(e,t,r)=>{"use strict";r.d(t,{i:()=>v});var i=r(18153),o=r(38993),n=r(14232),a=r(72452),l=r(41576),d=r(18847),s=r.n(d),c=r(76276),m=r(21053);let u=(0,m.default)(c.azJ,{target:"e1hkt7wb0"})("h1,h2,h3,h4,h5,h6{margin-bottom:0.0625rem !important;b{font-size:1rem !important;@media (max-width:30rem){font-size:0.875rem !important;}}}p{font-size:1rem !important;line-height:1.25rem !important;@media (max-width:30rem){line-height:1.375rem !important;font-size:0.875rem !important;}}ul li{list-style:disc;margin-left:1.25rem;}@media (max-width:30rem){margin-bottom:1rem;ul li{margin-left:1rem;}}"),h=(0,m.default)(c.azJ,{target:"e1hkt7wb1"})("h2{margin-bottom:0;}div:first-child{div:first-child{div{max-height:",e=>{let{$showMore:t}=e;return!t&&"none !important"},";}button{display:",e=>{let{$showMore:t}=e;return!t&&"none !important"},";}}}"),g=(0,m.default)(c.azJ,{target:"e1hkt7wb2"})("h2{margin-bottom:0;}@media (max-width:61.938rem){padding-top:0rem;}@media (max-width:30rem){margin-top:0;padding:0;.item{flex-direction:column;align-items:center;}}");var p=r(24873),f=r(31919);let b=s()(()=>r.e(4568).then(r.t.bind(r,14568,23)),{loadableGenerated:{webpack:()=>[14568]},ssr:!1}),v=e=>{var t;
1let{productContent:r,technicalSheet:d,showMore:s=!0,accordionIndex:c,setAccordionIndex:m,isCategoryPage:v}=e,{width:w}=(0,p.v)(),y=w<=768,Y=(0,f.q)(null!=(t=null==r?void 0:r.descricao)?t:""),[x,C]=(0,n.useMemo)(()=>{var e,t,i;if(!v)return["Informa\xe7\xf5es do Produto",Y];let[o,n,a]=null!=(e=null==Y?void 0:Y.split(/^<h[1-6]>(.+?)<\/h[1-6]>/))?e:[];return[null!=(t=null==r?void 0:r.seo_titulo)?t:n,null!=(i=null==r?void 0:r.seo_descricao)?i:a]},[v,Y]);return(0,i.Y)(a.mcf,{width:"full",maxWidth:"81.875rem",marginY:["1.25rem","4rem"],p:v&&!y?0:"",children:(0,i.Y)(a.Ydx,{allowToggle:!0,index:[c],onChange:e=>{m(Number(e))},children:(0,i.FD)(a.son,{flexDir:"column",gap:["0.0625rem","1.5rem"],children:[(null==r?void 0:r.descricao)&&""!==r.descricao&&(0,i.Y)(h,{id:"product-information",$showMore:s,"data-testid":"product-information",children:(0,i.FD)(a.BfY,{title:"".concat(x),showMoreDetails:!0,textButton:"Ver mais detalhes",noOfLines:s?y?4:2:1e4,children:[(0,i.Y)(u,{children:(0,i.Y)("span",{dangerouslySetInnerHTML:{__html:"".concat(C)}})}),!!r.video&&(0,i.Y)(a.ovh,{children:(0,i.Y)(b,{url:r.video,light:!1,width:872,height:488})})]})}),!!(null==d?void 0:d.length)&&(0,i.Y)(g,{id:"product-technical-sheet",w:"full","data-testid":"product-technical-sheet",children:(0,i.Y)(a.BfY,{title:"Ficha T\xe9cnica",children:(0,i.Y)(a.son,{className:"item",justifyContent:"space-between",alignItems:"flex-start",mb:"2.5rem",children:(0,i.Y)(a.XIK,{textAlign:"left",w:"full",children:(0,i.FD)(a.NNh,{children:[null==d?void 0:d.map((e,t)=>(0,i.FD)(a.Tr,{w:"full",display:"grid",gridTemplateColumns:"1fr 2fr",gap:{base:"1rem",md:"2rem"},alignItems:"center",rounded:"0.375rem",minH:"3rem",m:"0",css:(0,o.css)("&:nth-child(odd){background:rgba(93,168,255,0.08);}"),children:[(0,i.Y)(a.Td,{display:"flex",border:"none",maxW:"56.5rem",fontSize:"1rem",fontWeight:"600",p:{base:".875rem 0rem .875rem 1rem",md:"0.875rem 0rem 0.875rem 2rem"},rounded:"0.5rem 0rem 0rem 0.5rem",lineHeight:"1.125rem",color:"#6e6e6e",w:{base:"8.875rem",md:"full"},css:(0,o.css)("@media (max-width:20rem){width:7.625rem;font-size:0.75rem;}"),children:e.campo}),(0,i.Y)(a.Td,{display:"flex",border:"none",maxW:"56.5rem",fontSize:{base:"0.875rem",md:"1rem"},fontWeight:"400",p:{base:".875rem 1rem .875rem 0rem",md:"0.875rem 2rem 0.875rem 0rem"},rounded:"0rem 0.5rem 0.5rem 0rem",lineHeight:"1.125rem",color:"#6e6e6e",w:{base:"8.875rem",md:"full"},css:(0,o.css)("@media (max-width:20rem){font-size:0.75rem;}"),children:e.valor})]},t)),(null==r?void 0:r.manual)&&(0,i.FD)(a.Tr,{w:"full",display:"grid",gridTemplateColumns:"1fr 2fr",gap:{base:"1rem",md:"2rem"},alignItems:"center",rounded:"0.375rem",minH:"3rem",m:"0",css:(0,o.css)("&:nth-child(odd){background:rgba(93,168,255,0.08);}"),children:[(0,i.Y)(a.Td,{display:"flex",border:"none",maxW:"56.5rem",fontSize:"1rem",fontWeight:"600",p:{base:".875rem 0rem .875rem 1rem",md:"0.875rem 0rem 0.875rem 2rem"},rounded:"0.5rem 0rem 0rem 0.5rem",lineHeight:"1.125rem",color:"#6e6e6e",w:{base:"8.875rem",md:"full"},css:(0,o.css)("@media (max-width:20rem){width:7.625rem;font-size:0.75rem;}"),children:"Manual de instru\xe7\xf5es"}),(0,i.Y)(a.Td,{display:"flex",border:"none",maxW:"56.5rem",fontSize:{base:"0.875rem",md:"1rem"},fontWeight:"400",p:{base:".875rem 1rem .875rem 0rem",md:"0.875rem 2rem 0.875rem 0rem"},rounded:"0rem 0.5rem 0.5rem 0rem",lineHeight:"1.125rem",color:"#6e6e6e",w:{base:"8.875rem",md:"full"},css:(0,o.css)("@media (max-width:20rem){font-size:0.75rem;}"),children:(0,i.Y)(l.A,{href:r.manual.url,target:"_blank",children:"Download"})})]})]})})})})})]})})})}},22287:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(18153),o=r(77328),n=r.n(o);function a(e){let{id:t,content:r}=e;return(0,i.Y)(n(),{children:(0,i.Y)("script",{id:t,type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})})}},24924:()=>{},25136:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,F:()=>o});let i=e=>{var t,r,i;return{"@context":"https://schema.org/","@type":"Product",availability:e.availability,brand:{"@type":"Brand",name:e.brand},image:e.image,name:e.name,sku:null==(t=e.sku)?void 0:t.toString(),description:e.description,offers:{"@type":"Offer",priceCurrency:"BRL",price:null==(r=e.price)?void 0:r.toString()},review:e.review.comments.length?null==(i=e.review.comments)?void 0:i.map(e=>({"@type":"Review",datePublished:e.datePublished,reviewBody:e.reviewBody,reviewRating:{"@type":"Rating",ratingValue:e.ratingValue},author:{"@type":"Person",name:e.author}}
1)):void 0,aggregateRating:e.review.ratingValue&&e.review.reviewCount?{"@type":"AggregateRating",ratingValue:e.review.ratingValue.toString(),ratingCount:e.review.reviewCount.toString()}:void 0}},o=()=>({"@context":"https://schema.org","@type":"Organization",url:"https://www.gazin.com.br/",sameAs:["https://www.facebook.com/gazin","https://www.instagram.com/gazin/","https://www.youtube.com/user/gazinoficial","https://www.linkedin.com/company/gazin/"],logo:"https://ecommerce30032022.blob.core.windows.net/e-commerce/midias/imagens/2024/05/2c05fbca-55c3-419c-9d01-f5c07cc7da38.png",name:"Gazin | Sua Loja de Telefonia, Eletrodom\xe9sticos e Muito Mais",description:"Encontre na Gazin uma ampla sele\xe7\xe3o de telefonia, eletrodom\xe9sticos e muito mais. Produtos de qualidade com os melhores pre\xe7os do mercado. Acesse j\xe1!",address:{"@type":"PostalAddress",streetAddress:"Rodovia PR 082 S/N KM 01",addressLocality:"Douradina",addressRegion:"PR",addressCountry:"BR",postalCode:"87485-000"},contactPoint:{"@type":"ContactPoint",email:"[email protected]",telephone:"0800-644-9292"}})},26402:()=>{},30711:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var i=function(e){return e.Delivery="entrega",e.PickUpInStore="retira",e}({})},31651:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});var i=r(18153),o=r(72452);r(14232);let n=e=>{let{rating:t}=e;return(0,i.FD)(o.Tku,{backgroundColor:"neutral.50",borderRadius:"0.5rem",minHeight:{base:"6.5rem",md:"11rem"},padding:{base:"1.5rem",md:"3rem"},width:"100%","data-testid":"average-rating",children:[(0,i.Y)(o.EYj,{color:"neutral.700",fontSize:{base:"0.875rem",md:"1.25rem"},fontWeight:{base:"400",md:"700"},children:"Nota m\xe9dia"}),(0,i.Y)(o.Moy,{description:t.toFixed(1),fontSize:{base:"1.75rem",md:"1.75rem"},fontWeight:"600",rating:t,starSize:{base:"2.25rem",md:"2rem"}})]})}},31919:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});let i=e=>e.replace(/<p[^>]*>\s*<br\s*\/?>\s*<\/p>/g,"<br />").replace(/<\/p>/g,"</p><br />")},39791:(e,t,r)=>{"use strict";r.d(t,{EYj:()=>i.EYj,azJ:()=>i.azJ});var i=r(72452)},59711:(e,t,r)=>{"use strict";r.d(t,{M:()=>s});var i=r(18153),o=r(72452),n=r(89099),a=r(14232),l=r(65816),d=r(2383);let s=e=>{let{colorVoltage:t,date:r,description:s,id:c,liked:m,quantityOfLikes:u,quantityOfDislikes:h,name:g,rating:p}=e,[f,b]=(0,a.useState)(!1),[v,w]=(0,a.useState)(m),[y,Y]=(0,a.useState)(!1),[x,C]=(0,a.useState)(),E=(0,a.useRef)(null),z=(0,n.useRouter)(),S={color:"var(--chakra-colors-neutral-50)",css:{svg:{fill:"var(--chakra-colors-primary-500)",path:{strokeWidth:"0.0625rem"}}},height:"1.1875rem",width:"1.1875rem"},D={color:"var(--chakra-colors-primary-500)",height:"0.9rem",marginRight:"0.125rem",width:"0.9rem"},_=e=>{if(!(0,l.Gs)())return z.push("/login");if(null===v){w(e),b(!0),(0,d.Uc)(c,e);return}if(v===e){w(null),(0,d.r2)(c);return}(0,d.Dx)(c,e),w(e),b(!0)};(0,a.useEffect)(()=>{if(!(null==E?void 0:E.current))return;let e=parseFloat(window.getComputedStyle(E.current).lineHeight);Math.ceil(E.current.clientHeight/e)>3&&(Y(!0),C(3))},[E]);let k=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,i.FD)(o.ztN,{backgroundColor:"primary.100",borderRadius:"0.25rem",paddingX:"0.5rem",paddingY:"0.375rem","data-testid":"review-comment-".concat(c),children:[(0,i.Y)(o.TYA,{...S,"data-testid":e?"like":"dislike",color:"primary.100",cursor:"pointer",onClick:()=>_(e),...e?{}:{transform:"rotate(180deg)"}}),(0,i.Y)(o.EYj,{color:"primary.500",fontSize:"0.625rem",fontWeight:"500",lineHeight:"0.625rem",marginInlineStart:"0.125rem !important",children:"Obrigado pela avalia\xe7\xe3o"})]})};return(0,i.FD)(o.azJ,{backgroundColor:"neutral.50",borderRadius:"0.375rem",paddingX:"1.25rem",paddingY:"1rem",width:"100%",children:[(0,i.FD)(o.son,{justifyContent:"space-between",children:[(0,i.FD)(o.azJ,{children:[(0,i.Y)(o.EYj,{color:"neutral.700",fontSize:"1rem",fontWeight:"700",children:g}),(0,i.Y)(o.EYj,{color:"neutral.500",fontSize:"0.75rem",fontWeight:"400",children:t})]}),(0,i.FD)(o.azJ,{children:[(0,i.Y)(o.Moy,{rating:p,description:p.toFixed(1)}),(0,i.Y)(o.EYj,{color:"neutral.500",fontSize:"0.75rem",fontWeight:"400",marginTop:"0.25rem",textAlign:"end",children:r})]})]}),(0,i.FD)(o.azJ,{marginY:"1rem",children:[(0,i.Y)(o.EYj,{"data-testid":"comment-description",color:"neutral.700",fontSize:"0.875rem",fontWeight:"400",lineHeight:"1.323rem",noOfLines:x,ref:E,dangerouslySetInnerHTML:{__html:s.replace(/\n/g,"<br>")}}
1),y&&(0,i.Y)(o.EYj,{width:"fit-content",cursor:"pointer",color:"primary.500",fontSize:"0.75rem",lineHeight:"1.134rem",onClick:()=>C(e=>3===e?void 0:3),children:x?"Ler mais":"Ler menos"})]}),(0,i.FD)(o.ztN,{height:"2rem",children:[(0,i.Y)(o.EYj,{color:"neutral.700",fontSize:{base:"0.625rem",md:"0.75rem"},lineHeight:"0.75rem",marginTop:"0.125rem",children:"Essa avalia\xe7\xe3o foi \xfatil?"}),f&&v?k():(0,i.FD)(o.son,{alignItems:"center",justifyContent:"center",children:[(0,i.Y)(o.TYA,{cursor:"pointer","data-testid":"like",onClick:()=>_(!0),...v&&!f?S:D}),(0,i.Y)(o.EYj,{color:"neutral.600",fontSize:{base:"0.625rem",md:"0.75rem"},lineHeight:"0.75rem",marginTop:"0.1875rem",children:"(".concat(u,")")})]}),f&&!1===v?k(!1):(0,i.FD)(o.son,{alignItems:"center",justifyContent:"center",children:[(0,i.Y)(o.TYA,{cursor:"pointer","data-testid":"dislike",onClick:()=>_(!1),transform:"rotate(180deg)",...!1===v&&!f?S:D}),(0,i.Y)(o.EYj,{color:"neutral.600",fontSize:{base:"0.625rem",md:"0.75rem"},lineHeight:"0.75rem",marginTop:"0.1875rem",children:"(".concat(h,")")})]})]})]})}},67136:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});var i=r(14232),o=r(90376);let n=(e,t)=>{let[r,n]=(0,i.useState)({top:[],middle:[],bottom:[]});return(0,i.useEffect)(()=>{(0,o.K)(e,{productId:null==t?void 0:t.productId,categorySlug:null==t?void 0:t.categorySlug,subcategorySlug:null==t?void 0:t.subcategorySlug,cartId:null==t?void 0:t.cartId}).then(e=>{n(e)}).catch(()=>{n({top:[],middle:[],bottom:[]})})},[e,null==t?void 0:t.productId,null==t?void 0:t.categorySlug,null==t?void 0:t.subcategorySlug,null==t?void 0:t.cartId]),{showcaseTop:null==r?void 0:r.top,showcaseMiddle:null==r?void 0:r.middle,showcaseBottom:null==r?void 0:r.bottom}}},67140:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d});var i=r(14232),o=function(){return(o=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},n=function(e){var t=e.animate,r=void 0===t||t,n=e.animateBegin,a=e.backgroundColor,l=void 0===a?"#f5f6f7":a,d=e.backgroundOpacity,s=void 0===d?1:d,c=e.baseUrl,m=void 0===c?"":c,u=e.children,h=e.foregroundColor,g=e.foregroundOpacity,p=e.gradientRatio,f=void 0===p?2:p,b=e.gradientDirection,v=e.uniqueKey,w=e.interval,y=e.rtl,Y=e.speed,x=e.style,C=e.title,E=void 0===C?"Loading...":C,z=e.beforeMask,S=void 0===z?null:z,D=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)0>t.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r}(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),_=v||Math.random().toString(36).substring(6),k=_+"-diff",F=_+"-animated-diff",j=_+"-aria",I="0; "+(void 0===w?.25:w)+"; 1",W=(void 0===Y?1.2:Y)+"s";return(0,i.createElement)("svg",o({"aria-labelledby":j,role:"img",style:o(o({},void 0===x?{}:x),void 0!==y&&y?{transform:"scaleX(-1)"}:null)},D),E?(0,i.createElement)("title",{id:j},E):null,S&&(0,i.isValidElement)(S)?S:null,(0,i.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+m+"#"+k+")",style:{fill:"url("+m+"#"+F+")"}}),(0,i.createElement)("defs",null,(0,i.createElement)("clipPath",{id:k},u),(0,i.createElement)("linearGradient",{id:F,gradientTransform:"top-bottom"===(void 0===b?"left-right":b)?"rotate(90)":void 0},(0,i.createElement)("stop",{offset:"0%",stopColor:l,stopOpacity:s},r&&(0,i.createElement)("animate",{attributeName:"offset",values:-f+"; "+-f+"; 1",keyTimes:I,dur:W,repeatCount:"indefinite",begin:n})),(0,i.createElement)("stop",{offset:"50%",stopColor:void 0===h?"#eee":h,stopOpacity:void 0===g?1:g},r&&(0,i.createElement)("animate",{attributeName:"offset",values:-f/2+"; "+-f/2+";
1 "+(1+f/2),keyTimes:I,dur:W,repeatCount:"indefinite",begin:n})),(0,i.createElement)("stop",{offset:"100%",stopColor:l,stopOpacity:s},r&&(0,i.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+f),keyTimes:I,dur:W,repeatCount:"indefinite",begin:n})))))},a=function(e){return e.children?(0,i.createElement)(n,o({},e)):(0,i.createElement)(l,o({},e))},l=function(e){return(0,i.createElement)(a,o({viewBox:"0 0 476 124"},e),(0,i.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,i.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,i.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,i.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,i.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,i.createElement)("circle",{cx:"20",cy:"20",r:"20"}))};let d=a},76276:(e,t,r)=>{"use strict";r.d(t,{azJ:()=>i.azJ});var i=r(72452)},81674:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/produto/[...produto]",function(){return r(91573)}])},85291:(e,t,r)=>{"use strict";r.d(t,{EYj:()=>i.EYj,Tku:()=>i.Tku,cGx:()=>i.cGx,ztN:()=>i.ztN});var i=r(72452)},89222:(e,t,r)=>{"use strict";r.d(t,{son:()=>i.son});var i=r(72452)},90474:(e,t,r)=>{"use strict";r.d(t,{Bvv:()=>i.Bvv,EYj:()=>i.EYj,azJ:()=>i.azJ,son:()=>i.son});var i=r(72452)},90938:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});let i=(e,t)=>null==e?void 0:e.some(e=>e.anuncio_id===t&&e.quantidade>=10)},91573:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>td,default:()=>ts});var i=r(18153),o=r(52589),n=r(72452),a=r(18847),l=r.n(a),d=r(89099),s=r(14232),c=r(13734),m=r(41576);let u=globalThis?.document?s.useLayoutEffect:s.useEffect;var h=r(38993),g=r(39791),p=r(87109),f=r(27888),b=r(21053);let v=(0,b.default)("div",{target:"e197m6o10"})("max-width:",e=>{let{maxW:t}=e;return t?"".concat(t-24,"px"):"100%"},";padding-right:0.5;position:relative;.swiper-pagination-bullets{display:none;}.swiper-wrapper{padding-top:1rem;padding-bottom:0.5rem;}.swiper-slide{background-color:white;border-radius:0.5rem;height:auto !important;max-width:fit-content;min-width:280px !important;width:280px !important;position:relative;transition:transform 0.3s ease 0.1s;&:hover{transform:translateY(-0.5rem);}}"),w=(0,b.default)(f.qr,{target:"e197m6o11"})("flex:1;");var y=r(33123),Y=r(63176);let x=e=>{let{maxWidth:t,products:r}
1=e,[o]=(0,s.useState)(null),n={modules:[p.Vx,p.dK,p.Ze,p.Ij],pagination:{type:"bullets",clickable:!0},navigation:!1,zoom:{maxRatio:1.6},onSwiper:o,speed:800,slidesPerView:1.25,spaceBetween:10,autoplay:{delay:4e3},breakpoints:{810:{spaceBetween:12},1165:{slidesPerView:"auto",spaceBetween:16},1300:{slidesPerView:3,spaceBetween:16}},style:{padding:"1.2rem 1rem 1.65rem 0.35rem"}};return(0,i.Y)(v,{maxW:t,children:(0,i.Y)(f.RC,{...n,children:r.map((e,t)=>(0,i.Y)(w,{children:(0,i.Y)(y.y,{analyticsProduct:(0,Y.UA)(e),border:"1px solid #E3E3E8",product:(0,Y.h_)(e)})},t))})})},C=e=>{let{darkTheme:t=!1,products:r,title:o,subtitle:n}=e,a=(0,s.useRef)(null),l=function(e,t){let{observeMutation:r=!1,enabled:i,fallback:o}=(void 0)??{},[n]=function(e){let{getNodes:t,observeMutation:r=!0,enabled:i=!0,fallback:o=[]}=e,[n,a]=(0,s.useState)(o),[l,d]=(0,s.useState)(0);return u(()=>{if(!i)return;let e=t(),o=e.map((e,t)=>(function(e,t){if(!e)return void t(void 0);t({width:e.offsetWidth,height:e.offsetHeight});let r=new(e.ownerDocument.defaultView??window).ResizeObserver(r=>{let i,o;if(!Array.isArray(r)||!r.length)return;let[n]=r;if("borderBoxSize"in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,o=t.blockSize}else i=e.offsetWidth,o=e.offsetHeight;t({width:i,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)})(e,e=>{a(r=>[...r.slice(0,t),e,...r.slice(t+1)])}));if(r){let t=e[0];o.push(function(e,t){if(!e||!e.parentElement)return;let r=new(e.ownerDocument?.defaultView??window).MutationObserver(()=>{t()});return r.observe(e.parentElement,{childList:!0}),()=>{r.disconnect()}}(t,()=>{d(e=>e+1)}))}return()=>{o.forEach(e=>{e?.()})}},[l,i]),n}({observeMutation:r,enabled:i,fallback:o?[o]:void 0,getNodes:()=>["object"==typeof e&&null!==e&&"current"in e?e.current:e]});return n}(a),d=(0,h.keyframes)("from{opacity:0}to{opacity:1}");return(0,i.Y)(g.azJ,{animation:"".concat(d," 0.7s"),as:"section",bgColor:"white",flex:"1",id:"carousel-related-products",mb:"1rem",mt:"2rem",ref:a,children:r&&(0,i.FD)(i.FK,{children:[(0,i.Y)(g.EYj,{as:"h2",color:t?"neutral.0":"neutral.800",fontSize:["1rem","1.5rem","1.625rem"],fontWeight:"600",marginBottom:"0.5rem",children:o}),n&&(0,i.Y)(g.EYj,{as:"p",color:t?"neutral.0":"neutral.600",fontSize:{base:".875rem",md:"1.125rem"},fontWeight:"400",display:"block",children:n}),(0,i.Y)(x,{maxWidth:null==l?void 0:l.width,products:r})]})})},E=e=>{let{productSlug:t,productId:r,colorSlug:o,voltageSlug:a}
1=e,[l,d]=(0,s.useState)("");(0,s.useEffect)(()=>{d((e=>{let t=/iPhone|iPad|iPod|Macintosh/i.test(e),r=/Android/i.test(e);return t?"ios":r?"android":""})(navigator.userAgent))},[]);let c=async e=>new Promise((t,r)=>{let i=setTimeout(()=>{r(Error("Tempo limite para abrir o aplicativo excedido."))},2500);window.addEventListener("pagehide",e=>{clearTimeout(i),r(e)},{once:!0}),window.addEventListener("pageshow",()=>{clearTimeout(i),t(!0)},{once:!0}),window.location.href=e}),m=e=>{window.location.href=e},u=async()=>{let e="gazin://produto/".concat(t,"/").concat(r,"/").concat(o,"/").concat(a),i="gazin://gazin/produto/".concat(t,"/").concat(r,"/").concat(o,"/").concat(a);try{l.includes("ios")?await c(e):l.includes("android")&&await c(i)}catch(e){l.includes("ios")?m("itms-apps://itunes.apple.com/br/app/gazin-compras-online/id1541397077"):l.includes("android")&&m("market://details?id=com.b2capp")}};return(0,i.Y)(n.Tkt,{buttonLabel:"Baixar",message:"Baixe o aplicativo e compre com mais facilidade.",buttonVariant:"secondary",width:"100%",handleDownloadOrAccessApplication:u,css:{p:{marginBottom:0}}})};var z=r(92270),S=r(90474),D=r(76276);let _={[r(71596).H.LIVELO]:function(e){let{campaign:t,productValue:r}=e,o=Math.round(r/t.value*t.points);return(0,i.Y)(n.Jfi,{color:"neutral.600",fontSize:[".875rem",".938rem"],icon:n.igt,showBorder:!0,text:"Acumule at\xe9 ".concat(o," ").concat(1===o?"ponto":"pontos"),sx:{p:{marginTop:"0 !important",marginBottom:"0 !important"}}})}};function k(e){let t=_[e.campaign.slug];return(0,i.Y)(D.azJ,{mb:"1.5rem",children:(0,i.Y)(t,{...e})})}let F=(0,b.default)("img",{target:"e3ft2lj0"})("width:4rem;height:4rem;display:flex;");var j=r(24873);function I(e){let{promotionImages:t}=e,{width:r}=(0,j.v)(),o=r<=768?null==t?void 0:t.mobile:null==t?void 0:t.desktop;return(null==t?void 0:t.mobile)||(null==t?void 0:t.desktop)?(0,i.Y)(F,{src:o}):null}var W=r(13876),P=r(88199),R=r(989),A=r(39631),O=r(4837),T=r(30080),N=r(18222),B=r(90938),H=r(89922),L=r(63827),V=r(34891),M=r(46191);let J=e=>{let{confirmVoltage:t,onClose:r,voltageProduct:o}=e;return(0,i.FD)(i.FK,{children:[(0,i.Y)(n.EYj,{color:"#4D5163",fontSize:"1.5rem",fontWeight:"600",mb:"1rem",textAlign:"center",children:"Tem certeza que deseja continuar?"}),(0,i.FD)(n.son,{alignItems:"center",color:"#646981",flexDir:"column",children:[(0,i.Y)(n.EYj,{mb:"0",children:"O produto selecionado \xe9 de:"}),(0,i.Y)(n.EYj,{fontWeight:"600",mb:"2rem",children:(null==o?void 0:o.valor)?o.valor:""})]}),(0,i.FD)(n.son,{alignItems:"center",gap:"1rem",justifyContent:"center",width:"100%",children:[(0,i.Y)(n.cGW,{_active:{bgColor:"primary.500",borderColor:"primary.500",color:"white"},_hover:{bgColor:"white",color:"primary.500"},borderColor:"primary.500",color:"primary.500",flex:"1",h:"3rem",label:"Cancelar",onClick:r,padding:"0.625rem",variantType:"outline"}),(0,i.Y)(n.cGW,{flex:"1",h:"3rem",label:"Continuar",onClick:t})]})]})},q=e=>{var t;let{activeVariationAdId:r,adActiveId:o,ads:a,dataProductCart:l,existsSellers:d,freight:m,freightRef:u,hasWarranty:h,productQuantity:g,route:p,setShowError:f,shippingLoading:b,uniqueVoltages:v,voltageProduct:w}
1=e,y=(0,T.B_)(),[Y,x]=(0,s.useState)(!1),[C,E]=(0,s.useState)(!1),[z,S]=(0,s.useState)(!1),[D,_]=(0,s.useState)(!1),[k,F]=(0,s.useState)(!1),[j,I]=(0,s.useState)(!1),W=(0,R._Z)(m,a),A=(0,B.S)((null==(t=y.carrinhoStore)?void 0:t.carrinhos_itens)||[],o),O=d?o:r;function q(e,t,r,i){let o={quantidade:t};return r&&!i&&Object.assign(o,{keepBuying:r}),i&&Object.assign(o,{selectedPickUp:i}),p.push({pathname:"/garantia/".concat(e),query:o})}async function K(e,t,r,i){if(i&&(0,V.f)(),await y.adicionar(e,t),r&&!i)return x(!1),I(!0),setTimeout(()=>{I(!1)},3e3);r||i||(0,V.I)();let o="".concat("https://checkout.gazin.com.br");return p.push({pathname:o,query:{isCompra:!0}},o)}async function G(){let e=z&&(null==W?void 0:W.id_anuncio)?W.id_anuncio:O;return h?(x(!1),q(e,Number(g),C,z)):K(Number(g),e,C,z)}async function U(e,t){var r,i,o;let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n?_(!0):F(!0),S(a),E(n&&!a);let l=await (0,N.Y5)({featureFlag:"smart_delivery"}),d=!1;l.configuracoes.map(e=>{e.situacao===N.GM.ATIVO&&(d=!0)});let s=(null==l?void 0:l.situacao)===N.GM.ATIVO;if(!(0,H.Qs)(H.VP.cep)&&!(d&&s)){let e="Informe seu CEP";return null==(r=u.current)||r.setError(e),n?_(!1):F(!1),c.toast.error(e)}if(A)return n?_(!1):F(!1),c.toast.error("Quantidade m\xe1xima atingida");if(v&&!w||!w.slug)return n?_(!1):F(!1),f(!0),null==(o=document)||null==(i=o.querySelector(".opcoes-voltagem-produto"))?void 0:i.scrollIntoView({block:"center",behavior:"smooth"});let m=(0,M.RJ)(w.slug),g=m||!v||1===v.length,p=(0,M.hN)(w.slug),b=!m&&v&&w.slug;if(g&&!p)return(n?_(!1):F(!1),h)?q(t,e,n,a):K(e,t,n,a);(b||p)&&(_(!1),F(!1),x(!0))}(0,s.useEffect)(()=>{l&&U(l.quantidade,l.anuncio_id)},[l]);let Q=(0,s.useMemo)(()=>{let e="Adicionar ao carrinho",t=!1;if(W){t=!0;let r=(null==W?void 0:W.id_anuncio)===o,i=a.find(e=>e.id===o),n=a.find(e=>e.id===(null==W?void 0:W.id_anuncio));e=!r&&n&&i&&n.preco.por!==i.preco.por?"Retirar por ".concat((0,L.yw)(n.prec
1o.por)):"Retirar"}return(0,i.Y)(n.cGW,{_active:{bgColor:"success.400",borderColor:"success.400",color:"white"},_hover:{bgColor:"success.500",color:"white",svg:{color:"white"}},isDisabled:b,isLoading:!Y&&D,bg:"none",borderColor:"success.500",borderRadius:"0.25rem",color:"success.500",height:"3.375rem",label:e,leftIcon:t?(0,i.Y)(n.pru,{color:"success.500",h:"1.5rem",marginRight:"-1.5",w:"1.5rem"}):void 0,onClick:()=>U(Number(g),t&&(null==W?void 0:W.id_anuncio)?W.id_anuncio:O,!0,t),transition:"all .3s",variantType:"outline",width:"100%","data-testid":"add-to-cart-button"})},[o,a,Y,D,W,g,b,O]);return(0,i.FD)(i.FK,{children:[j&&(0,i.Y)(n.MIt,{GProgressProps:{borderRadius:"full",color:"success",hasStripe:!1,height:"0.5rem",isAnimated:!1,isIndeterminate:!1,time:1,variant:"solid"},icon:(0,i.Y)(n.iQ6,{color:"success.500",h:{base:"1.875rem",md:"3.625rem"},w:{base:"1.875rem",md:"3.625rem"}}),setIsVisible:I,timeToClose:2,title:"Produto adicionado ao carrinho com sucesso!"}),(0,i.Y)(n.$iP,{isOpen:Y,modalBody:(0,i.Y)(J,{confirmVoltage:G,setDisplayConfirmationVoltage:x,voltageProduct:w,onClose:()=>{x(!1),_(!1),F(!1),E(!1),S(!1)}}),onClose:()=>{x(!1),_(!1),F(!1)},propsModal:{isCentered:!0,size:"lg"},styleHeader:"clean"}),(0,i.FD)(n.son,{direction:"column",gap:"1rem",mt:"1.5rem",children:[(0,i.Y)(n.cGW,{borderRadius:"0.25rem",height:"3.375rem",isLoading:!Y&&k,label:"Comprar agora",leftIcon:(0,i.Y)(n.c8l,{color:P.w.colors.white,height:"1.1rem",width:"1.1rem"}),onClick:()=>U(Number(g),O),variant:"success",width:"100%","data-testid":"buy-now-button"}),Q]})]})},K={backgroundColor:"#F4F4F7",color:P.w.primary.main,fontWeight:"500"},G=e=>{let{onChange:t,onlyShowSuffixWhenListIsOpen:r,options:o,value:a,label:l,suffix:d}=e;return(0,i.Y)(n.AMh,{closeOnBlur:!1,flip:!1,matchWidth:!0,placement:"bottom-end",children:e=>{let{isOpen:s,onClose:c}=e,m=d&&(s===r||!r);return(0,i.FD)(i.FK,{children:[(0,i.Y)(n.Wvm,{children:(0,i.FD)(n.$nd,{"aria-label":"Adicionar produtos ao carrinho",as:"div",color:P.w.colors.grey[200],cursor:"pointer",display:"flex",flex:"1",fontSize:".875rem",fontWeight:"600",height:"2.625rem",width:"full","data-testid":"quantity-selector-button",children:[(0,i.FD)(n.son,{alignItems:["flex-start","center"],direction:["column","row"],flex:"1",justifyContent:"space-between",children:[(0,i.Y)(n.azJ,{fontSize:".875rem",children:l}),!!m&&(0,i.Y)(n.azJ,{fontSize:".75rem",lineHeight:".9rem",mr:[".5rem",".6rem"],children:d})]}),(0,i.Y)(n.son,{alignItems:"center",children:(0,i.Y)(n.Pl9,{color:P.w.primary.main,height:".65rem",transform:s?"rotate(-90deg)":"rotate(90deg)",width:".65rem"})})]})}),(0,i.Y)(n.hlN,{_focus:{boxShadow:"none"},borderRadius:".25rem",borderWidth:"0",boxShadow:"none","data-popper-placement":"bottom-end",minW:{base:"100%",lg:"max-content"},width:"inherit",children:(0,i.Y)(n.ej9,{borderRadius:".25rem",boxShadow:"0 .5rem 1.5625rem #1617171A",paddingX:"0",children:(0,i.Y)(n.Tku,{w:"full",children:o.map(e=>{let r=e.value===a?K:{};return(0,i.Y)(n.son,{_hover:K,alignContent:"flex-start",cursor:"pointer",flex:"1",fontSize:".875rem",onClick:()=>(e=>{t(e),c()})(e.value),paddingX:"1.125rem",paddingY:".625rem",w:"full",...r,"data-testid":"quantity-option-".concat(e.value),children:e.label},e.value)})})})})]})}})};var U=r(97314),Q=r(89222);function X(e){let{discountPercentage:t,isAvailable:r=!0}=e;return(0,i.Y)(i.FK,{children:(0,O.V4)({discountPercentage:t,isAvailable:r})&&(0,i.Y)(Q.son,{alignItems:"center",background:"#6bb70b",borderRadius:"0.375rem",color:"#ffffff",fontSize:"0.75rem",fontWeight:"600",justifyContent:"center",lineHeight:"0.875rem",minH:"1.125rem",minW:"2.688rem",children:"-".concat(t,"%")})})}function $(e){let{discountValue:t}=e;return(0,i.Y)(i.FK,{children:(0,O.$d)(t)&&(0,i.Y)(n.son,{bgColor:"#0D71F0",borderRadius:"0.125rem",justifyContent:"center",lineHeight:"1rem",maxW:"12rem",px:"0.625rem",py:"0.25rem",children:(0,i.FD)(n.EYj,{color:"#FFF",fontSize:"0.813rem",mb:"0",children:["Economia de ",(0,L.yw)(t)]})})})}var Z=r(8858),ee=r(50535),et=r(40113),er=r(86251),ei=r(10775),eo=r(85291),en=r(69058);let ea=e=>{let{installments:t}=e;return(0,i.FD)(i.FK,{children:[(0,i.Y)(eo.Tku,{w:"100%",gap:"0.75rem",mt:"0.5rem",spacing:0,alignItems:"flex-start",maxH:{base:"20.75rem",md:"22.3125rem"},overflow:"auto",scrollBehavior:"smooth",css:{"&::-webkit-scrollbar":{width:"0.375rem",he
1ight:"80%"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#7C8096",borderRadius:"3.125rem"},"&::-webkit-scrollbar-track":{backgroundColor:"#DCDDE3",borderRadius:"3.125rem"}},paddingRight:{base:"0.75rem",md:"1rem"},mb:{base:0,md:"0.5rem"},children:null==t?void 0:t.map((e,r)=>{let{quantity:o,interestRate:n,amount:a,total:l}=e,d=t.length-1===r;return(0,i.FD)(s.Fragment,{children:[(0,i.FD)(eo.Tku,{alignItems:"flex-start",w:"100%",spacing:0,pb:d?"0.5rem":0,children:[(0,i.FD)(eo.ztN,{color:"neutral.700",fontSize:{base:"0.875rem",md:"1rem"},lineHeight:{base:"1.225rem",md:"1.4rem"},alignItems:"center",justifyContent:"space-between",w:"100%","data-testid":"installment-".concat(o),children:[(0,i.FD)(eo.EYj,{fontWeight:600,children:[o," x ",(0,L.yw)(a)]}),(0,i.FD)(eo.EYj,{color:"neutral.400",ml:"auto",fontWeight:700,children:["Total"," ",(0,i.Y)(eo.EYj,{as:"span",color:"neutral.700",children:(0,L.yw)(l)})]})]}),(0,i.Y)(eo.EYj,{color:"neutral.600",lineHeight:{base:"0.875rem",md:"1.05rem"},fontSize:{base:"0.625rem",md:"0.75rem"},children:n?"Com juros de ".concat(n.toString().replace(".",","),"%"):"Sem juros"})]}),!d&&(0,i.Y)(eo.cGx,{color:"#E3E3E8",mt:0})]},"".concat(r).concat(o))})}),(0,i.Y)(eo.cGx,{color:"#E3E3E8",display:{base:"block",md:"none"}}),(0,i.Y)(eo.ztN,{alignItems:"center",justifyContent:"flex-start",w:"100%",gap:"1.125rem",children:en.j[er.K.Credit_card]})]})},el=e=>{let{slug:t,icon:r,name:o,description:a,installments:l,installmentsMaxQuantityWithoutInterest:d,totalInCash:c,totalInInstallments:m,hasPriceVariation:u}=e,[h,g]=(0,s.useState)(t===er.K.Credit_card),p=(0,s.useRef)(null),f=t===er.K.Credit_card?m:c;(0,s.useEffect)(()=>{t===er.K.Credit_card&&l&&(g(!0),p.current&&p.current.scrollIntoView({behavior:"smooth",block:"start"}))},[t,l]);let b=Array.from({length:d},(e,t)=>({amount:f/(t+1),interestRate:0,quantity:t+1,total:f}));return(0,i.FD)(n.Tku,{w:"100%",ref:p,children:[(0,i.FD)(n.ztN,{color:"primary.500",fontWeight:600,fontSize:{base:"1rem",md:"1.25rem"},lineHeight:{base:"1.4rem",md:"1.75rem"},justifyContent:"space-between",w:"100%",alignItems:"center",cursor:"pointer",onClick:()=>{g(!h)},"data-testid":"payment-method-".concat(t,"-info"),children:[(0,i.FD)(n.ztN,{alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",children:[r,(0,i.Y)(n.EYj,{children:o})]}),(0,i.Y)(n.Pl9,{as:"button",color:"primary.500",height:".65rem",width:".65rem",cursor:"pointer",transform:h?"rotate(90deg)":"rotate(0deg)"})]}),(0,i.Y)(n.Tku,{"data-testid":"payment-method-content",color:"neutral.600",alignItems:"flex-start",w:"100%",display:h?"flex":"none",children:t===er.K.Credit_card?(0,i.Y)(ea,{installments:l||b}):(0,i.FD)(i.FK,{children:[(0,i.Y)(n.EYj,{fontSize:"0.625rem",lineHeight:"0.875rem",children:a}),f&&(0,i.FD)(n.EYj,{fontSize:"0.875rem",lineHeight:"1.225rem",fontWeight:700,color:"neutral.400",children:[u?"A partir de ":"Total "," ",(0,i.Y)(n.EYj,{as:"span",color:"neutral.700",children:ei.$.format(f)})]})]})})]})},ed=e=>{let{installments:t,installmentsMaxQuantityWithoutInterest:r,totalInCash:o,totalInInstallments:a,hasPriceVariation:l=!1}=e,{isOpen:d,onOpen:c,onClose:m}=(0,n.j16)(),{payment:u}=(0,Z.j)(),h=Object.values(u).filter(e=>e);return(0,i.FD)(i.FK,{children:[(0,i.FD)(n.$nd,{w:"100%",h:"2.375rem",border:"0.0625rem solid #A0A4B3",bg:"transparent",_hover:{bg:"transparent"},mt:3,onClick:c,display:"flex",justifyContent:"space-between",alignItems:"center","data-testid":"button-payment-information",children:[(0,i.FD)(n.ztN,{display:"flex",justifyContent:"space-between",alignItems:"flex-end",gap:"0",fontSize:"0.75rem",lineHeight:"0.9rem",color:"primary.500",children:[(0,i.Y)(n.Bln,{width:"1rem",he
1ight:"1rem",variant:"blue"}),(0,i.Y)(n.EYj,{children:"Mais formas de pagamento"})]}),(0,i.Y)(n.Pl9,{color:"primary.500",height:".65rem",width:".65rem"})]}),(0,i.FD)(n.aFV,{onClose:m,isOpen:d,size:{base:"xs",md:"md"},children:[(0,i.Y)(n.mHW,{}),(0,i.FD)(n.$mQ,{p:{base:"1rem 1.125rem",md:"1.5rem 2rem"},gap:{base:"1rem",md:"2rem"},children:[(0,i.FD)(n.rQ0,{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:600,fontSize:{base:"1.125rem",md:"1.5rem"},lineHeight:{base:"1.575rem",md:"2.1rem"},color:"neutral.800",p:0,children:[(0,i.Y)(n.EYj,{children:"Formas de pagamento"}),(0,i.Y)(n.gzW,{cursor:"pointer",color:"neutral.500",width:"0.625rem",height:"0.625rem",onClick:m})]}),(0,i.Y)(n.cwr,{w:"100%",p:0,display:"flex",flexDir:"column",gap:{base:"0.5rem",md:"1rem"},overflow:"auto",scrollBehavior:"smooth",css:{"&::-webkit-scrollbar":{display:"none"}},children:h.map((e,d)=>{let c=d===h.length-1;return(0,i.FD)(s.Fragment,{children:[(0,i.Y)(el,{...(e=>{switch(e){case er.K.Credit_card:return{slug:er.K.Credit_card,icon:(0,i.Y)(n.Bln,{height:"1.5rem",width:"1.5rem",variant:"blue",color:"primary.main"}),name:"Cart\xe3o de cr\xe9dito",installments:t,installmentsMaxQuantityWithoutInterest:r,totalInInstallments:a,totalInCash:o};case er.K.Billet:return{slug:er.K.Billet,icon:(0,i.Y)(n.$sO,{height:"1.5rem",width:"1.5rem",color:"primary.main"}),name:"Boleto",description:"O boleto ser\xe1 gerado ap\xf3s a finaliza\xe7\xe3o de sua compra. Imprima e pague no banco ou pague pela internet utilizando o c\xf3digo de barras do boleto.",totalInCash:o,totalInInstallments:a,hasPriceVariation:l};case er.K.Pix:return{slug:er.K.Pix,icon:(0,i.Y)(n.N_7,{height:"1.5rem",width:"1.5rem",color:"primary.main"}),name:"Pix",description:"Pague utilizando o QR Code ou Copia e Cola, com aprova\xe7\xe3o imediata. Na etapa de finaliza\xe7\xe3o da compra, a gente explica direitinho como pagar com Pix.",totalInInstallments:a,totalInCash:o,hasPriceVariation:l}}})(null==e?void 0:e.slug)}),!c&&(0,i.Y)(n.cGx,{color:"#E3E3E8"})]},null==e?void 0:e.slug)})})]})]})]})},es=e=>{let t=e.filter(e=>(0,R.NB)(e));return 0===t.length?0:Math.min(...t.map(e=>e.preco.por))},ec=e=>!!(e&&e.length>0&&!e[0].erro),em=e=>!!e&&0!==e.length&&e.some(e=>!e.erro&&e.opcoes&&e.opcoes.length>0),eu=e=>{var t;let{adActive:r,discountPercentage:o,allAds:n=[],freight:a,hasPriceVariation:l}=e,{payment:d}=(0,Z.j)(),s=(0,et.BO)(d),c=(0,et.wk)(d),m=null==r?void 0:r.formas_pagamento.boleto,u=null==r?void 0:r.preco.parcelamento,h=null==r||null==(t=r.formas_pagamento.cartao_credito)?void 0:t.parcelamentos,g=(0,et.Wv)(d),p=null==r?void 0:r.preco,f=p.de>p.por,b=ee._.minimoPercentualDesconto,v=(null==h?void 0:h.filter(e=>0===e.taxa_juros).length)||u.quantidade,w=ec(a),y=es(n),Y=em(a),x=!w&&l||w&&!Y,C=x?y:p.por,E=m.por!=y?m.por:y;return(0,i.FD)(U.azJ,{"data-testid":"product-values",children:[f&&(s||c)&&(0,i.FD)(U.son,{flexDir:"row",mb:"0.125rem",children:[(0,i.Y)(U.EYj,{color:P.w.colors.grey[300],fontSize:"0.875rem",lineHeight:"1.125rem",mb:"0",textDecor:"line-through",children:(0,L.yw)(p.de)}),void 0!==o&&o>=b&&(0,i.Y)(U.azJ,{h:"1.125rem",ml:"0.5rem",w:"2.688rem","data-testid":"discount-tag",children:(0,i.Y)(X,{discountPercentage:o})})]}),c&&(0,i.FD)(U.azJ,{color:P.w.colors.grey[300],children:[(0,i.FD)(U.son,{alignItems:"baseline",mb:"0.063rem",mt:"0.125rem",maxW:{base:"14.375rem",md:"18.4375rem"},flexWrap:"wrap",columnGap:"0.5rem",rowGap:0,children:[x&&(0,i.Y)(U.EYj,{color:P.w.colors.grey[300],fontSize:{base:"0.875rem",md:"1rem"},fontWeight:"400",lineHeight:{base:"1.0588rem",md:"1.21rem"},width:"100%",children:"A partir de"}),(0,i.Y)(U.EYj,{color:P.w.primary.main,fontSize:{base:"1.5rem",md:"1.875rem"},fontWeight:"700",lineHeight:{base:"1.8156rem",md:"2.2694rem"},children:(0,L.yw)(E)}),(0,i.Y)(U.EYj,{lineHeight:{base:"1.0588rem",md:"1.21rem"},fontSize:{base:"0.875rem",md:"1rem"},color:"neutral.600",children:"No ".concat(g)})]}),m.valor_economia&&!x&&(0,i.Y)(U.azJ,{mt:"0.3rem","data-testid":"promotion-tag",children:(0,i.Y)($,{discountValue:m.valor_economia})})]}),s&&(0,i.FD)(U.son,{color:P.w.colors.grey[300],alignItems:"center",gap:"0.27rem",mb:{base:"1rem",md:"1.5rem"},fontSize:{base:"0.875rem",md:"1rem"},lineHeight:{base:"1.0588rem",md:"1.21rem"},flexWrap:"wrap",children:[(0,i.Y)(U.EYj,{fontWeight:"700",lineHeight:"1.125rem",mb:"0",children:(0,L.yw)(C)}),(0,i.FD)(U.EYj,{fontWeight:"400",lineHeight:"1.125rem",mb:"0",children:["em at\xe9 ",(0,i.FD)("strong",{children:[v,"x"]})," ","sem juros"]})]}),(0,i.Y)(ed,{installments:null==h?void 0:h.map(e=>{let{quantidade:t,taxa_juros:r,valor:i,total:o}=e;return{amount:i,interestRate:r,quantity:t,total:o}}),installmentsMaxQuantityWithoutInterest:v,totalInCash:E,totalInInstallments:C,hasPriceVariation:x})]})};var eh=r(26978),eg=r.n(eh),ep=r(60371);let ef=async e=>await ep.A.get("https://revgeocode.search.hereapi.com/v1/revgeocode",{params:{at:e,apiKey:ee._.hereMapsApiKey,limit:1}});var eb=function(e){return e.ADDRESS_BLOCK="addressBlock",e.HOUSE_NUMBER="house
1Number",e.LOCALITY="locality",e.PLACE="place",e.STREET="street",e}(eb||{}),ev=function(e){return e.INTERPLOATED="interpolated",e.PA="PA",e}(ev||{}),ew=r(67140);let ey=()=>(0,i.FD)(ew.Ay,{backgroundColor:"#f3f3f3","data-testid":"skeleton-search-shipping",foregroundColor:"#ecebeb",height:"25.5rem",speed:2,title:"Carregando...",uniqueKey:"loader-search-shipping",width:"100%",children:[(0,i.Y)("rect",{height:"1.125rem",rx:"0.313rem",ry:"0.313rem",width:"10rem",x:"0",y:"1.563rem"}),(0,i.Y)("rect",{height:"1rem",rx:"0.313rem",ry:"0.313rem",width:"14.375rem",x:"0",y:"4.063rem"}),(0,i.Y)("rect",{height:"1rem",rx:"0.313rem",ry:"0.313rem",width:"8rem",x:"0",y:"6.5rem"}),(0,i.Y)("rect",{height:"1rem",rx:"0.313rem",ry:"0.313rem",width:"4.375rem",y:"6.5rem",style:{transform:"translate(76.4%, 0%)"}}),(0,i.Y)("rect",{height:"0.875rem",rx:"0.313rem",ry:"0.313rem",width:"11rem",x:"0",y:"8.1rem"}),(0,i.Y)("rect",{height:"0.875rem",rx:"0.313rem",ry:"0.313rem",width:"6rem",x:"0",y:"9.5rem"}),(0,i.Y)("rect",{height:"2.625rem",rx:"0.313rem",ry:"0.313rem",width:"100%",x:"0",y:"11.5rem"}),(0,i.Y)("rect",{height:"10rem",rx:"0.313rem",ry:"0.313rem",width:"100%",x:"0",y:"15.3rem"})]});var eY=r(40525);let ex=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;try{var i;let{request:o,data:n,status:a}=await eY.re.post("/canais/frete/simular-variacao",{cep:parseInt((0,L.pl)(e)),variacao_id:t,quantidade:r});return{data:{cotacoes:null!=(i=null==n?void 0:n.cotacoes)?i:[],cep_info:null==n?void 0:n.cep_info},status:null!=a?a:o.status}}catch(e){return{data:{cotacoes:[],cep_info:null},status:e.request.status}}};var eC=r(30711),eE=r(94991);let ez=(0,b.default)("div",{target:"e53chg30"})("border-radius:0.25rem;width:100%;height:auto;background:#e3e3e8;padding:0.313rem 0.5rem;display:flex;align-content:center;align-items:center;gap:0.5rem;"),eS=(0,b.default)("span",{target:"e53chg32"})("font-weight:700;font-size:0.75rem !important;color:#646981;margin-top:0.1px !important;.texto-destacado{font-size:0.75rem !important;color:#508908 !important;}"),eD=()=>(0,i.FD)(ez,{children:[(0,i.Y)(n.mzv,{width:"1.3rem",height:"1.5rem"}),(0,i.FD)(eS,{children:["Montagem ",(0,i.Y)("span",{className:"texto-destacado",children:"gratuita"})," dispon\xedvel"]})]});var e_=r(98484);let ek=l()(()=>r.e(5407).then(r.bind(r,65407)),{loadableGenerated:{webpack:()=>[65407]},ssr:!1}),eF=(0,s.forwardRef)((e,t)=>{var r;let o,{adId:a,ads:l,label:d,loading:m,variationId:u,amount:h=1,setShipping:g,setLoading:p}=e,f=(0,eE.A)(),b=(0,s.useRef)(!1),[v,w]=(0,s.useState)([]),[y,Y]=(0,s.useState)(),[x,C]=(0,s.useState)([]),[E,z]=(0,s.useState)(),[S,D]=(0,s.useState)([]),[_,k]=(0,s.useState)(null!=(r=f.zipcode)?r:""),[F,j]=(0,s.useState)(""),[I,W]=(0,s.useState)(!1),O=(o=!!y,{border:"0.063rem solid ".concat(o?"#BC3838":"#DCDDE3"),borderRadius:"0.375rem",color:"#4D5163",fontSize:"0.875rem",fontWeight:400,height:"3rem",paddingLeft:"1rem",width:"100%",minWidth:"200px",maxWidth:"100%"}),T=(0,s.useMemo)(()=>null==x?void 0:x.some(e=>{var t;return null==(t=e.montagem_gratis)?void 0:t.length}),[x]),N=(0,s.useMemo)(()=>{var e;return(null==(e=(0,L.pl)(_))?void 0:e.length)===8},[_]);function B(e,t){Y(e),C(t||[])}async function V(e){if("Enter"===e.key)return W(!1),M()}async function M(){var e,t;if(!m){if((null==S?void 0:S.length)&&D([]),j(""),B(),N){p(!0);try{let{data:e,status:r}=await ex(_,u,h);if(e.cep_info){let t=function(e){let{rua:t,cidade:r,estado:i}=e;return""===t?"".concat(r," - ").concat(i):"".concat(t," - ").concat(r," - ").concat(i)}(e.cep_info);j(t)}let i=null==e?void 0:e.cotacoes.map(e=>{var t;let r=null==l?void 0:l.find(t=>t.id===e.anuncio_id),i=!r||(0,R.NB)(r);return{id_anuncio:e.anuncio_id,erro:!!e.mensagem_erro,mensagemErro:e.mensagem_erro,opcoes:null==(t=e.opcoes)?void 0:t.filter(e=>i||e.entrega_chave!==eC.C.PickUpInStore).map(e=>{var t;return{entrega:e.entrega,entrega_chave:e.entrega_chave,montagem_gratis:null==e?void 0:e.montagem_gratis,prazo_dias:e.prazo_dias,prazo_estimado:e.prazo_estimado,prazo_estimado_dia_semana:e.prazo_estimado_dia_semana,prazo_horas:null!=(t=e.prazo_horas)?t:null,preco:e.preco}}),lojas_retirada:i?e.lojas_retirada:null}});switch(r){case 500:case 400:B("Ocorreu um erro ao calcular o frete."),w([]),j("");return;case 422:B("Cep inv\xe1lido"),w([]),j("");return}let o=(0,H.Qs)(H.VP.cep),n=null!=(t=(0,H.Qs)(H.VP.cep_origin))?t:e_.Q.MANUA
1L,a=(null==o?void 0:o.replace(/\D/g,""))===(null==_?void 0:_.replace(/\D/g,""))?n:e_.Q.MANUAL;f.set(_,a),w(i)}catch(e){B("Ocorreu um erro ao calcular o frete."),w([]),j("")}finally{p(!1)}return}(null==(e=(0,L.pl)(_))?void 0:e.length)||f.remove()}}(0,s.useImperativeHandle)(t,()=>({setError:Y}),[]),(0,s.useEffect)(()=>{!function(){if(!(null==v?void 0:v.length)||a===E)return;z(a);let e=v.find(e=>e.id_anuncio==a);e?(null==e?void 0:e.opcoes)?B(void 0,e.opcoes):B("Produto indispon\xedvel para sua regi\xe3o!"):M()}()},[a]),(0,s.useEffect)(()=>{var e;if(!(null==(e=(0,L.pl)(_))?void 0:e.length)){W(!1),b.current&&f.remove();return}if(!N)return;if(!I)return void M();let t=setTimeout(()=>{M()},600);return()=>clearTimeout(t)},[N,I,_]),(0,s.useEffect)(()=>{b.current=!0},[]),(0,s.useEffect)(()=>{N&&(null==v?void 0:v.length)&&M()},[h]),(0,s.useEffect)(()=>{if(!f.zipcode)return void k("");f.zipcode!==_&&(W(!1),k(f.zipcode))},[f.zipcode]),(0,s.useEffect)(()=>{null==g||g(v),null==v||v.forEach(e=>{(a==e.id_anuncio||(null==v?void 0:v.length)===1)&&B(e.mensagemErro,e.opcoes)})},[v,a]),(0,s.useEffect)(()=>{let e=null==v?void 0:v.find(e=>{var t;return!!(null==(t=e.lojas_retirada)?void 0:t.length)});if(!e)return D([]);D(e.lojas_retirada.sort(A.Rb))},[a,v]);let J=e=>{let t=e.coords.latitude,r=e.coords.longitude;ef("".concat(t,",").concat(r)).then(e=>{let{data:t}=e,r=t.items[0].address.postalCode;f.set((0,L.Hc)(r),e_.Q.AUTOMATICO)}).catch(()=>c.toast.error("N\xe3o foi poss\xedvel pegar sua localiza\xe7\xe3o neste momento, por favor verifique sua rede/gps e tente novamente."))};return(0,i.FD)(n.son,{flexDir:"column",children:[(0,i.FD)(n.son,{alignItems:"center",flexWrap:"wrap",children:[(0,i.FD)(n.son,{alignItems:"center",color:P.w.colors.grey[300],flexDir:"row",fontSize:"0.875rem",justifyContent:"space-between",mb:"1rem",mt:"1.5rem",w:"100%",children:[(0,i.FD)(n.son,{children:[(0,i.Y)(n.pNW,{h:"1rem",mr:"0.5rem",w:"1.2rem"}),(0,i.Y)(n.EYj,{fontSize:"0.875rem",lineHeight:"1rem",mb:"0",children:d})]}),(0,i.FD)(n.son,{alignContent:"center",color:P.w.primary.main,justifyContent:"center",lineHeight:"0.875rem",transition:"all 0.3s",children:[(0,i.Y)(n.pru,{color:"#0D71F0",height:"1rem",width:"1rem"}),(0,i.Y)(n.N_E,{"data-testid":"use-my-location",fontSize:"0.75rem",marginBottom:"0",onClick:()=>navigator.geolocation?navigator.geolocation.getCurrentPosition(J):c.toast.warn("Localiza\xe7\xe3o n\xe3o suportada pelo navegador."),rel:"noopener noreferrer",target:"_blank",textDecorationLine:"underline",children:"Ativar localiza\xe7\xe3o"})]})]}),(0,i.FD)(n.son,{alignItems:"center",borderRadius:"0.375rem",flex:"1",justifyContent:"space-between",gap:{base:"0.5rem",md:"1rem"},flexDirection:{base:"column",sm:"row"},w:"100%",children:[(0,i.Y)(n.son,{flex:"1",w:"100%",children:(0,i.Y)(eg(),{mask:"99999-999",disabled:m,onChange:e=>{W(!0),k(e.target.value)},onKeyPress:e=>V(e),placeholder:"Digite seu CEP",style:{...O},type:"text",value:_,"data-testid":"zip-code-input"})}),(0,i.Y)(n.cGW,{height:"3rem",label:"Ok",isDisabled:m,onClick:async()=>{W(!1),await M()},"data-testid":"zip-code-button",minW:{base:"100%",sm:"auto"},w:{base:"100%",sm:"auto"}})]}),!!N&&(0,i.Y)(n.EYj,{mt:{base:"0.5rem",md:"1rem"},mb:0,fontWeight:500,fontSize:"0.75rem",lineHeight:"1.05rem",color:"neutral.700",children:F}),y&&(0,i.Y)(n.son,{flexDirection:"column",children:(0,i.Y)(n.EYj,{color:"#bc3838",fontSize:"0.813rem",mt:"0.375rem",mb:"0",children:y})}),T&&(0,i.Y)(n.son,{mt:"0.5rem",w:"100%",children:(0,i.Y)(eD,{})})]}),!y&&N&&((null==x?void 0:x.length)>0||(null==S?void 0:S.length)>0||m)&&(m?(0,i.Y)(ey,{}):(0,i.Y)(ek,{pickUpStores:S,quoteSimulationResponses:v,address:F}))]})}),ej=e=>{var t,r,o,n,a,l,d,c,m;let{adActive:u,ads:h,dataProductCart:g,freight:p,hasWarranty:f,route:b,setDataProductCart:v,setShipping:w,setShowError:y,uniqueVoltages:Y,variationActive:x,voltageProduct:C,hasPriceVariation:E}=e,{reward:z}=(0,s.useContext)(W.AA),D=(0,s.useRef)(null),[_,F]=(0,s.useState)(1),[j,T]=(0,s.useState)(!1),N=null==x||null==(r=x.anuncios)||null==(t=r.find(e=>e.id===(null==u?void 0:u.id)))?void 0:t.preco.percentual_desconto,B=(null==x||null==(o=x.anuncios)?void 0:o.length)>0,H=null==x||null==(n=x.anuncios)?void 0:n.some(e=>e.id===(null==u?void 0:u.id)),L=u&&H&&(0,R.NB)(u)?u:void 0,V=null==x||null==(d=x.anuncios)||null==(l=d.find(e=>e.id===(null==u?void 0:u.id)))||null==(a=l.promocao_item)?void 0:a.promocao_cabecalho,M={mobile:null==V||null==(c=V.mobile_midia)?void 0:c.url,desktop:null==V||null==(m
1=V.desktop_midia)?void 0:m.url};return(0,i.FD)(S.azJ,{backgroundColor:P.w.colors.white,border:"0.063rem solid #E3E3E8",borderRadius:"0.375rem",padding:"1.5rem",position:"relative",children:[!!L&&(0,O.V4)({discountPercentage:N,isAvailable:!0})&&(0,i.Y)(S.son,{position:"absolute",right:"0.25rem",children:(0,i.Y)(I,{promotionImages:M})}),B&&!!(null==u?void 0:u.seller)&&(0,i.FD)(S.son,{color:P.w.colors.grey[300],flexDir:"column",maxW:"86%","data-testid":"product-seller-info",children:[(0,i.FD)(S.EYj,{fontSize:"0.875rem",mb:"0",children:["Vendido por"," ",(0,i.Y)(S.Bvv.span,{fontSize:"0.875rem",fontWeight:"600",children:"Gazin"})]}),(0,i.FD)(S.son,{fontSize:"0.875rem",mb:{base:"1rem",md:"1.5rem"},...u.seller.nome_fantasia.includes("Sul")?{alignItems:"flex-start",flexDir:"column",gap:"unset"}:{alignItems:"center",flexDir:"row",gap:"0.3rem"},children:[(0,i.Y)(S.EYj,{fontSize:"0.875rem",mb:"0",children:"Entregue por"}),(0,i.Y)(S.EYj,{fontSize:"0.875rem",fontWeight:"600",noOfLines:1,mb:"0",children:u.seller.nome_fantasia})]})]}),L?(0,i.FD)(i.FK,{children:[(0,i.Y)(eu,{adActive:L,discountPercentage:N,promotionImages:M,allAds:h,freight:p,hasPriceVariation:E}),(0,i.FD)(S.son,{flexDir:"column",my:{base:"1rem",md:"1.5rem"},children:[!!L&&(0,i.FD)(i.FK,{children:[0!==z.points&&0!==z.value&&(0,i.Y)(k,{campaign:z,productValue:L.preco.por}),(0,i.Y)(S.azJ,{w:"full",children:(0,i.Y)(G,{suffix:L.estoque<10?"(\xdaltimas unidades)":"(10 unidades por compra)",label:"Quantidade: ".concat(_),onChange:e=>F(e),value:_,onlyShowSuffixWhenListIsOpen:L.estoque>10,options:(0,A.dy)(L.estoque>10?10:L.estoque)})})]}),(0,i.Y)(q,{activeVariationAdId:x.anuncios[0].id,adActiveId:L.id,ads:h,dataProductCart:g,existsSellers:B,freight:p,freightRef:D,hasWarranty:f,shippingLoading:j,productQuantity:_,route:b,setDataProductCart:v,setShowError:y,uniqueVoltages:Y,voltageProduct:C})]}),(0,i.Y)(S.son,{borderTop:"0.063rem solid #E3E3E8",children:B?(0,i.Y)(eF,{adId:L.id,ads:h,amount:Number(_),label:"Calcular frete e prazo",loading:j,ref:D,setLoa
1ding:T,setShipping:w,variationId:x.id}):(0,i.Y)(eF,{adId:x.anuncios[0].id,ads:h,label:"Calcular frete e prazo",loading:j,setLoading:T,setShipping:w,variationId:x.id})})]}):(0,i.FD)(S.azJ,{borderTop:"0.063rem solid #E3E3E8",pt:"1rem",children:[(0,i.Y)(S.EYj,{color:P.w.colors.grey[100],fontSize:"1.125rem",fontWeight:"700",mb:"0.5rem",children:"Produto indispon\xedvel"}),(0,i.Y)(S.EYj,{color:P.w.colors.grey[300],fontSize:"0.875rem",mb:"0",children:"No momento, este produto encontra-se indispon\xedvel, pois j\xe1 vendemos todo o estoque."})]})]})};function eI(e){var t,r;let o,{setCartProductData:a,adActive:l,enableScroll:c=!1,variationTitle:m,hasPriceVariation:u=!1,allAds:h=[],freight:g}=e,p=(0,n.ADb)({base:!1,lg:!0}),{payment:f}=(0,Z.j)(),b=(0,d.useRouter)(),[v,w]=(0,s.useState)(c),y=(0,et.wk)(f),Y=(0,et.BO)(f),x=null==l?void 0:l.preco.parcelamento,C=null==l?void 0:l.formas_pagamento.boleto,E=l&&(0,R.NB)(l)?l:void 0,z=ec(g),S=es(h),D=em(g),_=!z&&u||z&&!D,k=_?S:null!=(t=null==C?void 0:C.por)?t:0,F=p?640:850,j=(o=!!E,{container:{boxShadow:["0.25rem -0.3rem 0.938rem 0 #1415181A","0.25rem 2.3rem 0.7rem 0 #14151833"],className:"barra-fixa has-bottom-bar ".concat(v&&o?"bottom-bar-visible":""),display:[o?"flex":"none","initial"],opacity:v?"1":"0",pointerEvents:v?"all":"none",transform:[v?"translateY(0)":"translateY(3.125rem)",v?"translateY(0)":"translateY(-3.125rem)"]},priceContent:{justifyContent:o?"center":"flex-end"},titleContent:{width:o?["0%","0%","50%"]:["0%","0%","75%"]}});return(0,s.useEffect)(()=>{let e=()=>{if(window.scrollY>F)return w(!0);w(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[p,F]),(0,i.FD)(n.azJ,{bg:P.w.colors.white,bottom:["0","unset"],boxShadow:j.container.boxShadow,className:j.container.className,display:j.container.display,height:"5.5rem",opacity:j.container.opacity,pointerEvents:j.container.pointerEvents,position:"fixed",top:["unset","0"],transform:j.container.transform,transition:"all 0.3s",width:"100%",zIndex:"1000",children:[(0,i.FD)(n.son,{align:"center",h:"100%",w:"100%",justifyContent:"space-between",maxW:"81.875rem",mx:"auto",px:{base:"0.5rem",sm:"0.9375rem"},children:[(0,i.Y)(n.son,{display:["none","none","flex"],w:j.titleContent.width,children:m&&(0,i.Y)(n.EYj,{color:P.w.colors.grey[100],fontSize:{base:"1rem",lg:"1.125rem"},fontWeight:"600",lineHeight:{base:"1.5rem",lg:"2.25rem"},margin:0,noOfLines:1,children:m.replace("- Sem Cor","").replace("- Sem Voltagem","")})}),E?(0,i.FD)(n.son,{flexDir:"column",flex:"1",justifyContent:j.priceContent.justifyContent,px:{base:"0.5rem",md:"1rem"},minW:"0",children:[Y&&(0,i.FD)(n.EYj,{fontSize:["0.75rem","1rem"],color:"neutral.600",display:["block","none"],mb:"0.0625rem",children:["em"," ",(0,i.FD)(n.EYj,{as:"strong",fontSize:["0.75rem","1rem"],children:[null==x?void 0:x.quantidade,"x"]})," ","de"," ",(0,i.Y)(n.EYj,{as:"strong",fontSize:["0.75rem","1rem"],children:(0,L.yw)(null!=(r=null==x?void 0:x.valor)?r:0)})," "]}),y&&(0,i.FD)(n.azJ,{children:[Y&&(0,i.Y)(n.EYj,{as:"span",fontSize:["0.75rem","1rem"],display:["inline-block","none"],children:"ou\xa0"}),(0,i.FD)(n.son,{flexDirection:"column",gap:"0",children:[_&&(0,i.Y)(n.EYj,{color:P.w.colors.grey[300],fontSize:["0.625rem","0.75rem","0.875rem"],fontWeight:"400",margin:0,mb:"0.125rem",display:["none","block"],lineHeight:"1",children:"A partir de"}),(0,i.Y)(n.EYj,{color:P.w.primary.main,fontSize:["0.875rem","1rem","1.5rem"],fontWeight:"bold",mb:"0",display:["inline-block","block"],noOfLines:1,lineHeight:"1.2",children:(0,L.yw)(k)})]}),(0,i.Y)(n.EYj,{color:P.w.colors.grey[300],fontSize:["0.625rem","0.75rem","1rem"],fontWeight:"400",margin:0,mt:"0.125rem",noOfLines:1,children:"\xe0 vista no ".concat((0,et.Wv)(f))})]})]}):(0,i.Y)(n.son,{flex:"1",justifyContent:"center",px:{base:"0.5rem",md:"1rem"},children:(0,i.Y)(n.EYj,{color:P.w.colors.grey[100],fontSize:{base:"1rem",lg:"1.125rem"},fontWeight:"700",textAlign:"center",noOfLines:1,children:"Produto indispon\xedvel"})}),!!E&&(0,i.Y)(n.son,{justifyContent:["center","flex-end"],flex:{base:"0 0 auto",md:"1"},children:(0,i.FD)(n.N_E,{_hover:{bgColor:"#60a00e"},alignItems:"center",as:"button",bg:P.w.success.main,borderRadius:"0.375rem",color:P.w.colors.white,display:"flex",fontSize:{base:"0.8rem",sm:"0.9375rem"},fontWeight:"600",h:"2.5rem",justifyContent:"center",letterSpacing:"-0.0067rem",onClick:e=>{var t;return t=E.id,void(e.preventDefault(),a({anuncio_id:t,quantidade:1,url:"".concat(b.asPath)}))},w:{base:"8rem",sm:"11.8125rem",lg:"18.4375rem"},minW:{base:"8rem",sm:"11.8125rem"},px:{base:"0.5rem",sm:"1rem"}
1,children:[(0,i.Y)(n.c8l,{color:P.w.colors.white,height:{base:"1rem",sm:"1.25rem"},marginRight:{base:"0.25rem",sm:"0.5rem"},width:{base:"1rem",sm:"1.25rem"}}),(0,i.Y)(n.EYj,{as:"span",noOfLines:1,children:"Comprar"})]})})]}),(0,i.Y)(n.son,{alignItems:"center",bgColor:"#f6f6f6",display:["none","none","flex"],justifyContent:"space-between",children:(0,i.Y)(n.son,{alignItems:"center",height:"2.5rem",justifyContent:"space-between",maxW:"81.875rem",mx:"auto",px:{base:"0.5rem",sm:"0.9375rem"},width:"100%",children:[{action:"description",description:"Informa\xe7\xf5es do Produto"},{action:"datasheet",description:"Informa\xe7\xf5es adicionais"},{action:"related",description:"Produtos Relacionados"}].map(e=>(0,i.Y)(n.azJ,{_hover:{color:P.w.primary.main},cursor:"pointer",onClick:()=>(e=>{let t=null,r={description:document.getElementById("product-information"),datasheet:document.getElementById("product-technical-sheet"),related:document.getElementById("carousel-related-products")}[e];if(r&&(t=r.getBoundingClientRect()),t)try{window.scrollTo(t.left+window.scrollX,t.top+window.scrollY-250)}catch(e){console.error("N\xe3o foi poss\xedvel mover a tela")}})(e.action),fontSize:{base:"0.8rem",lg:"1rem"},textAlign:"center",px:"0.5rem",noOfLines:1,children:e.description},e.action))})})]})}var eW=r(77328),eP=r.n(eW),eR=r(45105),eA=r.n(eR),eO=r(10150),eT=r(94485),eN=r(22287),eB=r(25136);function eH(e){var t,r,o,n,a,l,d,c,m;
1let{productContent:u,activeVariation:h,activeAd:g}=e,p=null!=(a=null!=(n=null==h||null==(t=h.imagens[0])?void 0:t.url)?n:null==u||null==(o=u.variacoes[0])||null==(r=o.imagens[0])?void 0:r.url)?a:"",f=(0,s.useMemo)(()=>{var e;return null==(e=h.anuncios)?void 0:e.find(e=>e.id===g)},[h,g]),b=(0,R.NB)(f),v=(0,s.useMemo)(()=>{var e,t,r;return{brand:u.marca_slug,image:p,name:u.titulo?u.titulo.replace(/"/gm,"'"):"",description:(0,L.Ko)(u.descricao),price:null==f?void 0:f.formas_pagamento.boleto.por,sku:h.id,availability:b?"in stock":"out of stock",review:{ratingValue:null==(e=u.avaliacoes)?void 0:e.totais.media,reviewCount:null==(t=u.avaliacoes)?void 0:t.totais.quantidade_avaliacoes,comments:null==(r=u.avaliacoes)?void 0:r.comentarios.map(e=>({author:e.nome,ratingValue:e.nota,datePublished:e.data_publicacao,reviewBody:e.comentario}))}}},[u,h,g]);return(0,s.useEffect)(()=>{h&&g&&(async()=>{eT.MS(u,h,f)})()},[h,g,f,u]),(0,s.useEffect)(()=>{(async()=>{eO.A.viewContent(u,f)})()},[u]),(0,i.FD)(i.FK,{children:[(0,i.FD)(eP(),{children:[(0,i.Y)("title",{children:null!=(l=null==u?void 0:u.seo_titulo)?l:"Gazin - Loja de telefonia, eletrodom\xe9sticos e muito mais!"}),(0,i.Y)("meta",{name:"description",content:null!=(d=null==u?void 0:u.seo_descricao)?d:"Compre celulares, televisores, games, tablets, m\xf3veis, eletrodom\xe9sticos e muito mais aqui na Gazinshop.com.br, tudo em at\xe9 12x s/ juros. Aproveite!"},"description"),(0,i.Y)("meta",{property:"og:title",content:null!=(c=null==u?void 0:u.seo_titulo)?c:""},"og:title"),(0,i.Y)("meta",{property:"og:description",content:null!=(m=null==u?void 0:u.seo_descricao)?m:""},"og:description"),(0,i.Y)("meta",{property:"og:image",content:p},"og:image"),(0,i.Y)("meta",{property:"og:image:secure_url",content:p},"og:image:secure_url")]}),(0,i.Y)(eN.A,{id:"google-metadata",content:(0,eB.$)(v)},h.id),(0,i.Y)(eA(),{id:"microsoft-clarity",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:'\n (function(c,l,a,r,i,t,y){\n c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\n t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;\n y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\n })(window, document, "clarity", "script", "'.concat(ee._.microsoftClarity.projectId,'");\n ')}})]})}function eL(){return(0,i.Y)(n.cOJ,{backgroundColor:P.w.colors.white,border:"transparent",borderRadius:"3.125rem",h:"1.1rem",position:"absolute",stroke:P.w.colors.grey[400],strokeWidth:"4.5px",w:"1.063rem",zIndex:"2"})}var eV=r(16322);let eM=(0,s.memo)(e=>{let{attributes:t,children:r,selectAttribute:o,selectedAttribute:n,attributeLabel:a,availableVariations:l}=e,{width:d}=(0,j.v)(),c=t.filter(e=>e.available),m=t.filter(e=>!e.available),u=c.sort((e,t)=>e.valor.localeCompare(t.valor)),h=m.sort((e,t)=>e.valor.localeCompare(t.valor)),g=u.concat(h);return(0,i.FD)(U.son,{flexDirection:"column",marginBottom:"0.5rem",children:[a&&n.value&&(0,i.Y)(U.azJ,{children:(0,i.FD)(U.EYj,{color:P.w.colors.grey[300],marginBottom:"0.25rem",children:[a,": ",n.value]})}),(0,i.Y)(U.son,{flexWrap:["unset","wrap"],overflow:"auto",width:["".concat(d-32,"px"),"unset"],children:g.map((e,t)=>{let d=((e,t,r,i)=>({active:(0,A.N6)(e,t),attribute:{slug:e.slug,value:(0,A.DZ)(null==e?void 0:e.valor)},available:e.available,handleOnClickEvent:((e,t,r,i)=>()=>{if(!(0,A.N6)(e,t)){if(null==i?void 0:i.length){let t=(0,A.JA)(i,e);return r(eV.E.Voltage,e.slug,t)}r(eV.E.Color,e.slug)}})(e,t,r,i)}))(e,n.slug,o,l);return(0,i.FD)(U.son,{alignItems:"center",backgroundColor:"transparent",border:d.active?"0.094rem solid ".concat(P.w.primary.main):"0.094rem solid #DCDDE3",borderRadius:"0.25rem",color:d.active?P.w.primary.main:"#7C8096",cursor:d.active?"default":"pointer",fontSize:"0.875rem",justifyContent:"center",marginBottom:"0.72rem",marginRight:"0.875rem",marginTop:"0.18rem",minHeight:"3.125rem",minWidth:"4.875rem",onClick:d.handleOnClickEvent,position:"relative","data-testid":"product-attribute-button-".concat(a,"-").concat(t),children:[!d.available&&(0,i.Y)(U.azJ,{position:"absolute",right:"3",top:"-1",children:(0,i.Y)(eL,{})}),s.cloneElement(r,{available:e.available,image:e.image,value:(0,A.DZ)(e.valor)})]},"".concat(e.valor,"-").concat(t))})})]})});var eJ=r(95514);function eq(e){let{available:t,image:r="",value:o}=e,a=r.trim()||"/images/jpg/produto-default.jpg";return(0,i.Y)(n.m_M,{label:o,children:(0,i.FD)(n.son,{alignItems:"center",flexDirection:"column",padding:"0.25rem",children:[(0,i.Y)(eJ.A,{src:a,alt:"Imagem da varia\xe7\xe3o",width:70,height:70,style:{borderRadius:"0.313rem",zIndex:1,opacity:t?"1":"0.5"}}),!t&&(0,i.Y)(n.son,{alignItems:"center",bgColor:"#DCDDE3",borderBottomRadius:"0.125rem",bottom:"0",h:"1rem",justifyContent:"center",position:"absolute",w:"100%",zIndex:"2",children:(0,i.Y)(n.EYj,{color:P.w.colors.grey[200],fontSize:"0.5rem",lineHeight:"0.75rem",mb:"0",children:"Indispon\xedvel"})})]})})}function eK(e){let{available:t,value:r}=e;return(0,i.Y)(n.son,{alignItems:"center",backgroundColor:t?"transparent":"#F4F4F7",borderRadius:"0.20rem",he
1ight:"3.125rem",justifyContent:"center",minWidth:"4.875rem",children:(0,i.Y)(n.EYj,{marginBottom:0,textAlign:"center",width:"4rem",children:r})})}var eG=r(12681),eU=r(69701);function eQ(e){let{color:t,product_id:r,product_url:o,voltage:a,favoritesStore:l,favoriteProduct:d}=e,s=(0,eU.N)(l,r,t,a);return(0,i.Y)(n.RML,{"data-testid":"favorite-button",h:6,onClick:()=>d(o,r,t,a,s),variant:"".concat(s>=0?"filled":"outline"),w:6})}var eX=r(72421);r(30346),r(18058),r(9572),r(24924),r(12147),r(26402),r(12815);let e$=(0,b.default)("div",{target:"enn7ghn0"})(".swiper-slide{opacity:0;transition:all 0.3s;&.swiper-slide-active{opacity:1;transition:all 0.3s;}}.swiper-pagination{opacity:0;}.swiper-pagination-bullets{bottom:0px;left:0px;display:flex;align-items:center;justify-content:center;}.swiper-pagination-bullet{width:16px;height:3px;border-radius:0px;opacity:0.3;background:#66a9ff;}.swiper-pagination-bullet-active{width:16px;height:3px;border-radius:0px;background:#0d71f0;opacity:1;}@media (max-width:992px){.swiper-pagination{opacity:1;}}"),eZ=(0,b.default)("div",{target:"enn7ghn1"})(".swiper-wrapper{display:flex;}.swiper-slide{transition:all 0.3s;&.swiper-slide-active{opacity:1;}}.swiper-pagination-bullets{bottom:0px;left:0px;display:none;align-items:center;justify-content:center;}.swiper-pagination-bullet{width:16px;height:3px;border-radius:0px;opacity:0.3;background:#66a9ff;}.swiper-pagination-bullet-active{width:16px;height:3px;border-radius:0px;background:#0d71f0;opacity:1;}@media (max-width:992px){.swiper-pagination-bullets{display:flex;}}"),e0=(0,b.default)("div",{target:"enn7ghn2"})("width:80%;.swiper-wrapper{width:100%;display:flex;.swiper-slide{margin-right:0.5rem;}.swiper-slide-active{transition:all 0.3s;}}.swiper-button-next,.swiper-button-prev{background-color:white;background-size:10px 28px;height:4rem;margin-top:-31px;padding:0;}"),e1=l()(()=>r.e(1128).then(r.bind(r,81128)).then(e=>e.ModalGallery),{loadableGenerated:{webpack:()=>[81128]},ssr:!1}),e5=e=>{let{images:t}=e,r=(0,s.useRef)(null),o=(0,s.useRef)(null),[a,l]=(0,s.useState)(null),{isOpen:d,onOpen:c,onClose:m}=(0,n.j16)(),[u,h]=(0,s.useState)(0),g=e=>(0,eX.F)({src:e}),[b,v]=(0,s.useState)({bg:"linear-gradient(rgba(54, 56, 67, 0.5), rgba(54, 56, 67, 0.5)), url('".concat(g(t[0].url),"')"),bgPosition:"center",hidden:!0}),[w,y]=(0,s.useState)({mousePositionX:"0",mousePositionY:"0",bg:"linear-gradient(rgba(54, 56, 67, 0.5), rgba(54, 56, 67, 0.5))",width:"8rem",height:"8rem",hidden:!0,borderRadius:"50%",backgroundColor:"transparente",border:"2px solid rgba(54, 56, 67, 0.8)"}),Y={modules:[p.dK,p.WO,p.xI],slidesPerView:1,effect:"fade",pagination:{clickable:!0},slideToClickedSlide:!0,onBeforeInit:e=>{r.current=e},touchRatio:.2,thumbs:{swiper:a}},x={modules:[p.U1,p.Vx,p.WO,p.xI],slidesPerView:5.3,spaceBetween:18,touchRatio:.2,onSwiper:l,centerInsufficientSlides:!0,slideToClickedSlide:!0,onBeforeInit:e=>{o.current=e},freeMode:!0,watchSlidesProgress:!0,effect:"fade",speed:500};function C(){y(e=>({...e,hidden:!0})),v(e=>({...e,hidden:!0}))}return 0===t.length?(0,i.Y)(n.azJ,{alignItems:"center",border:{lg:"1px solid #E3E3E8"},display:"flex",h:{base:"fit-content",lg:"26.052rem"},justifyContent:"center",pb:{base:"1rem",lg:"0rem"},position:"relative",pt:{base:"1rem",lg:"3.2rem"},rounded:"0.375rem",w:{base:"100%",lg:"27.553rem"},zIndex:0,children:(0,i.Y)(n.azJ,{maxW:{base:"12.5rem",lg:"19.6rem"},overflow:"hidden",children:(0,i.Y)(f.RC,{ref:r,slidesPerView:1,effect:"fade",pagination:{el:".swiper-pagination",type:"bullets",clickable:!0},tag:e$,children:(0,i.Y)(n.azJ,{cursor:"pointer",w:{base:"12.5rem",lg:"19.6rem"},h:{base:"13.5rem",lg:"19.75rem"},m:"0 auto",children:(0,i.Y)(eJ.A,{src:"/images/jpg/produto-default.jpg",alt:"Produto sem Imagem",width:313.6,height:315.2,style:{objectFit:"contain"}})})})})}):(0,i.FD)(n.azJ,{w:{base:"100%",lg:"27.553rem"},children:[d&&(0,i.Y)(e1,{isOpen:d,onClose:m,images:t,slideIndex:u}),(0,i.FD)(n.son,{alignItems:"center",border:{lg:"1px solid #E3E3E8"},height:{base:"fit-content",lg:"26.052rem"},position:"relative",rounded:"0.375rem",zIndex:1,overflow:"hidden",justifyContent:"center",paddingY:{base
1:"1rem",lg:"none"},children:[(0,i.Y)(n.azJ,{maxW:{base:"12.5rem",lg:"27.553rem"},children:(0,i.Y)(f.RC,{...Y,ref:r,tag:eZ,children:null==t?void 0:t.map((e,t)=>(0,i.Y)(f.qr,{children:(0,i.Y)(n.azJ,{cursor:{base:"pointer",lg:"zoom-in"},height:{base:"13.5rem",lg:"26.052rem"},onClick:()=>{h(t),c()},width:{base:"12.5rem",lg:"27.553rem"},children:(0,i.Y)(eJ.A,{src:e.url,alt:"Imagem do Produto",sizes:"27.553rem",fill:!0,priority:0===t,onMouseMove:t=>(function(e,t){let{offsetX:r,offsetY:i}=e.nativeEvent,{offsetWidth:o,offsetHeight:n}=e.nativeEvent.target,a=(r/o*100).toFixed(2),l=(i/n*100).toFixed(2),d="".concat(200,"% ").concat(200,"%");y({mousePositionX:"".concat(r-40,"px"),mousePositionY:"".concat(i-40,"px"),bg:"linear-gradient(rgba(54, 56, 67, 0.2), rgba(54, 56, 67, 0.2))",width:"".concat(80,"px"),height:"".concat(80,"px"),hidden:!1,borderRadius:"50%",backgroundColor:"transparent",border:"2px solid rgba(54, 56, 67, 0.8)"}),v(e=>({...e,bgPosition:"".concat(a,"% ").concat(l,"%"),bgSize:d,hidden:!1,bg:"url('".concat(g(t),"')")}))})(t,e.url),onMouseLeave:C,style:{objectFit:"contain",zIndex:0,borderRadius:"0.375rem"},"data-testid":"product-image-".concat(t)})})},"".concat(e.url,"-").concat(t)))})}),(0,i.Y)(n.wvn,{above:"lg",children:(0,i.Y)(n.azJ,{bgRepeat:"no-repeat",bgSize:"100%",opacity:1,position:"absolute",top:"".concat(w.mousePositionY),left:"".concat(w.mousePositionX),zIndex:3,transition:"ease-in-out",pointerEvents:"none",...w})})]}),(0,i.Y)(n.wvn,{above:"lg",children:(0,i.Y)(n.azJ,{border:"2px #E8E8E8",padding:"16px",boxShadow:"0 4px 10px rgba(0, 0, 0, 0.2)",transform:"translateY(-5px)",bgRepeat:"no-repeat",height:"32rem",width:"37rem",opacity:1,position:"absolute",left:"28rem",top:"0.3rem",zIndex:3,transition:"ease-in-out",pointerEvents:"none",rounded:"0.375rem",...b})}),(0,i.FD)(n.ztN,{display:{base:"none",lg:"flex"},mt:"0.6875rem",alignItems:"center",justifyContent:"center",position:"relative",spacing:0,children:[(0,i.Y)(f.RC,{...x,ref:o,tag:e0,children:null==t?void 0:t.map((e,t)=>(0,i.Y)(f.qr,{children:(0,i.Y)(n.$nd,{w:"3.875rem",h:"3.875rem",bg:"white",border:"1px solid #e3e3e8",rounded:"0.375rem",display:"flex",alignItems:"center",justifyContent:"center",p:"0.5rem",_hover:{bg:"white"},transition:"all 0.3s","data-testid":"thumbnail-button-".concat(t),children:(0,i.Y)(eJ.A,{src:e.url,alt:"Imagem do Produto",width:47,height:47,style:{objectFit:"contain"}})})},"".concat(e.url,"-").concat(t)))}),t.length>5&&(0,i.FD)(i.FK,{children:[(0,i.Y)(n.K0,{icon:(0,i.Y)(n.Pl9,{color:"#0D71F0",transform:"rotate(-180deg)"}),variant:"unstyled",display:{base:"none",md:"flex"},justifyContent:"flex-start","aria-label":"prev-button",position:"absolute",left:"0",borderRadius:"100%",zIndex:2,width:"48px",height:"48px",onClick:()=>{var e;return null==(e=o.current)?void 0:e.slidePrev()}}),(0,i.Y)(n.K0,{icon:(0,i.Y)(n.Pl9,{color:"#0D71F0"}),display:{base:"none",md:"flex"},justifyContent:"flex-end",variant:"unstyled","aria-label":"next-button",position:"absolute",right:"0",zIndex:2,borderRadius:"100%",width:"48px",height:"48px",onClick:()=>{var e;return null==(e=o.current)?void 0:e.slideNext()}})]})]})]})};var e2=r(65106);let e3=e=>{let{showShare:t,URLShare:r}=e,o={shareOptions:{flexGrow:1,margin:"0.4375rem",textAlign:"center",width:"33%"}};return(0,i.FD)(n.azJ,{alignItems:"center",background:"white",borderRadius:"100%",boxShadow:"0.0625rem 0.125rem 0.4048rem #16182921","data-testid":"modal-share",display:t?"flex":"none",flexDirection:"row",flexWrap:"wrap",height:"8.75rem",padding:"0.625rem",position:"absolute",right:"-0.5rem",top:"-2.3rem",width:"8.75rem",children:[(0,i.Y)(n.N_E,{href:"https://www.facebook.com/sharer/sharer.php?kid_directed_site=0&sdk=joey&u=".concat(encodeURIComponent(r),"&display=popup&ref=plugin&src=share_button"),rel:"noopener noreferrer",target:"_blank",...o.shareOptions,children:(0,i.Y)(e2.ok6,{color:"#3C85FF",size:28})}),(0,i.Y)(n.N_E,{href:"https://wa.me/?text=".concat(encodeURIComponent(r)),rel:"noopener noreferrer",target:"_blank",...o.shareOptions,children:(0,i.Y)(e2.EcP,{color:"#3C85FF",size:28})}),(0,i.Y)(n.N_E,{href:"https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(r)),rel:"noopener noreferrer",target:"_blank",...o.shareOptions,children:(0,i.Y)(e2.feZ,{color:"#3C85FF",size:28})})]})}
1,e7=e=>{let{activeProductVariation:t,favoriteProduct:r,favoritesStore:o,numberOfUniqueColors:a,productId:l,productTitle:d,productUrl:c,URLShare:m,productColor:u,productVoltage:g}=e,[p,f]=(0,s.useState)(!1);return(0,i.FD)(n.azJ,{"data-testid":"product-image-slider",mb:{base:"1rem",lg:"0"},mr:{base:"0"},w:{base:"100%",lg:"fit-content"},children:[(0,i.FD)(n.azJ,{h:{base:"fit-content"},position:"relative",w:{base:"100%",lg:"27.553rem"},children:[a>1&&(0,i.Y)(n.azJ,{css:(0,h.css)("> div > span > p:first-of-type{margin-bottom:0;}"),"data-testid":"colors-tag",left:"1rem",position:"absolute",top:["0","1rem"],zIndex:2,children:(0,i.Y)(n.SLk,{colorsQuantity:a})}),(0,i.Y)(e5,{images:t.imagens.length?t.imagens:[{url:"".concat("https://www.gazin.com.br","/images/jpg/produto-default.jpg")}]}),(0,i.FD)(n.Tku,{alignItems:"flex-end",position:"absolute",right:"1rem",top:["0","1rem"],zIndex:2,children:[u&&g&&(0,i.Y)(eQ,{color:u,favoriteProduct:r,favoritesStore:o,product_id:l,product_url:c,voltage:g}),(0,i.FD)(n.$nd,{_hover:{bg:"transparent"},bg:"transparent","data-testid":"share-button",justifyContent:"flex-end",onClick:()=>navigator.share?navigator.share({url:m,title:d}):f(!0),onMouseLeave:()=>f(!1),p:{base:0},children:[(0,i.Y)(n.sfO,{color:"#A0A4B3",h:6,mt:"0.25rem",w:6}),(0,i.Y)(e3,{URLShare:m,showShare:p})]})]})]}),(0,i.Y)(n.cGx,{bg:"#E3E3E8",display:{lg:"none"},h:"2px",w:"100%"})]})};var e8=r(31651),e6=r(59711),e4=r(99117),e9=r(535),te=r(67136),tt=r(61547),tr=r(99453);let ti=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tr.n.NoColor.valueOf(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tr.n.NoVoltage.valueOf();return null==e?void 0:e.find(e=>{var i,o;let n=null==e||null==(i=e.combinacoes)?void 0:i.find(e=>(null==e?void 0:e.atributo_slug)===eV.E.Color&&(null==e?void 0:e.valor_slug)===t),a=null==e||null==(o=e.combinacoes)?void 0:o.find(e=>(null==e?void 0:e.atributo_slug)===eV.E.Voltage&&(null==e?void 0:e.valor_slug)===r);return n&&a})},to=e=>e.reduce((e,t)=>("sem-voltagem"!==t.slug&&e++,e),0),tn=l()(()=>Promise.all([r.e(4360),r.e(1357)]).then(r.bind(r,11357)).then(e=>e.ProductSection),{loadableGenerated:{webpack:()=>[11357]},ssr:!1}),ta=l()(()=>r.e(3143).then(r.bind(r,43143)).then(e=>e.RichContentInfo),{loadableGenerated:{webpack:()=>[43143]},ssr:!1}),tl=e=>{var t,r,o,a,l,u,h;
1let{productContent:g,productVariation:p,productTechnicalSheet:f}=e,b=(0,d.useRouter)(),{favorite:v,favorites:w}=(0,e9.A)(),{zipcode:y}=(0,eE.A)(),{showcaseTop:Y,showcaseMiddle:x,showcaseBottom:S}=(0,te.f)(tt.Q.PRODUCT,{productId:g.id}),D=null==Y?void 0:Y[0],[_,k]=(0,s.useState)(-1),[F,j]=(0,s.useState)(p),[I,W]=(0,s.useState)((0,R.Oo)(p.anuncios)),[O,T]=(0,s.useState)((0,R.j8)(p.anuncios)),[N,B]=(0,s.useState)(),[H,L]=(0,s.useState)(),[V,J]=(0,s.useState)(!1),[q,K]=(0,s.useState)(!0),[G,U]=(0,s.useState)(null==(t=(0,R.Oo)(p.anuncios))?void 0:t.id),Q=(0,s.useRef)(null),X=g.variacoes,$=null==F||null==(r=F.combinacoes)?void 0:r.find(e=>(null==e?void 0:e.atributo_slug)===eV.E.Color),Z=null==F||null==(o=F.combinacoes)?void 0:o.find(e=>(null==e?void 0:e.atributo_slug)===eV.E.Voltage),ee=null==$?void 0:$.valor_slug,et={slug:null==Z?void 0:Z.valor_slug,valor:null==Z?void 0:Z.valor},er=(0,A.bq)(et.slug,X),ei=(0,A.or)(X),eo=b.asPath?"https://www.gazin.com.br".concat(b.asPath):"#";(0,s.useEffect)(()=>{if((null==F?void 0:F.anuncios)||N){let t=(0,R.j8)(null==F?void 0:F.anuncios,N);T(t);let r=t[0];if(W(r),r){if(N&&N.length>0&&r.id!==G){var e;let t=N.find(e=>e.id_anuncio===G);if((null==t?void 0:t.erro)||!(null==t||null==(e=t.opcoes)?void 0:e.length)){let e="".concat(y,"-").concat(G,"-").concat(r.id);Q.current!==e&&(Q.current=e,c.toast.info("Atualizamos a oferta para a melhor condi\xe7\xe3o dispon\xedvel na sua regi\xe3o",{autoClose:6e3}))}}N&&0!==N.length||U(r.id)}}},[F,N]),(0,s.useEffect)(()=>{k(0)},[]);let en=(0,s.useMemo)(()=>{let e="".concat(F.titulo.replace(" - Sem Cor",""));return et.slug&&et.slug!==tr.n.NoVoltage&&et.valor?e.concat(" - ".concat(et.valor)):e},[F.titulo,et.slug,et.valor]),ea=!!(0,R._Z)(N,O);function el(e,t){var r;let i;e===eV.E.Voltage&&(i=ti(X,ee,t)),e===eV.E.Color&&(i=ti(X,t,et.slug)),i&&(B(void 0),U(null==(r=(0,R.Oo)(i.anuncios))?void 0:r.id),j(i),ed(i))}let ed=e=>{let t=null==e?void 0:e.combinacoes[0].valor_slug,r=null==e?void 0:e.combinacoes[1].valor_slug,i={pathname:b.pathname},o={pathname:"/produto/".concat(g.slug,"/").concat(g.id,"/").concat(t,"/").concat(r)};b.push(i,o,{shallow:!0})},es=g.avaliacoes.totais.media,ec=g.avaliacoes.totais.quantidade_avaliacoes;return(0,i.FD)(i.FK,{children:[!!I&&(0,i.Y)(eH,{productContent:g,activeVariation:F,activeAd:I.id}),(0,i.FD)("main",{children:[!!g.categoria&&(0,i.Y)(z.A,{category:{nome:g.categoria.nome,slug:g.categoria.slug,categoria_pai:{nome:null==(l=g.categoria.categoria_pai)||null==(a=l.find(e=>e.slug===g.categoria.pai_slug))?void 0:a.nome,slug:g.categoria.pai_slug}},social:!1}),(0,i.Y)(eI,{adActive:I,setCartProductData:L,variationTitle:F.titulo,hasPriceVariation:g.possui_preco_variavel,allAds:O,freight:N}),(0,i.Y)(n.son,{justifyContent:"center",mb:["1.5rem","1.5rem"],minH:["unset","31.25rem"],mt:"1rem",children:(0,i.FD)(n.son,{flex:"1",flexDir:["column","row"],justifyContent:["normal","space-between"],maxW:["100%","81.938rem"],px:["0","0.938rem"],children:[(0,i.FD)(n.son,{display:["flex","grid"],flex:"1",flexDirection:"column",gridTemplateRows:["unset","auto 1fr"],children:[(0,i.Y)(n.son,{flexDirection:"column",maxW:"27.813rem",maxH:"31rem",children:!!F&&(0,i.Y)(e7,{activeProductVariation:F,URLShare:eo,favoritesStore:w,numberOfUniqueColors:er.length,productColor:ee,productId:g.id,productTitle:en,productUrl:b.asPath,productVoltage:null==et?void 0:et.slug,favoriteProduct:v})}),(0,i.FD)(n.son,{flex:"1",flexDirection:"column",mx:["0.938rem","unset"],px:["0","1.5rem"],children:[F&&(0,i.FD)(n.BJc,{children:[(0,i.Y)(n.EYj,{as:"h1",color:P.w.colors.grey[100],fontSize:["1rem","1.25rem"],fontWeight:"600",lineHeight:["1.375rem","1.625rem"],"data-testid":"product-title",children:en}),(0,i.Y)(n.EYj,{_hover:{color:"#7c8096"},as:"a",color:"#7c8096",cursor:"default",fontSize:["0.6875rem","0.875rem"],fontWeight:"400",lineHeight:"1.1875rem",width:"100%","data-testid":"product-sku",children:I?"C\xf3d. ".concat(I.sku):""}),(0,i.FD)(n.son,{alignItems:"center",flexDirection:"row",children:[(0,i.Y)(n.Moy,{description:es?"".concat(es.toFixed(1)):void 0,fontColor:"neutral.600",fontSize:"0.75rem",rating:es,starSize:{base:"1.25rem",md:"1.5rem"},"data-testid":"product-rating"}),ec>0?(0,i.Y)(n.EYj,{borderBottom:"0.0625rem solid var(--chakra-colors-primary-500)",color:"primary.500",cursor:"pointer",fontSize:"0.75rem",lineHeight:"0.75rem",onClick:()=>{let e=document.getElementById("product-reviews");if(e){let t=e.getBoundingClientRect().top+window.scrollY+-160;window.scrollTo({top:t,behavior:"smooth"})}},marginLeft:"0.5rem",children:"(".concat(ec," avalia\xe7\xf5es)")}):(0,i.Y)(n.EYj,{color:"neutral.600",fontSize:"0.75rem",lineHeight:"0.75rem",marginLeft:"0.5rem",children:"(Sem avalia\xe7\xf5es)"})]})]}),(0,i.FD)(n.Tku,{mt:"1.5rem",gap:"1.5rem",alignItems:"flex-start",children:[((e,t)=>e.length<1&&t.reduce((e,t)=>
1(t.slug,e),0)>1||1==e.length||1==to(t))(er,ei)&&!((e,t)=>to(t)>1||e.length>1||to(t)>1&&e.length>1)(er,ei)&&(0,i.Y)(n.EYj,{fontFamily:"body",overflow:"hidden",textOverflow:"ellipsis",fontSize:"1rem",lineHeight:"1.2rem",color:"neutral.600",textAlign:"left",noOfLines:4,mb:0,children:(0,A.Z7)(g.descricao)}),(0,i.Y)(n.$nd,{variant:"link",_hover:{textDecoration:"none"},onClick:()=>{k(0),K(!1);let e=null,t=document.getElementById("product-information");if(t&&(e=t.getBoundingClientRect()),e)try{window.scrollTo(e.left+window.scrollX,e.top+window.scrollY-250)}catch(e){console.error("N\xe3o foi poss\xedvel mover a tela")}},m:"0 !important","data-testid":"more-info-button",children:(0,i.Y)(n.EYj,{color:"primary.500",fontSize:"1rem",lineHeight:"1.2rem",fontFamily:"body",textDecoration:"underline",textUnderlineOffset:"0.2188rem",mb:0,fontWeight:400,children:"Mais informa\xe7\xf5es"})}),(0,i.Y)(n.cGx,{w:"100%",maxW:"26.875rem",height:"0.0625rem",bg:"#E3E3E8",m:"0 !important",border:"none"})]}),(0,i.FD)(n.son,{flexDir:"column",margin:"1rem 0 0.6rem 0",width:"100%",children:[et.slug&&!(0,M.RJ)(et.slug)&&(0,i.FD)(i.FK,{children:[(0,i.Y)(n.azJ,{width:"100%",display:V?"block":"none",children:(0,i.Y)(n.son,{alignItems:"center",background:"transparent",border:"0.0625rem solid red",borderRadius:"0.1875rem",color:"red",fontSize:"0.875rem",marginTop:"0.3125rem",padding:"0.3125rem 0.625rem",width:"50%",children:(0,i.Y)("span",{children:"N\xe3o esque\xe7a de selecionar a voltagem adequada!"})})}),(0,i.Y)(eM,{attributes:(0,M.K_)(ei),selectAttribute:el,selectedAttribute:{slug:et.slug,value:(0,A.DZ)(et.valor)},attributeLabel:null==Z?void 0:Z.atributo,availableVariations:X,children:(0,i.Y)(eK,{})})]}),ee&&ee!==tr.n.NoColor&&(0,i.Y)(eM,{attributes:er,selectAttribute:el,selectedAttribute:{slug:ee,value:null==$?void 0:$.valor},attributeLabel:null==$?void 0:$.atributo,children:(0,i.Y)(eq,{})})]})]}),(0,i.Y)(n.son,{alignItems:"flex-start",display:["none","flex"],flex:"1",gridColumn:"span 2",justifyContent:"center",children:!!ea&&!!D&&(0,i.Y)(C,{products:null==(u=D.displays[0])?void 0:u.recommendations.slice(0,3),title:D.title,subtitle:D.subtitle},D.id)})]}),(0,i.Y)(n.son,{flex:"1",flexDirection:"column",maxW:["unset","22.5rem"],mx:["0.938rem","unset"],children:(0,i.Y)(ej,{adActive:I,ads:O,dataProductCart:H,freight:N,hasWarranty:!!(null==g?void 0:g.garantia),route:b,setDataProductCart:L,setShipping:B,setShowError:J,uniqueVoltages:ei,variationActive:F,voltageProduct:et,hasPriceVariation:g.possui_preco_variavel})})]})}),(0,i.FD)(n.son,{flexDir:"column",children:[(0,i.Y)(n.azJ,{display:["flex","none"],width:"100%",padding:"0 0.938rem",marginY:"1.5rem",children:g&&ee&&et.slug&&(0,i.Y)(E,{productSlug:g.slug,productId:g.id,colorSlug:ee,voltageSlug:et.slug})}),null==Y||null==(h=Y.slice(1))?void 0:h.map(e=>{var t;return(0,i.Y)(tn,{title:e.title,subtitle:e.subtitle,products:null==(t=e.displays[0])?void 0:t.recommendations},e.id)}),(0,i.Y)(ta,{brandSlug:g.marca_slug,manufacturerCode:F.codigo_fabricante}),null==x?void 0:x.map(e=>{var t;return(0,i.Y)(tn,{title:e.title,subtitle:e.subtitle,products:null==(t=e.displays[0])?void 0:t.recommendations},e.id)}),(0,i.Y)(eG.i,{productContent:g,technicalSheet:f,showMore:q,accordionIndex:_,setAccordionIndex:k}),(0,i.FD)(n.mcf,{id:"product-reviews",marginBottom:"4rem",marginTop:"1.5rem",maxWidth:"81.875rem",padding:"0 0.938rem",width:"full",children:[(0,i.FD)(n.EYj,{color:"neutral.800",fontSize:{base:"1rem",md:"1.25rem"},fontWeight:"700",marginBottom:"1rem",textAlign:"left",width:"100%","data-testid":"reviews-title",children:["Avalia\xe7\xf5es"," ",(0,i.FD)(n.EYj,{as:"span",fontWeight:"400",children:["(",g.avaliacoes.totais.quantidade_avaliacoes,")"]})]}),0!==g.avaliacoes.totais.quantidade_avaliacoes?(0,i.FD)(n.son,{flexDirection:{base:"column",md:"row"},gap:"2rem",children:[(0,i.FD)(n.Tku,{gap:"1.5rem",width:{base:"100%",md:"25%"},children:[(0,i.Y)(e8.D,{rating:g.avaliacoes.totais.media}),(0,i.Y)(e4.Z,{display:{base:"none",md:"flex"},ratingPercentages:g.avaliacoes.totais.porcentagem_avaliacoes,"data-testid":"ratings"})]}),(0,i.FD)(n.son,{alignItems:"center",flex:"1",flexDirection:"column",gap:"1rem",children:[(0,i.FD)(n.EYj,{color:"neutral.800",fontSize:{base:"0.875rem",md:"1rem"},fontWeight:"700",textAlign:"left",width:"100%","data-testid":"comments-title",children:["Coment\xe1rios"," ",(0,i.FD)(n.EYj,{as:"span",fontWeight:"400",children:["(",g.avaliacoes.totais.quantidade_comentarios,")"]})]}),!g.avaliacoes.comentarios.length&&(0,i.Y)(n.ovh,{borderRadius:"0.5rem",height:"100%",width:"100%",paddingTop:{base:"3.654rem",md:0},children:(0,i.Y)(n.EYj,{color:"neutral.700",fontWeight:"600",fontSize:{base:"0.875rem",md:"1.125rem"},children:"N\xe3o h\xe1 coment\xe1rios para este produto"})}),g.avaliacoes.comentarios.map((e,t)=>(0,i.Y)(e6.M,{colorVoltage:e.cor_voltagem,date:e.data,description:e.comentario,id:e.id,liked:e.curtiu,name:e.nome,quantityOfDislikes:e.quantidade_descurtida,quantityOfLikes:e.quantidade_curti
1da,rating:e.nota,"data-testid":"comment-".concat(t)},t)),g.avaliacoes.totais.quantidade_comentarios>3&&(0,i.Y)(m.A,{href:"/avaliacoes/produto/".concat(g.id),children:(0,i.Y)(n.cGW,{height:"2.625rem",label:"Ver todas as avalia\xe7\xf5es",variantType:"outline",width:"18.5rem"})})]})]}):(0,i.Y)(n.ovh,{backgroundColor:"neutral.50",borderRadius:"0.5rem",height:{base:"4.0625rem",md:"6.375rem"},width:"100%",children:(0,i.Y)(n.EYj,{color:"neutral.700",fontSize:{base:"0.875rem",md:"1.125rem"},children:"Este produto n\xe3o possui avalia\xe7\xf5es"})})]}),null==S?void 0:S.map(e=>{var t;return(0,i.Y)(tn,{title:e.title,subtitle:e.subtitle,products:null==(t=e.displays[0])?void 0:t.recommendations},e.id)})]})]})]})};var td=!0;function ts(e){let{productContent:t,productVariation:r,productTechnicalSheet:n}=e;return(0,i.Y)(o.A,{pageTopButton:!0,children:(0,i.Y)(tl,{productContent:t,productTechnicalSheet:n,productVariation:r},"".concat(t.id,"-").concat(r.id))})}},97314:(e,t,r)=>{"use strict";r.d(t,{EYj:()=>i.EYj,azJ:()=>i.azJ,son:()=>i.son});var i=r(72452)},99117:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var i=r(18153),o=r(72452),n=r(14232);let a=e=>{let{ratingPercentages:t,selectedRatings:r,setSelected:a,...l}=e,[d,s]=(0,n.useState)(r||[]);(0,n.useEffect)(()=>{s(r||[])},[r]);let c=Array.from(Object.entries(t)).map(e=>{let[t,r]=e;return{isSelected:d.includes(Number(t)),percentage:r,rating:Number(t)}});return(0,i.FD)(o.Tku,{border:"1px solid var(--chakra-colors-neutral-200)",borderRadius:"0.5rem",color:"neutral.700",gap:"1rem",minHeight:"15.625rem",mt:"0 !important",paddingX:"1rem",paddingY:"1.5rem",width:"100%",...l,children:[(0,i.Y)(o.EYj,{fontSize:"1.125rem",fontWeight:"700",children:"Notas"}),[...c.reverse()].map(e=>{let{isSelected:t,percentage:r,rating:n}=e;return(0,i.FD)(o.ztN,{mt:"0 !important",width:"100%",children:[!!a&&(0,i.Y)(o.Sc0,{borderColor:"neutral.200",isChecked:t,onChange:()=>((e,t)=>{e?(s(d.filter(e=>e!==t)),null==a||a(e=>e.filter(e=>e!==t))):(s([...d,t]),null==a||a(e=>[...e,t]))})(t,n)}),(0,i.Y)(o.ztN,{backgroundColor:"neutral.50",border:"1px solid var(--chakra-colors-neutral-300)",borderRadius:"0.625rem",paddingX:"0.5rem",paddingY:"0.25rem",children:(0,i.FD)(o.ztN,{children:[(0,i.Y)(o.EYj,{fontSize:"0.625rem",fontWeight:"700",lineHeight:"0.625rem",children:n}),(0,i.Y)(o.cGx,{backgroundColor:"neutral.300",minHeight:"0.75rem",width:"0.0625rem"}),(0,i.Y)(o.yMy,{})]})}),(0,i.Y)(o.kej,{backgroundColor:"white",border:"1px solid var(--chakra-colors-neutral-400)",borderRadius:"full",colorScheme:"primary",flex:"1",height:"0.5rem",value:r}),(0,i.FD)(o.EYj,{color:"neutral.700",fontSize:"0.625rem",fontWeight:"700",lineHeight:"0.625rem",children:[r.toString().replace(/\D/g,""),"%"]})]},n)})]})}}},e=>{e.O(0,[956,9517,219,2708,6245,9921,2589,3123,636,6593,8792],()=>e(e.s=81674)),_N_E=e.O()}]); 2//# sourceMappingURL=[...produto]-89a5004b8a34bb0e.js.map
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.