1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74],{5949:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/marcas",function(){return o(82067)}])},82067:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSP:function(){return j},default:function(){return C}});var i=o(85893),n=o(67294),r=o(62286),l=o(24225),a=o(24858),s=o(75970),c=o(98937),p=o(98351);let d=(e,t)=>e.length>t?"".concat(e.substring(0,t),"..."):e;var u=o(98995),h=o(769),x=o(8842);let m=async e=>{let{CLIENT_YOKEN:t}=(0,r.parseCookies)(),{ADMIN_TOKEN:o}=(0,h.Z)(),i=e.reduce((e,t)=>"".concat(e,"slug[]=").concat(t,"&"),"");try{var n;let e=await x.h.get("/public/v4.2/loyalty/cuponeria/category/stores?".concat(i.substring(0,i.length-1),"&limit=200"),{headers:{Authorization:"Bearer ".concat(null!=t?t:o)}});return{data:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.data}}catch(e){return{error:e}}};var g=o(1580),f=JSON.parse('[{"letter":"A","position":0},{"letter":"B","position":1},{"letter":"C","position":2},{"letter":"D","position":3},{"letter":"E","position":4},{"letter":"F","position":5},{"letter":"G","position":6},{"letter":"H","position":7},{"letter":"I","position":8},{"letter":"J","position":9},{"letter":"K","position":10},{"letter":"L","position":11},{"letter":"M","position":12},{"letter":"N","position":13},{"letter":"O","position":14},{"letter":"P","position":15},{"letter":"Q","position":16},{"letter":"R","position":17},{"letter":"S","position":18},{"letter":"T","position":19},{"letter":"U","position":20},{"letter":"V","position":21},{"letter":"W","position":22},{"letter":"X","position":23},{"letter":"Y","position":24},{"letter":"Z","position":25}]'),b=o(53964),w=o(70509),v=o(71515),j=!0,C=e=>{let t,{allStores:o,categoryData:h,storeTrend:x}=e,[j,C]=(0,n.useState)(0),[k,y]=(0,n.useState)(!1),[S,_]=(0,n.use
1State)(""),[I,P]=(0,n.useState)([]),[Z,L]=(0,n.useState)([]),[z,T]=(0,n.useState)([]),[E,R]=(0,n.useState)([]),[N,F]=(0,n.useState)(!1),[B,O]=(0,n.useState)(!1),A=(0,n.useRef)(null),U=(0,n.useRef)(null),D=(0,l.D)(),M=()=>{L(f.map(e=>null==o?void 0:o.filter(t=>t.slug.substr(0,1).toUpperCase()===(null==e?void 0:e.letter))))};(0,n.useEffect)(()=>{M()},[o]);let G=()=>{P([]),F(!1)},J=(e,t)=>{if(z.includes(e)){let t=z.indexOf(e);z.splice(t,1),E.splice(t,1)}else z.push(e),E.push(t);T(z),R(E),y(!k)},X=e=>{G(),setTimeout(()=>{var t;window.scrollTo({top:(null==A?void 0:null===(t=A.current)||void 0===t?void 0:t.children[e].offsetTop)-50,behavior:"smooth"})},200)},H=async e=>{try{let{LOGGED:t,appOs:o,USER_ID:i}=(0,r.parseCookies)();if(F(!1),0===e.length){P([]);return}let n=await m(e);(0,u.U)("Filter",{page:"/marcas",network:o?"".concat(o,"-app"):"cuponeria-web",logged:!!t,user_id:i,os:window.navigator.userAgent,filter_name:"StoreFilter",applied_filter:e}),P(null==n?void 0:n.data)}catch(e){console.error(e),D("Erro ao filtrar! Tente novamente.")}},K=(e,t,o)=>{let{LOGGED:i,appOs:n,USER_ID:l}=(0,r.parseCookies)();(0,u.U)(e,{...t&&{final_url:t},...o&&{predict:o},page:"/marcas",network:n?"".concat(n,"-app"):"cuponeria-web",logged:!!i,user_id:l,os:window.navigator.userAgent,component:"/marcas"})},V=e=>h.find(t=>t.label===e).slug,W=()=>{var e,t,o,i,n;O((null==U?void 0:null===(t=U.current)||void 0===t?void 0:null===(e=t.getBoundingClientRect())||void 0===e?void 0:e.top)<80||(null==A?void 0:null===(n=A.current)||void 0===n?void 0:null===(i=n.children[0])||void 0===i?void 0:null===(o=i.getBoundingClientRect())||void 0===o?void 0:o.top)<80)};return(0,n.useEffect)(()=>(window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.A,{title:"Marcas: Cupom de Desconto e Cashback em +2000 Lojas",description:"Confira Cupom de Desconto e Cashback em +2000 Lojas. Acesse agora o maior portal de Cupons Gr\xe1tis para economizar hoje mesmo.",url:"https://cuponeria.com.br/marcas",canonical:"https://www.cuponeria.com.br/marcas",jsonLd:v}),(0,i.jsxs)(a.im,{children:[(0,i.jsx)(b.Dx,{children:"Descubra os melhores cupons de desconto e promo\xe7\xf5es imperd\xedveis em mais de 700 marcas e lojas!"}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b.JI,{children:"Lojas mais populares"}),(0,i.jsx)(b.oU,{children:null==x?void 0:x.map(e=>(0,i.jsx)(a.rU,{href:"/cupom-desconto/".concat(null==e?void 0:e.slug),children:(0,i.jsx)(b.VL,{children:(0,i.jsx)(a.Ee,{src:null==e?void 0:e.logo,alt:null==e?void 0:e.name,width:"100px",borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomLeftRadius:"50%",borderBottomRightRadius:"50%"})})},null==e?void 0:e.id))})]}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b.JI,{children:"Todas as lojas"}),(0,i.jsxs)(b._8,{children:[(0,i.jsx)(p.M,{placeholder:"buscar loja",value:S,onSearch:e=>{let t=null==o?void 0:o.filter(t=>t.name.toUpperCase().includes(e.toUpperCase()));_(e),P(t)},onClear:()=>{G(),K("SearchClosed"),_("")}}),(0,i.jsx)(s.L,{label:(t="",E.length>0?E.forEach(e=>{t+="".concat(e,",")}):t="filtrar por categoriaa",d(t,23).substring(0,t.length-1)),selectionType:"multiple",optionSelectedList:E,options:null==h?void 0:h.map(e=>e.label),onOptionSelect:e=>J(V(e),e),open:N,onToggleFilter:()=>F(!N),onClearFilter:()=>{T([]),R([]),P([])},onApplyFilter:()=>H(z)})]}),(0,i.jsxs)(b.vx,{children:[(0,i.jsx)(b.UP,{children:null==f?void 0:f.map(e=>(0,i.jsx)("button",{type:"button",onClick:()=>X(null==e?void 0:e.position),children:e.letter},null==e?void 0:e.letter))}),(0,i.jsx)(b.LA,{children:null==h?void 0:h.map((e,t)=>(0,i.jsx)(b.Mf,{onClick:()=>{H([null==e?void 0:e.slug]),C(t)},type:"button",clicked:j===t,children:null==e?void 0:e.label},null==e?void 0:e.id))}),(null==I?void 0:I.length)<1&&(0,i.jsx)(b.y9,{ref:A,children:f.map((e,t)=>{var o;return(0,i.jsxs)(b.Nx,{id:"#".concat(null==e?void 0:e.letter),children:[(0,i.jsx)("p",{children:e.letter}),(0,i.jsx)("div",{children:null===(o=Z[t])||void 0===o?void 0:o.map(e=>(0,i.jsx)(b.Ik,{href:"/cupom-desconto/".concat(null==e?void 0:e.slug),children:(0,i.jsx)("h3",{children:null==e?void 0:e.name})},null==e?void 0:e.id))})]},null==e?void 0:e.letter)})})]}),(null==I?void 0:I.length)>0&&(0,i.jsx)(b.KS,{ref:U,children:(0,i.jsx)(b.Gh,{children:I.map(e=>{var t;return(0,i.jsx)(b.e2,{onClick:()=>{K("Search","/cupom-desconto/".concat(null==e?void 0:e.slug),!0)},children:(0,i.jsx)(b.Ik,{href:"/cupom-desconto/".concat(null==e?void 0:e.slug),children:(0,i.jsx)("h3",{children:null==e?void 0:e.name})})},null!==(t=null==e?void 0:e.term_id)&&void 0!==t?t:null==e?void 0:e.id)})})})]}),B&&(0,i.jsx)(b.ZU,{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:(0,i.jsx)(c._E,{size:"55px",color:"#ff008c"})}),(0,i.jsx)(w.default,{})]})]})}},75970:function(e,t,o){"use strict";o.d(t,{L:function(){return k},Z:function(){return y}});var i=o(85893),n=o(5152),r=o.n(n),l=o(24858),a=o(98937),s=o(19521);let c=s.ZP.div.withConfig({componentId:"sc-bbeb8081-0"})(["position:relative;display:flex;flex-direction:column;align-items:end;z-index:10;
1@media (max-width:900px){display:",";}@media (max-width:768px){align-items:center;z-index:",";}"],e=>e.hasMobile?"flex":"none",e=>{let{isOpen:t}=e;return t?"999":"0"}),p=s.ZP.button.withConfig({componentId:"sc-bbeb8081-1"})(["width:325px;border:none;display:flex;position:relative;justify-content:center;padding:13px 0;background:",";box-shadow:0px 3px 6px #00000029;border:1px solid #3a3a3a;border-radius:25px;text-align:center;font-size:14px;font-weight:bold;font-family:Roboto;letter-spacing:0px;color:",";cursor:pointer;@media (max-width:768px){width:100%;padding:8px 0;}"],e=>e.clicked?"#3a3a3a":"#ffffff",e=>e.clicked?"#fff":"#3a3a3a"),d=s.ZP.div.withConfig({componentId:"sc-bbeb8081-2"})(["margin:0 5px;transition:all 0.5s linear;transform:",";"],e=>e.clicked?"rotate(90deg)":"rotate(-90deg)"),u=s.ZP.div.withConfig({componentId:"sc-bbeb8081-3"})(["width:100%;height:100%;pointer-events:",";position:absolute;@media (max-width:768px){width:100%;height:100%;position:fixed;overflow-x:hidden;overflow-y:hidden;text-overflow:ellipsis;z-index:1001;top:0;left:0;display:flex;justify-content:center;align-items:flex-end;pointer-events:",";}"],e=>{let{open:t}=e;return t?"unset":"none"},e=>{let{open:t}=e;return t?"unset":"none"}),h=s.ZP.div.withConfig({componentId:"sc-bbeb8081-4"})(["width:100vw;height:100vh;top:0;right:0;position:fixed;background:#000000;z-index:1;opacity:0.3;@media (max-width:768px){z-index:1;}"]),x=s.ZP.div.withConfig({componentId:"sc-bbeb8081-5"})(["z-index:2;display:block;position:relative;width:",";left:",";top:45px;padding:",";background:#ffffff;box-shadow:0px 3px 20px #00000029;border-radius:14px;box-sizing:border-box;@media (max-width:768px){position:relative;width:100%;height:500px;left:0;bottom:0;border-radius:4px 4px 0px 0px;padding:27px 15px 0 15px;}"],e=>{let{selectionType:t}=e;return"multiple"===t?"780px":"378px"},e=>{let{selectionType:t}=e;return"multiple"===t?"calc(100% - 780px)":"calc(100% - 378px)"},e=>{let{selectionType:t}=e;return"multiple"===t?"30px":"30px 20px"}),m=s.ZP.div.withConfig({componentId:"sc-bbeb8081-6"})(["display:flex;flex-wrap:wrap;",""],e=>{let{selectionType:t}=e;return"multiple"!==t&&(0,s.iv)(["flex-direction:column;flex-wrap:unset;"])}),g=s.ZP.div.withConfig({componentId:"sc-bbeb8081-7"})(["width:30%;display:flex;align-items:center;gap:4px;margin-bottom:30px;margin-right:24px;",""],e=>{let{selectionType:t}=e;return"multiple"!==t&&(0,s.iv)(['gap:0;cursor:pointer;color:#666666;input[type="radio" i]{margin:3px 4px 0px 0px;}@media (min-width:768px){width:40%;}'])}),f=s.ZP.div.withConfig({componentId:"sc-bbeb8081-8"})(["display:flex;justify-content:space-between;width:100%;margin-top:7px;button > div{max-width:160px;max-height:27px;}button{max-width:160px;height:29px;}@media (max-width:768px){flex-direction:column;gap:5px;button > div{max-width:100%;max-height:40px;}button:first-child{order:1;}button{max-width:100%;height:42px;}margin-bottom:100px;}"]),b=s.ZP.button.withConfig({componentId:"sc-bbeb8081-9"})(["position:absolute;top:0;right:7px;width:38px;height:38px;background:none;border:0;cursor:pointer;@media (max-width:768px){right:0;}"]),w=s.ZP.p.withConfig({componentId:"sc-bbeb8081-10"})(["font-size:22px;line-height:18px;font-weight:700;margin-bottom:30px;color:#3a3a3a;@media (min-width:769px){display:none;}"]),v=s.ZP.div.withConfig({componentId:"sc-bbeb8081-11"})(['position:relative;width:11px;height:11px;margin-right:3px;border-radius:50%;border:2px solid #707070;&::before{content:"";display:none;position:absolute;top:calc(50% - 4.5px);left:calc(50% - 4.5px);width:9px;height:9px;border-radius:50%;background-color:#3a3a3a;}']),j=s.ZP.input.attrs({type:"radio"}).withConfig({componentId:"sc-bbeb8081-12"})(["position:absolute;opacity:0;width:0;height:0;&:checked + ","::before{display:block;}"],v),C=r()(()=>Promise.resolve().then(o.bind(o,98083)),{loadableGenerated:{webpack:()=>[98083]}}),k=e=>{let{label:t="filtrar por categoria",onClearFilter:o,onApplyFilter:n,onOptionSelect:r,onToggleFilter:s,mobile:k=!1,open:y=!1,selectionType:S="multiple",options:_=[],optionSelectedList:I=[]}=e,P=()=>{s()},Z=(e,t)=>{let o=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.XZ,{value:e,checked:I.includes(e),onChange:()=>r(e)}),e]});return"multiple"!==S&&(o=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j,{type:"radio",name:"filter",value:e.toString(),checked:I.includes(t),onChange:()=>r(t)}),(0,i.jsx)(v,{}),t!==_.length-1?"at\xe9 R$".concat(e):"acima de R$".concat(_[t-1])]})),o};return(0,i.jsxs)(c,{hasMobile:k,isOpen:y,children:[(0,i.jsxs)(p,{onClick:()=>P(),clicked:void 0!==I[0]||y,children:[t,(0,i.jsx)(d,{clicked:y,children:(0,i.jsx)(a.Xd,{color:y?"#fff":"#707070",size:"12px"})})]}),(0,i.jsx)(u,{open:y,children:(()=>
1{if(y)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h,{onClick:()=>s()}),(0,i.jsxs)(x,{selectionType:S,clicked:y,"data-testid":"filter-content",children:[(0,i.jsx)(b,{type:"button",onClick:()=>{s()},children:(0,i.jsx)(C,{color:"#b9b9b9",size:"14px"})}),(0,i.jsx)(w,{children:t}),(0,i.jsx)(m,{selectionType:S,children:null==_?void 0:_.map((e,t)=>(0,i.jsx)(g,{selectionType:S,onClick:()=>"multiple"!==S&&r(t),children:Z(e,t)},"".concat(e," ").concat(t+1)))}),(0,i.jsxs)(f,{children:[I&&I.length>0&&(0,i.jsx)(l.zx,{variant:"outline",onClick:()=>o(),children:"limpar filtro"}),(0,i.jsx)(l.zx,{onClick:()=>{P(),n()},children:"aplicar"})]})]})]})})()})]})};var y=k},98351:function(e,t,o){"use strict";o.d(t,{M:function(){return p}});var i=o(85893),n=o(67294),r=o(5152),l=o.n(r),a=o(98937),s=o(45702);let c=l()(()=>Promise.resolve().then(o.bind(o,98083)),{loadableGenerated:{webpack:()=>[98083]}}),p=e=>{let{placeholder:t="buscar",width:o,value:r,onSearch:l=()=>console.warn("onSearch n\xe3o foi definido"),onClear:p=()=>console.warn("onClear n\xe3o foi definido")}=e,d=(0,n.useRef)(null),u=e=>{var t;l(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.value)};return(0,i.jsxs)(s.kN,{width:o,children:[(0,i.jsx)(a.HN,{color:"#666666",size:"17px"}),(0,i.jsx)(s.ox,{ref:d,placeholder:t,type:"text",value:r,onChange:e=>u(e),autoComplete:"off"}),""!==r&&(0,i.jsx)(s.B7,{"data-testid":"close-button",onClick:()=>{var e;null==d||null===(e=d.current)||void 0===e||e.focus(),p()},children:(0,i.jsx)(c,{color:"#BFBFBF",size:"14px"})})]})};t.Z=p},45702:function(e,t,o){"use strict";o.d(t,{B7:function(){return l},kN:function(){return n},ox:function(){return r}});var i=o(19521);let n=i.ZP.div.withConfig({componentId:"sc-e8daa0fd-0"})(["width:",";height:45px;display:flex;flex-direction:column;justify-content:center;transition:all 0.3s ease;position:relative;svg{position:absolute;margin-left:10px;max-width:17px;@media (max-width:900px){left:10px;margin:0;}}@media (max-width:900px){width:100%;}"],e=>{let{width:t}=e;return t||"414px"}),r=i.ZP.input.withConfig({componentId:"sc-e8daa0fd-1"})(["max-width:100%;height:45px;background-color:#efefef;border-radius:4px;border:none;padding:0px;padding-left:35px;color:#666666;font:normal normal normal 18px/24px Roboto;&:focus{border:0 none;outline:0;}&:focus::placeholder{opacity:0;}"]),l=i.ZP.button.withConfig({componentId:"sc-e8daa0fd-2"})(["border:none;background:transparent;position:absolute;width:14px;height:14px;top:9px;right:23px;cursor:pointer;"])},1580:function(e,t,o){"use strict";o.d(t,{A:function(){return l}});var i=o(85893),n=o(9008),r=o.n(n);let l=e=>{let{title:t,description:o,type:n="website",url:l="",image:a="https://media.cuponeria.com.br/cuponeria4/imagens/logos/compartilhar-img.jpg",canonical:s="",keyWords:c="",jsonLd:p}=e;return(0,i.jsxs)(r(),{children:[(0,i.jsx)("title",{children:t}),p&&(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(p)}}),(0,i.jsx)("meta",{name:"lomadee",content:"2324685"}),(0,i.jsx)("meta",{name:"description",content:o}),(0,i.jsx)("meta",{property:"og:title",content:t}),(0,i.jsx)("meta",{property:"og:description",content:o}),c&&(0,i.jsx)("meta",{name:"keywords",content:c}),(0,i.jsx)("meta",{property:"og:type",content:n}),(0,i.jsx)("meta",{property:"og:url",content:l}),(0,i.jsx)("meta",{property:"og:image",content:a}),(0,i.jsx)("meta",{property:"og:image:secure_url",content:a}),s&&(0,i.jsx)("link",{rel:"canonical",href:s}),(0,i.jsx)("link",{rel:"alternate",href:"android-app://br.com.cuponeria/https/www.cuponeria.com.br/"}),(0,i.jsx)("link",{rel:"alternate",href:"android-app://br.com.cuponeria/https/www.cuponeria.com.br/.*/cupom/.*"}),(0,i.jsx)("link",{rel:"alternate",href:"android-app://br.com.cuponeria/https/www.cuponeria.com.br/cupom-desconto/.*"}),(0,i.jsx)("link",{rel:"alternate",href:"android-app://br.com.cuponeria/https/www.cuponeria.com.br/busca/.*"}),(0,i.jsx)("link",{rel:"apple-touch-icon",href:"https://media.cuponeria.com.br/cuponeria4/imagens/logos/cuponeria/cuponeria-logo-whats.jpg"}),(0,i.jsx)("link",{rel:"android-touch-icon",href:"https://media.cuponeria.com.br/cuponeria4/imagens/logos/cuponeria/cuponeria-logo-whats.jpg"})]})}},71515:function(e){"use strict";e.exports=JSON.parse('{"name":"Cuponeria","metaTitle":"Cupom de Desconto e Cashback em +2.000 Lojas - Cuponeria","metaDescription":"Cupom de Desconto e Cashback para economizar nas suas compras \xe9 aqui na Cuponeria, o maior Site de Cupons Gr\xe1tis para mais de 2.000 lojas!","jsonLd":[{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"https://www.cuponeria.com.br/","name":"Cuponeria"}}]},{"@context":"https://schema.org","@type":"Webpage","url":"https://www.cuponeria.com.br/","name":"Cuponeria","lastReviewed":"2023-02-24","primaryImageOfPage":[{"@type":"ImageObject"},{"@name":"http://media.cuponeria.com.br/cuponeria4/imagens/logos/cuponeria/icone.webp"}]},{"@context":"https://schema.org","@type":"Store","name":"Cuponeria","url":"https://www.cuponeria.com.br/","image":"http://media.cuponeria.com.br/cuponeria4/imagens/logos/cuponeria/icone.webp","sameAs":["https://www.facebook.com/cuponeria/","https://twitter.com/cuponeria/","https://www.instagram.com/cuponeria/","https://www.youtube.com/@CuponeriaCanal","https://www.tiktok.com/@cuponeria"]}]}')}},function(e){e.O(0,[509,2888,9774,179],function(){return e(e.s=5949)}),_N_E=e.O()}]);
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.