From 64907dbc78240b574e4021f8c89ec37297631797 Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Mon, 20 May 2024 20:10:18 +0200 Subject: [PATCH 01/12] multiple UI timing issues (#15992) --- code/modules/assembly/proximity.dm | 4 ++-- code/modules/assembly/timer.dm | 4 ++-- tgui/packages/tgui/interfaces/AssemblyProx.jsx | 4 ++-- tgui/packages/tgui/interfaces/AssemblyTimer.jsx | 4 ++-- tgui/packages/tgui/interfaces/BrigTimer.jsx | 10 +++++----- tgui/public/tgui.bundle.js | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/code/modules/assembly/proximity.dm b/code/modules/assembly/proximity.dm index 959d4566d24..488498a58b8 100644 --- a/code/modules/assembly/proximity.dm +++ b/code/modules/assembly/proximity.dm @@ -107,7 +107,7 @@ /obj/item/device/assembly/prox_sensor/tgui_data(mob/user) var/list/data = ..() - data["time"] = time * 10 + data["time"] = time data["timing"] = timing data["range"] = range data["maxRange"] = 5 @@ -135,7 +135,7 @@ for(var/i in 1 to LAZYLEN(L)) real_new_time += text2num(L[i]) * (60 ** (LAZYLEN(L) - i)) else - real_new_time = text2num(new_time) + real_new_time = text2num(new_time * 10) time = clamp(real_new_time, 0, 600) return TRUE if("range") diff --git a/code/modules/assembly/timer.dm b/code/modules/assembly/timer.dm index fb47a020c32..13e4c63043c 100644 --- a/code/modules/assembly/timer.dm +++ b/code/modules/assembly/timer.dm @@ -73,7 +73,7 @@ /obj/item/device/assembly/timer/tgui_data(mob/user) var/list/data = ..() - data["time"] = time * 10 + data["time"] = time data["timing"] = timing return data @@ -94,6 +94,6 @@ for(var/i in 1 to LAZYLEN(L)) real_new_time += text2num(L[i]) * (60 ** (LAZYLEN(L) - i)) else - real_new_time = text2num(new_time) + real_new_time = text2num(new_time * 10) time = clamp(real_new_time, 0, 600) return TRUE diff --git a/tgui/packages/tgui/interfaces/AssemblyProx.jsx b/tgui/packages/tgui/interfaces/AssemblyProx.jsx index 19feacea1ec..a569ab81136 100644 --- a/tgui/packages/tgui/interfaces/AssemblyProx.jsx +++ b/tgui/packages/tgui/interfaces/AssemblyProx.jsx @@ -30,8 +30,8 @@ export const AssemblyProx = (props) => { fluid value={time / 10} minValue={0} - maxValue={600} - format={(val) => formatTime(round(val))} + maxValue={60} + format={(val) => formatTime(round(val * 10))} onDrag={(e, val) => act('set_time', { time: val })} /> diff --git a/tgui/packages/tgui/interfaces/AssemblyTimer.jsx b/tgui/packages/tgui/interfaces/AssemblyTimer.jsx index fef7278b3f1..98b64eaa628 100644 --- a/tgui/packages/tgui/interfaces/AssemblyTimer.jsx +++ b/tgui/packages/tgui/interfaces/AssemblyTimer.jsx @@ -30,8 +30,8 @@ export const AssemblyTimer = (props) => { fluid value={time / 10} minValue={0} - maxValue={600} - format={(val) => formatTime(round(val))} + maxValue={60} + format={(val) => formatTime(round(val * 10))} onDrag={(e, val) => act('set_time', { time: val })} /> diff --git a/tgui/packages/tgui/interfaces/BrigTimer.jsx b/tgui/packages/tgui/interfaces/BrigTimer.jsx index 38268d6fb95..44e693a6093 100644 --- a/tgui/packages/tgui/interfaces/BrigTimer.jsx +++ b/tgui/packages/tgui/interfaces/BrigTimer.jsx @@ -8,7 +8,7 @@ import { Window } from '../layouts'; export const BrigTimer = (props) => { const { act, data } = useBackend(); return ( - +
{ value={data.time_left / 10} minValue={0} maxValue={data.max_time_left / 10} - format={(val) => formatTime(round(val))} + format={(val) => formatTime(round(val * 10))} onDrag={(e, val) => act('time', { time: val })} /> @@ -50,7 +50,7 @@ export const BrigTimer = (props) => { icon="hourglass-start" onClick={() => act('preset', { preset: 'short' })} > - {'Add ' + formatTime(data.preset_short / 10)} + {'Add ' + formatTime(data.preset_short)} @@ -59,7 +59,7 @@ export const BrigTimer = (props) => { icon="hourglass-start" onClick={() => act('preset', { preset: 'medium' })} > - {'Add ' + formatTime(data.preset_medium / 10)} + {'Add ' + formatTime(data.preset_medium)} @@ -68,7 +68,7 @@ export const BrigTimer = (props) => { icon="hourglass-start" onClick={() => act('preset', { preset: 'long' })} > - {'Add ' + formatTime(data.preset_long / 10)} + {'Add ' + formatTime(data.preset_long)} diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 37957655dc0..7029b81a47a 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -268,7 +268,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(O,b){(b==null||b>O.length)&&(b=O.length);for(var I=0,P=new Array(b);I=O.length?{done:!0}:{done:!1,value:O[P++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g=(0,t.h)("hotkeys"),x={},d=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],h={},m=[],u=function(O){if(O===16)return"Shift";if(O===17)return"Ctrl";if(O===18)return"Alt";if(O===33)return"Northeast";if(O===34)return"Southeast";if(O===35)return"Southwest";if(O===36)return"Northwest";if(O===37)return"West";if(O===38)return"North";if(O===39)return"East";if(O===40)return"South";if(O===45)return"Insert";if(O===46)return"Delete";if(O>=48&&O<=57||O>=65&&O<=90)return String.fromCharCode(O);if(O>=96&&O<=105)return"Numpad"+(O-96);if(O>=112&&O<=123)return"F"+(O-111);if(O===188)return",";if(O===189)return"-";if(O===190)return"."},v=function(O){var b=String(O);if(b==="Ctrl+F5"||b==="Ctrl+R"){location.reload();return}if(b!=="Ctrl+F"&&!(O.event.defaultPrevented||O.isModifierKey()||d.includes(O.code))){var I=u(O.code);if(I){var P=x[I];if(P)return g.debug("macro",P),Byond.command(P);if(O.isDown()&&!h[I]){h[I]=!0;var S='TguiKeyDown "'+I+'"';return g.debug(S),Byond.command(S)}if(O.isUp()&&h[I]){h[I]=!1;var M='TguiKeyUp "'+I+'"';return g.debug(M),Byond.command(M)}}}},c=function(O){d.push(O)},f=function(O){var b=d.indexOf(O);b>=0&&d.splice(b,1)},p=function(){for(var O=o(Object.keys(h)),b;!(b=O()).done;){var I=b.value;h[I]&&(h[I]=!1,g.log('releasing key "'+I+'"'),Byond.command('TguiKeyUp "'+I+'"'))}},C=function(){Byond.winget("default.*").then(function(O){for(var b={},I=o(Object.keys(O)),P;!(P=I()).done;){var S=P.value,M=S.split("."),A=M[1],R=M[2];A&&R&&(b[A]||(b[A]={}),b[A][R]=O[S])}for(var K=/\\"/g,N=function(Q){return Q.substring(1,Q.length-1).replace(K,'"')},k=o(Object.keys(b)),F;!(F=k()).done;){var W=F.value,J=b[W],X=N(J.name);x[X]=N(J.command)}g.debug("loaded macros",x)}),s.Nh.on("window-blur",function(){p()}),s.Nh.on("key",function(O){for(var b=o(m),I;!(I=b()).done;){var P=I.value;P(O)}v(O)})},y=function(O){m.push(O);var b=!1;return function(){b||(b=!0,m.splice(m.indexOf(O),1))}}},43498:function(_,j,n){"use strict";n.r(j),n.d(j,{AICard:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.has_ai,m=d.integrity,u=d.backup_capacitor,v=d.flushing,c=d.has_laws,f=d.laws,p=d.wireless,C=d.radio;if(h===0)return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Stored AI",children:(0,e.jsx)(t.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})});var y=null;m>=75?y="green":m>=25?y="yellow":y="red";var O=null;return u>=75&&(O="green"),u>=25?O="yellow":O="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Stored AI",children:[(0,e.jsx)(t.az,{bold:!0,display:"inline-block",children:(0,e.jsx)("h3",{children:name})}),(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:y,value:m/100})}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.z2,{color:O,value:u/100})})]})}),(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h2",{children:v===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(t.wn,{title:"Laws",children:!!c&&(0,e.jsx)(t.az,{children:f.map(function(b,I){return(0,e.jsx)(t.az,{display:"inline-block",children:b},I)})})||(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(t.wn,{title:"Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(t.$n,{icon:p?"check":"times",color:p?"green":"red",onClick:function(){return x("wireless")},children:p?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(t.$n,{icon:C?"check":"times",color:C?"green":"red",onClick:function(){return x("radio")},children:C?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"AI Power",children:(0,e.jsx)(t.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:v||m===0,confirmColor:"red",onClick:function(){return x("wipe")},children:"Shutdown"})})]})})]})})}},10342:function(_,j,n){"use strict";n.r(j),n.d(j,{APC:function(){return g}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(9129),o=n(27805),g=function(v){var c=(0,s.Oc)(),f=c.act,p=c.data,C=(0,e.jsx)(h,{});return p.gridCheck?C=(0,e.jsx)(m,{}):p.failTime&&(C=(0,e.jsx)(u,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},x={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},d={1:{icon:"terminal",content:"Override Programming",action:"hack"}},h=function(v){var c=(0,s.Oc)(),f=c.act,p=c.data,C=p.locked&&!p.siliconUser,y=p.normallyLocked,O=x[p.externalPower]||x[0],b=x[p.chargingStatus]||x[0],I=p.powerChannels||[],P=p.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.InterfaceLockNoticeBox,{deny:p.emagged,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(t.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main Breaker",color:O.color,buttons:(0,e.jsx)(t.$n,{icon:p.isOperating?"power-off":"times",selected:p.isOperating&&!C,color:p.isOperating?"":"bad",disabled:C,onClick:function(){return f("breaker")},children:p.isOperating?"On":"Off"}),children:["[ ",O.externalPowerText," ]"]}),(0,e.jsx)(t.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(t.z2,{color:"good",value:P})}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",color:b.color,buttons:(0,e.jsx)(t.$n,{icon:p.chargeMode?"sync":"times",selected:p.chargeMode,disabled:C,onClick:function(){return f("charge")},children:p.chargeMode?"Auto":"Off"}),children:["[ ",b.chargingText," ]"]})]})}),(0,e.jsx)(t.wn,{title:"Power Channels",children:(0,e.jsxs)(t.Ki,{children:[I.map(function(S){var M=S.topicParams;return(0,e.jsxs)(t.Ki.Item,{label:S.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,mx:2,color:S.status>=2?"good":"bad",children:S.status>=2?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"sync",selected:!C&&(S.status===1||S.status===3),disabled:C,onClick:function(){return f("channel",M.auto)},children:"Auto"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:!C&&S.status===2,disabled:C,onClick:function(){return f("channel",M.on)},children:"On"}),(0,e.jsx)(t.$n,{icon:"times",selected:!C&&S.status===0,disabled:C,onClick:function(){return f("channel",M.off)},children:"Off"})]}),children:[S.powerLoad," W"]},S.title)}),(0,e.jsx)(t.Ki.Item,{label:"Total Load",children:p.totalCharging?(0,e.jsxs)("b",{children:[p.totalLoad," W (+ ",p.totalCharging," W charging)"]}):(0,e.jsxs)("b",{children:[p.totalLoad," W"]})})]})}),(0,e.jsx)(t.wn,{title:"Misc",buttons:!!p.siliconUser&&(0,e.jsx)(t.$n,{icon:"lightbulb-o",onClick:function(){return f("overload")},children:"Overload"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(t.$n,{icon:p.coverLocked?"lock":"unlock",selected:p.coverLocked,disabled:C,onClick:function(){return f("cover")},children:p.coverLocked?"Engaged":"Disengaged"})}),(0,e.jsx)(t.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:p.nightshiftSetting===2,onClick:function(){return f("nightshift",{nightshift:2})},children:"Disabled"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:p.nightshiftSetting===1,onClick:function(){return f("nightshift",{nightshift:1})},children:"Automatic"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:p.nightshiftSetting===3,onClick:function(){return f("nightshift",{nightshift:3})},children:"Enabled"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:p.emergencyLights,onClick:function(){return f("emergency_lighting")},children:p.emergencyLights?"Enabled":"Disabled"})})]})})]})},m=function(v){return(0,e.jsxs)(a.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},u=function(v){var c=(0,s.Oc)(),f=c.data,p=c.act,C=(0,e.jsx)(t.$n,{icon:"repeat",color:"good",onClick:function(){return p("reboot")},children:"Restart Now"});return f.locked&&!f.siliconUser&&(C=(0,e.jsx)(t.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(t.az,{color:"good",children:["Automatic reboot in ",f.failTime," seconds..."]}),(0,e.jsx)(t.az,{mt:4,children:C})]})}},51594:function(_,j,n){"use strict";n.r(j),n.d(j,{AccountsTerminal:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(h){var m=(0,s.Oc)(),u=m.act,v=m.data,c=v.id_inserted,f=v.id_card,p=v.access_level,C=v.machine_id;return(0,e.jsx)(r.p8,{width:400,height:640,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Machine",color:"average",children:C}),(0,e.jsx)(t.Ki.Item,{label:"ID",children:(0,e.jsx)(t.$n,{icon:c?"eject":"sign-in-alt",fluid:!0,onClick:function(){return u("insert_card")},children:f})})]})}),p>0&&(0,e.jsx)(o,{})]})})},o=function(h){var m=(0,s.Oc)(),u=m.act,v=m.data,c=v.creating_new_account,f=v.detailed_account_view;return(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!c&&!f,icon:"home",onClick:function(){return u("view_accounts_list")},children:"Home"}),(0,e.jsx)(t.tU.Tab,{selected:c,icon:"cog",onClick:function(){return u("create_account")},children:"New Account"}),c?"":(0,e.jsx)(t.tU.Tab,{disabled:c,icon:"print",onClick:function(){return u("print")},children:"Print"})]}),c&&(0,e.jsx)(g,{})||f&&(0,e.jsx)(x,{})||(0,e.jsx)(d,{})]})},g=function(h){var m=(0,s.Oc)().act,u=(0,s.QY)("holder",""),v=u[0],c=u[1],f=(0,s.QY)("money",""),p=f[0],C=f[1];return(0,e.jsxs)(t.wn,{title:"Create Account",level:2,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(t.pd,{value:v,fluid:!0,onInput:function(y,O){return c(O)}})}),(0,e.jsx)(t.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(t.pd,{value:p,fluid:!0,onInput:function(y,O){return C(O)}})})]}),(0,e.jsx)(t.$n,{disabled:!v||!p,mt:1,fluid:!0,icon:"plus",onClick:function(){return m("finalise_create_account",{holder_name:v,starting_funds:p})},children:"Create"})]})},x=function(h){var m=(0,s.Oc)(),u=m.act,v=m.data,c=v.access_level,f=v.station_account_number,p=v.account_number,C=v.owner_name,y=v.money,O=v.suspended,b=v.transactions;return(0,e.jsxs)(t.wn,{title:"Account Details",level:2,buttons:(0,e.jsx)(t.$n,{icon:"ban",selected:O,onClick:function(){return u("toggle_suspension")},children:"Suspend"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Number",children:["#",p]}),(0,e.jsx)(t.Ki.Item,{label:"Holder",children:C}),(0,e.jsxs)(t.Ki.Item,{label:"Balance",children:[y,"\u20AE"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:O?"bad":"good",children:O?"SUSPENDED":"Active"})]}),(0,e.jsx)(t.wn,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payroll",children:(0,e.jsx)(t.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",confirmContent:"This cannot be undone.",disabled:p===f,onClick:function(){return u("revoke_payroll")},children:"Revoke"})})})}),c>=2&&(0,e.jsxs)(t.wn,{title:"Silent Funds Transfer",level:2,children:[(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return u("add_funds")},children:"Add Funds"}),(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return u("remove_funds")},children:"Remove Funds"})]}),(0,e.jsx)(t.wn,{title:"Transactions",level:2,mt:1,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(t.XI.Cell,{children:"Target"}),(0,e.jsx)(t.XI.Cell,{children:"Reason"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Terminal"})]}),b.map(function(I,P){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{children:[I.date," ",I.time]}),(0,e.jsx)(t.XI.Cell,{children:I.target_name}),(0,e.jsx)(t.XI.Cell,{children:I.purpose}),(0,e.jsxs)(t.XI.Cell,{children:[I.amount,"\u20AE"]}),(0,e.jsx)(t.XI.Cell,{children:I.source_terminal})]},P)})]})})]})},d=function(h){var m=(0,s.Oc)(),u=m.act,v=m.data,c=v.accounts;return(0,e.jsx)(t.wn,{title:"NanoTrasen Accounts",level:2,children:c.length&&(0,e.jsx)(t.Ki,{children:c.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.owner_name+f.suspended,color:f.suspended?"bad":null,children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return u("view_account_detail",{account_index:f.account_index})},children:"#"+f.account_number})},f.account_index)})})||(0,e.jsx)(t.az,{color:"bad",children:"There are no accounts available."})})}},16980:function(_,j,n){"use strict";n.r(j),n.d(j,{AdminShuttleController:function(){return o},ShuttleList:function(){return g}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(){return(0,e.jsx)(a.p8,{width:600,height:600,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.shuttles,c=u.overmap_ships;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsx)(r.wn,{title:"Classic Shuttles",children:(0,e.jsx)(r.XI,{children:(0,s.Ul)(function(f){return f.name})(v).map(function(f){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return m("adminobserve",{ref:f.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return m("classicmove",{ref:f.ref})},children:"Fly"})}),(0,e.jsx)(r.XI.Cell,{children:f.name}),(0,e.jsx)(r.XI.Cell,{children:f.current_location}),(0,e.jsx)(r.XI.Cell,{children:x(f.status)})]},f.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,s.Ul)(function(f){var p;return((p=f.name)==null?void 0:p.toLowerCase())||f.name||f.ref})(c).map(function(f){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return m("adminobserve",{ref:f.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return m("overmap_control",{ref:f.ref})},children:"Control"})}),(0,e.jsx)(r.XI.Cell,{children:f.name})]},f.ref)})})})]})},x=function(d){switch(d){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},15301:function(_,j,n){"use strict";n.r(j),n.d(j,{AdminTicketPanel:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.id,u=h.title,v=h.name,c=h.state,f=h.opened_at,p=h.closed_at,C=h.opened_at_date,y=h.closed_at_date,O=h.actions,b=h.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Ticket #"+m,buttons:(0,e.jsxs)(t.az,{nowrap:!0,children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("retitle")},children:"Rename Ticket"}),(0,e.jsx)(t.$n,{onClick:function(){return d("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Admin Help Ticket",children:["#",m,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})]}),(0,e.jsx)(t.Ki.Item,{label:"State",children:a[c]}),a[c]===a.open?(0,e.jsxs)(t.Ki.Item,{label:"Opened At",children:[C," (",Math.round(f/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(t.Ki.Item,{label:"Closed At",children:[y," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(t.$n,{onClick:function(){return d("reopen")},children:"Reopen"})]}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}})}),(0,e.jsx)(t.Ki.Item,{label:"Log",children:Object.keys(b).map(function(I,P){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b[I]}},P)})})]})})})})}},14415:function(_,j,n){"use strict";n.r(j),n.d(j,{AgentCard:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.entries,m=d.electronic_warfare;return(0,e.jsx)(r.p8,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Info",children:(0,e.jsx)(t.XI,{children:h.map(function(u){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{onClick:function(){return x(u.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(t.XI.Cell,{children:u.name}),(0,e.jsx)(t.XI.Cell,{children:u.value})]},u.name)})})}),(0,e.jsx)(t.wn,{title:"Electronic Warfare",children:(0,e.jsx)(t.$n.Checkbox,{checked:m,onClick:function(){return x("electronic_warfare")},children:m?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled."})})]})})}},21167:function(_,j,n){"use strict";n.r(j),n.d(j,{AiAirlock:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=a[h.power.main]||a[0],u=a[h.power.backup]||a[0],v=a[h.shock]||a[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main",color:m.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!h.power.main,onClick:function(){return d("disrupt-main")},children:"Disrupt"}),children:[h.power.main?"Online":"Offline"," ",(!h.wires.main_1||!h.wires.main_2)&&"[Wires have been cut!]"||h.power.main_timeleft>0&&"["+h.power.main_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Backup",color:u.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!h.power.backup,onClick:function(){return d("disrupt-backup")},children:"Disrupt"}),children:[h.power.backup?"Online":"Offline"," ",(!h.wires.backup_1||!h.wires.backup_2)&&"[Wires have been cut!]"||h.power.backup_timeleft>0&&"["+h.power.backup_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Electrify",color:v.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"wrench",disabled:!(h.wires.shock&&h.shock===0),onClick:function(){return d("shock-restore")},children:"Restore"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!h.wires.shock,onClick:function(){return d("shock-temp")},children:"Temporary"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!h.wires.shock,onClick:function(){return d("shock-perm")},children:"Permanent"})]}),children:[h.shock===2?"Safe":"Electrified"," ",!h.wires.shock&&"[Wires have been cut!]"||h.shock_timeleft>0&&"["+h.shock_timeleft+"s]"||h.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.jsx)(t.wn,{title:"Access and Door Control",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:h.id_scanner?"power-off":"times",selected:h.id_scanner,disabled:!h.wires.id_scanner,onClick:function(){return d("idscan-toggle")},children:h.id_scanner?"Enabled":"Disabled"}),children:!h.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:h.locked?"lock":"unlock",selected:h.locked,disabled:!h.wires.bolts,onClick:function(){return d("bolt-toggle")},children:h.locked?"Lowered":"Raised"}),children:!h.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:h.lights?"power-off":"times",selected:h.lights,disabled:!h.wires.lights,onClick:function(){return d("light-toggle")},children:h.lights?"Enabled":"Disabled"}),children:!h.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:h.safe?"power-off":"times",selected:h.safe,disabled:!h.wires.safe,onClick:function(){return d("safe-toggle")},children:h.safe?"Enabled":"Disabled"}),children:!h.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:h.speed?"power-off":"times",selected:h.speed,disabled:!h.wires.timing,onClick:function(){return d("speed-toggle")},children:h.speed?"Enabled":"Disabled"}),children:!h.wires.timing&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:h.opened?"sign-out-alt":"sign-in-alt",selected:h.opened,disabled:h.locked||h.welded,onClick:function(){return d("open-close")},children:h.opened?"Open":"Closed"}),children:!!(h.locked||h.welded)&&(0,e.jsxs)("span",{children:["[Door is ",h.locked?"bolted":"",h.locked&&h.welded?" and ":"",h.welded?"welded":"","!]"]})})]})})]})})}},97704:function(_,j,n){"use strict";n.r(j),n.d(j,{AiRestorer:function(){return a},AiRestorerContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.AI_present,u=h.error,v=h.name,c=h.laws,f=h.isDead,p=h.restoring,C=h.health,y=h.ejectable;return(0,e.jsxs)(e.Fragment,{children:[u&&(0,e.jsx)(t.IC,{textAlign:"center",children:u}),!!y&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!m,onClick:function(){return d("PRG_eject")},children:m?v:"----------"}),!!m&&(0,e.jsxs)(t.wn,{title:y?"System Status":v,buttons:(0,e.jsx)(t.az,{inline:!0,bold:!0,color:f?"bad":"good",children:f?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{value:C,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!p&&(0,e.jsx)(t.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",disabled:p,mt:1,onClick:function(){return d("PRG_beginReconstruction")},children:"Begin Reconstruction"}),(0,e.jsx)(t.wn,{title:"Laws",level:2,children:c.map(function(O){return(0,e.jsx)(t.az,{className:"candystripe",children:O},O)})})]})]})}},5604:function(_,j,n){"use strict";n.r(j),n.d(j,{AiSupermatter:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(9129),o=function(d){var h=(0,s.Oc)().data,m=h.integrity_percentage,u=h.ambient_temp,v=h.ambient_pressure,c=h.detonating,f=(0,e.jsx)(x,{});return c&&(f=(0,e.jsx)(g,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:f})})},g=function(d){return(0,e.jsx)(a.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(t.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(t.az,{color:"bad",children:"Evacuate area immediately"})]})})},x=function(d){var h=(0,s.Oc)().data,m=h.integrity_percentage,u=h.ambient_temp,v=h.ambient_pressure;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(t.z2,{value:m,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(t.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(t.z2,{value:u,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[u," K"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Environment Pressure",children:[v," kPa"]})]})})}},13373:function(_,j,n){"use strict";n.r(j),n.d(j,{AirAlarm:function(){return h}});var e=n(20462),s=n(4089),t=n(61358),r=n(7081),a=n(16754),o=n(79500),g=n(2738),x=n(3680),d=n(27805),h=function(b){var I=function(F){K(F)},P=(0,r.Oc)(),S=P.act,M=P.data,A=(0,t.useState)(""),R=A[0],K=A[1],N=M.locked&&!M.siliconUser&&!M.remoteUser;return(0,e.jsx)(g.p8,{width:440,height:650,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsx)(d.InterfaceLockNoticeBox,{}),(0,e.jsx)(m,{}),(0,e.jsx)(u,{}),!N&&(0,e.jsx)(c,{screen:R,onScreen:I})]})})},m=function(b){var I=(0,r.Oc)().data,P=(I.environment_data||[]).filter(function(A){return A.value>=.01}),S={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},M=S[I.danger_level]||S[0];return(0,e.jsx)(a.wn,{title:"Air Status",children:(0,e.jsxs)(a.Ki,{children:[P.length>0&&(0,e.jsxs)(e.Fragment,{children:[P.map(function(A){var R=S[A.danger_level]||S[0];return(0,e.jsxs)(a.Ki.Item,{label:(0,o.wM)(A.name),color:R.color,children:[(0,s.Mg)(A.value,2),A.unit]},A.name)}),(0,e.jsx)(a.Ki.Item,{label:"Local status",color:M.color,children:M.localStatusText}),(0,e.jsx)(a.Ki.Item,{label:"Area status",color:I.atmos_alarm||I.fire_alarm?"bad":"good",children:I.atmos_alarm&&"Atmosphere Alarm"||I.fire_alarm&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(a.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!I.emagged&&(0,e.jsx)(a.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},u=function(b){var I=(0,r.Oc)(),P=I.act,S=I.data,M=S.target_temperature,A=S.rcon;return(0,e.jsx)(a.wn,{title:"Comfort Settings",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(a.$n,{selected:A===1,onClick:function(){return P("rcon",{rcon:1})},children:"Off"}),(0,e.jsx)(a.$n,{selected:A===2,onClick:function(){return P("rcon",{rcon:2})},children:"Auto"}),(0,e.jsx)(a.$n,{selected:A===3,onClick:function(){return P("rcon",{rcon:3})},children:"On"})]}),(0,e.jsx)(a.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(a.$n,{onClick:function(){return P("temperature")},children:M})})]})})},v={home:{title:"Air Controls",component:function(){return f}},vents:{title:"Vent Controls",component:function(){return p}},scrubbers:{title:"Scrubber Controls",component:function(){return C}},modes:{title:"Operating Mode",component:function(){return y}},thresholds:{title:"Alarm Thresholds",component:function(){return O}}},c=function(b){var I=v[b.screen]||v.home,P=I.component();return(0,e.jsx)(a.wn,{title:I.title,buttons:b.screen&&(0,e.jsx)(a.$n,{icon:"arrow-left",onClick:function(){return b.onScreen()},children:"Back"}),children:(0,e.jsx)(P,{onScreen:b.onScreen})})},f=function(b){var I=(0,r.Oc)(),P=I.act,S=I.data,M=S.mode,A=S.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:A?"exclamation-triangle":"exclamation",color:A&&"caution",onClick:function(){return P(A?"reset":"alarm")},children:"Area Atmosphere Alarm"}),(0,e.jsx)(a.az,{mt:1}),(0,e.jsx)(a.$n,{icon:M===3?"exclamation-triangle":"exclamation",color:M===3&&"danger",onClick:function(){return P("mode",{mode:M===3?1:3})},children:"Panic Siphon"}),(0,e.jsx)(a.az,{mt:2}),(0,e.jsx)(a.$n,{icon:"sign-out-alt",onClick:function(){return b.onScreen("vents")},children:"Vent Controls"}),(0,e.jsx)(a.az,{mt:1}),(0,e.jsx)(a.$n,{icon:"filter",onClick:function(){return b.onScreen("scrubbers")},children:"Scrubber Controls"}),(0,e.jsx)(a.az,{mt:1}),(0,e.jsx)(a.$n,{icon:"cog",onClick:function(){return b.onScreen("modes")},children:"Operating Mode"}),(0,e.jsx)(a.az,{mt:1}),(0,e.jsx)(a.$n,{icon:"chart-bar",onClick:function(){return b.onScreen("thresholds")},children:"Alarm Thresholds"})]})},p=function(b){var I=(0,r.Oc)().data,P=I.vents;return!P||P.length===0?"Nothing to show":P.map(function(S){return(0,e.jsx)(x.Vent,{vent:S},S.id_tag)})},C=function(b){var I=(0,r.Oc)().data,P=I.scrubbers;return!P||P.length===0?"Nothing to show":P.map(function(S){return(0,e.jsx)(x.Scrubber,{scrubber:S},S.id_tag)})},y=function(b){var I=(0,r.Oc)(),P=I.act,S=I.data,M=S.modes;return!M||M.length===0?"Nothing to show":M.map(function(A){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(a.$n,{icon:A.selected?"check-square-o":"square-o",selected:A.selected,color:A.selected&&A.danger&&"danger",onClick:function(){return P("mode",{mode:A.mode})},children:A.name}),(0,e.jsx)(a.az,{mt:1})]},A.mode)})},O=function(b){var I=(0,r.Oc)(),P=I.act,S=I.data,M=S.thresholds;return(0,e.jsxs)("table",{className:"LabeledList",style:{width:"100%"},children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{}),(0,e.jsx)("td",{className:"color-bad",children:"min2"}),(0,e.jsx)("td",{className:"color-average",children:"min1"}),(0,e.jsx)("td",{className:"color-average",children:"max1"}),(0,e.jsx)("td",{className:"color-bad",children:"max2"})]})}),(0,e.jsx)("tbody",{children:M.map(function(A){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,o.b_)(A.name),children:(0,o.wM)(A.name)})}),A.settings.map(function(R){return(0,e.jsx)("td",{children:(0,e.jsx)(a.$n,{onClick:function(){return P("threshold",{env:R.env,var:R.val})},children:(0,s.Mg)(R.selected,2)})},R.val)})]},A.name)})})]})}},51225:function(_,j,n){"use strict";n.r(j),n.d(j,{AlertModal:function(){return h}});var e=n(20462),s=n(61358),t=n(6544),r=n(7081),a=n(16754),o=n(2738),g=n(44149),x=-1,d=1,h=function(v){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.autofocus,y=p.buttons,O=y===void 0?[]:y,b=p.large_buttons,I=p.message,P=I===void 0?"":I,S=p.timeout,M=p.title,A=(0,s.useState)(0),R=A[0],K=A[1],N=115+(P.length>30?Math.ceil(P.length/4):0)+(P.length&&b?5:0),k=325+(O.length>2?55:0),F=function(W){R===0&&W===x?K(O.length-1):R===O.length-1&&W===d?K(0):K(R+W)};return(0,e.jsxs)(o.p8,{height:N,title:M,width:k,children:[!!S&&(0,e.jsx)(g.Loader,{value:S}),(0,e.jsx)(o.p8.Content,{onKeyDown:function(W){var J=window.event?W.which:W.keyCode;J===t.iy||J===t.Ri?f("choose",{choice:O[R]}):J===t.s6?f("cancel"):J===t.iU?(W.preventDefault(),F(x)):(J===t.aW||J===t.zh)&&(W.preventDefault(),F(d))},children:(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(a.az,{color:"label",overflow:"hidden",children:P})}),(0,e.jsxs)(a.BJ.Item,{children:[!!C&&(0,e.jsx)(a.y5,{}),(0,e.jsx)(m,{selected:R})]})]})})})]})},m=function(v){var c=(0,r.Oc)().data,f=c.buttons,p=f===void 0?[]:f,C=c.large_buttons,y=c.swapped_buttons,O=v.selected;return(0,e.jsx)(a.so,{align:"center",direction:y?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:p==null?void 0:p.map(function(b,I){return C&&p.length<3?(0,e.jsx)(a.so.Item,{grow:!0,children:(0,e.jsx)(u,{button:b,id:I.toString(),selected:O===I})},I):(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(u,{button:b,id:I.toString(),selected:O===I})},I)})})},u=function(v){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.large_buttons,y=v.button,O=v.selected,b=y.length>7?y.length:7;return(0,e.jsx)(a.$n,{fluid:!!C,height:!!C&&2,onClick:function(){return f("choose",{choice:y})},m:.5,pl:2,pr:2,pt:C?.33:0,selected:O,textAlign:"center",width:!C&&b,children:C?y.toUpperCase():y})}},16944:function(_,j,n){"use strict";n.r(j),n.d(j,{AlgaeFarm:function(){return o}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),d=x.act,h=x.data,m=h.usePower,u=h.materials,v=h.last_flow_rate,c=h.last_power_draw,f=h.inputDir,p=h.outputDir,C=h.input,y=h.output,O=h.errorText;return(0,e.jsx)(a.p8,{width:500,height:300,children:(0,e.jsxs)(a.p8.Content,{children:[O&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:O})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:m===2,onClick:function(){return d("toggle")},children:"Processing"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[v," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[c," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),u.map(function(b){return(0,e.jsxs)(r.Ki.Item,{label:(0,s.ZH)(b.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:b.qty,maxValue:b.max,children:[b.qty,"/",b.max]}),(0,e.jsx)(r.$n,{ml:1,onClick:function(){return d("ejectMaterial",{mat:b.name})},children:"Eject"})]},b.name)})]}),(0,e.jsx)(r.XI,{mt:1,children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Input ("+f+")",children:C?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:C.name,children:[C.percent,"% (",C.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Output ("+p+")",children:y?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[y.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:y.name,children:[y.percent,"% (",y.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},46772:function(_,j,n){"use strict";n.r(j),n.d(j,{AppearanceChanger:function(){return x}});var e=n(20462),s=n(7402),t=n(61282),r=n(61358),a=n(7081),o=n(16754),g=n(2738),x=function(y){var O=(0,a.Oc)(),b=O.act,I=O.config,P=O.data,S=P.name,M=P.specimen,A=P.gender,R=P.gender_id,K=P.hair_style,N=P.facial_hair_style,k=P.ear_style,F=P.tail_style,W=P.wing_style,J=P.markings,X=P.change_race,Q=P.change_gender,Z=P.change_eye_color,G=P.change_skin_tone,H=P.change_skin_color,V=P.change_hair_color,q=P.change_facial_hair_color,ie=P.change_hair,te=P.change_facial_hair,ue=P.mapRef,ce=I.title,me=Z||G||H||V||q,xe=-1;X?xe=0:Q?xe=1:me?xe=2:ie?xe=4:te&&(xe=5);var ve=(0,r.useState)(xe),je=ve[0],we=ve[1];return(0,e.jsx)(g.p8,{width:700,height:650,title:(0,t.jT)(ce),children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Reflection",children:(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{grow:1,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Name",children:S}),(0,e.jsx)(o.Ki.Item,{label:"Species",color:X?null:"grey",children:M}),(0,e.jsx)(o.Ki.Item,{label:"Biological Sex",color:Q?null:"grey",children:A?(0,t.ZH)(A):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Gender Identity",color:me?null:"grey",children:R?(0,t.ZH)(R):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Hair Style",color:ie?null:"grey",children:K?(0,t.ZH)(K):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Facial Hair Style",color:te?null:"grey",children:N?(0,t.ZH)(N):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Ear Style",color:ie?null:"grey",children:k?(0,t.ZH)(k):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Tail Style",color:ie?null:"grey",children:F?(0,t.ZH)(F):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Wing Style",color:ie?null:"grey",children:W?(0,t.ZH)(W):"Not Set"})]})}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.D1,{style:{width:"256px",height:"256px"},params:{id:ue,type:"map"}})})]})}),(0,e.jsxs)(o.tU,{children:[X?(0,e.jsx)(o.tU.Tab,{selected:je===0,onClick:function(){return we(0)},children:"Race"}):null,Q?(0,e.jsx)(o.tU.Tab,{selected:je===1,onClick:function(){return we(1)},children:"Gender & Sex"}):null,me?(0,e.jsx)(o.tU.Tab,{selected:je===2,onClick:function(){return we(2)},children:"Colors"}):null,ie?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.tU.Tab,{selected:je===3,onClick:function(){return we(3)},children:"Hair"}),(0,e.jsx)(o.tU.Tab,{selected:je===5,onClick:function(){return we(5)},children:"Ear"}),(0,e.jsx)(o.tU.Tab,{selected:je===6,onClick:function(){return we(6)},children:"Tail"}),(0,e.jsx)(o.tU.Tab,{selected:je===7,onClick:function(){return we(7)},children:"Wing"}),(0,e.jsx)(o.tU.Tab,{selected:je===8,onClick:function(){return we(8)},children:"Markings"})]}):null,te?(0,e.jsx)(o.tU.Tab,{selected:je===4,onClick:function(){return we(4)},children:"Facial Hair"}):null]}),(0,e.jsxs)(o.az,{height:"43%",children:[X&&je===0?(0,e.jsx)(d,{}):null,Q&&je===1?(0,e.jsx)(h,{}):null,me&&je===2?(0,e.jsx)(m,{}):null,ie&&je===3?(0,e.jsx)(u,{}):null,te&&je===4?(0,e.jsx)(v,{}):null,ie&&je===5?(0,e.jsx)(c,{}):null,ie&&je===6?(0,e.jsx)(f,{}):null,ie&&je===7?(0,e.jsx)(p,{}):null,ie&&je===8?(0,e.jsx)(C,{}):null]})]})})},d=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.species,S=I.specimen,M=(0,s.Ul)(function(A){return A.specimen})(P||[]);return(0,e.jsx)(o.wn,{title:"Species",fill:!0,scrollable:!0,children:M.map(function(A){return(0,e.jsx)(o.$n,{selected:S===A.specimen,onClick:function(){return b("race",{race:A.specimen})},children:A.specimen},A.specimen)})})},h=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.gender,S=I.gender_id,M=I.genders,A=I.id_genders;return(0,e.jsx)(o.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Biological Sex",children:M.map(function(R){return(0,e.jsx)(o.$n,{selected:R.gender_key===P,onClick:function(){return b("gender",{gender:R.gender_key})},children:R.gender_name},R.gender_key)})}),(0,e.jsx)(o.Ki.Item,{label:"Gender Identity",children:A.map(function(R){return(0,e.jsx)(o.$n,{selected:R.gender_key===S,onClick:function(){return b("gender_id",{gender_id:R.gender_key})},children:R.gender_name},R.gender_key)})})]})})},m=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.change_eye_color,S=I.change_skin_tone,M=I.change_skin_color,A=I.change_hair_color,R=I.change_facial_hair_color,K=I.eye_color,N=I.skin_color,k=I.hair_color,F=I.facial_hair_color,W=I.ears_color,J=I.ears2_color,X=I.tail_color,Q=I.tail2_color,Z=I.wing_color,G=I.wing2_color;return(0,e.jsxs)(o.wn,{title:"Colors",fill:!0,scrollable:!0,children:[P?(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:K,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("eye_color")},children:"Change Eye Color"})]}):null,S?(0,e.jsx)(o.az,{children:(0,e.jsx)(o.$n,{onClick:function(){return b("skin_tone")},children:"Change Skin Tone"})}):null,M?(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:N,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("skin_color")},children:"Change Skin Color"})]}):null,A?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:k,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("hair_color")},children:"Change Hair Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:W,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("ears_color")},children:"Change Ears Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:J,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("ears2_color")},children:"Change Secondary Ears Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:X,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("tail_color")},children:"Change Tail Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:Q,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("tail2_color")},children:"Change Secondary Tail Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:Z,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("wing_color")},children:"Change Wing Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:G,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("wing2_color")},children:"Change Secondary Wing Color"})]})]}):null,R?(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:F,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("facial_hair_color")},children:"Change Facial Hair Color"})]}):null]})},u=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.hair_style,S=I.hair_styles;return(0,e.jsx)(o.wn,{title:"Hair",fill:!0,scrollable:!0,children:S.map(function(M){return(0,e.jsx)(o.$n,{onClick:function(){return b("hair",{hair:M.hairstyle})},selected:M.hairstyle===P,children:M.hairstyle},M.hairstyle)})})},v=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.facial_hair_style,S=I.facial_hair_styles;return(0,e.jsx)(o.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:S.map(function(M){return(0,e.jsx)(o.$n,{onClick:function(){return b("facial_hair",{facial_hair:M.facialhairstyle})},selected:M.facialhairstyle===P,children:M.facialhairstyle},M.facialhairstyle)})})},c=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.ear_style,S=I.ear_styles;return(0,e.jsxs)(o.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(o.$n,{onClick:function(){return b("ear",{clear:!0})},selected:P===null,children:"-- Not Set --"}),(0,s.Ul)(function(M){return M.name.toLowerCase()})(S).map(function(M){return(0,e.jsx)(o.$n,{onClick:function(){return b("ear",{ref:M.instance})},selected:M.name===P,children:M.name},M.instance)})]})},f=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.tail_style,S=I.tail_styles;return(0,e.jsxs)(o.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(o.$n,{onClick:function(){return b("tail",{clear:!0})},selected:P===null,children:"-- Not Set --"}),(0,s.Ul)(function(M){return M.name.toLowerCase()})(S).map(function(M){return(0,e.jsx)(o.$n,{onClick:function(){return b("tail",{ref:M.instance})},selected:M.name===P,children:M.name},M.instance)})]})},p=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.wing_style,S=I.wing_styles;return(0,e.jsxs)(o.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(o.$n,{onClick:function(){return b("wing",{clear:!0})},selected:P===null,children:"-- Not Set --"}),(0,s.Ul)(function(M){return M.name.toLowerCase()})(S).map(function(M){return(0,e.jsx)(o.$n,{onClick:function(){return b("wing",{ref:M.instance})},selected:M.name===P,children:M.name},M.instance)})]})},C=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.markings;return(0,e.jsxs)(o.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(o.az,{children:(0,e.jsx)(o.$n,{onClick:function(){return b("marking",{todo:1,name:"na"})},children:"Add Marking"})}),(0,e.jsx)(o.Ki,{children:P.map(function(S){return(0,e.jsxs)(o.Ki.Item,{label:S.marking_name,children:[(0,e.jsx)(o.BK,{color:S.marking_color,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("marking",{todo:4,name:S.marking_name})},children:"Change Color"}),(0,e.jsx)(o.$n,{onClick:function(){return b("marking",{todo:0,name:S.marking_name})},children:"-"}),(0,e.jsx)(o.$n,{onClick:function(){return b("marking",{todo:3,name:S.marking_name})},children:"Move down"}),(0,e.jsx)(o.$n,{onClick:function(){return b("marking",{todo:2,name:S.marking_name})},children:"Move up"})]},S.marking_name)})})]})}},59404:function(_,j,n){"use strict";n.r(j),n.d(j,{ArcadeBattle:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.name,m=d.temp,u=d.enemyAction,v=d.enemyName,c=d.playerHP,f=d.playerMP,p=d.enemyHP,C=d.enemyMP,y=d.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:v,textAlign:"center",children:[(0,e.jsxs)(t.wn,{color:"label",children:[(0,e.jsx)(t.az,{children:m}),(0,e.jsx)(t.az,{children:!y&&u})]}),(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(t.z2,{value:c,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[c,"HP"]})}),(0,e.jsx)(t.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(t.z2,{value:f,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[f,"MP"]})})]})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(t.z2,{value:p,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[p,"HP"]})})})})]}),y&&(0,e.jsx)(t.$n,{fluid:!0,mt:1,color:"green",onClick:function(){return x("newgame")},children:"New Game"})||(0,e.jsxs)(t.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return x("attack")},children:"Attack!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return x("heal")},children:"Heal!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return x("charge")},children:"Recharge!"})})]})]})})})}},82106:function(_,j,n){"use strict";n.r(j),n.d(j,{AreaScrubberControl:function(){return g}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=function(d){var h=(0,r.Oc)(),m=h.act,u=h.data,v=(0,t.useState)(!1),c=v[0],f=v[1],p=u.scrubbers;return p?(0,e.jsx)(o.p8,{width:600,height:400,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsxs)(a.wn,{children:[(0,e.jsxs)(a.so,{wrap:"wrap",children:[(0,e.jsx)(a.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,icon:"search",onClick:function(){return m("scan")},children:"Scan"})}),(0,e.jsx)(a.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,icon:"layer-group",selected:c,onClick:function(){return f(!c)},children:"Show Areas"})}),(0,e.jsx)(a.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",onClick:function(){return m("allon")},children:"All On"})}),(0,e.jsx)(a.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",onClick:function(){return m("alloff")},children:"All Off"})})]}),(0,e.jsx)(a.so,{wrap:"wrap",children:p.map(function(C){return(0,e.jsx)(a.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(x,{scrubber:C,showArea:c})},C.id)})})]})})}):(0,e.jsxs)(a.wn,{title:"Error",children:[(0,e.jsx)(a.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(a.$n,{fluid:!0,icon:"search",onClick:function(){return m("scan")},children:"Scan"})]})},x=function(d){var h=(0,r.Oc)().act,m=d.scrubber,u=d.showArea;return(0,e.jsxs)(a.wn,{title:m.name,children:[(0,e.jsx)(a.$n,{fluid:!0,icon:"power-off",selected:m.on,onClick:function(){return h("toggle",{id:m.id})},children:m.on?"Enabled":"Disabled"}),(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"Pressure",children:[m.pressure," kPa"]}),(0,e.jsxs)(a.Ki.Item,{label:"Flow Rate",children:[m.flow_rate," L/s"]}),(0,e.jsxs)(a.Ki.Item,{label:"Load",children:[m.load," W"]}),u&&(0,e.jsx)(a.Ki.Item,{label:"Area",children:(0,s.Sn)(m.area)})]})]})}},29615:function(_,j,n){"use strict";n.r(j),n.d(j,{AssemblyInfrared:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.on,m=d.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Infrared Unit",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Laser",children:(0,e.jsx)(t.$n,{icon:"power-off",fluid:!0,selected:h,onClick:function(){return x("state")},children:h?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Visibility",children:(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,selected:m,onClick:function(){return x("visible")},children:m?"Able to be seen":"Invisible"})})]})})})})}},52817:function(_,j,n){"use strict";n.r(j),n.d(j,{AssemblyProx:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(x){var d=(0,t.Oc)(),h=d.act,m=d.data,u=m.timing,v=m.time,c=m.range,f=m.maxRange,p=m.scanning;return(0,e.jsx)(o.p8,{children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:u,onClick:function(){return h("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:v/10,minValue:0,maxValue:600,format:function(C){return(0,a.fU)((0,s.LI)(C))},onDrag:function(C,y){return h("set_time",{time:y})}})})})}),(0,e.jsx)(r.wn,{title:"Prox Unit",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Range",children:(0,e.jsx)(r.Q7,{minValue:1,value:c,maxValue:f,onDrag:function(C,y){return h("range",{range:y})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:p?"lock":"lock-open",selected:p,onClick:function(){return h("scanning")},children:p?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},16739:function(_,j,n){"use strict";n.r(j),n.d(j,{AssemblyTimer:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(x){var d=(0,t.Oc)(),h=d.act,m=d.data,u=m.timing,v=m.time;return(0,e.jsx)(o.p8,{children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:u,onClick:function(){return h("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:v/10,minValue:0,maxValue:600,format:function(c){return(0,a.fU)((0,s.LI)(c))},onDrag:function(c,f){return h("set_time",{time:f})}})})})})})})}},52883:function(_,j,n){"use strict";n.r(j),n.d(j,{AtmosAlertConsole:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.priority_alarms||[],m=d.minor_alarms||[];return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[h.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),h.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"bad",onClick:function(){return x("clear",{ref:u.ref})},children:u.name})},u.name)}),m.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),m.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"average",onClick:function(){return x("clear",{ref:u.ref})},children:u.name})},u.name)})]})})})})}},16947:function(_,j,n){"use strict";n.r(j),n.d(j,{AtmosControl:function(){return d},AtmosControlContent:function(){return h}});var e=n(20462),s=n(7402),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=n(92736),x=(0,g.h)("fuck"),d=function(m){return(0,e.jsx)(o.p8,{width:600,height:440,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(h,{})})})},h=function(m){var u=(0,r.Oc)(),v=u.act,c=u.data,f=u.config,p=(0,s.Ul)(function(M){return M.name})(c.alarms||[]),C=(0,t.useState)(0),y=C[0],O=C[1],b=(0,t.useState)(1),I=b[0],P=b[1],S;return y===0?S=(0,e.jsx)(a.wn,{title:"Alarms",children:p.map(function(M){return(0,e.jsx)(a.$n,{color:M.danger===2?"bad":M.danger===1?"average":"",onClick:function(){return v("alarm",{alarm:M.ref})},children:M.name},M.name)})}):y===1&&(S=(0,e.jsx)(a.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(a.tx,{zoomScale:c.zoomScale,onZoom:function(M){return P(M)},children:p.filter(function(M){return~~M.z===~~f.mapZLevel}).map(function(M){return(0,e.jsx)(a.tx.Marker,{x:M.x,y:M.y,zoom:I,icon:"bell",tooltip:M.name,color:M.danger?"red":"green",onClick:function(){return v("alarm",{alarm:M.ref})}},M.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:y===0,onClick:function(){return O(0)},children:[(0,e.jsx)(a.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(a.tU.Tab,{selected:y===1,onClick:function(){return O(1)},children:[(0,e.jsx)(a.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(a.az,{m:2,children:S})]})}},49220:function(_,j,n){"use strict";n.r(j),n.d(j,{AtmosFilter:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.filter_types||[];return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:d.on?"power-off":"times",selected:d.on,onClick:function(){return x("power")},children:d.on?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(t.az,{inline:!0,mr:1,children:(0,e.jsx)(t.zv,{value:d.last_flow_rate,format:function(m){return m+" L/s"}})}),(0,e.jsx)(t.Q7,{animated:!0,value:parseFloat(d.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(m,u){return x("rate",{rate:u})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:d.rate===d.max_rate,onClick:function(){return x("rate",{rate:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Item,{label:"Filter",children:h.map(function(m){return(0,e.jsx)(t.$n,{selected:m.selected,onClick:function(){return x("filter",{filterset:m.f_type})},children:m.name},m.name)})})]})})})})}},19575:function(_,j,n){"use strict";n.r(j),n.d(j,{AtmosMixer:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:d.on?"power-off":"times",selected:d.on,onClick:function(){return x("power")},children:d.on?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.Q7,{animated:!0,value:parseFloat(d.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:d.max_pressure,step:10,onChange:function(h,m){return x("pressure",{pressure:m})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:d.set_pressure===d.max_pressure,onClick:function(){return x("pressure",{pressure:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Divider,{size:1}),(0,e.jsx)(t.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(t.Ki.Item,{label:"Node 1 ("+d.node1_dir+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:d.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(h,m){return x("node1",{concentration:m})}})}),(0,e.jsx)(t.Ki.Item,{label:"Node 2 ("+d.node2_dir+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:d.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(h,m){return x("node2",{concentration:m})}})})]})})})})}},63333:function(_,j,n){"use strict";n.r(j),n.d(j,{Autolathe:function(){return c}});var e=n(20462),s=n(7402),t=n(22071),r=n(61282),a=n(7081),o=n(16754),g=n(2738),x=n(23162);function d(f,p){(p==null||p>f.length)&&(p=f.length);for(var C=0,y=new Array(p);C=f.length?{done:!0}:{done:!1,value:f[y++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var v=function(f,p,C){var y=function(){var S=I.value,M=p.find(function(A){return A.name===S});if(!M)return"continue";if(M.amount=0)&&(C[O]=f[O]);return C}var d={Alphabetical:function(f,p){return f.name>p.name},"By availability":function(f,p){return-(f.affordable-p.affordable)},"By price":function(f,p){return f.price-p.price}},h=function(f){var p=function(J){M(J)},C=function(J){K(J)},y=function(J){F(J)},O=(0,r.Oc)(),b=O.act,I=O.data,P=(0,t.useState)(""),S=P[0],M=P[1],A=(0,t.useState)("Alphabetical"),R=A[0],K=A[1],N=(0,t.useState)(!1),k=N[0],F=N[1];return(0,e.jsx)(o.p8,{width:400,height:450,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:I.processing&&(0,e.jsx)(a.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.wn,{children:[I.points," points available.",(0,e.jsx)(a.$n,{ml:1,icon:"blender",onClick:function(){return b("activate")},children:"Activate"}),(0,e.jsx)(a.$n,{ml:1,icon:"eject",disabled:!I.beaker,onClick:function(){return b("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(u,{searchText:S,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:y}),(0,e.jsx)(m,{searchText:S,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:y})]})})})},m=function(f){var p=(0,r.Oc)(),C=p.act,y=p.data,O=y.points,b=y.items,I=(0,s.XZ)(f.searchText,function(M){return M[0]}),P=!1,S=Object.entries(b).map(function(M,A){var R=Object.entries(M[1]).filter(I).map(function(K){return K[1].affordable=O>=K[1].price/y.build_eff,K[1]}).sort(d[f.sortOrder]);if(R.length!==0)return f.descending&&(R=R.reverse()),P=!0,(0,e.jsx)(c,{title:M[0],items:R},M[0])});return(0,e.jsx)(a.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(a.wn,{children:P?S:(0,e.jsx)(a.az,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(f){return(0,e.jsx)(a.az,{mb:"0.5rem",children:(0,e.jsxs)(a.so,{width:"100%",children:[(0,e.jsx)(a.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(a.pd,{placeholder:"Search by item name..",value:f.searchText,width:"100%",onInput:function(p,C){return f.onSearchText(C)}})}),(0,e.jsx)(a.so.Item,{basis:"30%",children:(0,e.jsx)(a.ms,{selected:f.sortOrder,options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(p){return f.onSortOrder(p)}})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{icon:f.descending?"arrow-down":"arrow-up",height:"19px",tooltip:f.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return f.onDescending(!f.descending)}})})]})})},v=function(f,p){return!(!f.affordable||f.reagent&&!p.beaker)},c=function(f){var p=(0,r.Oc)(),C=p.act,y=p.data,O=f.title,b=f.items,I=x(f,["title","items"]);return(0,e.jsx)(a.Nt,g({open:!0,title:O},I,{children:b.map(function(P){return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:P.name}),(0,e.jsx)(a.$n,{disabled:!v(P,y),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:O,name:P.name})},children:(P.price/y.build_eff).toLocaleString("en-US")}),(0,e.jsx)(a.az,{style:{clear:"both"}})]},P.name)})}))}},73221:function(_,j,n){"use strict";n.r(j),n.d(j,{BodyDesigner:function(){return o}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(v){var c=(0,t.Oc)(),f=c.act,p=c.data,C=p.menu,y=p.disk,O=p.diskStored,b=p.activeBodyRecord,I=u[C];return(0,e.jsx)(a.p8,{width:400,height:650,children:(0,e.jsxs)(a.p8.Content,{children:[y?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return f("savetodisk")},disabled:!b,children:"Save To Disk"}),(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return f("loadfromdisk")},disabled:!O,children:"Load From Disk"}),(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("ejectdisk")},children:"Eject"})]}):null,I]})})},g=function(v){var c=(0,t.Oc)(),f=c.act,p=c.data;return(0,e.jsxs)(r.wn,{title:"Database Functions",children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("menu",{menu:"Body Records"})},children:"View Individual Body Records"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("menu",{menu:"Stock Records"})},children:"View Stock Body Records"})]})},x=function(v){var c=(0,t.Oc)(),f=c.act,p=c.data,C=p.bodyrecords;return(0,e.jsx)(r.wn,{title:"Body Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return f("menu",{menu:"Main"})},children:"Back"}),children:C?C.map(function(y){return(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("view_brec",{view_brec:y.recref})},children:y.name},y.name)}):""})},d=function(v){var c=(0,t.Oc)(),f=c.act,p=c.data,C=p.stock_bodyrecords;return(0,e.jsx)(r.wn,{title:"Stock Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return f("menu",{menu:"Main"})},children:"Back"}),children:C.map(function(y){return(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("view_stock_brec",{view_stock_brec:y})},children:y},y)})})},h=function(v){var c=(0,t.Oc)(),f=c.act,p=c.data,C=p.activeBodyRecord,y=p.mapRef;return C?(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{basis:"165px",children:(0,e.jsx)(r.wn,{title:"Specific Record",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return f("menu",{menu:"Main"})},children:"Back"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:C.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:C.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return f("href_conversion",{target_href:"bio_gender",target_value:1})},children:(0,s.ZH)(C.gender)})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:C.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[C.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",disabled:!C.booc,onClick:function(){return f("boocnotes")},children:"View OOC Notes"})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:y,type:"map"}})}),(0,e.jsx)(r.so.Item,{basis:"300px",children:(0,e.jsx)(r.wn,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scale",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return f("href_conversion",{target_href:"size_multiplier",target_value:1})},children:C.scale})}),Object.keys(C.styles).map(function(O){var b=C.styles[O];return(0,e.jsxs)(r.Ki.Item,{label:O,children:[b.styleHref?(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return f("href_conversion",{target_href:b.styleHref,target_value:1})},children:b.style}):null,b.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return f("href_conversion",{target_href:b.colorHref,target_value:1})},children:b.color}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:b.color,style:{border:"1px solid #fff"}})]}):null,b.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return f("href_conversion",{target_href:b.colorHref2,target_value:1})},children:b.color2}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:b.color2,style:{border:"1px solid #fff"}})]}):null]},O)}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return f("href_conversion",{target_href:"marking_style",target_value:1})},children:"Add Marking"}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(C.markings).map(function(O){var b=C.markings[O];return(0,e.jsx)(r.so.Item,{basis:"100%",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return f("href_conversion",{target_href:"marking_remove",target_value:O})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:b,onClick:function(){return f("href_conversion",{target_href:"marking_color",target_value:O})},children:O})})]})},O)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})},m=function(v){var c=(0,t.Oc)(),f=c.act,p=c.data,C=p.activeBodyRecord;return(0,e.jsx)(r.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return f("menu",{menu:"Specific Record"})},children:"Back"}),style:{"word-break":"break-all"},children:C&&C.booc||"ERROR: Body record not found!"})},u={Main:(0,e.jsx)(g,{}),"Body Records":(0,e.jsx)(x,{}),"Stock Records":(0,e.jsx)(d,{}),"Specific Record":(0,e.jsx)(h,{}),"OOC Notes":(0,e.jsx)(m,{})}},27590:function(_,j,n){"use strict";n.r(j),n.d(j,{BodyScanner:function(){return v}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["hasBorer","bad",function(S){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(S){return"Viral pathogen detected in blood stream."}],["blind","average",function(S){return"Cataracts detected."}],["colourblind","average",function(S){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(S){return"Retinal misalignment detected."}],["humanPrey","average",function(S){return"Foreign Humanoid(s) detected: "+S.humanPrey}],["livingPrey","average",function(S){return"Foreign Creature(s) detected: "+S.livingPrey}],["objectPrey","average",function(S){return"Foreign Object(s) detected: "+S.objectPrey}]],x=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],d={average:[.25,.5],bad:[.5,1/0]},h=function(S,M){for(var A=[],R=0;R0?S.reduce(function(M,A){return M===null?A:(0,e.jsxs)(e.Fragment,{children:[M,!!A&&(0,e.jsx)(r.az,{children:A})]})}):null},u=function(S){if(S>100){if(S<300)return"mild infection";if(S<400)return"mild infection+";if(S<500)return"mild infection++";if(S<700)return"acute infection";if(S<800)return"acute infection+";if(S<900)return"acute infection++";if(S>=900)return"septic"}return""},v=function(S){var M=(0,t.Oc)().data,A=M.occupied,R=M.occupant,K=R===void 0?{}:R,N=A?(0,e.jsx)(c,{occupant:K}):(0,e.jsx)(P,{});return(0,e.jsx)(a.p8,{width:690,height:600,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:N})})},c=function(S){var M=S.occupant;return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(f,{occupant:M}),(0,e.jsx)(p,{occupant:M}),(0,e.jsx)(C,{occupant:M}),(0,e.jsx)(y,{occupant:M}),(0,e.jsx)(b,{organs:M.extOrgan}),(0,e.jsx)(I,{organs:M.intOrgan})]})},f=function(S){var M=(0,t.Oc)(),A=M.act,R=M.data,K=R.occupant;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return A("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return A("print_p")},children:"Print Report"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:o[K.stat][0],children:o[K.stat][1]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(r.zv,{value:(0,s.LI)(K.bodyTempC,0)}),"\xB0C,\xA0",(0,e.jsx)(r.zv,{value:(0,s.LI)(K.bodyTempF,0)}),"\xB0F"]}),(0,e.jsxs)(r.Ki.Item,{label:"Blood Volume",children:[(0,e.jsx)(r.zv,{value:(0,s.LI)(K.blood.volume,0)})," ","units\xA0(",(0,e.jsx)(r.zv,{value:(0,s.LI)(K.blood.percent,0)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Weight",children:(0,s.LI)(R.occupant.weight)+"lbs, "+(0,s.LI)(R.occupant.weight/2.20463)+"kgs"})]})})},p=function(S){var M=S.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Blood Reagents",children:M.reagents?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),M.reagents.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(r.wn,{title:"Stomach Reagents",children:M.ingested?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),M.ingested.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Stomach Reagents Detected"})})]})},C=function(S){var M=S.occupant,A=M.hasBorer||M.blind||M.colourblind||M.nearsighted||M.hasVirus;return A=A||M.humanPrey||M.livingPrey||M.objectPrey,A?(0,e.jsx)(r.wn,{title:"Abnormalities",children:g.map(function(R,K){if(M[R[0]])return(0,e.jsx)(r.az,{color:R[1],bold:R[1]==="bad",children:R[2](M)},K)})}):(0,e.jsx)(r.wn,{title:"Abnormalities",children:(0,e.jsx)(r.az,{color:"label",children:"No abnormalities found."})})},y=function(S){var M=S.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.XI,{children:h(x,function(A,R,K){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.XI.Row,{color:"label",children:[(0,e.jsxs)(r.XI.Cell,{children:[A[0],":"]}),(0,e.jsx)(r.XI.Cell,{children:!!R&&R[0]+":"})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(O,{value:M[A[1]],marginBottom:K0&&"0.5rem",value:M.totalLoss/100,ranges:d,children:[(0,e.jsxs)(r.az,{float:"left",inline:!0,children:[!!M.bruteLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"bone"}),(0,s.LI)(M.bruteLoss,0),"\xA0",(0,e.jsx)(r.m_,{position:"top",content:"Brute damage"})]}),!!M.fireLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"fire"}),(0,s.LI)(M.fireLoss,0),(0,e.jsx)(r.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(r.az,{inline:!0,children:(0,s.LI)(M.totalLoss,0)})]})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:m([M.internalBleeding&&"Internal bleeding",!!M.status.bleeding&&"External bleeding",M.lungRuptured&&"Ruptured lung",M.destroyed&&"Destroyed",!!M.status.broken&&M.status.broken,u(M.germ_level),!!M.open&&"Open incision"])}),(0,e.jsxs)(r.az,{inline:!0,children:[m([!!M.status.splinted&&"Splinted",!!M.status.robotic&&"Robotic",!!M.status.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})]),m(M.implants.map(function(R){return R.known?R.name:"Unknown object"}))]})]})]},A)})]})})},I=function(S){return S.organs.length===0?(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsx)(r.az,{color:"label",children:"N/A"})}):(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Injuries"})]}),S.organs.map(function(M,A){return(0,e.jsxs)(r.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(r.XI.Cell,{width:"33%",children:M.name}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:(0,e.jsx)(r.z2,{min:"0",max:M.maxHealth,value:M.damage/100,mt:A>0&&"0.5rem",ranges:d,children:(0,s.LI)(M.damage,0)})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:m([u(M.germ_level),!!M.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(r.az,{inline:!0,children:m([M.robotic===1&&"Robotic",M.robotic===2&&"Assisted",!!M.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})])})]})]},A)})]})})},P=function(){return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},50403:function(_,j,n){"use strict";n.r(j),n.d(j,{BombTester:function(){return d}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738);function o(){return o=Object.assign||function(m){for(var u=1;u.5,b=Math.random()>.5;return f.state={x:O?p:0,y:b?C:0,reverseX:!1,reverseY:!1},f.process=setInterval(function(){f.setState(function(I){var P=o({},I);return P.reverseX?P.x-y<-5?(P.reverseX=!1,P.x+=y):P.x-=y:P.x+y>p?(P.reverseX=!0,P.x-=y):P.x+=y,P.reverseY?P.y-y<-20?(P.reverseY=!1,P.y+=y):P.y-=y:P.y+y>C?(P.reverseY=!0,P.y-=y):P.y+=y,P})},1),f}var v=u.prototype;return v.componentWillUnmount=function(){clearInterval(this.process)},v.render=function(){var f=this.state,p=f.x,C=f.y,y={position:"relative",left:p+"px",top:C+"px"};return(0,e.jsx)(r.wn,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.az,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.In,{style:y,name:"bomb",size:10,color:"red"})})})},u}(s.Component)},56778:function(_,j,n){"use strict";n.r(j),n.d(j,{BotanyEditor:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.activity,m=d.degradation,u=d.disk,v=d.sourceName,c=d.locus,f=d.loaded;return h?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:u&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:v}),(0,e.jsxs)(t.Ki.Item,{label:"Gene Decay",children:[m,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Locus",children:c})]}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:f&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:f})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return x("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},89980:function(_,j,n){"use strict";n.r(j),n.d(j,{BotanyIsolator:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.geneMasks,m=d.activity,u=d.degradation,v=d.disk,c=d.loaded,f=d.hasGenetics,p=d.sourceName;return m?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:f&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:p}),(0,e.jsxs)(t.Ki.Item,{label:"Gene decay",children:[u,"%"]}),v&&h.length&&h.map(function(C){return(0,e.jsx)(t.Ki.Item,{label:C.mask,children:(0,e.jsx)(t.$n,{mb:-1,icon:"download",onClick:function(){return x("get_gene",{get_gene:C.tag})},children:"Extract"})},C.mask)})||null]}),v&&(0,e.jsxs)(t.az,{mt:1,children:[(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return x("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.IC,{warning:!0,children:"No Data Buffered."}),v&&(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:c&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Packet Loaded",children:c})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return x("scan_genome")},children:"Process Genome"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No packet loaded."})})]})})}},91287:function(_,j,n){"use strict";n.r(j),n.d(j,{BrigTimer:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(x){var d=(0,t.Oc)(),h=d.act,m=d.data;return(0,e.jsx)(o.p8,{width:300,height:138,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"clock-o",selected:m.timing,onClick:function(){return h(m.timing?"stop":"start")},children:m.timing?"Stop":"Start"}),m.flash_found&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",disabled:m.flash_charging,onClick:function(){return h("flash")},children:m.flash_charging?"Recharging":"Flash"})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:m.time_left/10,minValue:0,maxValue:m.max_time_left/10,format:function(u){return(0,a.fU)((0,s.LI)(u))},onDrag:function(u,v){return h("time",{time:v})}}),(0,e.jsxs)(r.so,{mt:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return h("preset",{preset:"short"})},children:"Add "+(0,a.fU)(m.preset_short/10)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return h("preset",{preset:"medium"})},children:"Add "+(0,a.fU)(m.preset_medium/10)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return h("preset",{preset:"long"})},children:"Add "+(0,a.fU)(m.preset_long/10)})})]})]})})})}},21648:function(_,j,n){"use strict";n.r(j),n.d(j,{CameraConsole:function(){return u},CameraConsoleContent:function(){return v},prevNextCamera:function(){return h},selectCameras:function(){return m}});var e=n(20462),s=n(7402),t=n(22071),r=n(65380),a=n(61282),o=n(61358),g=n(7081),x=n(16754),d=n(2738),h=function(c,f){var p,C;if(!f)return[];var y=c.findIndex(function(O){return O.name===f.name});return[(p=c[y-1])==null?void 0:p.name,(C=c[y+1])==null?void 0:C.name]},m=function(c,f,p){f===void 0&&(f=""),p===void 0&&(p="");var C=(0,a.XZ)(f,function(y){return y.name});return(0,t.L)([(0,s.pb)(function(y){return y==null?void 0:y.name}),f&&(0,s.pb)(C),p&&(0,s.pb)(function(y){return y.networks.includes(p)}),(0,s.Ul)(function(y){return y.name})])(c)},u=function(c){var f=(0,g.Oc)(),p=f.act,C=f.data,y=C.mapRef,O=C.activeCamera,b=m(C.cameras),I=h(b,O),P=I[0],S=I[1];return(0,e.jsxs)(d.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(d.p8.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),O&&O.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(x.$n,{icon:"chevron-left",disabled:!P,onClick:function(){return p("switch_camera",{name:P})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",disabled:!S,onClick:function(){return p("switch_camera",{name:S})}}),"| PAN:",(0,e.jsx)(x.$n,{icon:"chevron-left",onClick:function(){return p("pan",{dir:8})}}),(0,e.jsx)(x.$n,{icon:"chevron-up",onClick:function(){return p("pan",{dir:1})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",onClick:function(){return p("pan",{dir:4})}}),(0,e.jsx)(x.$n,{icon:"chevron-down",onClick:function(){return p("pan",{dir:2})}})]}),(0,e.jsx)(x.D1,{className:"CameraConsole__map",params:{id:y,type:"map"}})]})]})},v=function(c){var f=(0,g.Oc)(),p=f.act,C=f.data,y=(0,o.useState)(""),O=y[0],b=y[1],I=(0,o.useState)(""),P=I[0],S=I[1],M=C.activeCamera,A=C.allNetworks;A.sort();var R=m(C.cameras,O,P);return(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(K,N){return b(N)}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.ms,{mb:1,width:P?"155px":"177px",displayText:P||"No Filter",options:A,onSelected:function(K){return S(K)}})}),P?(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){S("")}})}):""]})}),(0,e.jsx)(x.so.Item,{height:"100%",children:(0,e.jsx)(x.wn,{fill:!0,scrollable:!0,children:R.map(function(K){return(0,e.jsx)("div",{title:K.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",M&&K.name===M.name&&"Button--selected"]),onClick:function(){return p("switch_camera",{name:K.name})},children:K.name},K.name)})})})]})}},63281:function(_,j,n){"use strict";n.r(j),n.d(j,{Canister:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(x){var d=(0,t.Oc)(),h=d.act,m=d.data,u=m.connected,v=m.can_relabel,c=m.pressure,f=m.releasePressure,p=m.defaultReleasePressure,C=m.minReleasePressure,y=m.maxReleasePressure,O=m.valveOpen,b=m.holding;return(0,e.jsx)(o.p8,{width:360,height:242,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!v,onClick:function(){return h("relabel")},children:"Relabel"}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.zv,{value:c,format:function(I){return I<1e4?(0,s.Mg)(I)+" kPa":(0,a.QL)(I*1e3,1,"Pa")}})}),(0,e.jsx)(r.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(r.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.N6,{forcedInputWidth:"60px",size:1.25,color:!!O&&"yellow",value:f,unit:"kPa",minValue:C,maxValue:y,stepPixelSize:1,onDrag:function(I,P){return h("pressure",{pressure:P})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return h("pressure",{pressure:y})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return h("pressure",{pressure:p})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:O?b?"caution":"danger":null,onClick:function(){return h("valve")},children:O?"Open":"Closed"})}),(0,e.jsx)(r.Wx.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.az,{position:"relative",children:[(0,e.jsx)(r.In,{size:1.25,name:u?"plug":"times",color:u?"good":"bad"}),(0,e.jsx)(r.m_,{content:u?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!b&&(0,e.jsx)(r.$n,{icon:"eject",color:O&&"danger",onClick:function(){return h("eject")},children:"Eject"}),children:[!!b&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:b.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:b.pressure})," kPa"]})]}),!b&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},99202:function(_,j,n){"use strict";n.r(j),n.d(j,{Canvas:function(){return v}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738);function o(){return o=Object.assign||function(c){for(var f=1;f=0)&&(p[y]=c[y]);return p}function d(c,f){return d=Object.setPrototypeOf||function(C,y){return C.__proto__=y,C},d(c,f)}var h=24,m=function(c){"use strict";g(f,c);function f(C){var y;return y=c.call(this,C)||this,y.canvasRef=(0,s.createRef)(),y.onCVClick=C.onCanvasClick,y}var p=f.prototype;return p.componentDidMount=function(){this.drawCanvas(this.props)},p.componentDidUpdate=function(){this.drawCanvas(this.props)},p.drawCanvas=function(y){var O=this.canvasRef.current.getContext("2d"),b=y.value,I=b.length;if(I){var P=b[0].length,S=Math.round(this.canvasRef.current.width/I),M=Math.round(this.canvasRef.current.height/P);O.save(),O.scale(S,M);for(var A=0;A=0)&&(p[y]=c[y]);return p}var d={Alphabetical:function(c,f){return c.name>f.name},"By availability":function(c,f){return-(c.affordable-f.affordable)},"By price":function(c,f){return c.price-f.price}},h=function(){var c=function(K){O(K)},f=function(K){P(K)},p=function(K){A(K)},C=(0,t.useState)(""),y=C[0],O=C[1],b=(0,t.useState)("Alphabetical"),I=b[0],P=b[1],S=(0,t.useState)(!1),M=S[0],A=S[1];return(0,e.jsx)(o.p8,{width:400,height:450,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{searchText:y,sortOrder:I,descending:M,onSearchText:c,onSortOrder:f,onDescending:p}),(0,e.jsx)(u,{searchText:y,sortOrder:I,descending:M,onSearchText:c,onSortOrder:f,onDescending:p})]})})})},m=function(c){return(0,e.jsx)(a.az,{mb:"0.5rem",children:(0,e.jsxs)(a.so,{width:"100%",children:[(0,e.jsx)(a.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(a.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(f,p){return c.onSearchText(p)}})}),(0,e.jsx)(a.so.Item,{basis:"30%",children:(0,e.jsx)(a.ms,{selected:c.sortOrder,options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(f){return c.onSortOrder(f)}})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{icon:c.descending?"arrow-down":"arrow-up",height:"19px",tooltip:c.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return c.onDescending(!c.descending)}})})]})})},u=function(c){var f=(0,r.Oc)(),p=f.act,C=f.data,y=C.points,O=C.items,b=(0,s.XZ)(c.searchText,function(S){return S[0]}),I=!1,P=Object.entries(O).map(function(S,M){var A=Object.entries(S[1]).filter(b).map(function(R){return R[1].affordable=y>=R[1].price,R[1]}).sort(d[c.sortOrder]);if(A.length!==0)return c.descending&&(A=A.reverse()),I=!0,(0,e.jsx)(v,{title:S[0],items:A},S[0])});return(0,e.jsx)(a.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(a.wn,{children:I?P:(0,e.jsx)(a.az,{color:"label",children:"No items matching your criteria was found!"})})})},v=function(c){var f=(0,r.Oc)(),p=f.act,C=f.data,y=c.title,O=c.items,b=x(c,["title","items"]);return(0,e.jsx)(a.Nt,g({open:!0,title:y},b,{children:O.map(function(I){return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:I.name}),(0,e.jsx)(a.$n,{width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return p("purchase",{cat:y,name:I.name,price:I.price,restriction:I.restriction})},children:I.price.toLocaleString("en-US")}),(0,e.jsx)(a.az,{style:{clear:"both"}})]},I.name)})}))}},36924:function(_,j,n){"use strict";n.r(j),n.d(j,{CharacterDirectory:function(){return g}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=function(m){switch(m){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},g=function(m){var u=function(R){I(R)},v=(0,t.Oc)(),c=v.act,f=v.data,p=f.personalVisibility,C=f.personalTag,y=f.personalErpTag,O=(0,s.useState)(null),b=O[0],I=O[1],P=(0,s.useState)(!1),S=P[0],M=P[1];return(0,e.jsx)(a.p8,{width:640,height:480,resizeable:!0,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:b&&(0,e.jsx)(x,{overlay:b,onOverlay:u})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){return M(!S)},children:S?"On":"Off"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return c("setVisible",{overwrite_prefs:S})},children:p?"Shown":"Not Shown"})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return c("setTag",{overwrite_prefs:S})},children:C})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return c("setErpTag",{overwrite_prefs:S})},children:y})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return c("editAd",{overwrite_prefs:S})},children:"Edit Ad"})})]})}),(0,e.jsx)(d,{onOverlay:u})]})})})},x=function(m){return(0,e.jsxs)(r.wn,{title:m.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return m.onOverlay(null)},children:"Back"}),children:[(0,e.jsx)(r.wn,{level:2,title:"Species",children:(0,e.jsx)(r.az,{children:m.overlay.species})}),(0,e.jsx)(r.wn,{level:2,title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:o(m.overlay.tag),children:m.overlay.tag})}),(0,e.jsx)(r.wn,{level:2,title:"ERP Tag",children:(0,e.jsx)(r.az,{children:m.overlay.erptag})}),(0,e.jsx)(r.wn,{level:2,title:"Character Ad",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:m.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:m.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:m.overlay.flavor_text||"Unset."})})]})},d=function(m){var u=function(A){b(A)},v=function(A){S(A)},c=(0,t.Oc)(),f=c.act,p=c.data,C=p.directory,y=(0,s.useState)("name"),O=y[0],b=y[1],I=(0,s.useState)("name"),P=I[0],S=I[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return f("refresh")},children:"Refresh"}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(h,{id:"name",sortId:O,sortOrder:P,onSortId:u,onSortOrder:v,children:"Name"}),(0,e.jsx)(h,{id:"species",sortId:O,sortOrder:P,onSortId:u,onSortOrder:v,children:"Species"}),(0,e.jsx)(h,{id:"tag",sortId:O,sortOrder:P,onSortId:u,onSortOrder:v,children:"Vore Tag"}),(0,e.jsx)(h,{id:"erptag",sortId:O,sortOrder:P,onSortId:u,onSortOrder:v,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),C.sort(function(M,A){var R=P?1:-1;return M[O].localeCompare(A[O])*R}).map(function(M,A){return(0,e.jsxs)(r.XI.Row,{backgroundColor:o(M.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:M.name}),(0,e.jsx)(r.XI.Cell,{children:M.species}),(0,e.jsx)(r.XI.Cell,{children:M.tag}),(0,e.jsx)(r.XI.Cell,{children:M.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return m.onOverlay(M)},color:"transparent",icon:"sticky-note",mr:1,children:"View"})})]},A)})]})})},h=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=m.id,p=m.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:m.sortId!==f&&"transparent",onClick:function(){m.sortId===f?m.onSortOrder(!m.sortOrder):(m.onSortId(f),m.onSortOrder(!0))},children:[p,m.sortId===f&&(0,e.jsx)(r.In,{name:m.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},15559:function(_,j,n){"use strict";n.r(j),n.d(j,{CheckboxInput:function(){return h}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(19996),g=n(2738),x=n(5335),d=n(44149),h=function(m){var u=(0,r.Oc)().data,v=u.items,c=v===void 0?[]:v,f=u.min_checked,p=u.max_checked,C=u.message,y=u.timeout,O=u.title,b=(0,t.useState)([]),I=b[0],P=b[1],S=(0,t.useState)(""),M=S[0],A=S[1],R=(0,s.XZ)(M,function(k){return k}),K=c.filter(R),N=function(k){var F=I.includes(k)?I.filter(function(W){return W!==k}):[].concat(I,[k]);P(F)};return(0,e.jsxs)(g.p8,{title:O,width:425,height:300,children:[!!y&&(0,e.jsx)(d.Loader,{value:y}),(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsxs)(a.IC,{info:!0,textAlign:"center",children:[(0,s.jT)(C)," ",f>0&&" (Min: "+f+")",p<50&&" (Max: "+p+")"]})}),(0,e.jsx)(a.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(a.XI,{children:K.map(function(k,F){return(0,e.jsx)(o.Hj,{className:"candystripe",children:(0,e.jsx)(o.nA,{children:(0,e.jsx)(a.$n.Checkbox,{checked:I.includes(k),disabled:I.length>=p&&!I.includes(k),fluid:!0,onClick:function(){return N(k)},children:k})})},F)})})})}),(0,e.jsxs)(a.BJ,{m:1,mb:0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(a.In,{name:"search",mt:.5})})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{fluid:!0,value:M,onInput:function(k,F){return A(F)}})})]}),(0,e.jsx)(a.BJ.Item,{mt:.7,children:(0,e.jsx)(a.wn,{children:(0,e.jsx)(x.InputButtons,{input:I})})})]})})]})}},9576:function(_,j,n){"use strict";n.r(j),n.d(j,{ChemDispenser:function(){return x}});var e=n(20462),s=n(7081),t=n(16754),r=n(31310),a=n(2738),o=[5,10,20,30,40,60],g=[1,5,10],x=function(u){return(0,e.jsx)(a.p8,{width:390,height:655,children:(0,e.jsxs)(a.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d,{}),(0,e.jsx)(h,{}),(0,e.jsx)(m,{})]})})},d=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.amount;return(0,e.jsx)(t.wn,{title:"Settings",flex:"content",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:o.map(function(C,y){return(0,e.jsx)(t.$n,{textAlign:"center",selected:p===C,m:"0",onClick:function(){return c("amount",{amount:C})},children:C+"u"},y)})}),(0,e.jsx)(t.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(t.Ap,{step:1,stepPixelSize:5,value:p,minValue:1,maxValue:120,onDrag:function(C,y){return c("amount",{amount:y})}})})]})})},h=function(u){for(var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.chemicals,C=p===void 0?[]:p,y=[],O=0;O<(C.length+1)%3;O++)y.push(!0);return(0,e.jsx)(t.wn,{title:f.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.jsxs)(t.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[C.map(function(b,I){return(0,e.jsx)(t.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(t.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",onClick:function(){return c("dispense",{reagent:b.id})},children:b.title+" ("+b.amount+")"})},I)}),y.map(function(b,I){return(0,e.jsx)(t.so.Item,{grow:"1",basis:"25%",height:"20px"},I)})]})})},m=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.isBeakerLoaded,C=f.beakerCurrentVolume,y=f.beakerMaxVolume,O=f.beakerContents,b=O===void 0?[]:O;return(0,e.jsx)(t.wn,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(t.az,{children:[!!p&&(0,e.jsxs)(t.az,{inline:!0,color:"label",mr:2,children:[C," / ",y," units"]}),(0,e.jsx)(t.$n,{icon:"eject",disabled:!p,onClick:function(){return c("ejectBeaker")},children:"Eject"})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:p,beakerContents:b,buttons:function(I){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return c("remove",{reagent:I.id,amount:-1})},children:"Isolate"}),g.map(function(P,S){return(0,e.jsx)(t.$n,{onClick:function(){return c("remove",{reagent:I.id,amount:P})},children:P},S)}),(0,e.jsx)(t.$n,{onClick:function(){return c("remove",{reagent:I.id,amount:I.volume})},children:"ALL"})]})}})})}},22803:function(_,j,n){"use strict";n.r(j),n.d(j,{ChemMaster:function(){return m}});var e=n(20462),s=n(65380),t=n(7081),r=n(16754),a=n(2738),o=n(31310),g=n(38509),x=[1,5,10,30,60],d=null,h=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=C.args.analysis;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",pb:"1rem",title:b.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(I.desc||"").length>0?I.desc:"N/A"}),I.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood type",children:I.blood_type}),(0,e.jsx)(r.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:I.blood_dna})]}),!b.condi&&(0,e.jsx)(r.$n,{icon:b.printing?"spinner":"print",disabled:b.printing,iconSpin:!!b.printing,ml:"0.5rem",onClick:function(){return O("print",{idx:I.idx,beaker:C.args.beaker})},children:"Print"})]})})})},m=function(C){var y=(0,t.Oc)().data,O=y.condi,b=y.beaker,I=y.beaker_reagents,P=I===void 0?[]:I,S=y.buffer_reagents,M=S===void 0?[]:S,A=y.mode;return(0,e.jsxs)(a.p8,{width:575,height:500,children:[(0,e.jsx)(g.ComplexModal,{}),(0,e.jsxs)(a.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.jsx)(u,{beaker:b,beakerReagents:P,bufferNonEmpty:M.length>0}),(0,e.jsx)(v,{mode:A,bufferReagents:M}),(0,e.jsx)(c,{isCondiment:O,bufferNonEmpty:M.length>0})]})]})},u=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=C.beaker,P=C.beakerReagents,S=C.bufferNonEmpty,M=S?(0,e.jsx)(r.$n.Confirm,{icon:"eject",disabled:!I,onClick:function(){return O("eject")},children:"Eject and Clear Buffer"}):(0,e.jsx)(r.$n,{icon:"eject",disabled:!I,onClick:function(){return O("eject")},children:"Eject and Clear Buffer"});return(0,e.jsx)(r.wn,{title:"Beaker",buttons:M,children:I?(0,e.jsx)(o.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(A,R){return(0,e.jsxs)(r.az,{mb:R0?(0,e.jsx)(o.BeakerContents,{beakerLoaded:!0,beakerContents:I,buttons:function(P,S){return(0,e.jsxs)(r.az,{mb:S1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.az,{color:o.lm.damageType.oxy,inline:!0,children:N[0]}),"\xA0|\xA0",(0,e.jsx)(a.az,{color:o.lm.damageType.toxin,inline:!0,children:N[2]}),"\xA0|\xA0",(0,e.jsx)(a.az,{color:o.lm.damageType.brute,inline:!0,children:N[3]}),"\xA0|\xA0",(0,e.jsx)(a.az,{color:o.lm.damageType.burn,inline:!0,children:N[1]})]}):(0,e.jsx)(a.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(a.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:R}),(0,e.jsx)(a.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:K}),(0,e.jsxs)(a.Ki.Item,{label:"Disk",children:[(0,e.jsx)(a.$n.Confirm,{disabled:!I.disk,icon:"arrow-circle-down",onClick:function(){return b("disk",{option:"load"})},children:"Import"}),(0,e.jsx)(a.$n,{disabled:!I.disk,icon:"arrow-circle-up",onClick:function(){return b("disk",{option:"save",savetype:"ui"})},children:"Export UI"}),(0,e.jsx)(a.$n,{disabled:!I.disk,icon:"arrow-circle-up",onClick:function(){return b("disk",{option:"save",savetype:"ue"})},children:"Export UI and UE"}),(0,e.jsx)(a.$n,{disabled:!I.disk,icon:"arrow-circle-up",onClick:function(){return b("disk",{option:"save",savetype:"se"})},children:"Export SE"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Actions",children:[(0,e.jsx)(a.$n,{disabled:!I.podready,icon:"user-plus",onClick:function(){return b("clone",{ref:S})},children:"Clone"}),(0,e.jsx)(a.$n,{icon:"trash",onClick:function(){return b("del_rec")},children:"Delete"})]})]})})},m=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.menu;return(0,g.modalRegisterBodyOverride)("view_rec",h),(0,e.jsxs)(x.p8,{children:[(0,e.jsx)(g.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(x.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(p,{}),(0,e.jsx)(C,{}),(0,e.jsx)(u,{}),(0,e.jsx)(a.wn,{noTopPadding:!0,flexGrow:"1",children:(0,e.jsx)(v,{})})]})]})},u=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.menu;return(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{selected:P===1,icon:"home",onClick:function(){return b("menu",{num:1})},children:"Main"}),(0,e.jsx)(a.tU.Tab,{selected:P===2,icon:"folder",onClick:function(){return b("menu",{num:2})},children:"Records"})]})},v=function(y){var O=(0,r.Oc)().data,b=O.menu,I;return b===1?I=(0,e.jsx)(c,{}):b===2&&(I=(0,e.jsx)(f,{})),I},c=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.loading,S=I.scantemp,M=I.occupant,A=I.locked,R=I.can_brainscan,K=I.scan_mode,N=I.numberofpods,k=I.pods,F=I.selected_pod,W=A&&!!M;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.wn,{title:"Scanner",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.az,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.jsx)(a.$n,{disabled:!M,selected:W,icon:W?"toggle-on":"toggle-off",onClick:function(){return b("lock")},children:W?"Engaged":"Disengaged"}),(0,e.jsx)(a.$n,{disabled:W||!M,icon:"user-slash",onClick:function(){return b("eject")},children:"Eject Occupant"})]}),children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Status",children:P?(0,e.jsxs)(a.az,{color:"average",children:[(0,e.jsx)(a.In,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.jsx)(a.az,{color:S.color,children:S.text})}),!!R&&(0,e.jsx)(a.Ki.Item,{label:"Scan Mode",children:(0,e.jsx)(a.$n,{icon:K?"brain":"male",onClick:function(){return b("toggle_mode")},children:K?"Brain":"Body"})})]}),(0,e.jsx)(a.$n,{disabled:!M||P,icon:"user",mt:"0.5rem",mb:"0",onClick:function(){return b("scan")},children:"Scan Occupant"})]}),(0,e.jsx)(a.wn,{title:"Pods",level:"2",children:N?k.map(function(J,X){var Q;return J.status==="cloning"?Q=(0,e.jsx)(a.z2,{min:"0",max:"100",value:J.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(a.az,{textAlign:"center",children:(0,s.LI)(J.progress,0)+"%"})}):J.status==="mess"?Q=(0,e.jsx)(a.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):Q=(0,e.jsx)(a.$n,{selected:F===J.pod,icon:F===J.pod&&"check",mt:"0.5rem",onClick:function(){return b("selectpod",{ref:J.pod})},children:"Select"}),(0,e.jsxs)(a.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:(0,t.l)("pod_"+J.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsxs)(a.az,{color:"label",children:["Pod #",X+1]}),(0,e.jsxs)(a.az,{bold:!0,color:J.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(a.In,{name:J.biomass>=150?"circle":"circle-o"}),"\xA0",J.biomass]}),Q]},X)}):(0,e.jsx)(a.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},f=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.records;return P.length?(0,e.jsx)(a.az,{mt:"0.5rem",children:P.map(function(S,M){return(0,e.jsx)(a.$n,{icon:"user",mb:"0.5rem",onClick:function(){return b("view_rec",{ref:S.record})},children:S.realname},M)})}):(0,e.jsx)(a.so,{height:"100%",children:(0,e.jsxs)(a.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(a.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},p=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.temp;if(!(!P||!P.text||P.text.length<=0)){var S,M=(S={},S[P.style]=!0,S);return(0,e.jsxs)(a.IC,d({},M,{children:[(0,e.jsx)(a.az,{display:"inline-block",verticalAlign:"middle",children:P.text}),(0,e.jsx)(a.$n,{icon:"times-circle",float:"right",onClick:function(){return b("cleartemp")}}),(0,e.jsx)(a.az,{clear:"both"})]}))}},C=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.scanner,S=I.numberofpods,M=I.autoallowed,A=I.autoprocess,R=I.disk;return(0,e.jsx)(a.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[!!M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.az,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.jsx)(a.$n,{selected:A,icon:A?"toggle-on":"toggle-off",onClick:function(){return b("autoprocess",{on:A?0:1})},children:A?"Enabled":"Disabled"})]}),(0,e.jsx)(a.$n,{disabled:!R,icon:"eject",onClick:function(){return b("disk",{option:"eject"})},children:"Eject Disk"})]}),children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Scanner",children:P?(0,e.jsx)(a.az,{color:"good",children:"Connected"}):(0,e.jsx)(a.az,{color:"bad",children:"Not connected!"})}),(0,e.jsx)(a.Ki.Item,{label:"Pods",children:S?(0,e.jsxs)(a.az,{color:"good",children:[S," connected"]}):(0,e.jsx)(a.az,{color:"bad",children:"None connected!"})})]})})}},74782:function(_,j,n){"use strict";n.r(j),n.d(j,{ColorMate:function(){return a},ColorMateHSV:function(){return x},ColorMateMatrix:function(){return g},ColorMateTint:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(d,h){var m=(0,s.Oc)(h),u=m.act,v=m.data,c=v.activemode,f=v.temp,p=v.item||[];return(0,e.jsx)(r.p8,{width:"980",height:"720",resizable:!0,children:(0,e.jsx)(r.p8.Content,{overflow:"auto",children:(0,e.jsxs)(t.wn,{children:[f?(0,e.jsx)(t.IC,{children:f}):null,Object.keys(p).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsx)(t.XI.Cell,{width:"50%",children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+p.sprite,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+p.preview,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})})]}),(0,e.jsxs)(t.tU,{fluid:!0,children:[(0,e.jsx)(t.tU.Tab,{selected:c===1,onClick:function(){return u("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(t.tU.Tab,{selected:c===2,onClick:function(){return u("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(t.tU.Tab,{selected:c===3,onClick:function(){return u("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",p.name]}),(0,e.jsxs)(t.XI,{mt:1,children:[(0,e.jsxs)(t.XI.Cell,{width:"33%",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"fill",onClick:function(){return u("paint")},children:"Paint"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eraser",onClick:function(){return u("clear")},children:"Clear"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return u("drop")},children:"Eject"})]}),(0,e.jsx)(t.XI.Cell,{width:"66%",children:c===1?(0,e.jsx)(o,{}):c===2?(0,e.jsx)(x,{}):(0,e.jsx)(g,{})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})},o=function(d,h){var m=(0,s.Oc)(h),u=m.act,v=m.data;return(0,e.jsx)(t.$n,{fluid:!0,icon:"paint-brush",onClick:function(){return u("choose_color")},children:"Select new color"})},g=function(d,h){var m=(0,s.Oc)(h),u=m.act,v=m.data,c=v.matrixcolors||[];return(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsxs)(t.XI.Row,{children:["RR:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rr,onChange:function(f,p){return u("set_matrix_color",{color:1,value:p})}})]}),(0,e.jsxs)(t.XI.Row,{children:["GR:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gr,onChange:function(f,p){return u("set_matrix_color",{color:4,value:p})}})]}),(0,e.jsxs)(t.XI.Row,{children:["BR:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.br,onChange:function(f,p){return u("set_matrix_color",{color:7,value:p})}})]})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsxs)(t.XI.Row,{children:["RG:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rg,onChange:function(f,p){return u("set_matrix_color",{color:2,value:p})}})]}),(0,e.jsxs)(t.XI.Row,{children:["GG:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gg,onChange:function(f,p){return u("set_matrix_color",{color:5,value:p})}})]}),(0,e.jsxs)(t.XI.Row,{children:["BG:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bg,onChange:function(f,p){return u("set_matrix_color",{color:8,value:p})}})]})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsxs)(t.XI.Row,{children:["RB:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rb,onChange:function(f,p){return u("set_matrix_color",{color:3,value:p})}})]}),(0,e.jsxs)(t.XI.Row,{children:["GB:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gb,onChange:function(f,p){return u("set_matrix_color",{color:6,value:p})}})]}),(0,e.jsxs)(t.XI.Row,{children:["BB:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bb,onChange:function(f,p){return u("set_matrix_color",{color:9,value:p})}})]})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsxs)(t.XI.Row,{children:["CR:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cr,onChange:function(f,p){return u("set_matrix_color",{color:10,value:p})}})]}),(0,e.jsxs)(t.XI.Row,{children:["CG:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cg,onChange:function(f,p){return u("set_matrix_color",{color:11,value:p})}})]}),(0,e.jsxs)(t.XI.Row,{children:["CB:"," ",(0,e.jsx)(t.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cb,onChange:function(f,p){return u("set_matrix_color",{color:12,value:p})}})]})]}),(0,e.jsxs)(t.XI.Cell,{width:"40%",children:[(0,e.jsx)(t.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(t.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})},x=function(d,h){var m=(0,s.Oc)(h),u=m.act,v=m.data,c=v.buildhue,f=v.buildsat,p=v.buildval;return(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(t.XI.Cell,{width:"85%",children:(0,e.jsx)(t.Ap,{minValue:0,maxValue:360,step:1,value:c,onDrag:function(C,y){return u("set_hue",{buildhue:y})}})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Ap,{minValue:-10,maxValue:10,step:.01,value:f,onDrag:function(C,y){return u("set_sat",{buildsat:y})}})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Ap,{minValue:-10,maxValue:10,step:.01,value:p,onDrag:function(C,y){return u("set_val",{buildval:y})}})})]})]})}},6938:function(_,j,n){"use strict";n.r(j),n.d(j,{CommunicationsConsole:function(){return a},CommunicationsConsoleContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(m){return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(o,{})})})},o=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.menu_state,p=(0,e.jsxs)(t.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",f,"Please report this to NT Technical Support."]});return f===1?p=(0,e.jsx)(g,{}):f===2?p=(0,e.jsx)(h,{}):f===3&&(p=(0,e.jsx)(d,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),p]})},g=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.messages,p=c.msg_cooldown,C=c.emagged,y=c.cc_cooldown,O=c.str_security_level,b=c.levels,I=c.authmax,P=c.security_level,S=c.security_level_color,M=c.authenticated,A=c.atcsquelch,R=c.boss_short,K="View ("+f.length+")",N="Make Priority Announcement";p>0&&(N+=" ("+p+"s)");var k=C?"Message [UNKNOWN]":"Message "+R;y>0&&(k+=" ("+y+"s)");var F=O,W=b.map(function(J){return(0,e.jsx)(t.$n,{icon:J.icon,disabled:!M,selected:J.id===P,onClick:function(){return v("newalertlevel",{level:J.id})},children:J.name},J.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Announcement",children:(0,e.jsx)(t.$n,{icon:"bullhorn",disabled:!I||p>0,onClick:function(){return v("announce")},children:N})}),!!C&&(0,e.jsxs)(t.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(t.$n,{icon:"broadcast-tower",color:"red",disabled:!I||y>0,onClick:function(){return v("MessageSyndicate")},children:k}),(0,e.jsx)(t.$n,{icon:"sync-alt",disabled:!I,onClick:function(){return v("RestoreBackup")},children:"Reset Relays"})]})||(0,e.jsx)(t.Ki.Item,{label:"Transmit",children:(0,e.jsx)(t.$n,{icon:"broadcast-tower",disabled:!I||y>0,onClick:function(){return v("MessageCentCom")},children:k})})]})}),(0,e.jsx)(t.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Alert",color:S,children:F}),(0,e.jsx)(t.Ki.Item,{label:"Change Alert",children:W}),(0,e.jsx)(t.Ki.Item,{label:"Displays",children:(0,e.jsx)(t.$n,{icon:"tv",disabled:!M,onClick:function(){return v("status")},children:"Change Status Displays"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(t.$n,{icon:"folder-open",disabled:!M,onClick:function(){return v("messagelist")},children:K})}),(0,e.jsx)(t.Ki.Item,{label:"Misc",children:(0,e.jsx)(t.$n,{icon:"microphone",disabled:!M,selected:A,onClick:function(){return v("toggleatc")},children:A?"ATC Relay Disabled":"ATC Relay Enabled"})})]})})]})},x=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.authenticated,p=c.is_ai,C=c.esc_status,y=c.esc_callable,O=c.esc_recallable,b;return f?p?b="AI":f===1?b="Command":f===2?b="Site Director":b="ERROR: Report This Bug!":b="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Authentication",children:(0,e.jsx)(t.Ki,{children:p&&(0,e.jsx)(t.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:f?"sign-out-alt":"id-card",selected:f,onClick:function(){return v("auth")},children:f?"Log Out ("+b+")":"Log In"})})})}),(0,e.jsx)(t.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(t.Ki,{children:[!!C&&(0,e.jsx)(t.Ki.Item,{label:"Status",children:C}),!!y&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"rocket",disabled:!f,onClick:function(){return v("callshuttle")},children:"Call Shuttle"})}),!!O&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"times",disabled:!f||p,onClick:function(){return v("cancelshuttle")},children:"Recall Shuttle"})})]})})]})},d=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.message_current,p=c.message_deletion_allowed,C=c.authenticated,y=c.messages;if(f)return(0,e.jsx)(t.wn,{title:f.title,buttons:(0,e.jsx)(t.$n,{icon:"times",disabled:!C,onClick:function(){return v("messagelist")},children:"Return To Message List"}),children:(0,e.jsx)(t.az,{children:f.contents})});var O=y.map(function(b){return(0,e.jsxs)(t.Ki.Item,{label:b.title,children:[(0,e.jsx)(t.$n,{icon:"eye",disabled:!C||f&&f.title===b.title,onClick:function(){return v("messagelist",{msgid:b.id})},children:"View"}),(0,e.jsx)(t.$n,{icon:"times",disabled:!C||!p,onClick:function(){return v("delmessage",{msgid:b.id})},children:"Delete"})]},b.id)});return(0,e.jsx)(t.wn,{title:"Messages Received",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return v("main")},children:"Back To Main Menu"}),children:(0,e.jsx)(t.Ki,{children:y.length&&O||(0,e.jsx)(t.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})},h=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.stat_display,p=c.authenticated,C=f.presets.map(function(y){return(0,e.jsx)(t.$n,{selected:y.name===f.type,disabled:!p,onClick:function(){return v("setstat",{statdisp:y.name})},children:y.label},y.name)});return(0,e.jsx)(t.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return v("main")},children:"Back To Main Menu"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Presets",children:C}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!p,onClick:function(){return v("setmsg1")},children:f.line_1})}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!p,onClick:function(){return v("setmsg2")},children:f.line_2})})]})})}},18581:function(_,j,n){"use strict";n.r(j),n.d(j,{Communicator:function(){return P}});var e=n(20462),s=n(7402),t=n(61282),r=n(61358),a=n(7081),o=n(16754),g=n(2738),x=n(58044),d=1,h=2,m=3,u=4,v=40,c=5,f=6,p=7,C=8,y=9,O=[d,h,m,u,v,c,f,p,C,y],b={};function I(Q){return O.includes(Q)}var P=function(Q){for(var Z=(0,a.Oc)(),G=Z.act,H=Z.data,V=H.currentTab,q=H.video_comm,ie=H.owner,te=H.occupation,ue=H.connectionStatus,ce=H.address,me=H.visible,xe=H.ring,ve=H.selfie_mode,je=H.homeScreen,we=H.targetAddress,Je=H.voice_mobs,ze=H.phone_video_comm,Le=H.communicating,Be=H.requestsReceived,vn=H.invitesSent,gn=H.imContacts,un=H.targetAddressName,ln=H.imList,He=H.feeds,Pe=H.target_feed,Me=H.latest_news,ke=H.note,Se=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],We=Se.map(function(Ce){return(0,e.jsx)(o.$n,{fontSize:2,fluid:!0,onClick:function(){return G("add_hex",{add_hex:Ce})},children:Ce},Ce)}),$e=[],Xe=0;XeG?Z.length>G?Z.slice(0,G)+"...":Z:Q+Z},W=function(Q,Z,G,H){if(G<0||G>H.length)return k(Q,Z)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var V=k(Q,Z),q=k(H[G],Z);return V&&q?"TinderMessage_Subsequent_Sent":!V&&!q?"TinderMessage_Subsequent_Received":V?"TinderMessage_First_Sent":"TinderMessage_First_Received"},J=function(Q,Z,G,H,V){return QH?"average":Q>V?"bad":"good"},X=function(Q){var Z=(0,a.Oc)(),G=Z.act,H=Z.data,V=H.aircontents,q=H.weather,ie="\xB0";return(0,e.jsxs)(o.wn,{title:"Weather",children:[(0,e.jsx)(o.wn,{title:"Current Conditions",children:(0,e.jsx)(o.Ki,{children:(0,s.pb)(function(te){return te.val!=="0"||te.entry==="Pressure"||te.entry==="Temperature"})(V).map(function(te){return(0,e.jsxs)(o.Ki.Item,{label:te.entry,color:J(te.val,te.bad_low,te.poor_low,te.poor_high,te.bad_high),children:[te.val,(0,t.jT)(te.units)]},te.entry)})})}),(0,e.jsx)(o.wn,{title:"Weather Reports",children:!!q.length&&(0,e.jsx)(o.Ki,{children:q.map(function(te){return(0,e.jsx)(o.Ki.Item,{label:te.Planet,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Time",children:te.Time}),(0,e.jsx)(o.Ki.Item,{label:"Weather",children:(0,t.Sn)(te.Weather)}),(0,e.jsxs)(o.Ki.Item,{label:"Temperature",children:["Current: ",te.Temperature.toFixed()," ",ie,"C | High:"," ",te.High.toFixed()," ",ie,"C | Low: ",te.Low.toFixed()," ",ie,"C"]}),(0,e.jsx)(o.Ki.Item,{label:"Wind Direction",children:te.WindDir}),(0,e.jsx)(o.Ki.Item,{label:"Wind Speed",children:te.WindSpeed}),(0,e.jsx)(o.Ki.Item,{label:"Forecast",children:(0,t.jT)(te.Forecast)})]})},te.Planet)})})||(0,e.jsx)(o.az,{color:"bad",children:"No weather reports available. Please check back later."})})]})}},82994:function(_,j,n){"use strict";n.r(j),n.d(j,{ComputerFabricator:function(){return c}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738);function o(O,b){return b||(b=O.slice(0)),O.raw=b,O}function g(){var O=o(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return g=function(){return O},O}function x(){var O=o(["\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n "]);return x=function(){return O},O}function d(){var O=o(["\n Allows your device to wirelessly connect to stationwide NTNet\n network. Basic cards are limited to on-station use, while\n advanced cards can operate anywhere near the station, which\n includes asteroid outposts\n "]);return d=function(){return O},O}function h(){var O=o(["\n A device that allows for various paperwork manipulations,\n such as, scanning of documents or printing new ones.\n This device was certified EcoFriendlyPlus and is capable of\n recycling existing paper for printing purposes.\n "]);return h=function(){return O},O}function m(){var O=o(["\n Adds a secondary RFID card reader, for manipulating or\n reading from a second standard RFID card.\n Please note that a primary card reader is necessary to\n allow the device to read your identification, but one\n is included in the base price.\n "]);return m=function(){return O},O}function u(){var O=o(["\n A component critical for your device's functionality.\n It allows you to run programs from your hard drive.\n Advanced CPUs use more power, but allow you to run\n more programs on background at once.\n "]);return u=function(){return O},O}function v(){var O=o(["\n An advanced wireless power relay that allows your device\n to connect to nearby area power controller to provide\n alternative power source. This component is currently\n unavailable on tablet computers due to size restrictions.\n "]);return v=function(){return O},O}var c=function(O){var b=(0,t.Oc)(),I=b.act,P=b.data;return(0,e.jsx)(a.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),P.state!==0&&(0,e.jsx)(r.$n,{fluid:!0,mb:1,icon:"circle",onClick:function(){return I("clean_order")},children:"Clear Order"}),P.state===0&&(0,e.jsx)(f,{}),P.state===1&&(0,e.jsx)(p,{}),P.state===2&&(0,e.jsx)(C,{}),P.state===3&&(0,e.jsx)(y,{})]})})},f=function(O){var b=(0,t.Oc)(),I=b.act,P=b.data;return(0,e.jsxs)(r.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(r.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(r.az,{mt:3,children:(0,e.jsx)(r.XI,{width:"100%",children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"1"})},children:"Laptop"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"tablet-alt",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"2"})},children:"Tablet"})})]})})})]})},p=function(O){var b=(0,t.Oc)(),I=b.act,P=b.data;return(0,e.jsxs)(r.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(r.az,{bold:!0,color:"good",children:[P.totalprice,"\u20AE"]}),children:[(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(r.m_,{content:(0,s.c1)(g()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_battery===1,onClick:function(){return I("hw_battery",{battery:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_battery===2,onClick:function(){return I("hw_battery",{battery:"2"})},children:"Upgraded"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_battery===3,onClick:function(){return I("hw_battery",{battery:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(r.m_,{content:(0,s.c1)(x()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_disk===1,onClick:function(){return I("hw_disk",{disk:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_disk===2,onClick:function(){return I("hw_disk",{disk:"2"})},children:"Upgraded"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_disk===3,onClick:function(){return I("hw_disk",{disk:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(r.m_,{content:(0,s.c1)(d()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_netcard===0,onClick:function(){return I("hw_netcard",{netcard:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_netcard===1,onClick:function(){return I("hw_netcard",{netcard:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_netcard===2,onClick:function(){return I("hw_netcard",{netcard:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(r.m_,{content:(0,s.c1)(h()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_nanoprint===0,onClick:function(){return I("hw_nanoprint",{print:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_nanoprint===1,onClick:function(){return I("hw_nanoprint",{print:"1"})},children:"Standard"})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(r.m_,{content:(0,s.c1)(m()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_card===0,onClick:function(){return I("hw_card",{card:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_card===1,onClick:function(){return I("hw_card",{card:"1"})},children:"Standard"})})]}),P.devtype!==2&&(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(r.m_,{content:(0,s.c1)(u()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_cpu===1,onClick:function(){return I("hw_cpu",{cpu:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_cpu===2,onClick:function(){return I("hw_cpu",{cpu:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(r.m_,{content:(0,s.c1)(v()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_tesla===0,onClick:function(){return I("hw_tesla",{tesla:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_tesla===1,onClick:function(){return I("hw_tesla",{tesla:"1"})},children:"Standard"})})]})]}),(0,e.jsx)(r.$n,{fluid:!0,mt:3,color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return I("confirm_order")},children:"Confirm Order"})]})},C=function(O){var b=(0,t.Oc)(),I=b.act,P=b.data;return(0,e.jsxs)(r.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(r.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(r.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(r.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(r.az,{inline:!0,color:"good",children:[P.totalprice,"\u20AE"]})]})]})},y=function(O){return(0,e.jsxs)(r.wn,{minHeight:"282px",children:[(0,e.jsx)(r.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(r.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},63875:function(_,j,n){"use strict";n.r(j),n.d(j,{CookingAppliance:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.temperature,m=d.optimalTemp,u=d.temperatureEnough,v=d.efficiency,c=d.containersRemovable,f=d.our_contents;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{color:u?"good":"blue",value:h,maxValue:m,children:[(0,e.jsx)(t.zv,{value:h}),"\xB0C / ",m,"\xB0C"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(t.zv,{value:v}),"%"]})]})}),(0,e.jsx)(t.wn,{title:"Containers",children:(0,e.jsx)(t.Ki,{children:f.map(function(p,C){return p.empty?(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(C+1),children:(0,e.jsx)(t.$n,{onClick:function(){return x("slot",{slot:C+1})},children:"Empty"})},C):(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(C+1),verticalAlign:"middle",children:(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{disabled:!c,onClick:function(){return x("slot",{slot:C+1})},children:p.container||"No Container"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.z2,{color:p.progressText[0],value:p.progress,maxValue:1,children:p.progressText[1]})})]})},C)})})})]})})}},58044:function(_,j,n){"use strict";n.r(j),n.d(j,{CrewManifest:function(){return g},CrewManifestContent:function(){return x}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(79500),o=n(2738),g=function(){return(0,e.jsx)(o.p8,{width:400,height:600,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:v.map(function(c){return!!c.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:a.lm.manifest[c.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:c.cat})}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{children:"Rank"}),(0,e.jsx)(r.XI.Cell,{children:"Active"})]}),c.elems.map(function(f){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,s.jT)(f.name)}),(0,e.jsx)(r.XI.Cell,{children:f.rank}),(0,e.jsx)(r.XI.Cell,{children:f.active})]},f.name+f.rank)})]})},c.cat)})})}},82703:function(_,j,n){"use strict";n.r(j),n.d(j,{CrewMonitor:function(){return h},CrewMonitorContent:function(){return m}});var e=n(20462),s=n(7402),t=n(22071),r=n(61358),a=n(7081),o=n(16754),g=n(2738),x=function(v){return v.dead?"Deceased":parseInt(v.stat,10)===1?"Unconscious":"Living"},d=function(v){return v.dead?"red":parseInt(v.stat,10)===1?"orange":"green"},h=function(){var v=function(P){C(P)},c=function(P){b(P)},f=(0,r.useState)(0),p=f[0],C=f[1],y=(0,r.useState)(1),O=y[0],b=y[1];return(0,e.jsx)(g.p8,{width:800,height:600,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(m,{tabIndex:p,zoom:O,onTabIndex:v,onZoom:c})})})},m=function(v){var c=(0,a.Oc)(),f=c.act,p=c.data,C=c.config,y=(0,t.L)([(0,s.Ul)(function(b){return b.name}),(0,s.Ul)(function(b){return b==null?void 0:b.x}),(0,s.Ul)(function(b){return b==null?void 0:b.y}),(0,s.Ul)(function(b){return b==null?void 0:b.realZ})])(p.crewmembers||[]),O;return v.tabIndex===0?O=(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Name"}),(0,e.jsx)(o.XI.Cell,{children:"Status"}),(0,e.jsx)(o.XI.Cell,{children:"Location"})]}),y.map(function(b){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsxs)(o.XI.Cell,{children:[b.name," (",b.assignment,")"]}),(0,e.jsxs)(o.XI.Cell,{children:[(0,e.jsx)(o.az,{inline:!0,color:d(b),children:x(b)}),b.sensor_type>=2?(0,e.jsxs)(o.az,{inline:!0,children:["(",(0,e.jsx)(o.az,{inline:!0,color:"red",children:b.brute}),"|",(0,e.jsx)(o.az,{inline:!0,color:"orange",children:b.fire}),"|",(0,e.jsx)(o.az,{inline:!0,color:"green",children:b.tox}),"|",(0,e.jsx)(o.az,{inline:!0,color:"blue",children:b.oxy}),")"]}):null]}),(0,e.jsx)(o.XI.Cell,{children:b.sensor_type===3?p.isAI?(0,e.jsx)(o.$n,{fluid:!0,icon:"location-arrow",onClick:function(){return f("track",{track:b.ref})},children:b.area+" ("+b.x+", "+b.y+")"}):b.area+" ("+b.x+", "+b.y+", "+b.z+")":"Not Available"})]},b.ref)})]}):v.tabIndex===1?O=(0,e.jsx)(u,{zoom:v.zoom,onZoom:v.onZoom}):O="ERROR",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsxs)(o.tU.Tab,{selected:v.tabIndex===0,onClick:function(){return v.onTabIndex(0)},children:[(0,e.jsx)(o.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(o.tU.Tab,{selected:v.tabIndex===1,onClick:function(){return v.onTabIndex(1)},children:[(0,e.jsx)(o.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(o.az,{m:2,children:O})]})},u=function(v){var c=(0,a.Oc)(),f=c.act,p=c.config,C=c.data;return(0,e.jsx)(o.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(o.tx,{zoomScale:C.zoomScale,onZoom:function(y){return v.onZoom(y)},children:C.crewmembers.filter(function(y){return y.sensor_type===3&&~~y.realZ===~~p.mapZLevel}).map(function(y){return(0,e.jsx)(o.tx.Marker,{x:y.x,y:y.y,zoom:v.zoom,icon:"circle",tooltip:y.name+" ("+y.assignment+")",color:d(y)},y.ref)})})})}},84877:function(_,j,n){"use strict";n.r(j),n.d(j,{Cryo:function(){return g}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],o=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=function(h){return(0,e.jsx)(r.p8,{width:520,height:470,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(x,{})})})},x=function(h){var m=(0,s.Oc)(),u=m.act,v=m.data,c=v.isOperating,f=v.hasOccupant,p=v.occupant,C=p===void 0?[]:p,y=v.cellTemperature,O=v.cellTemperatureStatus,b=v.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Occupant",flexGrow:"1",buttons:(0,e.jsx)(t.$n,{icon:"user-slash",onClick:function(){return u("ejectOccupant")},disabled:!f,children:"Eject"}),children:f?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.jsx)(t.zv,{value:Math.round(C.health)})})}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:o[C.stat][0],children:o[C.stat][1]}),(0,e.jsxs)(t.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(t.zv,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.jsx)(t.Ki.Divider,{}),a.map(function(I){return(0,e.jsx)(t.Ki.Item,{label:I.label,children:(0,e.jsx)(t.z2,{value:C[I.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(t.zv,{value:Math.round(C[I.type])})})},I.id)})]}):(0,e.jsx)(t.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(t.wn,{title:"Cell",buttons:(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return u("ejectBeaker")},disabled:!b,children:"Eject Beaker"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return u(c?"switchOff":"switchOn")},selected:c,children:c?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Temperature",color:O,children:[(0,e.jsx)(t.zv,{value:y})," K"]}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",children:(0,e.jsx)(d,{})})]})})]})},d=function(h){var m=(0,s.Oc)(),u=m.act,v=m.data,c=v.isBeakerLoaded,f=v.beakerLabel,p=v.beakerVolume;return c?(0,e.jsxs)(e.Fragment,{children:[f||(0,e.jsx)(t.az,{color:"average",children:"No label"}),(0,e.jsx)(t.az,{color:!p&&"bad",children:p?(0,e.jsx)(t.zv,{value:p,format:function(C){return Math.round(C)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded"})}},31286:function(_,j,n){"use strict";n.r(j),n.d(j,{CryoStorage:function(){return o},CryoStorageCrew:function(){return g},CryoStorageItems:function(){return x}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.real_name,c=u.allow_items,f=(0,s.useState)(0),p=f[0],C=f[1];return(0,e.jsx)(a.p8,{width:400,height:600,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",v,"."]}),p===0&&(0,e.jsx)(g,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},g=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:v.length&&v.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},x=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.items;return(0,e.jsx)(r.wn,{title:"Stored Items",buttons:(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return m("allitems")},children:"Claim All"}),children:v.length&&v.map(function(c){return(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return m("item",{ref:c.ref})},children:c.name},c.ref)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},90994:function(_,j,n){"use strict";n.r(j),n.d(j,{CryoStorageItemsVr:function(){return x},CryoStorageVr:function(){return g}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=n(31286),g=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.real_name,c=u.allow_items,f=(0,s.useState)(0),p=f[0],C=f[1];return(0,e.jsx)(a.p8,{width:400,height:600,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",v,"."]}),p===0&&(0,e.jsx)(o.CryoStorageCrew,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},x=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:v.length&&v.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},3377:function(_,j,n){"use strict";n.r(j),n.d(j,{DNAForensics:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.scan_progress,m=d.scanning,u=d.bloodsamp,v=d.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:m,disabled:!u,icon:"power-off",onClick:function(){return x("scanItem")},children:m?"Halt Scan":"Begin Scan"}),(0,e.jsx)(t.$n,{disabled:!u,icon:"eject",onClick:function(){return x("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(t.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:h,maxValue:100})})})}),(0,e.jsx)(t.wn,{title:"Blood Sample",children:u&&(0,e.jsxs)(t.az,{children:[u,(0,e.jsx)(t.az,{color:"label",children:v})]})||(0,e.jsx)(t.az,{color:"bad",children:"No blood sample inserted."})})]})})}},75752:function(_,j,n){"use strict";n.r(j),n.d(j,{DNAModifier:function(){return d}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(38509),o=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],x=[5,10,20,30,50],d=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.irradiating,R=M.dnaBlockSize,K=M.occupant,N=!K.isViableSubject||!K.uniqueIdentity||!K.structuralEnzymes,k;return A&&(k=(0,e.jsx)(O,{duration:A})),(0,e.jsxs)(r.p8,{width:660,height:870,children:[(0,e.jsx)(a.ComplexModal,{}),k,(0,e.jsxs)(r.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(h,{isDNAInvalid:N}),(0,e.jsx)(m,{isDNAInvalid:N})]})]})},h=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.locked,R=M.hasOccupant,K=M.occupant;return(0,e.jsx)(t.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(t.$n,{disabled:!R,selected:A,icon:A?"toggle-on":"toggle-off",onClick:function(){return S("toggleLock")},children:A?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{disabled:!R||A,icon:"user-slash",onClick:function(){return S("ejectOccupant")},children:"Eject"})]}),children:R?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{min:K.minHealth,max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:o[K.stat][0],children:o[K.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),I.isDNAInvalid?(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Radiation",children:(0,e.jsx)(t.z2,{min:"0",max:"100",value:K.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ki.Item,{label:"Unique Enzymes",children:M.occupant.uniqueEnzymes?M.occupant.uniqueEnzymes:(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(t.az,{color:"label",children:"Cell unoccupied."})})},m=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.selectedMenuKey,R=M.hasOccupant,K=M.occupant;if(R){if(I.isDNAInvalid)return(0,e.jsx)(t.wn,{flexGrow:"1",children:(0,e.jsx)(t.so,{height:"100%",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No operation possible on this subject."]})})})}else return(0,e.jsx)(t.wn,{flexGrow:"1",children:(0,e.jsx)(t.so,{height:"100%",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant in DNA modifier."]})})});var N;return A==="ui"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(c,{})]}):A==="se"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsx)(c,{})]}):A==="buffer"?N=(0,e.jsx)(f,{}):A==="rejuvenators"&&(N=(0,e.jsx)(y,{})),(0,e.jsxs)(t.wn,{flexGrow:"1",children:[(0,e.jsx)(t.tU,{children:g.map(function(k,F){return(0,e.jsxs)(t.tU.Tab,{selected:A===k[0],onClick:function(){return S("selectMenuKey",{key:k[0]})},children:[(0,e.jsx)(t.In,{name:k[2]}),k[1]]},F)})}),N]})},u=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.selectedUIBlock,R=M.selectedUISubBlock,K=M.selectedUITarget,N=M.dnaBlockSize,k=M.occupant;return(0,e.jsxs)(t.wn,{title:"Modify Unique Identifier",level:"2",children:[(0,e.jsx)(b,{dnaString:k.uniqueIdentity,selectedBlock:A,selectedSubblock:R,blockSize:N,action:"selectUIBlock"}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:(0,e.jsx)(t.N6,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:K,format:function(F){return F.toString(16).toUpperCase()},ml:"0",onChange:function(F,W){return S("changeUITarget",{value:W})}})})}),(0,e.jsx)(t.$n,{icon:"radiation",mt:"0.5rem",onClick:function(){return S("pulseUIRadiation")},children:"Irradiate Block"})]})},v=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.selectedSEBlock,R=M.selectedSESubBlock,K=M.dnaBlockSize,N=M.occupant;return(0,e.jsxs)(t.wn,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.jsx)(b,{dnaString:N.structuralEnzymes,selectedBlock:A,selectedSubblock:R,blockSize:K,action:"selectSEBlock"}),(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return S("pulseSERadiation")},children:"Irradiate Block"})]})},c=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.radiationIntensity,R=M.radiationDuration;return(0,e.jsxs)(t.wn,{title:"Radiation Emitter",level:"2",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Intensity",children:(0,e.jsx)(t.N6,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:A,popUpPosition:"right",ml:"0",onChange:function(K,N){return S("radiationIntensity",{value:N})}})}),(0,e.jsx)(t.Ki.Item,{label:"Duration",children:(0,e.jsx)(t.N6,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:R,popUpPosition:"right",ml:"0",onChange:function(K,N){return S("radiationDuration",{value:N})}})})]}),(0,e.jsx)(t.$n,{icon:"radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return S("pulseRadiation")},children:"Pulse Radiation"})]})},f=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.buffers,R=A.map(function(K,N){return(0,e.jsx)(p,{id:N+1,name:"Buffer "+(N+1),buffer:K},N)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Buffers",level:"2",children:R}),(0,e.jsx)(C,{})]})},p=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=I.id,R=I.name,K=I.buffer,N=M.isInjectorReady,k=R+(K.data?" - "+K.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:k,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!K.data,icon:"trash",onClick:function(){return S("bufferOption",{option:"clear",id:A})},children:"Clear"}),(0,e.jsx)(t.$n,{disabled:!K.data,icon:"pen",onClick:function(){return S("bufferOption",{option:"changeLabel",id:A})},children:"Rename"}),(0,e.jsx)(t.$n,{disabled:!K.data||!M.hasDisk,icon:"save",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return S("bufferOption",{option:"saveDisk",id:A})},children:"Export"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Write",children:[(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return S("bufferOption",{option:"saveUI",id:A})},children:"Subject U.I"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return S("bufferOption",{option:"saveUIAndUE",id:A})},children:"Subject U.I and U.E."}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return S("bufferOption",{option:"saveSE",id:A})},children:"Subject S.E."}),(0,e.jsx)(t.$n,{disabled:!M.hasDisk||!M.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return S("bufferOption",{option:"loadDisk",id:A})},children:"From Disk"})]}),!!K.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Subject",children:K.owner||(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[K.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!K.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(t.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,mb:"0",onClick:function(){return S("bufferOption",{option:"createInjector",id:A})},children:"Injector"}),(0,e.jsx)(t.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,mb:"0",onClick:function(){return S("bufferOption",{option:"createInjector",id:A,block:1})},children:"Block Injector"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return S("bufferOption",{option:"transfer",id:A})},children:"Subject"})]})]})]}),!K.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},C=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.hasDisk,R=M.disk;return(0,e.jsx)(t.wn,{title:"Data Disk",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!A||!R.data,icon:"trash",onClick:function(){return S("wipeDisk")},children:"Wipe"}),(0,e.jsx)(t.$n,{disabled:!A,icon:"eject",onClick:function(){return S("ejectDisk")},children:"Eject"})]}),children:A?R.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:R.label?R.label:"No label"}),(0,e.jsx)(t.Ki.Item,{label:"Subject",children:R.owner?R.owner:(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[R.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!R.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(t.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(t.In,{name:"save-o",size:"4"}),(0,e.jsx)("br",{}),"No disk inserted."]})})},y=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.isBeakerLoaded,R=M.beakerVolume,K=M.beakerLabel;return(0,e.jsx)(t.wn,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.jsx)(t.$n,{disabled:!A,icon:"eject",onClick:function(){return S("ejectBeaker")},children:"Eject"}),children:A?(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Inject",children:[x.map(function(N,k){return(0,e.jsx)(t.$n,{disabled:N>R,icon:"syringe",onClick:function(){return S("injectRejuvenators",{amount:N})},children:N},k)}),(0,e.jsx)(t.$n,{disabled:R<=0,icon:"syringe",onClick:function(){return S("injectRejuvenators",{amount:R})},children:"All"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:K||"No label"}),R?(0,e.jsxs)(t.az,{color:"good",children:[R," unit",R===1?"":"s"," remaining"]}):(0,e.jsx)(t.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",size:"4"}),(0,e.jsx)("br",{}),"No beaker loaded."]})})},O=function(I){return(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"spinner",size:"5",spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(t.In,{name:"radiation"}),"\xA0Irradiating occupant\xA0",(0,e.jsx)(t.In,{name:"radiation"})]})}),(0,e.jsx)(t.az,{color:"label",children:(0,e.jsxs)("h3",{children:["For ",I.duration," second",I.duration===1?"":"s"]})})]})},b=function(I){for(var P=function(Z){for(var G=function(ie){var te=ie+1;V.push((0,e.jsx)(t.$n,{selected:K===H&&N===te,mb:"0",onClick:function(){return M(F,{block:H,subblock:te})},children:W[Z+ie]}))},H=Z/k+1,V=[],q=0;q1?"Dangerous!":null]},C.stage)})||(0,e.jsx)(t.az,{children:"No virus sample loaded."})}),(0,e.jsxs)(t.wn,{level:2,title:"Affected Species",color:"label",children:[!p||!p.length?"None":null,p.sort().join(", ")]}),(0,e.jsxs)(t.wn,{level:2,title:"Reverse Engineering",children:[(0,e.jsx)(t.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),v.map(function(C){return(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return h("grab",{grab:C.reference})},children:C.stage},C.stage)}),(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return h("affected_species")},children:"Species"})]})]})]})},g=function(x){var d=(0,s.Oc)(),h=d.act,m=d.data,u=m.dish_inserted,v=m.buffer,c=m.species_buffer,f=m.effects,p=m.info,C=m.growth,y=m.affected_species,O=m.busy;return(0,e.jsxs)(t.wn,{title:"Storage",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Memory Buffer",children:v?(0,e.jsxs)(t.az,{children:[v.name," (",v.stage,")"]}):c?(0,e.jsx)(t.az,{children:c}):"Empty"})}),(0,e.jsx)(t.$n,{mt:1,icon:"save",disabled:!v&&!c,onClick:function(){return h("disk")},children:"Save To Disk"}),v?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"pen",disabled:v.stage>1,onClick:function(){return h("splice",{splice:1})},children:"Splice #1"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:v.stage>2,onClick:function(){return h("splice",{splice:2})},children:"Splice #2"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:v.stage>3,onClick:function(){return h("splice",{splice:3})},children:"Splice #3"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:v.stage>4,onClick:function(){return h("splice",{splice:4})},children:"Splice #4"})]}):c?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"pen",disabled:!c||p,onClick:function(){return h("splice",{splice:5})},children:"Splice Species"})}):null]})}},67225:function(_,j,n){"use strict";n.r(j),n.d(j,{DishIncubator:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(41242),a=n(2738),o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.on,u=h.system_in_use,v=h.food_supply,c=h.radiation,f=h.growth,p=h.toxins,C=h.chemicals_inserted,y=h.can_breed_virus,O=h.chemical_volume,b=h.max_chemical_volume,I=h.dish_inserted,P=h.blood_already_infected,S=h.virus,M=h.analysed,A=h.infection_rate;return(0,e.jsx)(a.p8,{width:400,height:600,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:m,onClick:function(){return d("power")},children:m?"On":"Off"}),children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"radiation",onClick:function(){return d("rad")},children:"Add Radiation"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",disabled:!u,onClick:function(){return d("flush")},children:"Flush System"})})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:v})}),(0,e.jsx)(t.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:100,color:c>=50?"bad":f>=25?"average":"good",value:c,children:[(0,r.qQ)(c*1e4)," \xB5Sv"]})}),(0,e.jsx)(t.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:p})})]})]}),(0,e.jsx)(t.wn,{title:y?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eject",disabled:!C,onClick:function(){return d("ejectchem")},children:"Eject "+(y?"Vial":"Chemicals")}),(0,e.jsx)(t.$n,{icon:"virus",disabled:!y,onClick:function(){return d("virus")},children:"Breed Virus"})]}),children:C&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Volume",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:b,value:O,children:[O,"/",b]})}),(0,e.jsxs)(t.Ki.Item,{label:"Breeding Environment",color:y?"good":"average",children:[I?y?"Suitable":"No hemolytic samples detected":"N/A",P?(0,e.jsx)(t.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(t.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!I,onClick:function(){return d("ejectdish")},children:"Eject Dish"}),children:I?S?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:f})}),(0,e.jsx)(t.Ki.Item,{label:"Infection Rate",children:M?A:"Unknown."})]}):(0,e.jsx)(t.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(t.az,{color:"average",children:"No dish loaded."})})]})})}},43978:function(_,j,n){"use strict";n.r(j),n.d(j,{DisposalBin:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.mode,m=d.pressure,u=d.isAI,v=d.panel_open,c=d.flushing,f,p;return h===2?(f="good",p="Ready"):h<=0?(f="bad",p="N/A"):h===1?(f="average",p="Pressurizing"):(f="average",p="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"State",color:f,children:p}),(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:m,minValue:0,maxValue:100})})]}),(0,e.jsx)(t.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Handle",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:u||v,selected:c?null:!0,onClick:function(){return x("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:u||v,selected:c?!0:null,onClick:function(){return x("engageHandle")},children:"Engaged"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Power",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:h===-1,selected:h?null:!0,onClick:function(){return x("pumpOff")},children:"Off"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:h===-1,selected:h?!0:null,onClick:function(){return x("pumpOn")},children:"On"})]}),(0,e.jsx)(t.Ki.Item,{label:"Eject",children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",disabled:u,onClick:function(){return x("eject")},children:"Eject Contents"})})]})]})})})}},67415:function(_,j,n){"use strict";n.r(j),n.d(j,{DroneConsole:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.drones,m=d.areas,u=d.selected_area,v=d.fabricator,c=d.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(t.$n,{disabled:!v,selected:c,icon:"power-off",onClick:function(){return x("toggle_fab")},children:c?"Enabled":"Disabled"}),children:v?(0,e.jsx)(t.az,{color:"good",children:"Linked."}):(0,e.jsxs)(t.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return x("search_fab")},children:"Search for Fabricator"})]})}),(0,e.jsxs)(t.wn,{title:"Request Drone",children:[(0,e.jsx)(t.ms,{options:m?m.sort():null,selected:u,width:"100%",onSelected:function(f){return x("set_dcall_area",{area:f})}}),(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return x("ping")},children:"Send Ping"})]}),(0,e.jsx)(t.wn,{title:"Maintenance Units",children:h&&h.length?(0,e.jsx)(t.Ki,{children:h.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return x("resync",{ref:f.ref})},children:"Resync"}),(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",color:"red",onClick:function(){return x("shutdown",{ref:f.ref})},children:"Shutdown"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:f.loc}),(0,e.jsxs)(t.Ki.Item,{label:"Charge",children:[f.charge," / ",f.maxCharge]}),(0,e.jsx)(t.Ki.Item,{label:"Active",children:f.active?"Yes":"No"})]})},f.name)})}):(0,e.jsx)(t.az,{color:"bad",children:"No drones detected."})})]})})}},10412:function(_,j,n){"use strict";n.r(j),n.d(j,{EmbeddedController:function(){return x}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(92736),o=(0,a.h)("fuck"),g={},x=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=K.internalTemplateName,k=g[N];if(!k)throw Error("Unable to find Component for template name: "+N);return(0,e.jsx)(r.p8,{width:450,height:340,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(k,{})})})},d=function(M){var A=M.bars;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsx)(t.Ki,{children:A.map(function(R){return(0,e.jsx)(t.Ki.Item,{label:R.label,children:(0,e.jsx)(t.z2,{color:R.color(R.value),minValue:R.minValue,maxValue:R.maxValue,value:R.value,children:R.textValue})},R.label)})})})},h=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act,N=!0;R.interior_status&&R.interior_status.state==="open"?N=!1:R.external_pressure&&R.chamber_pressure&&(N=!(Math.abs(R.external_pressure-R.chamber_pressure)>5));var k=!0;return R.exterior_status&&R.exterior_status.state==="open"?k=!1:R.internal_pressure&&R.chamber_pressure&&(k=!(Math.abs(R.internal_pressure-R.chamber_pressure)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:R.airlock_disabled,icon:"arrow-left",onClick:function(){return K("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(t.$n,{disabled:R.airlock_disabled,icon:"arrow-right",onClick:function(){return K("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:R.airlock_disabled,color:N?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return K("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n.Confirm,{disabled:R.airlock_disabled,color:k?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return K("force_int")},children:"Force Interior Door"})]})]})},m=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(u,{}),undocking:(0,e.jsx)(t.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(t.az,{color:"good",children:"INITIALIZING..."})},k=(0,e.jsx)(t.az,{color:"bad",children:"ERROR"});return R.exterior_status.state==="open"?k=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}):R.exterior_status.lock==="unlocked"?k=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}):R.exterior_status.lock==="locked"&&(k=(0,e.jsx)(t.az,{color:"good",children:"SECURED"})),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Escape Pod Status",children:N[R.docking_status]}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:k})]})})},u=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act;return R.armed?(0,e.jsx)(t.az,{color:"average",children:"ARMED"}):(0,e.jsx)(t.az,{color:"good",children:"SYSTEMS OK"})},v=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:!R.override_enabled,icon:"exclamation-triangle",color:R.docking_status!=="docked"?"bad":"",onClick:function(){return K("force_door")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n,{selected:R.override_enabled,color:R.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",onClick:function(){return K("toggle_override")},children:"Override"})]})},c=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(t.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(t.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(t.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"NOT IN USE"})},k=N[R.docking_status];return R.override_enabled&&(k=(0,e.jsxs)(t.az,{color:"bad",children:[R.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),k},f=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=function(F){return F<80||F>120?"bad":F<95||F>110?"average":"good"},k=[{minValue:0,maxValue:202,value:K.external_pressure,label:"External Pressure",textValue:K.external_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.internal_pressure,label:"Internal Pressure",textValue:K.internal_pressure+" kPa",color:N}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{bars:k}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return R("purge")},children:"Purge"}),(0,e.jsx)(t.$n,{icon:"lock-open",onClick:function(){return R("secure")},children:"Secure"})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!K.processing,icon:"ban",color:"bad",onClick:function(){return R("abort")},children:"Abort"})})]})]})};g.AirlockConsoleAdvanced=f;var p=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{bars:N}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!K.processing,icon:"ban",color:"bad",onClick:function(){return R("abort")},children:"Abort"})})]})]})};g.AirlockConsoleSimple=p;var C=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}},{minValue:0,maxValue:100,value:K.chamber_phoron,label:"Chamber Phoron",textValue:K.chamber_phoron+" mol",color:function(k){return k>5?"bad":k>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{bars:N}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!K.processing,icon:"ban",color:"bad",onClick:function(){return R("abort")},children:"Abort"})})]})]})};g.AirlockConsolePhoron=C;var y=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Dock",buttons:K.airlock_disabled||K.override_enabled?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",onClick:function(){return R("toggle_override")},children:"Override"}):null,children:(0,e.jsx)(c,{})}),(0,e.jsx)(d,{bars:N}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!K.processing,icon:"ban",color:"bad",onClick:function(){return R("abort")},children:"Abort"})})]})]})};g.AirlockConsoleDocking=y;var O=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=(0,e.jsx)(t.az,{color:"bad",children:"ERROR"});return K.exterior_status.state==="open"?N=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}):K.exterior_status.lock==="unlocked"?N=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}):K.exterior_status.lock==="locked"&&(N=(0,e.jsx)(t.az,{color:"good",children:"SECURED"})),(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!K.override_enabled,onClick:function(){return R("force_door")},children:"Force exterior door"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",onClick:function(){return R("toggle_override")},children:"Override"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:N})]})})};g.DockingConsoleSimple=O;var b=function(M){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Docking Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(t.wn,{title:"Airlocks",children:A.airlocks.length?(0,e.jsx)(t.Ki,{children:A.airlocks.map(function(R){return(0,e.jsx)(t.Ki.Item,{color:R.override_enabled?"bad":"good",label:R.name,children:R.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},R.name)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(t.In,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})};g.DockingConsoleMulti=b;var I=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=K.interior_status.state==="open"||K.exterior_status.state==="closed",k=K.exterior_status.state==="open"||K.interior_status.state==="closed";return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:N?"arrow-left":"exclamation-triangle",onClick:function(){R(N?"cycle_ext_door":"force_ext")},children:N?"Cycle To Exterior":"Lock Exterior Door"}),(0,e.jsx)(t.$n,{icon:k?"arrow-right":"exclamation-triangle",onClick:function(){R(k?"cycle_int_door":"force_int")},children:k?"Cycle To Interior":"Lock Interior Door"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Exterior Door Status",children:K.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.jsx)(t.Ki.Item,{label:"Interior Door Status",children:K.interior_status.state==="closed"?"Locked":"Open"})]})})};g.DoorAccessConsole=I;var P=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(v,{}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:K.armed,color:K.armed?"bad":"average",onClick:function(){return R("manual_arm")},children:"ARM"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!K.can_force,color:"bad",onClick:function(){return R("force_launch")},children:"MANUAL EJECT"})]})]})]})};g.EscapePodConsole=P;var S=function(M){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsx)(v,{})})]})};g.EscapePodBerthConsole=S},26356:function(_,j,n){"use strict";n.r(j),n.d(j,{DisplayDetails:function(){return x},EntityNarrate:function(){return o},EntitySelection:function(){return g},ModeSelector:function(){return d},NarrationInput:function(){return h}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data;return(0,e.jsx)(a.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(g,{})})}),(0,e.jsx)(r.so.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsx)(r.so.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Details",children:(0,e.jsx)(x,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(d,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(h,{})})]})})})]})})})})},g=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=c.selection_mode,p=c.multi_id_selection,C=c.entity_names;return(0,e.jsx)(r.so,{direction:"column",grow:!0,children:(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Choose!",buttons:(0,e.jsx)(r.$n,{selected:f,onClick:function(){return v("change_mode_multi")},children:"Multi-Selection"}),children:(0,e.jsx)(r.tU,{vertical:!0,children:C.map(function(y){return(0,e.jsx)(r.tU.Tab,{selected:p.includes(y),onClick:function(){return v("select_entity",{id_selected:y})},children:(0,e.jsx)(r.az,{inline:!0,children:y})},y)})})})})})},x=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=c.selection_mode,p=c.number_mob_selected,C=c.selected_id,y=c.selected_name,O=c.selected_type;return f?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",p]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",y," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",O," ",(0,e.jsx)("br",{})]})},d=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=c.privacy_select,p=c.mode_select;return(0,e.jsxs)(r.so,{direction:"row",children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return v("change_mode_privacy")},selected:f,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(f?"Click here to disable subtle mode":"Click here to enable subtle mode"),children:f?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return v("change_mode_narration")},selected:p,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(p?"Click here to emote visibly.":"Click here to talk audiably."),children:p?"Currently: Emoting":"Currently: Talking"})})]})},h=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=(0,s.useState)(""),p=f[0],C=f[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return v("narrate",{message:p})},children:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(y,O){return C(O)},value:p||""})})})})}},63183:function(_,j,n){"use strict";n.r(j),n.d(j,{ExonetNode:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.on,m=d.allowPDAs,u=d.allowCommunicators,v=d.allowNewscasters,c=d.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:h,onClick:function(){return x("toggle_power")},children:"Power "+(h?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:m,onClick:function(){return x("toggle_PDA_port")},children:m?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:u,onClick:function(){return x("toggle_communicator_port")},children:u?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return x("toggle_newscaster_port")},children:v?"Open":"Closed"})})]})}),(0,e.jsx)(t.wn,{title:"Logging",children:(0,e.jsxs)(t.so,{wrap:"wrap",children:[c.map(function(f,p){return(0,e.jsx)(t.so.Item,{m:"2px",basis:"49%",grow:p%2,children:f},p)}),!c||c.length===0?(0,e.jsx)(t.az,{color:"average",children:"No logs found."}):null]})})]})})}},23162:function(_,j,n){"use strict";n.r(j),n.d(j,{ExosuitFabricator:function(){return A},Materials:function(){return K}});var e=n(20462),s=n(7402),t=n(4089),r=n(65380),a=n(61282),o=n(61358),g=n(7081),x=n(16754),d=n(41242),h=n(2738);function m(G,H){(H==null||H>G.length)&&(H=G.length);for(var V=0,q=new Array(H);V=G.length?{done:!0}:{done:!1,value:G[q++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},f=0,p=1,C=2,y,O=(y={},y[f]=!1,y[p]="average",y[C]="bad",y),b=function(G){var H={};return G.forEach(function(V){H[V.name]=V.amount}),H},I=function(G,H,V){return G>V?{color:C,deficit:G-V}:H>V?{color:p,deficit:G}:G+H>V?{color:p,deficit:G+H-V}:{color:f,deficit:0}},P=function(G,H,V){var q={textColor:f};return Object.keys(V.cost).forEach(function(ie){q[ie]=I(V.cost[ie],H[ie],G[ie]),q[ie].color>q.textColor&&(q.textColor=q[ie].color)}),q},S=function(G,H){var V={},q={},ie={},te={};return H.forEach(function(ue,ce){te[ce]=f,Object.keys(ue.cost).forEach(function(me){V[me]=V[me]||0,ie[me]=ie[me]||0,q[me]=I(ue.cost[me],V[me],G[me]),q[me].color!==f?te[ce]1&&te0});return ue.length===0?(0,e.jsxs)(x.az,{textAlign:"center",children:[(0,e.jsx)(x.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(x.so,{wrap:"wrap",children:ue.map(function(ce){return(0,e.jsxs)(x.so.Item,{width:"80px",children:[(0,e.jsx)(N,{name:ce.name,amount:ce.amount,formatsi:!0}),!ie&&(0,e.jsx)(x.az,{mt:1,style:{"text-align":"center"},children:(0,e.jsx)(R,{material:ce})})]},ce.name)||null})})},N=function(G){var H=G.name,V=G.amount,q=G.formatsi,ie=G.formatmoney,te=G.color,ue=G.style,ce="0";return V<1&&V>0?ce=(0,t.Mg)(V,2):q?ce=(0,d.QL)(V,0):ie?ce=(0,d.up)(V):ce=V,(0,e.jsxs)(x.so,{direction:"column",align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.m_,{position:"bottom",content:(0,a.Sn)(H),children:(0,e.jsx)(x.az,{className:(0,r.Ly)(["sheetmaterials32x32",c[H]]),position:"relative",style:ue})})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{textColor:te,style:{"text-align":"center"},children:ce})})]})},k=function(G){var H=(0,g.Oc)().data,V=H.partSets||[],q=H.buildableParts||{},ie=(0,g.QY)("part_tab",V.length?q[0]:""),te=ie[0],ue=ie[1];return(0,e.jsx)(x.tU,{vertical:!0,children:V.map(function(ce){return!!q[ce]&&(0,e.jsx)(x.tU.Tab,{selected:ce===te,disabled:!q[ce],onClick:function(){return ue(ce)},children:ce},ce)})})},F=function(G){var H=(0,g.Oc)().data,V=function(Le){for(var Be=v(Le),vn;!(vn=Be()).done;){var gn=vn.value;if(ie[gn])return gn}return null},q=H.partSets||[],ie=H.buildableParts||[],te=G.queueMaterials,ue=G.materials,ce=(0,g.QY)("part_tab",V(q)),me=ce[0],xe=ce[1],ve=(0,g.QY)("search_text",""),je=ve[0],we=ve[1];if(!me||!ie[me]){var Je=V(q);if(Je)xe(Je);else return}var ze;return je?(ze=[],M(je,ie).forEach(function(Le){Le.format=P(ue,te,Le),ze.push(Le)})):(ze={Parts:[]},ie[me].forEach(function(Le){if(Le.format=P(ue,te,Le),!Le.subCategory){ze.Parts.push(Le);return}Le.subCategory in ze||(ze[Le.subCategory]=[]),ze[Le.subCategory].push(Le)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.wn,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{mr:1,children:(0,e.jsx)(x.In,{name:"search"})}),(0,e.jsx)(x.so.Item,{grow:1,children:(0,e.jsx)(x.pd,{fluid:!0,placeholder:"Search for...",value:je,onInput:function(Le,Be){return we(Be)}})})]})}),!!je&&(0,e.jsx)(W,{name:"Search Results",parts:ze,forceShow:!0,placeholder:"No matching results..."})||Object.keys(ze).map(function(Le){return(0,e.jsx)(W,{name:Le,parts:ze[Le]},Le)})]})},W=function(G){var H=(0,g.Oc)(),V=H.act,q=H.data,ie=q.buildingPart,te=G.parts,ue=G.name,ce=G.forceShow,me=G.placeholder,xe=(0,g.QY)("display_mats",!1),ve=xe[0];return(!!te.length||ce)&&(0,e.jsxs)(x.wn,{title:ue,buttons:(0,e.jsx)(x.$n,{disabled:!te.length,color:"good",icon:"plus-circle",onClick:function(){return V("add_queue_set",{part_list:te.map(function(je){return je.id})})},children:"Queue All"}),children:[!te.length&&me,te.map(function(je){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsxs)(x.so,{align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{disabled:ie||je.format.textColor===C,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return V("build_part",{id:je.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return V("add_queue_part",{id:je.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:O[je.format.textColor],children:je.name})}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+je.printTime+"s. "+(je.desc||""),tooltipPosition:"left"})})]}),ve&&(0,e.jsx)(x.so,{mb:2,children:Object.keys(je.cost).map(function(we){return(0,e.jsx)(x.so.Item,{width:"50px",color:O[je.format[we].color],children:(0,e.jsx)(N,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:we,amount:je.cost[we]})},we)})})]},je.name)})]})},J=function(G){var H=(0,g.Oc)(),V=H.act,q=H.data,ie=q.isProcessingQueue,te=q.queue||[],ue=G.queueMaterials,ce=G.missingMaterials,me=G.textColors;return(0,e.jsxs)(x.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(x.so.Item,{height:0,grow:1,children:(0,e.jsx)(x.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.$n.Confirm,{disabled:!te.length,color:"bad",icon:"minus-circle",onClick:function(){return V("clear_queue")},children:"Clear Queue"}),!!ie&&(0,e.jsx)(x.$n,{disabled:!te.length,icon:"stop",onClick:function(){return V("stop_queue")},children:"Stop"})||(0,e.jsx)(x.$n,{disabled:!te.length,icon:"play",onClick:function(){return V("build_queue")},children:"Build Queue"})]}),children:(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Z,{})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Q,{textColors:me})})]})})}),!!te.length&&(0,e.jsx)(x.so.Item,{mt:1,children:(0,e.jsx)(x.wn,{title:"Material Cost",children:(0,e.jsx)(X,{queueMaterials:ue,missingMaterials:ce})})})]})},X=function(G){var H=G.queueMaterials,V=G.missingMaterials;return(0,e.jsx)(x.so,{wrap:"wrap",children:Object.keys(H).map(function(q){return(0,e.jsxs)(x.so.Item,{width:"12%",children:[(0,e.jsx)(N,{formatmoney:!0,name:q,amount:H[q]}),!!V[q]&&(0,e.jsx)(x.az,{textColor:"bad",style:{"text-align":"center"},children:(0,d.up)(V[q])})]},q)})})},Q=function(G){var H=(0,g.Oc)(),V=H.act,q=H.data,ie=G.textColors,te=q.queue||[];return te.length?te.map(function(ue,ce){return(0,e.jsx)(x.az,{children:(0,e.jsxs)(x.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(x.so.Item,{basis:"content",children:(0,e.jsx)(x.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return V("del_queue_part",{index:ce+1})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:O[ie[ce]],children:ue.name})})]})},ue.name)}):(0,e.jsx)(e.Fragment,{children:"No parts in queue."})},Z=function(G){var H=(0,g.Oc)().data,V=H.buildingPart,q=H.storedPart;if(q){var ie=q.name;return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:ie}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(V){var te=V.name,ue=V.duration,ce=V.printTime,me=Math.ceil(ue/10);return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:ce,value:ue,children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:te}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:me>=0&&me+"s"||"Dispensing..."})]})})})}}},94475:function(_,j,n){"use strict";n.r(j),n.d(j,{Farmbot:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.on,m=d.locked,u=d.tank,v=d.tankVolume,c=d.tankMaxVolume,f=d.waters_trays,p=d.refills_water,C=d.uproots_weeds,y=d.replaces_nutriment,O=d.collects_produce,b=d.removes_dead;return(0,e.jsx)(r.p8,{width:450,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:h,onClick:function(){return x("power")},children:h?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Water Tank",children:u&&(0,e.jsxs)(t.z2,{value:v,maxValue:c,children:[v," / ",c]})||(0,e.jsx)(t.az,{color:"average",children:"No water tank detected."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:m?"good":"bad",children:m?"Locked":"Unlocked"})]})}),!m&&(0,e.jsxs)(t.wn,{title:"Behavior Controls",children:[(0,e.jsx)(t.wn,{level:2,title:"Watering Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Water plants",children:(0,e.jsx)(t.$n,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return x("water")},children:f?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Refill watertank",children:(0,e.jsx)(t.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("refill")},children:p?"Yes":"No"})})]})}),(0,e.jsx)(t.wn,{level:2,title:"Weeding controls",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Weed plants",children:(0,e.jsx)(t.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("weed")},children:C?"Yes":"No"})})})}),(0,e.jsx)(t.wn,{level:2,title:"Nutriment controls",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Replace fertilizer",children:(0,e.jsx)(t.$n,{icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){return x("replacenutri")},children:y?"Yes":"No"})})})})]})||null]})})}},69393:function(_,j,n){"use strict";n.r(j),n.d(j,{Fax:function(){return g},FaxContent:function(){return x}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(2455),o=n(8491),g=function(m){var u=(0,s.Oc)().data,v=u.authenticated,c=u.copyItem,f=340;return c&&(f=358),v?(0,e.jsx)(r.p8,{width:600,height:f,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(a.LoginInfo,{}),(0,e.jsx)(x,{})]})}):(0,e.jsx)(r.p8,{width:600,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(o.LoginScreen,{machineType:"Fax"})]})})},x=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.bossName,p=c.copyItem,C=c.cooldown,y=c.destination,O=c.adminDepartments,b=new Set(O);return(0,e.jsxs)(t.wn,{children:[!!C&&(0,e.jsx)(t.IC,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.jsx)(t.Ki,{children:(0,e.jsxs)(t.Ki.Item,{label:"Network",children:[f," Quantum Entanglement Network"]})}),p&&(0,e.jsxs)(t.az,{mt:1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Currently Sending",children:[p," ",(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return v("rename")},tooltip:"Renames the paper. This changes its preview in staff chat when sending to centcom/job board/supply (admin departments). It is advisable to name your faxes something self-explanatory for quick response."})]}),(0,e.jsx)(t.Ki.Item,{label:"Sending To",children:(0,e.jsx)(t.$n,{icon:"map-marker-alt",onClick:function(){return v("dept")},children:y})})]}),(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return v("send")},fluid:!0,children:"Send"})]})||(0,e.jsx)(t.az,{mt:1,children:"Please insert item to transmit."}),(0,e.jsx)(h,{})]})},d=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.copyItem;return f?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return v("remove")},children:"Remove Item"})}):null},h=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.adminDepartments,p=c.destination,C=c.copyItem,y=new Set(f),O="1rem";return C&&(O="1.5rem"),!C||C&&y.has(p)?(0,e.jsxs)(t.az,{mt:"1.5rem",children:[(0,e.jsx)("b",{children:"Or submit an automated staff request."})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsxs)("i",{children:["The automated staff request form automatically populates the company job board ((sends to discord, but does not ping.)) without requiring intervention from central command clerks and officers. ",(0,e.jsx)("br",{}),"It also works without requiring a written request to be composed."]}),(0,e.jsx)("br",{}),(0,e.jsx)(t.az,{mt:"1.5rem",children:(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return v("send_automated_staff_request")},fluid:!0,children:"Send Automated Staff Request"})})]}):null}},914:function(_,j,n){"use strict";n.r(j),n.d(j,{FileCabinet:function(){return o}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),d=x.act,h=x.data,m=h.contents,u=(0,s.Ul)(function(v){return v.name})(m||[]);return(0,e.jsx)(a.p8,{width:350,height:300,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:u.map(function(v){return(0,e.jsx)(r.$n,{fluid:!0,icon:"file",onClick:function(){return d("retrieve",{ref:v.ref})},children:v.name},v.ref)})})})})}},10935:function(_,j,n){"use strict";n.r(j),n.d(j,{Floorbot:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.on,m=d.open,u=d.locked,v=d.vocal,c=d.amount,f=d.possible_bmode,p=d.improvefloors,C=d.eattiles,y=d.maketiles,O=d.bmode;return(0,e.jsx)(r.p8,{width:390,height:310,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:h,onClick:function(){return x("start")},children:h?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Tiles Left",children:(0,e.jsx)(t.zv,{value:c})}),(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:m?"bad":"good",children:m?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return x("vocal")},children:v?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Improves Floors",children:(0,e.jsx)(t.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("improve")},children:p?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Finds Tiles",children:(0,e.jsx)(t.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("tiles")},children:C?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.jsx)(t.$n,{icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){return x("make")},children:y?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Bridge Mode",children:(0,e.jsx)(t.ms,{over:!0,width:"100%",placeholder:"Disabled",selected:O,options:f,onSelected:function(b){return x("bridgemode",{dir:b})}})})]})})||null]})})}},18485:function(_,j,n){"use strict";n.r(j),n.d(j,{GasPump:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.on,m=d.pressure_set,u=d.last_flow_rate,v=d.last_power_draw,c=d.max_power_draw;return(0,e.jsx)(r.p8,{width:470,height:290,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(t.zv,{value:u/10})," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Load",children:(0,e.jsx)(t.z2,{value:v,minValue:0,maxValue:c,color:v=100?f="Running":!h&&m>0&&(f="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",confirmContent:h?"This will disable gravity!":"This will enable gravity!",onClick:function(){return x("gentoggle")},children:"Toggle Breaker"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Breaker Setting",children:h?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",children:["Generator ",f]}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Status",children:[m,"%"]})]})})})})}},36903:function(_,j,n){"use strict";n.r(j),n.d(j,{GuestPass:function(){return o}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),d=x.act,h=x.data,m=h.access,u=h.area,v=h.giver,c=h.giveName,f=h.reason,p=h.duration,C=h.mode,y=h.log,O=h.uid;return(0,e.jsx)(a.p8,{width:500,height:520,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:C===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",selected:!0,onClick:function(){return d("mode",{mode:0})},children:"Activity Log"}),children:[(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return d("print")},fluid:!0,mb:1,children:"Print"}),(0,e.jsx)(r.wn,{level:2,title:"Logs",children:y.length&&y.map(function(b){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}},b)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+O,buttons:(0,e.jsx)(r.$n,{icon:"scroll",onClick:function(){return d("mode",{mode:1})},children:"Activity Log"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{onClick:function(){return d("id")},children:v||"Insert ID"})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{onClick:function(){return d("giv_name")},children:c})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{onClick:function(){return d("reason")},children:f})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{onClick:function(){return d("duration")},children:p})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,onClick:function(){return d("issue")},children:"Issue Pass"}),(0,e.jsx)(r.wn,{title:"Access",level:2,children:(0,s.Ul)(function(b){return b.area_name})(u).map(function(b){return(0,e.jsx)(r.$n.Checkbox,{checked:b.on,onClick:function(){return d("access",{access:b.area})},children:b.area_name},b.area)})})]})})})}},52149:function(_,j,n){"use strict";n.r(j),n.d(j,{GyrotronControl:function(){return a},GyrotronControlContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.gyros;return(0,e.jsx)(t.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return d("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(t.XI.Cell,{children:"Strength"})]}),m.map(function(u){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:u.name}),(0,e.jsxs)(t.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:u.active,disabled:!u.deployed,onClick:function(){return d("toggle_active",{gyro:u.ref})},children:u.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.active&&"yellow",value:u.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(v,c){return d("set_rate",{gyro:u.ref,rate:c})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.active&&"yellow",value:u.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(v,c){return d("set_str",{gyro:u.ref,str:c})}})})]},u.name)})]})})}},93757:function(_,j,n){"use strict";n.r(j),n.d(j,{Holodeck:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.supportedPrograms,m=d.restrictedPrograms,u=d.currentProgram,v=d.isSilicon,c=d.safetyDisabled,f=d.emagged,p=d.gravity,C=h;return c&&(C=C.concat(m)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:C.map(function(y){return(0,e.jsx)(t.$n,{color:m.indexOf(y)!==-1?"bad":null,icon:"eye",selected:u===y,fluid:!0,onClick:function(){return x("program",{program:y})},children:y},y)})}),!!v&&(0,e.jsx)(t.wn,{title:"Override",children:(0,e.jsxs)(t.$n,{icon:"exclamation-triangle",fluid:!0,disabled:f,color:c?"good":"bad",onClick:function(){return x("AIoverride")},children:[!!f&&"Error, unable to control. ",c?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:c?(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(t.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{icon:"user-astronaut",selected:p,onClick:function(){return x("gravity")},children:p?"Enabled":"Disabled"})})]})})]})})}},2534:function(_,j,n){"use strict";n.r(j),n.d(j,{ICAssembly:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.total_parts,c=u.max_components,f=u.total_complexity,p=u.max_complexity,C=u.battery_charge,y=u.battery_max,O=u.net_power,b=u.unremovable_circuits,I=u.removable_circuits;return(0,e.jsx)(o.p8,{width:600,height:380,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:v/c,maxValue:1,children:[v," / ",c," (",(0,s.LI)(v/c*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:f/p,maxValue:1,children:[f," / ",p," (",(0,s.LI)(f/p*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:C&&(0,e.jsxs)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:C/y,maxValue:1,children:[C," / ",y," (",(0,s.LI)(C/y*100,1),"%)"]})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:O===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:O,format:function(P){return"-"+(0,a.d5)(Math.abs(P))+"/s"}})})]})}),b.length&&(0,e.jsx)(x,{title:"Built-in Components",circuits:b})||null,I.length&&(0,e.jsx)(x,{title:"Removable Components",circuits:I})||null]})})},x=function(d){var h=(0,t.Oc)().act,m=d.title,u=d.circuits;return(0,e.jsx)(r.wn,{title:m,children:(0,e.jsx)(r.Ki,{children:u.map(function(v){return(0,e.jsxs)(r.Ki.Item,{label:v.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("open_circuit",{ref:v.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("rename_circuit",{ref:v.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("scan_circuit",{ref:v.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("remove_circuit",{ref:v.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("bottom_circuit",{ref:v.ref})},children:"Move to Bottom"})]},v.ref)})})})}},42821:function(_,j,n){"use strict";n.r(j),n.d(j,{ICCircuit:function(){return g}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=v.name,f=v.desc,p=v.displayed_name,C=v.removable,y=v.complexity,O=v.power_draw_idle,b=v.power_draw_per_use,I=v.extended_desc,P=v.inputs,S=v.outputs,M=v.activators;return(0,e.jsx)(o.p8,{width:600,height:400,resizable:!0,title:p,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return u("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return u("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return u("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:y}),O&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,a.d5)(O)})||null,b&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,a.d5)(b)})||null]}),I]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[P.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(x,{list:P})})})||null,(0,e.jsx)(r.so.Item,{basis:P.length&&S.length?"33%":P.length||S.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:p,mb:1,children:(0,e.jsx)(r.az,{children:f})})}),S.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(x,{list:S})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:M.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return u("pin_name",{pin:A.ref})},children:A.pulse_out?"":""}),(0,e.jsx)(d,{pin:A})]},A.name)})})]})]})})},x=function(h){var m=(0,t.Oc)().act,u=h.list;return u.map(function(v){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return m("pin_name",{pin:v.ref})},children:[(0,s.jT)(v.type),": ",v.name]}),(0,e.jsx)(r.$n,{onClick:function(){return m("pin_data",{pin:v.ref})},children:v.data}),(0,e.jsx)(d,{pin:v})]},v.ref)})},d=function(h){var m=(0,t.Oc)().act,u=h.pin;return u.linked.map(function(v){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return m("pin_unwire",{pin:u.ref,link:v.ref})},children:v.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return m("examine",{ref:v.holder_ref})},children:v.holder_name})]},v.ref)})}},57852:function(_,j,n){"use strict";n.r(j),n.d(j,{ICDetailer:function(){return o}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),d=x.act,h=x.data,m=h.detail_color,u=h.color_list;return(0,e.jsx)(a.p8,{width:420,height:254,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(u).map(function(v,c){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,s.Sn)(v),tooltipPosition:c%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return d("change_color",{color:v})},style:u[v]===m?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[v]},v)})})})})}},54840:function(_,j,n){"use strict";n.r(j),n.d(j,{ICPrinter:function(){return o}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.metal,c=u.max_metal,f=u.metal_per_sheet,p=u.debug,C=u.upgraded,y=u.can_clone,O=u.assembly_to_clone,b=u.categories;return(0,e.jsx)(a.p8,{width:600,height:630,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Status",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Metal",children:(0,e.jsxs)(r.z2,{value:v,maxValue:c,children:[v/f," / ",c/f," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:C?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:y?"Available":"Unavailable"})]}),(0,e.jsx)(r.az,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(x,{})]})})},g=function(d,h){return!(!d.can_build||d.cost>h.metal)},x=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.categories,c=u.debug,f=(0,t.QY)("categoryTarget",null),p=f[0],C=f[1],y=(0,s.pb)(function(O){return O.name===p})(v)[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,s.Ul)(function(O){return O.name})(v).map(function(O){return(0,e.jsx)(r.tU.Tab,{selected:p===O.name,onClick:function(){return C(O.name)},children:O.name},O.name)})})}),(0,e.jsx)(r.BJ.Item,{children:y&&(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,s.Ul)(function(O){return O.name})(y.items).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:O.name,labelColor:O.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!g(O,u),icon:"print",onClick:function(){return m("build",{build:O.path})},children:"Print"}),children:O.desc},O.name)})})})||"No category selected."})]})})}},62479:function(_,j,n){"use strict";n.r(j),n.d(j,{IDCard:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(67707),o=function(g){var x=(0,s.Oc)().data,d=x.registered_name,h=x.sex,m=x.species,u=x.age,v=x.assignment,c=x.fingerprint_hash,f=x.blood_type,p=x.dna_hash,C=x.photo_front,y=[{name:"Sex",val:h},{name:"Species",val:m},{name:"Age",val:u},{name:"Blood Type",val:f},{name:"Fingerprint",val:c},{name:"DNA Hash",val:p}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(t.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:C&&(0,e.jsx)("img",{src:C.substr(1,C.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.jsx)(t.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(t.so.Item,{basis:0,grow:1,children:(0,e.jsx)(t.Ki,{children:y.map(function(O){return(0,e.jsx)(t.Ki.Item,{label:O.name,children:O.val},O.name)})})})]}),(0,e.jsxs)(t.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:d})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(a.RankIcon,{rank:v})})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:v})})]})]})})})}},95331:function(_,j,n){"use strict";n.r(j),n.d(j,{IdentificationComputer:function(){return d},IdentificationComputerAccessModification:function(){return u},IdentificationComputerContent:function(){return h},IdentificationComputerPrinting:function(){return m},IdentificationComputerRegions:function(){return v}});var e=n(20462),s=n(7402),t=n(61282),r=n(61358),a=n(7081),o=n(16754),g=n(2738),x=n(58044),d=function(){return(0,e.jsx)(g.p8,{width:600,height:700,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(h,{})})})},h=function(c){var f=(0,a.Oc)(),p=f.act,C=f.data,y=c.ntos,O=C.mode,b=C.has_modify,I=C.printing,P=(0,e.jsx)(u,{ntos:y});return y&&!C.have_id_slot?P=(0,e.jsx)(x.CrewManifestContent,{}):I?P=(0,e.jsx)(m,{}):O===1&&(P=(0,e.jsx)(x.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(!y||!!C.have_id_slot)&&(0,e.jsx)(o.tU.Tab,{icon:"home",selected:O===0,onClick:function(){return p("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(o.tU.Tab,{icon:"home",selected:O===1,onClick:function(){return p("mode",{mode_target:1})},children:"Crew Manifest"}),!y||!!C.have_printer&&(0,e.jsx)(o.tU.Tab,{float:"right",icon:"print",onClick:function(){return p("print")},disabled:!O&&!b,color:"",children:"Print"})]}),P]})},m=function(c){return(0,e.jsx)(o.wn,{title:"Printing",children:"Please wait..."})},u=function(c){var f=(0,a.Oc)(),p=f.act,C=f.data,y=c.ntos,O=C.station_name,b=C.target_name,I=C.target_owner,P=C.scan_name,S=C.authenticated,M=C.has_modify,A=C.account_number,R=C.centcom_access,K=C.all_centcom_access,N=C.regions,k=C.id_rank,F=C.departments;return(0,e.jsxs)(o.wn,{title:"Access Modification",children:[!S&&(0,e.jsx)(o.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(o.$n,{icon:"eject",fluid:!0,onClick:function(){return p("modify")},children:b})}),!y&&(0,e.jsx)(o.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(o.$n,{icon:"eject",fluid:!0,onClick:function(){return p("scan")},children:P})})]}),!!S&&!!M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Details",level:2,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(o.pd,{value:I,fluid:!0,onInput:function(W,J){return p("reg",{reg:J})}})}),(0,e.jsx)(o.Ki.Item,{label:"Account Number",children:(0,e.jsx)(o.pd,{value:A,fluid:!0,onInput:function(W,J){return p("account",{account:J})}})}),(0,e.jsx)(o.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(o.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,confirmContent:"You are dismissing "+I+", confirm?",onClick:function(){return p("terminate")},children:"Dismiss "+I})})]})}),(0,e.jsx)(o.wn,{title:"Assignment",level:2,children:(0,e.jsxs)(o.XI,{children:[F.map(function(W){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{header:!0,verticalAlign:"middle",children:W.department_name}),(0,e.jsx)(o.XI.Cell,{children:W.jobs.map(function(J){return(0,e.jsx)(o.$n,{selected:J.job===k,onClick:function(){return p("assign",{assign_target:J.job})},children:(0,t.jT)(J.display_name)},J.job)})})]}),(0,e.jsx)(o.az,{mt:-1,children:"\xA0"})," "]},W.department_name)}),(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(o.XI.Cell,{children:(0,e.jsx)(o.$n,{onClick:function(){return p("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!R&&(0,e.jsx)(o.wn,{title:"Central Command",level:2,children:K.map(function(W){return(0,e.jsx)(o.az,{children:(0,e.jsx)(o.$n,{fluid:!0,selected:W.allowed,onClick:function(){return p("access",{access_target:W.ref,allowed:W.allowed})},children:(0,t.jT)(W.desc)})},W.ref)})})||(0,e.jsx)(o.wn,{title:O,level:2,children:(0,e.jsx)(v,{actName:"access"})})]})]})},v=function(c){var f=(0,a.Oc)(),p=f.act,C=f.data,y=c.actName,O=C.regions;return(0,e.jsx)(o.so,{wrap:"wrap",spacing:1,children:(0,s.Ul)(function(b){return b.name})(O).map(function(b){return(0,e.jsx)(o.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(o.wn,{title:b.name,height:"100%",children:(0,s.Ul)(function(I){return I.desc})(b.accesses).map(function(I){return(0,e.jsx)(o.az,{children:(0,e.jsx)(o.$n,{fluid:!0,selected:I.allowed,onClick:function(){return p(y,{access_target:I.ref,allowed:I.allowed})},children:(0,t.jT)(I.desc)})},I.ref)})})},b.name)})})}},15450:function(_,j,n){"use strict";n.r(j),n.d(j,{InventoryPanel:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.slots,m=d.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:h&&h.length&&h.map(function(u){return(0,e.jsx)(t.Ki.Item,{label:u.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:u.item?"hand-paper":"gift",onClick:function(){return x(u.act)},children:u.item||"Nothing"})},u.name)})})}),m&&(0,e.jsx)(t.wn,{title:"Actions",children:m&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("internals")},children:"Set Internals"})||null})||null]})})}},18893:function(_,j,n){"use strict";n.r(j),n.d(j,{InventoryPanelHuman:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.slots,m=d.specialSlots,u=d.internals,v=d.internalsValid,c=d.sensors,f=d.handcuffed,p=d.handcuffedParams,C=d.legcuffed,y=d.legcuffedParams,O=d.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[h&&h.length&&h.map(function(b){return(0,e.jsx)(t.Ki.Item,{label:b.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:b.item?"hand-paper":"gift",onClick:function(){return x(b.act,b.params)},children:b.item||"Nothing"})},b.name)}),(0,e.jsx)(t.Ki.Divider,{}),m&&m.length&&m.map(function(b){return(0,e.jsx)(t.Ki.Item,{label:b.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:b.item?"hand-paper":"gift",onClick:function(){return x(b.act,b.params)},children:b.item||"Nothing"})},b.name)})]})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"running",onClick:function(){return x("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return x("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),v&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,c&&(0,e.jsx)(t.$n,{fluid:!0,icon:"book-medical",onClick:function(){return x("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,f&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",p)},children:"Handcuffed"})||null,C&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",y)},children:"Legcuffed"})||null,O&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},65546:function(_,j,n){"use strict";n.r(j),n.d(j,{IsolationCentrifuge:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.busy,m=d.antibodies,u=d.pathogens,v=d.is_antibody_sample,c=d.sample_inserted,f=(0,e.jsx)(t.az,{color:"average",children:"No vial detected."});return c&&(!m&&!u?f=(0,e.jsx)(t.az,{color:"average",children:"No antibodies or viral strains detected."}):f=(0,e.jsxs)(e.Fragment,{children:[m?(0,e.jsx)(t.wn,{title:"Antibodies",children:m}):null,u.length?(0,e.jsx)(t.wn,{title:"Pathogens",children:(0,e.jsx)(t.Ki,{children:u.map(function(p){return(0,e.jsx)(t.Ki.Item,{label:p.name,children:p.spread_type},p.name)})})}):null]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:h?(0,e.jsx)(t.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:h})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:v?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"print",disabled:!m&&!u.length,onClick:function(){return x("print")},children:"Print"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!c,onClick:function(){return x("sample")},children:"Eject Vial"})})]}),f]}),m&&!v||u.length?(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[m&&!v?(0,e.jsx)(t.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("antibody")},children:m})}):null,u.length?(0,e.jsx)(t.Ki.Item,{label:"Isolate Strain",children:u.map(function(p){return(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("isolate",{isolate:p.reference})},children:p.name},p.name)})}):null]})}):null]})})})}},54905:function(_,j,n){"use strict";n.r(j),n.d(j,{JanitorCart:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(x){var d=(0,s.Oc)(),h=d.act,m=d.data,u=m.mybag,v=m.mybucket,c=m.mymop,f=m.myspray,p=m.myreplacer,C=m.signs,y=m.icons;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:u||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return h("bag")},children:(0,e.jsx)(g,{iconkey:"mybag"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:v||"Bucket Slot",tooltipPosition:"bottom",color:v?"grey":"transparent",style:{border:v?null:"2px solid grey"},onClick:function(){return h("bucket")},children:(0,e.jsx)(g,{iconkey:"mybucket"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:c||"Mop Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){return h("mop")},children:(0,e.jsx)(g,{iconkey:"mymop"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:f||"Spray Slot",tooltipPosition:"top-end",color:f?"grey":"transparent",style:{border:f?null:"2px solid grey"},onClick:function(){return h("spray")},children:(0,e.jsx)(g,{iconkey:"myspray"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:p||"Light Replacer Slot",tooltipPosition:"top",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return h("replacer")},children:(0,e.jsx)(g,{iconkey:"myreplacer"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:C||"Signs Slot",tooltipPosition:"top-start",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return h("sign")},children:(0,e.jsx)(g,{iconkey:"signs"})})]})})},o={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},g=function(x){var d=(0,s.Oc)().data,h=x.iconkey,m=d.icons;return h in m?(0,e.jsx)("img",{src:m[h].substr(1,m[h].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,e.jsx)(t.In,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:o[h]})}},54526:function(_,j,n){"use strict";n.r(j),n.d(j,{Jukebox:function(){return o}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),d=x.act,h=x.data,m=h.playing,u=h.loop_mode,v=h.volume,c=h.current_track_ref,f=h.current_track,p=h.current_genre,C=h.percent,y=h.tracks,O=y.length&&y.reduce(function(I,P){var S=P.genre||"Uncategorized";return I[S]||(I[S]=[]),I[S].push(P),I},{}),b=m&&(p||"Uncategorized");return(0,e.jsx)(a.p8,{width:450,height:600,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Currently Playing",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:m&&f&&(0,e.jsxs)(r.az,{children:[f.title," by ",f.artist||"Unkown"]})||(0,e.jsx)(r.az,{children:"Stopped"})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"play",disabled:m,onClick:function(){return d("play")},children:"Play"}),(0,e.jsx)(r.$n,{icon:"stop",disabled:!m,onClick:function(){return d("stop")},children:"Stop"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(r.$n,{icon:"play",onClick:function(){return d("loopmode",{loopmode:1})},selected:u===1,children:"Next"}),(0,e.jsx)(r.$n,{icon:"random",onClick:function(){return d("loopmode",{loopmode:2})},selected:u===2,children:"Shuffle"}),(0,e.jsx)(r.$n,{icon:"redo",onClick:function(){return d("loopmode",{loopmode:3})},selected:u===3,children:"Repeat"}),(0,e.jsx)(r.$n,{icon:"step-forward",onClick:function(){return d("loopmode",{loopmode:4})},selected:u===4,children:"Once"})]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{value:C,maxValue:1,color:"good"})}),(0,e.jsx)(r.Ki.Item,{label:"Volume",children:(0,e.jsx)(r.Ap,{minValue:0,step:1,value:v*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(I){return(0,s.LI)(I,1)+"%"},onChange:function(I,P){return d("volume",{val:(0,s.LI)(P/100,2)})}})})]})}),(0,e.jsx)(r.wn,{title:"Available Tracks",children:y.length&&Object.keys(O).sort().map(function(I){return(0,e.jsx)(r.Nt,{title:I,color:b===I?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{"margin-left":"1em"},children:O[I].map(function(P){return(0,e.jsx)(r.$n,{fluid:!0,icon:"play",selected:c===P.ref,onClick:function(){return d("change_track",{change_track:P.ref})},children:P.title},P.ref)})})},I)})||(0,e.jsx)(r.az,{color:"bad",children:"Error: No songs loaded."})})]})})}},64667:function(_,j,n){"use strict";n.r(j),n.d(j,{LawManager:function(){return g}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738);function a(){return a=Object.assign||function(u){for(var v=1;v=0)&&(c[p]=u[p]);return c}var g=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[p&&(0,e.jsxs)(t.IC,{info:!0,children:["Law-synced to ",p]})||null,(0,e.jsx)(x,{})]})})},x=function(u){var v=(0,s.QY)("lawsTabIndex",0),c=v[0],f=v[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:c===0,onClick:function(){return f(0)},children:"Law Management"}),(0,e.jsx)(t.tU.Tab,{selected:c===1,onClick:function(){return f(1)},children:"Law Sets"})]}),c===0&&(0,e.jsx)(d,{})||null,c===1&&(0,e.jsx)(m,{})||null]})},d=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.ion_law_nr,C=f.ion_law,y=f.zeroth_law,O=f.inherent_law,b=f.supplied_law,I=f.supplied_law_position,P=f.zeroth_laws,S=f.has_zeroth_laws,M=f.ion_laws,A=f.has_ion_laws,R=f.inherent_laws,K=f.has_inherent_laws,N=f.supplied_laws,k=f.has_supplied_laws,F=f.isAI,W=f.isMalf,J=f.isAdmin,X=f.channel,Q=f.channels,Z=P.map(function(G){return G.zero=!0,G}).concat(R);return(0,e.jsxs)(t.wn,{children:[A&&(0,e.jsx)(h,{laws:M,title:p+" Laws:",mt:-2})||null,(S||K)&&(0,e.jsx)(h,{laws:Z,title:"Inherent Laws",mt:-2})||null,k&&(0,e.jsx)(h,{laws:N,title:"Supplied Laws",mt:-2})||null,(0,e.jsx)(t.wn,{level:2,title:"Controls",mt:-2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Statement Channel",children:Q.map(function(G){return(0,e.jsx)(t.$n,{selected:X===G.channel,onClick:function(){return c("law_channel",{law_channel:G.channel})},children:G.channel},G.channel)})}),(0,e.jsx)(t.Ki.Item,{label:"State Laws",children:(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return c("state_laws")},children:"State Laws"})}),F&&(0,e.jsx)(t.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(t.$n,{icon:"exclamation",onClick:function(){return c("notify_laws")},children:"Notify"})})||null]})}),W&&(0,e.jsx)(t.wn,{level:2,title:"Add Laws",mt:-2,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Add"})]}),J&&!S&&(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:y,fluid:!0,onChange:function(G,H){return c("change_zeroth_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("add_zeroth_law")},children:"Add"})})]})||null,(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:C,fluid:!0,onChange:function(G,H){return c("change_ion_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Inherent"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:O,fluid:!0,onChange:function(G,H){return c("change_inherent_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Supplied"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:b,fluid:!0,onChange:function(G,H){return c("change_supplied_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return c("change_supplied_law_position")},children:I})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("add_supplied_law")},children:"Add"})})]})]})})||null]})},h=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.isMalf,C=f.isAdmin,y=u.laws,O=u.title,b=u.noButtons,I=o(u,["laws","title","noButtons"]);return(0,e.jsx)(t.wn,a({level:2,title:O},I,{children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),!b&&(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"State"})||null,p&&!b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Delete"})]})||null]}),y.map(function(P){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[P.index,"."]}),(0,e.jsx)(t.XI.Cell,{color:P.zero?"bad":null,children:P.law}),!b&&(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"volume-up",selected:P.state,onClick:function(){return c("state_law",{ref:P.ref,state_law:!P.state})},children:P.state?"Yes":"No"})})||null,p&&!b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:P.zero&&!C,icon:"pen",onClick:function(){return c("edit_law",{edit_law:P.ref})},children:"Edit"})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:P.zero&&!C,color:"bad",icon:"trash",onClick:function(){return c("delete_law",{delete_law:P.ref})},children:"Delete"})})]})||null]},P.index)})]})}))},m=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.isMalf,C=f.law_sets;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),C.length&&C.map(function(y){return(0,e.jsxs)(t.wn,{title:y.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!p,icon:"sync",onClick:function(){return c("transfer_laws",{transfer_laws:y.ref})},children:"Load Laws"}),(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return c("state_law_set",{state_law_set:y.ref})},children:"State Laws"})]}),children:[y.laws.has_ion_laws&&(0,e.jsx)(h,{noButtons:!0,laws:y.laws.ion_laws,title:y.laws.ion_law_nr+" Laws:"})||null,(y.laws.has_zeroth_laws||y.laws.has_inherent_laws)&&(0,e.jsx)(h,{noButtons:!0,laws:y.laws.zeroth_laws.concat(y.laws.inherent_laws),title:y.header})||null,y.laws.has_supplied_laws&&(0,e.jsx)(h,{noButtons:!0,laws:y.laws.supplied_laws,title:"Supplied Laws"})||null]},y.name)})||null]})}},94979:function(_,j,n){"use strict";n.r(j),n.d(j,{ListInputModal:function(){return d}});var e=n(20462),s=n(61358),t=n(6544),r=n(7081),a=n(16754),o=n(2738),g=n(5335),x=n(44149),d=function(u){var v=(0,r.Oc)(),c=v.act,f=v.data,p=f.items,C=p===void 0?[]:p,y=f.message,O=y===void 0?"":y,b=f.init_value,I=f.large_buttons,P=f.timeout,S=f.title,M=(0,s.useState)(C.indexOf(b)),A=M[0],R=M[1],K=(0,s.useState)(C.length>9),N=K[0],k=K[1],F=(0,s.useState)(""),W=F[0],J=F[1],X=function(te){var ue=q.length-1;if(te===t.R)if(A===null||A===ue){var ce;R(0),(ce=document.getElementById("0"))==null||ce.scrollIntoView()}else{var me;R(A+1),(me=document.getElementById((A+1).toString()))==null||me.scrollIntoView()}else if(te===t.gf)if(A===null||A===0){var xe;R(ue),(xe=document.getElementById(ue.toString()))==null||xe.scrollIntoView()}else{var ve;R(A-1),(ve=document.getElementById((A-1).toString()))==null||ve.scrollIntoView()}},Q=function(te){te!==A&&R(te)},Z=function(){k(!1),k(!0)},G=function(te){var ue=String.fromCharCode(te),ce=C.find(function(ve){return ve==null?void 0:ve.toLowerCase().startsWith(ue==null?void 0:ue.toLowerCase())});if(ce){var me,xe=C.indexOf(ce);R(xe),(me=document.getElementById(xe.toString()))==null||me.scrollIntoView()}},H=function(te){var ue;te!==W&&(J(te),R(0),(ue=document.getElementById("0"))==null||ue.scrollIntoView())},V=function(){k(!N),J("")},q=C.filter(function(te){return te==null?void 0:te.toLowerCase().includes(W.toLowerCase())}),ie=325+Math.ceil(O.length/3)+(I?5:0);return N||setTimeout(function(){var te;return(te=document.getElementById(A.toString()))==null?void 0:te.focus()},1),(0,e.jsxs)(o.p8,{title:S,width:325,height:ie,children:[P&&(0,e.jsx)(x.Loader,{value:P}),(0,e.jsx)(o.p8.Content,{onKeyDown:function(te){var ue=window.event?te.which:te.keyCode;(ue===t.R||ue===t.gf)&&(te.preventDefault(),X(ue)),ue===t.Ri&&(te.preventDefault(),c("submit",{entry:q[A]})),!N&&ue>=t.W8&&ue<=t.bh&&(te.preventDefault(),G(ue)),ue===t.s6&&(te.preventDefault(),c("cancel"))},children:(0,e.jsx)(a.wn,{buttons:(0,e.jsx)(a.$n,{compact:!0,icon:N?"search":"font",selected:!0,tooltip:N?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){return V()}}),className:"ListInput__Section",fill:!0,title:O,children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(h,{filteredItems:q,onClick:Q,onFocusSearch:Z,searchBarVisible:N,selected:A})}),N&&(0,e.jsx)(m,{filteredItems:q,onSearch:H,searchQuery:W,selected:A}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:q[A]})})]})})})]})},h=function(u){var v=(0,r.Oc)().act,c=u.filteredItems,f=u.onClick,p=u.onFocusSearch,C=u.searchBarVisible,y=u.selected;return(0,e.jsxs)(a.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(a.y5,{}),c.map(function(O,b){return(0,e.jsx)(a.$n,{color:"transparent",fluid:!0,onClick:function(){return f(b)},onDoubleClick:function(I){I.preventDefault(),v("submit",{entry:c[y]})},onKeyDown:function(I){var P=window.event?I.which:I.keyCode;C&&P>=t.W8&&P<=t.bh&&(I.preventDefault(),p())},selected:b===y,style:{animation:"none",transition:"none"},children:O.replace(/^\w/,function(I){return I.toUpperCase()})},b)})]})},m=function(u){var v=(0,r.Oc)().act,c=u.filteredItems,f=u.onSearch,p=u.searchQuery,C=u.selected;return(0,e.jsx)(a.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(y){y.preventDefault(),v("submit",{entry:c[C]})},onInput:function(y,O){return f(O)},placeholder:"Search...",value:p})}},10895:function(_,j,n){"use strict";n.r(j),n.d(j,{LookingGlass:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.supportedPrograms,m=d.currentProgram,u=d.immersion,v=d.gravity,c=Math.min(180+h.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:c,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:h.map(function(f){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",selected:f===m,onClick:function(){return x("program",{program:f})},children:f},f)})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"user-astronaut",selected:v,onClick:function(){return x("gravity")},children:v?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(t.$n,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return x("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},25970:function(_,j,n){"use strict";n.r(j),n.d(j,{MechaControlConsole:function(){return o}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),d=x.act,h=x.data,m=h.beacons,u=h.stored_data;return(0,e.jsx)(a.p8,{width:600,height:600,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[u.length&&(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return d("clear_log")}}),children:u.map(function(v){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",v.time,") (",v.year,")"]}),(0,e.jsx)(r.az,{children:(0,s.jT)(v.message)})]},v.time)})})})||null,m.length&&m.map(function(v){return(0,e.jsx)(r.wn,{title:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return d("send_message",{mt:v.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return d("get_log",{mt:v.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"bomb",onClick:function(){return d("shock",{mt:v.ref})},children:"EMP"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[v.maxHealth*.75,1/0],average:[v.maxHealth*.5,v.maxHealth*.75],bad:[-1/0,v.maxHealth*.5]},value:v.health,maxValue:v.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:v.cell&&(0,e.jsx)(r.z2,{ranges:{good:[v.cellMaxCharge*.75,1/0],average:[v.cellMaxCharge*.5,v.cellMaxCharge*.75],bad:[-1/0,v.cellMaxCharge*.5]},value:v.cellCharge,maxValue:v.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[v.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:v.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,s.Sn)(v.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:v.active||"None"}),v.cargoMax&&(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[v.cargoMax*.75,1/0],average:[v.cargoMax*.5,v.cargoMax*.75],good:[-1/0,v.cargoMax*.5]},value:v.cargoUsed,maxValue:v.cargoMax})})||null]})},v.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},75003:function(_,j,n){"use strict";n.r(j),n.d(j,{Medbot:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.on,m=d.open,u=d.beaker,v=d.beaker_total,c=d.beaker_max,f=d.locked,p=d.heal_threshold,C=d.heal_threshold_max,y=d.injection_amount_min,O=d.injection_amount,b=d.injection_amount_max,I=d.use_beaker,P=d.declare_treatment,S=d.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:h,onClick:function(){return x("power")},children:h?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:m?"bad":"good",children:m?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(t.$n,{disabled:!u,icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:u&&(0,e.jsxs)(t.z2,{value:v,maxValue:c,children:[v," / ",c]})||(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:f?"good":"bad",children:f?"Locked":"Unlocked"})]})}),!f&&(0,e.jsx)(t.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(t.Q7,{fluid:!0,minValue:0,maxValue:C,value:p,onDrag:function(M,A){return x("adj_threshold",{val:A})}})}),(0,e.jsx)(t.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(t.Q7,{fluid:!0,minValue:y,maxValue:b,value:O,onDrag:function(M,A){return x("adj_inject",{val:A})}})}),(0,e.jsx)(t.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(t.$n,{fluid:!0,icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){return x("use_beaker")},children:I?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(t.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(t.$n,{fluid:!0,icon:P?"toggle-on":"toggle-off",selected:P,onClick:function(){return x("declaretreatment")},children:P?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){return x("togglevoice")},children:S?"On":"Off"})})]})})||null]})})}},10271:function(_,j,n){"use strict";n.r(j),n.d(j,{MedicalRecords:function(){return v}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(38509),o=n(2738),g=n(2455),x=n(8491),d=n(55789),h={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},m=function(P){(0,a.modalOpen)("edit",{field:P.edit,value:P.value})},u=function(P){var S=(0,t.Oc)().act,M=P.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:M.name||"Virus",buttons:(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return S("modal_close")}}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[M.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:M.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:M.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[M.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:M.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:M.symptoms.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.stage+". "+A.name,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",A.strength,"\xA0",(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",A.aggressiveness]},A.stage)})})})]})})})},v=function(P){var S=(0,t.Oc)().data,M=S.authenticated,A=S.screen;if(!M)return(0,e.jsx)(o.p8,{width:800,height:380,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var R;return A===2?R=(0,e.jsx)(c,{}):A===3?R=(0,e.jsx)(f,{}):A===4?R=(0,e.jsx)(p,{}):A===5?R=(0,e.jsx)(O,{}):A===6&&(R=(0,e.jsx)(b,{})),(0,e.jsxs)(o.p8,{width:800,height:380,children:[(0,e.jsx)(a.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(o.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(I,{}),(0,e.jsx)(r.wn,{height:"calc(100% - 5rem)",flexGrow:"1",children:R})]})]})},c=function(P){var S=(0,t.Oc)(),M=S.act,A=S.data,R=A.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(K,N){return M("search",{t1:N})}}),(0,e.jsx)(r.az,{mt:"0.5rem",children:R.map(function(K,N){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",onClick:function(){return M("d_rec",{d_rec:K.ref})},children:K.id+": "+K.name},N)})})]})},f=function(P){var S=(0,t.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n.Confirm,{icon:"trash",onClick:function(){return S("del_all")},children:"Delete All Medical Records"})]})},p=function(P){var S=(0,t.Oc)(),M=S.act,A=S.data,R=A.medical,K=A.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General Data",level:2,mt:"-6px",children:(0,e.jsx)(C,{})}),(0,e.jsx)(r.wn,{title:"Medical Data",level:2,children:(0,e.jsx)(y,{})}),(0,e.jsxs)(r.wn,{title:"Actions",level:2,children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",disabled:!!R.empty,color:"bad",onClick:function(){return M("del_r")},children:"Delete Medical Record"}),(0,e.jsx)(r.$n,{icon:K?"spinner":"print",disabled:K,iconSpin:!!K,ml:"0.5rem",onClick:function(){return M("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return M("screen",{screen:2})},children:"Back"})]})]})},C=function(P){var S=(0,t.Oc)().data,M=S.general;return!M||!M.fields?(0,e.jsx)(r.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{width:"50%",float:"left",children:(0,e.jsx)(r.Ki,{children:M.fields.map(function(A,R){return(0,e.jsxs)(r.Ki.Item,{label:A.field,children:[(0,e.jsx)(r.az,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:A.value}),!!A.edit&&(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return m(A)}})]},R)})})}),(0,e.jsx)(r.az,{width:"50%",float:"right",textAlign:"right",children:!!M.has_photos&&M.photos.map(function(A,R){return(0,e.jsxs)(r.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:A.substr(1,A.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",R+1]},R)})})]})},y=function(P){var S=(0,t.Oc)(),M=S.act,A=S.data,R=A.medical;return!R||!R.fields?(0,e.jsxs)(r.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return M("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki,{children:R.fields.map(function(K,N){return(0,e.jsx)(r.Ki.Item,{label:K.field,children:(0,e.jsxs)(r.az,{preserveWhitespace:!0,children:[K.value,(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",mb:K.line_break?"1rem":"initial",onClick:function(){return m(K)}})]})},N)})}),(0,e.jsxs)(r.wn,{title:"Comments/Log",level:2,children:[R.comments.length===0?(0,e.jsx)(r.az,{color:"label",children:"No comments found."}):R.comments.map(function(K,N){return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:K.header}),(0,e.jsx)("br",{}),K.text,(0,e.jsx)(r.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return M("del_c",{del_c:N+1})}})]},N)}),(0,e.jsx)(r.$n,{icon:"comment-medical",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)("add_c")},children:"Add Entry"})]})]})},O=function(P){var S=(0,t.Oc)(),M=S.act,A=S.data,R=A.virus;return R.sort(function(K,N){return K.name>N.name?1:-1}),R.map(function(K,N){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",mb:"0.5rem",onClick:function(){return M("vir",{vir:K.D})},children:K.name}),(0,e.jsx)("br",{})]},N)})},b=function(P){var S=(0,t.Oc)().data,M=S.medbots;return M.length===0?(0,e.jsx)(r.az,{color:"label",children:"There are no Medbots."}):M.map(function(A,R){return(0,e.jsx)(r.Nt,{open:!0,title:A.name,children:(0,e.jsx)(r.az,{px:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Location",children:[A.area||"Unknown"," (",A.x,", ",A.y,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:A.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"good",children:"Online"}),(0,e.jsx)(r.az,{mt:"0.5rem",children:A.use_beaker?"Reservoir: "+A.total_volume+"/"+A.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(r.az,{color:"average",children:"Offline"})})]})})},R)})},I=function(P){var S=(0,t.Oc)(),M=S.act,A=S.data,R=A.screen;return(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:R===2,onClick:function(){return M("screen",{screen:2})},children:[(0,e.jsx)(r.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===5,onClick:function(){return M("screen",{screen:5})},children:[(0,e.jsx)(r.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===6,onClick:function(){return M("screen",{screen:6})},children:[(0,e.jsx)(r.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===3,onClick:function(){return M("screen",{screen:3})},children:[(0,e.jsx)(r.In,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",u)},4477:function(_,j,n){"use strict";n.r(j),n.d(j,{MentorTicketPanel:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a={open:"Open",resolved:"Resolved",unknown:"Unknown"},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.id,u=h.title,v=h.name,c=h.state,f=h.opened_at,p=h.closed_at,C=h.opened_at_date,y=h.closed_at_date,O=h.actions,b=h.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Ticket #"+m,buttons:(0,e.jsxs)(t.az,{nowrap:!0,children:[(0,e.jsx)(t.$n,{icon:"arrow-up",onClick:function(){return d("escalate")},children:"Escalate"}),(0,e.jsx)(t.$n,{onClick:function(){return d("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Mentor Help Ticket",children:["#",m,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})]}),(0,e.jsx)(t.Ki.Item,{label:"State",children:a[c]}),a[c]===a.open?(0,e.jsxs)(t.Ki.Item,{label:"Opened At",children:[C," (",Math.round(f/600*10)/10,"minutes ago.)"]}):(0,e.jsxs)(t.Ki.Item,{label:"Closed At",children:[y," (",Math.round(p/600*10)/10,"minutes ago.)",(0,e.jsx)(t.$n,{onClick:function(){return d("reopen")},children:"Reopen"})]}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}})}),(0,e.jsx)(t.Ki.Item,{label:"Log",children:Object.keys(b).map(function(I,P){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b[I]}},P)})})]})})})})}},25979:function(_,j,n){"use strict";n.r(j),n.d(j,{MessageMonitor:function(){return d}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=n(9129),x=n(55789),d=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.auth,P=b.linkedServer,S=b.message,M=b.hacking,A=b.emag,R;return M||A?R=(0,e.jsx)(h,{}):I?P?R=(0,e.jsx)(u,{}):R=(0,e.jsx)(a.az,{color:"bad",children:"ERROR"}):R=(0,e.jsx)(m,{}),(0,e.jsx)(o.p8,{width:670,height:450,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsx)(x.TemporaryNotice,{}),R]})})},h=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.isMalfAI;return(0,e.jsx)(g.FullscreenNotice,{title:"ERROR",children:I?(0,e.jsx)(a.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(a.az,{children:["01000010011100100111010101110100011001010010110",(0,e.jsx)("br",{}),"10110011001101111011100100110001101101001011011100110011",(0,e.jsx)("br",{}),"10010000001100110011011110111001000100000011100110110010",(0,e.jsx)("br",{}),"10111001001110110011001010111001000100000011010110110010",(0,e.jsx)("br",{}),"10111100100101110001000000100100101110100001000000111011",(0,e.jsx)("br",{}),"10110100101101100011011000010000001110100011000010110101",(0,e.jsx)("br",{}),"10110010100100000001100100011000000100000011100110110010",(0,e.jsx)("br",{}),"10110001101101111011011100110010001110011001000000110011",(0,e.jsx)("br",{}),"00110111101110010001000000110010101110110011001010111001",(0,e.jsx)("br",{}),"00111100100100000011000110110100001100001011100100110000",(0,e.jsx)("br",{}),"10110001101110100011001010111001000100000011101000110100",(0,e.jsx)("br",{}),"00110000101110100001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00111000001100001011100110111001101110111011011110111001",(0,e.jsx)("br",{}),"00110010000100000011010000110000101110011001011100010000",(0,e.jsx)("br",{}),"00100100101101110001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00110110101100101011000010110111001110100011010010110110",(0,e.jsx)("br",{}),"10110010100101100001000000111010001101000011010010111001",(0,e.jsx)("br",{}),"10010000001100011011011110110111001110011011011110110110",(0,e.jsx)("br",{}),"00110010100100000011000110110000101101110001000000111001",(0,e.jsx)("br",{}),"00110010101110110011001010110000101101100001000000111100",(0,e.jsx)("br",{}),"10110111101110101011100100010000001110100011100100111010",(0,e.jsx)("br",{}),"10110010100100000011010010110111001110100011001010110111",(0,e.jsx)("br",{}),"00111010001101001011011110110111001110011001000000110100",(0,e.jsx)("br",{}),"10110011000100000011110010110111101110101001000000110110",(0,e.jsx)("br",{}),"00110010101110100001000000111001101101111011011010110010",(0,e.jsx)("br",{}),"10110111101101110011001010010000001100001011000110110001",(0,e.jsx)("br",{}),"10110010101110011011100110010000001101001011101000010111",(0,e.jsx)("br",{}),"00010000001001101011000010110101101100101001000000111001",(0,e.jsx)("br",{}),"10111010101110010011001010010000001101110011011110010000",(0,e.jsx)("br",{}),"00110100001110101011011010110000101101110011100110010000",(0,e.jsx)("br",{}),"00110010101101110011101000110010101110010001000000111010",(0,e.jsx)("br",{}),"00110100001100101001000000111001001101111011011110110110",(0,e.jsx)("br",{}),"10010000001100100011101010111001001101001011011100110011",(0,e.jsx)("br",{}),"10010000001110100011010000110000101110100001000000111010",(0,e.jsx)("br",{}),"001101001011011010110010100101110"]})})},m=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.isMalfAI;return(0,e.jsxs)(g.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(a.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(a.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(a.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(a.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(P,S){return O("auth",{key:S})}})]}),!!I&&(0,e.jsx)(a.$n,{icon:"terminal",onClick:function(){return O("hack")},children:"Hack"}),(0,e.jsx)(a.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},u=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.linkedServer,P=(0,t.useState)(0),S=P[0],M=P[1],A;return S===0?A=(0,e.jsx)(v,{}):S===1?A=(0,e.jsx)(c,{logs:I.pda_msgs,pda:!0}):S===2?A=(0,e.jsx)(c,{logs:I.rc_msgs,rc:!0}):S===3?A=(0,e.jsx)(f,{}):S===4&&(A=(0,e.jsx)(p,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:S===0,onClick:function(){return M(0)},children:[(0,e.jsx)(a.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(a.tU.Tab,{selected:S===1,onClick:function(){return M(1)},children:[(0,e.jsx)(a.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(a.tU.Tab,{selected:S===2,onClick:function(){return M(2)},children:[(0,e.jsx)(a.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(a.tU.Tab,{selected:S===3,onClick:function(){return M(3)},children:[(0,e.jsx)(a.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(a.tU.Tab,{selected:S===4,onClick:function(){return M(4)},children:[(0,e.jsx)(a.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(a.tU.Tab,{color:"red",onClick:function(){return O("deauth")},children:[(0,e.jsx)(a.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(a.az,{m:2,children:A})]})},v=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.linkedServer;return(0,e.jsxs)(a.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"link",onClick:function(){return O("find")},children:"Server Link"}),(0,e.jsx)(a.$n,{icon:"power-off",selected:I.active,onClick:function(){return O("active")},children:"Server "+(I.active?"Enabled":"Disabled")})]}),children:[(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Server Status",children:(0,e.jsx)(a.az,{color:"good",children:"Good"})})}),(0,e.jsx)(a.$n,{mt:1,icon:"key",onClick:function(){return O("pass")},children:"Set Custom Key"}),(0,e.jsx)(a.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Message Logs"}),(0,e.jsx)(a.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Request Logs"})]})},c=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=C.logs,P=C.pda,S=C.rc;return(0,e.jsx)(a.wn,{title:P?"PDA Logs":S?"Request Logs":"Logs",buttons:(0,e.jsx)(a.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",onClick:function(){return O(P?"del_pda":"del_rc")},children:"Delete All"}),children:(0,e.jsx)(a.so,{wrap:"wrap",children:I.map(function(M,A){return(0,e.jsx)(a.so.Item,{m:"2px",basis:"49%",grow:A%2,children:(0,e.jsx)(a.wn,{title:M.sender+" -> "+M.recipient,buttons:(0,e.jsx)(a.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return O("delete",{id:M.ref,type:S?"rc":"pda"})}}),children:S?(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Message",children:M.message}),(0,e.jsx)(a.Ki.Item,{label:"Verification",color:M.id_auth==="Unauthenticated"?"bad":"good",children:(0,s.jT)(M.id_auth)}),(0,e.jsx)(a.Ki.Item,{label:"Stamp",children:M.stamp})]}):M.message})},M.ref)})})})},f=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.possibleRecipients,P=b.customsender,S=b.customrecepient,M=b.customjob,A=b.custommessage,R=Object.keys(I);return(0,e.jsxs)(a.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Sender",children:(0,e.jsx)(a.pd,{fluid:!0,value:P,onChange:function(K,N){return O("set_sender",{val:N})}})}),(0,e.jsx)(a.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(a.pd,{fluid:!0,value:M,onChange:function(K,N){return O("set_sender_job",{val:N})}})}),(0,e.jsx)(a.Ki.Item,{label:"Recipient",children:(0,e.jsx)(a.ms,{selected:S,options:R,width:"100%",mb:-.7,onSelected:function(K){return O("set_recipient",{val:I[K]})}})}),(0,e.jsx)(a.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(a.pd,{fluid:!0,mb:.5,value:A,onChange:function(K,N){return O("set_message",{val:N})}})})]}),(0,e.jsx)(a.$n,{fluid:!0,icon:"comment",onClick:function(){return O("send_message")},children:"Send Message"})]})},p=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.linkedServer;return(0,e.jsxs)(a.wn,{title:"Spam Filtering",children:[(0,e.jsx)(a.Ki,{children:I.spamFilter.map(function(P){return(0,e.jsx)(a.Ki.Item,{label:P.index,buttons:(0,e.jsx)(a.$n,{icon:"trash",color:"bad",onClick:function(){return O("deltoken",{deltoken:P.index})},children:"Delete"}),children:P.token},P.index)})}),(0,e.jsx)(a.$n,{icon:"plus",onClick:function(){return O("addtoken")},children:"Add New Entry"})]})}},27819:function(_,j,n){"use strict";n.r(j),n.d(j,{Microwave:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.config,h=g.data,m=h.broken,u=h.operating,v=h.dirty,c=h.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:m&&(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||v&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||c.length&&(0,e.jsx)(t.wn,{level:1,title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return x("cook")},children:"Microwave"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return x("dispose")},children:"Eject"})]}),children:(0,e.jsx)(t.Ki,{children:c.map(function(f){return(0,e.jsxs)(t.Ki.Item,{label:f.name,children:[f.amt," ",f.extra]},f.name)})})})||(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:[d.title," is empty."]})})})})}},5950:function(_,j,n){"use strict";n.r(j),n.d(j,{MiningOreProcessingConsole:function(){return g}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=n(51870),g=function(u){var v=(0,t.Oc)(),c=v.act,f=v.data,p=f.unclaimedPoints,C=f.ores,y=f.showAllOres,O=f.power,b=f.speed;return(0,e.jsx)(a.p8,{width:400,height:500,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(o.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return c("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:b,onClick:function(){return c("speed_toggle")},children:b?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:O,onClick:function(){return c("power")},children:O?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.$n,{disabled:p<1,icon:"download",onClick:function(){return c("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:p})})})}),(0,e.jsx)(m,{})]})})},x=["Not Processing","Smelting","Compressing","Alloying"],d=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],h=function(u,v){return d.indexOf(u.ore)===-1||d.indexOf(v.ore)===-1?u.ore-v.ore:d.indexOf(v.ore)-d.indexOf(u.ore)},m=function(u){var v=(0,t.Oc)(),c=v.act,f=v.data,p=f.ores,C=f.showAllOres,y=f.power;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return c("showAllOres")},children:C?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:p.length&&p.sort(h).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:(0,s.Sn)(O.name),buttons:(0,e.jsx)(r.ms,{width:"120px",color:O.processing===0&&"red"||O.processing===1&&"green"||O.processing===2&&"blue"||O.processing===3&&"yellow",options:x,selected:x[O.processing],onSelected:function(b){return c("toggleSmelting",{ore:O.ore,set:x.indexOf(b)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:O.amount})})},O.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},10435:function(_,j,n){"use strict";n.r(j),n.d(j,{MiningStackingConsole:function(){return o}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),d=x.act,h=x.data,m=h.stacktypes,u=h.stackingAmt;return(0,e.jsx)(a.p8,{width:400,height:500,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(v,c){return d("change_stack",{amt:c})}})}),(0,e.jsx)(r.Ki.Divider,{}),m.length&&m.sort().map(function(v){return(0,e.jsx)(r.Ki.Item,{label:(0,s.Sn)(v.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("release_stack",{stack:v.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:v.amt})},v.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},80464:function(_,j,n){"use strict";n.r(j),n.d(j,{MiningVendor:function(){return m}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=n(51870);function x(){return x=Object.assign||function(f){for(var p=1;p=0)&&(C[O]=f[O]);return C}var h={Alphabetical:function(f,p){return f.name>p.name},"By availability":function(f,p){return-(f.affordable-p.affordable)},"By price":function(f,p){return f.price-p.price}},m=function(f){var p=function(k){I(k)},C=function(k){M(k)},y=function(k){K(k)},O=(0,t.useState)(""),b=O[0],I=O[1],P=(0,t.useState)("Alphabetical"),S=P[0],M=P[1],A=(0,t.useState)(!1),R=A[0],K=A[1];return(0,e.jsx)(o.p8,{width:400,height:450,children:(0,e.jsxs)(o.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(v,{searchText:b,sortOrder:S,descending:R,onSearchText:p,onSortOrder:C,onDescending:y}),(0,e.jsx)(u,{searchText:b,sortOrder:S,descending:R,onSearchText:p,onSortOrder:C,onDescending:y})]})})},u=function(f){var p=(0,r.Oc)(),C=p.act,y=p.data,O=y.has_id,b=y.id,I=y.items,P=(0,s.XZ)(f.searchText,function(A){return A[0]}),S=!1,M=Object.entries(I).map(function(A,R){var K=Object.entries(A[1]).filter(P).map(function(N){return N[1].affordable=O&&b.points>=N[1].price,N[1]}).sort(h[f.sortOrder]);if(K.length!==0)return f.descending&&(K=K.reverse()),S=!0,(0,e.jsx)(c,{title:A[0],items:K},A[0])});return(0,e.jsx)(a.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(a.wn,{children:S?M:(0,e.jsx)(a.az,{color:"label",children:"No items matching your criteria was found!"})})})},v=function(f){return(0,e.jsx)(a.az,{mb:"0.5rem",children:(0,e.jsxs)(a.so,{width:"100%",children:[(0,e.jsx)(a.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(a.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(p,C){return f.onSearchText(C)}})}),(0,e.jsx)(a.so.Item,{basis:"30%",children:(0,e.jsx)(a.ms,{selected:"Alphabetical",options:Object.keys(h),width:"100%",lineHeight:"19px",onSelected:function(p){return f.onSortOrder(p)}})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{icon:f.descending?"arrow-down":"arrow-up",height:"19px",tooltip:f.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return f.onDescending(!f.descending)}})})]})})},c=function(f){var p=(0,r.Oc)(),C=p.act,y=p.data,O=f.title,b=f.items,I=d(f,["title","items"]);return(0,e.jsx)(a.Nt,x({open:!0,title:O},I,{children:b.map(function(P){return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:P.name}),(0,e.jsx)(a.$n,{disabled:!y.has_id||y.id.points=450?"Overcharged":p>=250?"Good Charge":"Low Charge":p>=250?"NIF Power Requirement met.":p>=150?"Fluctuations in available power.":"Power failure imminent."},c=function(p){var C=(0,t.Oc)(),y=C.act,O=C.config,b=C.data,I=b.nif_percent,P=b.nif_stat,S=b.nutrition,M=b.isSynthetic,A=b.modules,R=p.setViewing;return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"NIF Condition",children:(0,e.jsxs)(r.z2,{value:I,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[u(P,I)," (",(0,e.jsx)(r.zv,{value:I}),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"NIF Power",children:(0,e.jsx)(r.z2,{value:S,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:v(S,M)})})]}),(0,e.jsx)(r.wn,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(r.Ki,{children:A.map(function(K){return(0,e.jsx)(r.Ki.Item,{label:K.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return y("uninstall",{module:K.ref})}}),(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return R(K)},tooltip:"View Information",tooltipPosition:"left"})]}),children:K.activates&&(0,e.jsx)(r.$n,{fluid:!0,selected:K.active,content:K.stat_text,onClick:function(){return y("toggle_module",{module:K.ref})}})||(0,e.jsx)(r.az,{children:K.stat_text})},K.ref)})})})]})},f=function(p){var C=(0,t.Oc)(),y=C.act,O=C.data,b=O.valid_themes,I=O.theme;return(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.ms,{grow:1,selected:I||"default",options:b,onSelected:function(P){return y("setTheme",{theme:P})}})}),I?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){y("setTheme",{theme:null})}})}):""]})})})}},34044:function(_,j,n){"use strict";n.r(j),n.d(j,{NTNetRelay:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(9129),o=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data,v=u.dos_crashed,c=u.enabled,f=u.dos_overload,p=u.dos_capacity,C=(0,e.jsx)(g,{});return v&&(C=(0,e.jsx)(x,{})),(0,e.jsx)(r.p8,{width:v?700:500,height:v?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},g=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data,v=u.dos_crashed,c=u.enabled,f=u.dos_overload,p=u.dos_capacity;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return m("toggle")},children:"Relay "+(c?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Network Buffer Status",children:[f," / ",p," GQ"]}),(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return m("purge")},children:"Purge network blacklist"})})]})})},x=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data;return(0,e.jsxs)(a.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return m("restart")},children:"Purge buffered traffic"})})]})}},26511:function(_,j,n){"use strict";n.r(j),n.d(j,{Newscaster:function(){return f}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=n(55789),g="Main Menu",x="New Channel",d="View List",h="New Story",m="Print",u="New Wanted",v="View Wanted",c="View Selected Channel",f=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.screen,W=k.user;return(0,e.jsx)(a.p8,{width:600,height:600,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(o.TemporaryNotice,{decode:!0}),(0,e.jsx)(p,{})]})})},p=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.user,W=(0,t.QY)("screen",g),J=W[0],X=W[1],Q=A[J];return(0,e.jsx)(r.az,{children:(0,e.jsx)(Q,{setScreen:X})})},C=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.securityCaster,W=k.wanted_issue,J=R.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Main Menu",children:[W&&(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(v)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(d)},children:"View Feed Channels"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(x)},children:"Create Feed Channel"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(h)},children:"Create Feed Message"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"print",onClick:function(){return J(m)},children:"Print Newspaper"})]}),!!F&&(0,e.jsx)(r.wn,{title:"Feed Security Functions",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(u)},children:'Manage "Wanted" Issue'})})]})},y=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.channel_name,W=k.c_locked,J=k.user,X=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return X(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(F),onInput:function(Q,Z){return N("set_channel_name",{val:Z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:J}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:W?"lock":"lock-open",selected:!W,onClick:function(){return N("set_channel_lock")},children:W?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return X(g)},children:"Cancel"})]})},O=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.channels,W=R.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return W(g)},children:"Back"}),children:F.map(function(J){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:J.admin?"good":J.censored?"bad":"",onClick:function(){N("show_channel",{show_channel:J.ref}),W(c)},children:(0,s.jT)(J.name)},J.name)})})},b=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.channel_name,W=k.user,J=k.title,X=k.msg,Q=k.photo_data,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return N("set_channel_receiving")},children:F||"Unset"})}),(0,e.jsx)(r.Ki.Item,{label:"Message Author",color:"good",children:W}),(0,e.jsx)(r.Ki.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:J||"(no title yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:X||"(no message yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:Q?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},I=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.total_num,W=k.active_num,J=k.message_num,X=k.paper_remaining,Q=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Printing",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Q(g)},children:"Back"}),children:[(0,e.jsxs)(r.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",F," Feed channels,"," ",W," of which are active, and a total of ",J," Feed stories."]}),(0,e.jsx)(r.Ki,{children:(0,e.jsxs)(r.Ki.Item,{label:"Liquid Paper remaining",children:[X*100," cm\xB3"]})}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("print_paper")},children:"Print Paper"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Q(g)},children:"Cancel"})]})},P=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.channel_name,W=k.msg,J=k.photo_data,X=k.user,Q=k.wanted_issue,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!Q&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(F),onInput:function(G,H){return N("set_channel_name",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(W),onInput:function(G,H){return N("set_wanted_desc",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:J?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:X})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_wanted")},children:"Submit Wanted Issue"}),!!Q&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return N("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},S=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.wanted_issue,W=R.setScreen;return F?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return W(g)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,s.jT)(F.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,s.jT)(F.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,s.jT)(F.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:F.img&&(0,e.jsx)("img",{src:F.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return W(g)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},M=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.viewing_channel,W=k.securityCaster,J=k.company,X=R.setScreen;return F?(0,e.jsxs)(r.wn,{title:(0,s.jT)(F.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!W&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",onClick:function(){return N("toggle_d_notice",{ref:F.ref})},children:"Issue D-Notice"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return X(d)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:W&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return N("censor_channel_author",{ref:F.ref})},children:(0,s.jT)(F.author)})||(0,e.jsx)(r.az,{children:(0,s.jT)(F.author)})})}),!!F.censored&&(0,e.jsxs)(r.az,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",J," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!F.messages.length&&F.messages.map(function(Q){return(0,e.jsxs)(r.wn,{children:["- ",(0,s.jT)(Q.body),!!Q.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+Q.img}),(0,s.jT)(Q.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,s.jT)(Q.author)," -"," ",Q.timestamp,"]"]}),!!W&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return N("censor_channel_story_body",{ref:Q.ref})},children:"Censor Story"}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return N("censor_channel_story_author",{ref:Q.ref})},children:"Censor Author"})]})]},Q.ref)})||!F.censored&&(0,e.jsx)(r.az,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.wn,{title:"Channel Not Found",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return X(d)},children:"Back"}),children:"The channel you were looking for no longer exists."})},A={};A[g]=C,A[x]=y,A[d]=O,A[h]=b,A[m]=I,A[u]=P,A[v]=S,A[c]=M},4418:function(_,j,n){"use strict";n.r(j),n.d(j,{NoticeBoard:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:h.length?(0,e.jsx)(t.Ki,{children:h.map(function(m,u){return(0,e.jsxs)(t.Ki.Item,{label:m.name,children:[m.isphoto&&(0,e.jsx)(t.$n,{icon:"image",onClick:function(){return x("look",{ref:m.ref})},children:"Look"})||m.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sticky-note",onClick:function(){return x("read",{ref:m.ref})},children:"Read"}),(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("write",{ref:m.ref})},children:"Write"})]})||"Unknown Entity",(0,e.jsx)(t.$n,{icon:"minus-circle",onClick:function(){return x("remove",{ref:m.ref})},children:"Remove"})]},u)})}):(0,e.jsx)(t.az,{color:"average",children:"No notices posted here."})})})})}},78610:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosAccessDecrypter:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(95331),o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.message,u=h.running,v=h.rate,c=h.factor,f=h.regions,p=function(y){for(var O="";O.lengthc?O+="0":O+="1";return O},C=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:m&&(0,e.jsx)(t.IC,{children:m})||u&&(0,e.jsxs)(t.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",v," PHash/s",(0,e.jsx)(t.az,{children:p(C)}),(0,e.jsx)(t.az,{children:p(C)}),(0,e.jsx)(t.az,{children:p(C)}),(0,e.jsx)(t.az,{children:p(C)}),(0,e.jsx)(t.az,{children:p(C)}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",onClick:function(){return d("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(t.wn,{title:"Pick access code to decrypt",children:f.length&&(0,e.jsx)(a.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(t.az,{children:"Please insert ID card."})})})})}},89334:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosArcade:function(){return o}});var e=n(20462),s=n(31200),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),d=x.act,h=x.data;return(0,e.jsx)(a.Zm,{width:450,height:350,children:(0,e.jsx)(a.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value:h.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[h.PlayerHitpoints,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:h.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[h.PlayerMP,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:h.PauseState===1?"#1b3622":"#471915",children:h.Status})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.z2,{value:h.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:h.Hitpoints}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)("img",{src:(0,s.l)(h.BossID)})})]})]})}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.$n,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:h.GameActive===0||h.PauseState===1,onClick:function(){return d("Attack")},children:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:h.GameActive===0||h.PauseState===1,onClick:function(){return d("Heal")},children:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:h.GameActive===0||h.PauseState===1,onClick:function(){return d("Recharge_Power")},children:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:h.GameActive===1,onClick:function(){return d("Start_Game")},children:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:h.GameActive===1,onClick:function(){return d("Dispense_Tickets")},children:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:h.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",h.TicketCount]})]})})})}},98669:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosAtmosControl:function(){return r}});var e=n(20462),s=n(2738),t=n(16947),r=function(){return(0,e.jsx)(s.Zm,{width:870,height:708,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(t.AtmosControlContent,{})})})}},39092:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosCameraConsole:function(){return m},prevNextCamera:function(){return d},selectCameras:function(){return h}});var e=n(20462),s=n(7402),t=n(22071),r=n(61282),a=n(7081),o=n(16754),g=n(2738),x=n(21648),d=function(u,v){var c,f;if(!v)return[];var p=u.findIndex(function(C){return C.name===v.name});return[(c=u[p-1])==null?void 0:c.name,(f=u[p+1])==null?void 0:f.name]},h=function(u,v,c){v===void 0&&(v=""),c===void 0&&(c="");var f=(0,r.XZ)(v,function(p){return p.name});return(0,t.L)([(0,s.pb)(function(p){return p==null?void 0:p.name}),v&&(0,s.pb)(f),c&&(0,s.pb)(function(p){return p.networks.includes(c)}),(0,s.Ul)(function(p){return p.name})])(u)},m=function(u){var v=(0,a.Oc)(),c=v.act,f=v.data,p=f.mapRef,C=f.activeCamera,y=h(f.cameras),O=d(y,C),b=O[0],I=O[1];return(0,e.jsx)(g.Zm,{width:870,height:708,children:(0,e.jsxs)(g.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(x.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),C&&C.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(o.$n,{icon:"chevron-left",disabled:!b,onClick:function(){return c("switch_camera",{name:b})}}),(0,e.jsx)(o.$n,{icon:"chevron-right",disabled:!I,onClick:function(){return c("switch_camera",{name:I})}}),"| PAN:",(0,e.jsx)(o.$n,{icon:"chevron-left",onClick:function(){return c("pan",{dir:8})}}),(0,e.jsx)(o.$n,{icon:"chevron-up",onClick:function(){return c("pan",{dir:1})}}),(0,e.jsx)(o.$n,{icon:"chevron-right",onClick:function(){return c("pan",{dir:4})}}),(0,e.jsx)(o.$n,{icon:"chevron-down",onClick:function(){return c("pan",{dir:2})}})]}),(0,e.jsx)(o.D1,{className:"CameraConsole__map",params:{id:p,type:"map"}})]})]})})}},77580:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosCommunicationsConsole:function(){return r}});var e=n(20462),s=n(2738),t=n(6938),r=function(){return(0,e.jsx)(s.Zm,{width:400,height:600,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},50902:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosConfiguration:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.PC_device_theme,m=d.power_usage,u=d.battery_exists,v=d.battery,c=v===void 0?{}:v,f=d.disk_size,p=d.disk_used,C=d.hardware,y=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{theme:h,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Power Supply",buttons:(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",m,"W"]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,e.jsxs)(t.z2,{value:c.charge,minValue:0,maxValue:c.max,ranges:{good:[c.max/2,1/0],average:[c.max/4,c.max/2],bad:[-1/0,c.max/4]},children:[c.charge," / ",c.max]}):"Not Available"})})}),(0,e.jsx)(t.wn,{title:"File System",children:(0,e.jsxs)(t.z2,{value:p,minValue:0,maxValue:f,color:"good",children:[p," GQ / ",f," GQ"]})}),(0,e.jsx)(t.wn,{title:"Hardware Components",children:y.map(function(O){return(0,e.jsx)(t.wn,{title:O.name,level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[!O.critical&&(0,e.jsx)(t.$n.Checkbox,{checked:O.enabled,mr:1,onClick:function(){return x("PC_toggle_component",{name:O.name})},children:"Enabled"}),(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",O.powerusage,"W"]})]}),children:O.desc},O.name)})})]})})}},23984:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosCrewManifest:function(){return r}});var e=n(20462),s=n(2738),t=n(58044),r=function(){return(0,e.jsx)(s.Zm,{width:800,height:600,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(t.CrewManifestContent,{})})})}},69233:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosCrewMonitor:function(){return a}});var e=n(20462),s=n(61358),t=n(2738),r=n(82703),a=function(){var o=function(f){h(f)},g=function(f){v(f)},x=(0,s.useState)(0),d=x[0],h=x[1],m=(0,s.useState)(1),u=m[0],v=m[1];return(0,e.jsx)(t.Zm,{width:800,height:600,children:(0,e.jsx)(t.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:d,zoom:u,onTabIndex:o,onZoom:g})})})}},31765:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosDigitalWarrant:function(){return o}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=v.warrantname,f=v.warrantcharges,p=v.warrantauth,C=v.type,y=v.allwarrants,O=(0,e.jsx)(g,{});return p&&(O=(0,e.jsx)(d,{})),(0,e.jsx)(a.Zm,{width:500,height:350,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:O})})},g=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=v.allwarrants;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return u("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{level:2,title:"Arrest Warrants",children:(0,e.jsx)(x,{type:"arrest"})}),(0,e.jsx)(r.wn,{level:2,title:"Search Warrants",children:(0,e.jsx)(x,{type:"search"})})]})},x=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=h.type,f=v.allwarrants,p=(0,s.pb)(function(C){return C.arrestsearch===c})(f);return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),p.length&&p.map(function(C){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:C.warrantname}),(0,e.jsx)(r.XI.Cell,{children:C.charges}),(0,e.jsx)(r.XI.Cell,{children:C.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrant",{id:C.id})}})})]},C.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",c," warrants found."]})})]})},d=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=v.warrantname,f=v.warrantcharges,p=v.warrantauth,C=v.type,y=C==="arrest",O=C==="arrest"?"Name":"Location",b=C==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:y?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return u("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return u("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return u("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:O,buttons:y&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return u("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantnamecustom")}}),children:c}),(0,e.jsx)(r.Ki.Item,{label:b,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantcharges")}}),children:f}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return u("editwarrantauth")}}),children:p})]})})}},99538:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosEmailAdministration:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(46189),o=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.error,p=c.cur_title,C=c.current_account,y=(0,e.jsx)(g,{});return f?y=(0,e.jsx)(x,{}):p?y=(0,e.jsx)(d,{}):C&&(y=(0,e.jsx)(h,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:y})})},g=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.accounts;return(0,e.jsxs)(t.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(t.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return v("newaccount")},children:"Create New Account"}),(0,e.jsx)(t.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),f.map(function(p){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return v("viewaccount",{viewaccount:p.uid})},children:p.login},p.uid)})]})},x=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.error;return(0,e.jsx)(t.wn,{title:"Message",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v("back")},children:"Back"}),children:f})},d=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data;return(0,e.jsx)(t.wn,{children:(0,e.jsx)(a.NtosEmailClientViewMessage,{administrator:!0})})},h=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.error,p=c.msg_title,C=c.msg_body,y=c.msg_timestamp,O=c.msg_source,b=c.current_account,I=c.cur_suspended,P=c.messages,S=c.accounts;return(0,e.jsxs)(t.wn,{title:"Viewing "+b+" in admin mode",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v("back")},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Status",children:(0,e.jsx)(t.$n,{color:I?"bad":"",icon:"ban",tooltip:(I?"Uns":"S")+"uspend Account?",onClick:function(){return v("ban")},children:I?"Suspended":"Normal"})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"key",onClick:function(){return v("changepass")},children:"Change Password"})})]}),(0,e.jsx)(t.wn,{level:2,title:"Messages",children:P.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Source"}),(0,e.jsx)(t.XI.Cell,{children:"Title"}),(0,e.jsx)(t.XI.Cell,{children:"Received at"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),P.map(function(M){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:M.source}),(0,e.jsx)(t.XI.Cell,{children:M.title}),(0,e.jsx)(t.XI.Cell,{children:M.timestamp}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return v("viewmail",{viewmail:M.uid})},children:"View"})})]},M.uid)})]})||(0,e.jsx)(t.az,{color:"average",children:"No messages found in selected account."})})]})}},46189:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosEmailClient:function(){return o},NtosEmailClientViewMessage:function(){return h}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=function(f){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.PC_device_theme,b=y.error,I=y.downloading,P=y.current_account,S=(0,e.jsx)(c,{});return b?S=(0,e.jsx)(v,{error:b}):I?S=(0,e.jsx)(g,{}):P&&(S=(0,e.jsx)(x,{})),(0,e.jsx)(a.Zm,{resizable:!0,theme:O,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:S})})},g=function(f){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.down_filename,b=y.down_progress,I=y.down_size,P=y.down_speed;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"File",children:[O," (",I," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:P})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",value:b,maxValue:I,children:[b,"/",I," (",(0,s.LI)(b/I*100,1),"%)"]})})]})})},x=function(f){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.current_account,b=y.addressbook,I=y.new_message,P=y.cur_title,S=(0,e.jsx)(d,{});return b?S=(0,e.jsx)(m,{}):I?S=(0,e.jsx)(u,{}):P&&(S=(0,e.jsx)(h,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+O,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return C("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return C("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return C("logout")}})]}),children:S})},d=function(f){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.current_account,b=y.folder,I=y.messagecount,P=y.messages;return(0,e.jsxs)(r.wn,{level:2,noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:b==="Inbox",onClick:function(){return C("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:b==="Spam",onClick:function(){return C("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:b==="Deleted",onClick:function(){return C("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),I&&(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Source"}),(0,e.jsx)(r.XI.Cell,{children:"Title"}),(0,e.jsx)(r.XI.Cell,{children:"Received At"}),(0,e.jsx)(r.XI.Cell,{children:"Actions"})]}),P.map(function(S){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:S.source}),(0,e.jsx)(r.XI.Cell,{children:S.title}),(0,e.jsx)(r.XI.Cell,{children:S.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return C("view",{view:S.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("reply",{reply:S.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return C("delete",{delete:S.uid})},tooltip:"Delete"})]})]},S.timestamp+S.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",b,"."]})]})},h=function(f){var p=(0,t.Oc)(),C=p.act,y=p.data,O=f.administrator,b=y.cur_title,I=y.cur_source,P=y.cur_timestamp,S=y.cur_body,M=y.cur_hasattachment,A=y.cur_attachment_filename,R=y.cur_attachment_size,K=y.cur_uid;return(0,e.jsx)(r.wn,{title:b,buttons:O?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return C("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return C("reply",{reply:K})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return C("delete",{delete:K})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return C("save",{save:K})}}),M&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return C("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return C("cancel",{cancel:K})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:I}),(0,e.jsx)(r.Ki.Item,{label:"At",children:P}),M&&!O&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[A," (",R,"GQ)"]})||null,(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:S}})})})]})})},m=function(f){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",level:2,buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("set_recipient",{set_recipient:null})}}),children:O.map(function(b){return(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return C("set_recipient",{set_recipient:b.login})},children:b.login},b.login)})})},u=function(f){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.current_account,b=y.msg_title,I=y.msg_recipient,P=y.msg_body,S=y.msg_hasattachment,M=y.msg_attachment_filename,A=y.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:b,onInput:function(R,K){return C("edit_title",{val:K})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:I,onInput:function(R,K){return C("edit_recipient",{val:K})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return C("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:S&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return C("addattachment")},children:"Add Attachment"}),children:S&&(0,e.jsxs)(r.az,{inline:!0,children:[M," (",A,"GQ)"]})||null}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return C("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},v=function(f){var p=(0,t.Oc)().act,C=f.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return p("reset")},children:"Return"}),children:(0,e.jsx)(r.az,{color:"bad",children:C})})},c=function(f){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.stored_login,b=y.stored_password;return(0,e.jsxs)(r.wn,{title:"Please Log In",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Email address",children:(0,e.jsx)(r.pd,{fluid:!0,value:O,onInput:function(I,P){return C("edit_login",{val:P})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:b,onInput:function(I,P){return C("edit_password",{val:P})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return C("login")},children:"Log In"})]})}},77127:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosFileManager:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.PC_device_theme,u=h.usbconnected,v=h.filename,c=h.filedata,f=h.error,p=h.files,C=p===void 0?[]:p,y=h.usbfiles,O=y===void 0?[]:y;return(0,e.jsx)(r.Zm,{resizable:!0,theme:m,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[v&&(0,e.jsx)(t.wn,{title:"Viewing File "+v,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("PRG_edit")},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return d("PRG_printfile")},children:"Print"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return d("PRG_closefile")},children:"Close"})]}),children:c&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:c}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(o,{files:C,usbconnected:u,onUpload:function(b){return d("PRG_copytousb",{uid:b})},onDelete:function(b){return d("PRG_deletefile",{uid:b})},onOpen:function(b){return d("PRG_openfile",{uid:b})},onRename:function(b,I){return d("PRG_rename",{uid:b,new_name:I})},onDuplicate:function(b){return d("PRG_clone",{uid:b})}})}),u&&(0,e.jsx)(t.wn,{title:"Data Disk",children:(0,e.jsx)(o,{usbmode:!0,files:O,usbconnected:u,onUpload:function(b){return d("PRG_copyfromusb",{uid:b})},onDelete:function(b){return d("PRG_deletefile",{uid:b})},onOpen:function(b){return d("PRG_openfile",{uid:b})},onRename:function(b,I){return d("PRG_rename",{uid:b,new_name:I})},onDuplicate:function(b){return d("PRG_clone",{uid:b})}})})||null,(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return d("PRG_newtextfile")},children:"New Text File"})})]}),f&&(0,e.jsxs)(t.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return d("PRG_clearerror")}})})}),(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.so.Item,{grow:!0,children:f})})]})]})})},o=function(g){var x=g.files,d=x===void 0?[]:x,h=g.usbconnected,m=g.usbmode,u=g.onUpload,v=g.onDelete,c=g.onRename,f=g.onOpen;return(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"File"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Size"})]}),d.map(function(p){return(0,e.jsxs)(t.XI.Row,{className:"candystripe",children:[(0,e.jsx)(t.XI.Cell,{children:p.undeletable?p.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{width:"80%",currentValue:p.name,tooltip:"Rename",onCommit:function(C,y){return c(p.uid,y)},children:p.name}),(0,e.jsx)(t.$n,{onClick:function(){return f(p.uid)},children:"Open"})]})}),(0,e.jsx)(t.XI.Cell,{children:p.type}),(0,e.jsx)(t.XI.Cell,{children:p.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:!p.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return v(p.uid)}}),!!h&&(m?(0,e.jsx)(t.$n,{icon:"download",tooltip:"Download",onClick:function(){return u(p.uid)}}):(0,e.jsx)(t.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return u(p.uid)}}))]})})]},p.name)})]})}},39925:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosIdentificationComputer:function(){return r}});var e=n(20462),s=n(2738),t=n(95331),r=function(){return(0,e.jsx)(s.Zm,{width:600,height:700,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.IdentificationComputerContent,{ntos:!0})})})}},97357:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosMain:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.device_theme,u=h.programs,v=u===void 0?[]:u,c=h.has_light,f=h.light_on,p=h.comp_light_color,C=h.removable_media,y=C===void 0?[]:C,O=h.login,b=O===void 0?[]:O;return(0,e.jsx)(r.Zm,{title:m==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:m,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!c&&(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.$n,{width:"144px",icon:"lightbulb",selected:f,onClick:function(){return d("PC_toggle_light")},children:["Flashlight: ",f?"ON":"OFF"]}),(0,e.jsxs)(t.$n,{ml:1,onClick:function(){return d("PC_light_color")},children:["Color:",(0,e.jsx)(t.BK,{ml:1,color:p})]})]}),(0,e.jsx)(t.wn,{title:"User Login",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!b.IDName,onClick:function(){return d("PC_Eject_Disk",{name:"ID"})},children:"Eject ID"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:["ID Name: ",b.IDName]}),(0,e.jsxs)(t.XI.Row,{children:["Assignment: ",b.IDJob]})]})}),!!y.length&&(0,e.jsx)(t.wn,{title:"Media Eject",children:(0,e.jsx)(t.XI,{children:y.map(function(I){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"eject",onClick:function(){return d("PC_Eject_Disk",{name:I})},children:I})})},I)})})}),(0,e.jsx)(t.wn,{title:"Programs",children:(0,e.jsx)(t.XI,{children:v.map(function(I){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:a[I.name]||"window-maximize-o",onClick:function(){return d("PC_runprogram",{name:I.name})},children:I.desc})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:!!I.running&&(0,e.jsx)(t.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return d("PC_killprogram",{name:I.name})}})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(t.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:I.autorun,onClick:function(){return d("PC_setautorun",{name:I.name})},children:"AR"})})]},I.name)})})})]})})}},12171:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNetChat:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.can_admin,m=d.adminmode,u=d.authed,v=d.username,c=d.active_channel,f=d.is_operator,p=d.all_channels,C=p===void 0?[]:p,y=d.clients,O=y===void 0?[]:y,b=d.messages,I=b===void 0?[]:b,P=c!==null,S=u||m;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(t.wn,{height:"600px",children:(0,e.jsx)(t.XI,{height:"580px",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(t.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(M,A){return x("PRG_newchannel",{new_channel_name:A})},children:"New Channel..."}),C.map(function(M){return(0,e.jsx)(t.$n,{fluid:!0,selected:M.id===c,color:"transparent",onClick:function(){return x("PRG_joinchannel",{id:M.id})},children:M.chan},M.chan)})]}),(0,e.jsx)(t.$n.Input,{fluid:!0,mt:1,currentValue:v,onCommit:function(M,A){return x("PRG_changename",{new_name:A})},children:v+"..."}),!!h&&(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:m?"bad":"good",onClick:function(){return x("PRG_toggleadmin")},children:"ADMIN MODE: "+(m?"ON":"OFF")})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.az,{height:"560px",overflowY:"scroll",children:P&&(S?I.map(function(M){return(0,e.jsx)(t.az,{children:M.msg},M.msg)}):(0,e.jsxs)(t.az,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(t.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(t.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(t.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(M,A){return x("PRG_speak",{message:A})}})]}),(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(t.az,{height:"465px",overflowY:"scroll",children:O.map(function(M){return(0,e.jsx)(t.az,{children:M.name},M.name)})}),P&&S&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,defaultValue:"new_log",onCommit:function(M,A){return x("PRG_savelog",{log_name:A})},children:"Save log..."}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return x("PRG_leavechannel")},children:"Leave Channel"})]}),!!f&&u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return x("PRG_deletechannel")},children:"Delete Channel"}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(M,A){return x("PRG_renamechannel",{new_name:A})},children:"Rename Channel..."}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(M,A){return x("PRG_setpassword",{new_password:A})},children:"Set Password..."})]})]})]})})})})})}},18515:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNetDos:function(){return a},NtosNetDosContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.relays,u=m===void 0?[]:m,v=h.focus,c=h.target,f=h.speed,p=h.overload,C=h.capacity,y=h.error;if(y)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:y}),(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",onClick:function(){return d("PRG_reset")},children:"Reset"})]});var O=function(I){for(var P="",S=p/C;P.lengthS?P+="0":P+="1";return P},b=45;return c?(0,e.jsxs)(t.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(t.az,{children:["CURRENT SPEED: ",f," GQ/s"]}),(0,e.jsx)(t.az,{children:O(b)}),(0,e.jsx)(t.az,{children:O(b)}),(0,e.jsx)(t.az,{children:O(b)}),(0,e.jsx)(t.az,{children:O(b)}),(0,e.jsx)(t.az,{children:O(b)})]}):(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:u.map(function(I){return(0,e.jsx)(t.$n,{selected:v===I.id,onClick:function(){return d("PRG_target_relay",{targid:I.id})},children:I.id},I.id)})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:"bad",textAlign:"center",disabled:!v,mt:1,onClick:function(){return d("PRG_execute")},children:"EXECUTE"})]})}},74988:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNetDownloader:function(){return o}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=function(x){var d=(0,t.Oc)(),h=d.act,m=d.data,u=m.PC_device_theme,v=m.disk_size,c=m.disk_used,f=m.downloadable_programs,p=f===void 0?[]:f,C=m.error,y=m.hacked_programs,O=y===void 0?[]:y,b=m.hackedavailable;return(0,e.jsx)(a.Zm,{theme:u,width:480,height:735,children:(0,e.jsxs)(a.Zm.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:C}),(0,e.jsx)(r.$n,{onClick:function(){return h("PRG_reseterror")},children:"Reset"})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:c,minValue:0,maxValue:v,children:c+" GQ / "+v+" GQ"})})})}),(0,e.jsx)(r.wn,{children:p.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})}),!!b&&(0,e.jsxs)(r.wn,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.IC,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),O.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})]})]})})},g=function(x){var d=x.program,h=(0,t.Oc)(),m=h.act,u=h.data,v=u.disk_size,c=u.disk_used,f=u.downloadcompletion,p=u.downloading,C=u.downloadname,y=u.downloadsize,O=u.downloadspeed,b=u.downloads_queue,I=v-c;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:d.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[d.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:d.filename===C&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:y,value:f,children:[(0,s.LI)(f/y*100,1),"%\xA0(",O,"GQ/s)"]})||b.indexOf(d.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return m("PRG_removequeued",{filename:d.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",disabled:d.size>I,onClick:function(){return m("PRG_downloadfile",{filename:d.filename})},children:"Download"})})]}),d.compatibility!=="Compatible"&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),d.size>I&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.az,{mt:1,italic:!0,color:"label",fontSize:"12px",children:d.fileinfo})]})}},69955:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNetMonitor:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.ntnetrelays,m=d.ntnetstatus,u=d.config_softwaredownload,v=d.config_peertopeer,c=d.config_communication,f=d.config_systemcontrol,p=d.idsalarm,C=d.idsstatus,y=d.ntnetmaxlogs,O=d.maxlogs,b=d.minlogs,I=d.banned_nids,P=d.ntnetlogs,S=P===void 0?[]:P;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(t.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(t.$n.Confirm,{icon:m?"power-off":"times",selected:m,onClick:function(){return x("toggleWireless")},children:m?"ENABLED":"DISABLED"}),children:h?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Active NTNet Relays",children:h})}):"No Relays Connected"}),(0,e.jsx)(t.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(t.$n,{icon:u?"power-off":"times",selected:u,onClick:function(){return x("toggle_function",{id:"1"})},children:u?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,onClick:function(){return x("toggle_function",{id:"2"})},children:v?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(t.$n,{icon:c?"power-off":"times",selected:c,onClick:function(){return x("toggle_function",{id:"3"})},children:c?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(t.$n,{icon:f?"power-off":"times",selected:f,onClick:function(){return x("toggle_function",{id:"4"})},children:f?"ENABLED":"DISABLED"})})]})}),(0,e.jsxs)(t.wn,{title:"Security Systems",children:[!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(t.az,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return x("ban_nid")},children:"Ban NID"}),(0,e.jsx)(t.$n,{icon:"balance-scale",onClick:function(){return x("unban_nid")},children:"Unban NID"})]}),children:I.join(", ")||"None"}),(0,e.jsx)(t.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:C?"power-off":"times",selected:C,onClick:function(){return x("toggleIDS")},children:C?"ENABLED":"DISABLED"}),(0,e.jsx)(t.$n,{icon:"sync",color:"bad",onClick:function(){return x("resetIDS")},children:"Reset"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(t.Q7,{value:y,minValue:b,maxValue:O,width:"39px",onChange:function(M,A){return x("updatemaxlogs",{new_number:A})}})})]}),(0,e.jsx)(t.wn,{title:"System Log",level:2,buttons:(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return x("purgelogs")},children:"Clear Logs"}),children:S.map(function(M){return(0,e.jsx)(t.az,{className:"candystripe",children:M.entry},M.entry)})})]})]})})}},60056:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNetTransfer:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.error,p=c.downloading,C=c.uploading,y=c.upload_filelist,O=(0,e.jsx)(h,{});return f?O=(0,e.jsx)(o,{}):p?O=(0,e.jsx)(g,{}):C?O=(0,e.jsx)(x,{}):y.length&&(O=(0,e.jsx)(d,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:O})})},o=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.error;return(0,e.jsxs)(t.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v("PRG_reset")},children:"Reset"}),children:["Additional Information: ",f]})},g=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.download_name,p=c.download_progress,C=c.download_size,y=c.download_netspeed;return(0,e.jsx)(t.wn,{title:"Download in progress",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Downloaded File",children:f}),(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsxs)(t.z2,{value:p,maxValue:C,children:[p," / ",C," GQ"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Speed",children:[y," GQ/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Controls",children:(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return v("PRG_reset")},children:"Cancel Download"})})]})})},x=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.upload_clients,p=c.upload_filename,C=c.upload_haspassword;return(0,e.jsx)(t.wn,{title:"Server enabled",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Clients Connected",children:f}),(0,e.jsx)(t.Ki.Item,{label:"Provided file",children:p}),(0,e.jsx)(t.Ki.Item,{label:"Server Password",children:C?"Enabled":"Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Commands",children:[(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return v("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return v("PRG_reset")},children:"Cancel Upload"})]})]})})},d=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.upload_filelist;return(0,e.jsxs)(t.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"lock",onClick:function(){return v("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.wn,{title:"Pick file to serve.",level:2,children:f.map(function(p){return(0,e.jsxs)(t.$n,{fluid:!0,icon:"upload",onClick:function(){return v("PRG_uploadfile",{uid:p.uid})},children:[p.filename," (",p.size,"GQ)"]},p.uid)})})]})},h=function(m){var u=(0,s.Oc)(),v=u.act,c=u.data,f=c.servers;return(0,e.jsx)(t.wn,{title:"Available Files",buttons:(0,e.jsx)(t.$n,{icon:"upload",onClick:function(){return v("PRG_uploadmenu")},children:"Send File"}),children:f.length&&(0,e.jsx)(t.Ki,{children:f.map(function(p){return(0,e.jsxs)(t.Ki.Item,{label:p.uid,children:[!!p.haspassword&&(0,e.jsx)(t.In,{name:"lock",mr:1}),p.filename,"\xA0 (",p.size,"GQ)\xA0",(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return v("PRG_downloadfile",{uid:p.uid})},children:"Download"})]},p.uid)})})||(0,e.jsx)(t.az,{children:"No upload servers found."})})}},95799:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNewsBrowser:function(){return o}});var e=n(20462),s=n(31200),t=n(7081),r=n(16754),a=n(2738),o=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=v.article,f=v.download,p=v.message,C=(0,e.jsx)(x,{});return c?C=(0,e.jsx)(g,{}):f&&(C=(0,e.jsx)(d,{})),(0,e.jsx)(a.Zm,{width:575,height:750,children:(0,e.jsxs)(a.Zm.Content,{scrollable:!0,children:[!!p&&(0,e.jsxs)(r.IC,{children:[p," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return u("PRG_clearmessage")}})]}),C]})})},g=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=v.article;if(!c)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var f=c.title,p=c.cover,C=c.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+f,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return u("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return u("PRG_reset")},children:"Close"})]}),children:[!!p&&(0,e.jsx)("img",{src:(0,s.l)(p)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})]})},x=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=v.showing_archived,f=v.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return u("PRG_toggle_archived")},checked:c,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:f.length&&f.map(function(p){return(0,e.jsxs)(r.Ki.Item,{label:p.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return u("PRG_openarticle",{uid:p.uid})}}),children:[p.size," GQ"]},p.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},d=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=v.download,f=c.download_progress,p=c.download_maxprogress,C=c.download_rate;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,value:f,maxValue:p,children:[f," / ",p," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[C," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return u("PRG_reset")},children:"Abort Download"})})]})})}},95436:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosOvermapNavigation:function(){return r}});var e=n(20462),s=n(2738),t=n(65912),r=function(){return(0,e.jsx)(s.Zm,{width:380,height:530,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.OvermapNavigationContent,{})})})}},75655:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosPowerMonitor:function(){return r}});var e=n(20462),s=n(2738),t=n(30889),r=function(){return(0,e.jsx)(s.Zm,{width:550,height:700,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},81986:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosRCON:function(){return r}});var e=n(20462),s=n(2738),t=n(40932),r=function(){return(0,e.jsx)(s.Zm,{width:630,height:440,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.RCONContent,{})})})}},35399:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosRevelation:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(m,u){return x("PRG_obfuscate",{new_name:u})},mb:1,children:"Obfuscate Name..."}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(t.$n,{color:h?"bad":"average",onClick:function(){return x("PRG_arm")},children:h?"ARMED":"DISARMED"})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,textAlign:"center",color:"bad",disabled:!h,children:"ACTIVATE"})]})})})}},79389:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosShutoffMonitor:function(){return r}});var e=n(20462),s=n(2738),t=n(20563),r=function(){return(0,e.jsx)(s.Zm,{width:627,height:700,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(t.ShutoffMonitorContent,{})})})}},98011:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosStationAlertConsole:function(){return r}});var e=n(20462),s=n(2738),t=n(20717),r=function(){return(0,e.jsx)(s.Zm,{width:315,height:500,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.StationAlertConsoleContent,{})})})}},57488:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosSupermatterMonitor:function(){return r}});var e=n(20462),s=n(2738),t=n(18766),r=function(){return(0,e.jsx)(s.Zm,{width:600,height:400,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.SupermatterMonitorContent,{})})})}},46756:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosUAV:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.current_uav,m=d.signal_strength,u=d.in_use,v=d.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(t.wn,{title:"Selected UAV",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"UAV",children:h&&h.status||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Signal",children:h&&m||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:h&&(0,e.jsx)(t.$n,{icon:"power-off",selected:h.power,onClick:function(){return x("power_uav")},children:h.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Camera",children:h&&(0,e.jsx)(t.$n,{icon:"power-off",selected:u,disabled:!h.power,onClick:function(){return x("view_uav")},children:h.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(t.wn,{title:"Paired UAVs",children:v.length&&v.map(function(c){return(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"quidditch",onClick:function(){return x("switch_uav",{switch_uav:c.uavref})},children:c.name})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{color:"bad",icon:"times",onClick:function(){return x("del_uav",{del_uav:c.uavref})}})})]},c.uavref)})||(0,e.jsx)(t.az,{color:"average",children:"No UAVs Paired."})})]})})}},25268:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosWordProcessor:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.PC_device_theme,m=d.error,u=d.browsing,v=d.files,c=d.usbconnected,f=d.usbfiles,p=d.filename,C=d.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:h,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:m&&(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",m,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return x("PRG_backtomenu")},children:"Back to menu"})]})||u&&(0,e.jsx)(t.wn,{title:"File Browser",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return x("PRG_closebrowser")},children:"Back to editor"}),children:(0,e.jsx)(t.wn,{title:"Available documents (local)",level:2,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0})]}),v.map(function(y,O){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:y.name}),(0,e.jsx)(t.XI.Cell,{children:y.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return x("PRG_openfile",{PRG_openfile:y.name})},children:"Open"})})]},O)})]})})})||(0,e.jsxs)(t.wn,{title:"Document: "+p,children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_newfile")},children:"New"}),(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_savefile")},children:"Save"}),(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_editfile")},children:"Edit"}),(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(t.$n,{disabled:!C,onClick:function(){return x("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(t.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})})]})})})}},46836:function(_,j,n){"use strict";n.r(j),n.d(j,{NumberInputModal:function(){return d}});var e=n(20462),s=n(87239),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=n(5335),x=n(44149),d=function(m){var u=(0,r.Oc)(),v=u.act,c=u.data,f=c.init_value,p=c.large_buttons,C=c.message,y=C===void 0?"":C,O=c.timeout,b=c.title,I=(0,t.useState)(f),P=I[0],S=I[1],M=function(R){R!==P&&S(R)},A=140+(y.length>30?Math.ceil(y.length/3):0)+(y.length&&p?5:0);return(0,e.jsxs)(o.p8,{title:b,width:270,height:A,children:[O&&(0,e.jsx)(x.Loader,{value:O}),(0,e.jsx)(o.p8.Content,{onKeyDown:function(R){R.key===s._.Enter&&v("submit",{entry:P}),R.key===s._.Escape&&v("cancel")},children:(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.az,{color:"label",children:y})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(h,{input:P,onClick:M,onChange:M,onBlur:M})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:P})})]})})})]})},h=function(m){var u=(0,r.Oc)(),v=u.act,c=u.data,f=c.min_value,p=c.max_value,C=c.init_value,y=c.round_value,O=m.input,b=m.onClick,I=m.onChange,P=m.onBlur;return(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{disabled:O===f,icon:"angle-double-left",onClick:function(){return b(f)},tooltip:f?"Min ("+f+")":"Min"})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!y,minValue:f,maxValue:p,onChange:function(S,M){return I(M)},onBlur:function(S,M){return P(M)},onEnter:function(S,M){return v("submit",{entry:M})},value:O})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{disabled:O===p,icon:"angle-double-right",onClick:function(){return b(p)},tooltip:p?"Max ("+p+")":"Max"})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{disabled:O===C,icon:"redo",onClick:function(){return b(C)},tooltip:C?"Reset ("+C+")":"Reset"})})]})}},12333:function(_,j,n){"use strict";n.r(j),n.d(j,{OmniFilter:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.power,u=h.config,v=h.ports,c=h.set_flow_rate,f=h.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:u?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:m,disabled:u,onClick:function(){return d("power")},children:m?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:u,onClick:function(){return d("configure")}})]}),children:(0,e.jsx)(t.Ki,{children:v?v.map(function(p){return(0,e.jsx)(t.Ki.Item,{label:p.dir+" Port",children:u?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:p.input,icon:"compress-arrows-alt",onClick:function(){return d("switch_mode",{mode:"in",dir:p.dir})},children:"IN"}),(0,e.jsx)(t.$n,{selected:p.output,icon:"expand-arrows-alt",onClick:function(){return d("switch_mode",{mode:"out",dir:p.dir})},children:"OUT"}),(0,e.jsx)(t.$n,{icon:"wrench",disabled:p.input||p.output,onClick:function(){return d("switch_filter",{mode:p.f_type,dir:p.dir})},children:p.f_type||"None"})]}):a(p)},p.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[f," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:u?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return d("set_flow_rate")},children:c+" L/s"}):c+" L/s"})]})})]})})}},60780:function(_,j,n){"use strict";n.r(j),n.d(j,{OmniMixer:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},o=function(x){var d=(0,s.Oc)(),h=d.act,m=d.data,u=m.power,v=m.config,c=m.ports,f=m.set_flow_rate,p=m.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:v?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:u,disabled:v,onClick:function(){return h("power")},children:u?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:v,onClick:function(){return h("configure")}})]}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Port"}),v?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Concentration"}),v?(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),c?c.map(function(C){return(0,e.jsx)(g,{port:C,config:v},C.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[p," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:v?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return h("set_flow_rate")},children:f+" L/s"}):f+" L/s"})]})})]})})},g=function(x){var d=(0,s.Oc)().act,h=x.port,m=x.config;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:h.dir+" Port"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:m?(0,e.jsx)(t.$n,{selected:h.input,disabled:h.output,icon:"compress-arrows-alt",onClick:function(){return d("switch_mode",{mode:h.input?"none":"in",dir:h.dir})},children:"IN"}):a(h)}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:m?(0,e.jsx)(t.$n,{selected:h.output,icon:"expand-arrows-alt",onClick:function(){return d("switch_mode",{mode:"out",dir:h.dir})},children:"OUT"}):h.concentration*100+"%"}),m?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(t.$n,{width:"100%",icon:"wrench",disabled:!h.input,onClick:function(){return d("switch_con",{dir:h.dir})},children:h.input?h.concentration*100+" %":"-"})}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{icon:h.con_lock?"lock":"lock-open",disabled:!h.input,selected:h.con_lock,onClick:function(){return d("switch_conlock",{dir:h.dir})},children:h.f_type||"None"})})]}):null]})}},51498:function(_,j,n){"use strict";n.r(j),n.d(j,{OperatingComputer:function(){return h}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},d=["bad","average","average","good","average","average","bad"],h=function(c){var f=(0,t.Oc)(),p=f.act,C=f.data,y=C.hasOccupant,O=C.choice,b;return O?b=(0,e.jsx)(v,{}):b=y?(0,e.jsx)(m,{}):(0,e.jsx)(u,{}),(0,e.jsx)(a.p8,{width:650,height:455,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:!O,icon:"user",onClick:function(){return p("choiceOff")},children:"Patient"}),(0,e.jsx)(r.tU.Tab,{selected:!!O,icon:"cog",onClick:function(){return p("choiceOn")},children:"Options"})]}),(0,e.jsx)(r.wn,{flexGrow:"1",children:b})]})})},m=function(c){var f=(0,t.Oc)().data,p=f.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Patient",level:"2",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:p.name}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:o[p.stat][0],children:o[p.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:p.maxHealth,value:p.health/p.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),g.map(function(C,y){return(0,e.jsx)(r.Ki.Item,{label:C[0]+" Damage",children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:p[C[1]]/100,ranges:x,children:(0,s.LI)(p[C[1]])},y)},y)}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:p.maxTemp,value:p.bodyTemperature/p.maxTemp,color:d[p.temperatureSuitability+3],children:[(0,s.LI)(p.btCelsius),"\xB0C, ",(0,s.LI)(p.btFaren),"\xB0F"]})}),!!p.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:p.bloodMax,value:p.bloodLevel/p.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[p.bloodPercent,"%, ",p.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",children:[p.pulse," BPM"]})]})]})}),(0,e.jsx)(r.wn,{title:"Current Procedure",level:"2",children:p.surgery&&p.surgery.length?(0,e.jsx)(r.Ki,{children:p.surgery.map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current State",children:C.currentStage}),(0,e.jsx)(r.Ki.Item,{label:"Possible Next Steps",children:C.nextSteps.map(function(y){return(0,e.jsx)("div",{children:y},y)})})]})},C.name)})}):(0,e.jsx)(r.az,{color:"label",children:"No procedure ongoing."})})]})},u=function(){return(0,e.jsx)(r.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No patient detected."]})})},v=function(c){var f=(0,t.Oc)(),p=f.act,C=f.data,y=C.verbose,O=C.health,b=C.healthAlarm,I=C.oxy,P=C.oxyAlarm,S=C.crit;return(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(r.$n,{selected:y,icon:y?"toggle-on":"toggle-off",onClick:function(){return p(y?"verboseOff":"verboseOn")},children:y?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(r.$n,{selected:O,icon:O?"toggle-on":"toggle-off",onClick:function(){return p(O?"healthOff":"healthOn")},children:O?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:b,stepPixelSize:"5",ml:"0",format:function(M){return M+"%"},onChange:function(M,A){return p("health_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(r.$n,{selected:I,icon:I?"toggle-on":"toggle-off",onClick:function(){return p(I?"oxyOff":"oxyOn")},children:I?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:P,stepPixelSize:"5",ml:"0",onChange:function(M,A){return p("oxy_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(r.$n,{selected:S,icon:S?"toggle-on":"toggle-off",onClick:function(){return p(S?"critOff":"critOn")},children:S?"On":"Off"})})]})}},16371:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapDisperser:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(67804),o=function(x){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,s.Oc)(),h=d.act,m=d.data,u=m.faillink,v=m.calibration,c=m.overmapdir,f=m.cal_accuracy,p=m.strength,C=m.range,y=m.next_shot,O=m.nopower,b=m.skill,I=m.chargeload;return u?(0,e.jsx)(t.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(t.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"22%",children:(0,e.jsx)(t.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(a.OvermapPanControls,{actToDo:"choose",selected:function(P){return P===c}})})}),(0,e.jsx)(t.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(t.wn,{title:"Charge",children:(0,e.jsxs)(t.Ki,{children:[O&&(0,e.jsx)(t.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.jsx)(t.Ki.Item,{label:"Charge Load Type",children:I}),(0,e.jsx)(t.Ki.Item,{label:"Cooldown",children:y===0&&(0,e.jsx)(t.az,{color:"good",children:"Ready"})||y>1&&(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.zv,{value:y})," Seconds",(0,e.jsx)(t.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.jsx)(t.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(t.wn,{title:"Calibration",children:[(0,e.jsx)(t.zv,{value:f}),"%",(0,e.jsx)(t.$n,{ml:1,icon:"exchange-alt",onClick:function(){return h("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(t.az,{mt:1,children:v.map(function(P,S){return(0,e.jsxs)(t.az,{children:["Cal #",S,":",(0,e.jsx)(t.$n,{ml:1,icon:"random",onClick:function(){return h("calibration",{calibration:S})},children:P.toString()})]},S)})})]})}),(0,e.jsx)(t.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(t.wn,{title:"Setup",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Strength",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return h("strength")},children:p})}),(0,e.jsx)(t.Ki.Item,{label:"Radius",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return h("range")},children:C})})]})})}),(0,e.jsx)(t.so.Item,{grow:1,mt:1,children:(0,e.jsx)(t.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return h("fire")},children:"Fire ORB"})})]})}},73847:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapEngines:function(){return a},OvermapEnginesContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.global_state,u=h.global_limit,v=h.engines_info,c=h.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Engines",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:m,onClick:function(){return d("global_toggle")},children:m?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return d("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return d("set_global_limit")},children:[u,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return d("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(t.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(t.zv,{value:c})})]})}),(0,e.jsx)(t.wn,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:v.map(function(f,p){return(0,e.jsxs)(t.so,{spacing:1,mt:p!==0&&-1,children:[(0,e.jsx)(t.so.Item,{basis:"80%",children:(0,e.jsx)(t.Nt,{title:(0,e.jsxs)(t.az,{inline:!0,children:["Engine #",p+1," | Thrust:"," ",(0,e.jsx)(t.zv,{value:f.eng_thrust})," | Limit:"," ",(0,e.jsx)(t.zv,{value:f.eng_thrust_limiter,format:function(C){return C+"%"}})]}),children:(0,e.jsx)(t.wn,{width:"127%",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Type",children:f.eng_type}),(0,e.jsxs)(t.Ki.Item,{label:"Status",children:[(0,e.jsx)(t.az,{color:f.eng_on?f.eng_on===1?"good":"average":"bad",children:f.eng_on?f.eng_on===1?"Online":"Booting":"Offline"}),f.eng_status.map(function(C,y){return Array.isArray(C)?(0,e.jsx)(t.az,{color:C[1],children:C[0]},y):(0,e.jsx)(t.az,{children:C},y)})]}),(0,e.jsx)(t.Ki.Item,{label:"Current Thrust",children:f.eng_thrust}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return d("limit",{limit:-.1,engine:f.eng_reference})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return d("set_limit",{engine:f.eng_reference})},children:[f.eng_thrust_limiter,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return d("limit",{limit:.1,engine:f.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(t.so.Item,{basis:"20%",children:(0,e.jsx)(t.$n,{fluid:!0,iconSpin:f.eng_on===-1,color:f.eng_on===-1?"purple":null,selected:f.eng_on===1,icon:"power-off",onClick:function(){return d("toggle_engine",{engine:f.eng_reference})},children:f.eng_on?f.eng_on===1?"Shutoff":"Booting":"Startup"})})]},p)})})]})}},61321:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapFull:function(){return x}});var e=n(20462),s=n(61358),t=n(16754),r=n(2738),a=n(73847),o=n(95828),g=n(40489),x=function(d){var h=(0,s.useState)(0),m=h[0],u=h[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:m===0,onClick:function(){return u(0)},children:"Engines"}),(0,e.jsx)(t.tU.Tab,{selected:m===1,onClick:function(){return u(1)},children:"Helm"}),(0,e.jsx)(t.tU.Tab,{selected:m===2,onClick:function(){return u(2)},children:"Sensors"})]}),m===0&&(0,e.jsx)(a.OvermapEnginesContent,{}),m===1&&(0,e.jsx)(o.OvermapHelmContent,{}),m===2&&(0,e.jsx)(g.OvermapShipSensorsContent,{})]})})}},95828:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapFlightDataWrap:function(){return x},OvermapHelm:function(){return o},OvermapHelmContent:function(){return g}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(67804),o=function(u){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(u){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(x,{})}),(0,e.jsx)(t.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(d,{})}),(0,e.jsx)(t.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(h,{})})]}),(0,e.jsx)(m,{})]})},x=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1",margin:"none"},className:"Section",children:[(0,e.jsx)("legend",{children:"Flight Data"}),(0,e.jsx)(a.OvermapFlightData,{})]})},d=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.canburn,C=f.manual_control;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Manual Control"}),(0,e.jsx)(t.so,{align:"center",justify:"center",children:(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(a.OvermapPanControls,{disabled:!p,actToDo:"move"})})}),(0,e.jsxs)(t.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(t.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(t.$n,{selected:C,onClick:function(){return c("manual")},icon:"compass",children:C?"Enabled":"Disabled"})]})]})},h=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.dest,C=f.d_x,y=f.d_y,O=f.speedlimit,b=f.autopilot,I=f.autopilot_disabled;return I?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(t.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(t.az,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.$n.Confirm,{mt:1,color:"bad",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("apilot_lock")},children:"Unlock Autopilot"})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{onClick:function(){return c("setcoord",{setx:!0})},children:C}),(0,e.jsx)(t.$n,{onClick:function(){return c("setcoord",{sety:!0})},children:y})]})||(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return c("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(t.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(t.$n,{icon:"tachometer-alt",onClick:function(){return c("speedlimit")},children:[O," Gm/h"]})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,selected:b,disabled:!p,icon:"robot",onClick:function(){return c("apilot")},children:b?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return c("apilot_lock")},children:"Lock Autopilot"})]})},m=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.sector,C=f.s_x,y=f.s_y,O=f.sector_info,b=f.landed,I=f.locations;return(0,e.jsxs)(t.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:p}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[C," : ",y]}),(0,e.jsx)(t.Ki.Item,{label:"Scan Data",children:O}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:b})]}),(0,e.jsxs)(t.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"save",onClick:function(){return c("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return c("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(t.wn,{mt:1,scrollable:!0,fill:!0,height:"130px",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),I.map(function(P){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:P.name}),(0,e.jsxs)(t.XI.Cell,{children:[P.x," : ",P.y]}),(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return c("setds",{x:P.x,y:P.y})},children:"Plot Course"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return c("remove",{remove:P.reference})},children:"Remove"})]})]},P.name)})]})})]})}},65912:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapNavigation:function(){return o},OvermapNavigationContent:function(){return g}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(67804),o=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,s.Oc)(),h=d.act,m=d.data,u=m.sector,v=m.s_x,c=m.s_y,f=m.sector_info,p=m.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Current Location",buttons:(0,e.jsx)(t.$n,{icon:"eye",selected:p,onClick:function(){return h("viewing")},children:"Map View"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:u}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[v," : ",c]}),(0,e.jsx)(t.Ki.Item,{label:"Additional Information",children:f})]})}),(0,e.jsx)(t.wn,{title:"Flight Data",children:(0,e.jsx)(a.OvermapFlightData,{disableLimiterControls:!0})})]})}},3500:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapShieldGenerator:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(d){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(o,{})})})},o=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data,v=u.modes,c=u.offline_for;return c?(0,e.jsxs)(t.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",c," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{}),(0,e.jsx)(t.wn,{title:"Field Calibration",children:v.map(function(f){return(0,e.jsxs)(t.wn,{title:f.name,level:2,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f.status,onClick:function(){return m("toggle_mode",{toggle_mode:f.flag})},children:f.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(t.az,{color:"label",children:f.desc}),(0,e.jsxs)(t.az,{mt:.5,children:["Multiplier: ",f.multiplier]})]},f.name)})})]})},g=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data,v=u.running,c=u.overloaded,f=u.mitigation_max,p=u.mitigation_physical,C=u.mitigation_em,y=u.mitigation_heat,O=u.field_integrity,b=u.max_energy,I=u.current_energy,P=u.percentage_energy,S=u.total_segments,M=u.functional_segments,A=u.field_radius,R=u.target_radius,K=u.input_cap_kw,N=u.upkeep_power_usage,k=u.power_usage,F=u.spinup_counter;return(0,e.jsx)(t.wn,{title:"System Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Generator is",children:v===1&&(0,e.jsx)(t.az,{color:"average",children:"Shutting Down"})||v===2&&(c&&(0,e.jsx)(t.az,{color:"bad",children:"Overloaded"})||(0,e.jsx)(t.az,{color:"good",children:"Running"}))||v===3&&(0,e.jsx)(t.az,{color:"average",children:"Inactive"})||v===4&&(0,e.jsxs)(t.az,{color:"blue",children:["Spinning Up\xA0",R!==A&&(0,e.jsx)(t.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(t.az,{inline:!0,children:[F*2,"s"]})]})||(0,e.jsx)(t.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(t.z2,{value:I,maxValue:b,children:[I," / ",b," MJ (",P,"%)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(t.zv,{value:O}),"%"]}),(0,e.jsxs)(t.Ki.Item,{label:"Mitigation",children:[C,"% EM / ",p,"% PH / ",y,"% HE / ",f,"% MAX"]}),(0,e.jsxs)(t.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(t.zv,{value:N})," kW"]}),(0,e.jsx)(t.Ki.Item,{label:"Total Energy Use",children:K&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.z2,{value:k,maxValue:K,children:[k," / ",K," kW"]})})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.zv,{value:k})," kW (No Limit)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(t.zv,{value:M}),"\xA0/\xA0",(0,e.jsx)(t.zv,{value:S})," m\xB2 (radius"," ",(0,e.jsx)(t.zv,{value:A}),", target"," ",(0,e.jsx)(t.zv,{value:R}),")"]})]})})},x=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data,v=u.running,c=u.hacked,f=u.idle_multiplier,p=u.idle_valid_values;return(0,e.jsxs)(t.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[v>=2&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return m("begin_shutdown")},selected:!0,children:"Turn off"}),v===3&&(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return m("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return m("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return m("start_generator")},children:"Turn on"}),v&&c&&(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return m("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null]}),children:[(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return m("set_range")},children:"Set Field Range"}),(0,e.jsx)(t.$n,{icon:"bolt",onClick:function(){return m("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Set inactive power use intensity",children:p.map(function(C){return(0,e.jsx)(t.$n,{selected:C===f,disabled:v===4,onClick:function(){return m("switch_idle",{switch_idle:C})},children:C},C)})})})]})}},40489:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapShipSensors:function(){return a},OvermapShipSensorsContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.viewing,u=h.on,v=h.range,c=h.health,f=h.max_health,p=h.heat,C=h.critical_heat,y=h.status,O=h.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eye",selected:m,onClick:function(){return d("viewing")},children:"Map View"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:u,onClick:function(){return d("toggle_sensor")},children:u?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:y}),(0,e.jsx)(t.Ki.Item,{label:"Range",children:(0,e.jsx)(t.$n,{icon:"signal",onClick:function(){return d("range")},children:v})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(t.z2,{ranges:{good:[f*.75,1/0],average:[f*.25,f*.75],bad:[-1/0,f*.25]},value:c,maxValue:f,children:[c," / ",f]})}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsx)(t.z2,{ranges:{bad:[C*.75,1/0],average:[C*.5,C*.75],good:[-1/0,C*.5]},value:p,maxValue:C,children:p0||!p)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return h("cancel",{cancel:I+1})},children:"Cancel"})||null]},b)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:O.length&&O.map(function(b){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return h("queue",{queue:b.type})},children:(0,s.Sn)(b.name)})},b.name)})})]})})}},14889:function(_,j,n){"use strict";n.r(j),n.d(j,{PathogenicIsolator:function(){return x}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(38509),o=n(2738),g=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=c.can_print,p=m.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:p.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!f,icon:"print",onClick:function(){return v("print",{type:"virus_record",vir:p.record})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return v("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[p.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:p.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:p.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[p.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:p.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:p.symptoms.map(function(C){return(0,e.jsxs)(r.Ki.Item,{label:C.stage+". "+C.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",C.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",C.aggressiveness]})]},C.stage)})})})]})})})},x=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=c.isolating,p=(0,s.useState)(0),C=p[0],y=p[1],O=null;return C===0?O=(0,e.jsx)(d,{}):C===1&&(O=(0,e.jsx)(h,{})),(0,a.modalRegisterBodyOverride)("virus",g),(0,e.jsxs)(o.p8,{height:500,width:520,children:[(0,e.jsx)(a.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[f&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:C===0,onClick:function(){return y(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:C===1,onClick:function(){return y(1)},children:"Database"})]}),O]})]})},d=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=c.syringe_inserted,p=c.pathogen_pool,C=c.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",disabled:!C,onClick:function(){return v("print",{type:"patient_diagnosis"})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"eject",disabled:!f,onClick:function(){return v("eject")},children:"Eject Syringe"})]}),children:p.length&&p.map(function(y){return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{color:"label",children:(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",y.unique_id]}),y.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",onClick:function(){return v("isolate",{isolate:y.reference})},children:"Isolate"}),(0,e.jsx)(r.$n,{icon:"search",disabled:!y.is_in_database,onClick:function(){return v("view_entry",{vir:y.record})},children:"Database"})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:y.name}),y.dna]})]},y.unique_id)})||(f?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},h=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=c.database,p=c.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",disabled:!p,onClick:function(){return v("print",{type:"virus_list"})},children:"Print"}),children:f.length&&f.map(function(C){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return v("view_entry",{vir:C.record})},children:C.name},C.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},90945:function(_,j,n){"use strict";n.r(j),n.d(j,{Pda:function(){return d}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=n(15857),g=n(7339),x=function(v){var c;try{c=g("./"+v+".jsx")}catch(p){if(p.code==="MODULE_NOT_FOUND")return(0,o.z)("notFound",v);throw p}var f=c[v];return f||(0,o.z)("missingExport",v)},d=function(v){var c=function(R){M(R)},f=(0,t.Oc)(),p=f.act,C=f.data,y=C.app,O=C.owner,b=C.useRetro;if(!O)return(0,e.jsx)(a.p8,{children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var I=x(y.template),P=(0,s.useState)(!1),S=P[0],M=P[1];return(0,e.jsx)(a.p8,{width:580,height:670,theme:b?"pda-retro":null,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(h,{settingsMode:S,onSettingsMode:c}),S&&(0,e.jsx)(m,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:y.icon,mr:1}),y.name]}),p:1,children:(0,e.jsx)(I,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(u,{onSettingsMode:c})]})})},h=function(v){var c=(0,t.Oc)(),f=c.act,p=c.data,C=p.idInserted,y=p.idLink,O=p.cartridge_name,b=p.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!C&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return f("Authenticate")},children:y})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:b}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:v.settingsMode,onClick:function(){return v.onSettingsMode(!v.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return f("Retro")},icon:"adjust"})]})]})})},m=function(v){var c=(0,t.Oc)(),f=c.act,p=c.data,C=p.idInserted,y=p.idLink,O=p.cartridge_name,b=p.touch_silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.$n,{icon:"cog",onClick:function(){return f("Retro")},children:"Retro Theme"})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!b,onClick:function(){return f("TouchSounds")},children:b?"Disabled":"Enabled"})}),!!O&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("Eject")},children:O})}),!!C&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("Authenticate")},children:y})})]})})},u=function(v){var c=(0,t.Oc)(),f=c.act,p=c.data,C=p.app,y=p.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:y?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:C.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return f("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:C.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){v.onSettingsMode(!1),f("Home")}})})]})})}},21104:function(_,j,n){"use strict";n.r(j),n.d(j,{PersonalCrafting:function(){return h}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738);function o(u,v){(v==null||v>u.length)&&(v=u.length);for(var c=0,f=new Array(v);c=u.length?{done:!0}:{done:!1,value:u[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=function(u){for(var v,c=(0,t.Oc)(),f=c.act,p=c.data,C=p.busy,y=p.display_craftable_only,O=p.display_compact,b=p.crafting_recipes||{},I=[],P=[],S=d(Object.keys(b)),M;!(M=S()).done;){var A=M.value,R=b[A];if("has_subcats"in R){for(var K=d(Object.keys(R)),N;!(N=K()).done;){var k=N.value;if(k!=="has_subcats"){I.push({name:k,category:A,subcategory:k});for(var F=R[k],W=d(F),J;!(J=W()).done;){var X=J.value;P.push(g({},X,{category:k}))}}}continue}I.push({name:A,category:A});for(var Q=b[A],Z=d(Q),G;!(G=Z()).done;){var H=G.value;P.push(g({},H,{category:A}))}}var V=(0,s.useState)((v=I[0])==null?void 0:v.name),q=V[0],ie=V[1],te=P.filter(function(ue){return ue.category===q});return(0,e.jsx)(a.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{checked:O,onClick:function(){return f("toggle_compact")},children:"Compact"}),(0,e.jsx)(r.$n.Checkbox,{checked:y,onClick:function(){return f("toggle_recipes")},children:"Craftable Only"})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:I.map(function(ue){return(0,e.jsx)(r.tU.Tab,{selected:ue.name===q,onClick:function(){ie(ue.name),f("set_category",{category:ue.category,subcategory:ue.subcategory})},children:ue.name},ue.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(m,{craftables:te})})]})})]})})},m=function(u){var v=u.craftables,c=v===void 0?[]:v,f=(0,t.Oc)(),p=f.act,C=f.data,y=C.craftability,O=y===void 0?{}:y,b=C.display_compact,I=C.display_craftable_only;return c.map(function(P){return I&&!O[P.ref]?null:b?(0,e.jsx)(r.Ki.Item,{label:P.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!O[P.ref],tooltip:P.tool_text&&"Tools needed: "+P.tool_text,tooltipPosition:"left",onClick:function(){return p("make",{recipe:P.ref})},children:"Craft"}),children:P.req_text},P.name):(0,e.jsx)(r.wn,{title:P.name,level:2,buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!O[P.ref],onClick:function(){return p("make",{recipe:P.ref})},children:"Craft"}),children:(0,e.jsxs)(r.Ki,{children:[!!P.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:P.req_text}),!!P.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:P.catalyst_text}),!!P.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:P.tool_text})]})},P.name)})}},56430:function(_,j,n){"use strict";n.r(j),n.d(j,{Photocopier:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(d){var h=(0,s.Oc)().data,m=h.isAI,u=h.has_toner,v=h.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:m?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[u?(0,e.jsx)(o,{}):(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted toner cartridge."})}),v?(0,e.jsx)(g,{}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted item."})}),!!m&&(0,e.jsx)(x,{})]})})},o=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data,v=u.max_toner,c=u.current_toner,f=v*.66,p=v*.33;return(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.z2,{ranges:{good:[f,v],average:[p,f],bad:[0,p]},value:c,minValue:0,maxValue:v})})},g=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data,v=u.num_copies,c=u.has_enough_toner;return(0,e.jsxs)(t.wn,{title:"Options",children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Q7,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:v,onDrag:function(f,p){return m("set_copies",{num_copies:p})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return m("make_copy")},children:"Copy"})})]}),(0,e.jsx)(t.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return m("remove")},children:"Remove item"})]})},x=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data,v=u.can_AI_print;return(0,e.jsx)(t.wn,{title:"AI Options",children:(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!v,onClick:function(){return m("ai_photo")},children:"Print photo from database"})})})}},99141:function(_,j,n){"use strict";n.r(j),n.d(j,{PipeDispenser:function(){return g}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=n(8313),g=function(x){var d=(0,t.Oc)(),h=d.act,m=d.data,u=m.disposals,v=m.p_layer,c=m.pipe_layers,f=m.categories,p=f===void 0?[]:f,C=(0,s.useState)("categoryName"),y=C[0],O=C[1],b=p.find(function(I){return I.cat_name===y})||p[0];return(0,e.jsx)(a.p8,{width:425,height:515,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[!u&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(c).map(function(I){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:c[I]===v,onClick:function(){return h("p_layer",{p_layer:c[I]})},children:I},I)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:p.map(function(I,P){return(0,e.jsx)(r.tU.Tab,{fluid:!0,icon:o.ICON_BY_CATEGORY_NAME[I.cat_name],selected:I.cat_name===b.cat_name,onClick:function(){return O(I.cat_name)},children:I.cat_name},I.cat_name)})}),b==null?void 0:b.recipes.map(function(I){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,title:I.pipe_name,onClick:function(){return h("dispense_pipe",{ref:I.ref,bent:I.bent,category:b.cat_name})},children:I.pipe_name},I.pipe_name)})]})]})})}},72801:function(_,j,n){"use strict";n.r(j),n.d(j,{PlantAnalyzer:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){var x=(0,s.Oc)().data,d=250;return x.seed&&(d+=18*x.seed.trait_info.length),x.reagents&&x.reagents.length&&(d+=55,d+=20*x.reagents.length),(0,e.jsx)(r.p8,{width:400,height:d,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.no_seed,u=h.seed,v=h.reagents;return m?(0,e.jsx)(t.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(t.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return d("print")},children:"Print Report"}),(0,e.jsx)(t.$n,{icon:"window-close",color:"red",onClick:function(){return d("close")}})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Plant Name",children:[u.name,"#",u.uid]}),(0,e.jsx)(t.Ki.Item,{label:"Endurance",children:u.endurance}),(0,e.jsx)(t.Ki.Item,{label:"Yield",children:u.yield}),(0,e.jsx)(t.Ki.Item,{label:"Maturation Time",children:u.maturation_time}),(0,e.jsx)(t.Ki.Item,{label:"Production Time",children:u.production_time}),(0,e.jsx)(t.Ki.Item,{label:"Potency",children:u.potency})]}),v.length&&(0,e.jsx)(t.wn,{level:2,title:"Plant Reagents",children:(0,e.jsx)(t.Ki,{children:v.map(function(c){return(0,e.jsxs)(t.Ki.Item,{label:c.name,children:[c.volume," unit(s)."]},c.name)})})})||null,(0,e.jsx)(t.wn,{level:2,title:"Other Data",children:u.trait_info.map(function(c){return(0,e.jsx)(t.az,{color:"label",mb:.4,children:c},c)})})]})}},12588:function(_,j,n){"use strict";n.r(j),n.d(j,{PlayerNotes:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.device_theme,m=d.filter,u=d.pages,v=d.ckeys,c=function(f){return f()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:h,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.wn,{title:"Player notes",children:[(0,e.jsx)(t.$n,{icon:"filter",onClick:function(){return x("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(t.$n,{icon:"sidebar",onClick:function(){return x("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.$n.Input,{onCommit:function(f,p){return x("show_player_info",{name:p})},children:"CKEY to Open"}),(0,e.jsx)(t.cG,{vertical:!0}),(0,e.jsx)(t.$n,{color:"green",onClick:function(){return x("clear_player_info_filter")},children:m}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.XI,{children:v.map(function(f){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"user",onClick:function(){return x("show_player_info",{name:f.name})},children:f.name})})},f.name)})}),(0,e.jsx)(t.cG,{}),c(function(){for(var f=function(y){p.push((0,e.jsx)(t.$n,{onClick:function(){return x("set_page",{index:y})},children:y},y))},p=[],C=1;C=.5&&"good"||m>.15&&"average"||"bad";return(0,e.jsx)(a.p8,{width:450,height:340,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[!h.anchored&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:h.active?"power-off":"times",onClick:function(){return d("toggle_power")},selected:h.active,disabled:!h.ready_to_boot,children:h.active?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:h.fuel_stored>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:h.active,onClick:function(){return d("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:u,children:[h.fuel_stored,"cm\xB3 ",h.sheet_name]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:h.fuel_stored/h.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[h.fuel_stored,"cm\xB3 / ",h.fuel_capacity,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[h.fuel_usage," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:h.temperature_current,maxValue:h.temperature_max+30,color:h.temperature_overheat?"bad":"good",children:[(0,s.LI)(h.temperature_current),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:h.unsafe_output?"bad":null,children:h.power_output}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return d("lower_power")},children:h.power_generated}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return d("higher_power")},children:h.power_generated})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!h.connected&&"bad",children:h.connected?h.power_available:"Unconnected"})})]})})]})})}},61725:function(_,j,n){"use strict";n.r(j),n.d(j,{PortablePump:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(66885),o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.direction,u=h.target_pressure,v=h.default_pressure,c=h.min_pressure,f=h.max_pressure;return(0,e.jsx)(r.p8,{width:330,height:375,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Pump",buttons:(0,e.jsx)(t.$n,{icon:m?"sign-in-alt":"sign-out-alt",selected:m,onClick:function(){return d("direction")},children:m?"In":"Out"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Output",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:c,maxValue:f,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(p,C){return d("pressure",{pressure:C})}})}),(0,e.jsxs)(t.Ki.Item,{label:"Presets",children:[(0,e.jsx)(t.$n,{icon:"minus",disabled:u===c,onClick:function(){return d("pressure",{pressure:"min"})}}),(0,e.jsx)(t.$n,{icon:"sync",disabled:u===v,onClick:function(){return d("pressure",{pressure:"reset"})}}),(0,e.jsx)(t.$n,{icon:"plus",disabled:u===f,onClick:function(){return d("pressure",{pressure:"max"})}})]})]})})]})})}},33353:function(_,j,n){"use strict";n.r(j),n.d(j,{PortableScrubber:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(66885),o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.rate,u=h.minrate,v=h.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(a.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Power Regulator",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:u,maxValue:v,value:m,unit:"L/s",onChange:function(c,f){return d("volume_adj",{vol:f})}})})})})]})})}},32357:function(_,j,n){"use strict";n.r(j),n.d(j,{PortableTurret:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.locked,m=d.on,u=d.lethal,v=d.lethal_is_configurable,c=d.targetting_is_configurable,f=d.check_weapons,p=d.neutralize_noaccess,C=d.neutralize_norecord,y=d.neutralize_criminals,O=d.neutralize_all,b=d.neutralize_nonsynth,I=d.neutralize_unidentified,P=d.neutralize_down;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.IC,{children:["Swipe an ID card to ",h?"unlock":"lock"," this interface."]}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.$n,{icon:m?"power-off":"times",selected:m,disabled:h,onClick:function(){return x("power")},children:m?"On":"Off"})}),!!v&&(0,e.jsx)(t.Ki.Item,{label:"Lethals",children:(0,e.jsx)(t.$n,{icon:u?"exclamation-triangle":"times",color:u?"bad":"",disabled:h,onClick:function(){return x("lethal")},children:u?"On":"Off"})})]})}),!!c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:y,disabled:h,onClick:function(){return x("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:C,disabled:h,onClick:function(){return x("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:f,disabled:h,onClick:function(){return x("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:p,disabled:h,onClick:function(){return x("authaccess")},children:"Unauthorized Access"})]}),(0,e.jsxs)(t.wn,{title:"Other Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:I,disabled:h,onClick:function(){return x("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:b,disabled:h,onClick:function(){return x("authsynth")},children:"All Non-Synthetics"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:P,disabled:h,onClick:function(){return x("authdown")},children:"Downed Targets"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:O,disabled:h,onClick:function(){return x("authall")},children:"All Entities"})]})]})]})})}},30889:function(_,j,n){"use strict";n.r(j),n.d(j,{AreaCharge:function(){return f},PowerMonitor:function(){return u},PowerMonitorContent:function(){return v},PowerMonitorFocus:function(){return c},powerRank:function(){return m}});var e=n(20462),s=n(7402),t=n(22071),r=n(4089),a=n(61358),o=n(7081),g=n(16754),x=n(2738);function d(){return d=Object.assign||function(C){for(var y=1;y50?"battery-half":"battery-quarter")||y===1&&"bolt"||y===2&&"battery-full",color:y===0&&(O>50?"yellow":"red")||y===1&&"yellow"||y===2&&"green"}),(0,e.jsx)(g.az,{inline:!0,width:"36px",textAlign:"right",children:(0,r.Mg)(O)+"%"})]})},p=function(C){var y=C.status,O=!!(y&2),b=!!(y&1),I=(O?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.jsx)(g.BK,{color:O?"good":"bad",content:b?void 0:"M",title:I})}},84818:function(_,j,n){"use strict";n.r(j),n.d(j,{PressureRegulator:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.on,m=d.pressure_set,u=d.max_pressure,v=d.input_pressure,c=d.output_pressure,f=d.regulate_mode,p=d.set_flow_rate,C=d.last_flow_rate;return(0,e.jsx)(r.p8,{width:470,height:370,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(t.zv,{value:v/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.zv,{value:c/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(t.zv,{value:C/10})," L/s"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:h,onClick:function(){return x("toggle_valve")},children:h?"Unlocked":"Closed"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:f===0,onClick:function(){return x("regulate_mode",{mode:"off"})},children:"Off"}),(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",selected:f===1,onClick:function(){return x("regulate_mode",{mode:"input"})},children:"Input"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",selected:f===2,onClick:function(){return x("regulate_mode",{mode:"output"})},children:"Output"})]})}),(0,e.jsxs)(t.Ki.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return x("set_press",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return x("set_press",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return x("set_press",{press:"set"})},children:"SET"})]}),children:[m/100," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return x("set_flow_rate",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return x("set_flow_rate",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return x("set_flow_rate",{press:"set"})},children:"SET"})]}),children:[p/10," L/s"]})]})})]})})}},11747:function(_,j,n){"use strict";n.r(j),n.d(j,{PrisonerManagement:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.locked,m=d.chemImplants,u=d.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:h&&(0,e.jsxs)(t.wn,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"unlock",onClick:function(){return x("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Interface Lock",buttons:(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return x("lock")},children:"Lock Interface"})}),(0,e.jsx)(t.wn,{title:"Chemical Implants",children:m.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Inject"})]}),m.map(function(v){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:v.host}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[v.units,"u remaining"]}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(t.$n,{onClick:function(){return x("inject",{imp:v.ref,val:1})},children:"(1)"}),(0,e.jsx)(t.$n,{onClick:function(){return x("inject",{imp:v.ref,val:5})},children:"(5)"}),(0,e.jsx)(t.$n,{onClick:function(){return x("inject",{imp:v.ref,val:10})},children:"(10)"})]})]},v.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(t.wn,{title:"Tracking Implants",children:u.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Message"})]}),u.map(function(v){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[v.host," (",v.id,")"]}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:v.loc}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{onClick:function(){return x("warn",{imp:v.ref})},children:"Message"})})]},v.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})})]})})})}},40932:function(_,j,n){"use strict";n.r(j),n.d(j,{RCON:function(){return h},RCONContent:function(){return m}});var e=n(20462),s=n(4089),t=n(61282),r=n(61358),a=n(7081),o=n(16754),g=n(41242),x=n(2738),d=1e3,h=function(p){return(0,e.jsx)(x.p8,{width:630,height:540,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(p){var C=(0,r.useState)(0),y=C[0],O=C[1],b;return y===0?b=(0,e.jsx)(u,{}):y===1&&(b=(0,e.jsx)(f,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsxs)(o.tU.Tab,{selected:y===0,onClick:function(){return O(0)},children:[(0,e.jsx)(o.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(o.tU.Tab,{selected:y===1,onClick:function(){return O(1)},children:[(0,e.jsx)(o.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(o.az,{m:2,children:b})]})},u=function(p){var C=(0,a.Oc)(),y=C.act,O=C.data,b=O.smes_info,I=O.pages,P=O.current_page,S=function(M){return M()};return(0,e.jsxs)(o.wn,{title:"SMESs (Page "+P+")",children:[(0,e.jsx)(o.BJ,{vertical:!0,children:b.map(function(M){return(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(v,{smes:M})},M.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),S(function(){for(var M=function(K){A.push((0,e.jsx)(o.$n,{selected:P===K,onClick:function(){return y("set_smes_page",{index:K})},children:K},K))},A=[],R=1;R=2?(0,e.jsx)(r.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)(r.az,{color:"average",children:["Engage: ",y.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",y.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",y.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:y.desc})]}),y.charges?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Module Charges",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Selected",children:(0,s.ZH)(y.chargetype)}),y.charges.map(function(b,I){return(0,e.jsx)(r.Ki.Item,{label:(0,s.ZH)(b.caption),children:(0,e.jsx)(r.$n,{selected:y.realchargetype===b.index,icon:"arrow-right",onClick:function(){return u("interact_module",{module:y.index,module_mode:"select_charge_type",charge_type:b.index})}})},b.caption)})]})})}):null]},y.name)})]})}},62325:function(_,j,n){"use strict";n.r(j),n.d(j,{Radio:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(79500),o=n(2738),g=function(x){var d=(0,t.Oc)(),h=d.act,m=d.data,u=m.rawfreq,v=m.minFrequency,c=m.maxFrequency,f=m.listening,p=m.broadcasting,C=m.subspace,y=m.subspaceSwitchable,O=m.chan_list,b=m.loudspeaker,I=m.mic_cut,P=m.spk_cut,S=m.useSyndMode,M=a.Fo.find(function(R){return R.freq===Number(u)}),A=156;return O&&O.length>0?A+=O.length*28+6:A+=24,y&&(A+=38),(0,e.jsx)(o.p8,{width:310,height:A,resizable:!0,theme:S?"syndicate":"",children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:v/10,maxValue:c/10,value:u/10,format:function(R){return(0,s.Mg)(R,1)},onDrag:function(R,K){return h("setFrequency",{freq:(0,s.LI)(K*10)})}}),M&&(0,e.jsxs)(r.az,{inline:!0,color:M.color,ml:2,children:["[",M.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:f?"volume-up":"volume-mute",selected:f,disabled:P,onClick:function(){return h("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:p?"microphone":"microphone-slash",selected:p,disabled:I,onClick:function(){return h("broadcast")}}),!!y&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:C,onClick:function(){return h("subspace")},children:"Subspace Tx "+(C?"ON":"OFF")})}),!!y&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:b?"volume-up":"volume-mute",selected:b,onClick:function(){return h("toggleLoudspeaker")},children:"Loudspeaker"})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!O||O.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:O?O.map(function(R){var K=a.Fo.find(function(k){return k.freq===Number(R.freq)}),N="default";return K&&(N=K.color),(0,e.jsx)(r.Ki.Item,{label:R.display_name,labelColor:N,textAlign:"right",children:R.secure_channel&&C?(0,e.jsx)(r.$n,{icon:R.sec_channel_listen?"square-o":"check-square-o",selected:!R.sec_channel_listen,onClick:function(){return h("channel",{channel:R.chan})},children:R.sec_channel_listen?"Off":"On"}):(0,e.jsx)(r.$n,{selected:R.chan===u,onClick:function(){return h("specFreq",{channel:R.chan})},children:"Switch"})},R.chan)}):null})]})]})})}},8313:function(_,j,n){"use strict";n.r(j),n.d(j,{ICON_BY_CATEGORY_NAME:function(){return d},RapidPipeDispenser:function(){return c}});var e=n(20462),s=n(65380),t=n(61282),r=n(61358),a=n(7081),o=n(16754),g=n(2738),x=["Atmospherics","Disposals"],d={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},h=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],m=function(f){var p=(0,a.Oc)(),C=p.act,y=p.data,O=y.category,b=y.selected_color,I=y.mode;return(0,e.jsx)(o.wn,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Category",children:x.map(function(P,S){return(0,e.jsx)(o.$n,{selected:O===S,icon:d[P],color:"transparent",onClick:function(){return C("category",{category:S})},children:P},P)})}),(0,e.jsx)(o.Ki.Item,{label:"Modes",children:(0,e.jsx)(o.BJ,{fill:!0,children:h.map(function(P){return(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n.Checkbox,{checked:I&P.bitmask,fluid:!0,onClick:function(){return C("mode",{mode:P.bitmask})},children:P.name})},P.bitmask)})})}),(0,e.jsxs)(o.Ki.Item,{label:"Color",children:[(0,e.jsx)(o.az,{inline:!0,width:"64px",color:y.paint_colors[b],children:(0,t.ZH)(b)}),Object.keys(y.paint_colors).map(function(P){return(0,e.jsx)(o.BK,{ml:1,color:y.paint_colors[P],onClick:function(){return C("color",{paint_color:P})}},P)})]})]})})},u=function(f){var p=(0,a.Oc)(),C=p.act,y=p.data,O=y.category,b=y.piping_layer,I=y.pipe_layers,P=y.preview_rows.flatMap(function(S){return S.previews});return(0,e.jsxs)(o.wn,{fill:!0,width:7.5,children:[O===0&&(0,e.jsx)(o.BJ,{vertical:!0,mb:1,children:Object.keys(I).map(function(S){return(0,e.jsx)(o.BJ.Item,{my:0,children:(0,e.jsx)(o.$n.Checkbox,{checked:I[S]===b,onClick:function(){return C("piping_layer",{piping_layer:I[S]})},children:S})},S)})}),(0,e.jsx)(o.az,{width:"120px",children:P.map(function(S){return(0,e.jsx)(o.$n,{ml:0,title:S.dir_name,selected:S.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return C("setdir",{dir:S.dir,flipped:S.flipped})},children:(0,e.jsx)(o.az,{className:(0,s.Ly)(["pipes32x32",S.dir+"-"+S.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},S.dir)})})]})},v=function(f){var p=(0,a.Oc)(),C=p.act,y=p.data,O=y.categories,b=O===void 0?[]:O,I=(0,r.useState)("categoryName"),P=I[0],S=I[1],M=b.find(function(A){return A.cat_name===P})||b[0];return(0,e.jsxs)(o.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(o.tU,{children:b.map(function(A,R){return(0,e.jsx)(o.tU.Tab,{fluid:!0,icon:d[A.cat_name],selected:A.cat_name===M.cat_name,onClick:function(){return S(A.cat_name)},children:A.cat_name},A.cat_name)})}),M==null?void 0:M.recipes.map(function(A){return(0,e.jsx)(o.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:A.selected,title:A.pipe_name,onClick:function(){return C("pipe_type",{pipe_type:A.pipe_index,category:M.cat_name})},children:A.pipe_name},A.pipe_index)})]})},c=function(f){var p=(0,a.Oc)(),C=p.act,y=p.data,O=y.category;return(0,e.jsx)(g.p8,{width:550,height:570,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(m,{})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{})})})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(v,{})})]})})]})})})}},27412:function(_,j,n){"use strict";n.r(j),n.d(j,{RequestConsole:function(){return R}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=0,g=1,x=2,d=3,h=4,m=5,u=6,v=7,c=8,f=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.$n,{selected:!W,icon:W?"volume-mute":"volume-up",onClick:function(){return k("toggleSilent")},children:["Speaker ",W?"OFF":"ON"]})})},p=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.department,J=F.supply_dept;return(0,e.jsx)(r.wn,{title:"Supplies",children:(0,e.jsx)(O,{dept_list:J,department:W})})},C=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.department,J=F.assist_dept;return(0,e.jsx)(r.wn,{title:"Request assistance from another department",children:(0,e.jsx)(O,{dept_list:J,department:W})})},y=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.department,J=F.info_dept;return(0,e.jsx)(r.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(O,{dept_list:J,department:W})})},O=function(K){var N=(0,t.Oc)().act,k=K.dept_list,F=K.department;return(0,e.jsx)(r.Ki,{children:k.sort().map(function(W){return W!==F&&(0,e.jsx)(r.Ki.Item,{label:W,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"envelope-open-text",onClick:function(){return N("write",{write:W,priority:1})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"exclamation-triangle",onClick:function(){return N("write",{write:W,priority:2})},children:"High Priority"})]})})||null})})},b=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:o})},children:"Continue"})})]})},I=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:o})},children:"Continue"})})]})},P=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:W.length&&W.map(function(J,X){return(0,e.jsx)(r.Ki.Item,{label:(0,s.jT)(J[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return k("print",{print:X+1})},children:"Print"}),children:(0,s.jT)(J[1])},X)})||(0,e.jsx)(r.az,{children:"No messages."})})},S=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.message,J=F.recipient,X=F.priority,Q=F.msgStamped,Z=F.msgVerified;return(0,e.jsxs)(r.wn,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message for "+J,children:W}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:X===2?"High Priority":X===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:Z?"good":"bad",children:(0,s.jT)(Z)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:Q?"good":"bad",children:(0,s.jT)(Q)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return k("department",{department:J})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:o})},children:"Back"})]})},M=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.department,J=F.screen,X=F.message_log,Q=F.newmessagepriority,Z=F.silent,G=F.announcementConsole,H=F.assist_dept,V=F.supply_dept,q=F.info_dept,ie=F.message,te=F.recipient,ue=F.priority,ce=F.msgStamped,me=F.msgVerified,xe=F.announceAuth;return(0,e.jsxs)(r.wn,{title:"Send Station-Wide Announcement",children:[xe&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.wn,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.$n,{ml:1,icon:"pen",onClick:function(){return k("writeAnnouncement")},children:"Edit"}),children:ie||"No Message"})]})||(0,e.jsx)(r.az,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(r.$n,{disabled:!ie||!xe,icon:"share",onClick:function(){return k("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:o})},children:"Back"})]})},A={};A[o]=f,A[g]=C,A[x]=p,A[d]=y,A[h]=b,A[m]=I,A[u]=P,A[v]=S,A[c]=M;var R=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.screen,J=F.newmessagepriority,X=F.announcementConsole,Q=A[W];return(0,e.jsx)(a.p8,{width:520,height:410,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:W===u,onClick:function(){return k("setScreen",{setScreen:u})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(r.tU.Tab,{selected:W===g,onClick:function(){return k("setScreen",{setScreen:g})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(r.tU.Tab,{selected:W===x,onClick:function(){return k("setScreen",{setScreen:x})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(r.tU.Tab,{selected:W===d,onClick:function(){return k("setScreen",{setScreen:d})},icon:"share-square-o",children:"Report"}),X&&(0,e.jsx)(r.tU.Tab,{selected:W===c,onClick:function(){return k("setScreen",{setScreen:c})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(r.tU.Tab,{selected:W===o,onClick:function(){return k("setScreen",{setScreen:o})},icon:"cog"})]}),J&&(0,e.jsx)(r.wn,{title:J>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:J>1?"bad":"average",bold:J>1})||null,(0,e.jsx)(Q,{})]})})}},34102:function(_,j,n){"use strict";n.r(j),n.d(j,{ResearchConsole:function(){return b}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(2738);function g(){return g=Object.assign||function(I){for(var P=1;P=150?"good":"bad",inline:!0,children:[(0,e.jsx)(a.In,{name:X.biomass>=150?"circle":"circle-o"}),"\xA0",X.biomass]}),Z]},Q)}):null},I=function(R){var K=(0,r.Oc)(),N=K.act,k=K.data,F=k.sleevers,W=k.spods,J=k.selected_sleever;return F&&F.length?F.map(function(X,Q){return(0,e.jsxs)(a.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:(0,t.l)("sleeve_"+(X.occupied?"occupied":"empty")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(a.az,{color:X.occupied?"label":"bad",children:X.name}),(0,e.jsx)(a.$n,{selected:J===X.sleever,icon:J===X.sleever&&"check",mt:W&&W.length?"3rem":"1.5rem",onClick:function(){return N("selectsleever",{ref:X.sleever})},children:"Select"})]},Q)}):null},P=function(R){var K=(0,r.Oc)(),N=K.act,k=K.data,F=k.spods,W=k.selected_printer;return F&&F.length?F.map(function(J,X){var Q;return J.status==="cloning"?Q=(0,e.jsx)(a.z2,{min:"0",max:"100",value:J.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(a.az,{textAlign:"center",children:(0,s.LI)(J.progress,0)+"%"})}):J.status==="mess"?Q=(0,e.jsx)(a.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):Q=(0,e.jsx)(a.$n,{selected:W===J.spod,icon:W===J.spod&&"check",mt:"0.5rem",onClick:function(){return N("selectprinter",{ref:J.spod})},children:"Select"}),(0,e.jsxs)(a.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:(0,t.l)("synthprinter"+(J.busy?"_working":"")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(a.az,{color:"label",children:J.name}),(0,e.jsxs)(a.az,{bold:!0,color:J.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(a.In,{name:J.steel>=15e3?"circle":"circle-o"}),"\xA0",J.steel]}),(0,e.jsxs)(a.az,{bold:!0,color:J.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(a.In,{name:J.glass>=15e3?"circle":"circle-o"}),"\xA0",J.glass]}),Q]},X)}):null},S=function(R){var K=(0,r.Oc)().act,N=R.records,k=R.actToDo;return N.length?(0,e.jsx)(a.az,{mt:"0.5rem",children:N.map(function(F,W){return(0,e.jsx)(a.$n,{icon:"user",mb:"0.5rem",onClick:function(){return K(k,{ref:F.recref})},children:F.name},W)})}):(0,e.jsx)(a.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(a.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(a.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},M=function(R){var K=(0,r.Oc)(),N=K.act,k=K.data,F=k.temp;if(!(!F||!F.text||F.text.length<=0)){var W,J=(W={},W[F.style]=!0,W);return(0,e.jsxs)(a.IC,x({},J,{children:[(0,e.jsx)(a.az,{display:"inline-block",verticalAlign:"middle",children:F.text}),(0,e.jsx)(a.$n,{icon:"times-circle",float:"right",onClick:function(){return N("cleartemp")}}),(0,e.jsx)(a.az,{clear:"both"})]}))}},A=function(R){var K=(0,r.Oc)(),N=K.act,k=K.data,F=k.pods,W=k.spods,J=k.sleevers,X=k.autoallowed,Q=k.autoprocess,Z=k.disk;return(0,e.jsx)(a.wn,{title:"Status",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Pods",children:F&&F.length?(0,e.jsxs)(a.az,{color:"good",children:[F.length," connected"]}):(0,e.jsx)(a.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(a.Ki.Item,{label:"SynthFabs",children:W&&W.length?(0,e.jsxs)(a.az,{color:"good",children:[W.length," connected"]}):(0,e.jsx)(a.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(a.Ki.Item,{label:"Sleevers",children:J&&J.length?(0,e.jsxs)(a.az,{color:"good",children:[J.length," Connected"]}):(0,e.jsx)(a.az,{color:"bad",children:"None connected!"})})]})})}},75099:function(_,j,n){"use strict";n.r(j),n.d(j,{ResleevingPod:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)().data,x=g.occupied,d=g.name,h=g.health,m=g.maxHealth,u=g.stat,v=g.mindStatus,c=g.mindName,f=g.resleeveSick,p=g.initialSick;return(0,e.jsx)(r.p8,{width:300,height:350,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Occupant",children:x?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:d}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:u===2?(0,e.jsx)(t.az,{color:"bad",children:"DEAD"}):u===1?(0,e.jsx)(t.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(t.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:h/m,children:[h,"%"]})}),(0,e.jsx)(t.Ki.Item,{label:"Mind Status",children:v?"Present":"Missing"}),v?(0,e.jsx)(t.Ki.Item,{label:"Mind Occupying",children:c}):""]}),f?(0,e.jsxs)(t.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",p?(0,e.jsxs)(e.Fragment,{children:[" ","Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected."]}):""]}):""]}):(0,e.jsx)(t.az,{bold:!0,m:1,children:"Unoccupied."})})})})}},67611:function(_,j,n){"use strict";n.r(j),n.d(j,{RoboticsControlConsole:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.can_hack,u=h.safety,v=h.show_detonate_all,c=h.cyborgs,f=c===void 0?[]:c;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!v&&(0,e.jsxs)(t.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(t.$n,{icon:u?"lock":"unlock",selected:u,children:u?"Disable Safety":"Enable Safety"}),(0,e.jsx)(t.$n,{icon:"bomb",disabled:u,color:"bad",onClick:function(){return d("nuke",{})},children:"Destroy ALL Cyborgs"})]}),(0,e.jsx)(o,{cyborgs:f,can_hack:m})]})})},o=function(g){var x=g.cyborgs,d=g.can_hack,h=(0,s.Oc)(),m=h.act,u=h.data;return x.length?x.map(function(v){return(0,e.jsx)(t.wn,{title:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!v.hackable&&!v.emagged&&(0,e.jsx)(t.$n,{icon:"terminal",color:"bad",onClick:function(){return m("hackbot",{ref:v.ref})},children:"Hack"}),(0,e.jsx)(t.$n.Confirm,{icon:v.locked_down?"unlock":"lock",color:v.locked_down?"good":"default",disabled:!u.auth,onClick:function(){return m("stopbot",{ref:v.ref})},children:v.locked_down?"Release":"Lockdown"}),(0,e.jsx)(t.$n.Confirm,{icon:"bomb",disabled:!u.auth,color:"bad",onClick:function(){return m("killbot",{ref:v.ref})},children:"Detonate"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.az,{color:v.status?"bad":v.locked_down?"average":"good",children:v.status?"Not Responding":v.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(t.Ki.Item,{label:"Location",children:(0,e.jsx)(t.az,{children:v.locstring})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:v.health>50?"good":"bad",value:v.health/100})}),typeof v.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(t.z2,{color:v.charge>30?"good":"bad",value:v.charge/100})}),(0,e.jsx)(t.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(t.az,{color:v.cell_capacity<3e4?"average":"good",children:v.cell_capacity})})]})||(0,e.jsx)(t.Ki.Item,{label:"Cell",children:(0,e.jsx)(t.az,{color:"bad",children:"No Power Cell"})}),!!v.is_hacked&&(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Module",children:v.module}),(0,e.jsx)(t.Ki.Item,{label:"Master AI",children:(0,e.jsx)(t.az,{color:v.synchronization?"default":"average",children:v.synchronization||"None"})})]})},v.ref)}):(0,e.jsx)(t.IC,{children:"No cyborg units detected within access parameters."})}},28341:function(_,j,n){"use strict";n.r(j),n.d(j,{RogueZones:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.timeout_percent,m=d.diffstep,u=d.difficulty,v=d.occupied,c=d.scanning,f=d.updated,p=d.debug,C=d.shuttle_location,y=d.shuttle_at_station,O=d.scan_ready,b=d.can_recall_shuttle;return(0,e.jsx)(r.p8,{width:360,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Current Area",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Mineral Content",children:u}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Location",buttons:b&&(0,e.jsx)(t.$n,{color:"bad",icon:"rocket",onClick:function(){return x("recall_shuttle")},children:"Recall Shuttle"})||null,children:C}),v&&(0,e.jsxs)(t.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",v," personnel!"]})||(0,e.jsx)(t.Ki.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(t.wn,{title:"Scanner",buttons:(0,e.jsx)(t.$n,{disabled:!O,fluid:!0,icon:"search",onClick:function(){return x("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(t.z2,{value:h,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),c&&(0,e.jsx)(t.Ki.Item,{label:"Scanning",children:"In progress."})||null,f&&!c&&(0,e.jsx)(t.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,p&&(0,e.jsxs)(t.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(t.az,{children:["Timeout Percent: ",h]}),(0,e.jsxs)(t.az,{children:["Diffstep: ",m]}),(0,e.jsxs)(t.az,{children:["Difficulty: ",u]}),(0,e.jsxs)(t.az,{children:["Occupied: ",v]}),(0,e.jsxs)(t.az,{children:["Debug: ",p]}),(0,e.jsxs)(t.az,{children:["Shuttle Location: ",C]}),(0,e.jsxs)(t.az,{children:["Shuttle at station: ",y]}),(0,e.jsxs)(t.az,{children:["Scan Ready: ",O]})]})||null]})})]})})}},1249:function(_,j,n){"use strict";n.r(j),n.d(j,{RustCoreMonitor:function(){return a},RustCoreMonitorContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.cores;return(0,e.jsx)(t.wn,{title:"Cores",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return d("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Field Status"}),(0,e.jsx)(t.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(t.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(t.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(t.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(t.XI.Cell,{children:"Plasma Content"})]}),m.map(function(u){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:u.name}),(0,e.jsxs)(t.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return d("toggle_active",{core:u.ref})},children:u.has_field?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return d("toggle_reactantdump",{core:u.ref})},children:u.reactant_dump?"Dump":"Maintain"})}),(0,e.jsx)(t.XI.Cell,{children:u.field_instability}),(0,e.jsx)(t.XI.Cell,{children:u.field_temperature}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.has_field&&"yellow",value:u.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(v,c){return d("set_fieldstr",{core:u.ref,fieldstr:c})}})}),(0,e.jsx)(t.XI.Cell,{})]},u.name)})]})})}},27095:function(_,j,n){"use strict";n.r(j),n.d(j,{RustFuelContent:function(){return o},RustFuelControl:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.fuels;return(0,e.jsx)(t.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return d("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(t.XI.Cell,{children:"Fuel Rod Composition"})]}),m.map(function(u){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:u.name}),(0,e.jsxs)(t.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:u.active,disabled:!u.deployed,onClick:function(){return d("toggle_active",{fuel:u.ref})},children:u.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:u.fuel_amt}),(0,e.jsx)(t.XI.Cell,{children:u.fuel_type})]},u.name)})]})})}},23316:function(_,j,n){"use strict";n.r(j),n.d(j,{Secbot:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.on,m=d.open,u=d.locked,v=d.idcheck,c=d.check_records,f=d.check_arrest,p=d.arrest_type,C=d.declare_arrests,y=d.bot_patrolling,O=d.patrol;return(0,e.jsx)(r.p8,{width:390,height:320,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:h,onClick:function(){return x("power")},children:h?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:m?"bad":"good",children:m?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(t.$n,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return x("idcheck")},children:v?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(t.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return x("ignorerec")},children:c?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(t.$n,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return x("ignorearr")},children:f?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(t.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("switchmode")},children:p?"Detain":"Arrest"})}),(0,e.jsx)(t.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(t.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("declarearrests")},children:C?"Yes":"No"})}),!!y&&(0,e.jsx)(t.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(t.$n,{icon:O?"toggle-on":"toggle-off",selected:O,onClick:function(){return x("patrol")},children:O?"Yes":"No"})})]})})||null]})})}},84350:function(_,j,n){"use strict";n.r(j),n.d(j,{SecureSafe:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],u=h.locked,v=h.l_setshort,c=h.code,f=h.emagged;return(0,e.jsx)(t.az,{width:"185px",children:(0,e.jsx)(t.XI,{width:"1px",children:m.map(function(p){return(0,e.jsx)(t.XI.Cell,{children:p.map(function(C){return(0,e.jsx)(t.$n,{fluid:!0,bold:!0,mb:"6px",textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!f||!!v&&1||C!=="R"&&!u||c==="ERROR"&&C!=="R"&&1,onClick:function(){return d("type",{digit:C})},children:C},C)})},p[0])})})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.code,u=h.l_setshort,v=h.l_set,c=h.emagged,f=h.locked,p=!(v||u);return(0,e.jsx)(r.p8,{width:250,height:380,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.az,{m:"6px",children:[p&&(0,e.jsx)(t.IC,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!c&&(0,e.jsx)(t.IC,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!u&&(0,e.jsx)(t.IC,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(t.wn,{height:"60px",children:(0,e.jsx)(t.az,{textAlign:"center",position:"center",fontSize:"35px",children:m&&m||(0,e.jsx)(t.az,{textColor:f?"red":"green",children:f?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(t.so,{ml:"3px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(a,{})}),(0,e.jsx)(t.so.Item,{ml:"6px",width:"129px"})]})]})})})}},51412:function(_,j,n){"use strict";n.r(j),n.d(j,{SecurityRecords:function(){return h}});var e=n(20462),s=n(7081),t=n(16754),r=n(38509),a=n(2738),o=n(2455),g=n(8491),x=n(55789),d=function(C){(0,r.modalOpen)("edit",{field:C.edit,value:C.value})},h=function(C){var y=(0,s.Oc)().data,O=y.authenticated,b=y.screen;if(!O)return(0,e.jsx)(a.p8,{width:700,height:680,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var I;return b===2?I=(0,e.jsx)(m,{}):b===3?I=(0,e.jsx)(u,{}):b===4&&(I=(0,e.jsx)(v,{})),(0,e.jsxs)(a.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(o.LoginInfo,{}),(0,e.jsx)(x.TemporaryNotice,{}),(0,e.jsx)(p,{}),(0,e.jsx)(t.wn,{flexGrow:!0,children:I})]})]})},m=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(P,S){return O("search",{t1:S})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:I.map(function(P,S){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",color:P.color,onClick:function(){return O("d_rec",{d_rec:P.ref})},children:P.id+": "+P.name+" (Criminal Status: "+P.criminal+")"},S)})})]})},u=function(C){var y=(0,s.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return y("del_all")},children:"Delete All Security Records"})]})},v=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.security,P=b.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(c,{})}),(0,e.jsx)(t.wn,{title:"Security Data",children:(0,e.jsx)(f,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!I.empty,color:"bad",onClick:function(){return O("del_r")},children:"Delete Security Record"}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!I.empty,color:"bad",onClick:function(){return O("del_r_2")},children:"Delete Record (All)"}),(0,e.jsx)(t.$n,{icon:P?"spinner":"print",disabled:P,iconSpin:!!P,ml:"0.5rem",onClick:function(){return O("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return O("screen",{screen:2})},children:"Back"})]})]})},c=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.general;return!I||!I.fields?(0,e.jsx)(t.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Ki,{children:I.fields.map(function(P,S){return(0,e.jsxs)(t.Ki.Item,{label:P.field,children:[(0,e.jsx)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:P.value}),!!P.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return d(P)}})]},S)})})}),(0,e.jsxs)(t.so.Item,{textAlign:"right",children:[!!I.has_photos&&I.photos.map(function(P,S){return(0,e.jsxs)(t.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:P.substr(1,P.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",S+1]},S)}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return O("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(t.$n,{onClick:function(){return O("photo_side")},children:"Update Side Photo"})]})]})]})},f=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.security;return!I||!I.fields?(0,e.jsxs)(t.az,{color:"bad",children:["Security records lost!",(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return O("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki,{children:I.fields.map(function(P,S){return(0,e.jsx)(t.Ki.Item,{label:P.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[P.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",mb:P.line_break?"1rem":"initial",onClick:function(){return d(P)}})]})},S)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[I.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):I.comments.map(function(P,S){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:P.header}),(0,e.jsx)("br",{}),P.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return O("del_c",{del_c:S+1})}})]},S)}),(0,e.jsx)(t.$n,{icon:"comment",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")},children:"Add Entry"})]})]})},p=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:I===2,icon:"list",onClick:function(){return O("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:I===3,onClick:function(){return O("screen",{screen:3})},children:"Record Maintenance"})]})}},81190:function(_,j,n){"use strict";n.r(j),n.d(j,{SeedStorage:function(){return g}});var e=n(20462),s=n(7402),t=n(61282),r=n(7081),a=n(16754),o=n(2738),g=function(x){var d=(0,r.Oc)(),h=d.act,m=d.data,u=m.scanner,v=m.seeds,c=(0,s.Ul)(function(f){return f.name.toLowerCase()})(v);return(0,e.jsx)(o.p8,{width:600,height:760,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(a.wn,{title:"Seeds",children:c.map(function(f){return(0,e.jsxs)(a.so,{spacing:1,mt:-1,children:[(0,e.jsx)(a.so.Item,{basis:"60%",children:(0,e.jsx)(a.Nt,{title:(0,t.Sn)(f.name)+" #"+f.uid,children:(0,e.jsx)(a.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(a.Ki,{children:Object.keys(f.traits).map(function(p){return(0,e.jsx)(a.Ki.Item,{label:(0,t.Sn)(p),children:f.traits[p]},p)})})})})}),(0,e.jsxs)(a.so.Item,{mt:.4,children:[f.amount," Remaining"]}),(0,e.jsx)(a.so.Item,{grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,icon:"download",onClick:function(){return h("vend",{id:f.id})},children:"Vend"})}),(0,e.jsx)(a.so.Item,{grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,icon:"trash",onClick:function(){return h("purge",{id:f.id})},children:"Purge"})})]},f.name+f.uid)})})})})}},88309:function(_,j,n){"use strict";n.r(j),n.d(j,{ShieldCapacitor:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(x){var d=(0,t.Oc)(),h=d.act,m=d.data,u=m.active,v=m.time_since_fail,c=m.stored_charge,f=m.max_charge,p=m.charge_rate,C=m.max_charge_rate;return(0,e.jsx)(o.p8,{width:500,height:400,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:u,onClick:function(){return h("toggle")},children:u?"Online":"Offline"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:v>2?(0,e.jsx)(r.az,{color:"good",children:"OK."}):(0,e.jsx)(r.az,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ki.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.zv,{value:c,format:function(y){return(0,a.QL)(y,0,"J")}})," ","(",(0,e.jsx)(r.zv,{value:100*(0,s.LI)(c/f,1)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:p,step:100,stepPixelSize:.2,minValue:1e4,maxValue:C,format:function(y){return(0,a.d5)(y)},onDrag:function(y,O){return h("charge_rate",{rate:O})}})})]})})})})}},56686:function(_,j,n){"use strict";n.r(j),n.d(j,{ShieldGenerator:function(){return x}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=n(9129),x=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=c.locked;return(0,e.jsx)(o.p8,{width:500,height:400,children:(0,e.jsx)(o.p8.Content,{children:f?(0,e.jsx)(d,{}):(0,e.jsx)(h,{})})})},d=function(m){return(0,e.jsxs)(g.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.az,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},h=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=c.lockedData,p=f.capacitors,C=f.active,y=f.failing,O=f.radius,b=f.max_radius,I=f.z_range,P=f.max_z_range,S=f.average_field_strength,M=f.target_field_strength,A=f.max_field_strength,R=f.shields,K=f.upkeep,N=f.strengthen_rate,k=f.max_strengthen_rate,F=f.gen_power,W=(p||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Field Status",children:y?(0,e.jsx)(r.az,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.az,{color:"good",children:"Stable"})}),(0,e.jsxs)(r.Ki.Item,{label:"Overall Field Strength",children:[(0,s.LI)(S,2)," Renwick (",M&&(0,s.LI)(100*S/M,1)||"NA","%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,a.d5)(K)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,a.d5)(F)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[R," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:W?p.map(function(J,X){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+X,children:[J.active?(0,e.jsx)(r.az,{color:"good",children:"Online"}):(0,e.jsx)(r.az,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Charge",children:[(0,a.QL)(J.stored_charge,0,"J")," (",100*(0,s.LI)(J.stored_charge/J.max_charge,2),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:J.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},X)}):(0,e.jsx)(r.Ki.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:C,onClick:function(){return v("toggle")},children:C?"Online":"Offline"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:b,value:O,unit:"m",onDrag:function(J,X){return v("change_radius",{val:X})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:P,value:I,unit:"vertical range",onDrag:function(J,X){return v("z_range",{val:X})}})}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:k,value:N,format:function(J){return(0,s.LI)(J,1)},unit:"Renwick/s",onDrag:function(J,X){return v("strengthen_rate",{val:X})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:A,value:M,unit:"Renwick",onDrag:function(J,X){return v("target_field_strength",{val:X})}})})]})})]})}},20563:function(_,j,n){"use strict";n.r(j),n.d(j,{ShutoffMonitor:function(){return a},ShutoffMonitorContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.valves;return(0,e.jsx)(t.wn,{title:"Valves",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Open"}),(0,e.jsx)(t.XI.Cell,{children:"Mode"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),m.map(function(u){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:u.name}),(0,e.jsxs)(t.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(t.XI.Cell,{children:u.open?"Yes":"No"}),(0,e.jsx)(t.XI.Cell,{children:u.enabled?"Auto":"Manual"}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:u.open,disabled:!u.enabled,onClick:function(){return d("toggle_open",{valve:u.ref})},children:u.open?"Opened":"Closed"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:u.enabled,onClick:function(){return d("toggle_enable",{valve:u.ref})},children:u.enabled?"Auto":"Manual"})]})]},u.name)})]})})}},90868:function(_,j,n){"use strict";n.r(j),n.d(j,{ShuttleControl:function(){return v}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(c,f){var p="ERROR",C="bad",y=!1;return c==="docked"?(p="DOCKED",C="good"):c==="docking"?(p="DOCKING",C="average",y=!0):c==="undocking"?(p="UNDOCKING",C="average",y=!0):c==="undocked"&&(p="UNDOCKED",C="#676767"),y&&f&&(p=p+"-MANUAL"),(0,e.jsx)(r.az,{color:C,children:p})},g=function(c){var f=(0,t.Oc)(),p=f.act,C=f.data,y=c.engineName,O=y===void 0?"Bluespace Drive":y,b=C.shuttle_status,I=C.shuttle_state,P=C.has_docking,S=C.docking_status,M=C.docking_override,A=C.docking_codes;return(0,e.jsxs)(r.wn,{title:"Shuttle Status",children:[(0,e.jsx)(r.az,{color:"label",mb:1,children:b}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:O,children:I==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||I==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||I==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),P&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Docking Status",children:o(S,M)}),(0,e.jsx)(r.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("set_codes")},children:A||"Not Set"})})]})||null]})]})},x=function(c){var f=(0,t.Oc)(),p=f.act,C=f.data,y=C.can_launch,O=C.can_cancel,b=C.can_force;return(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("move")},disabled:!y,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("cancel")},disabled:!O,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("force")},color:"bad",disabled:!b,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},d=function(c){var f=(0,t.Oc)(),p=f.act,C=f.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{})]})},h=function(c){var f=(0,t.Oc)(),p=f.act,C=f.data,y=C.can_cloak,O=C.can_pick,b=C.legit,I=C.cloaked;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(r.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(r.Ki,{children:[y&&(0,e.jsx)(r.Ki.Item,{label:b?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(r.$n,{selected:I,icon:I?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:I?"Enabled":"Disabled"})})||null,(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{icon:"taxi",disabled:!O,onClick:function(){return p("pick")},children:c.destination_name})})]})}),(0,e.jsx)(x,{})]})},m=function(c){var f=(0,t.Oc)(),p=f.act,C=f.data,y=C.can_pick,O=C.destination_name,b=C.fuel_usage,I=C.fuel_span,P=C.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{engineName:"Engines"}),(0,e.jsx)(r.wn,{title:"Jump Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{icon:"taxi",disabled:!y,onClick:function(){return p("pick")},children:O})}),b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Est. Delta-V Budget",color:I,children:[P," m/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[b," m/s"]})]})||null]})}),(0,e.jsx)(x,{})]})},u=function(c){var f=(0,t.Oc)(),p=f.act,C=f.data,y=C.autopilot,O=C.can_rename,b=C.shuttle_state,I=C.is_moving,P=C.skip_docking,S=C.docking_status,M=C.docking_override,A=C.shuttle_location,R=C.can_cloak,K=C.cloaked,N=C.can_autopilot,k=C.routes,F=C.is_in_transit,W=C.travel_progress,J=C.time_left,X=C.doors,Q=C.sensors;return(0,e.jsxs)(e.Fragment,{children:[y&&(0,e.jsx)(r.wn,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.az,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,e.jsxs)(r.wn,{title:"Shuttle Status",buttons:O&&(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("rename_command")},children:"Rename"})||null,children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:b==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||b==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||b==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,s.Sn)(A)}),!P&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:S==="docked",disabled:S!=="undocked"&&S!=="docked",onClick:function(){return p("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:S==="undocked",disabled:S!=="docked"&&S!=="undocked",onClick:function(){return p("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:o(S,M)})})||null,R&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:K,icon:K?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:K?"Enabled":"Disabled"})})||null,N&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:y,icon:y?"eye":"eye-o",onClick:function(){return p("toggle_autopilot")},children:y?"Enabled":"Disabled"})})||null]})||null]}),!I&&(0,e.jsx)(r.wn,{level:2,title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:k.length&&k.map(function(Z){return(0,e.jsx)(r.Ki.Item,{label:Z.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return p("traverse",{traverse:Z.index})},children:Z.travel_time})},Z.name)})||(0,e.jsx)(r.Ki.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),F&&(0,e.jsx)(r.wn,{title:"Transit ETA",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Distance from target",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,maxValue:100,value:W,children:[J,"s"]})})})})||null,Object.keys(X).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(X).map(function(Z){var G=X[Z];return(0,e.jsxs)(r.Ki.Item,{label:Z,children:[G.open&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",G.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},Z)})})})||null,Object.keys(Q).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys(Q).map(function(Z,G){var H=Q[Z];return H.reading!==-1?(0,e.jsx)(r.Ki.Item,{label:Z,color:"bad",children:"Unable to get sensor air reading."},G):(0,e.jsx)(r.Ki.Item,{label:Z,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[H.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[H.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[H.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[H.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[H.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[H.phoron,"%"]}),H.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[H.other,"%"]})||null]})},Z)})})})||null]})},v=function(c){var f=(0,t.Oc)(),p=f.act,C=f.data,y=C.subtemplate,O=C.destination_name;return(0,e.jsx)(a.p8,{width:470,height:y==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(a.p8.Content,{children:y==="ShuttleControlConsoleDefault"&&(0,e.jsx)(d,{})||y==="ShuttleControlConsoleMulti"&&(0,e.jsx)(h,{destination_name:O})||y==="ShuttleControlConsoleExploration"&&(0,e.jsx)(m,{})||y==="ShuttleControlConsoleWeb"&&(0,e.jsx)(u,{})})})}},46321:function(_,j,n){"use strict";n.r(j),n.d(j,{Signaler:function(){return o},SignalerContent:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=function(){return(0,e.jsx)(a.p8,{width:280,height:132,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,t.Oc)(),h=d.act,m=d.data,u=m.code,v=m.frequency,c=m.minFrequency,f=m.maxFrequency;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Q7,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:c/10,maxValue:f/10,value:v/10,format:function(p){return(0,s.Mg)(p,1)},width:"80px",onDrag:function(p,C){return h("freq",{freq:C})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return h("reset",{reset:"freq"})},children:"Reset"})})]}),(0,e.jsxs)(r.XI.Row,{mt:.6,children:[(0,e.jsx)(r.XI.Cell,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Q7,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onDrag:function(p,C){return h("code",{code:C})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return h("reset",{reset:"code"})},children:"Reset"})})]}),(0,e.jsx)(r.XI.Row,{mt:.8,children:(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{mb:-.1,fluid:!0,icon:"arrow-up",textAlign:"center",onClick:function(){return h("signal")},children:"Send Signal"})})})]})})}},79608:function(_,j,n){"use strict";n.r(j),n.d(j,{Sleeper:function(){return h}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},d=["bad","average","average","good","average","average","bad"],h=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.hasOccupant,P=I?(0,e.jsx)(m,{}):(0,e.jsx)(p,{});return(0,e.jsx)(a.p8,{width:550,height:760,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",children:P})})},m=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.occupant,P=b.dialysis,S=b.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(v,{}),(0,e.jsx)(c,{title:"Dialysis",active:P,actToDo:"togglefilter"}),(0,e.jsx)(c,{title:"Stomach Pump",active:S,actToDo:"togglepump"}),(0,e.jsx)(f,{})]})},u=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.occupant,P=b.auto_eject_dead,S=b.stasis;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.jsx)(r.$n,{icon:P?"toggle-on":"toggle-off",selected:P,onClick:function(){return O("auto_eject_dead_"+(P?"off":"on"))},children:P?"On":"Off"}),(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return O("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{onClick:function(){return O("changestasis")},children:S})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:0,max:I.maxHealth,value:I.health/I.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,s.LI)(I.health,0)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:o[I.stat][0],children:o[I.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:I.maxTemp,value:I.bodyTemperature/I.maxTemp,color:d[I.temperatureSuitability+3],children:[(0,s.LI)(I.btCelsius,0),"\xB0C,",(0,s.LI)(I.btFaren,0),"\xB0F"]})}),!!I.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:I.bloodMax,value:I.bloodLevel/I.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[I.bloodPercent,"%, ",I.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[I.pulse," BPM"]})]})]})})},v=function(C){var y=(0,t.Oc)().data,O=y.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:g.map(function(b,I){return(0,e.jsx)(r.Ki.Item,{label:b[0],children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:O[b[1]]/100,ranges:x,children:(0,s.LI)(O[b[1]],0)},I)},I)})})})},c=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.isBeakerLoaded,P=b.beakerMaxSpace,S=b.beakerFreeSpace,M=C.active,A=C.actToDo,R=C.title,K=M&&S>0;return(0,e.jsx)(r.wn,{title:R,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!I||S<=0,selected:K,icon:K?"toggle-on":"toggle-off",onClick:function(){return O(A)},children:K?"Active":"Inactive"}),(0,e.jsx)(r.$n,{disabled:!I,icon:"eject",onClick:function(){return O("removebeaker")},children:"Eject"})]}),children:I?(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(r.z2,{min:"0",max:P,value:S/P,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[S,"u"]})})}):(0,e.jsx)(r.az,{color:"label",children:"No beaker loaded."})})},f=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.occupant,P=b.chemicals,S=b.maxchem,M=b.amounts;return(0,e.jsx)(r.wn,{title:"Chemicals",flexGrow:"1",children:P.map(function(A,R){var K="",N;return A.overdosing?(K="bad",N=(0,e.jsxs)(r.az,{color:"bad",children:[(0,e.jsx)(r.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):A.od_warning&&(K="average",N=(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(r.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(r.wn,{title:A.title,level:"3",mx:"0",lineHeight:"18px",buttons:N,children:(0,e.jsxs)(r.so,{align:"flex-start",children:[(0,e.jsxs)(r.z2,{min:"0",max:S,value:A.occ_amount/S,color:K,mr:"0.5rem",children:[A.pretty_amount,"/",S,"u"]}),M.map(function(k,F){return(0,e.jsx)(r.$n,{disabled:!A.injectable||A.occ_amount+k>S||I.stat===2,icon:"syringe",mb:"0",height:"19px",onClick:function(){return O("chemical",{chemid:A.id,amount:k})},children:k},F)})]})})},R)})})},p=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.isBeakerLoaded;return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected.",I&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return O("removebeaker")},children:"Remove Beaker"})})||null]})})})}},37746:function(_,j,n){"use strict";n.r(j),n.d(j,{SmartVend:function(){return o}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),d=x.act,h=x.config,m=x.data;return(0,e.jsx)(a.p8,{width:500,height:550,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[m.secure&&(0,e.jsx)(r.IC,{danger:m.locked===-1,info:m.locked!==-1,children:m.locked===-1?(0,e.jsx)(r.az,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.jsx)(r.az,{children:"Secure Access: Please have your identification ready."})})||null,m.contents.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",h.title," is empty."]})||(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,s.Tj)(function(u,v){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:u.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[u.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{disabled:u.amount<1,onClick:function(){return d("Release",{index:u.index,amount:1})},children:"1"}),(0,e.jsx)(r.$n,{disabled:u.amount<5,onClick:function(){return d("Release",{index:u.index,amount:5})},children:"5"}),(0,e.jsx)(r.$n,{disabled:u.amount<25,onClick:function(){return d("Release",{index:u.index,amount:25})},children:"25"}),(0,e.jsx)(r.$n,{disabled:u.amount<50,onClick:function(){return d("Release",{index:u.index,amount:50})},children:"50"}),(0,e.jsx)(r.$n,{disabled:u.amount<1,onClick:function(){return d("Release",{index:u.index})},children:"Custom"}),(0,e.jsx)(r.$n,{disabled:u.amount<1,onClick:function(){return d("Release",{index:u.index,amount:u.amount})},children:"All"})]})]},v)})(m.contents)]})]})})})}},65554:function(_,j,n){"use strict";n.r(j),n.d(j,{Smes:function(){return x}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=1e3,x=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.capacityPercent,c=u.capacity,f=u.charge,p=u.inputAttempt,C=u.inputting,y=u.inputLevel,O=u.inputLevelMax,b=u.inputAvailable,I=u.outputAttempt,P=u.outputting,S=u.outputLevel,M=u.outputLevelMax,A=u.outputUsed,R=v>=100&&"good"||C&&"average"||"bad",K=P&&"good"||f>0&&"average"||"bad";return(0,e.jsx)(o.p8,{width:400,height:350,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsxs)(r.z2,{value:v*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,s.LI)(f/(1e3*60),1)," kWh /",(0,s.LI)(c/(1e3*60))," kWh (",v,"%)"]})}),(0,e.jsx)(r.wn,{title:"Input",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(r.$n,{icon:p?"sync-alt":"times",selected:p,onClick:function(){return m("tryinput")},children:p?"On":"Off"}),children:(0,e.jsx)(r.az,{color:R,children:v>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:y===0,onClick:function(){return m("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:y===0,onClick:function(){return m("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:y/g,fillValue:b/g,minValue:0,maxValue:O/g,step:5,stepPixelSize:4,format:function(N){return(0,a.d5)(N*g,1)},onDrag:function(N,k){return m("input",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:y===O,onClick:function(){return m("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:y===O,onClick:function(){return m("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,a.d5)(b)})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.$n,{icon:I?"power-off":"times",selected:I,onClick:function(){return m("tryoutput")},children:I?"On":"Off"}),children:(0,e.jsx)(r.az,{color:K,children:P?"Sending":f>0?"Not Sending":"No Charge"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:S===0,onClick:function(){return m("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:S===0,onClick:function(){return m("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:S/g,minValue:0,maxValue:M/g,step:5,stepPixelSize:4,format:function(N){return(0,a.d5)(N*g,1)},onDrag:function(N,k){return m("output",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:S===M,onClick:function(){return m("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:S===M,onClick:function(){return m("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,a.d5)(A)})]})})]})})}},60836:function(_,j,n){"use strict";n.r(j),n.d(j,{SolarControl:function(){return o}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),d=x.act,h=x.data,m=h.generated,u=h.generated_ratio,v=h.sun_angle,c=h.array_angle,f=h.rotation_rate,p=h.max_rotation_rate,C=h.tracking_state,y=h.connected_panels,O=h.connected_tracker;return(0,e.jsx)(a.p8,{width:380,height:230,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return d("refresh")},children:"Scan for new hardware"}),children:(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:O?"good":"bad",children:O?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:y>0?"good":"bad",children:y})]})}),(0,e.jsx)(r.XI.Cell,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:m+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[v,"\xB0"]})]})})]})})}),(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Tracking",children:[(0,e.jsx)(r.$n,{icon:"times",selected:C===0,onClick:function(){return d("tracking",{mode:0})},children:"Off"}),(0,e.jsx)(r.$n,{icon:"clock-o",selected:C===1,onClick:function(){return d("tracking",{mode:1})},children:"Timed"}),(0,e.jsx)(r.$n,{icon:"sync",selected:C===2,disabled:!O,onClick:function(){return d("tracking",{mode:2})},children:"Auto"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(C===0||C===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:c,format:function(b){var I=Math.sign(b)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(b))+I},onDrag:function(b,I){return d("azimuth",{value:I})}}),C===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-p-.01,maxValue:p+.01,value:f,format:function(b){var I=Math.sign(b)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(b))+I},onDrag:function(b,I){return d("azimuth_rate",{value:I})}}),C===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[c+"\xB0"," (auto)"]})]})]})})]})})}},44051:function(_,j,n){"use strict";n.r(j),n.d(j,{SpaceHeater:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(79500),a=n(2738),o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.temp,u=h.minTemp,v=h.maxTemp,c=h.cell,f=h.power;return(0,e.jsx)(a.p8,{width:300,height:250,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Target Temperature",children:[m," K (",m-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(t.Ki.Item,{label:"Current Charge",children:[f,"% ",!c&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Wx,{children:[(0,e.jsx)(t.Wx.Item,{label:"Thermostat",children:(0,e.jsx)(t.N6,{animated:!0,value:m-r.Ai,minValue:u-r.Ai,maxValue:v-r.Ai,unit:"C",onChange:function(p,C){return d("temp",{newtemp:C+r.Ai})}})}),(0,e.jsx)(t.Wx.Item,{label:"Cell",children:c?(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("cellremove")},children:"Eject Cell"}):(0,e.jsx)(t.$n,{icon:"car-battery",onClick:function(){return d("cellinstall")},children:"Insert Cell"})})]})})]})})}},39064:function(_,j,n){"use strict";n.r(j),n.d(j,{Stack:function(){return x}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738);function a(v,c){(c==null||c>v.length)&&(c=v.length);for(var f=0,p=new Array(c);f=v.length?{done:!0}:{done:!1,value:v[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x=function(v){var c=(0,s.Oc)(),f=c.act,p=c.data,C=p.amount,y=p.recipes;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Amount: "+C,children:(0,e.jsx)(d,{recipes:y})})})})},d=function(v){var c=(0,s.Oc)(),f=c.act,p=c.data,C=v.recipes,y=Object.keys(C).sort();return y.map(function(O,b){var I=C[O];return I.ref===void 0?(0,e.jsx)(t.Nt,{ml:1,mb:-.7,color:"label",title:O,children:(0,e.jsx)(t.az,{ml:1,children:(0,e.jsx)(d,{recipes:I})})},b):(0,e.jsx)(u,{title:O,recipe:I},b)})},h=function(v,c){return v.req_amount>c?0:Math.floor(c/v.req_amount)},m=function(v){for(var c=function(){var A=M.value;b>=A&&P.push((0,e.jsx)(t.$n,{onClick:function(){return p("make",{ref:y.ref,multiplier:A})},children:A*y.res_amount+"x"}))},f=(0,s.Oc)(),p=f.act,C=f.data,y=v.recipe,O=v.maxMultiplier,b=Math.min(O,Math.floor(y.max_res_amount/y.res_amount)),I=[5,10,25],P=[],S=g(I),M;!(M=S()).done;)c();return I.indexOf(b)===-1&&P.push((0,e.jsx)(t.$n,{onClick:function(){return p("make",{ref:y.ref,multiplier:b})},children:b*y.res_amount+"x"})),P},u=function(v){var c=(0,s.Oc)(),f=c.act,p=c.data,C=p.amount,y=v.recipe,O=v.title,b=y.res_amount,I=y.max_res_amount,P=y.req_amount,S=y.ref,M=O;M+=" (",M+=P+" ",M+="sheet"+(P>1?"s":""),M+=")",b>1&&(M=b+"x "+M);var A=h(y,C);return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.XI,{children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,disabled:!A,icon:"wrench",onClick:function(){return f("make",{ref:y.ref,multiplier:1})},children:M})}),I>1&&A>1&&(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(m,{recipe:y,maxMultiplier:A})})]})})})}},20717:function(_,j,n){"use strict";n.r(j),n.d(j,{StationAlertConsole:function(){return a},StationAlertConsoleContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.categories,u=m===void 0?[]:m;return u.map(function(v){return(0,e.jsx)(t.wn,{title:v.category,children:(0,e.jsxs)("ul",{children:[v.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),v.alarms.map(function(c){var f="";return c.has_cameras?f=(0,e.jsx)(t.wn,{children:c.cameras.map(function(p){return(0,e.jsx)(t.$n,{disabled:p.deact,icon:"video",onClick:function(){return d("switchTo",{camera:p.camera})},children:p.name+(p.deact?" (deactived)":"")},p.name)})}):c.lost_sources&&(f=(0,e.jsxs)(t.az,{color:"bad",children:["Lost Alarm Sources: ",c.lost_sources]})),(0,e.jsxs)("li",{children:[c.name,c.origin_lost?(0,e.jsx)(t.az,{color:"bad",children:"Alarm Origin Lost."}):"",f]},c.name)})]})},v.category)})}},76064:function(_,j,n){"use strict";n.r(j),n.d(j,{StationBlueprints:function(){return a},StationBlueprintsContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(o,{})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=x.config,u=h.mapRef,v=h.areas,c=h.turfs;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(t.D1,{className:"CameraConsole__map",params:{id:u,type:"map"}})})]})}},97073:function(_,j,n){"use strict";n.r(j),n.d(j,{StockExchange:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.screen,C=f.stationName,y;return p==="stocks"?y=(0,e.jsx)(o,{}):p==="logs"?y=(0,e.jsx)(d,{}):p==="archive"?y=(0,e.jsx)(h,{}):p==="graph"&&(y=(0,e.jsx)(m,{})),(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:""+C+" Stock Exchange",children:y})})})},o=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.balance,C=f.stationName,y=f.viewMode,O=(0,e.jsx)(g,{});return y==="Full"?O=(0,e.jsx)(g,{}):y==="Compressed"&&(O=(0,e.jsx)(x,{})),(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[C," Cargo Department"]})," |"]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",p]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_cycle_view")},children:y}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(t.$n,{icon:"list",onClick:function(){return c("stocks_check")},children:"Check"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"This is a work in progress. Certain features may not be available."}),(0,e.jsx)(t.wn,{title:"Listed Stocks",children:O})]})},g=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.stocks,C=p===void 0?[]:p;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(t.cG,{}),(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.XI.Cell,{children:"ID"}),(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Owned"}),(0,e.jsx)(t.XI.Cell,{children:"Avail"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),(0,e.jsx)(t.cG,{}),C.map(function(y){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.XI.Cell,{color:"label",children:y.ID}),(0,e.jsx)(t.XI.Cell,{color:"label",children:y.Name}),(0,e.jsx)(t.XI.Cell,{color:"label",children:y.Value}),(0,e.jsx)(t.XI.Cell,{color:"label",children:y.Owned}),(0,e.jsx)(t.XI.Cell,{color:"label",children:y.Avail}),(0,e.jsxs)(t.XI.Cell,{color:"label",children:[(0,e.jsx)(t.$n,{icon:"plus",disabled:!1,onClick:function(){return c("stocks_buy",{share:y.REF})}}),(0,e.jsx)(t.$n,{icon:"minus",disabled:!1,onClick:function(){return c("stocks_sell",{share:y.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_archive",{share:y.REF})},children:"A"}),(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_history",{share:y.REF})},children:"H"}),(0,e.jsx)("br",{})]})]},y.ID)})]})]})},x=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.stocks,C=p===void 0?[]:p;return(0,e.jsx)(t.az,{children:C.map(function(y){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("span",{children:y.name})," ",(0,e.jsx)("span",{children:y.ID}),y.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",y.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",y.Value," |",(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_history",{share:y.REF})},children:"View history"}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:y.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",y.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),y.bankrupt===1?(0,e.jsx)("span",{children:"You cannot buy or sell shares in a bankrupt company!"}):(0,e.jsxs)("span",{children:[(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_buy",{share:y.REF})},children:"Buy shares"}),"|",(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_sell",{share:y.REF})},children:"Sell shares"})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:y.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_archive",{share:y.REF})},children:"View news archives"}),(0,e.jsx)(t.cG,{})]},y.ID)})})},d=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.logs,C=p===void 0?[]:p;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:C.map(function(y){return(0,e.jsxs)(t.az,{children:[y.type!=="borrow"?(0,e.jsxs)("div",{children:[y.time," | ",(0,e.jsx)("b",{children:y.user_name}),y.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"}),(0,e.jsx)("b",{children:y.stocks})," stocks at ",y.shareprice," a share for",(0,e.jsx)("b",{children:y.money})," total credits",y.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"}),(0,e.jsx)("b",{children:y.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[y.time," | ",(0,e.jsx)("b",{children:y.user_name})," borrowed ",(0,e.jsx)("b",{children:y.stocks}),"stocks with a deposit of ",(0,e.jsx)("b",{children:y.money})," credits in",(0,e.jsx)("b",{children:y.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(t.cG,{})]},y.time)})})]})},h=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.name,C=f.events,y=C===void 0?[]:C,O=f.articles,b=O===void 0?[]:O;return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",p]}),(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_backbutton")},children:"Go back"}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:y.map(function(I){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.current_title}),(0,e.jsx)("br",{}),I.current_desc]}),(0,e.jsx)(t.cG,{})]},I.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:b.map(function(I){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.headline}),(0,e.jsx)("i",{children:I.subtitle}),(0,e.jsx)("br",{}),I.article,(0,e.jsx)("br",{}),"- ",I.author,", ",I.spacetime," (via",(0,e.jsx)("i",{children:I.outlet}),")"]}),(0,e.jsx)(t.cG,{})]},I.headline)})})]})},m=function(u){var v=(0,s.Oc)(),c=v.act,f=v.data,p=f.name,C=f.maxValue,y=f.values,O=y===void 0?[]:y;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.wn,{position:"relative",height:"100%",children:(0,e.jsx)(t.t1.Line,{fillPositionedParent:!0,data:O,rangeX:[0,O.length-1],rangeY:[0,C],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(t.cG,{}),(0,e.jsxs)("p",{children:[p," share value per share"]})]})}},6085:function(_,j,n){"use strict";n.r(j),n.d(j,{SuitCycler:function(){return o}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=function(m){var u=function(F){M(F)},v=function(F){K(F)},c=(0,t.Oc)(),f=c.act,p=c.data,C=p.active,y=p.locked,O=p.uv_active,b=p.species,I=p.departments,P=(0,s.useState)(!!I&&I[0]||null),S=P[0],M=P[1],A=(0,s.useState)(!!b&&b[0]||null),R=A[0],K=A[1],N=(0,e.jsx)(g,{selectedDepartment:S,selectedSpecies:R,onSelectedDepartment:u,onSelectedSpecies:v});return O?N=(0,e.jsx)(x,{}):y?N=(0,e.jsx)(d,{}):C&&(N=(0,e.jsx)(h,{})),(0,e.jsx)(a.p8,{width:320,height:400,children:(0,e.jsx)(a.p8.Content,{children:N})})},g=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=c.safeties,p=c.occupied,C=c.suit,y=c.helmet,O=c.departments,b=c.species,I=c.uv_level,P=c.max_uv_level,S=c.can_repair,M=c.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Storage",buttons:(0,e.jsx)(r.$n,{icon:"lock",onClick:function(){return v("lock")},children:"Lock"}),children:[!!(p&&f)&&(0,e.jsxs)(r.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(r.$n,{fluid:!0,icon:"eject",color:"red",onClick:function(){return v("eject_guy")},children:"Eject Entity"})]}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Helmet",children:(0,e.jsx)(r.$n,{icon:y?"square":"square-o",disabled:!y,onClick:function(){return v("dispense",{item:"helmet"})},children:y||"Empty"})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:C?"square":"square-o",disabled:!C,onClick:function(){return v("dispense",{item:"suit"})},children:C||"Empty"})}),S&&M?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[M,(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return v("repair_suit")},children:"Repair"})]}):null]})]}),(0,e.jsxs)(r.wn,{title:"Customization",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Target Paintjob",children:(0,e.jsx)(r.ms,{noscroll:!0,width:"150px",options:O,selected:m.selectedDepartment,onSelected:function(A){m.onSelectedDepartment(A),v("department",{department:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Target Species",children:(0,e.jsx)(r.ms,{width:"150px",maxHeight:"160px",options:b,selected:m.selectedSpecies,onSelected:function(A){m.onSelectedSpecies(A),v("species",{species:A})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,onClick:function(){return v("apply_paintjob")},children:"Customize"})]}),(0,e.jsx)(r.wn,{title:"UV Decontamination",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Radiation Level",children:(0,e.jsx)(r.Q7,{width:"50px",value:I,minValue:1,maxValue:P,stepPixelSize:30,onChange:function(A,R){return v("radlevel",{radlevel:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"recycle",disabled:p&&f,textAlign:"center",onClick:function(){return v("uv")}})})]})})]})},x=function(m){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},d=function(m){var u=(0,t.Oc)(),v=u.act,c=u.data,f=c.model_text,p=c.userHasAccess;return(0,e.jsxs)(r.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(r.az,{color:"bad",bold:!0,children:["The ",f," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"unlock",disabled:!p,onClick:function(){return v("lock")},children:"[Unlock]"})})]})},h=function(m){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},33364:function(_,j,n){"use strict";n.r(j),n.d(j,{SuitStorageUnit:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(h){var m=(0,s.Oc)(),u=m.act,v=m.data,c=v.panelopen,f=v.uv_active,p=v.broken,C=(0,e.jsx)(o,{});return c?C=(0,e.jsx)(g,{}):f?C=(0,e.jsx)(x,{}):p&&(C=(0,e.jsx)(d,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:C})})},o=function(h){var m=(0,s.Oc)(),u=m.act,v=m.data,c=v.locked,f=v.open,p=v.safeties,C=v.occupied,y=v.suit,O=v.helmet,b=v.mask;return(0,e.jsxs)(t.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!f&&(0,e.jsx)(t.$n,{icon:c?"unlock":"lock",onClick:function(){return u("lock")},children:c?"Unlock":"Lock"}),!c&&(0,e.jsx)(t.$n,{icon:f?"sign-out-alt":"sign-in-alt",onClick:function(){return u("door")},children:f?"Close":"Open"})]}),children:[!!(C&&p)&&(0,e.jsxs)(t.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",color:"red",onClick:function(){return u("eject_guy")},children:"Eject Entity"})]}),c&&(0,e.jsxs)(t.az,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(t.az,{children:"Unit Locked"}),(0,e.jsx)(t.In,{name:"lock"})]})||f&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Helmet",children:(0,e.jsx)(t.$n,{icon:O?"square":"square-o",disabled:!O,onClick:function(){return u("dispense",{item:"helmet"})},children:O||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Suit",children:(0,e.jsx)(t.$n,{icon:y?"square":"square-o",disabled:!y,onClick:function(){return u("dispense",{item:"suit"})},children:y||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Mask",children:(0,e.jsx)(t.$n,{icon:b?"square":"square-o",disabled:!b,onClick:function(){return u("dispense",{item:"mask"})},children:b||"Empty"})})]})||(0,e.jsx)(t.$n,{fluid:!0,icon:"recycle",disabled:C&&p,textAlign:"center",onClick:function(){return u("uv")},children:"Decontaminate"})]})},g=function(h){var m=(0,s.Oc)(),u=m.act,v=m.data,c=v.safeties,f=v.uv_super;return(0,e.jsxs)(t.wn,{title:"Maintenance Panel",children:[(0,e.jsx)(t.az,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.az,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",f?"15nm":"185nm",".",(0,e.jsxs)(t.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.N6,{size:2,inline:!0,value:f,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:f?"red":"green",format:function(p){return p?"15nm":"185nm"},onChange:function(p,C){return u("toggleUV")}})}),(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",c?(0,e.jsx)("font",{color:"green",children:"GREEN"}):(0,e.jsx)("font",{color:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(t.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.$n,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return u("togglesafeties")}})}),(0,e.jsxs)(t.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(t.In,{name:"circle",color:c?"black":"red",mr:2}),(0,e.jsx)(t.In,{name:"circle",color:c?"green":"black"})]})]})]})]})},x=function(h){return(0,e.jsx)(t.IC,{children:"Contents are currently being decontaminated. Please wait."})},d=function(h){return(0,e.jsx)(t.IC,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},18766:function(_,j,n){"use strict";n.r(j),n.d(j,{SupermatterMonitor:function(){return g},SupermatterMonitorContent:function(){return x}});var e=n(20462),s=n(4089),t=n(61282),r=n(7081),a=n(16754),o=n(2738),g=function(m){return(0,e.jsx)(o.p8,{width:600,height:400,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(m){var u=(0,r.Oc)(),v=u.act,c=u.data,f=c.active;return f?(0,e.jsx)(h,{}):(0,e.jsx)(d,{})},d=function(m){var u=(0,r.Oc)(),v=u.act,c=u.data,f=c.supermatters;return(0,e.jsx)(a.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(a.$n,{icon:"sync",onClick:function(){return v("refresh")},children:"Refresh"}),children:(0,e.jsx)(a.so,{wrap:"wrap",children:f.map(function(p,C){return(0,e.jsx)(a.so.Item,{basis:"49%",grow:C%2,children:(0,e.jsx)(a.wn,{title:p.area_name+" (#"+p.uid+")",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"Integrity",children:[p.integrity," %"]}),(0,e.jsx)(a.Ki.Item,{label:"Options",children:(0,e.jsx)(a.$n,{icon:"eye",onClick:function(){return v("set",{set:p.uid})},children:"View Details"})})]})})},C)})})})},h=function(m){var u=(0,r.Oc)(),v=u.act,c=u.data,f=c.SM_area,p=c.SM_integrity,C=c.SM_power,y=c.SM_ambienttemp,O=c.SM_ambientpressure,b=c.SM_EPR,I=c.SM_gas_O2,P=c.SM_gas_CO2,S=c.SM_gas_N2,M=c.SM_gas_PH,A=c.SM_gas_N2O;return(0,e.jsx)(a.wn,{title:(0,t.Sn)(f),buttons:(0,e.jsx)(a.$n,{icon:"arrow-left",onClick:function(){return v("clear")},children:"Return to Menu"}),children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(a.z2,{animated:!0,value:p,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(a.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(a.az,{color:C>300&&"bad"||C>150&&"average"||"good",children:(0,e.jsx)(a.zv,{format:function(R){return(0,s.LI)(R,2)+" MeV/cm\xB3"},value:C})})}),(0,e.jsx)(a.Ki.Item,{label:"Temperature",children:(0,e.jsx)(a.az,{color:y>5e3&&"bad"||y>4e3&&"average"||"good",children:(0,e.jsx)(a.zv,{format:function(R){return(0,s.LI)(R,2)+" K"},value:y})})}),(0,e.jsx)(a.Ki.Item,{label:"Pressure",children:(0,e.jsx)(a.az,{color:O>1e4&&"bad"||O>5e3&&"average"||"good",children:(0,e.jsx)(a.zv,{format:function(R){return(0,s.LI)(R,2)+" kPa"},value:O})})}),(0,e.jsx)(a.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(a.az,{color:b>4&&"bad"||b>1&&"average"||"good",children:(0,e.jsx)(a.zv,{format:function(R){return(0,s.LI)(R,2)},value:b})})}),(0,e.jsx)(a.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(a.zv,{value:I}),"%"]}),(0,e.jsxs)(a.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(a.zv,{value:P}),"%"]}),(0,e.jsxs)(a.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(a.zv,{value:S}),"%"]}),(0,e.jsxs)(a.Ki.Item,{label:"PH",children:[(0,e.jsx)(a.zv,{value:M}),"%"]}),(0,e.jsxs)(a.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(a.zv,{value:A}),"%"]})]})})]})})}},11296:function(_,j,n){"use strict";n.r(j),n.d(j,{SupplyConsole:function(){return m}});var e=n(20462),s=n(7402),t=n(22071),r=n(61358),a=n(7081),o=n(16754),g=n(41242),x=n(38509),d=n(2738),h=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=b.supply_points,P=C.args,S=P.name,M=P.cost,A=P.manifest,R=P.ref,K=P.random;return(0,e.jsx)(o.wn,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:S,buttons:(0,e.jsx)(o.$n,{icon:"shopping-cart",disabled:M>I,onClick:function(){return O("request_crate",{ref:R})},children:"Buy - "+M+" points"}),children:(0,e.jsx)(o.wn,{title:"Contains"+(K?" any "+K+" of:":""),scrollable:!0,height:"200px",children:A.map(function(N){return(0,e.jsx)(o.az,{children:N},N)})})})},m=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data;return(0,x.modalRegisterBodyOverride)("view_crate",h),(0,e.jsx)(d.p8,{width:700,height:620,children:(0,e.jsxs)(d.p8.Content,{children:[(0,e.jsx)(x.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(o.wn,{title:"Supply Records",children:[(0,e.jsx)(u,{}),(0,e.jsx)(v,{})]})]})})},u=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=b.supply_points,P=b.shuttle,S=b.shuttle_auth,M=null,A=!1;return S&&(P.launch===1&&P.mode===0?M=(0,e.jsx)(o.$n,{icon:"rocket",onClick:function(){return O("send_shuttle",{mode:"send_away"})},children:"Send Away"}):P.launch===2&&(P.mode===3||P.mode===1)?M=(0,e.jsx)(o.$n,{icon:"ban",onClick:function(){return O("send_shuttle",{mode:"cancel_shuttle"})},children:"Cancel Launch"}):P.launch===1&&P.mode===5&&(M=(0,e.jsx)(o.$n,{icon:"rocket",onClick:function(){return O("send_shuttle",{mode:"send_to_station"})},children:"Send Shuttle"})),P.force&&(A=!0)),(0,e.jsxs)(o.wn,{children:[(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(o.zv,{value:I})})}),(0,e.jsx)(o.wn,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[M,A?(0,e.jsx)(o.$n,{icon:"exclamation-triangle",onClick:function(){return O("send_shuttle",{mode:"force_shuttle"})},children:"Force Launch"}):null]}),children:P.location}),(0,e.jsx)(o.Ki.Item,{label:"Engine",children:P.engine}),P.mode===4?(0,e.jsx)(o.Ki.Item,{label:"ETA",children:P.time>1?(0,g.fU)(P.time):"LATE"}):null]})})]})},v=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=b.order_auth,P=(0,r.useState)(0),S=P[0],M=P[1];return(0,e.jsxs)(o.wn,{title:"Menu",children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsx)(o.tU.Tab,{icon:"box",selected:S===0,onClick:function(){return M(0)},children:"Request"}),(0,e.jsx)(o.tU.Tab,{icon:"check-circle-o",selected:S===1,onClick:function(){return M(1)},children:"Accepted"}),(0,e.jsx)(o.tU.Tab,{icon:"circle-o",selected:S===2,onClick:function(){return M(2)},children:"Requests"}),(0,e.jsx)(o.tU.Tab,{icon:"book",selected:S===3,onClick:function(){return M(3)},children:"Order history"}),(0,e.jsx)(o.tU.Tab,{icon:"book",selected:S===4,onClick:function(){return M(4)},children:"Export history"})]}),S===0?(0,e.jsx)(c,{}):null,S===1?(0,e.jsx)(f,{mode:"Approved"}):null,S===2?(0,e.jsx)(f,{mode:"Requested"}):null,S===3?(0,e.jsx)(f,{mode:"All"}):null,S===4?(0,e.jsx)(p,{}):null]})},c=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=b.categories,P=b.supply_packs,S=b.contraband,M=b.supply_points,A=(0,r.useState)(null),R=A[0],K=A[1],N=(0,t.L)([(0,s.pb)(function(k){return k.group===R}),(0,s.pb)(function(k){return!k.contraband||S}),(0,s.Ul)(function(k){return k.name}),(0,s.Ul)(function(k){return k.cost>M})])(P);return(0,e.jsx)(o.wn,{level:2,children:(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{basis:"25%",children:(0,e.jsx)(o.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:I.map(function(k){return(0,e.jsx)(o.$n,{fluid:!0,selected:k===R,onClick:function(){return K(k)},children:k},k)})})}),(0,e.jsx)(o.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(o.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:N.map(function(k){return(0,e.jsx)(o.az,{children:(0,e.jsxs)(o.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(o.BJ.Item,{basis:"70%",children:(0,e.jsx)(o.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,color:k.cost>M?"red":null,onClick:function(){return O("request_crate",{ref:k.ref})},children:k.name})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{color:k.cost>M?"red":null,onClick:function(){return O("request_crate_multi",{ref:k.ref})},children:"#"})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{color:k.cost>M?"red":null,onClick:function(){return O("view_crate",{crate:k.ref})},children:"C"})}),(0,e.jsxs)(o.BJ.Item,{grow:1,children:[k.cost," points"]})]})},k.name)})})})]})})},f=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=C.mode,P=b.orders,S=b.order_auth,M=b.supply_points,A=P.filter(function(R){return R.status===I||I==="All"});return A.length?(0,e.jsxs)(o.wn,{level:2,children:[I==="Requested"&&S?(0,e.jsx)(o.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",onClick:function(){return O("clear_all_requests")},children:"Clear all requests"}):null,A.map(function(R,K){return(0,e.jsxs)(o.wn,{title:"Order "+(K+1),buttons:I==="All"&&S?(0,e.jsx)(o.$n,{color:"red",icon:"trash",onClick:function(){return O("delete_order",{ref:R.ref})},children:"Delete Record"}):null,children:[(0,e.jsxs)(o.Ki,{children:[R.entries.map(function(N,k){return N.entry?(0,e.jsx)(o.Ki.Item,{label:N.field,buttons:S?(0,e.jsx)(o.$n,{icon:"pen",onClick:function(){O("edit_order_value",{ref:R.ref,edit:N.field,default:N.entry})},children:"Edit"}):null,children:N.entry},k):null}),I==="All"?(0,e.jsx)(o.Ki.Item,{label:"Status",children:R.status}):null]}),S&&I==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"check",disabled:R.cost>M,onClick:function(){return O("approve_order",{ref:R.ref})},children:"Approve"}),(0,e.jsx)(o.$n,{icon:"times",onClick:function(){return O("deny_order",{ref:R.ref})},children:"Deny"})]}):null]},K)})]}):(0,e.jsx)(o.wn,{level:2,children:"No orders found."})},p=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=b.receipts,P=b.order_auth;return I.length?(0,e.jsx)(o.wn,{level:2,children:I.map(function(S,M){return(0,e.jsxs)(o.wn,{children:[(0,e.jsxs)(o.Ki,{children:[S.title.map(function(A){return(0,e.jsx)(o.Ki.Item,{label:A.field,buttons:P?(0,e.jsx)(o.$n,{icon:"pen",onClick:function(){return O("export_edit",{ref:S.ref,edit:A.field,default:A.entry})},children:"Edit"}):null,children:A.entry},A.field)}),S.error?(0,e.jsx)(o.Ki.Item,{labelColor:"red",label:"Error",children:S.error}):S.contents.map(function(A,R){return(0,e.jsxs)(o.Ki.Item,{label:A.object,buttons:P?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"pen",onClick:function(){return O("export_edit_field",{ref:S.ref,index:R+1,edit:"meow",default:A.object})},children:"Edit"}),(0,e.jsx)(o.$n,{icon:"trash",color:"red",onClick:function(){return O("export_delete_field",{ref:S.ref,index:R+1})},children:"Delete"})]}):null,children:[A.quantity,"x -> ",A.value," points"]},R)})]}),P?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{mt:1,icon:"plus",onClick:function(){return O("export_add_field",{ref:S.ref})},children:"Add Item To Record"}),(0,e.jsx)(o.$n,{icon:"trash",onClick:function(){return O("export_delete",{ref:S.ref})},children:"Delete Record"})]}):null]},M)})}):(0,e.jsx)(o.wn,{level:2,children:"No receipts found."})}},87736:function(_,j,n){"use strict";n.r(j),n.d(j,{TEGenerator:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(d){var h=(0,t.Oc)().data,m=h.totalOutput,u=h.maxTotalOutput,v=h.thermalOutput,c=h.primary,f=h.secondary;return(0,e.jsx)(o.p8,{width:550,height:310,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Total Output",children:(0,e.jsx)(r.z2,{value:m,maxValue:u,children:(0,a.d5)(m)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,a.d5)(v)})]})}),c&&f?(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Primary Circulator",values:c})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Secondary Circulator",values:f})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},x=function(d){var h=d.name,m=d.values,u=m.dir,v=m.output,c=m.flowCapacity,f=m.inletPressure,p=m.inletTemperature,C=m.outletPressure,y=m.outletTemperature;return(0,e.jsx)(r.wn,{title:h+" ("+u+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,a.d5)(v)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,s.LI)(c,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,a.QL)(f*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,s.LI)(p,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,a.QL)(C*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,s.LI)(y,2)," K"]})]})})}},1674:function(_,j,n){"use strict";n.r(j),n.d(j,{Tank:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.connected,m=d.showToggle,u=m===void 0?!0:m,v=d.maskConnected,c=d.tankPressure,f=d.releasePressure,p=d.defaultReleasePressure,C=d.minReleasePressure,y=d.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:!!u&&(0,e.jsx)(t.$n,{icon:h?"air-freshener":"lock-open",selected:h,disabled:!v,onClick:function(){return x("toggle")},children:"Mask Release Valve"}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Mask Connected",children:v?"Yes":"No"})})}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{value:c/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:d.tankPressure+" kPa"})}),(0,e.jsxs)(t.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(t.$n,{icon:"fast-backward",disabled:f===C,onClick:function(){return x("pressure",{pressure:"min"})}}),(0,e.jsx)(t.Q7,{animated:!0,value:parseFloat(f),width:"65px",unit:"kPa",minValue:C,maxValue:y,onChange:function(O,b){return x("pressure",{pressure:b})}}),(0,e.jsx)(t.$n,{icon:"fast-forward",disabled:f===y,onClick:function(){return x("pressure",{pressure:"max"})}}),(0,e.jsx)(t.$n,{icon:"undo",disabled:f===p,onClick:function(){return x("pressure",{pressure:"reset"})}})]})]})})]})})}},10351:function(_,j,n){"use strict";n.r(j),n.d(j,{TankDispenser:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.plasma,m=d.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(t.$n,{icon:h?"square":"square-o",disabled:!h,onClick:function(){return x("plasma")},children:"Dispense"}),children:h}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(t.$n,{icon:m?"square":"square-o",disabled:!m,onClick:function(){return x("oxygen")},children:"Dispense"}),children:m})]})})})})}},91765:function(_,j,n){"use strict";n.r(j),n.d(j,{TelecommsLogBrowser:function(){return o}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=v.universal_translate,f=v.network,p=v.temp,C=v.servers,y=v.selectedServer;return(0,e.jsx)(a.p8,{width:575,height:450,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[p?(0,e.jsxs)(r.IC,{danger:p.color==="bad",warning:p.color!=="bad",children:[(0,e.jsx)(r.az,{display:"inline-box",verticalAlign:"middle",children:p.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return u("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}):null,(0,e.jsx)(r.wn,{title:"Network Control",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return u("scan")},children:"Refresh"}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",disabled:C.length===0,onClick:function(){return u("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("network")},children:f})})})}),y?(0,e.jsx)(x,{network:f,server:y,universal_translate:c}):(0,e.jsx)(g,{network:f,servers:C})]})})},g=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=h.network,f=h.servers;return!f||!f.length?(0,e.jsxs)(r.wn,{title:"Detected Telecommunications Servers",children:[(0,e.jsx)(r.az,{color:"bad",children:"No servers detected."}),(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return u("scan")},children:"Scan"})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:f.map(function(p){return(0,e.jsx)(r.Ki.Item,{label:p.name+" ("+p.id+")",children:(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return u("view",{id:p.id})},children:"View"})},p.id)})})})},x=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=h.network,f=h.server,p=h.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+f.id+")",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return u("mainmenu")},children:"Return"}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Total Recorded Traffic",children:f.totalTraffic>=1024?(0,s.LI)(f.totalTraffic/1024)+" Terrabytes":f.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.wn,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.so,{wrap:"wrap",children:!f.logs||!f.logs.length?"No Logs Detected.":f.logs.map(function(C){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:C.id%2,children:(0,e.jsx)(r.wn,{title:p||C.parameters.uspeech||C.parameters.intelligible||C.input_type==="Execution Error"?C.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return u("delete",{id:C.id})}}),children:C.input_type==="Execution Error"?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ki.Item,{label:"Output",children:C.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return u("delete",{id:C.id})}})})]}):p||C.parameters.uspeech||C.parameters.intelligible?(0,e.jsx)(d,{log:C}):(0,e.jsx)(d,{error:!0})})},C.id)})})})]})},d=function(h){var m=(0,t.Oc)(),u=m.act,v=m.data,c=h.log,f=h.error,p=c&&c.parameters||{none:"none"},C=p.timecode,y=p.name,O=p.race,b=p.job,I=p.message;return f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsx)(r.Ki.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:O}),(0,e.jsx)(r.Ki.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[y," (Job: ",b,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:O}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:I})]})}},67702:function(_,j,n){"use strict";n.r(j),n.d(j,{TelecommsMachineBrowser:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.network,u=h.temp,v=h.machinelist,c=h.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[u?(0,e.jsxs)(t.IC,{danger:u.color==="bad",warning:u.color!=="bad",children:[(0,e.jsx)(t.az,{display:"inline-box",verticalAlign:"middle",children:u.text}),(0,e.jsx)(t.$n,{icon:"times-circle",float:"right",onClick:function(){return d("cleartemp")}}),(0,e.jsx)(t.az,{clear:"both"})]}):null,(0,e.jsx)(t.wn,{title:"Network Control",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return d("scan")},children:"Probe Network"}),(0,e.jsx)(t.$n,{color:"bad",icon:"exclamation-triangle",disabled:v.length===0,onClick:function(){return d("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("network")},children:m})})})}),v&&v.length?(0,e.jsx)(o,{title:c?c.name+" ("+c.id+")":"Detected Network Entities",list:c?c.links:v,showBack:c}):(0,e.jsx)(t.wn,{title:"No Devices Found",children:(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return d("scan")},children:"Probe Network"})})]})})},o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=g.list,u=g.title,v=g.showBack;return(0,e.jsxs)(t.wn,{title:u,buttons:v&&(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return d("mainmenu")},children:"Back to Main Menu"}),children:[(0,e.jsx)(t.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(t.Ki,{children:m.length?m.map(function(c){return(0,e.jsx)(t.Ki.Item,{label:c.name+" ("+c.id+")",children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return d("view",{id:c.id})},children:"View"})},c.id)}):(0,e.jsx)(t.Ki.Item,{color:"bad",children:"No links detected."})})]})}},42639:function(_,j,n){"use strict";n.r(j),n.d(j,{TelecommsMultitoolMenu:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(55789),o=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data,v=u.temp,c=u.on,f=u.id,p=u.network,C=u.autolinkers,y=u.shadowlink,O=u.options,b=u.linked,I=u.filter,P=u.multitool,S=u.multitool_buffer;return(0,e.jsx)(r.p8,{width:520,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.TemporaryNotice,{}),(0,e.jsx)(g,{}),(0,e.jsx)(x,{options:O})]})})},g=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data,v=u.temp,c=u.on,f=u.id,p=u.network,C=u.autolinkers,y=u.shadowlink,O=u.options,b=u.linked,I=u.filter,P=u.multitool,S=u.multitool_buffer;return(0,e.jsxs)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return m("toggle")},children:c?"On":"Off"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Identification String",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("id")},children:f})}),(0,e.jsx)(t.Ki.Item,{label:"Network",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("network")},children:p})}),(0,e.jsx)(t.Ki.Item,{label:"Prefabrication",children:C?"TRUE":"FALSE"}),y?(0,e.jsx)(t.Ki.Item,{label:"Shadow Link",children:"Active."}):null,P?(0,e.jsxs)(t.Ki.Item,{label:"Multitool Buffer",children:[S?(0,e.jsxs)(e.Fragment,{children:[S.name," (",S.id,")"]}):null,(0,e.jsx)(t.$n,{color:S?"green":null,icon:S?"link":"plus",onClick:S?function(){return m("link")}:function(){return m("buffer")},children:S?"Link ("+S.id+")":"Add Machine"}),S?(0,e.jsx)(t.$n,{color:"red",icon:"trash",onClick:function(){return m("flush")},children:"Flush"}):null]}):null]}),(0,e.jsx)(t.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(t.Ki,{children:b.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.ref+" "+M.name+" ("+M.id+")",buttons:(0,e.jsx)(t.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return m("unlink",{unlink:M.index})}})},M.ref)})})}),(0,e.jsxs)(t.wn,{title:"Filtering Frequencies",mt:1,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("freq")},children:"Add Frequency"}),children:[I.map(function(M){return(0,e.jsx)(t.$n.Confirm,{confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return m("delete",{delete:M.freq})},children:M.name+" GHz"},M.index)}),!I||I.length===0?(0,e.jsx)(t.az,{color:"label",children:"No filters."}):null]})]})},x=function(d){var h=(0,s.Oc)(),m=h.act,u=h.data,v=d.options,c=v.use_listening_level,f=v.use_broadcasting,p=v.use_receiving,C=v.listening_level,y=v.broadcasting,O=v.receiving,b=v.use_change_freq,I=v.change_freq,P=v.use_broadcast_range,S=v.use_receive_range,M=v.range,A=v.minRange,R=v.maxRange;return!c&&!f&&!p&&!b&&!P&&!S?(0,e.jsx)(t.wn,{title:"No Options Found"}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsxs)(t.Ki,{children:[c?(0,e.jsx)(t.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(t.$n,{icon:C?"lock-closed":"lock-open",onClick:function(){return m("change_listening")},children:C?"Yes":"No"})}):null,f?(0,e.jsx)(t.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:y,onClick:function(){return m("broadcast")},children:y?"Yes":"No"})}):null,p?(0,e.jsx)(t.Ki.Item,{label:"Receving",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:O,onClick:function(){return m("receive")},children:O?"Yes":"No"})}):null,b?(0,e.jsx)(t.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(t.$n,{icon:"wave-square",selected:!!I,onClick:function(){return m("change_freq")},children:I?"Yes ("+I+")":"No"})}):null,P||S?(0,e.jsx)(t.Ki.Item,{label:(P?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(t.Q7,{value:M,minValue:A,maxValue:R,unit:"gigameters",stepPixelSize:4,format:function(K){return K+1},onDrag:function(K,N){return m("range",{range:N})}})}):null]})})}},50624:function(_,j,n){"use strict";n.r(j),n.d(j,{Teleporter:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.locked_name,m=d.station_connected,u=d.hub_connected,v=d.calibrated,c=d.teleporter_on;return(0,e.jsx)(r.p8,{width:300,height:200,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"bullseye",onClick:function(){return x("select_target")},children:h})}),(0,e.jsx)(t.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:v,color:v?"good":"bad",onClick:function(){return x("test_fire")},children:v?"Accurate":"Test Fire"})}),(0,e.jsx)(t.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){return x("toggle_on")},children:c?"Online":"OFFLINE"})}),(0,e.jsx)(t.Ki.Item,{label:"Station",children:m?"Connected":"Not Connected"}),(0,e.jsx)(t.Ki.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},680:function(_,j,n){"use strict";n.r(j),n.d(j,{TelesciConsole:function(){return o},TelesciConsoleContent:function(){return x}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.noTelepad;return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:v&&(0,e.jsx)(g,{})||(0,e.jsx)(x,{})})})},g=function(d){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},x=function(d){var h=(0,t.Oc)(),m=h.act,u=h.data,v=u.insertedGps,c=u.rotation,f=u.currentZ,p=u.cooldown,C=u.crystalCount,y=u.maxCrystals,O=u.maxPossibleDistance,b=u.maxAllowedDistance,I=u.distance,P=u.tempMsg,S=u.sectorOptions,M=u.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!v,onClick:function(){return m("ejectGPS")},children:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:p&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait",(0,e.jsx)(r.zv,{value:p})," seconds."]})||(0,e.jsx)(r.az,{children:P})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:c,format:function(A){return A+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(A,R){return m("setrotation",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:I,format:function(A){return A+"/"+b+" m"},minValue:0,maxValue:b,step:1,stepPixelSize:4,onDrag:function(A,R){return m("setdistance",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:(0,s.Ul)(function(A){return Number(A)})(S).map(function(A){return(0,e.jsx)(r.$n,{icon:"check-circle",selected:f===A,onClick:function(){return m("setz",{setz:A})},children:A},A)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return m("send")},children:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return m("receive")},children:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return m("recal")},children:"Recalibrate"})]})]}),M&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[M.src_x,", ",M.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[M.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[M.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",C," / ",y]})]})}},17654:function(_,j,n){"use strict";n.r(j),n.d(j,{TextInputModal:function(){return m},removeAllSkiplines:function(){return h},sanitizeMultiline:function(){return d}});var e=n(20462),s=n(87239),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=n(5335),x=n(44149),d=function(v){return v.replace(/(\n|\r\n){3,}/,"\n\n")},h=function(v){return v.replace(/[\r\n]+/,"")},m=function(v){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.large_buttons,y=p.max_length,O=p.message,b=O===void 0?"":O,I=p.multiline,P=p.placeholder,S=P===void 0?"":P,M=p.timeout,A=p.title,R=(0,t.useState)(S||""),K=R[0],N=R[1],k=function(J){if(J!==K){var X=I?d(J):h(J);N(X)}},F=I||K.length>=30,W=135+(b.length>30?Math.ceil(b.length/4):0)+(F?75:0)+(b.length&&C?5:0);return(0,e.jsxs)(o.p8,{title:A,width:325,height:W,children:[M&&(0,e.jsx)(x.Loader,{value:M}),(0,e.jsx)(o.p8.Content,{onKeyDown:function(J){J.key===s._.Enter&&(!F||!J.shiftKey)&&f("submit",{entry:K}),J.key===s._.Escape&&f("cancel")},children:(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.az,{color:"label",children:b})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{input:K,onType:k},A)}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:K,message:K.length+"/"+y})})]})})})]})},u=function(v){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.max_length,y=p.multiline,O=v.input,b=v.onType,I=y||O.length>=30;return(0,e.jsx)(a.fs,{autoFocus:!0,autoSelect:!0,height:y||O.length>=30?"100%":"1.8rem",maxLength:C,onEscape:function(){return f("cancel")},onEnter:function(P){I&&P.shiftKey||(P.preventDefault(),f("submit",{entry:O}))},onChange:function(P,S){return b(S)},onInput:function(P,S){return b(S)},placeholder:"Type something...",value:O})}},66307:function(_,j,n){"use strict";n.r(j),n.d(j,{TimeClock:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=n(67707),g=function(x){var d=(0,t.Oc)(),h=d.act,m=d.data,u=m.department_hours,v=m.user_name,c=m.card,f=m.assignment,p=m.job_datum,C=m.allow_change_job,y=m.job_choices;return(0,e.jsx)(a.p8,{width:500,height:520,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"OOC",children:[(0,e.jsx)(r.IC,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.wn,{level:2,title:"Time Off Balance for "+v,children:(0,e.jsx)(r.Ki,{children:Object.keys(u).map(function(O){return(0,e.jsxs)(r.Ki.Item,{label:O,color:u[O]>6?"good":u[O]>1?"average":"bad",children:[(0,s.Mg)(u[O],1)," ",u[O]===1?"hour":"hours"]},O)})})})]}),(0,e.jsx)(r.wn,{title:"Employee Info",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Employee ID",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return h("id")},children:c||"Insert ID"})}),!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:p.selection_color,p:.8,children:(0,e.jsxs)(r.so,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{ml:1,children:(0,e.jsx)(o.RankIcon,{color:"white",rank:p.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:p.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:p.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:p.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:p.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",p.pto_department]})||p.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",p.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(C&&p&&p.timeoff_factor!==0&&f!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:p.timeoff_factor>0&&(u[p.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return h("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.az,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(y).length&&Object.keys(y).map(function(O){var b=y[O];return b.map(function(I){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return h("switch-to-onduty-rank",{"switch-to-onduty-rank":O,"switch-to-onduty-assignment":I})},children:I},I)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6972:function(_,j,n){"use strict";n.r(j),n.d(j,{TraitDescription:function(){return g},TraitSelection:function(){return o},TraitTutorial:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(x){var d=(0,s.Oc)(),h=d.act,m=d.data;return(0,e.jsx)(r.p8,{width:804,height:426,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(o,{})})})})},o=function(x){var d=(0,s.Oc)(),h=d.act,m=d.data,u=m.names,v=m.selection;return(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{shrink:!0,children:(0,e.jsx)(t.wn,{title:"Trait Selection",children:(0,e.jsx)(t.tU,{vertical:!0,children:u.map(function(c){return(0,e.jsx)(t.tU.Tab,{selected:c===v,onClick:function(){return h("select_trait",{name:c})},children:(0,e.jsx)(t.az,{inline:!0,children:c})},c)})})})}),(0,e.jsx)(t.BJ.Item,{grow:8,children:v&&(0,e.jsx)(t.wn,{title:v,children:(0,e.jsx)(g,{name:v})})})]})},g=function(x){var d=(0,s.Oc)(),h=d.act,m=d.data,u=x.name,v=m.descriptions,c=m.categories,f=m.tutorials;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("b",{children:"Name:"})," ",u,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",c[u],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",v[u],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Details & How to Use:"}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:f[u]}})]})}},67159:function(_,j,n){"use strict";n.r(j),n.d(j,{TransferValve:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.tank_one,m=d.tank_two,u=d.attached_device,v=d.valve;return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(t.$n,{icon:v?"unlock":"lock",disabled:!h||!m,onClick:function(){return x("toggle")},children:v?"Open":"Closed"})})})}),(0,e.jsx)(t.wn,{title:"Assembly",buttons:(0,e.jsx)(t.$n,{textAlign:"center",width:"150px",icon:"cog",disabled:!u,onClick:function(){return x("device")},children:"Configure Assembly"}),children:(0,e.jsx)(t.Ki,{children:u?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!u,onClick:function(){return x("remove_device")},children:u})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(t.wn,{title:"Attachment One",children:(0,e.jsx)(t.Ki,{children:h?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!h,onClick:function(){return x("tankone")},children:h})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(t.wn,{title:"Attachment Two",children:(0,e.jsx)(t.Ki,{children:m?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!m,onClick:function(){return x("tanktwo")},children:m})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},28234:function(_,j,n){"use strict";n.r(j),n.d(j,{TurbineControl:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(41242),a=n(2738),o=function(g){var x=(0,s.Oc)(),d=x.act,h=x.data,m=h.connected,u=h.compressor_broke,v=h.turbine_broke,c=h.broken,f=h.door_status,p=h.online,C=h.power,y=h.rpm,O=h.temp;return(0,e.jsx)(a.p8,{width:520,height:440,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Turbine Controller",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:c&&(0,e.jsxs)(t.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return d("reconnect")},children:"Reconnect"})]})||(0,e.jsx)(t.az,{color:p?"good":"bad",children:p&&!u&&!v?"Online":"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Compressor",children:u&&(0,e.jsx)(t.az,{color:"bad",children:"Compressor is inoperable."})||v&&(0,e.jsx)(t.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n.Checkbox,{checked:p,onClick:function(){return d(p?"power-off":"power-on")},children:"Compressor Power"})})}),(0,e.jsx)(t.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(t.$n.Checkbox,{checked:f,onClick:function(){return d("doors")},children:f?"Closed":"Open"})})]})}),(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Turbine Speed",children:[c?"--":(0,e.jsx)(t.zv,{value:y})," RPM"]}),(0,e.jsxs)(t.Ki.Item,{label:"Internal Temperature",children:[c?"--":(0,e.jsx)(t.zv,{value:O})," K"]}),(0,e.jsx)(t.Ki.Item,{label:"Generated Power",children:c?"--":(0,e.jsx)(t.zv,{format:function(b){return(0,r.d5)(b)},value:Number(C)})})]})})]})})}},61063:function(_,j,n){"use strict";n.r(j),n.d(j,{Turbolift:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,d=g.data,h=d.floors,m=d.doors_open,u=d.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:260+u*25,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:m?"door-open":"door-closed",selected:m&&!u,color:u?"red":null,onClick:function(){return x("toggle_doors")},children:m?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:"bad",onClick:function(){return x("emergency_stop")},children:"Emergency Stop"})]}),children:[!u||(0,e.jsx)(t.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(t.so,{wrap:"wrap",children:h.map(function(v){return(0,e.jsx)(t.so.Item,{basis:"100%",children:(0,e.jsxs)(t.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{basis:"22%",textAlign:"right",mr:"3px",children:v.label||"Floor #"+v.id}),(0,e.jsx)(t.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(t.$n,{icon:"circle",color:v.current?"red":v.target?"green":v.queued?"yellow":null,onClick:function(){return x("move_to_floor",{ref:v.ref})}})}),(0,e.jsx)(t.so.Item,{basis:"50%",grow:1,children:v.name})]})},v.id)})})]})})})}},28657:function(_,j,n){"use strict";n.r(j),n.d(j,{GenericUplink:function(){return v},Uplink:function(){return h}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(41242),g=n(2738);function x(){return x=Object.assign||function(f){for(var p=1;p").map(function(I){return(0,e.jsx)(a.az,{children:I},I)})})]})})||b.map(function(I){return(0,e.jsx)(a.$n,{icon:"eye",fluid:!0,onClick:function(){return C("view_exploits",{id:I.id})},children:I.name},I.id)})})},v=function(f){var p,C,y=f.currencyAmount,O=y===void 0?0:y,b=f.currencySymbol,I=b===void 0?"\u20AE":b,P=(0,r.Oc)(),S=P.act,M=P.data,A=M.compactMode,R=M.lockable,K=M.categories,N=K===void 0?[]:K,k=(0,t.useState)(""),F=k[0],W=k[1],J=(0,t.useState)((p=N[0])==null?void 0:p.name),X=J[0],Q=J[1],Z=(0,s.XZ)(F,function(H){return H.name+H.desc}),G=F.length>0&&N.flatMap(function(H){return H.items||[]}).filter(Z).filter(function(H,V){return V0?"good":"bad",children:[(0,o.up)(O)," ",I]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(a.pd,{autoFocus:!0,value:F,onInput:function(H,V){return W(V)},mx:1}),(0,e.jsx)(a.$n,{icon:A?"list":"info",onClick:function(){return S("compact_toggle")},children:A?"Compact":"Detailed"}),!!R&&(0,e.jsx)(a.$n,{icon:"lock",onClick:function(){return S("lock")},children:"Lock"})]}),children:(0,e.jsxs)(a.so,{children:[F.length===0&&(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.tU,{vertical:!0,children:N.map(function(H){var V;return(0,e.jsxs)(a.tU.Tab,{selected:H.name===X,onClick:function(){return Q(H.name)},children:[H.name," (",((V=H.items)==null?void 0:V.length)||0,")"]},H.name)})})}),(0,e.jsxs)(a.so.Item,{grow:1,basis:0,children:[G.length===0&&(0,e.jsx)(a.IC,{children:F.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(c,{compactMode:F.length>0||A,currencyAmount:O,currencySymbol:I,items:G})]})]})})},c=function(f){var p=f.compactMode,C=f.currencyAmount,y=f.currencySymbol,O=(0,r.Oc)().act,b=(0,t.useState)({}),I=b[0],P=b[1],S=I&&I.cost||0,M=f.items.map(function(A){var R=I&&I.name!==A.name,K=C-S=0)&&(k[W]=K[W]);return k}var h=[null,"average","bad"],m={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},u={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},v=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=(0,r.useState)(0),J=W[0],X=W[1],Q=[];return Q[0]=(0,e.jsx)(f,{}),Q[1]=(0,e.jsx)(A,{}),(0,e.jsx)(g.p8,{width:890,height:660,theme:"abstract",children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[F.unsaved_changes&&(0,e.jsx)(o.IC,{danger:!0,children:(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.$n,{icon:"save",onClick:function(){return k("saveprefs")},children:"Save Prefs"})}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.$n,{icon:"download",onClick:function(){k("saveprefs"),k("exportpanel")},children:"Save Prefs & Export Selected Belly"})})]})})||null,(0,e.jsx)(c,{}),(0,e.jsxs)(o.tU,{children:[(0,e.jsxs)(o.tU.Tab,{selected:J===0,onClick:function(){return X(0)},children:["Bellies",(0,e.jsx)(o.In,{name:"list",ml:.5})]}),(0,e.jsxs)(o.tU.Tab,{selected:J===1,onClick:function(){return X(1)},children:["Preferences",(0,e.jsx)(o.In,{name:"user-cog",ml:.5})]})]}),Q[J]||"Error"]})})},c=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.inside,J=W.absorbed,X=W.belly_name,Q=W.belly_mode,Z=W.desc,G=W.pred,H=W.contents,V=W.ref;return X?(0,e.jsxs)(o.wn,{title:"Inside",children:[(0,e.jsxs)(o.az,{color:"green",inline:!0,children:["You are currently ",J?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(o.az,{color:"yellow",inline:!0,children:[G,"'s"]}),"\xA0",(0,e.jsx)(o.az,{color:"red",inline:!0,children:X}),"\xA0",(0,e.jsx)(o.az,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(o.az,{color:m[Q],inline:!0,children:u[Q]}),"\xA0",(0,e.jsx)(o.az,{color:"label",children:Z}),H.length&&(0,e.jsx)(o.Nt,{title:"Belly Contents",children:(0,e.jsx)(M,{contents:H,belly:V})})||"There is nothing else around you."]}):(0,e.jsx)(o.wn,{title:"Inside",children:"You aren't inside anyone."})},f=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.our_bellies,J=F.selected;return(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{shrink:!0,children:(0,e.jsx)(o.wn,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(o.tU,{vertical:!0,children:[(0,e.jsxs)(o.tU.Tab,{onClick:function(){return k("newbelly")},children:["New",(0,e.jsx)(o.In,{name:"plus",ml:.5})]}),(0,e.jsxs)(o.tU.Tab,{onClick:function(){return k("exportpanel")},children:["Export",(0,e.jsx)(o.In,{name:"file-export",ml:.5})]}),(0,e.jsx)(o.cG,{}),W.map(function(X){return(0,e.jsx)(o.tU.Tab,{selected:X.selected,textColor:m[X.digest_mode],onClick:function(){return k("bellypick",{bellypick:X.ref})},children:(0,e.jsxs)(o.az,{inline:!0,textColor:X.selected&&m[X.digest_mode]||null,children:[X.name," (",X.contents,")"]})},X.name)})]})})}),(0,e.jsx)(o.so.Item,{grow:!0,children:J&&(0,e.jsx)(o.wn,{title:J.belly_name,children:(0,e.jsx)(p,{belly:J})})})]})},p=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.contents,W=(0,r.useState)(0),J=W[0],X=W[1],Q=[];return Q[0]=(0,e.jsx)(C,{belly:k}),Q[1]=(0,e.jsx)(y,{belly:k}),Q[2]=(0,e.jsx)(O,{belly:k}),Q[3]=(0,e.jsx)(I,{belly:k}),Q[4]=(0,e.jsx)(P,{belly:k}),Q[5]=(0,e.jsx)(S,{belly:k}),Q[6]=(0,e.jsx)(M,{outside:!0,contents:F}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsx)(o.tU.Tab,{selected:J===0,onClick:function(){return X(0)},children:"Controls"}),(0,e.jsx)(o.tU.Tab,{selected:J===1,onClick:function(){return X(1)},children:"Descriptions"}),(0,e.jsx)(o.tU.Tab,{selected:J===2,onClick:function(){return X(2)},children:"Options"}),(0,e.jsx)(o.tU.Tab,{selected:J===3,onClick:function(){return X(3)},children:"Sounds"}),(0,e.jsx)(o.tU.Tab,{selected:J===4,onClick:function(){return X(4)},children:"Visuals"}),(0,e.jsx)(o.tU.Tab,{selected:J===5,onClick:function(){return X(5)},children:"Interactions"}),(0,e.jsxs)(o.tU.Tab,{selected:J===6,onClick:function(){return X(6)},children:["Contents (",F.length,")"]})]}),Q[J]||"Error"]})},C=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.belly_name,W=k.mode,J=k.item_mode,X=k.addons;return(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return N("move_belly",{dir:-1})}}),(0,e.jsx)(o.$n,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return N("move_belly",{dir:1})}})]}),children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_name"})},children:F})}),(0,e.jsx)(o.Ki.Item,{label:"Mode",children:(0,e.jsx)(o.$n,{color:m[W],onClick:function(){return N("set_attribute",{attribute:"b_mode"})},children:W})}),(0,e.jsxs)(o.Ki.Item,{label:"Mode Addons",children:[X.length&&X.join(", ")||"None",(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(o.Ki.Item,{label:"Item Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_item_mode"})},children:J})}),(0,e.jsx)(o.Ki.Item,{basis:"100%",mt:1,children:(0,e.jsx)(o.$n.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",confirmContent:"This is irreversable!",onClick:function(){return N("set_attribute",{attribute:"b_del"})},children:"Delete Belly"})})]})},y=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.verb,W=k.release_verb,J=k.desc,X=k.absorbed_desc;return(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Description",buttons:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:J}),(0,e.jsx)(o.Ki.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:X}),(0,e.jsx)(o.Ki.Item,{label:"Vore Verb",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_verb"})},children:F})}),(0,e.jsx)(o.Ki.Item,{label:"Release Verb",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release_verb"})},children:W})}),(0,e.jsxs)(o.Ki.Item,{label:"Examine Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"em"})},children:"Examine Message (when full)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},children:"Examine Message (with absorbed victims)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Struggle Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},children:"Struggle Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},children:"Struggle Message (inside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},children:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},children:"Absorbed Struggle Message (inside)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Escape Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},children:"Escape Attempt Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},children:"Escape Attempt Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},children:"Escape Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},children:"Escape Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},children:"Escape Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},children:"Escape Item Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},children:"Escape Item Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},children:"Escape Item Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},children:"Escape Fail Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},children:"Escape Fail Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},children:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},children:"Absorbed Escape Attempt Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},children:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},children:"Absorbed Escape Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},children:"Absorbed Escape Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},children:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},children:"Absorbed Escape Fail Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Transfer Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},children:"Primary Transfer Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},children:"Primary Transfer Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},children:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},children:"Secondary Transfer Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Interaction Chance Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},children:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},children:"Interaction Chance Digest Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},children:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},children:"Interaction Chance Absorb Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Bellymode Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},children:"Digest Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},children:"Digest Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},children:"Absorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},children:"Absorb Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},children:"Unabsorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},children:"Unabsorb Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Idle Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},children:"Idle Messages (Hold)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},children:"Idle Messages (Hold Absorbed)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},children:"Idle Messages (Digest)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},children:"Idle Messages (Absorb)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},children:"Idle Messages (Unabsorb)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},children:"Idle Messages (Drain)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},children:"Idle Messages (Heal)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},children:"Idle Messages (Size Steal)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},children:"Idle Messages (Shrink)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},children:"Idle Messages (Grow)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},children:"Idle Messages (Encase In Egg)"})]}),(0,e.jsx)(o.Ki.Item,{label:"Reset Messages",children:(0,e.jsx)(o.$n,{color:"red",onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},children:"Reset Messages"})})]})},O=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.host_mobtype,J=W.is_cyborg,X=W.is_vore_simple_mob,Q=K.belly,Z=Q.can_taste,G=Q.nutrition_percent,H=Q.digest_brute,V=Q.digest_burn,q=Q.digest_oxy,ie=Q.digest_tox,te=Q.digest_clone,ue=Q.bulge_size,ce=Q.display_absorbed_examine,me=Q.shrink_grow_size,xe=Q.emote_time,ve=Q.emote_active,je=Q.contaminates,we=Q.contaminate_flavor,Je=Q.contaminate_color,ze=Q.egg_type,Le=Q.selective_preference,Be=Q.save_digest_mode,vn=Q.eating_privacy_local,gn=Q.silicon_belly_overlay_preference,un=Q.belly_mob_mult,ln=Q.belly_item_mult,He=Q.belly_overall_mult,Pe=Q.drainmode;return(0,e.jsxs)(o.so,{wrap:"wrap",children:[(0,e.jsxs)(o.so.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Can Taste",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tastes"})},icon:Z?"toggle-on":"toggle-off",selected:Z,children:Z?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Contaminates",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contaminate"})},icon:je?"toggle-on":"toggle-off",selected:je,children:je?"Yes":"No"})}),je&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Ki.Item,{label:"Contamination Flavor",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",children:we})}),(0,e.jsx)(o.Ki.Item,{label:"Contamination Color",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",children:(0,t.ZH)(Je)})})]})||null,(0,e.jsx)(o.Ki.Item,{label:"Nutritional Gain",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_nutritionpercent"})},children:G+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Required Examine Size",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_bulge_size"})},children:ue*100+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:ce?"toggle-on":"toggle-off",selected:ce,children:ce?"True":"False"})}),(0,e.jsx)(o.Ki.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_eating_privacy"})},children:(0,t.ZH)(vn)})}),(0,e.jsx)(o.Ki.Item,{label:"Save Digest Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_save_digest_mode"})},icon:Be?"toggle-on":"toggle-off",selected:Be,children:Be?"True":"False"})})]}),(0,e.jsx)(b,{belly:Q})]}),(0,e.jsx)(o.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Idle Emotes",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emoteactive"})},icon:ve?"toggle-on":"toggle-off",selected:ve,children:ve?"Active":"Inactive"})}),(0,e.jsx)(o.Ki.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emotetime"})},children:xe+" seconds"})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_brute_dmg"})},children:H})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_burn_dmg"})},children:V})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_oxy_dmg"})},children:q})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tox_dmg"})},children:ie})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_clone_dmg"})},children:te})}),(0,e.jsx)(o.Ki.Item,{label:"Drain Finishing Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_drainmode"})},children:Pe})}),(0,e.jsx)(o.Ki.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_grow_shrink"})},children:me*100+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Egg Type",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_egg_type"})},icon:"pen",children:(0,t.ZH)(ze)})}),(0,e.jsx)(o.Ki.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},children:(0,t.ZH)(Le)})})]})})]})},b=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.host_mobtype,J=W.is_cyborg,X=W.is_vore_simple_mob,Q=K.belly,Z=Q.silicon_belly_overlay_preference,G=Q.belly_mob_mult,H=Q.belly_item_mult,V=Q.belly_overall_mult;return J?(0,e.jsx)(o.wn,{title:"Cyborg Controls",width:"80%",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_silicon_belly"})},children:(0,t.ZH)(Z)})}),(0,e.jsx)(o.Ki.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_mob_mult"})},children:G})}),(0,e.jsx)(o.Ki.Item,{label:"Item Vorebelly Size Mult",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_item_mult"})},children:H})}),(0,e.jsx)(o.Ki.Item,{label:"Belly Size Multiplier",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_overall_mult"})},children:V})})]})}):X?(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{})}):(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{})})},I=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.is_wet,W=k.wet_loop,J=k.fancy,X=k.sound,Q=k.release_sound;return(0,e.jsx)(o.so,{wrap:"wrap",children:(0,e.jsx)(o.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Fleshy Belly",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetness"})},icon:F?"toggle-on":"toggle-off",selected:F,children:F?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Internal Loop",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetloop"})},icon:W?"toggle-on":"toggle-off",selected:W,children:W?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_fancy_sound"})},icon:J?"toggle-on":"toggle-off",selected:J,children:J?"Yes":"No"})}),(0,e.jsxs)(o.Ki.Item,{label:"Vore Sound",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_sound"})},children:X}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Release Sound",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release"})},children:Q}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]})]})})})},P=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.belly_fullscreen,W=k.possible_fullscreens,J=k.disable_hud,X=k.belly_fullscreen_color,Q=k.belly_fullscreen_color_secondary,Z=k.belly_fullscreen_color_trinary,G=k.mapRef,H=k.colorization_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.jsxs)(o.so,{direction:"row",children:[(0,e.jsx)(o.az,{backgroundColor:X,width:"20px",height:"20px"}),(0,e.jsx)(o.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color",val:null})},children:"Select Primary Color"}),(0,e.jsx)(o.az,{backgroundColor:Q,width:"20px",height:"20px"}),(0,e.jsx)(o.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})},children:"Select Secondary Color"}),(0,e.jsx)(o.az,{backgroundColor:Z,width:"20px",height:"20px"}),(0,e.jsx)(o.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})},children:"Select Trinary Color"}),(0,e.jsx)(o.Ki.Item,{label:"Enable Coloration",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_colorization_enabled"})},icon:H?"toggle-on":"toggle-off",selected:H,children:H?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Preview Belly",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_preview_belly"})},children:"Preview"})}),(0,e.jsx)(o.Ki.Item,{label:"Clear Preview",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_clear_preview"})},children:"Clear"})})]})}),(0,e.jsxs)(o.wn,{children:[(0,e.jsx)(o.wn,{title:"Vore FX",children:(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_disable_hud"})},icon:J?"toggle-on":"toggle-off",selected:J,children:J?"Yes":"No"})})})}),(0,e.jsxs)(o.wn,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(o.$n,{fluid:!0,selected:F===""||F===null,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(W).map(function(V,q){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(o.$n,{width:"256px",height:"256px",selected:V===F,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:V})},children:(0,e.jsx)(o.az,{className:(0,s.Ly)(["vore240x240",V]),style:{transform:"translate(0%, 4%)"}})},V)},q)})]})]})]})},S=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.escapable,W=k.interacts;return(0,e.jsx)(o.wn,{title:"Belly Interactions",buttons:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapable"})},icon:F?"toggle-on":"toggle-off",selected:F,children:F?"Interactions On":"Interactions Off"}),children:F?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Escape Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapechance"})},children:W.escapechance+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapechance_absorbed"})},children:W.escapechance_absorbed+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Escape Time",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapetime"})},children:W.escapetime/10+"s"})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Transfer Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_transferchance"})},children:W.transferchance+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Transfer Location",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_transferlocation"})},children:W.transferlocation?W.transferlocation:"Disabled"})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_transferchance_secondary"})},children:W.transferchance_secondary+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_transferlocation_secondary"})},children:W.transferlocation_secondary?W.transferlocation_secondary:"Disabled"})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Absorb Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_absorbchance"})},children:W.absorbchance+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_digestchance"})},children:W.digestchance+"%"})})]}):"These options only display while interactions are turned on."})},M=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.show_pictures,J=K.contents,X=K.belly,Q=K.outside,Z=Q===void 0?!1:Q;return(0,e.jsxs)(e.Fragment,{children:[Z&&(0,e.jsx)(o.$n,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return k("pick_from_outside",{pickall:!0})},children:"All"})||null,W&&(0,e.jsx)(o.so,{wrap:"wrap",justify:"center",align:"center",children:J.map(function(G){return(0,e.jsxs)(o.so.Item,{basis:"33%",children:[(0,e.jsx)(o.$n,{width:"64px",color:G.absorbed?"purple":h[G.stat],style:{verticalAlign:"middle",marginRight:"5px",borderRadius:"20px"},onClick:function(){return k(G.outside?"pick_from_outside":"pick_from_inside",{pick:G.ref,belly:X})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+G.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),G.name]},G.name)})})||(0,e.jsx)(o.Ki,{children:J.map(function(G){return(0,e.jsx)(o.Ki.Item,{label:G.name,children:(0,e.jsx)(o.$n,{fluid:!0,mt:-1,mb:-1,color:G.absorbed?"purple":h[G.stat],onClick:function(){return k(G.outside?"pick_from_outside":"pick_from_inside",{pick:G.ref,belly:X})},children:"Interact"})},G.ref)})})]})},A=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.prefs,J=W.digestable,X=W.devourable,Q=W.resizable,Z=W.feeding,G=W.absorbable,H=W.digest_leave_remains,V=W.allowmobvore,q=W.permit_healbelly,ie=W.show_vore_fx,te=W.can_be_drop_prey,ue=W.can_be_drop_pred,ce=W.allow_inbelly_spawning,me=W.allow_spontaneous_tf,xe=W.step_mechanics_active,ve=W.pickup_mechanics_active,je=W.noisy,we=W.drop_vore,Je=W.stumble_vore,ze=W.slip_vore,Le=W.throw_vore,Be=W.food_vore,vn=W.digest_pain,gn=W.nutrition_message_visible,un=W.weight_message_visible,ln=W.eating_privacy_global,He=F.show_pictures,Pe={digestion:{action:"toggle_digest",test:J,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:G,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:X,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:V,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:Z,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:q,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:te,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:ue,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:we,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:ze,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:Je,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:Le,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:Be,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},toggle_digest_pain:{action:"toggle_digest_pain",test:vn,tooltip:{main:"Allows for pain messages to show when being digested. Can be toggled off to disable pain messages.",enable:"Click here to allow for digestion pain.",disable:"Click here to disable digestion pain."},content:{enabled:"Digestion Pain Enabled",disabled:"Digestion Pain Disabled"}},inbelly_spawning:{action:"toggle_allow_inbelly_spawning",test:ce,tooltip:{main:"This toggle is ghosts being able to spawn in one of your bellies. You will have to confirm again when they attempt to.",enable:"Click here to allow prey to spawn in you.",disable:"Click here to prevent prey from spawning in you."},content:{enabled:"Inbelly Spawning Allowed",disabled:"Inbelly Spawning Forbidden"}},noisy:{action:"toggle_noisy",test:je,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},resize:{action:"toggle_resize",test:Q,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:xe,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:ie,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:H,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:ve,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:me,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:gn,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:un,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:ln,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}}};return(0,e.jsxs)(o.wn,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(o.$n,{icon:"eye",selected:He,onClick:function(){return k("show_pictures")},children:["Contents Preference: ",He?"Show Pictures":"Show List"]}),children:[(0,e.jsxs)(o.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.digestion})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Pe.absorbable})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.devour})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.mobvore})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Pe.feed})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.healbelly,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.dropnom_prey})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Pe.dropnom_pred})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.toggle_drop_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.toggle_slip_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Pe.toggle_stumble_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.toggle_throw_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.toggle_food_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Pe.toggle_digest_pain})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.inbelly_spawning})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.noisy})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Pe.resize})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.steppref,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.vore_fx,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Pe.remains,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Pe.spontaneous_tf})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,onClick:function(){return k("switch_selective_mode_pref")},children:"Selective Mode Preference"})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:3,children:(0,e.jsx)(R,{spec:Pe.eating_privacy_global})})]}),(0,e.jsx)(o.wn,{title:"Aesthetic Preferences",children:(0,e.jsxs)(o.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,icon:"grin-tongue",onClick:function(){return k("setflavor")},children:"Set Taste"})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(o.$n,{fluid:!0,icon:"wind",onClick:function(){return k("setsmell")},children:"Set Smell"})}),(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"en"})},icon:"flask",fluid:!0,children:"Set Nutrition Examine Message"})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},icon:"weight-hanging",fluid:!0,children:"Set Weight Examine Message"})}),(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(R,{spec:Pe.examine_nutrition})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(R,{spec:Pe.examine_weight})})]})}),(0,e.jsx)(o.cG,{}),(0,e.jsx)(o.wn,{children:(0,e.jsxs)(o.so,{spacing:1,children:[(0,e.jsx)(o.so.Item,{basis:"49%",children:(0,e.jsx)(o.$n,{fluid:!0,icon:"save",onClick:function(){return k("saveprefs")},children:"Save Prefs"})}),(0,e.jsx)(o.so.Item,{basis:"49%",grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,icon:"undo",onClick:function(){return k("reloadprefs")},children:"Reload Prefs"})})]})})]})},R=function(K){var N=(0,a.Oc)().act,k=K.spec,F=d(K,["spec"]),W=k.action,J=k.test,X=k.tooltip,Q=k.content;return(0,e.jsx)(o.$n,x({onClick:function(){return N(W)},icon:J?"toggle-on":"toggle-off",selected:J,fluid:!0,tooltip:X.main+" "+(J?X.disable:X.enable)},F,{children:J?Q.enabled:Q.disabled}))}},84580:function(_,j,n){"use strict";n.r(j),n.d(j,{VorePanelExport:function(){return u}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a={Hold:'Hold',Digest:'Digest',Absorb:'Absorb',Drain:'Drain',Selective:'Selective',Unabsorb:'Unabsorb',Heal:'Heal',Shrink:'Shrink',Grow:'Grow',"Size Steal":'Size Steal',"Encase In Egg":'Encase In Egg'},o={Hold:'Item: Hold',"Digest (Food Only)":'Item: Digest (Food Only)',Digest:'Item: Digest'},g={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},x=function(c){var f=[];return c==null||c.forEach(function(p){f.push(''+p+"")}),f.length===0&&f.push("No Addons Set"),f},d=function(c,f){var p=c.name,C=c.desc,y=c.absorbed_desc,O=c.vore_verb,b=c.release_verb,I=c.mode,P=c.addons,S=c.item_mode,M=c.digest_brute,A=c.digest_burn,R=c.digest_oxy,K=c.digest_tox,N=c.digest_clone,k=c.can_taste,F=c.contaminates,W=c.contamination_flavor,J=c.contamination_color,X=c.nutrition_percent,Q=c.bulge_size,Z=c.display_absorbed_examine,G=c.save_digest_mode,H=c.emote_active,V=c.emote_time,q=c.shrink_grow_size,ie=c.egg_type,te=c.selective_preference,ue=c.struggle_messages_outside,ce=c.struggle_messages_inside,me=c.absorbed_struggle_messages_outside,xe=c.absorbed_struggle_messages_inside,ve=c.escape_attempt_messages_owner,je=c.escape_attempt_messages_prey,we=c.escape_messages_owner,Je=c.escape_messages_prey,ze=c.escape_messages_outside,Le=c.escape_item_messages_owner,Be=c.escape_item_messages_prey,vn=c.escape_item_messages_outside,gn=c.escape_fail_messages_owner,un=c.escape_fail_messages_prey,ln=c.escape_attempt_absorbed_messages_owner,He=c.escape_attempt_absorbed_messages_prey,Pe=c.escape_absorbed_messages_owner,Me=c.escape_absorbed_messages_prey,ke=c.escape_absorbed_messages_outside,Se=c.escape_fail_absorbed_messages_owner,We=c.escape_fail_absorbed_messages_prey,$e=c.primary_transfer_messages_owner,Xe=c.primary_transfer_messages_prey,Cn=c.secondary_transfer_messages_owner,Dn=c.secondary_transfer_messages_prey,On=c.digest_chance_messages_owner,Tn=c.digest_chance_messages_prey,dn=c.absorb_chance_messages_owner,Ve=c.absorb_chance_messages_prey,Ce=c.digest_messages_owner,Qe=c.digest_messages_prey,pn=c.absorb_messages_owner,_n=c.absorb_messages_prey,$n=c.unabsorb_messages_owner,rt=c.unabsorb_messages_prey,Wn=c.examine_messages,ht=c.examine_messages_absorbed,Lt=c.emotes_digest,Yt=c.emotes_hold,Qt=c.emotes_holdabsorbed,gi=c.emotes_absorb,ji=c.emotes_heal,yi=c.emotes_drain,Vr=c.emotes_steal,Xr=c.emotes_egg,Gr=c.emotes_shrink,Zi=c.emotes_grow,Mt=c.emotes_unabsorb,Ci=c.is_wet,Or=c.wet_loop,pt=c.fancy_vore,gt=c.vore_sound,cr=c.release_sound,br=c.disable_hud,Ei=c.escapable,Za=c.escapechance,Ja=c.escapechance_absorbed,qa=c.escapetime,kt=c.transferchance,Ji=c.transferlocation,qi=c.transferchance_secondary,eo=c.transferlocation_secondary,ea=c.absorbchance,na=c.digestchance,ae="";return ae+='

',ae+='

",ae+='
',ae+='
',ae+="Addons:
"+x(P)+"

",ae+="== Descriptions ==
",ae+="Vore Verb:
"+O+"

",ae+="Release Verb:
"+b+"

",ae+='Description:
"'+C+'"

',ae+='Absorbed Description:
"'+y+'"

',ae+="
",ae+="== Messages ==
",ae+='
',ae+='
",ae+='
',ae+='
',ae+='
',ve==null||ve.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',je==null||je.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',we==null||we.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Je==null||Je.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',ze==null||ze.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Le==null||Le.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Be==null||Be.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',vn==null||vn.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',gn==null||gn.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',un==null||un.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',ln==null||ln.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',He==null||He.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Pe==null||Pe.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Me==null||Me.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',ke==null||ke.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Se==null||Se.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',We==null||We.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',$e==null||$e.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Xe==null||Xe.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Cn==null||Cn.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Dn==null||Dn.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',On==null||On.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Tn==null||Tn.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',dn==null||dn.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Ve==null||Ve.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',ue==null||ue.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',ce==null||ce.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',me==null||me.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',xe==null||xe.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Ce==null||Ce.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Qe==null||Qe.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',pn==null||pn.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',_n==null||_n.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',$n==null||$n.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',rt==null||rt.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',Wn==null||Wn.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+='
',ht==null||ht.forEach(function(Ae){ae+=Ae+"
"}),ae+="
",ae+="
",ae+="
",ae+="
",ae+="
= Idle Messages =

",ae+="

Idle Messages (Hold):

",Yt==null||Yt.forEach(function(Ae){ae+=Ae+"
"}),ae+="


",ae+="
Idle Messages (Hold Absorbed):

",Qt==null||Qt.forEach(function(Ae){ae+=Ae+"
"}),ae+="


",ae+="
Idle Messages (Digest):

",Lt==null||Lt.forEach(function(Ae){ae+=Ae+"
"}),ae+="


",ae+="
Idle Messages (Absorb):

",gi==null||gi.forEach(function(Ae){ae+=Ae+"
"}),ae+="


",ae+="
Idle Messages (Unabsorb):

",Mt==null||Mt.forEach(function(Ae){ae+=Ae+"
"}),ae+="


",ae+="
Idle Messages (Drain):

",yi==null||yi.forEach(function(Ae){ae+=Ae+"
"}),ae+="


",ae+="
Idle Messages (Heal):

",ji==null||ji.forEach(function(Ae){ae+=Ae+"
"}),ae+="


",ae+="
Idle Messages (Size Steal):

",Vr==null||Vr.forEach(function(Ae){ae+=Ae+"
"}),ae+="


",ae+="
Idle Messages (Shrink):

",Gr==null||Gr.forEach(function(Ae){ae+=Ae+"
"}),ae+="


",ae+="
Idle Messages (Grow):

",Zi==null||Zi.forEach(function(Ae){ae+=Ae+"
"}),ae+="


",ae+="
Idle Messages (Encase In Egg):

",Xr==null||Xr.forEach(function(Ae){ae+=Ae+"
"}),ae+="


",ae+="


",ae+="
",ae+='
',ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+='
    ',ae+='
  • Can Taste: '+(k?'Yes':'No')+"
  • ",ae+='
  • Contaminates: '+(F?'Yes':'No')+"
  • ",ae+='
  • Contamination Flavor: '+W+"
  • ",ae+='
  • Contamination Color: '+J+"
  • ",ae+='
  • Nutritional Gain: '+X+"%
  • ",ae+='
  • Required Examine Size: '+Q*100+"%
  • ",ae+='
  • Display Absorbed Examines: '+(Z?'True':'False')+"
  • ",ae+='
  • Save Digest Mode: '+(G?'True':'False')+"
  • ",ae+='
  • Idle Emotes: '+(H?'Active':'Inactive')+"
  • ",ae+='
  • Idle Emote Delay: '+V+" seconds
  • ",ae+='
  • Shrink/Grow Size: '+q*100+"%
  • ",ae+='
  • Egg Type: '+ie+"
  • ",ae+='
  • Selective Mode Preference: '+te+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+='
    ',ae+='
  • Fleshy Belly: '+(Ci?'Yes':'No')+"
  • ",ae+='
  • Internal Loop: '+(Or?'Yes':'No')+"
  • ",ae+='
  • Use Fancy Sounds: '+(pt?'Yes':'No')+"
  • ",ae+='
  • Vore Sound: '+gt+"
  • ",ae+='
  • Release Sound: '+cr+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
",ae+='
',ae+="Vore FX",ae+='
    ',ae+='
  • Disable Prey HUD: '+(br?'Yes':'No')+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+="Belly Interactions ("+(Ei?'Enabled':'Disabled')+")",ae+='
    ',ae+='
  • Escape Chance: '+Za+"%
  • ",ae+='
  • Escape Chance: '+Ja+"%
  • ",ae+='
  • Escape Time: '+qa/10+"s
  • ",ae+='
  • Transfer Chance: '+kt+"%
  • ",ae+='
  • Transfer Location: '+Ji+"
  • ",ae+='
  • Secondary Transfer Chance: '+qi+"%
  • ",ae+='
  • Secondary Transfer Location: '+eo+"
  • ",ae+='
  • Absorb Chance: '+ea+"%
  • ",ae+='
  • Digest Chance: '+na+"%
  • ",ae+="
",ae+="
",ae+="
",ae},h=function(){var c=new Date,f=String(c.getHours());f.length<2&&(f="0"+f);var p=String(c.getMinutes());p.length<2&&(p="0"+p);var C=String(c.getDate());C.length<2&&(C="0"+C);var y=String(c.getMonth()+1);y.length<2&&(y="0"+y);var O=String(c.getFullYear());return" "+O+"-"+y+"-"+C+" ("+f+" "+p+")"},m=function(c){var f=(0,s.Oc)(),p=f.act,C=f.data,y=C.db_version,O=C.db_repo,b=C.mob_name,I=C.bellies,P=h(),S=b+P+c,M;if(c===".html"){var A="";M=new Blob([''+I.length+" Exported Bellies (DB_VER: "+O+"-"+y+')'+A+'

Bellies of '+b+'

Generated on: '+P+'

'],{type:"text/html;charset=utf8"}),I.forEach(function(R,K){M=new Blob([M,d(R,K)],{type:"text/html;charset=utf8"})}),M=new Blob([M,"
",'