1(this.webpackJsonpwebsite=this.webpackJsonpwebsite||[]).push([[14,24,34,68,76,87,103],{115:function(e,n,t){},122:function(e,n,t){},13:function(e,n,t){"use strict";t.r(n),t.d(n,"Checkbox",(function(){return a}));var c=t(139),i=(t(115),t(7)),r=["name","state","onChange"];function a(e){var n=e.name,t=e.state,a=e.onChange;Object(c.a)(e,r);return Object(i.jsxs)("div",{className:"checkbox__wrapper ".concat(0===t?"-indeterminate":1===t?"-checked":"-unchecked"),onClick:a,children:[Object(i.jsxs)("span",{className:"label -small",children:[" ",n," "]}),Object(i.jsx)("div",{className:"checkbox",children:Object(i.jsx)("div",{className:"checkbox__circle"})})]})}},139:function(e,n,t){"use strict";function c(e,n){if(null==e)return{};var t,c,i=function(e,n){if(null==e)return{};var t,c,i={},r=Object.keys(e);for(c=0;c<r.length;c++)t=r[c],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)t=r[c],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}t.d(n,"a",(function(){return c}))},142:function(e,n,t){"use strict";t.d(n,"a",(function(){return a}));var c=t(29);var i=t(145),r=t(47);function a(e){return function(e){if(Array.isArray(e))return Object(c.a)(e)}(e)||Object(i.a)(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},145:function(e,n,t){"use strict";function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}t.d(n,"a",(function(){return c}))},24:function(e,n,t){"use strict";t.r(n),t.d(n,"RegionMenu",(function(){return h}));var c=t(141),i=t(142),r=t(139),a=(t(122),t(57)),l=t(13),o=t(7),u=t(0),s=["name","checked","open","children","indices"];function d(e){var n=e.name,t=e.checked,h=e.open,b=e.children,f=void 0===b?[]:b,v=e.indices,m=void 0===v?[]:v,p=Object(r.a)(e,s),y=Object(a.useMenuDispatch)();return Object(o.jsxs)("div",{className:"region__selection ".concat(h?"":"-closed"),children:[Object(o.jsxs)("div",{className:"region__element",children:[f.length>0?Object(o.jsx)("span",{className:"triangle",onClick:function(){return y({type:"accordian",indices:m,value:!h})},children:h?Object(o.jsx)("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{d:"M5 7L1.5359 1L8.4641 1L5 7Z",stroke:"white"})}):Object(o.jsx)("svg",{width:"8",height:"10",viewBox:"0 0 8 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{d:"M7 5L1 8.4641V1.5359L7 5Z",stroke:"white"})})}):Object(o.jsx)("span",{}),Object(o.jsx)(l.Checkbox,{state:t,name:n,onChange:function(){return y({type:"check",indices:m,value:1===t?-1:1,abbreviation:p.abbreviation})}})]}),f.map((function(e,n){return Object(u.createElement)(d,Object(c.a)(Object(c.a)({},e),{},{indices:[].concat(Object(i.a)(m),[n]),key:[].concat(Object(i.a)(m),[n]).toString()}))}))]})}function h(e){var n=e.title,t=Object(a.useMenuState)();return Object(o.jsxs)("div",{className:"region__menu",children:[Object(o.jsxs)("h4",{children:[" ",n," "]}),Object(o.jsx)("div",{className:"scrollable",children:Object(o.jsx)("div",{className:"scrollable__content -vertical",children:t.menu.map((function(e,n){return Object(u.createElement)(d,Object(c.a)(Object(c.a)({},e),{},{indices:[n],key:n}))}))})})]})}},57:function(e,n,t){"use strict";t.r(n),t.d(n,"MenuStateContext",(function(){return m})),t.d(n,"MenuDispatchContext",(function(){return p})),t.d(n,"MenuProvider",(function(){return y})),t.d(n,"useMenuState",(function(){return j})),t.d(n,"useMenuDispatch",(function(){return O}));var c=t(45),i=t(141),r=t(0),a=t(149),l=t(59),o=t(60),u=t(7),s={menu:l.hierarchy,currentSelection:Object.keys(l.regions),currentLoaded:0},d={menu:o.hierarchy,currentSelection:Object.keys(o.regions),currentLoaded:0};function h(e,n){e.abbreviation&&(e.hasSides?["".concat(e.abbreviation,"l"),"".concat(e.abbreviation,"r")]:["".concat(e.abbreviation)]).forEach((function(t){1===e.checked?n.push(t):Object(a.remove)(n,(function(e){return e===t}))}))}function b(e,n,t,c){if(0===n.length)e.forEach((function(e){e.checked=t,h(e,c),b(e.children,n,t,c)}));
1else{var i=e[n[0]];if(i)b(i.children,n.slice(1),t,c),i.children.every((function(e){return 1===e.checked}))||i.children.every((function(e){return-1===e.checked}))?(i.checked=t,h(i,c)):i.checked=0}}function f(e,n,t){if(1===n.length){var c=e[n[0]];c&&(c.open=t,c.children.length>0&&f(c.children,n,t))}else n.length>0&&f(e[n[0]].children,n.slice(1),t)}function v(e,n){switch(n.type){case"check":var t=Object(a.cloneDeep)(e);return b(t.menu,n.indices,n.value,t.currentSelection),t;case"accordian":var c=Object(a.cloneDeep)(e);return f(c.menu,n.indices,n.value),console.log(c),c;case"imageload":return Object(i.a)(Object(i.a)({},e),{},{currentLoaded:e.currentLoaded+1});default:throw new Error}}var m=Object(r.createContext)(),p=Object(r.createContext)();function y(e){var n=Object(r.useReducer)(v,"brain"===e.page?s:d),t=Object(c.a)(n,2),i=t[0],a=t[1];return Object(u.jsx)(m.Provider,{value:i,children:Object(u.jsx)(p.Provider,{value:a,children:e.children})})}function j(){return Object(r.useContext)(m)}function O(){return Object(r.useContext)(p)}},60:function(e){e.exports=JSON.parse('{"regions":{"T":"Testes","TO":"Terminal organ","VD":"Vas deferens","RSO":"Additional reproductive organs","B":"Brain","ST":"Statocysts","E":"Eyes","PN":"Pallial nerves","BN":"Brachial nerves","VN":"Visceral nerves","ES":"Esophagus","DG":"Digestive gland","I":"Intestine","Ce":"Cecum","BE":"Beak","S":"Stomach","BM":"Buccal mass","PS":"Posterior salivary glands","R":"Radula","G":"Gills","BH":"Branchial hearts","CH":"Systemic heart","CB":"Cuttlebone","IS":"Ink sac","C":"Cranial cartilage"},"colors":{"B":"#aa444d","BE":"#60657a","BH":"#ffc400","BM":"#87c5e0","C":"#fff3f3","CB":"#edbaba","Ce":"#ce3c3c","CH":"#ffe29a","CO":"#aeb9db","DG":"#a8893a","E":"#3449a0","ES":"#995555","G":"#3aa894","GV":"#ff7718","I":"#976fc1","IS":"#9e6e6e","RSO":"#7479a0","S":"#999999","ST":"#999999","T":"#564a4a","TO":"#61cbdb","VD":"#fc82b0","SK":"#999999","PN":"#c9c288","BN":"#9fd3b8","VN":"#dd8a3d","R":"#a391b5","PS":"#839369"},"hierarchy":[{"name":"All regions","abbreviation":null,"hasSides":null,"funtion":null,"checked":1,"open":true,"children":[{"name":"Reproductive system","abbreviation":null,"function":null,"checked":1,"open":true,"children":[{"name":"Testes","abbreviation":"T","function":null,"checked":1,"open":true,"children":[]},{"name":"Terminal organ","abbreviation":"TO","function":null,"checked":1,"open":true,"children":[]},{"name":"Vas deferens","abbreviation":"VD","function":null,"checked":1,"open":true,"children":[]},{"name":"Additional reproductive organs","abbreviation":"RSO","function":null,"checked":1,"open":true,"children":[]}]},{"name":"Nervous system","abbreviation":null,"function":null,"checked":1,"open":true,"children":[{"name":"Brain","abbreviation":"B","function":null,"checked":1,"open":true,"children":[]},{"name":"Statocysts","abbreviation":"ST","function":null,"checked":1,"open":true,"children":[]},{"name":"Eyes","abbreviation":"E","function":null,"checked":1,"open":true,"children":[]},{"name":"Pallial nerves","abbreviation":"PN","function":null,"checked":1,"open":true,"children":[]},{"name":"Brachial nerves","abbreviation":"BN","function":null,"checked":1,"open":true,"children":[]},{"name":"Visceral nerves","abbreviation":"VN","function":null,"checked":1,"open":true,"children":[]}]},{"name":"Digestive system","abbreviation":null,"function":null,"checked":1,"open":true,"children":[{"name":"Esophagus","abbreviation":"ES","function":null,"checked":1,"open":true,"children":[]},{"name":"Digestive gland","abbreviation":"DG","function":null,"checked":1,"open":true,"children":[]},{"name":"Intestine","abbreviation":"I","function":null,"checked":1,"open":true,"children":[]},{"name":"Cecum","abbreviation":"Ce","function":null,"checked":1,"open":true,"children":[]},{"name":"Beak","abbreviation":"BE","function":null,"checked":1,"open":true,"children":[]},{"name":"Stomach","abbreviation":"S","function":null,"checked":1,"open":true,"children":[]},{"name":"Buccal mass","abbreviation":"BM","function":null,"checked":1,"open":true,"children":[]},{"name":"Posterior salivary glands","abbreviation":"PS","function":null,"checked":1,"open":true,"children":[]},{"name":"Radula","abbreviation":"R","function":null,"checked":1,"open":true,"children":[]}]},{"name":"Circulatory and respiratory system","abbreviation":null,"function":null,"checked":1,"open":true,"children":[{"name":"Gills","abbreviation":"G","function":null,"checked":1,"open":true,"children":[]},{"name":"Branchial hearts","abbreviation":"BH","function":null,"checked":1,"open":true,"children":[]},{"name":"Systemic heart","abbreviation":"CH","function":null,"checked":1,"open":true,"children":[]}]},{"name":"Miscellaneous","abbreviation":null,"function":null,"checked":1,"open":true,"children":[{"name":"Cuttlebone","abbreviation":"CB","function":null,"checked":1,"open":true,"children":[]},{"name":"Ink sac","abbreviation":"IS","function":null,"checked":1,"open":true,"children":[]},{"name":"Cranial cartilage","abbreviation":"C","function":null,"checked":1,"open":true,"children":[]}]}]}],"breadcrumbs":{"T":{"path":"Reproductive system > Testes","function":null},"TO":{"path":"Reproductive system > Terminal organ","function":null},"VD":{"path":"Reproductive system > Vas deferens","function":null},"RSO":{"path":"Reproductive system > Additional reproductive organs","function":null},"B":{"path":"Nervous system > Brain","function":null},"ST":{"path":"Nervous system > Statocysts","function":null},"E":{"path":"Nervous system > Eyes","function":null},"PN":{"path":"Nervous system > Pallial nerves","function":null},"BN":{"path":"Nervous system > Brachial nerves","function":null},"VN":{"path":"Nervous system > Visceral nerves","function":null},"ES":{"path":"Digestive system > Esophagus","function":null},"DG":{"path":"Digestive system > Digestive gland","function":null},"I":{"path":"Digestive system > Intestine","function":null},"Ce":{"path":"Digestive system > Cecum","function":null},"BE":{"path":"Digestive system > Beak","function":null},"S":{"path":"Digestive system > Stomach","function":null},"BM":{"path":"Digestive system > Buccal mass","function":null},"PS":{"path":"Digestive system > Posterior salivary glands","function":null},"R":{"path":"Digestive system > Radula","function":null},"G":{"path":"Circulatory and respiratory system > Gills","function":null},"BH":{"path":"Circulatory and respiratory system > Branchial hearts","function":null},"CH":{"path":"Circulatory and respiratory system > Systemic heart","function":null},"CB":{"path":"Miscellaneous > Cuttlebone","function":null},"IS":{"path":"Miscellaneous > Ink sac","function":null},"C":{"path":"Miscellaneous > Cranial cartilage","function":null}}}')}}]); 2//# sourceMappingURL=14.e2e2f3f8.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.