PageSourceSearch

https://ebomounao.com.br/_next/static/chunks/5170-1e63a958867b5f26.js

js ebomounao.com.br collected 2026-10-07 06:51:59 UTC 8,539 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5170],{32726:(e,t,n)=>{n.d(t,{default:()=>I});var l=n(95155),o=n(8898),a=n(56579),r=n(90940),s=n(92091),i=n(57465),u=n(21863),c=n(11856),d=n(12115),p=n(52619),x=n.n(p),h=n(45308),b=n(66255),f=n(85756),m=n(20063),g=n(70629),j=n(42878);function v(e){let{activeSearchEngine:t=!0}=e;return!0==t?(0,l.jsx)(w,{}):(0,l.jsx)(C,{})}let y=e=>{let{localQuery:t,handleSubmit:n,handleChange:i,handleReset:u}=e;return(0,l.jsxs)(o.Box,{as:"form",w:"100%",h:"100%",borderRadius:"full",overflow:"hidden",onSubmit:e=>{e.preventDefault(),n()},children:[(0,l.jsx)(h.p,{id:"input-search",type:"search",placeholder:"Pesquisar",autoComplete:"off",required:!0,value:t,onChange:i}),(0,l.jsxs)(a.Flex,{children:[t&&(0,l.jsx)(b.K,{className:"input-clear","aria-label":"Limpar busca",onClick:u,children:(0,l.jsx)(j.$8F,{})}),(0,l.jsx)(r.Button,{type:"submit",className:"button-submit",children:(0,l.jsx)(s.Icon,{children:(0,l.jsx)(j.zfp,{})})})]})]})},C=()=>{let e=(0,m.useRouter)(),[t,n]=(0,d.useState)("");return(0,l.jsx)(y,{localQuery:t,handleSubmit:()=>{let n=t.trim();n&&(e.push("/busca?q="+encodeURIComponent(n)),(0,g.o)())},handleChange:e=>{n(e.target.value)},handleReset:()=>{n("")}})},w=()=>{let e=(0,m.useRouter)(),t=(0,m.usePathname)(),[n,o]=(0,d.useState)(""),{query:a}=(0,f.V)();return(0,d.useEffect)(()=>{a&&o(a)},[a]),(0,l.jsx)(y,{localQuery:n,handleSubmit:()=>{let l=n.trim();l&&(e.push("/busca?q="+encodeURIComponent(l)),(null==t?void 0:t.startsWith("/busca"))||(0,g.o)())},handleChange:e=>{o(e.target.value)},handleReset:()=>{o("")}})};var S=n(89350),k=n(85422),B=n(70898);function I(){let{dataUser:e}=(0,S.F)(),[t,n]=(0,d.useState)(!1),[i,u]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{if(!i)return;let e=document.querySelector("#searchBox input");null==e||e.focus()},[i]),(0,d.useEffect)(()=>{let e=document.body;t?e.classList.add("navOpen"):e.classList.remove("navOpen");let l=e=>{if(!t)return;let l=document.querySelector("nav"),o=document.querySelector("header");(null==l?void 0:l.contains(e.target))||(null==o?void 0:o.contains(e.target))||n(!1)};return document.addEventListener("mousedown",l),()=>{e.classList.remove("navOpen"),document.removeEventListener("mousedown",l)}},[t]),(0,l.jsx)(o.Box,{id:"header",as:"header",className:i?"searchOpenedMobile":"searchClosedMobile",w:"100%",h:"var(--header-height)",bg:"#fff",p:["10px","16px 30px"],css:{"&.searchClosedMobile":{"& #btnNav":{display:["flex",null,null,null,"none"]},"& #logo":{display:"flex"},"& #btnCloseSearch":{display:"none"},"& #searchBox":{display:["none",null,"flex"]},"& #btnOpenSearch":{display:["flex",null,"none"]},"& #actionButtons":{display:"flex"}},"&.searchOpenedMobile":{"& #btnNav":{display:"none"},"& #logo":{display:"none"},"& #btnCloseSearch":{display:"flex"},"& #searchBox":{display:"flex"},"& #btnOpenSearch":{display:"none"},"& #actionButtons":{display:"none"}},"& .button":{h:["calc(var(--header-height) - 20px)","calc(var(--header-height) - 32px)"],p:["0","0 20px"],aspectRatio:["1/1","auto"],display:"flex",bg:"blue.light.2",color:"blue.neutral.7",fontSize:"16px",fontWeight:"bold",minW:"0",minH:"0",gap:"8px",borderRadius:"full",alignItems:"center",justifyContent:"center"},"& .button:hover":{bg:"blue.light.2",textDecoration:"none"},"& .button:focus":{bg:"blue.light.2",outline:"none"},"& .button:active":{bg:"blue.light.2"},"& .button svg":{boxSize:["20px","18px"]}},children:(0,l.jsxs)(a.Flex,{h:"100%",alignItems:"center",justifyContent:"space-between",gap:["8px","12px","20px"],children:[(0,l.jsx)(E,{id:"logo"}),(0,l.jsxs)(a.Flex,{w:"100%",h:"100%",alignItems:"center",justifyContent:"center",children:[(0,l.jsx)(r.Button,{className:"button",id:"btnCloseSearch","aria-label":"Fechar busca",bg:"transparent !important",onClick:()=>u(!1),children:(0,l.jsx)(s.Icon,{color:"blue.dark.6",w:"22px",h:"22px",children:(0,l.jsx)(B._Jj,{})})}),(0,l.jsx)(N,{}),(0,l.jsx)(r.Button,{className:"button",id:"btnOpenSearch","aria-label":"Abrir/fechar busca","aria-expanded":i,bg:"transparent !important",ml:"auto",onClick:()=>u(e=>!e),children:(0,l.jsx)(s.Icon,{children:(0,l.jsx)(B.KSO,{})})})]}),(0,l.jsx)(F,{id:"actionButtons",dataUser:e}),(0,l.jsx)(r.Button,{className:"button",id:"btnNav","aria-label":"Exibir/Ocultar Menu","aria-expanded":t,m:"0 0 0 -4px",onClick:()=>n(e=>!e),children:(0,l.jsx)(s.Icon,{children:(0,l.jsx)(j.yFL,{})})})]})})}let E=e=>(0,l.jsx)(i.Link,{asChild:!0,flex:"0 0 auto",alignItems:"center",h:"100%",pt:"1px",gap:["7px","9px"],mr:[null,
1null,null,"20px"],_hover:{textDecoration:"none"},_focus:{outline:"none !important",boxShadow:"none"},...e,children:(0,l.jsxs)(x(),{href:"/",children:[(0,l.jsx)(u._,{display:"block",src:"/img/logo-ebom.svg",alt:"Logotipo do \xc9 BOM",htmlWidth:"50",htmlHeight:"50",w:"auto",h:"100%",py:"1px",fontSize:"0"}),(0,l.jsxs)(c.Text,{as:"strong",flex:"0 0 auto",color:"#043DC5",fontWeight:"800",textTransform:"lowercase",mt:["1px","3px"],fontSize:["21px","23px","25px"],lineHeight:["17px","18px"],children:[(0,l.jsx)(c.Text,{as:"span",display:"block",letterSpacing:"-1px",position:"relative",zIndex:"2",children:"\xc9 Bom"})," ",(0,l.jsx)(c.Text,{as:"span",fontSize:["18px","19px","22px"],opacity:".8",filter:"brightness(1.5)",lineHeight:"1",children:"ou N\xe3o?"})]})]})}),N=()=>{let e=(0,m.usePathname)();return(0,l.jsx)(o.Box,{id:"searchBox",w:"100%",maxW:"580px",h:"100%",position:"relative",css:{"& form":{w:"100%",h:"100%"},"& input":{w:"100%",h:"100%",border:"0",bg:"blue.light.1",color:"blue.neutral.6",fontSize:["15px","16px","18px"],fontWeight:"semibold",p:["0 64px 0 14px","0 64px 0 20px",null,"0 70px 0 20px"],borderRadius:["8px","full"],outline:"none",_placeholder:{color:"blue.neutral.5",fontWeight:"medium"},"&::-webkit-search-cancel-button, &::-webkit-search-decoration":{display:"none",WebkitAppearance:"none",appearance:"none"}},"& .box-border":{bg:"border.color.default","&:has(#input-search:focus)":{bg:"linear-gradient(to right, #2563EB, #3B82F6, #60ADFA)"}},"& .box-border div":{position:"absolute",top:"0",bottom:"0",right:"12px",m:"auto",zIndex:500,w:"auto",h:"100%"},"& button":{color:"blue.neutral.7",minW:"0",minH:"0",p:"0",bg:"transparent",border:"0",borderRadius:"full",display:"flex",alignItems:"center",justifyContent:"center"},"& .input-clear":{opacity:"0.6",w:"24px",h:"100%"},"& .button-submit":{w:["28px","36px"],h:"100%"},"& .button-submit svg":{w:"26px",h:"26px"}},children:(0,l.jsx)(o.Box,{className:"box-border",p:"1px",w:"100%",h:"100%",borderRadius:"full",position:"relative",children:(0,l.jsx)(v,{activeSearchEngine:null!=e&&!!e.startsWith("/busca")})})})},F=e=>{let{dataUser:t,...n}=e,{openSignInUp:r}=(0,k.T)();return(0,l.jsx)(a.Flex,{h:"100%",gap:"inherit",...n,children:(0,l.jsx)(i.Link,{asChild:!0,className:"button",children:(0,l.jsxs)(x(),{href:t?"/perfil":"#","aria-label":t?"Meu perfil":"Fazer login",onClick:e=>{t||(r(),e.preventDefault())},children:[(0,l.jsx)(s.Icon,{children:t?(0,l.jsx)(B.K9B,{}):(0,l.jsx)(B.NPy,{})}),(0,l.jsx)(o.Box,{as:"span",display:["none",null,"block"],children:t?"Perfil":"Entrar"})]})})})}},89350:(e,t,n)=>{n.d(t,{ClientDataContext:()=>s,F:()=>i});var l=n(95155),o=n(12115),a=n(85422);let r=(0,o.createContext)(null);function s(e){let{children:t,data:n,dataUser:s}=e,[i,u]=(0,o.useState)(n),[c,d]=(0,o.useState)(s);(0,o.useEffect)(()=>{u(n),d(s)},[n,s]);let p=(0,o.useCallback)(e=>{u(t=>({...t,...e}))},[]);return(0,l.jsx)(r.Provider,{value:{data:i,dataUser:c,updateData:p},children:(0,l.jsx)(a.DialogSignInUpProvider,{children:t})})}function i(){let e=(0,o.useContext)(r);if(!e)throw Error("useClientData deve ser usado dentro de ClientDataContext");return e}},95607:(e,t,n)=>{n.d(t,{default:()=>u});var l=n(95155),o=n(12115),a=n(90940),r=n(92091),s=n(74667),i=n(5089);function u(e){let{start:t=500,position:n}=e,[u,c]=(0,o.useState)(!1),d=(0,o.useCallback)(()=>{requestAnimationFrame(()=>{c((window.pageYOffset||document.documentElement.scrollTo)>=t)})},[t]);return(0,o.useEffect)(()=>(d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)),[d]),(0,l.jsx)(a.Button,{id:"scrollTo",title:"Ir para o Topo",display:u?"flex":"none",bottom:(null==n?void 0:n.bottom)||["120px",null,"150px"],flexDirection:"column",bg:"blue.dark.5",filter:"opacity(0.5)",color:"#fff",borderRadius:"6px 0 0 6px",position:"fixed",right:"0",zIndex:"20",minW:"0",p:"0",animation:"fadeIn .5s",w:["34px",null,null,"44px"],h:["30px","34px"],_hover:{background:"blue.dark.6"},onClick:()=>(0,i.VG)(!1),children:(0,l.jsx)(r.Icon,{as:s.DF$})})}}}]);

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.