(this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[15],{lerP:function(e,n,t){"use strict";var a=t("q1tI"),i=t.n(a),s=t("/MKj"),c=t("Z0cm"),o=t.n(c),l=t("BvFm"),m=t("JI6e"),g=t("gg9n");class r extends i.a.Component{getChildren(){const{children:e,farm:n}=this.props;let t=e.map((e,t)=>{let a=!0;if(e.minRole){let t=o()(e.minRole)?e.minRole:[e.minRole];for(let e=0;ee),t}render(){const{header:e}=this.props;let n=this.getChildren();return 0===n.length?null:i.a.createElement(m.a,{xl:4,lg:6,md:12,className:"pb-4"},i.a.createElement("div",{className:"menu-header text-nowrap"},i.a.createElement("h5",null,e),i.a.createElement("ul",null,n)))}}var d=r=Object(s.connect)(e=>({farm:e.location.farm}))(r),h=t("3Z9Z"),E=t("VyNe"),p=t("Ke8t"),R=t("LCzB");class u extends i.a.Component{render(){const{t:e,farm:n,user:{ClientID:t}}=this.props;let a=[{header:e("profile"),children:[{path:"".concat(n,"/settings/profile/general"),name:e("general")},{path:"".concat(n,"/settings/profile/changePassword"),name:e("changePassword")},{path:"".concat(n,"/settings/profile/changeMQTTPassword"),name:e("changeMQTTPassword")},{path:"".concat(n,"/settings/profile/personalize"),name:e("personalize")}]},{header:e("buildings"),children:[{path:"".concat(n,"/settings/buildings/manage"),name:e("manage"),minRole:p.BUILDING,id:"buildings-manage"},{path:"".concat(n,"/settings/buildings/map"),name:e("map"),minRole:p.SERVICE},{path:"".concat(n,"/settings/buildings/pairDevice"),name:e("pairDevice"),minRole:p.SERVICE},{path:"".concat(n,"/settings/buildings/assignChambers"),name:e("assignChambers"),minRole:p.SERVICE},{path:"".concat(n,"/settings/buildings/assignRFIDToStand"),name:e("assignRFIDToStand"),minRole:p.SERVICE}]},{header:e("dictionary"),children:[{name:e("manage"),path:"".concat(n,"/settings/dictionary/manage"),minRole:p.BREEDING,id:"dictionary-manage"},{path:"".concat(n,"/settings/dictionary/medicines"),name:e("medicines"),minRole:p.BREEDING,id:"medicines"}]},{header:e("devices"),children:[{path:"".concat(n,"/settings/devices/add"),name:e("add"),minRole:p.SERVICE},{path:"".concat(n,"/settings/devices/manage"),name:e("manage"),minRole:p.SERVICE},{path:"".concat(n,"/settings/devices/addressing"),name:e("addressing"),minRole:p.SERVICE},{path:"".concat(n,"/settings/devices/subaddressing"),name:e("subaddressing"),minRole:p.SERVICE},{path:"".concat(n,"/settings/devices/openSSH"),name:e("openSSH"),minRole:p.SERVICE}]},{header:e("climate"),children:[{path:"".concat(n,"/settings/climate/curves"),name:e("climateCurves"),minRole:[p.DEVICE_CONFIG],id:"climat-curves"},{path:"".concat(n,"/settings/climate/manage"),name:e("settings.settings"),minRole:p.DEVICE_CONFIG},{path:"".concat(n,"/settings/climate-sk3/curves"),name:"".concat(e("climateCurves")," SK3"),minRole:[p.SERVICE]},{path:"".concat(n,"/settings/climate-sk3/manage"),name:"".concat(e("settings.settings")," SK3"),minRole:[p.SERVICE]}]},{header:e("cage"),children:[{path:"".concat(n,"/settings/cage/manage"),name:e("settings.settings"),minRole:p.DEVICE_CONFIG},{path:"".concat(n,"/settings/cage/display"),name:e("display"),minRole:p.DEVICE_CONFIG}]},{header:e("system"),children:[{path:"".concat(n,"/settings/system/locale"),name:e("locale"),minRole:p.BILLING},{path:"".concat(n,"/settings/system/devices"),name:e("devices"),minRole:p.BILLING},{path:"".concat(n,"/settings/system/schedules"),name:e("newSettings.headers.system.schedules"),minRole:p.BILLING}]},{header:e("breeding"),children:[{path:"".concat(n,"/settings/breeding/cycleSettings"),name:e("cycleSettings"),minRole:p.BREEDING},{path:"".concat(n,"/settings/breeding/graftingProgram"),name:e("graftingProgram"),minRole:p.BREEDING},{path:"".concat(n,"/settings/breeding/feedingLevels"),name:e("feedingLevels"),minRole:p.BREEDING}]},{header:e("feeding"),children:[{path:"".concat(n,"/settings/feeding/general"),name:e("newSettings.headers.feeding.general"),id:"general-feeding",minRole:p.DEVICE_CONFIG},{path:"".concat(n,"/settings/feeding/f1/manage"),name:e("f1"),id:"f1-settings",minRole:p.DEVICE_CONFIG},{path:"".concat(n,"/settings/feeding/f3f5/manage"),name:e("f3f5"),id:"f3-f5-settings",minRole:p.DEVICE_CONFIG},{path:"".concat(n,"/settings/feeding/curves"),name:e("feedingCurves"),id:"feeding-curves",minRole:[p.DEVICE_CONFIG]},{path:"".concat(n,"/settings/feeding/schedules"),name:e("schedules"),id:"plans",minRole:[p.DEVICE_CONFIG]},{path:"".concat(n,"/settings/feeding/forages"),name:e("forages"),id:"forages",minRole:[p.DEVICE_CONFIG]},{path:"".concat(n,"/settings/feeding/calibration"),name:e("calibration"),id:"calibration",minRole:p.DEVICE_CONFIG},{path:"".concat(n,"/settings/feeding/waterCalibration"),name:e("waterCalibration"),id:"waterCalibration",minRole:p.SERVICE}]},{header:e("weightPanels"),children:[{path:"".concat(n,"/settings/weightPanels/manage"),name:e("settings.settings"),minRole:p.SERVICE}]},{header:e("notifications.notifications"),children:[{path:"".concat(n,"/settings/notifications/general"),name:e("general")},{path:"".concat(n,"/settings/notifications/cage"),name:e("cage")},{path:"".concat(n,"/settings/notifications/climateSettings"),name:e("climateSettings")},{path:"".concat(n,"/settings/notifications/siloses"),name:e("siloses")},{path:"".concat(n,"/settings/notifications/feeding"),name:e("feeding")},{path:"".concat(n,"/settings/notifications/overallEvents"),name:e("overallEvents")}]},{header:e("newSettings.headers.translate.title"),children:[{path:"".concat(n,"/settings/translate/edit"),name:e("translate"),shouldShow:()=>"TestNewRole"===t,minRole:p.TRANSLATION}]},{header:e("debug"),children:[{path:"".concat(n,"/settings/debug/shadows"),name:e("shadows"),minRole:p.SERVICE},{path:"".concat(n,"/settings/debug/cage"),name:e("newSettings.headers.debug.cage"),minRole:p.SERVICE},{path:"".concat(n,"/settings/debug/bridge"),name:e("bridge"),minRole:p.SERVICE},{path:"".concat(n,"/settings/debug/nrf"),name:e("nrf"),minRole:p.SERVICE},{path:"".concat(n,"/settings/debug/queueSuccess"),name:e("queueSuccess"),minRole:p.SERVICE},{path:"".concat(n,"/settings/debug/terminal"),name:e("terminal"),minRole:p.SERVICE},{path:"".concat(n,"/settings/debug/programs"),name:e("programs"),minRole:p.SERVICE},{path:"".concat(n,"/settings/debug/ramToFram"),name:e("ramToFram"),minRole:p.SERVICE},{path:"".concat(n,"/settings/debug/currentPrograms"),name:e("currentPrograms"),minRole:p.SERVICE},{path:"".concat(n,"/settings/debug/climate"),name:e("newSettings.headers.debug.climate"),minRole:p.SERVICE},{path:"".concat(n,"/settings/debug/loki"),name:e("loki"),minRole:p.SERVICE}]},{header:"Aplikacja mobilna",children:[{path:"".concat(n,"/mobile?breeding=true"),name:"Uruchom (wszystko)",minRole:p.SERVICE},{path:"".concat(n,"/mobile?breeding=false"),name:"Uruchom (urz\u0105dzenia)",minRole:p.SERVICE}]},{header:e("utility"),children:[{path:"".concat(n,"/settings/utility"),name:e("utility")}]},{header:e("chainFeeding"),children:[{path:"".concat(n,"/settings/chainFeeding/manage"),name:e("settings.settings"),minRole:p.SERVICE}]},{header:e("service"),children:[{path:"".concat(n,"/settings/service/maintenance"),name:e("settings.setMaintenance"),minRole:p.SERVICE},{path:"".concat(n,"/settings/service/deleteFarmData"),name:e("settings.deleteFarmData"),minRole:p.SERVICE}]}];return i.a.createElement(E.a,null,i.a.createElement(h.a,null,a.map(e=>i.a.createElement(d,e))))}}u=Object(s.connect)(e=>({farm:e.location.farm,user:e.user.user}))(u);n.a=Object(R.a)()(u)}}]); //# sourceMappingURL=main~1f24c6db.f8da9211.chunk.js.map