PageSourceSearch

https://eloquent-brown-c7850a.netlify.app/static/js/main.af1a3531.chunk.js

js eloquent-brown-c7850a.netlify.app collected 2026-10-03 10:41:35 UTC 4,351 bytes, 2 lines download raw bytes

1(this["webpackJsonpdictionary-project"]=this["webpackJsonpdictionary-project"]||[]).push([[0],{19:function(e,t,n){},38:function(e,t,n){},40:function(e,t,n){},41:function(e,t,n){},42:function(e,t,n){},43:function(e,t,n){},44:function(e,t,n){},45:function(e,t,n){},46:function(e,t,n){"use strict";n.r(t);var c=n(1),s=n.n(c),a=n(14),i=n.n(a),r=(n(19),n(3)),o=n(5),l=n.n(o),j=(n(38),n(0));function d(e){return e.synonyms?Object(j.jsx)("ul",{className:"Synonyms",children:e.synonyms.map((function(e,t){return Object(j.jsx)("li",{children:e},t)}))}):null}n(40);function u(e){return Object(j.jsxs)("div",{className:"Meaning",children:[Object(j.jsx)("h3",{children:e.meaning.partOfSpeech}),e.meaning.definitions.map((function(e,t){return Object(j.jsxs)("div",{children:[Object(j.jsx)("div",{className:"definition",children:e.definition}),Object(j.jsx)("div",{className:"example",children:e.example}),Object(j.jsx)(d,{synonyms:e.synonyms})]},t)}))]})}n(41);function h(e){return Object(j.jsxs)("div",{className:"Phonetic",children:[Object(j.jsx)("a",{href:e.phonetic.audio,target:"_blank",rel:"noreferrer",children:"Listen"}),Object(j.jsx)("span",{className:"phonetic-text",children:e.phonetic.text})]})}n(42);function b(e){return e.results?Object(j.jsxs)("div",{className:"Results",children:[Object(j.jsxs)("section",{className:"noun",children:[Object(j.jsx)("h2",{children:e.results.word}),e.results.phonetics.map((function(e,t){return Object(j.jsx)("div",{children:Object(j.jsx)(h,{phonetic:e})},t)}))]}),e.results.meanings.map((function(e,t){return Object(j.jsx)("section",{children:Object(j.jsx)(u,{meaning:e})},t)}))]}):null}n(43);function f(e){return e.photos?(console.log(e.photos),Object(j.jsx)("div",{className:"Photos",children:Object(j.jsx)("div",{className:"row",children:e.photos.map((function(e,t){return Object(j.jsx)("div",{className:"col-6 photo-box",children:Object(j.jsx)("a",{href:e.src.original,target:"_blank",rel:"noreferrer",children:Object(j.jsx)("img",{src:e.src.landscape,className:"img-fluid",alt:"visual example of the searched word"})})},t)}))})})):null}n(44);function p(){var e=Object(c.useState)("fun"),t=Object(r.a)(e,2),n=t[0],s=t[1],a=Object(c.useState)(null),i=Object(r.a)(a,2),o=i[0],d=i[1],u=Object(c.useState)(!1),h=Object(r.a)(u,2),p=h[0],x=h[1],O=Object(c.useState)(null),m=Object(r.a)(O,2),g=m[0],v=m[1];function N(e){d(e.data[0])}function y(e){v(e.data.photos)}function w(){var e="https://api.dictionaryapi.dev/api/v2/entries/en_US/".concat(n);l.a.get(e).then(N);var t="https://api.pexels.com/v1/search?query=".concat(n,"&per_page=6"),c={Authorization:"Bearer ".concat("563492ad6f9170000100000175b989bf7b4d4a618b532f1fcfcff1ab")};l.a.get(t,{headers:c}).then(y)}return p?Object(j.jsxs)("div",{className:"dictionary",children:[Object(j.jsx)("form",{onSubmit:function(e){e.preventDefault(),w()},children:Object(j.jsx)("input",{type:"search",onChange:function(e){s(e.target.value)},defaultValue:n})}),Object(j.jsxs)("div",{className:"hint",children:[Object(j.jsx)("i",{class:"fas fa-pencil-alt"}),"suggested words: learn, coding, create, fun..."]}),Object(j.jsx)(b,{results:o}),Object(j.jsx)(f,{photos:g})]}):(x(!0),w(),"Loading")}n(45);var x=function(){return Object(j.jsx)("div",{className:"App",children:Object(j.jsxs)("div",{className:"container",children:[Object(j.jsx)("header",{className:"App-header",children:Object(j.jsx)("h1",{className:"text-center",children:"What word do you want to look up?"})}),Object(j.jsx)("main",{children:Object(j.jsx)(p,{})}),Object(j.jsxs)("footer",{className:"text-center",children:[Object(j.jsx)("span",{className:"copyright",children:"\xa9\ufe0f Coded by Cristina Padilla"}),Object(j.jsx)("a",{href:"https://github.com/Mama-simba/dictionary-project",target:"_blank",rel:"noreferrer",children:Object(j.jsx)("i",{className:"fab fa-github-square"})}),Object(j.jsx)("a",{href:"https://www.linkedin.com/in/cristina-padilla-plasencia/",target:"_blank",rel:"noreferrer",children:Object(j.jsx)("i",{className:"fab fa-linkedin"})})]})]})})},O=function(e){e&&e instanceof Function&&n.e(3).then(n.bind(null,47)).then((function(t){var n=t.getCLS,c=t.getFID,s=t.getFCP,a=t.getLCP,i=t.getTTFB;n(e),c(e),s(e),a(e),i(e)}))};i.a.render(Object(j.jsx)(s.a.StrictMode,{children:Object(j.jsx)(x,{})}),document.getElementById("root")),O()}},[[46,1,2]]]);
2//# sourceMappingURL=main.af1a3531.chunk.js.map

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.