ot-gateway 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/apps/gateway/src/main.mjs +36106 -29029
- package/apps/web/out/404/index.html +1 -1
- package/apps/web/out/404.html +1 -1
- package/apps/web/out/__next.__PAGE__.txt +24 -23
- package/apps/web/out/__next._full.txt +23 -22
- package/apps/web/out/__next._tree.txt +2 -2
- package/apps/web/out/_next/static/chunks/0hmt14p7jb7fw.js +22 -0
- package/apps/web/out/_next/static/chunks/0lt0-xwba1jct.js +12 -0
- package/apps/web/out/_next/static/chunks/0xshj5dntgsf0.js +1 -0
- package/apps/web/out/_next/static/chunks/1n0866ubw_vzw.js +1 -0
- package/apps/web/out/_next/static/chunks/1r99dqhbbww2-.js +1 -0
- package/apps/web/out/_next/static/chunks/1v-9tdtn2b7rz.css +1 -0
- package/apps/web/out/_next/static/chunks/2b480x3i0hlfo.js +1 -0
- package/apps/web/out/_next/static/chunks/2c2iiqcjtjfxx.js +1 -0
- package/apps/web/out/_next/static/chunks/2j1fafqsbgut_.js +1 -0
- package/apps/web/out/_next/static/chunks/318vd_uhd1odi.js +1 -0
- package/apps/web/out/_next/static/chunks/37p576o9oln63.js +1 -0
- package/apps/web/out/_next/static/chunks/3urijppewytek.js +3 -0
- package/apps/web/out/_next/static/chunks/40ryfd0iqb-oj.js +1 -0
- package/apps/web/out/_next/static/chunks/44ks15hsmz9f7.js +31 -0
- package/apps/web/out/_not-found/__next._full.txt +10 -10
- package/apps/web/out/_not-found/__next._not-found.__PAGE__.txt +9 -9
- package/apps/web/out/_not-found/__next._tree.txt +2 -2
- package/apps/web/out/_not-found/index.html +1 -1
- package/apps/web/out/_not-found/index.txt +10 -10
- package/apps/web/out/index.html +1 -1
- package/apps/web/out/index.txt +23 -22
- package/apps/web/out/messages/__next._full.txt +13 -13
- package/apps/web/out/messages/__next._tree.txt +2 -2
- package/apps/web/out/messages/__next.messages.__PAGE__.txt +12 -12
- package/apps/web/out/messages/index.html +1 -1
- package/apps/web/out/messages/index.txt +13 -13
- package/apps/web/out/points/__next._full.txt +13 -13
- package/apps/web/out/points/__next._tree.txt +2 -2
- package/apps/web/out/points/__next.points.__PAGE__.txt +12 -12
- package/apps/web/out/points/index.html +1 -1
- package/apps/web/out/points/index.txt +13 -13
- package/apps/web/out/settings/__next._full.txt +23 -22
- package/apps/web/out/settings/__next._tree.txt +2 -2
- package/apps/web/out/settings/__next.settings.__PAGE__.txt +24 -23
- package/apps/web/out/settings/index.html +1 -1
- package/apps/web/out/settings/index.txt +23 -22
- package/package.json +1 -1
- package/packaging/compose.yaml +16 -10
- package/apps/web/out/_next/static/chunks/0-tykl1ek9eef.js +0 -1
- package/apps/web/out/_next/static/chunks/0_9hphsk8elkz.js +0 -1
- package/apps/web/out/_next/static/chunks/10i96w66fwhkr.js +0 -31
- package/apps/web/out/_next/static/chunks/146bs6dt3wr47.js +0 -1
- package/apps/web/out/_next/static/chunks/2-12vm-gmodvi.css +0 -1
- package/apps/web/out/_next/static/chunks/2hhp92plmhxim.js +0 -1
- package/apps/web/out/_next/static/chunks/2r_w-j--qdreu.js +0 -22
- package/apps/web/out/_next/static/chunks/2t90haogl_st8.js +0 -1
- package/apps/web/out/_next/static/chunks/2u6f8n1jmolvz.js +0 -1
- package/apps/web/out/_next/static/chunks/2vp-i92uyys5d.js +0 -1
- package/apps/web/out/_next/static/chunks/3k0dufyi1j19w.js +0 -12
- /package/apps/web/out/_next/static/{XiBzAo3f0YeQ4E_ciqAE_ → crV5DAoVpa8QvyUp9vPHR}/_buildManifest.js +0 -0
- /package/apps/web/out/_next/static/{XiBzAo3f0YeQ4E_ciqAE_ → crV5DAoVpa8QvyUp9vPHR}/_clientMiddlewareManifest.js +0 -0
- /package/apps/web/out/_next/static/{XiBzAo3f0YeQ4E_ciqAE_ → crV5DAoVpa8QvyUp9vPHR}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,82341,e=>{"use strict";var t=e.i(36019),s=e.i(49848),a=e.i(28032),i=e.i(60569),n=e.i(38975),l=e.i(85902),d=e.i(52088);let r=({className:e,type:s,...a})=>(0,t.jsx)("input",{type:s,"data-slot":"input",className:(0,d.f)("h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs outline-none placeholder:text-muted-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive md:text-sm",e),...a}),o=({className:e,...s})=>(0,t.jsx)("select",{"data-slot":"native-select",className:(0,d.f)("h-9 w-full min-w-0 rounded-md border bg-transparent px-2 py-1 text-base shadow-xs outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 md:text-sm",e),...s}),c=e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),u=(e,t)=>0===e.changes.length?"Saved. Nothing changed, so nothing had to be applied.":`Saved and applied${void 0===t?"":` at ${t}`}: ${e.summary}.`,m={gateway:[{key:"site",path:["site"],label:"Site",kind:"text",optional:!1,hint:"Lower-case letters, digits and dashes; the first part of every topic."},{key:"building",path:["building"],label:"Building",kind:"text",optional:!1},{key:"id",path:["id"],label:"Gateway id",kind:"text",optional:!0,placeholder:"main",hint:"Names this gateway in its health topic, when a building has more than one."},{key:"healthIntervalMs",path:["healthIntervalMs"],label:"Health message every (ms)",kind:"number",optional:!0,placeholder:"60000"}],mqtt:[{key:"url",path:["mqtt","url"],label:"Broker",kind:"text",optional:!1,placeholder:"mqtt://192.168.1.10:1883",hint:"mqtts:// for TLS. No user or password here."},{key:"username",path:["mqtt","username"],label:"User name",kind:"text",optional:!0},{key:"clientId",path:["mqtt","clientId"],label:"Client id",kind:"text",optional:!0},{key:"version",path:["mqtt","version"],label:"MQTT version",kind:"choice",optional:!0,choices:[{value:"auto",label:"5, or 3.1.1 if the broker needs it"},{value:"5",label:"5"},{value:"3.1.1",label:"3.1.1"}]}],bacnet:[{key:"port",path:["bacnet","port"],label:"Port",kind:"number",optional:!0,placeholder:"47808",hint:"This gateway's UDP port. Devices answer a search on 47808; on another port, find a device by its address."},{key:"broadcastAddress",path:["bacnet","broadcastAddress"],label:"Broadcast address",kind:"text",optional:!0,placeholder:"255.255.255.255",hint:"Where a search for devices goes: this subnet's broadcast address, e.g. 192.168.1.255."},{key:"bbmdAddress",path:["bacnet","bbmdAddress"],label:"BBMD",kind:"text",optional:!0,placeholder:"none",hint:"The BBMD on this subnet that forwards devices on other subnets; leave empty without one."},{key:"bindAddress",path:["bacnet","bindAddress"],label:"Listens on",kind:"text",optional:!0,placeholder:"0.0.0.0",hint:"Leave at 0.0.0.0 (every network): bound to one address, the gateway hears no broadcast answers."},{key:"requestTimeoutMs",path:["bacnet","requestTimeoutMs"],label:"Reply timeout (ms)",kind:"number",optional:!0,placeholder:"3000",hint:"How long to wait for a device's answer before asking again."},{key:"retries",path:["bacnet","retries"],label:"Retries",kind:"number",optional:!0,placeholder:"2",hint:"How often to ask again when a device does not answer."},{key:"covLifetimeSeconds",path:["bacnet","covLifetimeSeconds"],label:"Change subscriptions last (s)",kind:"number",optional:!0,placeholder:"300",hint:"How long a device sends changes before the gateway renews; it renews at half of this."}]},h=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),p=e=>{try{let t=JSON.parse(e);return h(t)?t:void 0}catch{return}},g=(e,t)=>{let s=p(e);if(void 0!==s)return Object.fromEntries(m[t].map(e=>{let t=((e,t)=>{let[s,a]=t;if(void 0===a)return e[s];let i=e[s];return h(i)?i[a]:void 0})(s,e.path);return[e.key,"string"==typeof t||"number"==typeof t?String(t):""]}))},v=(e,t)=>{let s=t.trim();if("number"!==e.kind)return s;let a=Number(s);return""!==s&&Number.isFinite(a)?a:s};var x=e.i(30790),b=e.i(25513);let f=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),j=e=>"modbus-tcp"===e||"bacnet-ip"===e,y=0,N=()=>`p${++y}`,w=e=>"string"==typeof e||"number"==typeof e?String(e):"",k=e=>"number"==typeof e?String(e/1e3):"",C=e=>{let t=f(e.scaling)?e.scaling:{},s=f(e.publish)?e.publish:void 0,a=w(s?.mode),i=e.deadband,n=f(e.limits)?e.limits:void 0;return{key:N(),name:w(e.name),id:w(e.id),autoId:!1,unit:I(w(e.unit)),table:w(e.table)||"holding",register:w(e.address),dataType:w(e.dataType),byteOrder:w(e.byteOrder)||"ABCD",scale:w(t.factor),offset:w(t.offset),objectType:w(e.objectType),instance:w(e.instance),publish:"sample"===a||"change"===a||"aggregate"===a?a:void 0===i?"":"change",publishSeconds:k(s?.intervalMs),deadband:w(s?.deadband??i),alarmWhen:"on"===e.alarmWhen||"off"===e.alarmWhen?e.alarmWhen:"",writable:!0===e.writable,limitMin:w(n?.min),limitMax:w(n?.max),original:e}},$=e=>({key:N(),name:"",id:"",autoId:!0,unit:"",table:"holding",register:"",dataType:"modbus-tcp"===e?"float32":"",byteOrder:"ABCD",scale:"",offset:"",objectType:"bacnet-ip"===e?"analog-input":"",instance:"",publish:"",publishSeconds:"",deadband:"",alarmWhen:"",writable:!1,limitMin:"",limitMax:"",original:void 0}),_=e=>({protocol:e,id:"",autoId:!0,host:"",port:"",unitId:"",deviceInstance:"",address:"",intervalSeconds:"",points:[$(e)],original:void 0}),S=(e,t=1)=>{let s=e.trim().replace(",","."),a=Number(s);return""!==s&&Number.isFinite(a)?Math.round(a*t*1e9)/1e9:e.trim()},T=(e,t,s)=>{""===s||void 0===s?delete e[t]:e[t]=s},I=e=>(e.startsWith("unit:")?b.u[e.slice(5)]:void 0)??e,A=Object.entries(b.u).map(([e,t])=>({value:`unit:${e}`,symbol:t})),D=e=>{let t={...e.original};return t.protocol=e.protocol,t.id=e.id.trim(),"modbus-tcp"===e.protocol?(t.host=e.host.trim(),T(t,"port",""===e.port.trim()?"":S(e.port)),T(t,"unitId",""===e.unitId.trim()?"":S(e.unitId))):(t.deviceInstance=S(e.deviceInstance),T(t,"address",e.address.trim())),T(t,"pollIntervalMs",""===e.intervalSeconds.trim()?"":S(e.intervalSeconds,1e3)),t.points=e.points.map(t=>((e,t)=>{let s,a;if(void 0!==t.original&&((e,t)=>{let{key:s,autoId:a,original:i,...n}=e,{key:l,autoId:d,original:r,...o}=t;return JSON.stringify(n)===JSON.stringify(o)})(t,C(t.original)))return t.original;let i={...t.original};if(i.id=t.id.trim(),i.name=t.name.trim(),T(i,"unit",(s=t.unit.trim(),void 0===(a=Object.entries(b.u).find(([,e])=>e.toLowerCase()===s.toLowerCase()))?s:`unit:${a[0]}`)),"modbus-tcp"===e){i.table=t.table,i.address=S(t.register);let e="coil"===t.table||"discrete"===t.table;if(e?(i.dataType="bool",delete i.byteOrder):(T(i,"dataType",t.dataType),T(i,"byteOrder","ABCD"===t.byteOrder?"":t.byteOrder)),e||""===t.scale.trim()&&""===t.offset.trim())delete i.scaling;else{let e={};T(e,"factor",""===t.scale.trim()?"":S(t.scale)),T(e,"offset",""===t.offset.trim()?"":S(t.offset)),i.scaling=e}}else i.objectType=t.objectType.trim(),i.instance=S(t.instance);T(i,"alarmWhen",K(e,t)?t.alarmWhen:""),t.writable?(i.writable=!0,H(e,t)||""!==t.limitMin.trim()||""!==t.limitMax.trim()?i.limits={min:S(t.limitMin),max:S(t.limitMax)}:delete i.limits):(delete i.writable,delete i.limits),delete i.deadband;let n=f(i.publish)?i.publish:{};switch(t.publish){case"":delete i.publish;break;case"change":{let e={mode:"change"};T(e,"deadband",""===t.deadband.trim()?"":S(t.deadband)),"change"===n.mode&&T(e,"maxSilenceMs",n.maxSilenceMs),i.publish=e;break}case"sample":case"aggregate":{let e={mode:t.publish};T(e,"intervalMs",""===t.publishSeconds.trim()?"":S(t.publishSeconds,1e3)),i.publish=e}}return i})(e.protocol,t)),t},M=e=>`${JSON.stringify(e,null,2)}
|
|
2
|
+
`,z=e=>{let t=p(e);if(void 0!==t)return Array.isArray(t.devices)?t.devices:[]},B={id:"id",host:"host",port:"port",unitId:"unitId",deviceInstance:"deviceInstance",address:"address",pollIntervalMs:"intervalSeconds"},O=(e,t)=>{switch(t){case"id":case"name":case"unit":case"deadband":case"alarmWhen":case"writable":case"table":case"dataType":case"byteOrder":case"objectType":case"instance":return t;case"limits":return"limits";case"publish":return"publish";case"scaling":return"scale";case"address":return"modbus-tcp"===e?"register":void 0;default:return}},E=e=>e.join("."),R=(e,t)=>`${e}:${t}`,F=(e,t,s,a)=>{let i=new Set(e);return i.add(R(t,s)),"name"===s&&a&&i.add(R(t,"id")),i},P=[{value:"holding",label:"Holding register"},{value:"input",label:"Input register"},{value:"coil",label:"Coil"},{value:"discrete",label:"Discrete input"}],W=["float32","int16","uint16","int32","uint32","int64","uint64","float64","bool"],L=[{value:"ABCD",label:"ABCD (high word first)"},{value:"CDAB",label:"CDAB (low word first)"},{value:"BADC",label:"BADC (bytes swapped)"},{value:"DCBA",label:"DCBA (little-endian)"}],q=["analog-input","analog-output","analog-value","binary-input","binary-output","binary-value","multi-state-input","multi-state-output","multi-state-value"],U=[{value:"",label:"Every read (default)"},{value:"change",label:"On change"},{value:"sample",label:"Latest, every n seconds"},{value:"aggregate",label:"Min, max, average every n seconds"}],K=(e,t)=>"modbus-tcp"===e?"coil"===t.table||"discrete"===t.table||"bool"===t.dataType:t.objectType.startsWith("binary-"),H=(e,t)=>!K(e,t),J=[{value:"",label:"Not an alarm"},{value:"on",label:"Alarm when on (true, 1)"},{value:"off",label:"Alarm when off (false, 0)"}],G=e=>"coil"===e.table||"discrete"===e.table,V=(e,t)=>"modbus-tcp"===e?`${P.find(e=>e.value===t.table)?.label??t.table} ${t.register||"?"}${G(t)?"":`, ${t.dataType||"?"}`}`:`${t.objectType||"?"} ${t.instance||"?"}`,Q=e=>`${e.objectType}:${e.instance}`,Y=e=>!e.configured&&(e.objectType.endsWith("-input")||e.objectType.endsWith("-value"));var Z=e.i(19656),X=e.i(46113);e.i(14708);var ee=e.i(15835),et=e.i(40923);let es="grid min-w-0 gap-1.5",ea="text-sm font-medium",ei=e=>`device-${e}`,en=({id:e,messages:s,hint:a})=>(0,t.jsxs)("div",{id:e,className:"text-xs",children:[(s??[]).map(e=>(0,t.jsx)("p",{className:"text-destructive",children:e},e)),0===(s??[]).length&&void 0!==a?(0,t.jsx)("p",{className:"text-muted-foreground",children:a}):null]}),el=e=>(0,t.jsxs)("div",{className:es,children:[(0,t.jsxs)("label",{className:ea,htmlFor:e.id,children:[e.label,!0===e.optional?(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:" (optional)"}):null]}),(0,t.jsx)(r,{id:e.id,value:e.value,placeholder:e.placeholder,inputMode:!0===e.numeric?"decimal":void 0,list:e.list,autoComplete:"off",spellCheck:!1,"aria-invalid":(e.issues??[]).length>0,"aria-describedby":`${e.id}-help`,onChange:t=>e.onChange(t.target.value),disabled:e.disabled}),(0,t.jsx)(en,{id:`${e.id}-help`,messages:e.issues,hint:e.hint})]}),ed=({id:e,label:s,value:a,onChange:i,choices:n,issues:l,disabled:d})=>(0,t.jsxs)("div",{className:es,children:[(0,t.jsx)("label",{className:ea,htmlFor:e,children:s}),(0,t.jsxs)(o,{id:e,value:a,onChange:e=>i(e.target.value),disabled:d,"aria-describedby":`${e}-help`,children:[n.some(e=>e.value===a)?null:(0,t.jsx)("option",{value:a,children:a}),n.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,t.jsx)(en,{id:`${e}-help`,messages:l})]}),er=({protocol:e,reason:s,error:a})=>{let i=(0,ee.p)(e,s,a);return(0,t.jsxs)("div",{className:"text-xs text-muted-foreground",children:[(0,t.jsx)("p",{children:i.meaning}),(0,t.jsx)("ul",{className:"list-disc pl-5",children:i.checks.map(e=>(0,t.jsx)("li",{children:e},e))})]})},eo=({protocol:e,result:s})=>void 0===s.error?(0,t.jsxs)("p",{className:"text-sm",role:"status",children:[(0,t.jsxs)("span",{className:"font-medium tabular-nums",children:[(0,x.z)(s.value),void 0===s.unit?"":` ${(0,b.E)(s.unit)}`]}),void 0===s.raw?null:(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" (the device sent ",(0,x.z)(s.raw),")"]})]}):(0,t.jsxs)("div",{className:"grid gap-1",role:"status",children:[(0,t.jsxs)("p",{className:"text-sm break-words text-destructive",children:["Not read: ",s.error.message]}),(0,t.jsx)(er,{protocol:e,reason:s.error.reason,error:s.error.message})]}),ec=({outcome:e})=>(0,t.jsx)("p",{className:"text-sm break-words text-destructive",role:"status",children:"busy"===e._tag?`Try again in a moment: ${e.message}`:`Not tested: ${e.message}`}),eu=({protocol:e,test:s})=>{if("running"===s._tag)return(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Reading the device…"});let a=s.outcome;if("ok"!==a._tag)return(0,t.jsx)(ec,{outcome:a});let i=a.value,n=i.points.filter(e=>void 0===e.error).length;return(0,t.jsxs)("div",{className:"grid gap-1 text-sm",role:"status",children:[void 0===i.error?(0,t.jsxs)("p",{className:i.ok?"text-success":void 0,children:[i.ok?"It answers: ":"It answers, but not for every point: ","read ",n," of ",i.points.length," point",1===i.points.length?"":"s"," from ",i.target," in"," ",Math.round(i.durationMs)," ms."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"break-words text-destructive",children:["No answer from ",i.target,": ",i.error.message]}),(0,t.jsx)(er,{protocol:e,reason:i.error.reason,error:i.error.message})]}),void 0===i.note?null:(0,t.jsx)("p",{className:"text-muted-foreground",children:i.note})]})},em=({protocol:e,deviceId:s,point:a,position:i,issues:n,onChange:l,disabled:d})=>{let r=e=>`point-${a.key}-${e}`,o=e=>t=>l({...a,[e]:t},e),c="modbus-tcp"===e&&G(a),u=!c&&!["int16","uint16","bool",""].includes(a.dataType);return(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsx)(el,{id:r("name"),label:"Name",value:a.name,placeholder:0===i?"Active power":void 0,issues:n.name,onChange:e=>l({...a,name:e,id:a.autoId?e.normalize("NFKD").replace(/\p{M}/gu,"").toLowerCase().replace(/[^a-z0-9_]+/g,"-").replace(/^[-_]+|-+$/g,"").slice(0,64).replace(/-+$/,""):a.id},"name"),disabled:d}),(0,t.jsx)(el,{id:r("id"),label:"Id",value:a.id,hint:"The last part of its topic.",issues:n.id,onChange:e=>l({...a,id:e,autoId:!1},"id"),disabled:d}),"modbus-tcp"===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ed,{id:r("table"),label:"Table",value:a.table,choices:P,issues:n.table,onChange:o("table"),disabled:d}),(0,t.jsx)(el,{id:r("register"),label:"Address",value:a.register,numeric:!0,hint:"Counted from 0: 40101 in a register map is often 100.",issues:n.register,onChange:o("register"),disabled:d}),c?null:(0,t.jsx)(ed,{id:r("dataType"),label:"Data type",value:a.dataType,choices:W.filter(e=>"bool"!==e).map(e=>({value:e,label:e})),issues:n.dataType,onChange:o("dataType"),disabled:d})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ed,{id:r("objectType"),label:"Object type",value:a.objectType,choices:q.map(e=>({value:e,label:e})),issues:n.objectType,onChange:o("objectType"),disabled:d}),(0,t.jsx)(el,{id:r("instance"),label:"Instance",value:a.instance,numeric:!0,issues:n.instance,onChange:o("instance"),disabled:d})]}),c?null:(0,t.jsx)(el,{id:r("unit"),label:"Unit",value:a.unit,optional:!0,list:"unit-choices",placeholder:"kW",hint:"kW, °C, %, or a QUDT name such as unit:KiloW.",issues:n.unit,onChange:o("unit"),disabled:d}),K(e,a)?(0,t.jsx)(ed,{id:r("alarmWhen"),label:"Alarm",value:a.alarmWhen,choices:J,issues:n.alarmWhen,onChange:o("alarmWhen"),disabled:d}):null,(0,t.jsxs)("details",{className:"sm:col-span-2",open:void 0!==n.scale||void 0!==n.publish,children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm text-muted-foreground",children:"modbus-tcp"!==e||c?"Sending":"Scaling, word order and sending"}),(0,t.jsxs)("div",{className:"mt-3 grid gap-3 sm:grid-cols-2",children:["modbus-tcp"!==e||c?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(el,{id:r("scale"),label:"Multiply by",value:a.scale,optional:!0,numeric:!0,placeholder:"1",hint:"0.1 when the device sends tenths.",issues:n.scale,onChange:o("scale"),disabled:d}),(0,t.jsx)(el,{id:r("offset"),label:"Then add",value:a.offset,optional:!0,numeric:!0,placeholder:"0",onChange:o("offset"),disabled:d}),u?(0,t.jsx)(ed,{id:r("byteOrder"),label:"Word order",value:a.byteOrder,choices:L,issues:n.byteOrder,onChange:o("byteOrder"),disabled:d}):null]}),(0,t.jsx)(ed,{id:r("publish"),label:"Send",value:a.publish,choices:U,issues:n.publish,onChange:o("publish"),disabled:d}),"change"===a.publish?(0,t.jsx)(el,{id:r("deadband"),label:"Smallest change",value:a.deadband,optional:!0,numeric:!0,hint:"Left empty, any change is sent.",issues:n.deadband,onChange:o("deadband"),disabled:d}):"sample"===a.publish||"aggregate"===a.publish?(0,t.jsx)(el,{id:r("publishSeconds"),label:"Every (seconds)",value:a.publishSeconds,optional:"sample"===a.publish,numeric:!0,placeholder:"60",hint:"A divisor of a day: 60, 300, 900.",onChange:o("publishSeconds"),disabled:d}):null]})]}),("modbus-tcp"===e?"holding"===a.table||"coil"===a.table:!a.objectType.endsWith("-input"))||a.writable?(0,t.jsx)(ep,{protocol:e,deviceId:s,point:a,issues:n,onChange:l,disabled:d}):null]})},eh=({topic:e})=>(0,t.jsx)("code",{className:"font-mono text-xs break-words",children:(0,Z.i)(e).map((e,s)=>(0,t.jsxs)(a.Fragment,{children:[e,(0,t.jsx)("wbr",{})]},s))}),ep=({protocol:e,deviceId:s,point:i,issues:n,onChange:d,disabled:r})=>{let[o,c]=(0,a.useState)(!1),u=e=>`point-${i.key}-${e}`,m=H(e,i),h=i.name.trim()||i.id.trim()||"this point",p=`${s.trim()||"device"}/${i.id.trim()||"point"}`,g=""!==i.limitMin.trim()&&""!==i.limitMax.trim(),v=`${i.limitMin.trim()} to ${i.limitMax.trim()}${""===i.unit.trim()?"":` ${i.unit.trim()}`}`,x=(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsx)(el,{id:u("limitMin"),label:"Lowest value a command may set",value:i.limitMin,numeric:!0,issues:n.limits,onChange:e=>d({...i,limitMin:e},"limits"),disabled:r}),(0,t.jsx)(el,{id:u("limitMax"),label:"Highest value a command may set",value:i.limitMax,numeric:!0,hint:""===i.unit.trim()?"In the value's units, after scaling.":`In ${i.unit.trim()}.`,onChange:e=>d({...i,limitMax:e},"limits"),disabled:r})]});return(0,t.jsxs)("div",{className:"grid gap-2 sm:col-span-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:"Commands"}),i.writable?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-sm",children:["Takes commands on ",(0,t.jsx)(eh,{topic:`…/${p}/$set`}),m&&g?`, within ${v}`:"",". The gateway checks and logs every one."]}),m?x:null,(0,t.jsx)(en,{id:`${u("writable")}-help`,messages:n.writable}),(0,t.jsx)("div",{children:(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>d({...i,writable:!1},"writable"),disabled:r,children:"Make it read-only"})})]}):o?(0,t.jsxs)("div",{className:"grid gap-3 rounded-md border border-destructive/40 p-3 text-sm",role:"alert",children:[m?x:null,(0,t.jsxs)("p",{children:["Allow commands to change ",(0,t.jsx)("span",{className:"font-medium",children:h})," (",V(e,i),") on the device? A message on ",(0,t.jsx)(eh,{topic:`…/${p}/$set`})," then sets it",m?g?`, within ${v}`:", within the limits above":"",", and whatever it controls follows. This page itself never writes a value."]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(l.f,{size:"sm",onClick:()=>{c(!1),d({...i,writable:!0},"writable")},disabled:r||m&&!g,children:"Allow commands"}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",onClick:()=>c(!1),disabled:r,children:"Keep it read-only"})]}),m&&!g?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"A command may only set a value within limits: give both."}):null]}):(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Read only: commands cannot change it."}),(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>c(!0),disabled:r,children:"Allow commands…"})]})]})},eg=({edit:e,deviceId:s,protocol:d,initial:o,onDone:m})=>{let[h,g]=(0,a.useState)({_tag:"loading"}),[v,b]=(0,a.useState)(void 0),[y,N]=(0,a.useState)(new Set),[S,T]=(0,a.useState)({_tag:"idle"}),[I,P]=(0,a.useState)(void 0),[W,L]=(0,a.useState)({}),[q,U]=(0,a.useState)(!1),[K,H]=(0,a.useState)(!1),[J,G]=(0,a.useState)(()=>(0,X._)()??""),Q=(0,a.useRef)(0),Y=()=>{g({_tag:"loading"}),T({_tag:"idle"}),b(void 0),(0,x.I)(X.l).then(t=>{var a;let i;if("Failure"===t._tag)return g({_tag:"unreadable",message:t.failure.message});let n=z(t.success.text);if(void 0===n)return g({_tag:"unreadable",message:`${e.path} is not a JSON object right now; fix it in the file, or restore ${e.path}.bak.`});let l=void 0===s?-1:(a=t.success.text,(void 0===(i=z(a)?.findIndex(e=>f(e)&&e.id===s))||i<0?void 0:i)??-1);if(void 0!==s&&l<0)return g({_tag:"unreadable",message:`The config file has no device ${s} any more.`});let r=l<0?void 0:n[l],c=void 0===r?o??_(d):(e=>{if(!f(e))return;let t=e.protocol;if(!j(t))return;let s=Array.isArray(e.points)?e.points.filter(f):[];return{protocol:t,id:w(e.id),autoId:!1,host:w(e.host),port:w(e.port),unitId:w(e.unitId),deviceInstance:w(e.deviceInstance),address:w(e.address),intervalSeconds:k(e.pollIntervalMs),points:s.map(C),original:e}})(r);if(void 0===c)return g({_tag:"unreadable",message:`${s} is a simulated device: edit it in the config file.`});g({_tag:"ready",text:t.success.text,etag:t.success.etag,index:l<0?n.length:l,isNew:l<0,draft:c})})};(0,a.useEffect)(Y,[]);let Z="ready"===h._tag?((e,t,s)=>{let a=p(e);if(void 0===a)return;let i=Array.isArray(a.devices)?[...a.devices]:[],n=D(s);return void 0===t||t>=i.length?i.push(n):i[t]=n,M({...a,devices:i})})(h.text,h.index,h.draft):void 0;if((0,a.useEffect)(()=>{if(void 0===Z)return;let e=++Q.current,t=setTimeout(()=>{i.f.runPromise(n.f.result((0,X.C)(Z))).then(t=>{e===Q.current&&"Success"===t._tag&&b({candidate:Z,issues:t.success.issues})})},400);return()=>clearTimeout(t)},[Z]),"loading"===h._tag)return(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Reading the config file…"});if("unreadable"===h._tag)return(0,t.jsxs)("div",{className:"grid gap-3 text-sm",children:[(0,t.jsx)("p",{className:"text-destructive",children:h.message}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:Y,children:"Try again"}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",onClick:()=>m(void 0),children:"Cancel"})]})]});let{draft:ee}=h,es=void 0!==Z&&v?.candidate!==Z,ed=void 0!==v&&v.candidate===Z?v.issues:[],er=((e,t,s,a)=>{if(a)return{...e,quiet:!1};let i=!1,n=(e,t,a)=>t?Object.fromEntries(Object.entries(a).filter(([t])=>{let a=s.has(R(e,t));return a||(i=!0),a})):a,l=n("device",void 0===t.original,e.device),d=Object.fromEntries(t.points.map(t=>[t.key,n(t.key,void 0===t.original,e.points[t.key]??{})]));return{...e,device:l,points:d,quiet:i}})(((e,t,s)=>{let a={},i={},n=[],l=[];for(let d of e){let[e,r,o,c,u]=d.path;if("devices"!==e||r!==t){l.push(0===d.path.length?d.message:`${E(d.path)}: ${d.message}`);continue}if("points"===o&&"number"==typeof c){let e=s.points[c],t="string"==typeof u?O(s.protocol,u):void 0;if(void 0!==e&&void 0!==t){((i[e.key]??={})[t]??=[]).push(d.message);continue}if(void 0!==e&&void 0===u){((i[e.key]??={}).name??=[]).push(d.message);continue}}let m="string"==typeof o?B[o]:void 0;void 0!==m?(a[m]??=[]).push(d.message):"points"===o&&void 0===c?(a.points??=[]).push(d.message):n.push(`${E(d.path.slice(2))}: ${d.message}`)}return{device:a,points:i,other:n,elsewhere:l}})(ed,h.index,ee),ee,y,K),eh=void 0===ee.original||JSON.stringify(D(ee))!==JSON.stringify(ee.original),ep="saving"===S._tag,eg=I?._tag==="running"||Object.values(W).some(e=>"running"===e._tag),ev=e=>g({...h,draft:e}),ex=e=>t=>{N(F(y,"device",e,!1)),ev({...ee,[e]:t})},eb=e=>{if(void 0===Z)return;H(!0);let t=void 0===e?void 0:ee.points[e],s={_tag:"running"};void 0===t?P(s):L(e=>({...e,[t.key]:s})),i.f.runPromise((0,et.d)(Z,h.index,void 0===e?void 0:[e])).then(e=>{"invalid"===e._tag&&b({candidate:Z,issues:e.issues});let s={_tag:"done",outcome:e};if(void 0===t?P(s):L(e=>({...e,[t.key]:s})),"ok"!==e._tag)return;let a=new Map(e.value.points.map(e=>[e.id,e]));L(t=>{let s={...t};for(let t of ee.points){let i=a.get(t.id.trim());void 0!==i&&(s[t.key]={_tag:"done",outcome:{_tag:"ok",value:{...e.value,points:[i]}}})}return s})})},ef=(t,s)=>{void 0!==t&&("token"===e.auth&&(0,X.h)(J),T({_tag:"saving",removing:s}),i.f.runPromise((0,X.F)(t,h.etag)).then(e=>{if("saved"===e._tag)return m(s?`Removed ${ee.id} at ${c(Date.now())}.`:u(e.saved.applied,c(Date.now())));"invalid"===e._tag&&b({candidate:t,issues:e.issues}),T({_tag:"done",outcome:e})}))},ej="done"===S._tag?S.outcome:void 0;return(0,t.jsxs)("form",{className:"grid gap-5",onSubmit:e=>{if(e.preventDefault(),ed.length>0)return H(!0);ef(Z,!1)},children:[(0,t.jsx)("datalist",{id:"unit-choices",children:A.map(e=>(0,t.jsx)("option",{value:e.symbol},e.value))}),(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"device-heading",children:[(0,t.jsx)("h3",{id:"device-heading",className:"font-medium",children:h.isNew?`New ${x.T[ee.protocol]??ee.protocol} device`:ee.id||"Device"}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsx)(el,{id:ei("id"),label:"Id",value:ee.id,placeholder:"modbus-tcp"===ee.protocol?"meter-1":"ahu-1",hint:"Lower-case letters, digits and dashes; part of every topic.",issues:er.device.id,onChange:ex("id"),disabled:ep}),"modbus-tcp"===ee.protocol?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(el,{id:ei("host"),label:"Host",value:ee.host,placeholder:"192.168.1.30",issues:er.device.host,onChange:ex("host"),disabled:ep}),(0,t.jsx)(el,{id:ei("port"),label:"Port",value:ee.port,optional:!0,numeric:!0,placeholder:"502",issues:er.device.port,onChange:ex("port"),disabled:ep}),(0,t.jsx)(el,{id:ei("unitId"),label:"Unit id",value:ee.unitId,optional:!0,numeric:!0,placeholder:"1",hint:"The slave id behind a Modbus gateway; often 1 or 255.",issues:er.device.unitId,onChange:ex("unitId"),disabled:ep})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(el,{id:ei("deviceInstance"),label:"Device instance",value:ee.deviceInstance,numeric:!0,placeholder:"2001",issues:er.device.deviceInstance,onChange:ex("deviceInstance"),disabled:ep}),(0,t.jsx)(el,{id:ei("address"),label:"Address",value:ee.address,optional:!0,placeholder:"192.168.1.40",hint:"Left empty, the gateway finds it by broadcast in its own subnet.",issues:er.device.address,onChange:ex("address"),disabled:ep})]}),(0,t.jsx)(el,{id:ei("interval"),label:"Read every (seconds)",value:ee.intervalSeconds,optional:!0,numeric:!0,placeholder:"5",issues:er.device.intervalSeconds,onChange:ex("intervalSeconds"),disabled:ep})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>eb(),disabled:ep||eg,children:I?._tag==="running"?"Testing…":"Test the device"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"Reads every point once; nothing is saved."})]}),void 0===I?null:(0,t.jsx)(eu,{protocol:ee.protocol,test:I})]}),(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"points-heading",children:[(0,t.jsx)("h3",{id:"points-heading",className:"font-medium",children:"Points"}),(0,t.jsx)(en,{id:"device-points-help",messages:er.device.points}),(0,t.jsx)("ol",{className:"grid gap-3",children:ee.points.map((e,s)=>{let a=W[e.key],i=er.points[e.key]??{};return(0,t.jsxs)("li",{className:"grid gap-3 rounded-md border p-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,t.jsxs)("p",{className:"min-w-0 truncate text-sm font-medium",children:[e.name||`Point ${s+1}`,(0,t.jsxs)("span",{className:"font-normal text-muted-foreground",children:[" · ",V(ee.protocol,e)]})]}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>eb(s),disabled:ep||eg,"aria-label":`Test ${e.name||`point ${s+1}`}`,children:a?._tag==="running"?"Testing…":"Test"}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",onClick:()=>ev({...ee,points:ee.points.filter((e,t)=>t!==s)}),disabled:ep||1===ee.points.length,"aria-label":`Remove ${e.name||`point ${s+1}`}`,children:"Remove"})]})]}),void 0===a?null:"running"===a._tag?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Reading…"}):"ok"!==a.outcome._tag?(0,t.jsx)(ec,{outcome:a.outcome}):void 0!==a.outcome.value.error?(0,t.jsx)(eu,{protocol:ee.protocol,test:a}):a.outcome.value.points.map(e=>(0,t.jsx)(eo,{protocol:ee.protocol,result:e},e.id)),(0,t.jsx)(em,{protocol:ee.protocol,deviceId:ee.id,point:e,position:s,issues:i,onChange:(e,t)=>{N(F(y,e.key,t,e.autoId)),ev({...ee,points:ee.points.map((t,a)=>a===s?e:t)})},disabled:ep})]},e.key)})}),(0,t.jsx)("div",{children:(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>ev({...ee,points:[...ee.points,$(ee.protocol)]}),disabled:ep,children:"Add a point"})})]}),er.other.length>0||er.elsewhere.length>0?(0,t.jsxs)("div",{className:"text-xs text-destructive",children:[(0,t.jsx)("p",{children:"Not in this form, so fix it in the config file:"}),(0,t.jsx)("ul",{className:"list-disc pl-5",children:[...er.other,...er.elsewhere].map(e=>(0,t.jsx)("li",{className:"break-words",children:e},e))})]}):null,"token"===e.auth?(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)("label",{className:ea,htmlFor:"device-token",children:"Edit token"}),(0,t.jsx)(r,{id:"device-token",type:"password",autoComplete:"off",value:J,onChange:e=>G(e.target.value),disabled:ep}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"OT_GATEWAY_EDIT_TOKEN from the gateway's ot-gateway.env; kept in this tab until it closes."})]}):null,void 0===ej?null:"conflict"===ej._tag?(0,t.jsxs)("div",{className:"grid gap-2 text-sm",role:"alert",children:[(0,t.jsx)("p",{className:"text-destructive",children:"The config file changed since this form opened (another browser, or an edit by hand), so nothing was saved."}),(0,t.jsx)("div",{children:(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:Y,children:"Load the file again"})})]}):"invalid"===ej._tag?(0,t.jsx)("p",{className:"text-sm text-destructive",role:"alert",children:"Not saved: the config has problems, shown above."}):"saved"===ej._tag?null:(0,t.jsxs)("p",{className:"text-sm break-words text-destructive",role:"alert",children:["refused"===ej._tag?"Refused: ":"Not applied: ",ej.message]}),q?(0,t.jsxs)("div",{className:"grid gap-2 rounded-md border border-destructive/40 p-3 text-sm",role:"alert",children:[(0,t.jsxs)("p",{children:["Remove ",ee.id," and its ",ee.points.length," point",1===ee.points.length?"":"s","? The gateway stops reading it; the previous file is kept as a backup."]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(l.f,{size:"sm",onClick:()=>ef(((e,t)=>{let s=p(e);if(void 0===s)return;let a=Array.isArray(s.devices)?[...s.devices]:[];return a.splice(t,1),M({...s,devices:a})})(h.text,h.index),!0),disabled:ep,children:ep?"Removing…":"Remove the device"}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",onClick:()=>U(!1),disabled:ep,children:"Keep it"})]})]}):null,(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[er.quiet?(0,t.jsx)("p",{className:"basis-full text-xs text-muted-foreground",children:"Some fields still need a value or a fix: Save shows which."}):null,(0,t.jsx)(l.f,{type:"submit",size:"sm",disabled:ep||!eh||es||ed.length>0&&!er.quiet,children:ep&&!("saving"===S._tag&&S.removing)?"Saving and applying…":"Save and apply"}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",onClick:()=>m(void 0),disabled:ep,children:"Cancel"}),h.isNew||q?null:(0,t.jsx)(l.f,{size:"sm",variant:"ghost",className:"ml-auto text-destructive",onClick:()=>U(!0),disabled:ep,children:"Remove device"})]})]})};var ev=e.i(45280);let ex=({outcome:e})=>(0,t.jsx)("p",{className:"text-sm break-words text-destructive",role:"alert",children:"busy"===e._tag?`Try again in a moment: ${e.message}`:e.message}),eb=({device:e,onPick:s,disabled:a})=>(0,t.jsxs)("li",{className:"flex flex-wrap items-center justify-between gap-2 rounded-md border px-3 py-2",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:e.name??`Device ${e.instance}`}),(0,t.jsxs)("p",{className:"text-xs break-words text-muted-foreground",children:["Device ",e.instance,void 0===e.address?"":` at ${e.address}`,void 0===e.configured?"":` \xb7 in the config as ${e.configured}`]}),e.conflicts.length>0?(0,t.jsxs)("p",{className:"text-xs break-words text-destructive",children:["More addresses answered for this instance (",e.conflicts.join(", "),"): two devices may share it. Take its address from the commissioning sheet or the device and search at that address."]}):void 0===e.address?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Behind a BACnet router: add it with Add BACnet device."}):null]}),void 0===e.address?null:(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>s(e.address??""),disabled:a,children:"Pick"})]}),ef=({found:e,picked:s,onToggle:a})=>(0,t.jsx)("ul",{className:"grid gap-1",children:e.objects.map(e=>{let i=Q(e),n=`object-${i.replace(/[^a-z0-9]/gi,"-")}`;return(0,t.jsxs)("li",{className:"flex items-start gap-3 rounded-md border px-3 py-2",children:[(0,t.jsx)("input",{id:n,type:"checkbox",className:"mt-1 size-4 shrink-0",checked:s.has(i),onChange:()=>a(i)}),(0,t.jsxs)("label",{htmlFor:n,className:"grid min-w-0 flex-1 gap-0.5",children:[(0,t.jsxs)("span",{className:"flex flex-wrap items-baseline justify-between gap-x-3",children:[(0,t.jsx)("span",{className:"min-w-0 text-sm font-medium break-words",children:e.name}),(0,t.jsxs)("span",{className:"text-sm tabular-nums",children:[(0,x.z)(e.value),void 0===e.value||void 0===e.unit?"":` ${(0,b.E)(e.unit)}`]})]}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[e.objectType," ",e.instance,e.configured?" · read already":""]})]})]},i)})}),ej=({onPicked:e,onCancel:s,onBacnetSettings:n})=>{let[d,o]=(0,a.useState)(""),[c,u]=(0,a.useState)({_tag:"ask"}),[m,h]=(0,a.useState)(new Set),p="searching"===c._tag||"reading"===c._tag,g=(0,t.jsxs)("form",{className:"grid gap-3",onSubmit:e=>{e.preventDefault(),u({_tag:"searching"}),i.f.runPromise((0,et.u)(d)).then(e=>u({_tag:"found",outcome:e}))},children:[(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsxs)("label",{className:"text-sm font-medium",htmlFor:"discover-address",children:["Address ",(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:"(optional)"})]}),(0,t.jsx)(r,{id:"discover-address",value:d,placeholder:"192.168.1.40 or 192.168.1.40:47809",autoComplete:"off",spellCheck:!1,onChange:e=>o(e.target.value),disabled:p,"aria-describedby":"discover-address-help"}),(0,t.jsx)("p",{id:"discover-address-help",className:"text-xs text-muted-foreground",children:"Left empty, the gateway asks every device in its subnet. Give an address for a device on another subnet or port."})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(l.f,{type:"submit",size:"sm",disabled:p,children:"searching"===c._tag?"Searching… (a few seconds)":"Find devices"}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",onClick:s,disabled:p,children:"Cancel"})]})]});if("objects"===c._tag){let s=()=>u({_tag:"found",outcome:c.found});if("ok"!==c.outcome._tag)return(0,t.jsxs)("div",{className:"grid gap-3",children:[(0,t.jsx)(ex,{outcome:c.outcome}),(0,t.jsx)("div",{children:(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:s,children:"Back to the devices"})})]});let a=c.outcome.value;return(0,t.jsxs)("div",{className:"grid gap-3",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("h3",{className:"font-medium break-words",children:a.name||`Device ${a.instance}`}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Device ",a.instance," at ",a.address," · ",(0,Z.d)(a.objects.length)," objects",a.listed>ev.O?` (the first ${(0,Z.d)(ev.O)} of ${(0,Z.d)(a.listed)}: add the rest with a points list)`:"",". Inputs and values are ticked; tick an output to read it too."]})]}),0===a.objects.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"It lists no object a gateway reads."}):(0,t.jsx)(ef,{found:a,picked:m,onToggle:e=>h(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(l.f,{size:"sm",onClick:()=>e({..._("bacnet-ip"),id:a.id,autoId:!1,deviceInstance:String(a.instance),address:a.address,points:a.objects.filter(e=>m.has(Q(e))).map(e=>({...$("bacnet-ip"),name:e.name,id:e.id,autoId:!1,unit:I(e.unit??""),objectType:e.objectType,instance:String(e.instance)}))}),disabled:0===m.size,children:["Continue with ",(0,Z.d)(m.size)," point",1===m.size?"":"s"]}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",onClick:s,children:"Back to the devices"})]})]})}let v="found"===c._tag?c.outcome:void 0;return(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("h3",{className:"font-medium",children:"Find BACnet devices"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"The gateway asks which BACnet devices are there and reads the objects of the one you pick. It only reads."})]}),g,"reading"===c._tag?(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",role:"status",children:["Reading the objects of ",c.device.name??`device ${c.device.instance}`,"…"]}):null,void 0===v?null:"ok"!==v._tag?(0,t.jsx)(ex,{outcome:v}):(0,t.jsxs)("div",{className:"grid gap-2",role:"status",children:[0===v.value.devices.length&&void 0!==v.value.note?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm break-words",children:v.value.note}),(0,t.jsx)("div",{children:(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:n,children:"Change the BACnet/IP settings"})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm",children:0===v.value.devices.length?"No device answered.":`${(0,Z.d)(v.value.devices.length)} device${1===v.value.devices.length?"":"s"} answered${v.value.more?", and more than listed":""}:`}),void 0===v.value.note?null:(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:v.value.note})]}),(0,t.jsx)("ul",{className:"grid gap-1.5",children:v.value.devices.map(e=>(0,t.jsx)(eb,{device:e,onPick:t=>{u({_tag:"reading",device:e,address:t}),i.f.runPromise((0,et.t)(e.instance,t)).then(e=>{"ok"===e._tag&&h(new Set(e.value.objects.filter(Y).map(e=>Q(e)))),u({_tag:"objects",outcome:e,found:v})})},disabled:p},e.instance))})]})]})},ey=(e,t)=>`${(0,Z.d)(e)} ${t}${1===e?"":"s"}`,eN=({check:e})=>(0,t.jsxs)("div",{className:"grid gap-2 text-sm",children:[void 0===e.error?null:(0,t.jsx)("p",{className:"break-words text-destructive",children:e.error}),0===e.devices.length?null:(0,t.jsx)("ul",{className:"grid gap-1.5",children:e.devices.map(e=>(0,t.jsxs)("li",{className:"grid gap-0.5 rounded-md border px-3 py-2",children:[(0,t.jsxs)("p",{className:"flex flex-wrap items-baseline gap-x-2",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:void 0===e.error?"text-success":"text-destructive",children:void 0===e.error?"✓":"✗"}),(0,t.jsx)("span",{className:"font-medium break-all",children:e.name}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:[void 0===e.protocol?void 0:x.T[e.protocol]??e.protocol,e.address,ey(e.points,"point"),(e=>{if(0===e.length)return"";let t=e[0],s=e.at(-1);return 1===e.length?`line ${t}`:`lines ${t}–${s}`})(e.lines)].filter(e=>void 0!==e&&""!==e).join(" · ")})]}),void 0===e.error?null:(0,t.jsxs)("p",{className:"text-xs break-words text-destructive",children:[(0,t.jsx)("span",{className:"sr-only",children:"Not added: "}),e.error]})]},`${e.name}-${e.lines[0]??0}`))}),"ede"===e.format?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"An EDE file: the gateway translated it into a points list, and the line numbers are that list's."}):null,e.notes.map(e=>(0,t.jsx)("p",{className:"text-xs break-words text-muted-foreground",children:e},e))]}),ew=({edit:e,onDone:s})=>{let[n,d]=(0,a.useState)({_tag:"empty"}),[o,u]=(0,a.useState)(!1),[m,h]=(0,a.useState)(void 0),[p,g]=(0,a.useState)(()=>(0,X._)()??""),v=(0,a.useRef)(null),b=t=>{if(h(void 0),void 0!==t){if(t.size>ev.K)return d({_tag:"problem",message:`${t.name} is ${(0,Z.d)(Math.round(t.size/1024))} KiB; a points list may be at most ${(0,Z.d)(ev.K/1024)} KiB.`});d({_tag:"reading",name:t.name}),"token"===e.auth&&(0,X.h)(p),t.text().then(e=>i.f.runPromise((0,et.a)(e,t.name)).then(t=>({text:e,outcome:t}))).then(({text:e,outcome:s})=>d({_tag:"checked",file:{name:t.name,text:e},outcome:s}),()=>d({_tag:"problem",message:`${t.name} could not be read in this browser.`}))}},f="adding"===n._tag?{file:n.file,check:n.check}:"checked"===n._tag&&"ok"===n.outcome._tag?{file:n.file,check:n.outcome.value}:void 0,j="adding"===n._tag;return(0,t.jsxs)("div",{className:"grid gap-3",children:[(0,t.jsxs)("div",{className:`grid gap-2 rounded-md border border-dashed p-4 text-sm ${o?"border-ring bg-muted":""}`,onDragOver:e=>{e.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:e=>{e.preventDefault(),u(!1),b(e.dataTransfer.files[0])},children:[(0,t.jsxs)("p",{children:["A points list (CSV, one row per value) or a BACnet EDE file. Drop it here, or"," ",(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>v.current?.click(),disabled:j,children:"choose a file"})]}),(0,t.jsx)("input",{ref:v,type:"file",accept:".csv,.txt,text/csv,text/plain",className:"sr-only","aria-label":"Points list or EDE file",tabIndex:-1,onChange:e=>{b(e.target.files?.[0]),e.target.value=""}}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:[(0,t.jsx)("code",{className:"font-mono",children:"ot-gateway points template"})," prints a list to fill in;"," ",(0,t.jsx)("code",{className:"font-mono",children:"ot-gateway points schema"})," describes its columns. Nothing is added before you choose Add."]})]}),"reading"===n._tag?(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",role:"status",children:["Checking ",n.name,"…"]}):"problem"===n._tag?(0,t.jsx)("p",{className:"text-sm break-words text-destructive",role:"alert",children:n.message}):"checked"===n._tag&&"ok"!==n.outcome._tag?(0,t.jsxs)("p",{className:"text-sm break-words text-destructive",role:"alert",children:["Not checked: ",n.outcome.message]}):null,void 0===f?null:(0,t.jsx)("section",{className:"grid gap-3","aria-label":`What ${f.file.name} adds`,children:(0,t.jsx)(eN,{check:f.check})}),"token"===e.auth?(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)("label",{className:"text-sm font-medium",htmlFor:"import-token",children:"Edit token"}),(0,t.jsx)(r,{id:"import-token",type:"password",autoComplete:"off",value:p,onChange:e=>g(e.target.value),disabled:j})]}):null,void 0===m?null:(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2 text-sm text-destructive",role:"alert",children:[(0,t.jsxs)("p",{className:"break-words",children:["Not added: ",m]}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",onClick:()=>h(void 0),children:"Dismiss"})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[void 0===f?null:(0,t.jsx)(l.f,{size:"sm",onClick:()=>{var t,a;return t=f.file,a=f.check,void("token"===e.auth&&(0,X.h)(p),h(void 0),d({_tag:"adding",file:t,check:a}),(0,x.I)(X.l).then(e=>"Failure"===e._tag?{_tag:"failed",message:e.failure.message}:i.f.runPromise((0,et.$)(t.text,t.name,e.success.etag))).then(e=>{if("ok"===e._tag){let{devices:t,points:a,skipped:i}=e.value;return s(`Added ${ey(t,"device")} with ${ey(a,"point")} at ${c(Date.now())}${0===i?"":`; left out ${ey(i,"device")} with mistakes`}.`)}d({_tag:"checked",file:t,outcome:{_tag:"ok",value:a}}),h("invalid"===e._tag?[e.message,...e.issues.map(e=>`${e.path.join(".")}: ${e.message}`)].join("; "):"conflict"===e._tag?"The config file changed meanwhile; check the file again, then add.":e.message)}))},disabled:j||0===f.check.adds.devices,children:j?"Adding and applying…":0===f.check.adds.devices?"Nothing to add":`Add ${ey(f.check.adds.devices,"device")} with ${ey(f.check.adds.points,"point")}`}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",onClick:()=>s(void 0),disabled:j,children:"Cancel"})]})]})},ek=({outcome:e})=>{if(void 0===e)return(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Connecting…"});if("ok"!==e._tag)return(0,t.jsx)("p",{className:"text-sm break-words text-destructive",role:"status",children:"busy"===e._tag?`Try again in a moment: ${e.message}`:`Not tested: ${e.message}`});let s=e.value;return(0,t.jsxs)("div",{className:"grid gap-1 text-sm",role:"status",children:[s.ok?(0,t.jsxs)("p",{className:"text-success",children:["Connected to ",s.broker,void 0===s.protocolVersion?"":` with MQTT ${s.protocolVersion}`,void 0===s.roundTripMs?"":`; a test message came back in ${Math.round(s.roundTripMs)} ms`,"."]}):(0,t.jsxs)("p",{className:"break-words text-destructive",children:["No connection: ",s.error??`no answer from ${s.broker}`]}),s.warnings.map(e=>(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e},e))]})},eC=({card:e,edit:s,onDone:d})=>{var b,f;let j,[y,N]=(0,a.useState)({_tag:"loading"}),[w,k]=(0,a.useState)([]),[C,$]=(0,a.useState)({_tag:"idle"}),[_,S]=(0,a.useState)(()=>(0,X._)()??""),[T,I]=(0,a.useState)(void 0),A=(0,a.useRef)(0),D=()=>{N({_tag:"loading"}),$({_tag:"idle"}),k([]),(0,x.I)(X.l).then(t=>{if("Failure"===t._tag)return N({_tag:"unreadable",message:t.failure.message});let a=g(t.success.text,e);if(void 0===a)return N({_tag:"unreadable",message:`${s.path} is not a JSON object right now; fix it in the file, or restore ${s.path}.bak.`});N({_tag:"ready",text:t.success.text,etag:t.success.etag,values:a})})};(0,a.useEffect)(D,[]);let M="ready"===y._tag?((e,t,s)=>{let a=p(e);if(void 0!==a){for(let e of m[t]){let t=s[e.key]??"",[i,n]=e.path,l=""===t.trim()&&e.optional;if(void 0===n){l?delete a[i]:a[i]=v(e,t);continue}let d=a[i],r=h(d)?d:{};l?delete r[n]:r[n]=v(e,t),0===Object.keys(r).length?delete a[i]:a[i]=r}return`${JSON.stringify(a,null,2)}
|
|
3
|
+
`}})(y.text,e,y.values):void 0;if((0,a.useEffect)(()=>{if(void 0===M)return;let e=++A.current,t=setTimeout(()=>{i.f.runPromise(n.f.result((0,X.C)(M))).then(t=>{e===A.current&&"Success"===t._tag&&k(t.success.issues)})},400);return()=>clearTimeout(t)},[M]),"loading"===y._tag)return(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Reading the config file…"});if("unreadable"===y._tag)return(0,t.jsxs)("div",{className:"grid gap-3 text-sm",children:[(0,t.jsx)("p",{className:"text-destructive",children:y.message}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:D,children:"Try again"}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",onClick:()=>d(void 0),children:"Cancel"})]})]});let{byField:z,elsewhere:B}=((e,t)=>{let s={},a=[];for(let i of e){let e=m[t].find(e=>e.path.every((e,t)=>i.path[t]===e));if(void 0===e){let e=i.path.join(".");a.push(""===e?i.message:`${e}: ${i.message}`)}else(s[e.key]??=[]).push(i.message)}return{byField:s,elsewhere:a}})(w,e),O=(b=y.text,f=y.values,void 0!==(j=g(b,e))&&m[e].some(e=>(j[e.key]??"").trim()!==(f[e.key]??"").trim())),E="saving"===C._tag,R=(e,t)=>N({...y,values:{...y.values,[e]:t}}),F="done"===C._tag?C.outcome:void 0;return(0,t.jsxs)("form",{className:"grid gap-4",onSubmit:e=>{e.preventDefault(),void 0!==M&&("token"===s.auth&&(0,X.h)(_),$({_tag:"saving"}),i.f.runPromise((0,X.F)(M,y.etag)).then(e=>{if("saved"===e._tag)return d(u(e.saved.applied,c(Date.now())));"invalid"===e._tag&&k(e.issues),$({_tag:"done",outcome:e})}))},children:[m[e].map(s=>{let a=`edit-${e}-${s.key}`,i=z[s.key]??[],n=y.values[s.key]??"";return(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsxs)("label",{className:"text-sm font-medium",htmlFor:a,children:[s.label,s.optional?(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:" (optional)"}):null]}),"choice"===s.kind?(0,t.jsx)(o,{id:a,value:""===n?"auto":n,onChange:e=>R(s.key,e.target.value),disabled:E,children:s.choices?.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))}):(0,t.jsx)(r,{id:a,value:n,inputMode:"number"===s.kind?"numeric":void 0,placeholder:s.placeholder,autoComplete:"off",spellCheck:!1,"aria-invalid":i.length>0,"aria-describedby":`${a}-help`,onChange:e=>R(s.key,e.target.value),disabled:E}),(0,t.jsxs)("div",{id:`${a}-help`,className:"text-xs",children:[i.map(e=>(0,t.jsx)("p",{className:"text-destructive",children:e},e)),0===i.length&&void 0!==s.hint?(0,t.jsx)("p",{className:"text-muted-foreground",children:s.hint}):null]})]},s.key)}),"mqtt"===e&&void 0!==s.password?(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:["The password stays in ",(0,t.jsx)("code",{className:"font-mono",children:"ot-gateway.env"})," (",s.password.variable,", now"," ",s.password.set?"set":"not set","); this page never sees it."]}):null,"bacnet"===e?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Save moves the gateway's BACnet/IP socket at once, without a restart. If the port cannot be opened (another program holds it), nothing changes and this form says why."}):null,"mqtt"===e?(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>{void 0!==M&&("token"===s.auth&&(0,X.h)(_),I({outcome:void 0}),i.f.runPromise((0,et.w)(M)).then(e=>{"invalid"===e._tag&&k(e.issues),I({outcome:e})}))},disabled:E||void 0!==T&&void 0===T.outcome,children:"Test the connection"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"With the settings above; nothing is saved."})]}),void 0===T?null:(0,t.jsx)(ek,{outcome:T.outcome})]}):null,B.length>0?(0,t.jsxs)("div",{className:"text-xs text-destructive",children:[(0,t.jsx)("p",{children:"Elsewhere in the file, which this form does not change:"}),(0,t.jsx)("ul",{className:"list-disc pl-5",children:B.map(e=>(0,t.jsx)("li",{children:e},e))})]}):null,"token"===s.auth?(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)("label",{className:"text-sm font-medium",htmlFor:`edit-${e}-token`,children:"Edit token"}),(0,t.jsx)(r,{id:`edit-${e}-token`,type:"password",autoComplete:"off",value:_,onChange:e=>S(e.target.value),disabled:E}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"OT_GATEWAY_EDIT_TOKEN from the gateway's ot-gateway.env; kept in this tab until it closes."})]}):null,void 0===F?null:"conflict"===F._tag?(0,t.jsxs)("div",{className:"grid gap-2 text-sm",children:[(0,t.jsx)("p",{className:"text-destructive",children:"The config file changed since this form opened (another browser, or an edit by hand), so nothing was saved."}),(0,t.jsx)("div",{children:(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:D,children:"Load the file again"})})]}):"invalid"===F._tag?(0,t.jsx)("p",{className:"text-sm text-destructive",children:"Not saved: the config has problems, shown above."}):"saved"===F._tag?null:(0,t.jsxs)("p",{className:"text-sm break-words text-destructive",children:["refused"===F._tag?"Refused: ":"Not applied: ",F.message]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(l.f,{type:"submit",size:"sm",disabled:E||!O||w.length>0,children:E?"Saving and applying…":"Save and apply"}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",onClick:()=>d(void 0),disabled:E,children:"Cancel"})]})]})};var e$=e.i(64036),e_=e.i(29164),eS=e.i(51139);let eT={gateway:"Gateway",mqtt:"Broker",buffer:"Buffer",history:"History",status:"Status page",bacnet:"BACnet/IP"},eI=e=>eT[e]??eD(e),eA={site:"Site",building:"Building",id:"Gateway id",healthIntervalMs:"Health message every",url:"Broker",clientId:"Client id",username:"User name",passwordEnv:"Password from variable",version:"MQTT version",path:"File",maxRows:"Holds up to",retentionDays:"Keeps",bindAddress:"Listens on",port:"Port",webRoot:"Web files",broadcastAddress:"Broadcasts to",bbmdAddress:"BBMD",requestTimeoutMs:"Reply timeout",retries:"Retries",covLifetimeSeconds:"Subscriptions renewed every",host:"Address",unitId:"Unit id",pollIntervalMs:"Read every",cycleTimeoutMs:"Give up a read after",publish:"Publishes",requestGapMs:"Pause between requests",maxRegistersPerRead:"Registers per request",maxBitsPerRead:"Bits per request",deviceInstance:"Device instance",address:"Address",cov:"Change notifications (COV)"},eD=e=>{let t=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)},eM=e=>eA[e]??eD(e),ez=e=>{if(e<1e3)return`${e} ms`;let t=e/1e3;return t<60?`${Number(t.toFixed(1))} s`:t<3600?`${Number((t/60).toFixed(1))} min`:`${Number((t/3600).toFixed(1))} h`},eB=new Set(["port","unitId","deviceInstance"]),eO=(e,t)=>null===t?"–":"boolean"==typeof t?t?"yes":"no":"number"==typeof t?e.endsWith("Ms")?ez(t):e.endsWith("Seconds")?ez(1e3*t):"retentionDays"===e?`${t} ${1===t?"day":"days"} per minute`:"maxRows"===e?`${t.toLocaleString("en-US")} messages`:eB.has(e)?String(t):t.toLocaleString("en-US"):"string"==typeof t?"version"===e&&"auto"===t?"5, or 3.1.1 if the broker needs it":t:Array.isArray(t)?t.map(t=>eO(e,t)).join(", "):"object"!=typeof t||null===t||Array.isArray(t)?String(t):Object.entries(t).map(([e,t])=>`${eD(e).toLowerCase()} ${eO(e,t)}`).join(" · "),eE=(e,t)=>{let s=e=>{let s=t.find(t=>t.key===e)?.value;return"string"==typeof s||"number"==typeof s?String(s):void 0};if("modbus-tcp"===e)return`${s("host")??"?"}:${s("port")??"502"} \xb7 unit ${s("unitId")??"?"}`;if("bacnet-ip"===e){let e=s("address");return`device ${s("deviceInstance")??"?"}${void 0===e?", found by broadcast":` at ${e}`}`}return"simulator"===e?"on this gateway":""},eR=new Set(["host","port","unitId","deviceInstance","address","pollIntervalMs"]),eF=[["buffer","Off: values read while the broker is away are lost."],["history","Off: the point panel shows no history."]],eP=e=>`settings-${e}`,eW=({saved:e,card:a,onDismiss:i})=>e?.card===a?(0,t.jsxs)("div",{role:"status",className:"mb-3 flex items-start gap-2 rounded-md border border-success/40 py-2 pr-1 pl-3 text-sm",children:[(0,t.jsxs)("p",{className:"min-w-0 flex-1 break-words",children:[e.message,(0,eS.m)()?(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)(s.default,{className:"underline underline-offset-4",href:"/",children:"Back to the setup guide"})]}):null]}),(0,t.jsx)(l.f,{size:"sm",variant:"ghost",className:"-my-1 h-7 shrink-0 px-2 text-xs",onClick:i,children:"Dismiss"})]}):null;e.s(["default",0,()=>{let e,[s,i]=(0,a.useState)(0),n=(e=>{let[t,s]=(0,a.useState)({_tag:"loading"});return(0,a.useEffect)(()=>{let e,t=!1,a=()=>(0,x.I)(x.q).then(i=>{if(!t){if("Success"===i._tag)return s({_tag:"ok",config:i.success});s({_tag:"failed",message:i.failure.message}),e=setTimeout(()=>void a(),5e3)}});return a(),()=>{t=!0,void 0!==e&&clearTimeout(e)}},[e]),t})(s),{edit:d,asked:r}=(e=>{let[t,s]=(0,a.useState)(void 0),[i,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=!1;return(0,x.I)(X.D).then(t=>{e||("Success"===t._tag&&s(t.success),n(!0))}),()=>{e=!0}},[e]),{edit:t,asked:i}})(s),[o,c]=(0,a.useState)(void 0),[u,m]=(0,a.useState)(void 0),[h,p]=(0,a.useState)(void 0),g=(()=>{let[e,t]=(0,a.useState)(void 0);return(0,a.useEffect)(()=>{let t;if(void 0===e)return;let s=!1,a=Date.now(),i=()=>{let n=document.getElementById(e.id);null===n||s||(n.scrollIntoView({block:"start"}),s=!0);let l=null===n?null:n.querySelector("input:not([type=hidden]):not([disabled]), select:not([disabled]), textarea:not([disabled])");if(null!==n&&null!==l)return n.scrollIntoView({block:"start"}),l.focus({preventScroll:!0});Date.now()-a<3e3&&(t=setTimeout(i,50))};return t=setTimeout(i,0),()=>{void 0!==t&&clearTimeout(t)}},[e]),e=>t({id:e,at:Date.now()})})(),v=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{if(v.current||d?.enabled!==!0||"ok"!==n._tag)return;v.current=!0;let e=new URLSearchParams(window.location.search),t=null!==e.get("broker")?"mqtt":null!==e.get("bacnet")?"bacnet":void 0;if(void 0!==t){c(t),window.history.replaceState(null,"",window.location.pathname),g(eP(t));return}let s=(e=>{let t=new URLSearchParams(e),s=t.get("add");if(j(s))return{_tag:"device",id:void 0,protocol:s};let a=t.get("edit");return null!==a&&""!==a?{_tag:"device",id:a,protocol:"modbus-tcp"}:null!==t.get("upload")?{_tag:"upload"}:null!==t.get("find")?{_tag:"discover"}:void 0})(window.location.search);void 0!==s&&(m(s),window.history.replaceState(null,"",window.location.pathname),g(eP("devices")))},[d,n._tag]),"ok"!==n._tag)return(0,t.jsx)("p",{className:"text-muted-foreground",children:"failed"===n._tag?`The gateway does not answer: ${n.message}`:"Loading…"});let{sections:b,devices:f}=n.config,y=new Set(b.map(e=>e.key)),N=d?.enabled===!0,w=void 0!==o||void 0!==u,k=e=>t=>{c(void 0),m(void 0),void 0!==t&&(p({card:e,message:t}),i(e=>e+1))},C=e=>{p(void 0),m(e),g(eP("devices"))},$=e=>{p(void 0),m(void 0),c(e),g(eP(e))},_=()=>p(void 0),S=N&&!y.has("bacnet");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid max-w-3xl gap-2 text-sm",children:[r?N?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{children:"Change the settings here; they apply at once."}),""===d.path.trim()?null:(0,t.jsxs)("p",{className:"text-xs break-words text-muted-foreground",children:["Saved to ",(0,t.jsx)("code",{className:"font-mono",children:d.path}),", the previous version kept as"," ",(0,t.jsxs)("code",{className:"font-mono",children:[(e=d.path).split(/[/\\]/).at(-1)??e,".bak"]})," next to it."]})]}):(0,t.jsxs)("p",{className:"text-muted-foreground",children:["The settings the gateway runs with. To change one, edit the config file (",(0,t.jsx)("code",{className:"font-mono",children:"ot-gateway.json"}),"), check it with"," ",(0,t.jsx)("code",{className:"font-mono",children:"ot-gateway check ot-gateway.json"})," and restart the gateway."]}):(0,t.jsxs)("div",{"aria-hidden":"true",className:"grid gap-2",children:[(0,t.jsx)("div",{className:"h-5 w-64 max-w-full animate-pulse rounded bg-muted"}),(0,t.jsx)("div",{className:"h-4 w-96 max-w-full animate-pulse rounded bg-muted"})]}),void 0===d||d.enabled?null:(0,t.jsxs)("div",{className:"rounded-md border px-3 py-2",children:[(0,t.jsxs)("p",{children:["Editing on this page is off: ",d.reason]}),void 0===d.fix?null:(0,t.jsx)("p",{className:"mt-1 text-muted-foreground",children:d.fix})]})]}),(0,t.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[[...b,...S?[{key:"bacnet",entries:void 0}]:[]].map(e=>{var s;let a,i="gateway"===(a=s=e.key)||"mqtt"===a||"bacnet"===a?s:void 0;return(0,t.jsxs)(e$.N,{className:"scroll-mt-4",id:eP(e.key),children:[(0,t.jsxs)(e$.Y,{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(e$.v,{children:eI(e.key)}),void 0!==i&&N&&!w?(0,t.jsx)(l.f,{size:"sm",variant:"outline",className:"-my-2",onClick:()=>$(i),children:"Edit"}):null]}),(0,t.jsxs)(e$.O,{children:[(0,t.jsx)(eW,{saved:h,card:e.key,onDismiss:_}),void 0!==i&&o===i&&void 0!==d?(0,t.jsx)(eC,{card:i,edit:d,onDone:k(i)}):void 0===e.entries?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No BACnet device yet: the gateway opens its BACnet/IP port with the first one. Find BACnet devices already uses these settings; Edit shows them."}):(0,t.jsxs)("dl",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-6 gap-y-2 text-sm",children:[e.entries.map(e=>(0,t.jsxs)("div",{className:"contents",children:[(0,t.jsx)("dt",{className:"text-muted-foreground",title:e.key,children:eM(e.key)}),(0,t.jsx)("dd",{className:"min-w-0 text-right break-words",children:eO(e.key,e.value)})]},e.key)),"mqtt"===e.key&&d?.password!==void 0?(0,t.jsxs)("div",{className:"contents",children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Password"}),(0,t.jsxs)("dd",{className:"min-w-0 text-right break-words",children:[d.password.set?"set":"not set"," (",d.password.variable,")"]})]}):null]})]})]},e.key)}),eF.filter(([e])=>!y.has(e)).map(([e,s])=>(0,t.jsxs)(e$.N,{children:[(0,t.jsx)(e$.Y,{children:(0,t.jsx)(e$.v,{children:eI(e)})}),(0,t.jsx)(e$.O,{children:(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:s})})]},e))]}),(0,t.jsxs)(e$.N,{className:"scroll-mt-4 gap-0 py-0",id:eP("devices"),children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 border-b px-5 py-4",children:[(0,t.jsx)("h2",{className:"leading-none font-semibold",children:"Devices"}),N&&!w?(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 sm:-my-2",children:[(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>C({_tag:"device",id:void 0,protocol:"modbus-tcp"}),children:"Add Modbus device"}),(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>C({_tag:"device",id:void 0,protocol:"bacnet-ip"}),children:"Add BACnet device"}),(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>C({_tag:"discover"}),children:"Find BACnet devices"}),(0,t.jsx)(l.f,{size:"sm",variant:"outline",onClick:()=>C({_tag:"upload"}),children:"Upload a points list"})]}):null]}),h?.card==="devices"?(0,t.jsx)("div",{className:"px-5 pt-4",children:(0,t.jsx)(eW,{saved:h,card:"devices",onDismiss:_})}):null,void 0!==u&&void 0!==d?(0,t.jsx)("div",{className:"border-b px-5 py-4",children:"upload"===u._tag?(0,t.jsx)(ew,{edit:d,onDone:k("devices")}):"discover"===u._tag?(0,t.jsx)(ej,{onPicked:e=>{m({_tag:"device",id:void 0,protocol:"bacnet-ip",initial:e}),g(eP("devices"))},onCancel:()=>m(void 0),onBacnetSettings:()=>$("bacnet")}):(0,t.jsx)(eg,{edit:d,deviceId:u.id,protocol:u.protocol,initial:u.initial,onDone:k("devices")},u.id??`new-${u.protocol}-${u.initial?.deviceInstance??""}`)}):null,0===f.length?(0,t.jsx)("p",{className:"p-5 text-sm text-muted-foreground",children:N?"No devices yet: add one, find BACnet devices, or upload a points list.":"The config has no devices."}):(0,t.jsxs)(e_.s,{children:[(0,t.jsx)(e_.E,{children:(0,t.jsxs)(e_.N,{className:"hover:bg-transparent",children:[(0,t.jsx)(e_.U,{className:"pl-5",children:"Device"}),(0,t.jsx)(e_.U,{className:"hidden sm:table-cell",children:"Address"}),(0,t.jsx)(e_.U,{className:"hidden text-right sm:table-cell",children:"Read every"}),(0,t.jsx)(e_.U,{className:"text-right",children:"Points"}),(0,t.jsx)(e_.U,{className:"hidden lg:table-cell",children:"Other settings"}),N?(0,t.jsx)(e_.U,{className:"pr-2 text-right sm:pr-5",children:(0,t.jsx)("span",{className:"sr-only",children:"Edit"})}):null]})}),(0,t.jsx)(e_.z,{children:f.map(e=>{let s=e.entries.find(e=>"pollIntervalMs"===e.key)?.value,a=e.entries.filter(e=>!eR.has(e.key)).map(e=>`${eM(e.key)}: ${eO(e.key,e.value)}`).join(" · ");return(0,t.jsxs)(e_.N,{children:[(0,t.jsxs)(e_.d,{className:"max-w-56 pl-5",children:[(0,t.jsx)("p",{className:"truncate font-mono",children:e.id}),(0,t.jsxs)("p",{className:"truncate text-xs text-muted-foreground",children:[x.T[e.protocol]??e.protocol,(0,t.jsxs)("span",{className:"sm:hidden",children:[" · ",eE(e.protocol,e.entries)]})]})]}),(0,t.jsx)(e_.d,{className:"hidden font-mono text-xs sm:table-cell",children:eE(e.protocol,e.entries)}),(0,t.jsx)(e_.d,{className:"hidden text-right tabular-nums sm:table-cell",children:"number"==typeof s?ez(s):"–"}),(0,t.jsx)(e_.d,{className:"text-right tabular-nums",children:(0,Z.d)(e.pointCount)}),(0,t.jsx)(e_.d,{className:"hidden max-w-md truncate text-xs text-muted-foreground lg:table-cell",title:a,children:a}),N?(0,t.jsx)(e_.d,{className:"pr-2 text-right sm:pr-5",children:j(e.protocol)?(0,t.jsx)(l.f,{size:"sm",variant:"ghost",disabled:w,"aria-label":`Edit ${e.id}`,onClick:()=>C({_tag:"device",id:e.id,protocol:"modbus-tcp"}),children:"Edit"}):null}):null]},e.id)})})]})]})]})}],82341)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,85902,63159,38358,47747,46113,e=>{"use strict";var s=e.i(36019),a=e.i(94237),t=e.i(52088);let i=(0,a.f)("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-4 py-2",sm:"h-8 gap-1.5 rounded-md px-3"}},defaultVariants:{variant:"default",size:"default"}});e.s(["f",0,({className:e,variant:a,size:d,type:o="button",...c})=>(0,s.jsx)("button",{"data-slot":"button",type:o,className:(0,t.f)(i({variant:a,size:d}),e),...c})],85902),e.i(14708);var d=e.i(86209),o=e.i(71658),c=e.i(41923),r=e.i(97168),l=e.i(45243),f=e.i(61980),n=e.i(12847),g=e.i(24544),m=e.i(73709),u=e.i(12461),p=e.i(86994);e.s(["f",0,p],63159);var p=p,v=e.i(97538),b=e.i(49601),h=e.i(24212);e.s(["f",0,h],38358);var h=h,y=e.i(33199);e.s(["f",0,y],47747);var y=y,x=e.i(56991),w=e.i(30790);let _="ot-gateway-edit-token",C=()=>{try{return window.sessionStorage.getItem(_)??void 0}catch{return}},T=e=>({[d.W]:d.u,...void 0===e||""===e?{}:{authorization:`Bearer ${e}`}}),j=e=>x.f.make(o.K,{baseUrl:window.location.origin,transformClient:h.mapRequest(y.setHeaders(T(e)))}).pipe(c.f.map(e=>e.editor)),k=(e,s)=>e.pipe(r.f.mapError(e=>new w.i({message:e.message})),l.f.timeoutOrElse({duration:s,orElse:()=>f.f.fail(new w.i({message:`no answer within ${s}`}))})),E=j(void 0).pipe(n.f.flatMap(e=>e.editStatus()),g.f.provide(b.f.layer),e=>k(e,"3 seconds")),I=j(void 0).pipe(n.f.flatMap(e=>e.file()),g.f.provide(b.f.layer),e=>k(e,"3 seconds"));e.s(["C",0,e=>j(C()).pipe(n.f.flatMap(s=>s.check({payload:{text:e}})),g.f.provide(b.f.layer),e=>k(e,"5 seconds")),"l",0,I,"D",0,E,"_",0,C,"F",0,(e,s)=>j(C()).pipe(n.f.flatMap(a=>a.save({payload:{text:e,etag:s}})),c.f.map(e=>({_tag:"saved",saved:e})),m.f.catchTags({EditingDisabled:e=>u.f.succeed({_tag:"refused",message:e.message}),ConfigConflict:e=>u.f.succeed({_tag:"conflict",message:e.message}),ConfigInvalid:e=>u.f.succeed({_tag:"invalid",issues:e.issues}),ConfigUnreadable:e=>u.f.succeed({_tag:"failed",message:e.message}),ConfigWriteFailed:e=>u.f.succeed({_tag:"failed",message:e.message}),ConfigApplyFailed:e=>u.f.succeed({_tag:"failed",message:e.message})}),g.f.provide(b.f.layer),e=>k(e,"30 seconds"),p.catch(e=>u.f.succeed({_tag:"failed",message:e.message})),v.f.catchDefect(e=>u.f.succeed({_tag:"failed",message:e instanceof Error?e.message:"unexpected error"}))),"h",0,e=>{try{void 0===e||""===e?window.sessionStorage.removeItem(_):window.sessionStorage.setItem(_,e)}catch{}},"H",0,T],46113)},64036,e=>{"use strict";var s=e.i(36019),a=e.i(52088);e.s(["N",0,({className:e,...t})=>(0,s.jsx)("div",{"data-slot":"card",className:(0,a.f)("flex flex-col gap-4 rounded-xl border bg-card py-5 text-card-foreground shadow-sm",e),...t}),"O",0,({className:e,...t})=>(0,s.jsx)("div",{"data-slot":"card-content",className:(0,a.f)("px-5",e),...t}),"u",0,({className:e,...t})=>(0,s.jsx)("div",{"data-slot":"card-description",className:(0,a.f)("text-sm text-muted-foreground",e),...t}),"Y",0,({className:e,...t})=>(0,s.jsx)("div",{"data-slot":"card-header",className:(0,a.f)("grid auto-rows-min items-start gap-1.5 px-5",e),...t}),"v",0,({className:e,...t})=>(0,s.jsx)("div",{"data-slot":"card-title",className:(0,a.f)("leading-none font-semibold",e),...t})])},29164,e=>{"use strict";var s=e.i(36019),a=e.i(52088);e.s(["s",0,({className:e,containerClassName:t="overflow-x-auto",...i})=>(0,s.jsx)("div",{"data-slot":"table-container",className:(0,a.f)("relative w-full",t),children:(0,s.jsx)("table",{"data-slot":"table",className:(0,a.f)("w-full caption-bottom text-sm",e),...i})}),"z",0,({className:e,...t})=>(0,s.jsx)("tbody",{"data-slot":"table-body",className:(0,a.f)("[&_tr:last-child]:border-0",e),...t}),"d",0,({className:e,...t})=>(0,s.jsx)("td",{"data-slot":"table-cell",className:(0,a.f)("p-2 align-middle whitespace-nowrap",e),...t}),"U",0,({className:e,...t})=>(0,s.jsx)("th",{"data-slot":"table-head",className:(0,a.f)("h-9 px-2 text-left align-middle font-medium whitespace-nowrap text-muted-foreground",e),...t}),"E",0,({className:e,...t})=>(0,s.jsx)("thead",{"data-slot":"table-header",className:(0,a.f)("[&_tr]:border-b",e),...t}),"N",0,({className:e,...t})=>(0,s.jsx)("tr",{"data-slot":"table-row",className:(0,a.f)("border-b transition-colors hover:bg-muted/50",e),...t})])},51139,e=>{"use strict";let s="ot-gateway.first-run",a=()=>{try{return window.localStorage}catch{return}};e.s(["$",0,(e,s,a)=>{let t=e.broker.connected,i=e.devices.length>0,d=a.filter(e=>s.get(`${e.device}/${e.id}`)?.value!==void 0).length,o=i&&e.devices.every(e=>void 0!==e.lastSuccess);return{broker:t,devices:i,arrived:d,answered:o,next:t?i?o&&d>0?"done":3:2:1}},"I",0,e=>e.slice(0,6),"m",0,()=>{try{return a()?.getItem(s)==="1"}catch{return!1}},"O",0,e=>{try{e?a()?.setItem(s,"1"):a()?.removeItem(s)}catch{}},"j",0,(e,s)=>0===e||s])},40923,e=>{"use strict";e.i(14708);var s=e.i(71658),a=e.i(41923),t=e.i(24544),i=e.i(45243),d=e.i(12461),o=e.i(63159),c=e.i(97538),r=e.i(12847),l=e.i(73709),f=e.i(49601),n=e.i(38358),g=e.i(47747),m=e.i(56991),u=e.i(46113);let p=()=>m.f.make(s.K,{baseUrl:window.location.origin,transformClient:n.f.mapRequest(g.f.setHeaders((0,u.H)((0,u._)())))}).pipe(a.f.map(e=>e.setup)),v=e=>({_tag:"failed",message:e}),b=(e,s)=>e.pipe(t.f.provide(f.f.layer),i.f.timeoutOrElse({duration:`${s} seconds`,orElse:()=>d.f.succeed(v(`no answer within ${s} s`))}),o.f.catch(e=>d.f.succeed(v(e.message))),c.f.catchDefect(e=>d.f.succeed(v(e instanceof Error?e.message:"unexpected error"))));e.s(["$",0,(e,s,t)=>b(p().pipe(r.f.flatMap(a=>a.importApply({payload:{text:e,name:s,etag:t}})),a.f.map(e=>({_tag:"ok",value:e})),l.f.catchTags({ImportInvalid:e=>d.f.succeed({_tag:"invalid",message:e.message,issues:[]}),ConfigInvalid:e=>d.f.succeed({_tag:"invalid",message:"the config would have problems",issues:e.issues}),ConfigConflict:e=>d.f.succeed({_tag:"conflict",message:e.message}),EditingDisabled:e=>d.f.succeed(v(e.message)),ConfigUnreadable:e=>d.f.succeed(v(e.message)),ConfigWriteFailed:e=>d.f.succeed(v(e.message)),ConfigApplyFailed:e=>d.f.succeed(v(e.message))})),30),"a",0,(e,s)=>b(p().pipe(r.f.flatMap(a=>a.importCheck({payload:{text:e,name:s}})),a.f.map(e=>({_tag:"ok",value:e})),l.f.catchTags({EditingDisabled:e=>d.f.succeed(v(e.message)),ConfigUnreadable:e=>d.f.succeed(v(e.message))})),15),"u",0,(e,s)=>b(p().pipe(r.f.flatMap(a=>a.discoverDevices({payload:{...void 0===e||""===e.trim()?{}:{address:e.trim()},...void 0===s?{}:{seconds:s}}})),a.f.map(e=>({_tag:"ok",value:e})),l.f.catchTags({TestBusy:e=>d.f.succeed({_tag:"busy",message:e.message}),TestInvalid:e=>d.f.succeed({_tag:"invalid",message:e.message,issues:e.issues}),DiscoveryFailed:e=>d.f.succeed(v(e.message)),EditingDisabled:e=>d.f.succeed(v(e.message))})),25),"t",0,(e,s)=>b(p().pipe(r.f.flatMap(a=>a.discoverObjects({payload:{instance:e,address:s}})),a.f.map(e=>({_tag:"ok",value:e})),l.f.catchTags({TestBusy:e=>d.f.succeed({_tag:"busy",message:e.message}),TestInvalid:e=>d.f.succeed({_tag:"invalid",message:e.message,issues:e.issues}),DiscoveryFailed:e=>d.f.succeed(v(e.message)),EditingDisabled:e=>d.f.succeed(v(e.message))})),30),"w",0,e=>b(p().pipe(r.f.flatMap(s=>s.testBroker({payload:{text:e}})),a.f.map(e=>({_tag:"ok",value:e})),l.f.catchTags({TestBusy:e=>d.f.succeed({_tag:"busy",message:e.message}),TestInvalid:e=>d.f.succeed({_tag:"invalid",message:e.message,issues:e.issues}),EditingDisabled:e=>d.f.succeed(v(e.message))})),25),"d",0,(e,s,t)=>b(p().pipe(r.f.flatMap(a=>a.testRead({payload:{text:e,device:s,...void 0===t?{}:{points:t}}})),a.f.map(e=>({_tag:"ok",value:e})),l.f.catchTags({TestBusy:e=>d.f.succeed({_tag:"busy",message:e.message}),TestInvalid:e=>d.f.succeed({_tag:"invalid",message:e.message,issues:e.issues}),EditingDisabled:e=>d.f.succeed(v(e.message))})),15)])},73709,12461,e=>{"use strict";var s=e.i(86994);e.s(["f",0,s],73709),e.s(["f",0,s],12461)}]);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93147,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={WarningIcon:function(){return d},errorStyles:function(){return l},errorThemeCss:function(){return a}};for(var n in o)Object.defineProperty(t,n,{enumerable:!0,get:o[n]});e.r(36437);let i=e.r(36019);e.r(28032);let l={container:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},card:{marginTop:"-32px",maxWidth:"325px",padding:"32px 28px",textAlign:"left"},icon:{marginBottom:"24px"},title:{fontSize:"24px",fontWeight:500,letterSpacing:"-0.02em",lineHeight:"32px",margin:"0 0 12px 0",color:"var(--next-error-title)"},message:{fontSize:"14px",fontWeight:400,lineHeight:"21px",margin:"0 0 20px 0",color:"var(--next-error-message)"},form:{margin:0},buttonGroup:{display:"flex",gap:"8px",alignItems:"center"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-text)",background:"var(--next-error-btn-bg)",border:"var(--next-error-btn-border)"},buttonSecondary:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-secondary-text)",background:"var(--next-error-btn-secondary-bg)",border:"var(--next-error-btn-secondary-border)"},digestFooter:{position:"fixed",bottom:"32px",left:"0",right:"0",textAlign:"center",fontFamily:'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',fontSize:"12px",lineHeight:"18px",fontWeight:400,margin:"0",color:"var(--next-error-digest)"}},a=`
|
|
2
|
+
:root {
|
|
3
|
+
--next-error-bg: #fff;
|
|
4
|
+
--next-error-text: #171717;
|
|
5
|
+
--next-error-title: #171717;
|
|
6
|
+
--next-error-message: #171717;
|
|
7
|
+
--next-error-digest: #666666;
|
|
8
|
+
--next-error-btn-text: #fff;
|
|
9
|
+
--next-error-btn-bg: #171717;
|
|
10
|
+
--next-error-btn-border: none;
|
|
11
|
+
--next-error-btn-secondary-text: #171717;
|
|
12
|
+
--next-error-btn-secondary-bg: transparent;
|
|
13
|
+
--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
|
|
14
|
+
}
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
:root {
|
|
17
|
+
--next-error-bg: #0a0a0a;
|
|
18
|
+
--next-error-text: #ededed;
|
|
19
|
+
--next-error-title: #ededed;
|
|
20
|
+
--next-error-message: #ededed;
|
|
21
|
+
--next-error-digest: #a0a0a0;
|
|
22
|
+
--next-error-btn-text: #0a0a0a;
|
|
23
|
+
--next-error-btn-bg: #ededed;
|
|
24
|
+
--next-error-btn-border: none;
|
|
25
|
+
--next-error-btn-secondary-text: #ededed;
|
|
26
|
+
--next-error-btn-secondary-bg: transparent;
|
|
27
|
+
--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
|
|
31
|
+
`.replace(/\n\s*/g,"");function d(){return(0,i.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:l.icon,children:(0,i.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},2501,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}}),e.r(36437);let o=e.r(36019);e.r(28032);let n=e.r(84012),i=e.r(93147),l=function({error:e}){let r=e?.digest,t=!!r;return(0,n.handleISRError)({error:e}),(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{children:(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:i.errorThemeCss}})}),(0,o.jsxs)("body",{children:[(0,o.jsx)("div",{style:i.errorStyles.container,children:(0,o.jsxs)("div",{style:i.errorStyles.card,children:[(0,o.jsx)(i.WarningIcon,{}),(0,o.jsx)("h1",{style:i.errorStyles.title,children:"This page couldn’t load"}),(0,o.jsx)("p",{style:i.errorStyles.message,children:t?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,o.jsxs)("div",{style:i.errorStyles.buttonGroup,children:[(0,o.jsx)("form",{style:i.errorStyles.form,children:(0,o.jsx)("button",{type:"submit",style:i.errorStyles.button,children:"Reload"})}),!t&&(0,o.jsx)("button",{type:"button",style:i.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),r&&(0,o.jsxs)("p",{style:i.errorStyles.digestFooter,children:["ERROR ",r]})]})]})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)}]);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:"/_next/static/chunks/
|
|
3
|
-
3:"/_next/static/chunks/
|
|
2
|
+
2:"/_next/static/chunks/2j1fafqsbgut_.js"
|
|
3
|
+
3:"/_next/static/chunks/0lt0-xwba1jct.js"
|
|
4
4
|
4:I[80136,["$2","$3"],"GatewayShell"]
|
|
5
|
-
5:I[
|
|
6
|
-
6:I[
|
|
7
|
-
a:I[
|
|
5
|
+
5:I[46912,["$2","$3"],"default"]
|
|
6
|
+
6:I[1384,["$2","$3"],"default"]
|
|
7
|
+
a:I[96559,["$2","$3"],"OutletBoundary"]
|
|
8
8
|
b:"$Sreact.suspense"
|
|
9
9
|
d:"ViewportBoundary"
|
|
10
|
-
e:I[
|
|
10
|
+
e:I[96559,["$2","$3"],"$d"]
|
|
11
11
|
10:"MetadataBoundary"
|
|
12
|
-
11:I[
|
|
13
|
-
13:I[
|
|
14
|
-
:HL["/_next/static/chunks/
|
|
12
|
+
11:I[96559,["$2","$3"],"$10"]
|
|
13
|
+
13:I[2501,["$2","$3"],"default",1]
|
|
14
|
+
:HL["/_next/static/chunks/1v-9tdtn2b7rz.css","style"]
|
|
15
15
|
8:X
|
|
16
16
|
9:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],"p":false,"v":null}}]]
|
|
17
17
|
7:[["children",{"s":"/_not-found","h":512,"d":{"r":["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],"p":false,"v":"$8"},"c":"$Q9"}]]
|
|
18
|
-
0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
18
|
+
0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/1v-9tdtn2b7rz.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/2j1fafqsbgut_.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0lt0-xwba1jct.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"min-h-dvh","children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],"p":false,"v":null},"c":"$Q7"},"h":{"r":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$Le",null,{"children":"$Lf"}],["$","$L11",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$b",null,{"name":"Next.Metadata","children":"$L12"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$13",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/1v-9tdtn2b7rz.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"crV5DAoVpa8QvyUp9vPHR"}
|
|
19
19
|
8:C
|
|
20
20
|
f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
21
21
|
c:null
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:"/_next/static/chunks/
|
|
3
|
-
3:"/_next/static/chunks/
|
|
2
|
+
2:"/_next/static/chunks/2j1fafqsbgut_.js"
|
|
3
|
+
3:"/_next/static/chunks/0lt0-xwba1jct.js"
|
|
4
4
|
4:I[80136,["$2","$3"],"GatewayShell"]
|
|
5
|
-
5:I[
|
|
6
|
-
6:I[
|
|
7
|
-
d:I[
|
|
5
|
+
5:I[46912,["$2","$3"],"default"]
|
|
6
|
+
6:I[1384,["$2","$3"],"default"]
|
|
7
|
+
d:I[96559,["$2","$3"],"OutletBoundary"]
|
|
8
8
|
e:"$Sreact.suspense"
|
|
9
9
|
11:"ViewportBoundary"
|
|
10
|
-
12:I[
|
|
10
|
+
12:I[96559,["$2","$3"],"$11"]
|
|
11
11
|
13:"MetadataBoundary"
|
|
12
|
-
14:I[
|
|
13
|
-
:HL["/_next/static/chunks/
|
|
12
|
+
14:I[96559,["$2","$3"],"$13"]
|
|
13
|
+
:HL["/_next/static/chunks/1v-9tdtn2b7rz.css","style"]
|
|
14
14
|
8:X
|
|
15
15
|
b:X
|
|
16
16
|
b:C
|
|
17
17
|
c:[["children",{"s":"__PAGE__","h":160,"d":{"r":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$Ld",null,{"children":["$","$e",null,{"name":"Next.MetadataOutlet","children":"$@f"}]}]]}],"p":"$@10","v":null,"s":"$8"}}]]
|
|
18
18
|
9:[["children",{"s":"/_not-found","h":96,"d":{"r":["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","template":["$","$L6",null,{}]}]]}],"p":"$@a","v":"$b","s":"$8"},"c":"$Qc"}]]
|
|
19
|
-
0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
19
|
+
0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/1v-9tdtn2b7rz.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/2j1fafqsbgut_.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/0lt0-xwba1jct.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"min-h-dvh","children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","template":["$","$L6",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]]}],"p":"$@7","v":null,"s":"$8"},"c":"$Q9"},"h":{"r":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L12",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","$L14",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$e",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"OT Gateway"}],["$","meta","1",{"name":"description","content":"The gateway's devices, points, messages and settings"}]]}]}],null]}],null]}],"p":"$@15","v":null,"s":"$8"}},"a":"$@16","u":"$@17","b":"crV5DAoVpa8QvyUp9vPHR"}
|
|
20
20
|
f:null
|
|
21
21
|
8:300
|
|
22
22
|
17:true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:HL["/_next/static/chunks/
|
|
1
|
+
:HL["/_next/static/chunks/1v-9tdtn2b7rz.css","style"]
|
|
2
2
|
2:[["children",{"s":"__PAGE__","h":160}]]
|
|
3
3
|
1:[["children",{"s":"/_not-found","h":96,"c":"$Q2"}]]
|
|
4
|
-
0:{"b":"
|
|
4
|
+
0:{"b":"crV5DAoVpa8QvyUp9vPHR","t":{"t":{"s":"","h":80,"c":"$Q1"}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/1v-9tdtn2b7rz.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/44ks15hsmz9f7.js"/><script src="/_next/static/chunks/1r99dqhbbww2-.js" async=""></script><script src="/_next/static/chunks/1n0866ubw_vzw.js" async=""></script><script src="/_next/static/chunks/0hmt14p7jb7fw.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/2j1fafqsbgut_.js" async=""></script><script src="/_next/static/chunks/0lt0-xwba1jct.js" async=""></script><meta name="robots" content="noindex"/><title>OT Gateway</title><meta name="description" content="The gateway's devices, points, messages and settings"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="min-h-dvh"><div hidden=""><!--$--><!--/$--></div><main class="mx-auto flex max-w-6xl flex-col gap-6 p-4 sm:p-8"><header class="flex flex-col gap-3"><div class="flex flex-wrap items-baseline justify-between gap-2"><div><h1 class="text-2xl font-semibold tracking-tight">OT Gateway</h1></div></div><nav aria-label="Pages" class="flex gap-1 border-b"><a aria-current="page" class="-mb-px border-b-2 px-3 py-2 text-sm border-foreground font-medium" href="/">Status</a><a class="-mb-px border-b-2 px-3 py-2 text-sm border-transparent text-muted-foreground hover:text-foreground" href="/points/">Points</a><a class="-mb-px border-b-2 px-3 py-2 text-sm border-transparent text-muted-foreground hover:text-foreground" href="/messages/">Messages</a><a class="-mb-px border-b-2 px-3 py-2 text-sm border-transparent text-muted-foreground hover:text-foreground" href="/settings/">Settings</a></nav></header><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></main><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/44ks15hsmz9f7.js","static/chunks/1r99dqhbbww2-.js","static/chunks/1n0866ubw_vzw.js","static/chunks/0hmt14p7jb7fw.js"],"runtimeModuleIds":[35320]});</script><script src="/_next/static/chunks/44ks15hsmz9f7.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/2j1fafqsbgut_.js\"\n3:\"/_next/static/chunks/0lt0-xwba1jct.js\"\n4:I[80136,[\"$2\",\"$3\"],\"GatewayShell\"]\n5:I[46912,[\"$2\",\"$3\"],\"default\"]\n6:I[1384,[\"$2\",\"$3\"],\"default\"]\na:I[96559,[\"$2\",\"$3\"],\"OutletBoundary\"]\nb:\"$Sreact.suspense\"\nd:\"ViewportBoundary\"\ne:I[96559,[\"$2\",\"$3\"],\"$d\"]\n10:\"MetadataBoundary\"\n11:I[96559,[\"$2\",\"$3\"],\"$10\"]\n13:I[2501,[\"$2\",\"$3\"],\"default\",1]\n:HL[\"/_next/static/chunks/1v-9tdtn2b7rz.css\",\"style\"]\n8:X\n9:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$La\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@c\"}]}]]}],\"p\":false,\"v\":null}}]]\n7:[[\"children\",{\"s\":\"/_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$8\"},\"c\":\"$Q9\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_not-found\",\"\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/1v-9tdtn2b7rz.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2j1fafqsbgut_.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0lt0-xwba1jct.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-dvh\",\"children\":[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q7\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Le\",null,{\"children\":\"$Lf\"}],[\"$\",\"$L11\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L12\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$13\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/1v-9tdtn2b7rz.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"crV5DAoVpa8QvyUp9vPHR\"}\n8:C\nf:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nc:null\n12:[[\"$\",\"title\",\"0\",{\"children\":\"OT Gateway\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"The gateway's devices, points, messages and settings\"}]]\n"])</script></body></html>
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:"/_next/static/chunks/
|
|
3
|
-
3:"/_next/static/chunks/
|
|
2
|
+
2:"/_next/static/chunks/2j1fafqsbgut_.js"
|
|
3
|
+
3:"/_next/static/chunks/0lt0-xwba1jct.js"
|
|
4
4
|
4:I[80136,["$2","$3"],"GatewayShell"]
|
|
5
|
-
5:I[
|
|
6
|
-
6:I[
|
|
7
|
-
a:I[
|
|
5
|
+
5:I[46912,["$2","$3"],"default"]
|
|
6
|
+
6:I[1384,["$2","$3"],"default"]
|
|
7
|
+
a:I[96559,["$2","$3"],"OutletBoundary"]
|
|
8
8
|
b:"$Sreact.suspense"
|
|
9
9
|
d:"ViewportBoundary"
|
|
10
|
-
e:I[
|
|
10
|
+
e:I[96559,["$2","$3"],"$d"]
|
|
11
11
|
10:"MetadataBoundary"
|
|
12
|
-
11:I[
|
|
13
|
-
13:I[
|
|
14
|
-
:HL["/_next/static/chunks/
|
|
12
|
+
11:I[96559,["$2","$3"],"$10"]
|
|
13
|
+
13:I[2501,["$2","$3"],"default",1]
|
|
14
|
+
:HL["/_next/static/chunks/1v-9tdtn2b7rz.css","style"]
|
|
15
15
|
8:X
|
|
16
16
|
9:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],"p":false,"v":null}}]]
|
|
17
17
|
7:[["children",{"s":"/_not-found","h":512,"d":{"r":["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],"p":false,"v":"$8"},"c":"$Q9"}]]
|
|
18
|
-
0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
18
|
+
0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/1v-9tdtn2b7rz.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/2j1fafqsbgut_.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0lt0-xwba1jct.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"min-h-dvh","children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],"p":false,"v":null},"c":"$Q7"},"h":{"r":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$Le",null,{"children":"$Lf"}],["$","$L11",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$b",null,{"name":"Next.Metadata","children":"$L12"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$13",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/1v-9tdtn2b7rz.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"crV5DAoVpa8QvyUp9vPHR"}
|
|
19
19
|
8:C
|
|
20
20
|
f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
21
21
|
c:null
|
package/apps/web/out/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/1v-9tdtn2b7rz.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/44ks15hsmz9f7.js"/><script src="/_next/static/chunks/1r99dqhbbww2-.js" async=""></script><script src="/_next/static/chunks/1n0866ubw_vzw.js" async=""></script><script src="/_next/static/chunks/0hmt14p7jb7fw.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/2j1fafqsbgut_.js" async=""></script><script src="/_next/static/chunks/0lt0-xwba1jct.js" async=""></script><script src="/_next/static/chunks/2b480x3i0hlfo.js" async=""></script><script src="/_next/static/chunks/0xshj5dntgsf0.js" async=""></script><title>OT Gateway</title><meta name="description" content="The gateway's devices, points, messages and settings"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="min-h-dvh"><div hidden=""><!--$--><!--/$--></div><main class="mx-auto flex max-w-6xl flex-col gap-6 p-4 sm:p-8"><header class="flex flex-col gap-3"><div class="flex flex-wrap items-baseline justify-between gap-2"><div><h1 class="text-2xl font-semibold tracking-tight">OT Gateway</h1></div></div><nav aria-label="Pages" class="flex gap-1 border-b"><a aria-current="page" class="-mb-px border-b-2 px-3 py-2 text-sm border-foreground font-medium" href="/">Status</a><a class="-mb-px border-b-2 px-3 py-2 text-sm border-transparent text-muted-foreground hover:text-foreground" href="/points/">Points</a><a class="-mb-px border-b-2 px-3 py-2 text-sm border-transparent text-muted-foreground hover:text-foreground" href="/messages/">Messages</a><a class="-mb-px border-b-2 px-3 py-2 text-sm border-transparent text-muted-foreground hover:text-foreground" href="/settings/">Settings</a></nav></header><!--$!--><template data-dgst=""></template><p class="text-muted-foreground">Loading…</p><!--/$--><!--$--><!--/$--></main><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/44ks15hsmz9f7.js","static/chunks/1r99dqhbbww2-.js","static/chunks/1n0866ubw_vzw.js","static/chunks/0hmt14p7jb7fw.js"],"runtimeModuleIds":[35320]});</script><script src="/_next/static/chunks/44ks15hsmz9f7.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/2j1fafqsbgut_.js\"\n3:\"/_next/static/chunks/0lt0-xwba1jct.js\"\n4:I[80136,[\"$2\",\"$3\"],\"GatewayShell\"]\n5:I[46912,[\"$2\",\"$3\"],\"default\"]\n6:I[1384,[\"$2\",\"$3\"],\"default\"]\n8:I[72378,[\"$2\",\"$3\"],\"ClientPageRoot\"]\n9:\"/_next/static/chunks/2b480x3i0hlfo.js\"\na:\"/_next/static/chunks/0xshj5dntgsf0.js\"\nb:I[39798,[\"$2\",\"$3\",\"$9\",\"$a\"],\"default\"]\ne:I[96559,[\"$2\",\"$3\"],\"OutletBoundary\"]\nf:\"$Sreact.suspense\"\n11:\"ViewportBoundary\"\n12:I[96559,[\"$2\",\"$3\"],\"$11\"]\n14:\"MetadataBoundary\"\n15:I[96559,[\"$2\",\"$3\"],\"$14\"]\n17:I[2501,[\"$2\",\"$3\"],\"default\",1]\n:HL[\"/_next/static/chunks/1v-9tdtn2b7rz.css\",\"style\"]\n7:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L8\",null,{\"Component\":\"$b\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@c\",\"$@d\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2b480x3i0hlfo.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0xshj5dntgsf0.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@10\"}]}]]}],\"p\":false,\"v\":null}}]]\n0:{\"P\":null,\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/1v-9tdtn2b7rz.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2j1fafqsbgut_.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0lt0-xwba1jct.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-dvh\",\"children\":[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q7\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],[\"$\",\"$L15\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L16\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$17\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/1v-9tdtn2b7rz.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"crV5DAoVpa8QvyUp9vPHR\"}\nc:{}\nd:\"$7:0:1:d:r:props:children:0:props:serverProvidedParams:params\"\n13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n10:null\n16:[[\"$\",\"title\",\"0\",{\"children\":\"OT Gateway\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"The gateway's devices, points, messages and settings\"}]]\n"])</script></body></html>
|