PageSourceSearch

https://rplants.netlify.app/static/js/10.0892853d.chunk.js

js rplants.netlify.app collected 2026-10-03 11:21:36 UTC 3,851 bytes, 2 lines download raw bytes

1(this.webpackJsonprplants=this.webpackJsonprplants||[]).push([[10],{79:function(n,t,e){"use strict";e.r(t),e.d(t,"PlantsContainer",(function(){return v}));var r=e(20),a=e(21),i=e(23),c=e(22),o=e(1),l=e(0),s=e(2),u=e(3);function d(){var n=Object(s.a)(["\n    position: relative;\n    top: 0;\n    bottom: 0;\n    min-height: 100vh;\n    width: 100%;\n    z-index: 0;\n    background-image: url('https://i.ibb.co/K0Ww3rX/Final-40.webp');\n    background-attachment: fixed;\n    background-size: cover;\n    background-position: top center;\n    background-repeat: no-repeat;\n    background-size: 100vw;\n    @media screen and (max-width: 1024px) {\n        background-image: url('https://i.ibb.co/VH4pFYg/background40.webp');\n        background-repeat: repeat;\n    }\n"]);return d=function(){return n},n}function p(){var n=Object(s.a)(["\n    display: flex;\n    flex-flow: row wrap;\n    flex-direction: row;\n    justify-content: center;\n    align-content: flex-start;\n    padding: 10px;\n    height: 100%;\n    margin-top: 4vh;\n    @media (max-width: 900px) {\n        margin-top: 4vh;\n        flex-direction: row;\n        align-content: flex-start;\n    }\n    @media (max-width: 800px) {\n        margin-top: 4vh;\n        flex-direction: column;\n        align-content: center;\n    }\n}\n"]);return p=function(){return n},n}var h=u.a.div(p()),f=u.a.div(d()),b=e(4),j=Object(l.lazy)((function(){return e.e(9).then(e.bind(null,84))})),x=Object(l.lazy)((function(){return e.e(6).then(e.bind(null,76))})),g=Object(l.lazy)((function(){return e.e(5).then(e.bind(null,85))})),m=Object(l.lazy)((function(){return Promise.resolve().then(e.bind(null,39))})),v=function(n){Object(i.a)(e,n);var t=Object(c.a)(e);function e(){var n;Object(r.a)(this,e);for(var a=arguments.length,i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];return(n=t.call.apply(t,[this].concat(i))).state={plants:[],filter:!1,search:""},n.clearFilterSearch=function(){n.setState((function(){return{filter:!1,search:""}}))},n.filterPlants=function(){var t=n.state.plants;return t=n.state.filter?t.filter((function(n){return!0===n.pet_friendly})).filter((function(t){return t.name.toLowerCase().includes(n.state.search.toLowerCase())})):t.filter((function(t){return t.name.toLowerCase().includes(n.state.search.toLowerCase())}))},n.filterClickHandler=function(){n.setState((function(n){return{filter:!n.filter}}))},n.renderPlants=function(){return n.filterPlants().map((function(t){return Object(o.jsx)(j,{plant:t,redirectToShop:n.props.redirectToShop,addToCart:n.props.addToCart},t.id)}))},n.searchHandler=function(t){n.setState({search:t})},n}return Object(a.a)(e,[{key:"componentDidMount",value:function(){var n=this;fetch("https://rplants-backend.herokuapp.com/api/v1/items").then((function(n){return n.json()})).then((function(t){return n.setState({plants:t})})).catch(console.log)}},{key:"render",value:function(){var n=this;return Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(l.Suspense,{fallback:Object(o.jsx)("div",{children:"Loading..."}),children:Object(o.jsxs)(b.d,{children:[Object(o.jsx)(b.b,{path:"/plants/:id",render:function(t){var e,r=parseInt(t.match.params.id);return n.state.plants.length>0&&(e=n.state.plants.find((function(n){return n.id===r}))),Object(o.jsx)(o.Fragment,{children:n.state.plants.length>0?Object(o.jsx)(g,{clearFilterSearch:n.clearFilterSearch,plant:e,addToCart:n.props.addToCart},e.id):Object(o.jsx)("h1",{children:"Loading"})})}}),Object(o.jsx)(b.b,{path:"/plants",render:function(){return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)(f,{children:[Object(o.jsx)(x,{filter:n.filterClickHandler,searchTerm:n.state.search,isFiltered:n.state.filter,search:n.searchHandler}),Object(o.jsx)(h,{children:n.renderPlants()})]}),Object(o.jsx)(m,{})]})}})]})})})}}]),e}(l.Component);t.default=v}}]);
2//# sourceMappingURL=10.0892853d.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.