PageSourceSearch

https://omdb-api-nextjs.vercel.app/_next/static/chunks/pages/results-4051dded27ce9181.js

js omdb-api-nextjs.vercel.app collected 2026-10-03 07:26:06 UTC 3,072 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[255],{2467:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/results",function(){return t(7104)}])},1796:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var s=t(5893),r=t(7294);function i(){let[e,n]=(0,r.useState)(""),t=t=>{t.preventDefault(),e&&"pointerdown"===t.type?n("Submitted"):e||n("Submit")};return(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)("button",{type:"submit",name:"data-submit",style:{maxWidth:"70px",backgroundColor:"#045489",color:"#c7e9c0",outline:"none",border:"none"},children:"Submitted"}),!e&&(0,s.jsx)("button",{type:"submit",name:"data-submit",onPointerDown:t,children:"Submit"})]})}},7104:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return h},default:function(){return m}});var s=t(5893),r=t(1664),i=t.n(r);function l(e){let{search:n}=e;return(0,s.jsx)(s.Fragment,{children:n.map((e,n)=>(0,s.jsxs)("ul",{className:"container",children:[(0,s.jsx)("li",{children:(0,s.jsx)("img",{src:e.Poster,alt:"movie"})}),(0,s.jsxs)("li",{children:["Movie: ",e.Title]}),(0,s.jsxs)("li",{children:["Year: ",e.Year]}),(0,s.jsxs)("li",{children:["Type: ",e.Type]}),(0,s.jsxs)("li",{children:["Movie ID: ",e.imdbID]})]},n))})}var a=t(2962),o=t(7294);function c(){let[e,n]=(0,o.useState)(!1),t=()=>{n(window.pageYOffset>50)},r=()=>{window.scrollTo({left:0,top:0,behavior:"smooth"})};return(0,o.useEffect)(()=>{window.addEventListener("scroll",t)},[]),(0,s.jsx)("button",{className:"scroll top icon icon-fill",onClick:r,children:(0,s.jsx)("span",{className:"material-icons",children:"keyboard_arrow_up"})})}function u(){let e=()=>{window.scroll(0,window.pageYOffset+100)};return(0,s.jsx)("button",{className:"scroll bottom icon icon-fill",onClick:e,children:(0,s.jsx)("span",{className:"material-icons",children:"keyboard_arrow_down"})})}var d=t(1796),h=!0;function m(e){let{search:n,totalPages:t,title:r,message:o,query:h,totalItems:m,page:p}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.PB,{description:"An OMDB API Movie Search App built with Next.js, Server Side Rendering, Client Side queries, the fetch API, customized Error page, Sass, linters, dotenv, and more.",title:"OMDB API Movie Search App Search Results"}),(0,s.jsxs)("div",{className:"buttons-container",children:[(0,s.jsx)(u,{}),(0,s.jsx)(c,{})]}),(0,s.jsxs)("div",{className:"wrapper",children:[(0,s.jsx)("h1",{className:"search-results",children:o}),(0,s.jsx)(i(),{href:"/",children:"Search Again"}),n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"total-results",children:["Total Results: ",m||""]}),(0,s.jsxs)("p",{className:"total-pages",children:["Total Pages: ",t||""]})]}),(0,s.jsxs)("form",{id:"results",action:"/results",method:"GET",children:[(0,s.jsx)("input",{type:"text",placeholder:"Search Again",name:"search",autoFocus:!0,required:!0}),(0,s.jsx)("input",{type:"number",name:"page",placeholder:"Enter Page",required:!0}),(0,s.jsx)(d.Z,{})]}),(0,s.jsx)(l,{search:n})]})]})}}},function(e){e.O(0,[962,664,774,888,179],function(){return e(e.s=2467)}),_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.