1(self.webpackChunkagrikaido=self.webpackChunkagrikaido||[]).push([[1327],{2047:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var o=n(8960),r=n(3961),a=(0,o.Z)("input",{target:"e47mp2c0"})({display:"block",border:"none",fontWeight:"300",outline:"none",caretColor:r.Z.colors.main,backgroundColor:"transparent",fontSize:"0.9rem",width:"calc(100% - 1rem)","&::placeholder":{color:r.Z.colors.ink3,fontSize:"0.9rem",lineHeight:1.2},"&:focus::placeholder":{opacity:0}},"")},9736:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var o=n(2171).B.withComponent("a",{target:"e1d8atrz0"})},1327:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ye}});var o=n(107),r=n.n(o),a=n(756),i=n.n(a),l=n(6739),c=n.n(l),s=n(8960),u=n(4130),p=n(7833),d=n(2995),h=n(4196),f=n(9433),m=n(6413),g=n(7042),b=n(1138),v=n(1354),y=n(9197),k=n(2067),w=n(621),x=n(9358),C=n(4844),I=n(8972),Z=n.n(I),j=n(8884),O=n.n(j),S=n(9168),P=n.n(S),F=n(8914),z=n.n(F),R=n(2164),U=n.n(R),D=n(2094),M=n.n(D),J=n(8239),q=n.n(J),H=n(3961),B=n(2047),E=n(2884),T=n(4300),X=n(6293),L=n.n(X),V=T.R.withComponent(L(),{target:"ecxibnd0"}),W=function(e){var t=e.icon,n=e.label,o=e.selected,r=e.onChange;return(0,u.h)(_,null,(0,u.h)(G,{"aria-label":n,type:"checkbox",checked:o,onChange:r}),(0,u.h)(Q,null,t))},_=(0,s.Z)("label",{target:"ewvt79k2"})({name:"757q30",styles:"cursor:pointer;padding:0.4rem 0;margin:0 0.75rem"}),G=(0,s.Z)("input",{target:"ewvt79k1"})({name:"79knp4",styles:"position:absolute;height:1px;width:1px;opacity:0;display:block"}),N="2rem",Q=(0,s.Z)("div",{target:"ewvt79k0"})({display:"flex",width:N,position:"relative",color:H.Z.colors.ink3,"&:before":{content:'""',display:"block",position:"absolute",top:"40%",left:"15%",right:"15%",height:"0.1875rem",borderRadius:"0.125rem",backgroundColor:"currentColor"},"& svg":{transition:"all 300ms ease-in-out",transform:"translateX(0)","& path":{display:"none"},"& path.outline":{display:"block",fill:"currentColor"},"& path.fill":{display:"block",fill:H.Z.colors.paper}},'input[type="checkbox"]:checked + &':{color:H.Z.colors.main,"& svg":{transform:"translateX(calc(".concat(N," - 100%))")}}},"");function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){q()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var K=(0,s.Z)(B.I,{target:"e1fywy393"})({name:"1oj3bp5",styles:"margin:0 0 0 0.5rem"}),Y=(0,s.Z)("header",{target:"e1fywy392"})({name:"kycwx1",styles:"flex:0 0 auto;display:flex;align-items:center;align-self:stretch;justify-content:space-between;padding:0.75rem 0"}),ee=(0,s.Z)("form",{target:"e1fywy391"})(A(A({flex:"0 0 auto",display:"flex",alignItems:"center",width:"calc(100% - 4.5rem)"},H.Z.corners.default),{},{color:H.Z.colors.ink3,backgroundColor:H.Z.colors.paper,boxShadow:H.Z.shadows.input,padding:"0.4rem 0.6rem",margin:"0 0 0 0.75rem",boxSizing:"border-box",border:"1px solid ".concat(H.Z.colors.shade2),"&:focus-within":{border:"1px solid ".concat(H.Z.colors.main)}}),""),te=(0,s.Z)(E.T,{target:"e1fywy390"})({width:"1.5rem",height:"1.5rem",cursor:"pointer",color:H.Z.colors.ink4},""),ne=function(e){z()(r,e);var t,n,o=(t=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=M()(t);if(n){var r=M()(this).constructor;e=Reflect.construct(o,arguments,r)}else e=o.apply(this,arguments);return U()(this,e)});function r(e){var t;return Z()(this,r),t=o.call(this,e),q()(P()(t),"updateValue",(function(e){t.setState({value:e.target.value})})),q()(P()(t),"search",(function(e){var n,o;e.preventDefault(),null===(n=(o=t.props).search)||void 0===n||n.call(o,t.state.value),document.activeElement.blur()})),q()(P()(t),"clear",(function(){var e,n;t.setState({value:""}),null===(e=(n=t.props).search)||void 0===e||e.call(n,"")})),t.state={value:""},t}return O()(r,[{key:"render",value:function(){var e=this.props,t=e.onFilterFavoriteChange,n=e.placeholder,o=e.toggleLabel,r=e.favoriteIcon,a=e.filterFavorite,i=this.state.value;return(0,u.h)(Y,null,(0,u.h)(ee,{onSubmit:this.search},(0,u.h)(V,null),(0,u.h)(K,{name:"searchField",value:i,onInput:this.updateV
1alue,"aria-label":n,placeholder:n}),i&&(0,u.h)(te,{onClick:this.clear})),r&&(0,u.h)(W,{icon:(0,u.h)(r,null),label:o,selected:a,onChange:function(e){return t(e.target.checked)}}))}}]),r}(u.Component),oe=n(1200),re=n(243),ae=n(6628),ie=n(164),le=n(4048),ce=n(2917),se=n(3610),ue=n(6318),pe=n(9736),de=n(1304);function he(e,t){return{from:(e-1)*t,to:e*t-1}}var fe=n(4250),me=n(8951),ge=n(4654),be=(0,h.S)({userCache:b.d,plantsCache:g.PD,plantsSearchIndex:g.Br,combinationsCache:m.Mq,combinationsSearchIndex:m.QU},{loadPlant:y.Tn,findPlants:y.BU,findCombinations:v.He,toggleFavoritePlant:k.cG,toggleFavoriteCombination:k.j9,loadUserProfile:k.II}),ve=(0,s.Z)("aside",{target:"euitfbt0"})({name:"1k12p7d",styles:"padding-top:1.375rem;flex-direction:column;margin:0 0 5rem 0"}),ye=be((0,f.Iu)((function(e){var t=e.t,n=e.locale,o=e.collection,a=(e.userCache,e.plantsCache),l=e.plantsSearchIndex,s=e.combinationsCache,h=e.combinationsSearchIndex,f=e.findPlants,m=e.findCombinations,g=e.toggleFavoritePlant,b=e.toggleFavoriteCombination,y=(0,p.eJ)(o||"plants"),k=c()(y,2),I=k[0],Z=k[1],j=(0,p.eJ)(!1),O=c()(j,2),S=O[0],P=O[1],F=(0,p.eJ)(""),z=c()(F,2),R=z[0],U=z[1],D=(0,p.eJ)(!1),M=c()(D,2),J=M[0],q=M[1],H=(0,p.eJ)(1),B=c()(H,2),E=B[0],T=B[1];(0,p.d4)(i()(r().mark((function e(){var t,n,o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:q(!0),t=E>1,"plants"===I?(n=he(E,36)).from>l.length||f({query:R,favorite:S,range:n,append:t}):(o=he(E,16)).from>h.length||m({query:R,favorite:S,range:o,append:t}),q(!1);case 4:case"end":return e.stop()}}),e)}))),[R,S,I,E]);var X=(0,p.sO)(),L=(0,p.I4)((function(e){e&&(J||(X.current&&X.current.disconnect(),e&&(X.current=new IntersectionObserver((function(e){e[0].isIntersecting&&T((function(e){return e+1}))})),X.current.observe(e))))}),[J]);return(0,u.h)(x.T,null,(0,u.h)(ge.p,{title:t("seo.guide.".concat(I,".title")),preview:t("seo.guide.".concat(I,".description"))}),(0,u.h)(ne,{search:function(e){U(e),T(1)},placeholder:t("guide.search"),toggleLabel:t("guide.toggle"),favoriteIcon:ie.h,filterFavorite:S,onFilterFavoriteChange:function(e){P(e),T(1)}}),(0,u.h)(ue.t,null,(0,u.h)(w.m,{onChange:function(e){var t;t=e.target.value,T(1),P(!1),Z(t),(0,d.route)((0,fe.UM)(fe.Hx.guide,{collection:t},n),!0)},selected:I,tabs:[{value:"plants",label:t("plants.title"),content:function(){return(0,u.h)("section",null,(null==l?void 0:l.length)<1?(0,u.h)(le.n,null,t("plants.notFound")):(0,u.h)(C.r,null,l.map((function(e){return{plantId:e,plant:a[e]}})).map((function(e,t){e.plantId;var o,r,a=e.plant;return(0,u.h)(re.N,{plant:a,href:(0,fe.UM)(fe.Hx.plant,{plantSlug:a.slug},n)},(0,u.h)(se.d,{active:null==a||null===(o=a.meta)||void 0===o?void 0:o.favorite,onClick:(r=a.id,function(){g(r)})}),l.length===t+1&&(0,u.h)("div",{ref:L}))}
1))),(0,u.h)(ve,null,(0,u.h)(pe.M,{href:"mailto:".concat(t("contact.email"),"?subject=").concat(encodeURIComponent(t("plants.ask.subject")),"&body=").concat(encodeURIComponent(t("plants.ask.body"))),target:"_blank"},t("plants.ask.title")," ",(0,u.h)(de.j,{size:"0.5rem"}))))}},{value:"combinations",label:t("combinations.title"),content:function(){return(0,u.h)("section",null,(null==h?void 0:h.length)<1?(0,u.h)(le.n,null,t("combinations.notFound")):(0,u.h)(ae.$,null,h.map((function(e){return{combinationId:e,combination:s[e]}})).map((function(e,t){var o,r,i,l=e.combinationId,c=e.combination;return(0,u.h)(oe.E,{combination:c,href:(0,fe.UM)(fe.Hx.combination,{combinationSlug:(0,me.Wh)(l)},n),mosaic:(0,v.XJ)(c).map((function(e){return{plantId:e,plant:a[e]}})).map((function(e){var t,n=e.plant;return(0,u.h)(ce.p,{alt:null==n||null===(t=n.entry)||void 0===t?void 0:t.name,picture:null==n?void 0:n.picture,size:"328x328",sources:[{size:"164x164",descriptor:"164w"},{size:"246x246",descriptor:"246w"},{size:"328x328",descriptor:"328w"},{size:"492x492",descriptor:"492w"},{size:"656x656",descriptor:"656w"}]})}))},(0,u.h)(se.d,{active:null===(o=s[l])||void 0===o||null===(r=o.meta)||void 0===r?void 0:r.favorite,onClick:(i=l,function(){b(i)})}),h.length===t+1&&(0,u.h)("div",{ref:L}))}
1))),(0,u.h)(ve,null,(0,u.h)(pe.M,{href:"mailto:".concat(t("contact.email"),"?subject=").concat(encodeURIComponent(t("combinations.ask.subject")),"&body=").concat(encodeURIComponent(t("combinations.ask.body"))),target:"_blank"},t("combinations.ask.title")," ",(0,u.h)(de.j,{size:"0.5rem"}))))}}]})))})))},6293:function(e,t,n){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"square"},content:'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="17" y2="17"></line>'};var o=n(3943);e.exports=o(e.exports)}}]);
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.