PageSourceSearch

https://www.martinsatacado.com.br/_next/static/chunks/2996.e6713440131b77aa.js

js martinsatacado.com.br collected 2026-09-24 11:54:20 UTC 11,673 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[615,1444,2996],{77:(e,i,n)=>{n.d(i,{A:()=>c});var t=n(37876);n(14232);var r=n(43802),o=n(23432);let c=({filterCount:e,handleClearFilter:i})=>(0,t.jsx)(o.MK,{children:(0,t.jsxs)(r.A,{container:!0,justifyContent:"space-between",alignItems:"center",children:[(0,t.jsx)(r.A,{item:!0,children:(0,t.jsxs)(o.jQ,{children:["Filtros ",e>0&&`(${e})`]})}),(0,t.jsx)(r.A,{item:!0,children:(0,t.jsx)(o.HH,{color:"default",onClick:()=>i(),disabled:!e,children:"Limpar"})})]})})},3973:(e,i,n)=>{n.d(i,{C:()=>c});var t=n(44501),r=n(14232),o=n(36914),c=r.forwardRef(function(e,i){return r.createElement(o.y,(0,t.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:i}),r.createElement("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}))});c.displayName="ExpandMore"},23432:(e,i,n)=>{n.d(i,{$1:()=>V,$f:()=>B,AD:()=>y,EV:()=>W,GW:()=>p,HH:()=>S,MK:()=>M,Ms:()=>k,Nz:()=>E,QU:()=>j,WI:()=>N,YR:()=>A,bn:()=>z,dm:()=>u,g9:()=>w,hP:()=>f,jQ:()=>T,mW:()=>v,pN:()=>b,wD:()=>C,xW:()=>I});var t=n(76891),r=n(29868),o=n(23477),c=n(67610),a=n(82857),d=n(47310),l=n(37190),s=n(21626),h=n(88589),m=n(70632),x=n(22340);let f=s.Ay.div.withConfig({componentId:"sc-13afcffc-0"})(["padding-right:50px;.MuiAccordion-root.Mui-expanded{margin:unset;}.MuiAccordion-root:before{background-color:unset;}"]),p=(0,s.Ay)(t.S).withConfig({componentId:"sc-13afcffc-1"})(["line-height:normal;font-weight:500;color:",";"],x.d2.withTheme(({backgroundRange:e})=>e[700])),g=(0,s.AH)(["border-bottom:1px solid ",";padding-bottom:4px;@media screen and (max-width:","px){border-bottom:unset;padding-bottom:0;border-radius:unset;padding:0px 14px;margin-bottom:1px;background-color:",";}"],x.d2.withTheme(({backgroundRange:e})=>e[100]),({theme:e})=>e.MOBILE_WIDTH,x.d2.withTheme(({backgroundRange:e})=>e[100])),u=(0,s.Ay)(l.A).withConfig({componentId:"sc-13afcffc-2"})(["padding:0;&&,.MuiAccordionSummary-root.Mui-expanded{min-height:unset;","}.MuiAccordionSummary-content{margin:0;}.MuiAccordionSummary-expandIcon{padding:8px;}@media screen and (max-width:","px){&&.MuiAccordionSummary-root.Mui-expanded{display:flex;}}"],e=>e.$isMainCategory?g:"",({theme:e})=>e.MOBILE_WIDTH),A=(0,s.Ay)(t.S).withConfig({componentId:"sc-13afcffc-3"})(["color:",";"],x.d2.withTheme(({backgroundRange:e})=>e[700])),j=(0,s.Ay)(d.A).withConfig({componentId:"sc-13afcffc-4"})(["padding:0;@media screen and (max-width:","px){background-color:",";padding:0 14px 8px 14px;}"],({theme:e})=>e.MOBILE_WIDTH,x.d2.withTheme(({backgroundRange:e})=>e[50])),y=(0,s.Ay)(d.A).withConfig({componentId:"sc-13afcffc-5"})(["padding:0 0px 0 26px;"]),w=(0,s.Ay)(a.A).withConfig({componentId:"sc-13afcffc-6"})(["background-color:transparent;width:100%;.MuiAccordion-root{background-color:transparent;}@media screen and (max-width:","px){.MuiAccordion-root{background-color:transparent;}}"],({theme:e})=>e.MOBILE_WIDTH),C=(0,s.Ay)(t.S).withConfig({componentId:"sc-13afcffc-7"})(["color:",";font-weight:500;display:flex;align-items:center;text-decoration:",";cursor:pointer;padding-top:",";@media screen and (max-width:","px){padding-bottom:16px;}"],({summaryItem:e})=>x.d2.withTheme(i=>e?i.primary:i.secondary),({summaryItem:e})=>e?"none":"underline",({summaryItem:e})=>e?"0px":"7px",({theme:e})=>e.MOBILE_WIDTH),b=(0,s.Ay)(r.Zi).withConfig({componentId:"sc-13afcffc-8"})(["border:1px solid ",";color:",";:hover{border:none;background-color:",";}"],x.d2.withTheme(({tertiaryRange:e})=>e[100]),x.d2.withTheme(({tertiary:e})=>e),x.d2.withTheme(({tertiaryRange:e})=>e[100])),I=(0,s.Ay)(r.Wg).withConfig({componentId:"sc-13afcffc-9"})(["height:","px;background-color:",";color:",";"],({$height:e})=>e||32,x.d2.withTheme(({backgroundRange:e})=>e[100]),x.d2.withTheme(({tertiary:e})=>e)),k=s.Ay.div.withConfig({componentId:"sc-13afcffc-10"})(["margin:0 auto;width:100%;"]),v=(0,s.Ay)(h.A).withConfig({componentId:"sc-13afcffc-11"})(["> .MuiPaper-root{max-height:90vh;border-radius:8px 8px 0px 0px;padding-top:8px;","{margin:0;padding:0;}}"],f),M=s.Ay.div.withConfig({componentId:"sc-13afcffc-12"})(["padding:8px 16px 16px 16px;"]),S=(0,s.Ay)(r.q2).withConfig({componentId:"sc-13afcffc-13"})(["height:28px;box-shadow:unset;padding:0 18px;"]),T=(0,s.Ay)(t.S).withConfig({componentId:"sc-13afcffc-14"})(["color:",";font-weight:500;"],x.d2.withTheme(({tertiary:e})=>e)),W=s.Ay.div.withConfig({componentId:"sc-13afcffc-15"})(["max-height:65vh;overflow:auto;"]),N=s.Ay.div.withConfig({componentId:"sc-13afcffc-16"})(["padding:24px 16px 16px;"]),E=(0,s.Ay)(r.Zi).withConfig({componentId:"sc-13afcffc-17"}
1)(["height:40px;border:1px solid ",";"],x.d2.withTheme(({tertiaryRange:e})=>e[100])),V=(0,s.Ay)(o.A).withConfig({componentId:"sc-13afcffc-18"})(["padding:5px;margin-left:4px;"]),z=(0,s.Ay)(c.A).withConfig({componentId:"sc-13afcffc-19"})(["padding:5px;margin-left:4px;"]),B=(0,s.Ay)(m.A).withConfig({componentId:"sc-13afcffc-20"})(["display:flex;align-items:baseline;"])},31444:(e,i,n)=>{n.r(i),n.d(i,{default:()=>C});var t=n(37876),r=n(20126),o=n(1079),c=n(43802),a=n(14232),d=n(3973),l=n(83749),s=n(82857),h=n(70632),m=n(74193),x=n(70315),f=n(74444);let p=({filterChildren:e,categoryId:i,parentId:n,isCategory:r})=>{let{applyFilter:o,accordionsExpandedIds:d,expandAccordionFilter:l}=(0,a.useContext)(x.h),g=e?.label?.replace("-"," ")??"",u=()=>o(e.selected,i,e.key,n,r&&"1"!==i),A=d.includes(e.key);return e?.filters?.length>0?(0,t.jsx)(c.A,{container:!0,direction:"column",children:(0,t.jsx)(c.A,{item:!0,children:(0,t.jsxs)(s.A,{elevation:0,expanded:A,children:[(0,t.jsx)(m.dm,{onClick:()=>e.selected&&l(e.key,A),children:(0,t.jsx)(h.A,{control:(0,t.jsx)(m.$1,{size:"small",onChange:u}),label:(0,t.jsx)(m.YR,{children:g}),value:e.key,checked:e.selected})}),(0,t.jsx)(m.AD,{children:(0,t.jsx)(c.A,{container:!0,direction:"column",children:e.filters.map(n=>(0,t.jsx)(c.A,{item:!0,children:(0,t.jsx)(p,{filterChildren:n,categoryId:i,parentId:e.key})},n.key))})})]})})}):(0,t.jsx)(h.A,{control:(0,t.jsx)(m.$1,{size:"small",onChange:u}),label:(0,t.jsx)(m.YR,{children:(0,f.oH)(g)}),value:e.key,checked:e.selected})};p.defaultProps={isCategory:!1};var g=n(18847),u=n.n(g),A=n(91130),j=n(75975);let y=u()(()=>n.e(4220).then(n.bind(n,44220)),{loadableGenerated:{webpack:()=>[44220]},ssr:!1}),w=u()(()=>n.e(7048).then(n.bind(n,7048)),{loadableGenerated:{webpack:()=>[7048]},ssr:!1}),C=()=>{let e=(0,r.HQ)(),i=(0,o.s)(),{filterMap:n,expandAccordionFilter:s,showAllFilterAccordions:h,isExpanded:f,isShowingMore:g,handleClickShowMore:u,showAllFiltersAccordions:C}=(0,a.useContext)(x.h),b=(0,A.Am)(),I=h?l.g:d.C,[k,v]=(0,a.useState)(!0),[,M]=(0,a.useState)(null),[S,T]=(0,a.useState)(null),[W,N]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(n?.size!==0){let e=Array.from(n).slice(0,1)[0][1];M(e);let i="Categoria"===e.filterName&&e?.values[0]?.filters;T(i),N(i.length>0),v(!1)}},[n]),(0,t.jsxs)(t.Fragment,{children:[k?(0,t.jsx)(j.A,{height:"80%",width:"95%"}):(0,t.jsx)(m.SP,{children:(0,t.jsxs)(c.A,{container:!0,direction:"column",spacing:2*!e,children:[W&&Array.from(n).filter(([,e])=>"Categoria"===e.filterName).map(([i,n])=>(0,t.jsxs)(m.g9,{elevation:0,expanded:f(i),children:[(0,t.jsx)(m.dm,{onClick:()=>s(i,f(i)),expandIcon:(0,t.jsx)(d.C,{size:20,color:b.backgroundRange[700]}),$isMainCategory:!0,children:(0,t.jsx)(m.GW,{children:n.filterName})}),(0,t.jsx)(m.QU,{children:(0,t.jsxs)(c.A,{container:!0,direction:"column",children:[n.values[0].filters.slice(0,g(n.filterName)?S.length:4).map(e=>(0,t.jsx)(c.A,{item:!0,children:(0,t.jsx)(p,{filterChildren:e,categoryId:i,isCategory:!0},e.key)},e.label+e.key)),e&&n.values[0].filters.length>4&&(0,t.jsx)(c.A,{children:(0,t.jsx)(m.wD,{onClick:()=>u("Categoria"),children:g("Categoria")?"Ver menos":"Ver mais"})}),!e&&n.values[0].filters.length>4&&(0,t.jsx)(c.A,{children:(0,t.jsx)(m.wD,{onClick:()=>u("Categoria"),children:g("Categoria")?"Ver menos":"Ver mais"})})]})})]},i)),Array.from(n).filter(([,e])=>"Categoria"!==e.filterName).slice(0,h||e?n.size:3).map(([e,i])=>(0,t.jsxs)(m.g9,{elevation:0,expanded:f(e),children:[(0,t.jsx)(m.dm,{onClick:()=>s(e,f(e)),expandIcon:(0,t.jsx)(d.C,{size:20,color:b.backgroundRange[700]}),$isMainCategory:!0,children:(0,t.jsx)(m.GW,{children:i.filterName})}),(0,t.jsx)(m.QU,{children:(0,t.jsxs)(c.A,{container:!0,direction:"column",children:[(0,t.jsx)(m.nC,{children:i.values.slice(0,g(i.filterName)?i.values.length:4).map(i=>(0,t.jsx)(c.A,{item:!0,children:(0,t.jsx)(p,{filterChildren:i,categoryId:e,isCategory:!1},i.key)},i.label+i.key))}),i.values?.length>4&&(0,t.jsx)(c.A,{item:!0,children:(0,t.jsx)(m.wD,{onClick:()=>u(i.filterName),children:g(i.filterName)?"Ver menos":"Ver mais"})})]})})]},e)),!e&&n.size>3&&(0,t.jsx)(c.A,{item:!0,children:(0,t.jsx)(m.pN,{color:"primary",fullWidth:!0,onClick:C,children:(0,t.jsx)(c.A,{container:!0,justifyContent:"center",alignItems:"center",children:(0,t.jsx)(c.A,{item:!0,children:(0,t.jsxs)(c.A,{container:!0,alignItems:"center",children:[(0,t.jsx)(c.A,{item:!0,children:(0,t.jsx)(c.A,{container:!0,children:(0,t.jsx)(I,{color:b.tertiary,size:22})})}),(0,t.jsxs)(c.A,{item:!0,children:[h?"Menos":"Mais"," filtros"]})]})})})})})]})}),!e&&(0,t.jsx)(c.A,{container:!0,justifyContent:"flex-start",children:i?(0,t.jsx)(w,{middlePosition:!0}):(0,t.jsx)(y,{middlePosition:!0})})]})}},62996:(e,i,n)=>{n.r(i),n.d(i,{default:()=>f});var t=n(37876),r=n(14232),o=n(43802),c=n(74193),a=n(31444),d=n(70315),l=n(89099);let s=({handleBackButton:e,handleSeeResultsButton:i})=>(0,t.jsx)(c.WI,{children:(0,t.jsxs)(o.A,{container:!0,spacing:2,children:[(0,t.jsx)(o.A,{item:!0,xs:!0,children:(0,t.jsx)(c.Nz,{fullWidth:!0,color:"primary",onClick:e,children:"Voltar"})}),(0,t.jsx)(o.A,{item:!0,xs:!0,children:(0,t.jsx)(c.sM,{fullWidth:!0,color:"primary",onClick:i,children:"Ver resultados"})})]})});var h=n(77),m=n(64434),x=n(14945);let f=()=>{let e=(0,l.useRouter)(),{filterMap:i,handleBackDropLoading:n}=(0,r.useContext)(d.h),[f,p]=(0,r.useState)(!1),[g,u]=(0,r.useState)(e.query?.filters||[]),A=()=>p(!1),j=async(i=[])=>{n(!0),await e.push({pathname:e.pathname,query:{...e.query,filters:i}}),n(!1),A()},y=async()=>{let e=Array.isArray(g)?g:[g];await j(e)},w=(0,r.useMemo)(()=>x.A.getFilterAppliedCount(Array.from(i.values()).map(e=>e.values).flat()),[i]);return(0,r.useMemo)(()=>{f||u(e.query?.filters||[])},[f,e.query?.filters]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(m.A,{filterCount:w,isBottomSheetOpen:f,setIsBottomSheetOpen:p,children:(0,t.jsxs)(o.A,{container:!0,direction:"column",wrap:"nowrap",children:[(0,t.jsx)(o.A,{item:!0,children:(0,t.jsx)(h.A,{filterCount:w,handleClearFilter:j}
1)}),(0,t.jsx)(o.A,{item:!0,children:(0,t.jsx)(c.EV,{children:(0,t.jsx)(a.default,{})})}),(0,t.jsx)(o.A,{item:!0,children:(0,t.jsx)(s,{handleSeeResultsButton:A,handleBackButton:y})})]})})})}},64434:(e,i,n)=>{n.d(i,{A:()=>o});var t=n(37876);n(14232);var r=n(23432);let o=({filterCount:e,isBottomSheetOpen:i,setIsBottomSheetOpen:n,buttonHeight:o,children:c})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.xW,{onClick:()=>n(e=>!e),fullWidth:!0,color:"primary",$height:o,children:["Filtrar ",e>0&&`(${e})`]}),(0,t.jsx)(r.mW,{open:i,anchor:"bottom",onClose:()=>n(!1),onOpen:()=>n(!0),disableSwipeToOpen:!0,children:(0,t.jsx)(r.Ms,{children:c})})]})},83749:(e,i,n)=>{n.d(i,{g:()=>c});var t=n(44501),r=n(14232),o=n(36914),c=r.forwardRef(function(e,i){return r.createElement(o.y,(0,t.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:i}),r.createElement("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}))});c.displayName="ExpandLess"}}]);

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.