PageSourceSearch

https://portal.farmdeck.com/static/js/feature-settings.eb928e88.chunk.js

js farmdeck.com collected 2026-09-25 03:12:49 UTC 5,918 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkfarmdeck=globalThis.webpackChunkfarmdeck||[]).push([[5927],{10881(e,t,s){s.r(t),s.d(t,{default:()=>g});var a=s(34474),n=s(27565),i=s(72720),l=s.n(i),r=s(8547),c=s(11083),o=s(27929);const d={minWidth:"275px"},h={fontSize:"14px",alignItem:"center",cursor:"pointer"},u={color:"var(--kelly-green)"};function m({anchor:e="right",className:t,open:s,onClose:i=()=>{},children:l,settingsSectionProps:m,style:g}){const{t:p}=(0,r.B)(),[b,x]=(0,n.useState)(!!s),y=(0,n.useRef)(!1);(0,n.useEffect)(()=>{s&&!y.current&&x(!0),s||(y.current=!1,x(!1))},[s]);const f=(0,n.useCallback)(()=>{y.current=!0,x(!1)},[]),v=(0,n.useCallback)(()=>{y.current&&(y.current=!1,i())},[i]),C=(0,n.useMemo)(()=>({anchor:e,open:b,onClose:f,variant:"temporary",transitionDuration:250,slotProps:{transition:{onExited:v}}}),[e,b,f,v]);return(0,o.jsx)(n.Suspense,{fallback:(0,o.jsx)("div",{children:"Loading..."}),children:(0,o.jsx)("div",{className:`mui-drawer ${t}`,style:g,children:(0,o.jsx)(a.Ay,{...C,children:(0,o.jsxs)("div",{className:"pa-16",style:d,role:"presentation",id:"settings",children:[(0,o.jsxs)("div",{className:"d-flex-jsb",style:h,onClick:f,children:[(0,o.jsx)("strong",{children:p("2650")}),(0,o.jsx)("i",{className:"fad fa-times-circle",style:u})]}),m&&(0,o.jsx)(c.A,{...m}),l]})})},e)})}const g=n.memo(m,l())},11083(e,t,s){s.d(t,{A:()=>g});var a=s(75583),n=s(27565),i=s(72720),l=s.n(i),r=s(8547);const c=Object.freeze,o=c({general:"4415",Demo:"4116",tabs:"4416","Local Weather":"4373","Weather Station":"3567","farm assets":"4417",metrics:"4470",details:"4471",misc:"4472","Details & Events":"4473","key metrics":"4474","advanced metrics":"4475"}),d=c({"Update Message":"1015","Header Summary":"1016",Cards:"1017",Table:"1018",Map:"1019","Farm snapshot":"4418","Feature tiles":"4419","Show Demo Features":"4420","Camera Video Streams":"4421","Video Streams Table":"4422",Cameras:"3801","Video Wall":"3802","Distribution Boards":"4423","Local Weather":"4373","On-site Weather Station":"4374","Hourly Data":"4424","Daily Data":"4425","Info Cells":"4426",Rainfall:"1034","Pressure Humidity":"4427",Wind:"3592","UV Index":"4010","Todays Data":"4428","Information Cells":"4429","Temp/Hum/Pres Chart":"4430","Rainfall Chart":"4431","Wind Chart":"4432","Include all":"4433","Gateway Summary":"4434","Gateway Analytics":"4435","BLE Tag Analytics":"4436","Chemical Products":"1331","Equipment Setup":"1294",Agrichemicals:"4437","Pest Bait Records":"1392","Custom Alerts":"1108","Alerting Information":"4438",Notifications:"2626","Fencing Table":"4439","Fencing Map":"4440","Details Panel":"1058","Particulate Matter":"1033","Gas Concentrations 1":"4441","Gas Concentrations 2":"4442","Environmental Conditions":"1035","Wind Conditions":"1036",Temperature:"1040",Humidity:"1029","Key Metrics":"4443","Advanced Metrics":"4444",Details:"1245","Subcircuit Consumers":"4445","Subcircuit History":"4446","Subcircuit Insights":"4447","Distribution Board History":"4448","Daily Metrics":"4449","Yearly Metrics":"4450","Daily Insights":"4451","Yearly Insights":"4452","Edit button":"4453","Image button":"4454","More button":"4455","Recent events":"4456","Technical Specs":"4457","Operating Mode":"4458","Tech Details & Events":"4459","Cycles Chart":"4460","Cycles Insights":"4461","Runtime Chart":"4462","Runtime Insights":"4463",Specifications:"4464","Safety Settings":"4465","Alert Configuration":"4466","Daily Table":"4467","Yearly Table":"4468",Records:"4469",Events:"1878",Maintenance:"1828"});var h=s(27929);const u={height:14,optionLabels:["I","O"],width:34};function m(e){const{settings:t=[],handleSwitchToggle:s=()=>{}}=e||{},{t:i}=(0,r.B)(),l=(0,n.useMemo)(()=>{const e=t.reduce((e,t)=>((e[t.group]=e[t.group]||[]).push(t),e),{});return Object.values(e).forEach(e=>e.sort((e,t)=>e.order-t.order)),e},[t]);return(0,h.jsx)("div",{children:Object.keys(l).map(e=>{const t=function(e){var t;return null==e||""===e?null:null!==(t=o[e])&&void 0!==t?t:null}(e),n=t?i(t):e;return(0,h.jsxs)("div",{className:"section",children:[(0,h.jsx)("strong",{className:"section-header",children:n}),(0,h.jsx)("div",{className:"section-body",children:l[e].map(t=>{const n=function(e){var t;return null==e||""===e?null:null!==(t=d[e])&&void 0!==t?t:null}(t.label),l=n?i(n):t.label;return(0,h.jsxs)("div",{className:"d-flex-jsb",children:[(0,h.jsx)("span",{children:l}),(0,h.jsx)(a.A,{checked:t.show,disabled:(null===t||void 0===t?void 0:t.disabled)||!1,height:u.height,id:`panel-${e}-${t.order}`,onChange:e=>s({...t,show:e}),optionLabels:u.optionLabels,value:t,width:u.width})]},`section-content-${e}-${t.order}`)})}),(0,h.jsx)("div",{className:"help-text",children:i("1417",{group:n})})]},`section-${e}`)})})}const g=n.memo(m,l())},75583(e,t,s){s.d(t,{A:()=>c});
1var a=s(27565),n=s(72720),i=s.n(n),l=s(27929);const r=({checked:e=!1,onChange:t,height:s=22,width:n=54,id:i,className:r="",disabled:c=!1,optionLabels:o=["On","Off"]})=>{const[d,h]=(0,a.useState)(e);(0,a.useEffect)(()=>{h(e)},[e]);if(!i)return null;const u={handle:{height:`${s+4}px`,width:`${n}px`},circle:{left:d?`calc(100% - ${s+2}px)`:"2px",width:`${s}px`,height:`${s}px`}};return(0,l.jsx)("div",{className:r,children:(0,l.jsx)("label",{className:"ios-label-toggle",htmlFor:i,style:{margin:0},"data-disabled":c,children:(0,l.jsxs)("div",{className:"input-toggle",children:[(0,l.jsx)("input",{className:"input-checkbox",checked:d,disabled:c,id:i,onChange:a=>{const l=a.target.checked;h(l),null===t||void 0===t||t(l,{checked:e,onChange:t,height:s,width:n,id:i,className:r,disabled:c,optionLabels:o})},type:"checkbox"}),(0,l.jsx)("span",{className:"input-toggle-text-left",children:o[0]}),(0,l.jsx)("span",{className:"input-toggle-text-right",children:o[1]}),(0,l.jsx)("span",{className:"input-toggle-handle",style:u.handle,children:(0,l.jsx)("span",{style:u.circle})})]})})})},c=(0,a.memo)(r,i())}}]);
2//# sourceMappingURL=feature-settings.eb928e88.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.