1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5557:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(4369)}])},1796:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(5893),r=n(7294);function a(){let[e,t]=(0,r.useState)(""),n=n=>{n.preventDefault(),e&&"pointerdown"===n.type?t("Submitted"):e||t("Submit")};return(0,i.jsxs)(i.Fragment,{children:[e&&(0,i.jsx)("button",{type:"submit",name:"data-submit",style:{maxWidth:"70px",backgroundColor:"#045489",color:"#c7e9c0",outline:"none",border:"none"},children:"Submitted"}),!e&&(0,i.jsx)("button",{type:"submit",name:"data-submit",onPointerDown:n,children:"Submit"})]})}},4369:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var i=n(5893),r=n(7294),a=n(1163),s=n(2962),o=n(1796);function c(){let e=(0,a.useRouter)(),{search:t,api_key:n="1a754415"}=e.query;async function c(){let e=await fetch("https://www.omdbapi.com/?s=".concat(t,"&apikey=").concat(n)),i=await e.json();console.log(i)}return(0,r.useEffect)(()=>{t&&c(t)},[t,n,c]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.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.",author:"Maria D. Campbell",title:"OMDB API Movie Search App Search"}),(0,i.jsx)("div",{className:"site-content-wrapper",children:(0,i.jsx)("div",{className:"wrapper",children:(0,i.jsxs)("main",{className:"index-main",children:[(0,i.jsx)("h1",{className:"movie-data",children:"Search Movies"}),(0,i.jsxs)("form",{id:"data",action:"/results",method:"GET",children:[(0,i.jsx)("input",{type:"text",placeholder:"Search",name:"search",autoFocus:!0,required:!0}),(0,i.jsx)(o.Z,{})]})]})})})]})}},1163:function(e,t,n){e.exports=n(880)}},function(e){e.O(0,[962,774,888,179],function(){return e(e.s=5557)}),_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.