PageSourceSearch

https://institutodeembalagens.com.br/_next/static/chunks/7725-b7181fafe8c5ffdb.js

js institutodeembalagens.com.br collected 2026-10-04 13:13:14 UTC 9,226 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7725],{5709:(e,r,t)=>{"use strict";t.d(r,{HeaderThemeProvider:()=>n,Y:()=>i});var a=t(95155),o=t(12115),l=t(23001);let s=(0,o.createContext)({headerTheme:void 0,setHeaderTheme:()=>null}),n=({children:e})=>{let[r,t]=(0,o.useState)(l.S?document.documentElement.getAttribute("data-theme"):void 0),n=(0,o.useCallback)(e=>{t(e)},[]);return(0,a.jsx)(s.Provider,{value:{headerTheme:r,setHeaderTheme:n},children:e})},i=()=>(0,o.useContext)(s)},9473:(e,r,t)=>{"use strict";t.d(r,{AuthProvider:()=>n});var a=t(95155),o=t(12115);let l=(0,o.createContext)({}),s="https://institutodeembalagens.com.br",n=({children:e})=>{let[r,t]=(0,o.useState)(),[n,i]=(0,o.useState)(),d=(0,o.useCallback)(async e=>{try{let r=await fetch(`${s}/api/users/create`,{body:JSON.stringify({email:e.email,password:e.password,passwordConfirm:e.passwordConfirm}),credentials:"include",headers:{"Content-Type":"application/json"},method:"POST"});if(r.ok){let{data:e,errors:a}=await r.json();if(a)throw Error(a[0].message);t(e?.loginUser?.user),i("loggedIn")}else throw Error("Invalid login")}catch(e){throw Error("An error occurred while attempting to login.")}},[]),c=(0,o.useCallback)(async e=>{try{let r=await fetch(`${s}/api/users/login`,{body:JSON.stringify({email:e.email,password:e.password}),credentials:"include",headers:{"Content-Type":"application/json"},method:"POST"});if(r.ok){let{errors:e,user:a}=await r.json();if(e)throw Error(e[0].message);return t(a),i("loggedIn"),a}throw Error("Invalid login")}catch(e){throw Error("An error occurred while attempting to login.")}},[]),h=(0,o.useCallback)(async()=>{try{if((await fetch(`${s}/api/users/logout`,{credentials:"include",headers:{"Content-Type":"application/json"},method:"POST"})).ok)t(null),i("loggedOut");else throw Error("An error occurred while attempting to logout.")}catch(e){throw Error("An error occurred while attempting to logout.")}},[]);(0,o.useEffect)(()=>{(async()=>{try{let e=await fetch(`${s}/api/users/me`,{credentials:"include",headers:{"Content-Type":"application/json"},method:"GET"});if(e.ok){let{user:r}=await e.json();t(r||null),i(r?"loggedIn":void 0)}else throw Error("An error occurred while fetching your account.")}catch(e){t(null),i(void 0)}})()},[]);let u=(0,o.useCallback)(async e=>{try{let r=await fetch(`${s}/api/users/forgot-password`,{body:JSON.stringify({email:e.email}),credentials:"include",headers:{"Content-Type":"application/json"},method:"POST"});if(r.ok){let{data:e,errors:a}=await r.json();if(a)throw Error(a[0].message);t(e?.loginUser?.user)}else throw Error("Invalid login")}catch(e){throw Error("An error occurred while attempting to login.")}},[]),m=(0,o.useCallback)(async e=>{try{let r=await fetch(`${s}/api/users/reset-password`,{body:JSON.stringify({password:e.password,passwordConfirm:e.passwordConfirm,token:e.token}),credentials:"include",headers:{"Content-Type":"application/json"},method:"POST"});if(r.ok){let{data:e,errors:a}=await r.json();if(a)throw Error(a[0].message);t(e?.loginUser?.user),i(e?.loginUser?.user?"loggedIn":void 0)}else throw Error("Invalid login")}catch(e){throw Error("An error occurred while attempting to login.")}},[]);return(0,a.jsx)(l.Provider,{value:{create:d,forgotPassword:u,login:c,logout:h,resetPassword:m,setUser:t,status:n,user:r},children:e})}},23001:(e,r,t)=>{"use strict";t.d(r,{S:()=>a});let a=!!window.document&&!!window.document.createElement},39974:(e,r,t)=>{"use strict";t.d(r,{ThemeProvider:()=>d,D:()=>c});var a=t(95155),o=t(12115),l=t(23001);let s="payload-theme",n=()=>{let e=window.matchMedia("(prefers-color-scheme: dark)");return"boolean"==typeof e.matches?e.matches?"dark":"light":null},i=(0,o.createContext)({setTheme:()=>null,theme:void 0}),d=({children:e})=>{let[r,t]=(0,o.useState)(l.S?document.documentElement.getAttribute("data-theme"):void 0),d=(0,o.useCallback)(e=>{if(null===e){window.localStorage.removeItem(s);let e=n();document.documentElement.setAttribute("data-theme",e||""),e&&t(e)}else t(e),window.localStorage.setItem(s,e),document.documentElement.setAttribute("data-theme",e)},[]);return(0,o.useEffect)(()=>{let e="light",r=window.localStorage.getItem(s);if(r&&["dark","light"].includes(r))e=r;else{let r=n();r&&(e=r)}document.documentElement.setAttribute("data-theme",e),t(e)},[]),(0,a.jsx)(i.Provider,{value:{setTheme:d,theme:r},children:e})},c=()=>(0,o.useContext)(i)},40668:(e,r,t)=>{"use strict";t.d(r,{MobileNavigationDrawer:()=>g});var a=t(95155),o=t(5772),l=t(98500),s=t.n(l),n=t(29857),i=t(33210),d=t(81347),c=t(91503),h=t(22164),u=t(12505),m=t(12115);let w=[{href:"https://www.facebook.com/InstitutodeEmbalagens/",label:"Facebook",icon:u.ok6},{href:"https://www.instagram.com/institutodeembalagens/",label:"Instagram",icon:u.ao$},{href:"https://www.youtube.com/channel/UCTyU23tUm9Ic6m9Q9wLmkHw/",label:"YouTube",icon:u.Vk6},{href:"https://www.linkedin.com/company/instituto-de-embalagens/",label:"LinkedIn",icon:u.H1h}],b={pt:[{href:"/instituto",label:"O Instituto"},{href:"/cursos-foruns-e-workshops",label:"Cursos e eventos"},{href:"/artigos",label:"Artigos"},{href:"/fotos-e-videos",label:"Galeria"},{href:"/seja-um-patrocinador",label:"Seja um patrocinador",highlight:!0},{href:"https://betterpackagingbetterworld.com/",label:"Loja de livros",external:!0},{href:"https://clubedaembalagem.com.br/",label:"Clube de embalagens",external:!0},{href:"/contato",label:"Contato"}],en:[{href:"/en/about/",label:"About the Institute"},{href:"/en/courses-forums-and-workshops/",label:"Courses & events"},{href:"/en/articles/",label:"Articles"},{href:"/en/gallery/",label:"Gallery"},{href:"/en/become-a-sponsor/",label:"Become a sponsor",highlight:!0},{href:"https://betterpackagingbetterworld.com/",label:"Bookstore",external:!0},{href:"https://clubedaembalagem.com.br/",label:"Packaging Club",external:!0},{href:"/en/contact/",label:"Contact"}]};function g({courseTitle:e,courseURL:r,language:t}){let[l,u]=(0,m.useState)(!1),f="en"===t;return(0,m.useEffect)(()=>
1{if(!l)return;let e=document.body.style.overflow;document.body.style.overflow="hidden";let r=e=>{"Escape"===e.key&&u(!1)};return window.addEventListener("keydown",r),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",r)}},[l]),(0,a.jsxs)("div",{className:"mobile-drawer",children:[(0,a.jsx)("button",{"aria-controls":`mobile-menu-${t}`,"aria-expanded":l,"aria-label":f?"Open menu":"Abrir menu",className:"mobile-drawer__trigger",onClick:()=>u(!0),type:"button",children:(0,a.jsx)(n.A,{"aria-hidden":!0,size:25})}),l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{"aria-label":f?"Close menu":"Fechar menu",className:"mobile-drawer__backdrop",onClick:()=>u(!1),type:"button"}),(0,a.jsxs)("aside",{"aria-modal":"true",className:"mobile-drawer__panel",id:`mobile-menu-${t}`,role:"dialog",children:[(0,a.jsxs)("header",{className:"mobile-drawer__header",children:[(0,a.jsx)(o.default,{alt:"Instituto de Embalagens",height:70,src:"/reference/logo.webp",width:264}),(0,a.jsx)("button",{"aria-label":f?"Close menu":"Fechar menu",onClick:()=>u(!1),type:"button",children:(0,a.jsx)(i.A,{"aria-hidden":!0})})]}),(0,a.jsxs)("div",{className:"mobile-drawer__body",children:[(0,a.jsxs)("section",{children:[(0,a.jsx)("h2",{children:f?"Highlights":"Destaques"}),(0,a.jsxs)(s(),{className:"mobile-drawer__course",href:r,onClick:()=>u(!1),children:[(0,a.jsx)("small",{children:f?"Next course":"Pr\xf3ximo curso"}),(0,a.jsx)("strong",{children:e})]}),(0,a.jsxs)("div",{className:"mobile-drawer__feature-grid",children:[(0,a.jsxs)(s(),{className:"mobile-drawer__feature mobile-drawer__feature--women",href:"/o-manifesto",onClick:()=>u(!1),children:[(0,a.jsx)(d.A,{"aria-hidden":!0}),f?"Women":"Mulheres"]}),(0,a.jsxs)(s(),{className:"mobile-drawer__feature mobile-drawer__feature--webinar",href:f?"/en/webinar-video/":"/webinar-video",onClick:()=>u(!1),children:[(0,a.jsx)(c.A,{"aria-hidden":!0}),"Webinar"]})]})]}),(0,a.jsxs)("section",{children:[(0,a.jsx)("h2",{children:f?"Navigation":"Navega\xe7\xe3o"}),(0,a.jsx)("nav",{className:"mobile-drawer__links",children:b[t].map(e=>(0,a.jsxs)(s(),{className:e.highlight?"is-highlighted":void 0,href:e.href,onClick:()=>u(!1),rel:e.external?"noreferrer":void 0,target:e.external?"_blank":void 0,children:[(0,a.jsx)("span",{children:e.label}),e.external&&(0,a.jsx)(h.A,{"aria-hidden":!0})]},e.href))})]}),(0,a.jsxs)("section",{children:[(0,a.jsx)("h2",{children:f?"Social media":"M\xeddias sociais"}),(0,a.jsx)("div",{className:"mobile-drawer__socials",children:w.map(({href:e,icon:r,label:t})=>(0,a.jsxs)("a",{href:e,rel:"noreferrer",target:"_blank",children:[(0,a.jsx)("span",{children:(0,a.jsx)(r,{"aria-hidden":!0})}),(0,a.jsx)("small",{children:t})]},t))})]}),(0,a.jsxs)(s(),{className:"mobile-drawer__language",href:f?"/":"/en/",onClick:()=>u(!1),children:[(0,a.jsx)(o.default,{alt:"",height:32,src:f?"/reference/o-manifesto/flag-br.svg":"/reference/flag.svg",width:32}),f?"Portugu\xeas":"English"]})]})]})]})]})}},47204:()=>{},98561:(e,r,t)=>{"use strict";t.d(r,{SonnerProvider:()=>s});var a=t(95155),o=t(39974),l=t(66609);let s=({children:e})=>{let{theme:r}=(0,o.D)();return(0,a.jsxs)(a.Fragment,{children:[e,(0,a.jsx)(l.l$,{richColors:!0,position:"bottom-left",theme:r||"light"})]})}}}]);

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.