From 18e64c55504b33613918596e6fa8513ff87f090c Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Sun, 21 Jul 2024 21:13:31 +0200 Subject: [PATCH] small mistake in the UIs, noticed due to conflict (#16122) --- .../tgui/interfaces/ShuttleControl/ShuttleControlConsoleWeb.tsx | 2 +- tgui/public/tgui.bundle.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tgui/packages/tgui/interfaces/ShuttleControl/ShuttleControlConsoleWeb.tsx b/tgui/packages/tgui/interfaces/ShuttleControl/ShuttleControlConsoleWeb.tsx index d3c6d9130c7..caa14a307c4 100644 --- a/tgui/packages/tgui/interfaces/ShuttleControl/ShuttleControlConsoleWeb.tsx +++ b/tgui/packages/tgui/interfaces/ShuttleControl/ShuttleControlConsoleWeb.tsx @@ -218,7 +218,7 @@ export const ShuttleControlConsoleWeb = (props) => { {Object.keys(sensors!).map((key, index) => { const sensor = sensors![key]; - if (sensor.reading !== -1) { + if (!sensor.reading) { return ( Unable to get sensor air reading. diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 543038a7878..071605f9cae 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -292,7 +292,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(M,_){(_==null||_>M.length)&&(_=M.length);for(var D=0,b=new Array(_);D<_;D++)b[D]=M[D];return b}function s(M,_){if(M){if(typeof M=="string")return r(M,_);var D=Object.prototype.toString.call(M).slice(8,-1);if(D==="Object"&&M.constructor&&(D=M.constructor.name),D==="Map"||D==="Set")return Array.from(D);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return r(M,_)}}function p(M,_){var D=typeof Symbol!="undefined"&&M[Symbol.iterator]||M["@@iterator"];if(D)return(D=D.call(M)).next.bind(D);if(Array.isArray(M)||(D=s(M))||_&&M&&typeof M.length=="number"){D&&(M=D);var b=0;return function(){return b>=M.length?{done:!0}:{done:!1,value:M[b++]}}}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=(0,t.h)("hotkeys"),d={},o=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],c={},a=[],l=function(M){if(M===16)return"Shift";if(M===17)return"Ctrl";if(M===18)return"Alt";if(M===33)return"Northeast";if(M===34)return"Southeast";if(M===35)return"Southwest";if(M===36)return"Northwest";if(M===37)return"West";if(M===38)return"North";if(M===39)return"East";if(M===40)return"South";if(M===45)return"Insert";if(M===46)return"Delete";if(M>=48&&M<=57||M>=65&&M<=90)return String.fromCharCode(M);if(M>=96&&M<=105)return"Numpad"+(M-96);if(M>=112&&M<=123)return"F"+(M-111);if(M===188)return",";if(M===189)return"-";if(M===190)return"."},f=function(M){var _=String(M);if(_==="Ctrl+F5"||_==="Ctrl+R"){location.reload();return}if(_!=="Ctrl+F"&&!(M.event.defaultPrevented||M.isModifierKey()||o.includes(M.code))){var D=l(M.code);if(D){var b=d[D];if(b)return x.debug("macro",b),Byond.command(b);if(M.isDown()&&!c[D]){c[D]=!0;var T='TguiKeyDown "'+D+'"';return x.debug(T),Byond.command(T)}if(M.isUp()&&c[D]){c[D]=!1;var R='TguiKeyUp "'+D+'"';return x.debug(R),Byond.command(R)}}}},h=function(M){o.push(M)},v=function(M){var _=o.indexOf(M);_>=0&&o.splice(_,1)},j=function(){for(var M=p(Object.keys(c)),_;!(_=M()).done;){var D=_.value;c[D]&&(c[D]=!1,x.log('releasing key "'+D+'"'),Byond.command('TguiKeyUp "'+D+'"'))}},E=function(){Byond.winget("default.*").then(function(M){for(var _={},D=p(Object.keys(M)),b;!(b=D()).done;){var T=b.value,R=T.split("."),L=R[1],W=R[2];L&&W&&(_[L]||(_[L]={}),_[L][W]=M[T])}for(var $=/\\"/g,F=function(q){return q.substring(1,q.length-1).replace($,'"')},k=p(Object.keys(_)),X;!(X=k()).done;){var G=X.value,ne=_[G],ee=F(ne.name);d[ee]=F(ne.command)}x.debug("loaded macros",d)}),i.Nh.on("window-blur",function(){j()}),i.Nh.on("key",function(M){for(var _=p(a),D;!(D=_()).done;){var b=D.value;b(M)}f(M)})},y=function(M){a.push(M);var _=!1;return function(){_||(_=!0,a.splice(a.indexOf(M),1))}}},20544:function(O,m,n){"use strict";n.r(m),n.d(m,{AICard:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.name,a=o.has_ai,l=o.integrity,f=o.backup_capacitor,h=o.flushing,v=o.has_laws,j=o.laws,E=o.wireless,y=o.radio;if(a){var M;l>=75?M="green":l>=25?M="yellow":M="red";var _;return f>=75&&(_="green"),f>=25?_="yellow":_="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,inline:!0,children:(0,e.jsx)("h3",{children:c})}),(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:M,value:l/100})}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.z2,{color:_,value:f/100})})]})}),(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h2",{children:h===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(t.wn,{title:"Laws",children:!!v&&(0,e.jsx)(t.az,{children:j.map(function(D,b){return(0,e.jsx)(t.az,{inline:!0,children:D},b)})})||(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:E?"check":"times",color:E?"green":"red",onClick:function(){return d("wireless")},children:E?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(t.$n,{icon:y?"check":"times",color:y?"green":"red",onClick:function(){return d("radio")},children:y?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"AI Power",children:(0,e.jsx)(t.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:h||l===0,confirmColor:"red",onClick:function(){return d("wipe")},children:"Shutdown"})})]})})]})})}else 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."})})})})})}},43252:function(O,m,n){"use strict";n.r(m),n.d(m,{APC:function(){return x}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(72859),p=n(98071),x=function(f){var h=(0,i.Oc)(),v=h.act,j=h.data,E=j.gridCheck,y=j.failTime,M=(0,e.jsx)(c,{});return E?M=(0,e.jsx)(a,{}):y&&(M=(0,e.jsx)(l,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:M})})},d={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"}},o={1:{icon:"terminal",content:"Override Programming",action:"hack"}},c=function(f){var h=(0,i.Oc)(),v=h.act,j=h.data,E=j.locked,y=j.siliconUser,M=j.externalPower,_=j.chargingStatus,D=j.powerChannels,b=j.powerCellStatus,T=j.emagged,R=j.isOperating,L=j.chargeMode,W=j.totalCharging,$=j.totalLoad,F=j.coverLocked,k=j.nightshiftSetting,X=j.emergencyLights,G=E&&!y,ne=d[M]||d[0],ee=d[_]||d[0],q=D||[],Y=b/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p.InterfaceLockNoticeBox,{deny:T,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:ne.color,buttons:(0,e.jsx)(t.$n,{icon:R?"power-off":"times",selected:R&&!G,color:R?"":"bad",disabled:G,onClick:function(){return v("breaker")},children:R?"On":"Off"}),children:["[ ",ne.externalPowerText," ]"]}),(0,e.jsx)(t.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(t.z2,{color:"good",value:Y})}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",color:ee.color,buttons:(0,e.jsx)(t.$n,{icon:L?"sync":"times",selected:L,disabled:G,onClick:function(){return v("charge")},children:L?"Auto":"Off"}),children:["[ ",ee.chargingText," ]"]})]})}),(0,e.jsx)(t.wn,{title:"Power Channels",children:(0,e.jsxs)(t.Ki,{children:[q.map(function(H){var w=H.topicParams;return(0,e.jsxs)(t.Ki.Item,{label:H.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,mx:2,color:H.status>=2?"good":"bad",children:H.status>=2?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"sync",selected:!G&&(H.status===1||H.status===3),disabled:G,onClick:function(){return v("channel",w.auto)},children:"Auto"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:!G&&H.status===2,disabled:G,onClick:function(){return v("channel",w.on)},children:"On"}),(0,e.jsx)(t.$n,{icon:"times",selected:!G&&H.status===0,disabled:G,onClick:function(){return v("channel",w.off)},children:"Off"})]}),children:[H.powerLoad," W"]},H.title)}),(0,e.jsx)(t.Ki.Item,{label:"Total Load",children:W?(0,e.jsxs)("b",{children:[$," W (+ ",W," W charging)"]}):(0,e.jsxs)("b",{children:[$," W"]})})]})}),(0,e.jsx)(t.wn,{title:"Misc",buttons:!!j.siliconUser&&(0,e.jsx)(t.$n,{icon:"lightbulb-o",onClick:function(){return v("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:F?"lock":"unlock",selected:F,disabled:G,onClick:function(){return v("cover")},children:F?"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:k===2,onClick:function(){return v("nightshift",{nightshift:2})},children:"Disabled"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:k===1,onClick:function(){return v("nightshift",{nightshift:1})},children:"Automatic"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:k===3,onClick:function(){return v("nightshift",{nightshift:3})},children:"Enabled"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:X,onClick:function(){return v("emergency_lighting")},children:X?"Enabled":"Disabled"})})]})})]})},a=function(f){return(0,e.jsxs)(s.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..."})]})},l=function(f){var h=(0,i.Oc)(),v=h.data,j=h.act,E=v.locked,y=v.siliconUser,M=v.failTime,_=(0,e.jsx)(t.$n,{icon:"repeat",color:"good",onClick:function(){return j("reboot")},children:"Restart Now"});return E&&!y&&(_=(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 ",M," seconds..."]}),(0,e.jsx)(t.az,{mt:4,children:_})]})}},77056:function(O,m,n){"use strict";n.r(m),n.d(m,{AccountsTerminal:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,h=f.id_inserted,v=f.id_card,j=f.access_level,E=f.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:E}),(0,e.jsx)(t.Ki.Item,{label:"ID",children:(0,e.jsx)(t.$n,{icon:h?"eject":"sign-in-alt",fluid:!0,onClick:function(){return l("insert_card")},children:v})})]})}),j>0&&(0,e.jsx)(p,{})]})})},p=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,h=f.creating_new_account,v=f.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:!h&&!v,icon:"home",onClick:function(){return l("view_accounts_list")},children:"Home"}),(0,e.jsx)(t.tU.Tab,{selected:!!h,icon:"cog",onClick:function(){return l("create_account")},children:"New Account"}),h?"":(0,e.jsx)(t.tU.Tab,{icon:"print",onClick:function(){return l("print")},children:"Print"})]}),h&&(0,e.jsx)(x,{})||v&&(0,e.jsx)(d,{})||(0,e.jsx)(o,{})]})},x=function(c){var a=(0,i.Oc)().act,l=(0,i.QY)("holder",""),f=l[0],h=l[1],v=(0,i.QY)("money",""),j=v[0],E=v[1];return(0,e.jsxs)(t.wn,{title:"Create Account",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(t.pd,{value:f,fluid:!0,onInput:function(y,M){return h(M)}})}),(0,e.jsx)(t.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(t.pd,{value:j,fluid:!0,onInput:function(y,M){return E(M)}})})]}),(0,e.jsx)(t.$n,{disabled:!f||!j,mt:1,fluid:!0,icon:"plus",onClick:function(){return a("finalise_create_account",{holder_name:f,starting_funds:j})},children:"Create"})]})},d=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,h=f.access_level,v=f.station_account_number,j=f.account_number,E=f.owner_name,y=f.money,M=f.suspended,_=f.transactions;return(0,e.jsxs)(t.wn,{title:"Account Details",buttons:(0,e.jsx)(t.$n,{icon:"ban",selected:M,onClick:function(){return l("toggle_suspension")},children:"Suspend"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Number",children:["#",j]}),(0,e.jsx)(t.Ki.Item,{label:"Holder",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Balance",children:[y,"\u20AE"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:M?"bad":"good",children:M?"SUSPENDED":"Active"})]}),(0,e.jsx)(t.wn,{title:"CentCom Administrator",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:j===v,onClick:function(){return l("revoke_payroll")},children:"Revoke"})})})}),h>=2&&(0,e.jsxs)(t.wn,{title:"Silent Funds Transfer",children:[(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return l("add_funds")},children:"Add Funds"}),(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return l("remove_funds")},children:"Remove Funds"})]}),(0,e.jsx)(t.wn,{title:"Transactions",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"})]}),_.map(function(D,b){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{children:[D.date," ",D.time]}),(0,e.jsx)(t.XI.Cell,{children:D.target_name}),(0,e.jsx)(t.XI.Cell,{children:D.purpose}),(0,e.jsxs)(t.XI.Cell,{children:[D.amount,"\u20AE"]}),(0,e.jsx)(t.XI.Cell,{children:D.source_terminal})]},b)})]})})]})},o=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,h=f.accounts;return(0,e.jsx)(t.wn,{title:"NanoTrasen Accounts",children:h.length&&(0,e.jsx)(t.Ki,{children:h.map(function(v){return(0,e.jsx)(t.Ki.Item,{label:v.owner_name+v.suspended,color:v.suspended?"bad":void 0,children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return l("view_account_detail",{account_index:v.account_index})},children:"#"+v.account_number})},v.account_index)})})||(0,e.jsx)(t.az,{color:"bad",children:"There are no accounts available."})})}},16980:function(O,m,n){"use strict";n.r(m),n.d(m,{AdminShuttleController:function(){return p},ShuttleList:function(){return x}});var e=n(62161),i=n(7402),t=n(7081),r=n(16754),s=n(42103),p=function(){return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.shuttles,h=l.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,i.Ul)(function(v){return v.name})(f).map(function(v){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 a("adminobserve",{ref:v.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return a("classicmove",{ref:v.ref})},children:"Fly"})}),(0,e.jsx)(r.XI.Cell,{children:v.name}),(0,e.jsx)(r.XI.Cell,{children:v.current_location}),(0,e.jsx)(r.XI.Cell,{children:d(v.status)})]},v.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,i.Ul)(function(v){var j;return((j=v.name)==null?void 0:j.toLowerCase())||v.name||v.ref})(h).map(function(v){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 a("adminobserve",{ref:v.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return a("overmap_control",{ref:v.ref})},children:"Control"})}),(0,e.jsx)(r.XI.Cell,{children:v.name})]},v.ref)})})})]})},d=function(o){switch(o){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},15301:function(O,m,n){"use strict";n.r(m),n.d(m,{AdminTicketPanel:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(42103),p={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.id,f=a.title,h=a.name,v=a.state,j=a.opened_at,E=a.closed_at,y=a.opened_at_date,M=a.closed_at_date,_=a.actions,D=a.log;return(0,e.jsx)(s.p8,{width:900,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+l,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("retitle")},children:"Rename Ticket"}),(0,e.jsx)(r.$n,{onClick:function(){return c("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Admin Help Ticket",children:["#",l,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:p[v]}),p[v]===p.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:y+" ("+(0,i.Mg)((0,i.LI)(j/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[M+" ("+(0,i.Mg)((0,i.LI)(E/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return c("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(D).map(function(b,T){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:D[b]}},T)})})]})})})})}},14415:function(O,m,n){"use strict";n.r(m),n.d(m,{AgentCard:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.entries,a=o.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:c.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{onClick:function(){return d(l.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsx)(t.XI.Cell,{children:l.value})]},l.name)})})}),(0,e.jsx)(t.wn,{title:"Electronic Warfare",children:(0,e.jsx)(t.$n.Checkbox,{checked:a,onClick:function(){return d("electronic_warfare")},children:a?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled."})})]})})}},40645:function(O,m,n){"use strict";n.r(m),n.d(m,{AiAirlock:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.power,l=c.wires,f=c.shock,h=c.shock_timeleft,v=c.id_scanner,j=c.lights,E=c.locked,y=c.safe,M=c.speed,_=c.opened,D=c.welded,b=s[a.main]||s[0],T=s[a.backup]||s[0],R=s[f]||s[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:b.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!a.main,onClick:function(){return o("disrupt-main")},children:"Disrupt"}),children:[a.main?"Online":"Offline"," ",(!l.main_1||!l.main_2)&&"[Wires have been cut!]"||a.main_timeleft>0&&"["+a.main_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Backup",color:T.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!a.backup,onClick:function(){return o("disrupt-backup")},children:"Disrupt"}),children:[a.backup?"Online":"Offline"," ",(!l.backup_1||!l.backup_2)&&"[Wires have been cut!]"||a.backup_timeleft>0&&"["+a.backup_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Electrify",color:R.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"wrench",disabled:!(l.shock&&f===0),onClick:function(){return o("shock-restore")},children:"Restore"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!l.shock,onClick:function(){return o("shock-temp")},children:"Temporary"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!l.shock,onClick:function(){return o("shock-perm")},children:"Permanent"})]}),children:[f===2?"Safe":"Electrified"," ",!l.shock&&"[Wires have been cut!]"||h>0&&"["+h+"s]"||h===-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:v?"power-off":"times",selected:v,disabled:!l.id_scanner,onClick:function(){return o("idscan-toggle")},children:v?"Enabled":"Disabled"}),children:!l.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:E?"lock":"unlock",selected:E,disabled:!l.bolts,onClick:function(){return o("bolt-toggle")},children:E?"Lowered":"Raised"}),children:!l.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:j?"power-off":"times",selected:j,disabled:!l.lights,onClick:function(){return o("light-toggle")},children:j?"Enabled":"Disabled"}),children:!l.lights&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:y?"power-off":"times",selected:y,disabled:!l.safe,onClick:function(){return o("safe-toggle")},children:y?"Enabled":"Disabled"}),children:!l.safe&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:M?"power-off":"times",selected:M,disabled:!l.timing,onClick:function(){return o("speed-toggle")},children:M?"Enabled":"Disabled"}),children:!l.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:_?"sign-out-alt":"sign-in-alt",selected:_,disabled:E||D,onClick:function(){return o("open-close")},children:_?"Open":"Closed"}),children:!!(E||D)&&(0,e.jsxs)("span",{children:["[Door is ",E?"bolted":"",E&&D?" and ":"",D?"welded":"","!]"]})})]})})]})})}},89570:function(O,m,n){"use strict";n.r(m),n.d(m,{AiRestorer:function(){return s},AiRestorerContent:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(p,{})})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.AI_present,l=c.error,f=c.name,h=c.laws,v=c.isDead,j=c.restoring,E=c.health,y=c.ejectable;return(0,e.jsxs)(e.Fragment,{children:[l&&(0,e.jsx)(t.IC,{textAlign:"center",children:l}),!!y&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!a,onClick:function(){return o("PRG_eject")},children:a?f:"----------"}),!!a&&(0,e.jsxs)(t.wn,{title:y?"System Status":f,buttons:(0,e.jsx)(t.az,{inline:!0,bold:!0,color:v?"bad":"good",children:v?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{value:E,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!j&&(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:j,mt:1,onClick:function(){return o("PRG_beginReconstruction")},children:"Begin Reconstruction"}),(0,e.jsx)(t.wn,{title:"Laws",children:h.map(function(M){return(0,e.jsx)(t.az,{className:"candystripe",children:M},M)})})]})]})}},69622:function(O,m,n){"use strict";n.r(m),n.d(m,{AiSupermatter:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(72859),p=function(o){var c=(0,i.Oc)().data,a=c.detonating,l=(0,e.jsx)(d,{});return a&&(l=(0,e.jsx)(x,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:l})})},x=function(o){return(0,e.jsx)(s.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"})]})})},d=function(o){var c=(0,i.Oc)().data,a=c.integrity_percentage,l=c.ambient_temp,f=c.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:a,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:l,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[l," K"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Environment Pressure",children:[f," kPa"]})]})})}},15991:function(O,m,n){"use strict";n.r(m),n.d(m,{AirAlarm:function(){return c}});var e=n(62161),i=n(4089),t=n(28277),r=n(7081),s=n(16754),p=n(79500),x=n(42103),d=n(26634),o=n(98071),c=function(_){var D=function(ee){X(ee)},b=(0,r.Oc)(),T=b.act,R=b.data,L=R.locked,W=R.siliconUser,$=R.remoteUser,F=(0,t.useState)(""),k=F[0],X=F[1],G=L&&!W&&!$;return(0,e.jsx)(x.p8,{width:440,height:650,children:(0,e.jsxs)(x.p8.Content,{scrollable:!0,children:[(0,e.jsx)(o.InterfaceLockNoticeBox,{}),(0,e.jsx)(a,{}),(0,e.jsx)(l,{}),!G&&(0,e.jsx)(h,{screen:k,onScreen:D})]})})},a=function(_){var D=(0,r.Oc)().data,b=D.environment_data,T=D.atmos_alarm,R=D.fire_alarm,L=D.emagged,W=(b||[]).filter(function(k){return k.value>=.01}),$={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},F=$[D.danger_level]||$[0];return(0,e.jsx)(s.wn,{title:"Air Status",children:(0,e.jsxs)(s.Ki,{children:[W.length>0&&(0,e.jsxs)(e.Fragment,{children:[W.map(function(k){var X=$[k.danger_level]||$[0];return(0,e.jsxs)(s.Ki.Item,{label:(0,p.wM)(k.name),color:X.color,children:[(0,i.Mg)(k.value,2),k.unit]},k.name)}),(0,e.jsx)(s.Ki.Item,{label:"Local status",color:F.color,children:F.localStatusText}),(0,e.jsx)(s.Ki.Item,{label:"Area status",color:T||R?"bad":"good",children:T&&"Atmosphere Alarm"||R&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!L&&(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},l=function(_){var D=(0,r.Oc)(),b=D.act,T=D.data,R=T.target_temperature,L=T.rcon;return(0,e.jsx)(s.wn,{title:"Comfort Settings",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(s.$n,{selected:L===1,onClick:function(){return b("rcon",{rcon:1})},children:"Off"}),(0,e.jsx)(s.$n,{selected:L===2,onClick:function(){return b("rcon",{rcon:2})},children:"Auto"}),(0,e.jsx)(s.$n,{selected:L===3,onClick:function(){return b("rcon",{rcon:3})},children:"On"})]}),(0,e.jsx)(s.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(s.$n,{onClick:function(){return b("temperature")},children:R})})]})})},f={home:{title:"Air Controls",component:function(){return v}},vents:{title:"Vent Controls",component:function(){return j}},scrubbers:{title:"Scrubber Controls",component:function(){return E}},modes:{title:"Operating Mode",component:function(){return y}},thresholds:{title:"Alarm Thresholds",component:function(){return M}}},h=function(_){var D=f[_.screen]||f.home,b=D.component();return(0,e.jsx)(s.wn,{title:D.title,buttons:_.screen&&(0,e.jsx)(s.$n,{icon:"arrow-left",onClick:function(){return _.onScreen()},children:"Back"}),children:(0,e.jsx)(b,{onScreen:_.onScreen})})},v=function(_){var D=(0,r.Oc)(),b=D.act,T=D.data,R=T.mode,L=T.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{icon:L?"exclamation-triangle":"exclamation",color:L&&"caution",onClick:function(){return b(L?"reset":"alarm")},children:"Area Atmosphere Alarm"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:R===3?"exclamation-triangle":"exclamation",color:R===3&&"danger",onClick:function(){return b("mode",{mode:R===3?1:3})},children:"Panic Siphon"}),(0,e.jsx)(s.az,{mt:2}),(0,e.jsx)(s.$n,{icon:"sign-out-alt",onClick:function(){return _.onScreen("vents")},children:"Vent Controls"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"filter",onClick:function(){return _.onScreen("scrubbers")},children:"Scrubber Controls"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"cog",onClick:function(){return _.onScreen("modes")},children:"Operating Mode"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"chart-bar",onClick:function(){return _.onScreen("thresholds")},children:"Alarm Thresholds"})]})},j=function(_){var D=(0,r.Oc)().data,b=D.vents;return!b||b.length===0?"Nothing to show":b.map(function(T){return(0,e.jsx)(d.Vent,{vent:T},T.id_tag)})},E=function(_){var D=(0,r.Oc)().data,b=D.scrubbers;return!b||b.length===0?"Nothing to show":b.map(function(T){return(0,e.jsx)(d.Scrubber,{scrubber:T},T.id_tag)})},y=function(_){var D=(0,r.Oc)(),b=D.act,T=D.data,R=T.modes;return!R||R.length===0?"Nothing to show":R.map(function(L){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(s.$n,{icon:L.selected?"check-square-o":"square-o",selected:L.selected,color:L.selected&&L.danger&&"danger",onClick:function(){return b("mode",{mode:L.mode})},children:L.name}),(0,e.jsx)(s.az,{mt:1})]},L.mode)})},M=function(_){var D=(0,r.Oc)(),b=D.act,T=D.data,R=T.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:R.map(function(L){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,p.b_)(L.name),children:(0,p.wM)(L.name)})}),L.settings.map(function(W){return(0,e.jsx)("td",{children:(0,e.jsx)(s.$n,{onClick:function(){return b("threshold",{env:W.env,var:W.val})},children:(0,i.Mg)(W.selected,2)})},W.val)})]},L.name)})})]})}},51225:function(O,m,n){"use strict";n.r(m),n.d(m,{AlertModal:function(){return c}});var e=n(62161),i=n(28277),t=n(6544),r=n(7081),s=n(16754),p=n(42103),x=n(44149),d=-1,o=1,c=function(f){var h=(0,r.Oc)(),v=h.act,j=h.data,E=j.autofocus,y=j.buttons,M=y===void 0?[]:y,_=j.large_buttons,D=j.message,b=D===void 0?"":D,T=j.timeout,R=j.title,L=(0,i.useState)(0),W=L[0],$=L[1],F=115+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&_?5:0),k=325+(M.length>2?55:0),X=function(G){W===0&&G===d?$(M.length-1):W===M.length-1&&G===o?$(0):$(W+G)};return(0,e.jsxs)(p.p8,{height:F,title:R,width:k,children:[!!T&&(0,e.jsx)(x.Loader,{value:T}),(0,e.jsx)(p.p8.Content,{onKeyDown:function(G){var ne=window.event?G.which:G.keyCode;ne===t.iy||ne===t.Ri?v("choose",{choice:M[W]}):ne===t.s6?v("cancel"):ne===t.iU?(G.preventDefault(),X(d)):(ne===t.aW||ne===t.zh)&&(G.preventDefault(),X(o))},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(s.az,{color:"label",overflow:"hidden",children:b})}),(0,e.jsxs)(s.BJ.Item,{children:[!!E&&(0,e.jsx)(s.y5,{}),(0,e.jsx)(a,{selected:W})]})]})})})]})},a=function(f){var h=(0,r.Oc)().data,v=h.buttons,j=v===void 0?[]:v,E=h.large_buttons,y=h.swapped_buttons,M=f.selected;return(0,e.jsx)(s.so,{align:"center",direction:y?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:j==null?void 0:j.map(function(_,D){return E&&j.length<3?(0,e.jsx)(s.so.Item,{grow:!0,children:(0,e.jsx)(l,{button:_,id:D.toString(),selected:M===D})},D):(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(l,{button:_,id:D.toString(),selected:M===D})},D)})})},l=function(f){var h=(0,r.Oc)(),v=h.act,j=h.data,E=j.large_buttons,y=f.button,M=f.selected,_=y.length>7?y.length:7;return(0,e.jsx)(s.$n,{fluid:!!E,height:!!E&&2,onClick:function(){return v("choose",{choice:y})},m:.5,pl:2,pr:2,pt:E?.33:0,selected:M,textAlign:"center",width:!E&&_,children:E?y.toUpperCase():y})}},20730:function(O,m,n){"use strict";n.r(m),n.d(m,{AlgaeFarm:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(42103),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.usePower,l=c.materials,f=c.last_flow_rate,h=c.last_power_draw,v=c.inputDir,j=c.outputDir,E=c.input,y=c.output,M=c.errorText;return(0,e.jsx)(s.p8,{width:500,height:300,children:(0,e.jsxs)(s.p8.Content,{children:[M&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:M})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:a===2,onClick:function(){return o("toggle")},children:"Processing"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[f," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[h," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),l.map(function(_){return(0,e.jsxs)(r.Ki.Item,{label:(0,i.ZH)(_.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:_.qty,maxValue:_.max,children:[_.qty,"/",_.max]}),(0,e.jsx)(r.$n,{ml:1,onClick:function(){return o("ejectMaterial",{mat:_.name})},children:"Eject"})]},_.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 ("+v+")",children:E?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[E.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:E.name,children:[E.percent,"% (",E.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 ("+j+")",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."})})})]})})]})]})})}},31607:function(O,m,n){"use strict";n.r(m),n.d(m,{AppearanceChangerEars:function(){return x},AppearanceChangerGender:function(){return p},AppearanceChangerSpecies:function(){return s},AppearanceChangerTails:function(){return d},AppearanceChangerWings:function(){return o}});var e=n(62161),i=n(7402),t=n(7081),r=n(16754),s=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.species,v=f.specimen,j=(0,i.Ul)(function(E){return E.specimen})(h||[]);return(0,e.jsx)(r.wn,{title:"Species",fill:!0,scrollable:!0,children:j.map(function(E){return(0,e.jsx)(r.$n,{selected:v===E.specimen,onClick:function(){return l("race",{race:E.specimen})},children:E.specimen},E.specimen)})})},p=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.gender,v=f.gender_id,j=f.genders,E=f.id_genders;return(0,e.jsx)(r.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Biological Sex",children:j.map(function(y){return(0,e.jsx)(r.$n,{selected:y.gender_key===h,onClick:function(){return l("gender",{gender:y.gender_key})},children:y.gender_name},y.gender_key)})}),(0,e.jsx)(r.Ki.Item,{label:"Gender Identity",children:E.map(function(y){return(0,e.jsx)(r.$n,{selected:y.gender_key===v,onClick:function(){return l("gender_id",{gender_id:y.gender_key})},children:y.gender_name},y.gender_key)})})]})})},x=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.ear_style,v=f.ear_styles;return(0,e.jsxs)(r.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("ear",{clear:!0})},selected:h===null,children:"-- Not Set --"}),(0,i.Ul)(function(j){return j.name.toLowerCase()})(v).map(function(j){return(0,e.jsx)(r.$n,{onClick:function(){return l("ear",{ref:j.instance})},selected:j.name===h,children:j.name},j.instance)})]})},d=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.tail_style,v=f.tail_styles;return(0,e.jsxs)(r.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("tail",{clear:!0})},selected:h===null,children:"-- Not Set --"}),(0,i.Ul)(function(j){return j.name.toLowerCase()})(v).map(function(j){return(0,e.jsx)(r.$n,{onClick:function(){return l("tail",{ref:j.instance})},selected:j.name===h,children:j.name},j.instance)})]})},o=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.wing_style,v=f.wing_styles;return(0,e.jsxs)(r.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("wing",{clear:!0})},selected:h===null,children:"-- Not Set --"}),(0,i.Ul)(function(j){return j.name.toLowerCase()})(v).map(function(j){return(0,e.jsx)(r.$n,{onClick:function(){return l("wing",{ref:j.instance})},selected:j.name===h,children:j.name},j.instance)})]})}},47565:function(O,m,n){"use strict";n.r(m),n.d(m,{AppearanceChangerColors:function(){return r},AppearanceChangerMarkings:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.change_eye_color,a=o.change_skin_tone,l=o.change_skin_color,f=o.change_hair_color,h=o.change_facial_hair_color,v=o.eye_color,j=o.skin_color,E=o.hair_color,y=o.facial_hair_color,M=o.ears_color,_=o.ears2_color,D=o.tail_color,b=o.tail2_color,T=o.wing_color,R=o.wing2_color;return(0,e.jsxs)(t.wn,{title:"Colors",fill:!0,scrollable:!0,children:[c?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:v,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("eye_color")},children:"Change Eye Color"})]}):"",a?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return d("skin_tone")},children:"Change Skin Tone"})}):"",l?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:j,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("skin_color")},children:"Change Skin Color"})]}):"",f?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:E,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("hair_color")},children:"Change Hair Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:M,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("ears_color")},children:"Change Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:_,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("ears2_color")},children:"Change Secondary Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:D,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("tail_color")},children:"Change Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:b,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("tail2_color")},children:"Change Secondary Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:T,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("wing_color")},children:"Change Wing Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:R,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("wing2_color")},children:"Change Secondary Wing Color"})]})]}):null,h?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:y,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("facial_hair_color")},children:"Change Facial Hair Color"})]}):null]})},s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.markings;return(0,e.jsxs)(t.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:1,name:"na"})},children:"Add Marking"})}),(0,e.jsx)(t.Ki,{children:c.map(function(a){return(0,e.jsxs)(t.Ki.Item,{label:a.marking_name,children:[(0,e.jsx)(t.BK,{color:a.marking_color,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:4,name:a.marking_name})},children:"Change Color"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:0,name:a.marking_name})},children:"-"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:3,name:a.marking_name})},children:"Move down"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:2,name:a.marking_name})},children:"Move up"})]},a.marking_name)})})]})}},70972:function(O,m,n){"use strict";n.r(m),n.d(m,{AppearanceChangerFacialHair:function(){return s},AppearanceChangerHair:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.hair_style,a=o.hair_styles;return(0,e.jsx)(t.wn,{title:"Hair",fill:!0,scrollable:!0,children:a.map(function(l){return(0,e.jsx)(t.$n,{onClick:function(){return d("hair",{hair:l.hairstyle})},selected:l.hairstyle===c,children:l.hairstyle},l.hairstyle)})})},s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.facial_hair_style,a=o.facial_hair_styles;return(0,e.jsx)(t.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:a.map(function(l){return(0,e.jsx)(t.$n,{onClick:function(){return d("facial_hair",{facial_hair:l.facialhairstyle})},selected:l.facialhairstyle===c,children:l.facialhairstyle},l.facialhairstyle)})})}},66779:function(O,m,n){"use strict";n.r(m),n.d(m,{AppearanceChanger:function(){return c},AppearanceChangerDefaultError:function(){return a}});var e=n(62161),i=n(61282),t=n(28277),r=n(7081),s=n(16754),p=n(42103),x=n(31607),d=n(47565),o=n(70972),c=function(l){var f=(0,r.Oc)(),h=f.act,v=f.config,j=f.data,E=j.name,y=j.specimen,M=j.gender,_=j.gender_id,D=j.hair_style,b=j.facial_hair_style,T=j.ear_style,R=j.tail_style,L=j.wing_style,W=j.change_race,$=j.change_gender,F=j.change_eye_color,k=j.change_skin_tone,X=j.change_skin_color,G=j.change_hair_color,ne=j.change_facial_hair_color,ee=j.change_hair,q=j.change_facial_hair,Y=j.mapRef,H=v.title,w=[],J=F||k||X||G||ne,oe=(0,e.jsx)(s.az,{});w[-1]=(0,e.jsx)(a,{}),w[0]=W?(0,e.jsx)(x.AppearanceChangerSpecies,{}):(0,e.jsx)(a,{}),w[1]=$?(0,e.jsx)(x.AppearanceChangerGender,{}):(0,e.jsx)(a,{}),w[2]=J?(0,e.jsx)(d.AppearanceChangerColors,{}):(0,e.jsx)(a,{}),w[3]=ee?(0,e.jsx)(o.AppearanceChangerHair,{}):(0,e.jsx)(a,{}),w[4]=q?(0,e.jsx)(o.AppearanceChangerFacialHair,{}):(0,e.jsx)(a,{}),w[5]=ee?(0,e.jsx)(x.AppearanceChangerEars,{}):(0,e.jsx)(a,{}),w[6]=ee?(0,e.jsx)(x.AppearanceChangerTails,{}):(0,e.jsx)(a,{}),w[7]=ee?(0,e.jsx)(x.AppearanceChangerWings,{}):(0,e.jsx)(a,{}),w[8]=ee?(0,e.jsx)(d.AppearanceChangerMarkings,{}):(0,e.jsx)(a,{});var ce=-1;W?ce=0:$?ce=1:J?ce=2:ee?ce=4:q&&(ce=5);var le=(0,t.useState)(ce),de=le[0],me=le[1];return(0,e.jsx)(p.p8,{width:700,height:650,title:(0,i.jT)(H),children:(0,e.jsxs)(p.p8.Content,{children:[(0,e.jsx)(s.wn,{title:"Reflection",children:(0,e.jsxs)(s.so,{children:[(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Name",children:E}),(0,e.jsx)(s.Ki.Item,{label:"Species",color:W?void 0:"grey",children:y}),(0,e.jsx)(s.Ki.Item,{label:"Biological Sex",color:$?void 0:"grey",children:M?(0,i.ZH)(M):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Gender Identity",color:J?void 0:"grey",children:_?(0,i.ZH)(_):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Hair Style",color:ee?void 0:"grey",children:D?(0,i.ZH)(D):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Facial Hair Style",color:q?void 0:"grey",children:b?(0,i.ZH)(b):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Ear Style",color:ee?void 0:"grey",children:T?(0,i.ZH)(T):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Tail Style",color:ee?void 0:"grey",children:R?(0,i.ZH)(R):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Wing Style",color:ee?void 0:"grey",children:L?(0,i.ZH)(L):"Not Set"})]})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.D1,{style:{width:"256px",height:"256px"},params:{id:Y,type:"map"}})})]})}),(0,e.jsxs)(s.tU,{children:[W?(0,e.jsx)(s.tU.Tab,{selected:de===0,onClick:function(){return me(0)},children:"Race"}):null,$?(0,e.jsx)(s.tU.Tab,{selected:de===1,onClick:function(){return me(1)},children:"Gender & Sex"}):null,J?(0,e.jsx)(s.tU.Tab,{selected:de===2,onClick:function(){return me(2)},children:"Colors"}):null,ee?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.tU.Tab,{selected:de===3,onClick:function(){return me(3)},children:"Hair"}),(0,e.jsx)(s.tU.Tab,{selected:de===5,onClick:function(){return me(5)},children:"Ear"}),(0,e.jsx)(s.tU.Tab,{selected:de===6,onClick:function(){return me(6)},children:"Tail"}),(0,e.jsx)(s.tU.Tab,{selected:de===7,onClick:function(){return me(7)},children:"Wing"}),(0,e.jsx)(s.tU.Tab,{selected:de===8,onClick:function(){return me(8)},children:"Markings"})]}):null,q?(0,e.jsx)(s.tU.Tab,{selected:de===4,onClick:function(){return me(4)},children:"Facial Hair"}):null]}),(0,e.jsx)(s.az,{height:"43%",children:w[de]})]})})},a=function(l){return(0,e.jsx)(s.az,{textColor:"red",children:"Disabled"})}},44212:function(O,m,n){"use strict";n.r(m)},8910:function(O,m,n){"use strict";n.r(m),n.d(m,{ArcadeBattle:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.temp,a=o.enemyAction,l=o.enemyName,f=o.playerHP,h=o.playerMP,v=o.enemyHP,j=o.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:l,textAlign:"center",children:[(0,e.jsxs)(t.wn,{color:"label",children:[(0,e.jsx)(t.az,{children:c}),(0,e.jsx)(t.az,{children:!j&&a})]}),(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:f,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[f,"HP"]})}),(0,e.jsx)(t.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(t.z2,{value:h,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[h,"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:v,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[v,"HP"]})})})})]}),j&&(0,e.jsx)(t.$n,{fluid:!0,mt:1,color:"green",onClick:function(){return d("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 d("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 d("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 d("charge")},children:"Recharge!"})})]})]})})})}},61968:function(O,m,n){"use strict";n.r(m),n.d(m,{AreaScrubberControl:function(){return x}});var e=n(62161),i=n(61282),t=n(28277),r=n(7081),s=n(16754),p=n(42103),x=function(o){var c=(0,r.Oc)(),a=c.act,l=c.data,f=(0,t.useState)(!1),h=f[0],v=f[1],j=l.scrubbers;return j?(0,e.jsx)(p.p8,{width:600,height:400,children:(0,e.jsx)(p.p8.Content,{scrollable:!0,children:(0,e.jsxs)(s.wn,{children:[(0,e.jsxs)(s.so,{wrap:"wrap",children:[(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"search",onClick:function(){return a("scan")},children:"Scan"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"layer-group",selected:h,onClick:function(){return v(!h)},children:"Show Areas"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",onClick:function(){return a("allon")},children:"All On"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",onClick:function(){return a("alloff")},children:"All Off"})})]}),(0,e.jsx)(s.so,{wrap:"wrap",children:j.map(function(E){return(0,e.jsx)(s.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(d,{scrubber:E,showArea:h})},E.id)})})]})})}):(0,e.jsxs)(s.wn,{title:"Error",children:[(0,e.jsx)(s.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(s.$n,{fluid:!0,icon:"search",onClick:function(){return a("scan")},children:"Scan"})]})},d=function(o){var c=(0,r.Oc)().act,a=o.scrubber,l=o.showArea;return(0,e.jsxs)(s.wn,{title:a.name,children:[(0,e.jsx)(s.$n,{fluid:!0,icon:"power-off",selected:a.on,onClick:function(){return c("toggle",{id:a.id})},children:a.on?"Enabled":"Disabled"}),(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Pressure",children:[a.pressure," kPa"]}),(0,e.jsxs)(s.Ki.Item,{label:"Flow Rate",children:[a.flow_rate," L/s"]}),(0,e.jsxs)(s.Ki.Item,{label:"Load",children:[a.load," W"]}),l&&(0,e.jsx)(s.Ki.Item,{label:"Area",children:(0,i.Sn)(a.area)})]})]})}},29615:function(O,m,n){"use strict";n.r(m),n.d(m,{AssemblyInfrared:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.on,a=o.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:c,onClick:function(){return d("state")},children:c?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Visibility",children:(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,selected:a,onClick:function(){return d("visible")},children:a?"Able to be seen":"Invisible"})})]})})})})}},95027:function(O,m,n){"use strict";n.r(m),n.d(m,{AssemblyProx:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(41242),p=n(42103),x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.timing,f=a.time,h=a.range,v=a.maxRange,j=a.scanning;return(0,e.jsx)(p.p8,{children:(0,e.jsxs)(p.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:l,onClick:function(){return c("timing")},children:l?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:f,minValue:0,maxValue:600,format:function(E){return(0,s.fU)((0,i.LI)(E*10,0))},onDrag:function(E,y){return c("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:h,maxValue:v,onDrag:function(E,y){return c("range",{range:y})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:j?"lock":"lock-open",selected:j,onClick:function(){return c("scanning")},children:j?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},18721:function(O,m,n){"use strict";n.r(m),n.d(m,{AssemblyTimer:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(41242),p=n(42103),x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.timing,f=a.time;return(0,e.jsx)(p.p8,{children:(0,e.jsx)(p.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:l,onClick:function(){return c("timing")},children:l?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:f,minValue:0,maxValue:600,format:function(h){return(0,s.fU)((0,i.LI)(h*10,0))},onDrag:function(h,v){return c("set_time",{time:v})}})})})})})})}},16561:function(O,m,n){"use strict";n.r(m),n.d(m,{AtmosAlertConsole:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.priority_alarms,a=c===void 0?[]:c,l=o.minor_alarms,f=l===void 0?[]:l;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:[a.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),a.map(function(h){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"bad",onClick:function(){return d("clear",{ref:h.ref})},children:h.name})},h.name)}),f.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),f.map(function(h){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"average",onClick:function(){return d("clear",{ref:h.ref})},children:h.name})},h.name)})]})})})})}},74737:function(O,m,n){"use strict";n.r(m),n.d(m,{AtmosControl:function(){return x},AtmosControlContent:function(){return d}});var e=n(62161),i=n(7402),t=n(28277),r=n(7081),s=n(16754),p=n(42103),x=function(o){return(0,e.jsx)(p.p8,{width:600,height:440,children:(0,e.jsx)(p.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(o){var c=(0,r.Oc)(),a=c.act,l=c.data,f=c.config,h=(0,i.Ul)(function(b){return b.name})(l.alarms||[]),v=(0,t.useState)(0),j=v[0],E=v[1],y=(0,t.useState)(1),M=y[0],_=y[1],D;return j===0?D=(0,e.jsx)(s.wn,{title:"Alarms",children:h.map(function(b){return(0,e.jsx)(s.$n,{color:b.danger===2?"bad":b.danger===1?"average":"",onClick:function(){return a("alarm",{alarm:b.ref})},children:b.name},b.name)})}):j===1&&(D=(0,e.jsx)(s.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(s.tx,{zoomScale:l.zoomScale,onZoom:function(b){return _(b)},children:h.filter(function(b){return~~b.z===~~f.mapZLevel}).map(function(b){return(0,e.jsx)(s.tx.Marker,{x:b.x,y:b.y,zoom:M,icon:"bell",tooltip:b.name,color:b.danger?"red":"green",onClick:function(){return a("alarm",{alarm:b.ref})}},b.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.tU,{children:[(0,e.jsxs)(s.tU.Tab,{selected:j===0,onClick:function(){return E(0)},children:[(0,e.jsx)(s.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(s.tU.Tab,{selected:j===1,onClick:function(){return E(1)},children:[(0,e.jsx)(s.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(s.az,{m:2,children:D})]})}},13238:function(O,m,n){"use strict";n.r(m),n.d(m,{AtmosFilter:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.on,a=o.rate,l=o.max_rate,f=o.last_flow_rate,h=o.filter_types,v=h===void 0?[]:h;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:c?"power-off":"times",selected:c,onClick:function(){return d("power")},children:c?"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:f,format:function(j){return j+" L/s"}})}),(0,e.jsx)(t.Q7,{animated:!0,value:a,width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(j,E){return d("rate",{rate:E})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:a===l,onClick:function(){return d("rate",{rate:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Item,{label:"Filter",children:v.map(function(j){return(0,e.jsx)(t.$n,{selected:j.selected,onClick:function(){return d("filter",{filterset:j.f_type})},children:j.name},j.name)})})]})})})})}},68541:function(O,m,n){"use strict";n.r(m),n.d(m,{AtmosMixer:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.on,a=o.set_pressure,l=o.max_pressure,f=o.node1_concentration,h=o.node2_concentration,v=o.node1_dir,j=o.node2_dir;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:c?"power-off":"times",selected:c,onClick:function(){return d("power")},children:c?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.Q7,{animated:!0,value:a,unit:"kPa",width:"75px",minValue:0,maxValue:l,step:10,onChange:function(E,y){return d("pressure",{pressure:y})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:a===l,onClick:function(){return d("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 ("+v+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:f,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(E,y){return d("node1",{concentration:y})}})}),(0,e.jsx)(t.Ki.Item,{label:"Node 2 ("+j+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:h,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(E,y){return d("node2",{concentration:y})}})})]})})})})}},43855:function(O,m,n){"use strict";n.r(m),n.d(m,{Autolathe:function(){return h}});var e=n(62161),i=n(7402),t=n(22071),r=n(61282),s=n(7081),p=n(16754),x=n(42103),d=n(2858);function o(v,j){(j==null||j>v.length)&&(j=v.length);for(var E=0,y=new Array(j);E=v.length?{done:!0}:{done:!1,value:v[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 f=function(v,j,E){var y=function(){var T=D.value,R=j.find(function(L){return L.name===T});if(!R)return"continue";if(R.amount=0)&&(E[M]=v[M]);return E}var o={Alphabetical:function(v,j){return v.name>j.name},"By availability":function(v,j){return-(v.affordable-j.affordable)},"By price":function(v,j){return v.price-j.price}},c=function(v){var j=function(Y){$(Y)},E=function(Y){X(Y)},y=function(Y){ee(Y)},M=(0,r.Oc)(),_=M.act,D=M.data,b=D.processing,T=D.points,R=D.beaker,L=(0,t.useState)(""),W=L[0],$=L[1],F=(0,t.useState)("Alphabetical"),k=F[0],X=F[1],G=(0,t.useState)(!1),ne=G[0],ee=G[1];return(0,e.jsx)(p.p8,{width:400,height:450,children:(0,e.jsx)(p.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:b&&(0,e.jsx)(s.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.wn,{children:[T," points available.",(0,e.jsx)(s.$n,{ml:1,icon:"blender",onClick:function(){return _("activate")},children:"Activate"}),(0,e.jsx)(s.$n,{ml:1,icon:"eject",disabled:!R,onClick:function(){return _("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(l,{searchText:W,sortOrder:k,descending:ne,onSearchText:j,onSortOrder:E,onDescending:y}),(0,e.jsx)(a,{searchText:W,sortOrder:k,descending:ne})]})})})},a=function(v){var j=(0,r.Oc)(),E=j.act,y=j.data,M=y.points,_=y.items,D=_===void 0?[]:_,b=y.build_eff,T=y.beaker,R=(0,i.XZ)(v.searchText,function($){return $[0]}),L=!1,W=Object.entries(D).map(function($){var F=Object.entries($[1]).filter(R).map(function(k){return k[1].affordable=+(M>=k[1].price/b),k[1]}).sort(o[v.sortOrder]);if(F.length!==0)return v.descending&&(F=F.reverse()),L=!0,(0,e.jsx)(h,{title:$[0],items:F,build_eff:b,beaker:T},$[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:L?W:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(v){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:v.searchText,width:"100%",onInput:function(j,E){return v.onSearchText(E)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{selected:v.sortOrder,options:Object.keys(o),width:"100%",lineHeight:"19px",onSelected:function(j){return v.onSortOrder(j)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:v.descending?"arrow-down":"arrow-up",height:"19px",tooltip:v.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return v.onDescending(!v.descending)}})})]})})},f=function(v,j){return!(!v.affordable||v.reagent&&!j)},h=function(v){var j=(0,r.Oc)(),E=j.act,y=j.data,M=v.title,_=v.items,D=v.build_eff,b=v.beaker,T=d(v,["title","items","build_eff","beaker"]);return(0,e.jsx)(s.Nt,x({open:!0,title:M},T,{children:_.map(function(R){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:R.name}),(0,e.jsx)(s.$n,{disabled:!f(R,b),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return E("purchase",{cat:M,name:R.name})},children:(R.price/D).toLocaleString("en-US")}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},R.name)})}))}},13469:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyDesignerBodyRecords:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)().act,x=s.bodyrecords;return(0,e.jsx)(t.wn,{title:"Body Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return p("menu",{menu:"Main"})},children:"Back"}),children:x?x.map(function(d){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return p("view_brec",{view_brec:d.recref})},children:d.name},d.name)}):""})}},17796:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyDesignerMain:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Database Functions",children:[(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return p("menu",{menu:"Body Records"})},children:"View Individual Body Records"}),(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return p("menu",{menu:"Stock Records"})},children:"View Stock Body Records"})]})}},24983:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyDesignerOOCNotes:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)().act,x=s.activeBodyRecord;return(0,e.jsx)(t.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return p("menu",{menu:"Specific Record"})},children:"Back"}),style:{wordBreak:"break-all"},children:x&&x.booc||"ERROR: Body record not found!"})}},54068:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyDesignerSpecificRecord:function(){return s}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=function(p){var x=(0,t.Oc)().act,d=p.activeBodyRecord,o=p.mapRef;return d?(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 x("menu",{menu:"Main"})},children:"Back"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:d.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:d.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:"bio_gender",target_value:1})},children:(0,i.ZH)(d.gender)})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:d.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[d.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",disabled:!d.booc,onClick:function(){return x("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:o,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 x("href_conversion",{target_href:"size_multiplier",target_value:1})},children:d.scale})}),Object.keys(d.styles).map(function(c){var a=d.styles[c];return(0,e.jsxs)(r.Ki.Item,{label:c,children:[a.styleHref?(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:a.styleHref,target_value:1})},children:a.style}):"",a.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:a.colorHref,target_value:1})},children:a.color}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:a.color,style:{border:"1px solid #fff"}})]}):"",a.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:a.colorHref2,target_value:1})},children:a.color2}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:a.color2,style:{border:"1px solid #fff"}})]}):""]},c)}),(0,e.jsx)(r.Ki.Item,{label:"Digitigrade",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:"digitigrade",target_value:1})},children:d.digitigrade?"Yes":"No"})}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return x("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(d.markings).map(function(c){var a=d.markings[c];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 x("href_conversion",{target_href:"marking_remove",target_value:c})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:a,onClick:function(){return x("href_conversion",{target_href:"marking_color",target_value:c})},children:c})})]})},c)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})}},99123:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyDesignerStockRecords:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)().act,x=s.stock_bodyrecords;return(0,e.jsx)(t.wn,{title:"Stock Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return p("menu",{menu:"Main"})},children:"Back"}),children:x.map(function(d){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return p("view_stock_brec",{view_stock_brec:d})},children:d},d)})})}},87706:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyDesigner:function(){return c}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(13469),p=n(17796),x=n(24983),d=n(54068),o=n(99123),c=function(a){var l=(0,i.Oc)(),f=l.act,h=l.data,v=h.menu,j=h.disk,E=h.diskStored,y=h.activeBodyRecord,M=h.stock_bodyrecords,_=h.bodyrecords,D=h.mapRef,b={Main:(0,e.jsx)(p.BodyDesignerMain,{}),"Body Records":(0,e.jsx)(s.BodyDesignerBodyRecords,{bodyrecords:_}),"Stock Records":(0,e.jsx)(o.BodyDesignerStockRecords,{stock_bodyrecords:M}),"Specific Record":(0,e.jsx)(d.BodyDesignerSpecificRecord,{activeBodyRecord:y,mapRef:D}),"OOC Notes":(0,e.jsx)(x.BodyDesignerOOCNotes,{activeBodyRecord:y})},T=b[v];return(0,e.jsx)(r.p8,{width:400,height:650,children:(0,e.jsxs)(r.p8.Content,{children:[j?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return f("savetodisk")},disabled:!y,children:"Save To Disk"}),(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return f("loadfromdisk")},disabled:!E,children:"Load From Disk"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return f("ejectdisk")},children:"Eject"})]}):"",T]})})}},25375:function(O,m,n){"use strict";n.r(m)},85168:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyScannerEmpty:function(){return t}});var e=n(62161),i=n(16754),t=function(){return(0,e.jsx)(i.wn,{textAlign:"center",flexGrow:!0,children:(0,e.jsx)(i.so,{height:"100%",children:(0,e.jsxs)(i.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(i.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},43780:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyScannerMain:function(){return o}});var e=n(62161),i=n(16754),t=n(49354),r=n(53187),s=n(81417),p=n(32915),x=n(73457),d=n(70765),o=function(c){var a=c.occupant;return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(s.BodyScannerMainOccupant,{occupant:a}),(0,e.jsx)(d.BodyScannerMainReagents,{occupant:a}),(0,e.jsx)(t.BodyScannerMainAbnormalities,{occupant:a}),(0,e.jsx)(r.BodyScannerMainDamage,{occupant:a}),(0,e.jsx)(p.BodyScannerMainOrgansExternal,{organs:a.extOrgan}),(0,e.jsx)(x.BodyScannerMainOrgansInternal,{organs:a.intOrgan})]})}},49354:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyScannerMainAbnormalities:function(){return r}});var e=n(62161),i=n(16754),t=n(47710),r=function(s){var p=s.occupant,x=p.hasBorer||p.blind||p.colourblind||p.nearsighted||p.hasVirus;return x=x||p.humanPrey||p.livingPrey||p.objectPrey,x?(0,e.jsx)(i.wn,{title:"Abnormalities",children:t.abnormalities.map(function(d,o){if(p[d[0]])return(0,e.jsx)(i.az,{color:d[1],bold:d[1]==="bad",children:d[2](p)},o)})}):(0,e.jsx)(i.wn,{title:"Abnormalities",children:(0,e.jsx)(i.az,{color:"label",children:"No abnormalities found."})})}},53187:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyScannerMainDamage:function(){return p}});var e=n(62161),i=n(4089),t=n(16754),r=n(47710),s=n(65518),p=function(d){var o=d.occupant;return(0,e.jsx)(t.wn,{title:"Damage",children:(0,e.jsx)(t.XI,{children:(0,s.mapTwoByTwo)(r.damages,function(c,a,l){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI.Row,{color:"label",children:[(0,e.jsxs)(t.XI.Cell,{children:[c[0],":"]}),(0,e.jsx)(t.XI.Cell,{children:!!a&&a[0]+":"})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(x,{value:o[c[1]],marginBottom:l0&&"0.5rem",value:o.totalLoss/100,ranges:r.damageRange,children:[(0,e.jsxs)(t.az,{style:{float:"left"},inline:!0,children:[!!o.bruteLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"bone"}),(0,i.Mg)(o.bruteLoss),"\xA0",(0,e.jsx)(t.m_,{position:"top",content:"Brute damage"})]}),!!o.fireLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"fire"}),(0,i.Mg)(o.fireLoss),(0,e.jsx)(t.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(t.az,{inline:!0,children:(0,i.Mg)(o.totalLoss)})]})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,s.reduceOrganStatus)([o.internalBleeding&&"Internal bleeding",!!o.status.bleeding&&"External bleeding",o.lungRuptured&&"Ruptured lung",o.status.destroyed&&"Destroyed",!!o.status.broken&&o.status.broken,(0,s.germStatus)(o.germ_level),!!o.open&&"Open incision"])}),(0,e.jsxs)(t.az,{inline:!0,children:[(0,s.reduceOrganStatus)([!!o.status.splinted&&"Splinted",!!o.status.robotic&&"Robotic",!!o.status.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})]),(0,s.reduceOrganStatus)(o.implants.map(function(a){return a.known?a.name:"Unknown object"}))]})]})]},c)})]})})}},73457:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyScannerMainOrgansInternal:function(){return p}});var e=n(62161),i=n(4089),t=n(16754),r=n(47710),s=n(65518),p=function(x){var d=x.organs;return d.length===0?(0,e.jsx)(t.wn,{title:"Internal Organs",children:(0,e.jsx)(t.az,{color:"label",children:"N/A"})}):(0,e.jsx)(t.wn,{title:"Internal Organs",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,{textAlign:"center",children:"Damage"}),(0,e.jsx)(t.XI.Cell,{textAlign:"right",children:"Injuries"})]}),d.map(function(o,c){return(0,e.jsxs)(t.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(t.XI.Cell,{width:"33%",children:o.name}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:o.maxHealth/100,value:o.damage/100,mt:c>0&&"0.5rem",ranges:r.damageRange,children:(0,i.Mg)(o.damage)})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,s.reduceOrganStatus)([(0,s.germStatus)(o.germ_level),!!o.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(t.az,{inline:!0,children:(0,s.reduceOrganStatus)([o.robotic===1&&"Robotic",o.robotic===2&&"Assisted",!!o.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})])})]})]},c)})]})})}},70765:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyScannerMainReagents:function(){return t}});var e=n(62161),i=n(16754),t=function(r){var s=r.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.wn,{title:"Blood Reagents",children:s.reagents?(0,e.jsxs)(i.XI,{children:[(0,e.jsxs)(i.XI.Row,{header:!0,children:[(0,e.jsx)(i.XI.Cell,{children:"Reagent"}),(0,e.jsx)(i.XI.Cell,{textAlign:"right",children:"Amount"})]}),s.reagents.map(function(p){return(0,e.jsxs)(i.XI.Row,{children:[(0,e.jsx)(i.XI.Cell,{children:p.name}),(0,e.jsxs)(i.XI.Cell,{textAlign:"right",children:[p.amount," Units"," ",p.overdose?(0,e.jsx)(i.az,{color:"bad",children:"OVERDOSING"}):null]})]},p.name)})]}):(0,e.jsx)(i.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(i.wn,{title:"Stomach Reagents",children:s.ingested?(0,e.jsxs)(i.XI,{children:[(0,e.jsxs)(i.XI.Row,{header:!0,children:[(0,e.jsx)(i.XI.Cell,{children:"Reagent"}),(0,e.jsx)(i.XI.Cell,{textAlign:"right",children:"Amount"})]}),s.ingested.map(function(p){return(0,e.jsxs)(i.XI.Row,{children:[(0,e.jsx)(i.XI.Cell,{children:p.name}),(0,e.jsxs)(i.XI.Cell,{textAlign:"right",children:[p.amount," Units"," ",p.overdose?(0,e.jsx)(i.az,{color:"bad",children:"OVERDOSING"}):null]})]},p.name)})]}):(0,e.jsx)(i.az,{color:"good",children:"No Stomach Reagents Detected"})})]})}},47710:function(O,m,n){"use strict";n.r(m),n.d(m,{abnormalities:function(){return i},damageRange:function(){return r},damages:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],i=[["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}]],t=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],r={average:[.25,.5],bad:[.5,1/0]}},65518:function(O,m,n){"use strict";n.r(m),n.d(m,{germStatus:function(){return s},mapTwoByTwo:function(){return t},reduceOrganStatus:function(){return r}});var e=n(62161),i=n(16754);function t(p,x){for(var d=[],o=0;o0?p.reduce(function(x,d){return x===null?d:(0,e.jsxs)(e.Fragment,{children:[x,!!d&&(0,e.jsx)(i.az,{children:d})]})}):null}function s(p){if(p>100){if(p<300)return"mild infection";if(p<400)return"mild infection+";if(p<500)return"mild infection++";if(p<700)return"acute infection";if(p<800)return"acute infection+";if(p<900)return"acute infection++";if(p>=900)return"septic"}return""}},9665:function(O,m,n){"use strict";n.r(m),n.d(m,{BodyScanner:function(){return p}});var e=n(62161),i=n(7081),t=n(42103),r=n(85168),s=n(43780),p=function(x){var d=(0,i.Oc)().data,o=d.occupied,c=d.occupant,a=c===void 0?{}:c,l=o?(0,e.jsx)(s.BodyScannerMain,{occupant:a}):(0,e.jsx)(r.BodyScannerEmpty,{});return(0,e.jsx)(t.p8,{width:690,height:600,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:l})})}},78006:function(O,m,n){"use strict";n.r(m)},11265:function(O,m,n){"use strict";n.r(m),n.d(m,{BombTester:function(){return o}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103);function p(){return p=Object.assign||function(a){for(var l=1;l.5,_=Math.random()>.5;return v.state={x:M?j:0,y:_?E:0,reverseX:!1,reverseY:!1},v.process=setInterval(function(){v.setState(function(D){var b=p({},D);return b.reverseX?b.x-y<-5?(b.reverseX=!1,b.x+=y):b.x-=y:b.x+y>j?(b.reverseX=!0,b.x-=y):b.x+=y,b.reverseY?b.y-y<-20?(b.reverseY=!1,b.y+=y):b.y-=y:b.y+y>E?(b.reverseY=!0,b.y-=y):b.y+=y,b})},1),v}var f=l.prototype;return f.componentWillUnmount=function(){clearInterval(this.process)},f.render=function(){var v=this.state,j=v.x,E=v.y,y={position:"relative",left:j+"px",top:E+"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"})})})},l}(i.Component)},5536:function(O,m,n){"use strict";n.r(m),n.d(m,{BotanyEditor:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.activity,a=o.degradation,l=o.disk,f=o.sourceName,h=o.locus,v=o.loaded;return c?(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:l&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:f}),(0,e.jsxs)(t.Ki.Item,{label:"Gene Decay",children:[a,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Locus",children:h})]}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return d("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:v&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:v})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return d("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return d("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},68734:function(O,m,n){"use strict";n.r(m),n.d(m,{BotanyIsolator:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.geneMasks,a=o.activity,l=o.degradation,f=o.disk,h=o.loaded,v=o.hasGenetics,j=o.sourceName;return a?(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:v&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:j}),(0,e.jsxs)(t.Ki.Item,{label:"Gene decay",children:[l,"%"]}),f&&c.length&&c.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.mask,children:(0,e.jsx)(t.$n,{mb:-1,icon:"download",onClick:function(){return d("get_gene",{get_gene:E.tag})},children:"Extract"})},E.mask)})||null]}),f&&(0,e.jsxs)(t.az,{mt:1,children:[(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return d("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."}),f&&(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("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:h&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Packet Loaded",children:h})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return d("scan_genome")},children:"Process Genome"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No packet loaded."})})]})})}},46141:function(O,m,n){"use strict";n.r(m),n.d(m,{BrigTimer:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(41242),p=n(42103),x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.time_left,f=a.max_time_left,h=a.timing,v=a.flash_found,j=a.flash_charging,E=a.preset_short,y=a.preset_medium,M=a.preset_long;return(0,e.jsx)(p.p8,{width:400,height:138,children:(0,e.jsx)(p.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:h,onClick:function(){return c(h?"stop":"start")},children:h?"Stop":"Start"}),v&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",disabled:j,onClick:function(){return c("flash")},children:j?"Recharging":"Flash"})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:l/10,minValue:0,maxValue:f/10,format:function(_){return(0,s.fU)((0,i.LI)(_*10,0))},onDrag:function(_,D){return c("time",{time:D})}}),(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 c("preset",{preset:"short"})},children:"Add "+(0,s.fU)(E)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return c("preset",{preset:"medium"})},children:"Add "+(0,s.fU)(y)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return c("preset",{preset:"long"})},children:"Add "+(0,s.fU)(M)})})]})]})})})}},18490:function(O,m,n){"use strict";n.r(m),n.d(m,{CameraConsole:function(){return f},CameraConsoleContent:function(){return h},prevNextCamera:function(){return c},selectCameras:function(){return l}});var e=n(62161),i=n(7402),t=n(22071),r=n(65380),s=n(61282),p=n(28277),x=n(7081),d=n(16754),o=n(42103),c=function(v,j){var E,y;if(!j)return[];var M=v.findIndex(function(_){return _.name===j.name});return[(E=v[M-1])==null?void 0:E.name,(y=v[M+1])==null?void 0:y.name]};function a(v){return v!=null}var l=function(v,j,E){j===void 0&&(j=""),E===void 0&&(E="");var y=(0,s.XZ)(j,function(M){return M.name});return(0,t.L)([(0,i.pb)(function(M){return a(M==null?void 0:M.name)}),j&&(0,i.pb)(y),E&&(0,i.pb)(function(M){return M.networks.includes(E)}),(0,i.Ul)(function(M){return M.name})])(v)},f=function(v){var j=(0,x.Oc)(),E=j.act,y=j.data,M=y.mapRef,_=y.activeCamera,D=y.cameras,b=l(D),T=c(b,_),R=T[0],L=T[1];return(0,e.jsxs)(o.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(h,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),_&&_.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(d.$n,{icon:"chevron-left",disabled:!R,onClick:function(){return E("switch_camera",{name:R})}}),(0,e.jsx)(d.$n,{icon:"chevron-right",disabled:!L,onClick:function(){return E("switch_camera",{name:L})}}),"| PAN:",(0,e.jsx)(d.$n,{icon:"chevron-left",onClick:function(){return E("pan",{dir:8})}}),(0,e.jsx)(d.$n,{icon:"chevron-up",onClick:function(){return E("pan",{dir:1})}}),(0,e.jsx)(d.$n,{icon:"chevron-right",onClick:function(){return E("pan",{dir:4})}}),(0,e.jsx)(d.$n,{icon:"chevron-down",onClick:function(){return E("pan",{dir:2})}})]}),(0,e.jsx)(d.D1,{className:"CameraConsole__map",params:{id:M,type:"map"}})]})]})},h=function(v){var j=(0,x.Oc)(),E=j.act,y=j.data,M=(0,p.useState)(""),_=M[0],D=M[1],b=(0,p.useState)(""),T=b[0],R=b[1],L=y.activeCamera,W=y.allNetworks,$=y.cameras;W.sort();var F=l($,_,T);return(0,e.jsxs)(d.so,{direction:"column",height:"100%",children:[(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(k,X){return D(X)}})}),(0,e.jsx)(d.so.Item,{children:(0,e.jsxs)(d.so,{children:[(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.ms,{mb:1,width:T?"155px":"177px",displayText:T||"No Filter",options:W,onSelected:function(k){return R(k)}})}),T?(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){R("")}})}):""]})}),(0,e.jsx)(d.so.Item,{height:"100%",children:(0,e.jsx)(d.wn,{fill:!0,scrollable:!0,children:F.map(function(k){return(0,e.jsx)("div",{title:k.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",L&&k.name===L.name&&"Button--selected"]),onClick:function(){return E("switch_camera",{name:k.name})},children:k.name},k.name)})})})]})}},82195:function(O,m,n){"use strict";n.r(m),n.d(m,{Canister:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(41242),p=n(42103),x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.connected,f=a.can_relabel,h=a.pressure,v=a.releasePressure,j=a.defaultReleasePressure,E=a.minReleasePressure,y=a.maxReleasePressure,M=a.valveOpen,_=a.holding;return(0,e.jsx)(p.p8,{width:360,height:242,children:(0,e.jsxs)(p.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!f,onClick:function(){return c("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:h,format:function(D){return D<1e4?(0,i.Mg)(D)+" kPa":(0,s.QL)(D*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:!!M&&"yellow",value:v,unit:"kPa",minValue:E,maxValue:y,stepPixelSize:1,onDrag:function(D,b){return c("pressure",{pressure:b})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return c("pressure",{pressure:y})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return c("pressure",{pressure:j})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:M?_?"caution":"danger":null,onClick:function(){return c("valve")},children:M?"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:l?"plug":"times",color:l?"good":"bad"}),(0,e.jsx)(r.m_,{content:l?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!_&&(0,e.jsx)(r.$n,{icon:"eject",color:M&&"danger",onClick:function(){return c("eject")},children:"Eject"}),children:[!!_&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:_.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:_.pressure})," kPa"]})]}),!_&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},64808:function(O,m,n){"use strict";n.r(m),n.d(m,{Canvas:function(){return f}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103);function p(){return p=Object.assign||function(h){for(var v=1;v=0)&&(j[y]=h[y]);return j}function o(h,v){return o=Object.setPrototypeOf||function(E,y){return E.__proto__=y,E},o(h,v)}var c=24,a=function(h){"use strict";x(v,h);function v(E){var y;return y=h.call(this,E)||this,y.canvasRef=(0,i.createRef)(),y.onCVClick=E.onCanvasClick,y}var j=v.prototype;return j.componentDidMount=function(){this.drawCanvas(this.props)},j.componentDidUpdate=function(){this.drawCanvas(this.props)},j.drawCanvas=function(y){var M=this.canvasRef.current,_=M.getContext("2d"),D=y.value;if(D){var b=D.length;if(b){var T=D[0].length,R=Math.round(M.width/b),L=Math.round(M.height/T);_.save(),_.scale(R,L);for(var W=0;W=0)&&(j[y]=h[y]);return j}var o={Alphabetical:function(h,v){return h.name>v.name},"By price":function(h,v){return h.price-v.price}},c=function(){var h=function($){M($)},v=function($){b($)},j=function($){L($)},E=(0,t.useState)(""),y=E[0],M=E[1],_=(0,t.useState)("Alphabetical"),D=_[0],b=_[1],T=(0,t.useState)(!1),R=T[0],L=T[1];return(0,e.jsx)(p.p8,{width:400,height:450,children:(0,e.jsx)(p.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a,{searchText:y,sortOrder:D,descending:R,onSearchText:h,onSortOrder:v,onDescending:j}),(0,e.jsx)(l,{searchText:y,sortOrder:D,descending:R})]})})})},a=function(h){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(v,j){return h.onSearchText(j)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{selected:h.sortOrder,options:Object.keys(o),width:"100%",lineHeight:"19px",onSelected:function(v){return h.onSortOrder(v)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:h.descending?"arrow-down":"arrow-up",height:"19px",tooltip:h.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return h.onDescending(!h.descending)}})})]})})},l=function(h){var v=(0,r.Oc)(),j=v.act,E=v.data,y=E.items,M=(0,i.XZ)(h.searchText,function(b){return b[0]}),_=!1,D=Object.entries(y).map(function(b){var T=Object.entries(b[1]).filter(M).map(function(R){return R[1]}).sort(o[h.sortOrder]);if(T.length!==0)return h.descending&&(T=T.reverse()),_=!0,(0,e.jsx)(f,{title:b[0],items:T},b[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:_?D:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(h){var v=(0,r.Oc)().act,j=h.title,E=h.items,y=d(h,["title","items"]);return(0,e.jsx)(s.Nt,x({open:!0,title:j},y,{children:E.map(function(M){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:M.name}),(0,e.jsx)(s.$n,{width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return v("purchase",{cat:j,name:M.name,price:M.price,restriction:M.restriction})},children:M.price.toLocaleString("en-US")}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},M.name)})}))}},43966:function(O,m,n){"use strict";n.r(m),n.d(m,{CharacterDirectory:function(){return x}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103),p=function(a){switch(a){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"}},x=function(a){var l=function(W){D(W)},f=(0,t.Oc)(),h=f.act,v=f.data,j=v.personalVisibility,E=v.personalTag,y=v.personalErpTag,M=(0,i.useState)(null),_=M[0],D=M[1],b=(0,i.useState)(!1),T=b[0],R=b[1];return(0,e.jsx)(s.p8,{width:640,height:480,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:_&&(0,e.jsx)(d,{overlay:_,onOverlay:l})||(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:T?"toggle-on":"toggle-off",selected:T,onClick:function(){return R(!T)},children:T?"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 h("setVisible",{overwrite_prefs:T})},children:j?"Shown":"Not Shown"})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return h("setTag",{overwrite_prefs:T})},children:E})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return h("setErpTag",{overwrite_prefs:T})},children:y})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return h("editAd",{overwrite_prefs:T})},children:"Edit Ad"})})]})}),(0,e.jsx)(o,{onOverlay:l})]})})})},d=function(a){return(0,e.jsxs)(r.wn,{title:a.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return a.onOverlay(null)},children:"Back"}),children:[(0,e.jsx)(r.wn,{title:"Species",children:(0,e.jsx)(r.az,{children:a.overlay.species})}),(0,e.jsx)(r.wn,{title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:p(a.overlay.tag),children:a.overlay.tag})}),(0,e.jsx)(r.wn,{title:"ERP Tag",children:(0,e.jsx)(r.az,{children:a.overlay.erptag})}),(0,e.jsx)(r.wn,{title:"Character Ad",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:a.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:a.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:a.overlay.flavor_text||"Unset."})})]})},o=function(a){var l=function(L){_(L)},f=function(L){T(L)},h=(0,t.Oc)(),v=h.act,j=h.data,E=j.directory,y=(0,i.useState)("name"),M=y[0],_=y[1],D=(0,i.useState)("name"),b=D[0],T=D[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return v("refresh")},children:"Refresh"}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(c,{id:"name",sortId:M,sortOrder:b,onSortId:l,onSortOrder:f,children:"Name"}),(0,e.jsx)(c,{id:"species",sortId:M,sortOrder:b,onSortId:l,onSortOrder:f,children:"Species"}),(0,e.jsx)(c,{id:"tag",sortId:M,sortOrder:b,onSortId:l,onSortOrder:f,children:"Vore Tag"}),(0,e.jsx)(c,{id:"erptag",sortId:M,sortOrder:b,onSortId:l,onSortOrder:f,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),E.sort(function(R,L){var W=b?1:-1;return R[M].localeCompare(L[M])*W}).map(function(R,L){return(0,e.jsxs)(r.XI.Row,{backgroundColor:p(R.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:R.name}),(0,e.jsx)(r.XI.Cell,{children:R.species}),(0,e.jsx)(r.XI.Cell,{children:R.tag}),(0,e.jsx)(r.XI.Cell,{children:R.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return a.onOverlay(R)},color:"transparent",icon:"sticky-note",mr:1,children:"View"})})]},L)})]})})},c=function(a){var l=a.id,f=a.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:a.sortId!==l&&"transparent",onClick:function(){a.sortId===l?a.onSortOrder(!a.sortOrder):(a.onSortId(l),a.onSortOrder(!0))},children:[f,a.sortId===l&&(0,e.jsx)(r.In,{name:a.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},15559:function(O,m,n){"use strict";n.r(m),n.d(m,{CheckboxInput:function(){return c}});var e=n(62161),i=n(61282),t=n(28277),r=n(7081),s=n(16754),p=n(19996),x=n(42103),d=n(5335),o=n(44149),c=function(a){var l=(0,r.Oc)().data,f=l.items,h=f===void 0?[]:f,v=l.min_checked,j=l.max_checked,E=l.message,y=l.timeout,M=l.title,_=(0,t.useState)([]),D=_[0],b=_[1],T=(0,t.useState)(""),R=T[0],L=T[1],W=(0,i.XZ)(R,function(k){return k}),$=h.filter(W),F=function(k){var X=D.includes(k)?D.filter(function(G){return G!==k}):[].concat(D,[k]);b(X)};return(0,e.jsxs)(x.p8,{title:M,width:425,height:300,children:[!!y&&(0,e.jsx)(o.Loader,{value:y}),(0,e.jsx)(x.p8.Content,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.IC,{info:!0,textAlign:"center",children:[(0,i.jT)(E)," ",v>0&&" (Min: "+v+")",j<50&&" (Max: "+j+")"]})}),(0,e.jsx)(s.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(s.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(s.XI,{children:$.map(function(k,X){return(0,e.jsx)(p.Hj,{className:"candystripe",children:(0,e.jsx)(p.nA,{children:(0,e.jsx)(s.$n.Checkbox,{checked:D.includes(k),disabled:D.length>=j&&!D.includes(k),fluid:!0,onClick:function(){return F(k)},children:k})})},X)})})})}),(0,e.jsxs)(s.BJ,{m:1,mb:0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(s.In,{name:"search",mt:.5})})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.pd,{fluid:!0,value:R,onInput:function(k,X){return L(X)}})})]}),(0,e.jsx)(s.BJ.Item,{mt:.7,children:(0,e.jsx)(s.wn,{children:(0,e.jsx)(d.InputButtons,{input:D})})})]})})]})}},29361:function(O,m,n){"use strict";n.r(m),n.d(m,{ChemDispenserBeaker:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(78924),s=n(58820),p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.isBeakerLoaded,l=c.beakerCurrentVolume,f=c.beakerMaxVolume,h=c.beakerContents,v=h===void 0?[]:h;return(0,e.jsx)(t.wn,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(t.az,{children:[!!a&&(0,e.jsxs)(t.az,{inline:!0,color:"label",mr:2,children:[l," / ",f," units"]}),(0,e.jsx)(t.$n,{icon:"eject",disabled:!a,onClick:function(){return o("ejectBeaker")},children:"Eject"})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:a,beakerContents:v,buttons:function(j){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return o("remove",{reagent:j.id,amount:-1})},children:"Isolate"}),s.removeAmounts.map(function(E,y){return(0,e.jsx)(t.$n,{onClick:function(){return o("remove",{reagent:j.id,amount:E})},children:E},y)}),(0,e.jsx)(t.$n,{onClick:function(){return o("remove",{reagent:j.id,amount:j.volume})},children:"ALL"})]})}})})}},64776:function(O,m,n){"use strict";n.r(m),n.d(m,{ChemDispenserChemicals:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){for(var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.chemicals,c=o===void 0?[]:o,a=[],l=0;l<(c.length+1)%3;l++)a.push(!0);return(0,e.jsx)(t.wn,{title:d.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:!0,children:(0,e.jsxs)(t.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[c.map(function(f,h){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 x("dispense",{reagent:f.id})},children:f.name+" ("+f.volume+")"})},h)}),a.map(function(f,h){return(0,e.jsx)(t.so.Item,{grow:"1",basis:"25%",height:"20px"},h)})]})})}},38908:function(O,m,n){"use strict";n.r(m),n.d(m,{ChemDispenserSettings:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(58820),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.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:r.dispenseAmounts.map(function(a,l){return(0,e.jsx)(t.$n,{textAlign:"center",selected:c===a,m:"0",onClick:function(){return d("amount",{amount:a})},children:a+"u"},l)})}),(0,e.jsx)(t.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(t.Ap,{step:1,stepPixelSize:5,value:c,minValue:1,maxValue:120,onDrag:function(a,l){return d("amount",{amount:l})}})})]})})}},58820:function(O,m,n){"use strict";n.r(m),n.d(m,{dispenseAmounts:function(){return e},removeAmounts:function(){return i}});var e=[5,10,20,30,40,60],i=[1,5,10]},66119:function(O,m,n){"use strict";n.r(m),n.d(m,{ChemDispenser:function(){return p}});var e=n(62161),i=n(42103),t=n(29361),r=n(64776),s=n(38908),p=function(x){return(0,e.jsx)(i.p8,{width:390,height:655,children:(0,e.jsxs)(i.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(s.ChemDispenserSettings,{}),(0,e.jsx)(r.ChemDispenserChemicals,{}),(0,e.jsx)(t.ChemDispenserBeaker,{})]})})}},9136:function(O,m,n){"use strict";n.r(m)},16028:function(O,m,n){"use strict";n.r(m),n.d(m,{analyzeModalBodyOverride:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=s.args.analysis;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:d.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:o.name}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:(o.desc||"").length>0?o.desc:"N/A"}),o.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood type",children:o.blood_type}),(0,e.jsx)(t.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:o.blood_dna})]}),!d.condi&&(0,e.jsx)(t.$n,{icon:d.printing?"spinner":"print",disabled:d.printing,iconSpin:!!d.printing,ml:"0.5rem",onClick:function(){return x("print",{idx:o.idx,beaker:s.args.beaker})},children:"Print"})]})})})}},88737:function(O,m,n){"use strict";n.r(m),n.d(m,{ChemMasterBeaker:function(){return x}});var e=n(62161),i=n(7081),t=n(16754),r=n(78924),s=n(86471),p=n(16793),x=function(d){var o=(0,i.Oc)().act,c=d.beaker,a=d.beakerReagents,l=d.bufferNonEmpty,f=l?(0,e.jsx)(t.$n.Confirm,{icon:"eject",disabled:!c,onClick:function(){return o("eject")},children:"Eject and Clear Buffer"}):(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return o("eject")},children:"Eject and Clear Buffer"});return(0,e.jsx)(t.wn,{title:"Beaker",buttons:f,children:c?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:a,buttons:function(h,v){return(0,e.jsxs)(t.az,{mb:v0?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:l,buttons:function(f,h){return(0,e.jsxs)(t.az,{mb:h0}),(0,e.jsx)(x.ChemMasterBuffer,{mode:y,bufferReagents:E}),(0,e.jsx)(d.ChemMasterProduction,{isCondiment:l,bufferNonEmpty:E.length>0,loaded_pill_bottle:M,loaded_pill_bottle_name:_||"",loaded_pill_bottle_contents_len:D||0,loaded_pill_bottle_storage_slots:b||0,pillsprite:T,bottlesprite:R})]})]})};(0,r.modalRegisterBodyOverride)("analyze",s.analyzeModalBodyOverride)},25453:function(O,m,n){"use strict";n.r(m)},42918:function(O,m,n){"use strict";n.r(m),n.d(m,{ClawMachine:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.wintick,a=o.instructions,l=o.gameStatus,f=o.winscreen,h;return l==="CLAWMACHINE_NEW"?h=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Pay to Play!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),a,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("newgame")},children:"Start"})]}):l==="CLAWMACHINE_END"?h=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Thank you for playing!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),f,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("return")},children:"Close"})]}):l==="CLAWMACHINE_ON"&&(h=(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[1,7],good:[8,1/0]},value:c,minValue:0,maxValue:10})})}),(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),a,(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Up"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Left"}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Right"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Down"})]})]})),(0,e.jsx)(r.p8,{children:(0,e.jsx)("center",{children:h})})}},76914:function(O,m,n){"use strict";n.r(m),n.d(m,{Cleanbot:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.on,a=o.open,l=o.locked,f=o.version,h=o.blood,v=o.vocal,j=o.wet_floors,E=o.spray_blood,y=o.rgbpanel,M=o.red_switch,_=o.green_switch,D=o.blue_switch;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:"Automatic Station Cleaner "+f,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return d("start")},children:c?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:a?"bad":"good",children:a?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood",children:(0,e.jsx)(t.$n,{fluid:!0,icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return d("blood")},children:h?"Clean":"Ignore"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return d("vocal")},children:v?"On":"Off"})})]})})||null,!l&&a&&(0,e.jsx)(t.wn,{title:"Maintenance Panel",children:y&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{fontSize:5.39,icon:M?"toggle-on":"toggle-off",backgroundColor:M?"red":"maroon",onClick:function(){return d("red_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:_?"toggle-on":"toggle-off",backgroundColor:_?"green":"darkgreen",onClick:function(){return d("green_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:D?"toggle-on":"toggle-off",backgroundColor:D?"blue":"darkblue",onClick:function(){return d("blue_switch")}})]})||(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Odd Looking Screw Twiddled",children:(0,e.jsx)(t.$n,{fluid:!0,selected:j,onClick:function(){return d("wet_floors")},icon:"screwdriver",children:j?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Weird Button Pressed",children:(0,e.jsx)(t.$n,{fluid:!0,color:"brown",selected:E,onClick:function(){return d("spray_blood")},icon:"screwdriver",children:E?"Yes":"No"})})]})})})||null]})})}},90307:function(O,m,n){"use strict";n.r(m),n.d(m,{viewRecordModalBodyOverride:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(79500),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.disk,a=o.podready,l=p.args,f=l.activerecord,h=l.realname,v=l.health,j=l.unidentity,E=l.strucenzymes,y=v.split(" - ");return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Records of "+h,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:h}),(0,e.jsx)(t.Ki.Item,{label:"Damage",children:y.length>1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:r.lm.damageType.oxy,inline:!0,children:y[0]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.toxin,inline:!0,children:y[2]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.brute,inline:!0,children:y[3]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.burn,inline:!0,children:y[1]})]}):(0,e.jsx)(t.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(t.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:j}),(0,e.jsx)(t.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Disk",children:[(0,e.jsx)(t.$n.Confirm,{disabled:!c,icon:"arrow-circle-down",onClick:function(){return d("disk",{option:"load"})},children:"Import"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"ui"})},children:"Export UI"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"ue"})},children:"Export UI and UE"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"se"})},children:"Export SE"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{disabled:!a,icon:"user-plus",onClick:function(){return d("clone",{ref:f})},children:"Clone"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return d("del_rec")},children:"Delete"})]})]})})}},57981:function(O,m,n){"use strict";n.r(m),n.d(m,{CloningConsoleNavigation:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.menu;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:o===1,icon:"home",onClick:function(){return x("menu",{num:1})},children:"Main"}),(0,e.jsx)(t.tU.Tab,{selected:o===2,icon:"folder",onClick:function(){return x("menu",{num:2})},children:"Records"})]})}},16981:function(O,m,n){"use strict";n.r(m),n.d(m,{CloningConsoleStatus:function(){return p},CloningConsoleTemp:function(){return s}});var e=n(62161),i=n(7081),t=n(16754);function r(){return r=Object.assign||function(x){for(var d=1;d=150?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:b.biomass>=150?"circle":"circle-o"}),"\xA0",b.biomass]}),R]},T)}):(0,e.jsx)(s.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},x=function(d){var o=(0,r.Oc)(),c=o.act,a=o.data,l=a.records;return l.length?(0,e.jsx)(s.az,{mt:"0.5rem",children:l.map(function(f,h){return(0,e.jsx)(s.$n,{icon:"user",mb:"0.5rem",onClick:function(){return c("view_rec",{ref:f.record})},children:f.realname},h)})}):(0,e.jsx)(s.so,{height:"100%",children:(0,e.jsxs)(s.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(s.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No records found."]})})}},57508:function(O,m,n){"use strict";n.r(m),n.d(m,{CloningConsole:function(){return c}});var e=n(62161),i=n(7081),t=n(16754),r=n(86471),s=n(42103),p=n(90307),x=n(57981),d=n(16981),o=n(37651),c=function(a){var l=(0,i.Oc)().data,f=l.menu,h=[];return h[1]=(0,e.jsx)(o.CloningConsoleMain,{}),h[2]=(0,e.jsx)(o.CloningConsoleRecords,{}),(0,r.modalRegisterBodyOverride)("view_rec",p.viewRecordModalBodyOverride),(0,e.jsxs)(s.p8,{children:[(0,e.jsx)(r.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(s.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d.CloningConsoleTemp,{}),(0,e.jsx)(d.CloningConsoleStatus,{}),(0,e.jsx)(x.CloningConsoleNavigation,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,flexGrow:!0,children:h[f]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]})}},25829:function(O,m,n){"use strict";n.r(m)},61942:function(O,m,n){"use strict";n.r(m),n.d(m,{ColorMateHSV:function(){return p},ColorMateTint:function(){return s}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=function(x){var d=(0,t.Oc)().act;return(0,e.jsx)(r.$n,{fluid:!0,icon:"paint-brush",onClick:function(){return d("choose_color")},children:"Select new color"})},p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.buildhue,l=c.buildsat,f=c.buildval;return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(r.XI.Cell,{width:"85%",children:(0,e.jsx)(r.Ap,{minValue:0,maxValue:360,step:1,value:a,format:function(h){return(0,i.Mg)(h)},onDrag:function(h,v){return o("set_hue",{buildhue:v})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:l,format:function(h){return(0,i.Mg)(h,2)},onDrag:function(h,v){return o("set_sat",{buildsat:v})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:f,format:function(h){return(0,i.Mg)(h,2)},onDrag:function(h,v){return o("set_val",{buildval:v})}})})]})]})}},17852:function(O,m,n){"use strict";n.r(m),n.d(m,{ColorMateMatrix:function(){return s}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=function(p){var x=(0,t.Oc)(),d=x.act,o=x.data,c=o.matrixcolors;return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rr,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:1,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gr,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:4,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.br,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:7,value:l})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rg,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:2,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gg,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:5,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bg,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:8,value:l})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rb,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:3,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gb,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:6,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bb,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:9,value:l})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["CR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cr,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:10,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cg,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:11,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cb,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a,l){return d("set_matrix_color",{color:12,value:l})}})]})]}),(0,e.jsxs)(r.XI.Cell,{width:"40%",children:[(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})}},11145:function(O,m,n){"use strict";n.r(m),n.d(m,{ColorMate:function(){return x}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(61942),p=n(17852),x=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.activemode,f=a.temp,h=a.item,v=[];return v[1]=(0,e.jsx)(s.ColorMateTint,{}),v[2]=(0,e.jsx)(s.ColorMateHSV,{}),v[3]=(0,e.jsx)(p.ColorMateMatrix,{}),(0,e.jsx)(r.p8,{width:980,height:720,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,h&&Object.keys(h).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)(t._V,{src:"data:image/jpeg;base64, "+h.sprite,style:{width:"100%",height:"100%"}})]})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)(t._V,{src:"data:image/jpeg;base64, "+h.preview,style:{width:"100%",height:"100%"}})]})})]}),(0,e.jsxs)(t.tU,{fluid:!0,children:[(0,e.jsx)(t.tU.Tab,{selected:l===1,onClick:function(){return c("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(t.tU.Tab,{selected:l===2,onClick:function(){return c("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(t.tU.Tab,{selected:l===3,onClick:function(){return c("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",h.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 c("paint")},children:"Paint"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eraser",onClick:function(){return c("clear")},children:"Clear"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return c("drop")},children:"Eject"})]}),(0,e.jsx)(t.XI.Cell,{width:"66%",children:v[l]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})}},99390:function(O,m,n){"use strict";n.r(m)},57925:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicationsConsoleAuth:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.authenticated,c=d.is_ai,a=d.esc_status,l=d.esc_callable,f=d.esc_recallable,h;return o?c?h="AI":o===1?h="Command":o===2?h="Site Director":h="ERROR: Report This Bug!":h="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Authentication",children:(0,e.jsx)(t.Ki,{children:c&&(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:o?"sign-out-alt":"id-card",selected:o,onClick:function(){return x("auth")},children:o?"Log Out ("+h+")":"Log In"})})})}),(0,e.jsx)(t.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(t.Ki,{children:[!!a&&(0,e.jsx)(t.Ki.Item,{label:"Status",children:a}),!!l&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"rocket",disabled:!o,onClick:function(){return x("callshuttle")},children:"Call Shuttle"})}),!!f&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"times",disabled:!o||c,onClick:function(){return x("cancelshuttle")},children:"Recall Shuttle"})})]})})]})}},34116:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicationsConsoleContent:function(){return d}});var e=n(62161),i=n(7081),t=n(16754),r=n(57925),s=n(73612),p=n(72298),x=n(19467),d=function(c){var a=(0,i.Oc)().data,l=a.menu_state,f=[];return f[1]=(0,e.jsx)(s.CommunicationsConsoleMain,{}),f[2]=(0,e.jsx)(x.CommunicationsConsoleStatusDisplay,{}),f[3]=(0,e.jsx)(p.CommunicationsConsoleMessage,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.CommunicationsConsoleAuth,{}),f[l]||(0,e.jsx)(o,{menu_state:l})]})},o=function(c){var a=c.menu_state;return(0,e.jsxs)(t.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",a,"Please report this to NT Technical Support."]})}},73612:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicationsConsoleMain:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.messages,c=d.msg_cooldown,a=d.emagged,l=d.cc_cooldown,f=d.str_security_level,h=d.levels,v=d.authmax,j=d.security_level,E=d.security_level_color,y=d.authenticated,M=d.atcsquelch,_=d.boss_short,D="View ("+o.length+")",b="Make Priority Announcement";c>0&&(b+=" ("+c+"s)");var T=a?"Message [UNKNOWN]":"Message "+_;l>0&&(T+=" ("+l+"s)");var R=f,L=h.map(function(W){return(0,e.jsx)(t.$n,{icon:W.icon,disabled:!y,selected:W.id===j,onClick:function(){return x("newalertlevel",{level:W.id})},children:W.name},W.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:!v||c>0,onClick:function(){return x("announce")},children:b})}),!!a&&(0,e.jsxs)(t.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(t.$n,{icon:"broadcast-tower",color:"red",disabled:!v||l>0,onClick:function(){return x("MessageSyndicate")},children:T}),(0,e.jsx)(t.$n,{icon:"sync-alt",disabled:!v,onClick:function(){return x("RestoreBackup")},children:"Reset Relays"})]})||(0,e.jsx)(t.Ki.Item,{label:"Transmit",children:(0,e.jsx)(t.$n,{icon:"broadcast-tower",disabled:!v||l>0,onClick:function(){return x("MessageCentCom")},children:T})})]})}),(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:E,children:R}),(0,e.jsx)(t.Ki.Item,{label:"Change Alert",children:L}),(0,e.jsx)(t.Ki.Item,{label:"Displays",children:(0,e.jsx)(t.$n,{icon:"tv",disabled:!y,onClick:function(){return x("status")},children:"Change Status Displays"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(t.$n,{icon:"folder-open",disabled:!y,onClick:function(){return x("messagelist")},children:D})}),(0,e.jsx)(t.Ki.Item,{label:"Misc",children:(0,e.jsx)(t.$n,{icon:"microphone",disabled:!y,selected:M,onClick:function(){return x("toggleatc")},children:M?"ATC Relay Disabled":"ATC Relay Enabled"})})]})})]})}},72298:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicationsConsoleMessage:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.message_current,c=d.message_deletion_allowed,a=d.authenticated,l=d.messages;if(o)return(0,e.jsx)(t.wn,{title:o.title,buttons:(0,e.jsx)(t.$n,{icon:"times",disabled:!a,onClick:function(){return x("messagelist")},children:"Return To Message List"}),children:(0,e.jsx)(t.az,{children:o.contents})});var f=l.map(function(h){return(0,e.jsxs)(t.Ki.Item,{label:h.title,children:[(0,e.jsx)(t.$n,{icon:"eye",disabled:!a,onClick:function(){return x("messagelist",{msgid:h.id})},children:"View"}),(0,e.jsx)(t.$n,{icon:"times",disabled:!a||!c,onClick:function(){return x("delmessage",{msgid:h.id})},children:"Delete"})]},h.id)});return(0,e.jsx)(t.wn,{title:"Messages Received",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return x("main")},children:"Back To Main Menu"}),children:(0,e.jsx)(t.Ki,{children:l.length&&f||(0,e.jsx)(t.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})}},19467:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicationsConsoleStatusDisplay:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.stat_display,c=d.authenticated,a=o.presets.map(function(l){return(0,e.jsx)(t.$n,{selected:l.name===o.type,disabled:!c,onClick:function(){return x("setstat",{statdisp:l.name})},children:l.label},l.name)});return(0,e.jsx)(t.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return x("main")},children:"Back To Main Menu"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Presets",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!c,onClick:function(){return x("setmsg1")},children:o.line_1})}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!c,onClick:function(){return x("setmsg2")},children:o.line_2})})]})})}},59421:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicationsConsole:function(){return r}});var e=n(62161),i=n(42103),t=n(34116),r=function(s){return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},52994:function(O,m,n){"use strict";n.r(m)},59546:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicatorContactTab:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(74293),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.knownDevices;return(0,e.jsx)(r.wn,{title:"Known Devices",children:a.length&&(0,e.jsx)(r.XI,{children:a.map(function(l){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:(0,i.jT)(l.name)}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:l.address}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){o("copy",{copy:l.address}),o("switch_tab",{switch_tab:s.PHONTAB})},children:"Copy"}),(0,e.jsx)(r.$n,{icon:"phone",onClick:function(){o("dial",{dial:l.address}),o("copy",{copy:l.address}),o("switch_tab",{switch_tab:s.PHONTAB})},children:"Call"}),(0,e.jsx)(r.$n,{icon:"comment-alt",onClick:function(){o("copy",{copy:l.address}),o("copy_name",{copy_name:l.name}),o("switch_tab",{switch_tab:s.MESSSUBTAB})},children:"Msg"})]})]})]},l.address)})})||(0,e.jsx)(r.az,{children:"No devices detected on your local NTNet region."})})}},28215:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicatorFooter:function(){return d},CommunicatorHeader:function(){return x},TemplateError:function(){return p},VideoComm:function(){return o}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(74293),p=function(c){return(0,e.jsxs)(r.wn,{title:"Error!",children:["You tried to access tab #",c.currentTab,", but there was no template defined!"]})},x=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.time,v=f.connectionStatus,j=f.owner,E=f.occupation;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{color:"average",children:h}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.In,{color:v===1?"good":"bad",name:v===1?"signal":"exclamation-triangle"})}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,i.jT)(j)}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,i.jT)(E)})]})})},d=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.flashlight,v=c.videoSetting,j=c.setVideoSetting;return(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:v===2?"60%":"80%",children:(0,e.jsx)(r.$n,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return l("switch_tab",{switch_tab:s.HOMETAB})}})}),(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:h,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return l("Light")}})}),v===2&&(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return j(1)}})})]})},o=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.mapRef,v=c.videoSetting,j=c.setVideoSetting;return v===0?(0,e.jsxs)(r.az,{width:"100%",height:"100%",children:[(0,e.jsx)(r.D1,{width:"100%",height:"95%",params:{id:h,type:"map"}}),(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return j(1)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return l("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return l("hang_up")}})})]})]}):v===1?(0,e.jsxs)(r.az,{style:{position:"absolute",right:"5px",bottom:"50px",zIndex:"1"},children:[(0,e.jsx)(r.wn,{p:0,m:0,children:(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return j(2)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return j(0)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return l("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return l("hang_up")}})})]})}),(0,e.jsx)(r.D1,{width:"200px",height:"200px",params:{id:h,type:"map"}})]}):null}},46873:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicatorHomeTab:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.homeScreen;return(0,e.jsx)(t.so,{mt:2,wrap:"wrap",align:"center",justify:"center",children:c.map(function(a){return(0,e.jsxs)(t.so.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.jsx)(t.$n,{style:{borderRadius:"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return d("switch_tab",{switch_tab:a.number})},children:(0,e.jsx)(t.In,{spin:s(a.module),color:s(a.module)?"bad":null,name:a.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(t.az,{children:a.module})]},a.number)})})},s=function(p){var x=(0,i.Oc)().data,d=x.voice_mobs,o=x.communicating,c=x.requestsReceived,a=x.invitesSent,l=x.video_comm;return!!(p==="Phone"&&(d.length||o.length||c.length||a.length||l))}},51445:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicatorMessageSubTab:function(){return s}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=o.clipboardMode,h=o.onClipboardMode,v=l.targetAddress,j=l.targetAddressName,E=l.imList;return f?(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"90%",children:x("Conversation with ",(0,i.jT)(j),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:f,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return h(!f)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:E.map(function(y,M){return(y.to_address===v||y.address===v)&&(0,e.jsxs)(r.az,{className:p(y,v)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[p(y,v)?"You":"Them",": ",y.im]},M)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return a("message",{message:v})},children:"Message"})]}):(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"100%",children:x("Conversation with ",(0,i.jT)(j),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:f,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return h(!f)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:E.map(function(y,M,_){return(y.to_address===v||y.address===v)&&(0,e.jsx)(r.az,{textAlign:p(y,v)?"right":"left",mb:1,children:(0,e.jsx)(r.az,{maxWidth:"75%",className:d(y,v,M-1,_),inline:!0,children:(0,i.jT)(y.im)})},M)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return a("message",{message:v})},children:"Message"})]})},p=function(o,c){return o.address!==c},x=function(o,c,a){return(o+c).length>a?c.length>a?c.slice(0,a)+"...":c:o+c},d=function(o,c,a,l){if(a<0||a>l.length)return p(o,c)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var f=p(o,c),h=p(l[a],c);return f&&h?"TinderMessage_Subsequent_Sent":!f&&!h?"TinderMessage_Subsequent_Received":f?"TinderMessage_First_Sent":"TinderMessage_First_Received"}},26217:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicatorMessageTab:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(74293),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.imContacts;return(0,e.jsx)(r.wn,{title:"Messaging",children:a.length&&(0,e.jsx)(r.XI,{children:a.map(function(l){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:[(0,i.jT)(l.name),":"]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:l.address}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){o("copy",{copy:l.address}),o("copy_name",{copy_name:l.name}),o("switch_tab",{switch_tab:s.MESSSUBTAB})},children:"View Conversation"})})]})]},l.address)})})||(0,e.jsxs)(r.az,{children:["You haven't sent any messages yet.",(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return o("switch_tab",{switch_tab:s.CONTTAB})},children:"Contacts"})]})})}},28953:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicatorNewsTab:function(){return s}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=function(p){var x=(0,t.Oc)(),d=x.act,o=x.data,c=o.feeds,a=o.target_feed,l=o.latest_news;return(0,e.jsx)(r.wn,{title:"News",stretchContents:!0,height:"100%",children:!c.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||a&&(0,e.jsx)(r.wn,{title:(0,i.jT)(a.name)+" by "+(0,i.jT)(a.author),buttons:(0,e.jsx)(r.$n,{icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:null})},children:"Back"}),children:a.messages.map(function(f){return(0,e.jsxs)(r.wn,{children:["- ",(0,i.jT)(f.body),!!f.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+f.img}),(0,i.jT)(f.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",f.message_type," by"," ",(0,i.jT)(f.author)," - ",f.time_stamp,"]"]})]},f.ref)})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",children:(0,e.jsx)(r.wn,{children:l.map(function(f){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,i.jT)(f.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:f.index})},children:"Go to"})]}),"- ",(0,i.jT)(f.body),!!f.img&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",f.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",f.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:f.author})," ","- ",f.time_stamp,"]"]})]},f.index)})})}),(0,e.jsx)(r.wn,{title:"News Feeds",children:c.map(function(f){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:f.index})},children:f.name},f.index)})})]})})}},47106:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicatorNoteTab:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.note;return(0,e.jsx)(t.wn,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("edit")},children:"Edit Notes"}),children:(0,e.jsx)(t.wn,{color:"average",width:"100%",height:"100%",style:{wordBreak:"break-all",overflowY:"auto"},children:o})})}},10674:function(O,m,n){"use strict";n.r(m),n.d(m,{CommunicatorPhoneTab:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(74293),p=function(a){for(var l=(0,t.Oc)(),f=l.act,h=l.data,v=h.selfie_mode,j=h.targetAddress,E=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],y=E.map(function(D){return(0,e.jsx)(r.$n,{fontSize:2,fluid:!0,onClick:function(){return f("add_hex",{add_hex:D})},children:D},D)}),M=[],_=0;_a?"average":d>l?"bad":"good"}},74293:function(O,m,n){"use strict";n.r(m),n.d(m,{CONTTAB:function(){return t},HOMETAB:function(){return e},MANITAB:function(){return o},MESSSUBTAB:function(){return s},MESSTAB:function(){return r},NEWSTAB:function(){return p},NOTETAB:function(){return x},PHONTAB:function(){return i},SETTTAB:function(){return c},WTHRTAB:function(){return d},notFound:function(){return l},tabs:function(){return a}});var e=1,i=2,t=3,r=4,s=40,p=5,x=6,d=7,o=8,c=9,a=[e,i,t,r,s,p,x,d,o,c];function l(f){return a.includes(f)}},42320:function(O,m,n){"use strict";n.r(m),n.d(m,{Communicator:function(){return y}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103),p=n(58044),x=n(59546),d=n(28215),o=n(46873),c=n(51445),a=n(26217),l=n(28953),f=n(47106),h=n(10674),v=n(4435),j=n(81450),E=n(74293),y=function(){var M=function(ee){G(ee)},_=(0,t.Oc)(),D=_.act,b=_.data,T=b.currentTab,R=b.video_comm,L=[],W=(0,i.useState)(0),$=W[0],F=W[1],k=(0,i.useState)(!1),X=k[0],G=k[1];return L[E.tabs[0]]=(0,e.jsx)(o.CommunicatorHomeTab,{}),L[E.tabs[1]]=(0,e.jsx)(h.CommunicatorPhoneTab,{}),L[E.tabs[2]]=(0,e.jsx)(x.CommunicatorContactTab,{}),L[E.tabs[3]]=(0,e.jsx)(a.CommunicatorMessageTab,{}),L[E.tabs[4]]=(0,e.jsx)(c.CommunicatorMessageSubTab,{clipboardMode:X,onClipboardMode:M}),L[E.tabs[5]]=(0,e.jsx)(l.CommunicatorNewsTab,{}),L[E.tabs[6]]=(0,e.jsx)(f.CommunicatorNoteTab,{}),L[E.tabs[7]]=(0,e.jsx)(j.CommunicatorWeatherTab,{}),L[E.tabs[8]]=(0,e.jsx)(p.CrewManifestContent,{}),L[E.tabs[9]]=(0,e.jsx)(v.CommunicatorSettingsTab,{}),(0,e.jsx)(s.p8,{width:475,height:700,children:(0,e.jsxs)(s.p8.Content,{children:[R&&(0,e.jsx)(d.VideoComm,{videoSetting:$,setVideoSetting:F}),(!R||$!==0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.CommunicatorHeader,{}),(0,e.jsx)(r.az,{height:"88%",mb:1,style:{overflowY:"auto"},children:L[T]||(0,E.notFound)(T)&&(0,e.jsx)(d.TemplateError,{currentTab:T})}),(0,e.jsx)(d.CommunicatorFooter,{videoSetting:$,setVideoSetting:F})]})]})})}},96273:function(O,m,n){"use strict";n.r(m)},62311:function(O,m,n){"use strict";n.r(m),n.d(m,{CfStep1:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(t.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(t.az,{mt:3,children:(0,e.jsx)(t.XI,{width:"100%",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return p("pick_device",{pick:"1"})},children:"Laptop"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"tablet-alt",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return p("pick_device",{pick:"2"})},children:"Tablet"})})]})})})]})}},78820:function(O,m,n){"use strict";n.r(m),n.d(m,{CfStep2:function(){return f}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754);function s(h,v){return v||(v=h.slice(0)),h.raw=v,h}function p(){var h=s(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return p=function(){return h},h}function x(){var h=s(["\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 h},h}function d(){var h=s(["\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 h},h}function o(){var h=s(["\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 o=function(){return h},h}function c(){var h=s(["\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 c=function(){return h},h}function a(){var h=s(["\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 a=function(){return h},h}function l(){var h=s(["\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 l=function(){return h},h}var f=function(h){var v=(0,t.Oc)(),j=v.act,E=v.data,y=E.totalprice,M=E.hw_battery,_=E.hw_disk,D=E.hw_netcard,b=E.hw_nanoprint,T=E.hw_card,R=E.devtype,L=E.hw_cpu,W=E.hw_tesla;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:[y,"\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,i.c1)(p()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:M===1,onClick:function(){return j("hw_battery",{battery:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:M===2,onClick:function(){return j("hw_battery",{battery:"2"})},children:"Upgraded"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:M===3,onClick:function(){return j("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,i.c1)(x()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:_===1,onClick:function(){return j("hw_disk",{disk:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:_===2,onClick:function(){return j("hw_disk",{disk:"2"})},children:"Upgraded"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:_===3,onClick:function(){return j("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,i.c1)(d()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:D===0,onClick:function(){return j("hw_netcard",{netcard:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:D===1,onClick:function(){return j("hw_netcard",{netcard:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:D===2,onClick:function(){return j("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,i.c1)(o()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:b===0,onClick:function(){return j("hw_nanoprint",{print:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:b===1,onClick:function(){return j("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,i.c1)(c()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:T===0,onClick:function(){return j("hw_card",{card:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:T===1,onClick:function(){return j("hw_card",{card:"1"})},children:"Standard"})})]}),R!==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,i.c1)(a()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:L===1,onClick:function(){return j("hw_cpu",{cpu:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:L===2,onClick:function(){return j("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,i.c1)(l()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:W===0,onClick:function(){return j("hw_tesla",{tesla:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:W===1,onClick:function(){return j("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 j("confirm_order")},children:"Confirm Order"})]})}},3777:function(O,m,n){"use strict";n.r(m),n.d(m,{CfStep3:function(){return t}});var e=n(62161),i=n(16754),t=function(r){var s=r.totalprice;return(0,e.jsxs)(i.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(i.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(i.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(i.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(i.az,{inline:!0,color:"good",children:[s,"\u20AE"]})]})]})}},44430:function(O,m,n){"use strict";n.r(m),n.d(m,{CfStep4:function(){return t}});var e=n(62161),i=n(16754),t=function(r){return(0,e.jsxs)(i.wn,{minHeight:"282px",children:[(0,e.jsx)(i.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(i.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},36229:function(O,m,n){"use strict";n.r(m),n.d(m,{ComputerFabricator:function(){return o}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(62311),p=n(78820),x=n(3777),d=n(44430),o=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,h=f.state,v=f.totalprice,j=[];return j[0]=(0,e.jsx)(s.CfStep1,{}),j[1]=(0,e.jsx)(p.CfStep2,{}),j[2]=(0,e.jsx)(x.CfStep3,{totalprice:v}),j[3]=(0,e.jsx)(d.CfStep4,{}),(0,e.jsx)(r.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),h!==0&&(0,e.jsx)(t.$n,{fluid:!0,mb:1,icon:"circle",onClick:function(){return l("clean_order")},children:"Clear Order"}),j[h]]})})}},75050:function(O,m,n){"use strict";n.r(m)},31681:function(O,m,n){"use strict";n.r(m),n.d(m,{CookingAppliance:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.temperature,a=o.optimalTemp,l=o.temperatureEnough,f=o.efficiency,h=o.containersRemovable,v=o.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:l?"good":"blue",value:c,maxValue:a,children:[(0,e.jsx)(t.zv,{value:c}),"\xB0C / ",a,"\xB0C"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(t.zv,{value:f}),"%"]})]})}),(0,e.jsx)(t.wn,{title:"Containers",children:(0,e.jsx)(t.Ki,{children:v.map(function(j,E){return j.empty?(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(E+1),children:(0,e.jsx)(t.$n,{onClick:function(){return d("slot",{slot:E+1})},children:"Empty"})},E):(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(E+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:!h,onClick:function(){return d("slot",{slot:E+1})},children:j.container||"No Container"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.z2,{color:j.progressText[0],value:j.progress,maxValue:1,children:j.progressText[1]})})]})},E)})})})]})})}},58044:function(O,m,n){"use strict";n.r(m),n.d(m,{CrewManifest:function(){return x},CrewManifestContent:function(){return d}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(79500),p=n(42103),x=function(){return(0,e.jsx)(p.p8,{width:400,height:600,children:(0,e.jsx)(p.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:f.map(function(h){return!!h.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:s.lm.manifest[h.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:h.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"})]}),h.elems.map(function(v){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,i.jT)(v.name)}),(0,e.jsx)(r.XI.Cell,{children:v.rank}),(0,e.jsx)(r.XI.Cell,{children:v.active})]},v.name+v.rank)})]})},h.cat)})})}},70117:function(O,m,n){"use strict";n.r(m),n.d(m,{CrewMonitor:function(){return c},CrewMonitorContent:function(){return a}});var e=n(62161),i=n(7402),t=n(22071),r=n(28277),s=n(7081),p=n(16754),x=n(42103),d=function(h){return h.dead?"Deceased":h.stat===1?"Unconscious":"Living"},o=function(h){return h.dead?"red":h.stat===1?"orange":"green"},c=function(){var h=function(T){y(T)},v=function(T){D(T)},j=(0,r.useState)(0),E=j[0],y=j[1],M=(0,r.useState)(1),_=M[0],D=M[1];return(0,e.jsx)(x.p8,{width:800,height:600,children:(0,e.jsx)(x.p8.Content,{children:(0,e.jsx)(a,{tabIndex:E,zoom:_,onTabIndex:h,onZoom:v})})})},a=function(h){var v=(0,s.Oc)().data,j=v.crewmembers,E=j===void 0?[]:j,y=(0,t.L)([(0,i.Ul)(function(_){return _.name}),(0,i.Ul)(function(_){return _==null?void 0:_.x}),(0,i.Ul)(function(_){return _==null?void 0:_.y}),(0,i.Ul)(function(_){return _==null?void 0:_.realZ})])(E),M=[];return M[0]=(0,e.jsx)(l,{crew:y}),M[1]=(0,e.jsx)(f,{zoom:h.zoom,onZoom:h.onZoom}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(p.tU,{children:[(0,e.jsxs)(p.tU.Tab,{selected:h.tabIndex===0,onClick:function(){return h.onTabIndex(0)},children:[(0,e.jsx)(p.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(p.tU.Tab,{selected:h.tabIndex===1,onClick:function(){return h.onTabIndex(1)},children:[(0,e.jsx)(p.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(p.az,{m:2,children:M[h.tabIndex]||(0,e.jsx)(p.az,{textColor:"red",children:"ERROR"})})]})},l=function(h){var v=(0,s.Oc)(),j=v.act,E=v.data,y=h.crew,M=E.isAI;return(0,e.jsxs)(p.XI,{children:[(0,e.jsxs)(p.XI.Row,{header:!0,children:[(0,e.jsx)(p.XI.Cell,{children:"Name"}),(0,e.jsx)(p.XI.Cell,{children:"Status"}),(0,e.jsx)(p.XI.Cell,{children:"Location"})]}),y.map(function(_){return(0,e.jsxs)(p.XI.Row,{children:[(0,e.jsxs)(p.XI.Cell,{children:[_.name," (",_.assignment,")"]}),(0,e.jsxs)(p.XI.Cell,{children:[(0,e.jsx)(p.az,{inline:!0,color:o(_),children:d(_)}),_.sensor_type>=2?(0,e.jsxs)(p.az,{inline:!0,children:["(",(0,e.jsx)(p.az,{inline:!0,color:"red",children:_.brute}),"|",(0,e.jsx)(p.az,{inline:!0,color:"orange",children:_.fire}),"|",(0,e.jsx)(p.az,{inline:!0,color:"green",children:_.tox}),"|",(0,e.jsx)(p.az,{inline:!0,color:"blue",children:_.oxy}),")"]}):null]}),(0,e.jsx)(p.XI.Cell,{children:_.sensor_type===3?M?(0,e.jsx)(p.$n,{fluid:!0,icon:"location-arrow",onClick:function(){return j("track",{track:_.ref})},children:_.area+" ("+_.x+", "+_.y+")"}):_.area+" ("+_.x+", "+_.y+", "+_.z+")":"Not Available"})]},_.ref)})]})},f=function(h){var v=(0,s.Oc)(),j=v.config,E=v.data,y=E.zoomScale,M=E.crewmembers;return(0,e.jsx)(p.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(p.tx,{zoomScale:y,onZoom:function(_){return h.onZoom(_)},children:M.filter(function(_){return _.sensor_type===3&&~~_.realZ===~~j.mapZLevel}).map(function(_){return(0,e.jsx)(p.tx.Marker,{x:_.x,y:_.y,zoom:h.zoom,icon:"circle",tooltip:_.name+" ("+_.assignment+")",color:o(_)},_.ref)})})})}},67268:function(O,m,n){"use strict";n.r(m),n.d(m,{CryoStorage:function(){return p},CryoStorageCrew:function(){return x},CryoStorageDefaultError:function(){return o},CryoStorageItems:function(){return d}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103),p=function(c){var a=(0,t.Oc)().data,l=a.real_name,f=a.allow_items,h=(0,i.useState)(0),v=h[0],j=h[1],E=[];return E[0]=(0,e.jsx)(x,{}),E[1]=f?(0,e.jsx)(d,{}):(0,e.jsx)(o,{}),(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:v===0,onClick:function(){return j(0)},children:"Crew"}),!!f&&(0,e.jsx)(r.tU.Tab,{selected:v===1,onClick:function(){return j(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",l,"."]}),E[v]]})})},x=function(c){var a=(0,t.Oc)().data,l=a.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:l.length&&l.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},d=function(c){var a=(0,t.Oc)().data,l=a.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:l.length&&l.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})},o=function(c){return(0,e.jsx)(r.az,{textColor:"red",children:"Disabled"})}},41628:function(O,m,n){"use strict";n.r(m),n.d(m,{CryoContent:function(){return p}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(17639),p=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.isOperating,f=a.hasOccupant,h=a.occupant,v=a.cellTemperature,j=a.cellTemperatureStatus,E=a.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Occupant",flexGrow:!0,buttons:(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return c("ejectOccupant")},disabled:!f,children:"Eject"}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Occupant",children:h.name||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:h.health/h.maxHealth,color:h.health>0?"good":"average",children:(0,e.jsx)(r.zv,{value:h.health,format:function(y){return(0,i.Mg)(y)}})})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:s.statNames[h.stat][0],children:s.statNames[h.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsx)(r.zv,{value:h.bodyTemperature,format:function(y){return(0,i.Mg)(y)+" K"}})}),(0,e.jsx)(r.Ki.Divider,{}),s.damageTypes.map(function(y,M){return(0,e.jsx)(r.Ki.Item,{label:y.label,children:(0,e.jsx)(r.z2,{value:h[y.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(r.zv,{value:h[y.type],format:function(_){return(0,i.Mg)(_)}})})},M)})]}):(0,e.jsx)(r.so,{height:"100%",textAlign:"center",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."]})})}),(0,e.jsx)(r.wn,{title:"Cell",buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return c("ejectBeaker")},disabled:!E,children:"Eject Beaker"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power",children:(0,e.jsx)(r.$n,{icon:"power-off",onClick:function(){return c(l?"switchOff":"switchOn")},selected:l,children:l?"On":"Off"})}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",color:j,children:[(0,e.jsx)(r.zv,{value:v})," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Beaker",children:(0,e.jsx)(x,{})})]})})]})},x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.isBeakerLoaded,f=a.beakerLabel,h=a.beakerVolume;return l?(0,e.jsxs)(e.Fragment,{children:[f||(0,e.jsx)(r.az,{color:"average",children:"No label"}),(0,e.jsx)(r.az,{color:!h&&"bad",children:h?(0,e.jsx)(r.zv,{value:h,format:function(v){return(0,i.Mg)(v)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(r.az,{color:"average",children:"No beaker loaded"})}},17639:function(O,m,n){"use strict";n.r(m),n.d(m,{damageTypes:function(){return e},statNames:function(){return i}});var e=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],i=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]]},85970:function(O,m,n){"use strict";n.r(m),n.d(m,{Cryo:function(){return r}});var e=n(62161),i=n(42103),t=n(41628),r=function(s){return(0,e.jsx)(i.p8,{width:520,height:470,children:(0,e.jsx)(i.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(t.CryoContent,{})})})}},40599:function(O,m,n){"use strict";n.r(m)},39699:function(O,m,n){"use strict";n.r(m),n.d(m,{DNAForensics:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.scan_progress,a=o.scanning,l=o.bloodsamp,f=o.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:a,disabled:!l,icon:"power-off",onClick:function(){return d("scanItem")},children:a?"Halt Scan":"Begin Scan"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"eject",onClick:function(){return d("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:c,maxValue:100})})})}),(0,e.jsx)(t.wn,{title:"Blood Sample",children:l&&(0,e.jsxs)(t.az,{children:[l,(0,e.jsx)(t.az,{color:"label",children:f})]})||(0,e.jsx)(t.az,{color:"bad",children:"No blood sample inserted."})})]})})}},63501:function(O,m,n){"use strict";n.r(m),n.d(m,{DNAModifierBlocks:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){for(var p=function(j){for(var E=function(D){var b=D+1;M.push((0,e.jsx)(t.$n,{selected:o===y&&c===b,mb:"0",onClick:function(){return x(l,{block:y,subblock:b})},children:f[j+D]}))},y=j/a+1,M=[],_=0;_E,icon:"syringe",onClick:function(){return h("injectRejuvenators",{amount:M})},children:M},_)}),(0,e.jsx)(t.$n,{disabled:E<=0,icon:"syringe",onClick:function(){return h("injectRejuvenators",{amount:E})},children:"All"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:y||"No label"}),E?(0,e.jsxs)(t.az,{color:"good",children:[E," unit",E===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."]})})}},25475:function(O,m,n){"use strict";n.r(m),n.d(m,{DNAModifierMainBuffers:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(x){var d=(0,i.Oc)().data,o=d.buffers,c=o.map(function(a,l){return(0,e.jsx)(s,{id:l+1,name:"Buffer "+(l+1),buffer:a},l)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Buffers",children:c}),(0,e.jsx)(p,{})]})},s=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=x.id,l=x.name,f=x.buffer,h=c.isInjectorReady,v=l+(f.data?" - "+f.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:v,mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!f.data,icon:"trash",onClick:function(){return o("bufferOption",{option:"clear",id:a})},children:"Clear"}),(0,e.jsx)(t.$n,{disabled:!f.data,icon:"pen",onClick:function(){return o("bufferOption",{option:"changeLabel",id:a})},children:"Rename"}),(0,e.jsx)(t.$n,{disabled:!f.data||!c.hasDisk,icon:"save",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return o("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 o("bufferOption",{option:"saveUI",id:a})},children:"Subject U.I"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return o("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 o("bufferOption",{option:"saveSE",id:a})},children:"Subject S.E."}),(0,e.jsx)(t.$n,{disabled:!c.hasDisk||!c.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return o("bufferOption",{option:"loadDisk",id:a})},children:"From Disk"})]}),!!f.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Subject",children:f.owner||(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[f.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!f.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(t.$n,{disabled:!h,icon:h?"syringe":"spinner",iconSpin:!h,mb:"0",onClick:function(){return o("bufferOption",{option:"createInjector",id:a})},children:"Injector"}),(0,e.jsx)(t.$n,{disabled:!h,icon:h?"syringe":"spinner",iconSpin:!h,mb:"0",onClick:function(){return o("bufferOption",{option:"createInjector",id:a,block:1})},children:"Block Injector"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return o("bufferOption",{option:"transfer",id:a})},children:"Subject"})]})]})]}),!f.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.hasDisk,l=c.disk;return(0,e.jsx)(t.wn,{title:"Data Disk",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!a||!l.data,icon:"trash",onClick:function(){return o("wipeDisk")},children:"Wipe"}),(0,e.jsx)(t.$n,{disabled:!a,icon:"eject",onClick:function(){return o("ejectDisk")},children:"Eject"})]}),children:a?l.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:l.label?l.label:"No label"}),(0,e.jsx)(t.Ki.Item,{label:"Subject",children:l.owner?l.owner:(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[l.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!l.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."]})})}},76282:function(O,m,n){"use strict";n.r(m),n.d(m,{DNAModifierOccupant:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(22724),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.locked,a=o.hasOccupant,l=o.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:!a,selected:c,icon:c?"toggle-on":"toggle-off",onClick:function(){return d("toggleLock")},children:c?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{disabled:!a||c,icon:"user-slash",onClick:function(){return d("ejectOccupant")},children:"Eject"})]}),children:a?(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:l.name}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:l.health/l.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[l.stat][0],children:r.stats[l.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),p.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,{minValue:0,maxValue:1,value:l.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ki.Item,{label:"Unique Enzymes",children:o.occupant.uniqueEnzymes?o.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."})})}},22724:function(O,m,n){"use strict";n.r(m),n.d(m,{operations:function(){return i},rejuvenatorsDoses:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],i=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],t=[5,10,20,30,50]},62343:function(O,m,n){"use strict";n.r(m),n.d(m,{DNAModifier:function(){return d}});var e=n(62161),i=n(7081),t=n(42103),r=n(86471),s=n(11619),p=n(89100),x=n(76282),d=function(o){var c=(0,i.Oc)().data,a=c.irradiating,l=c.occupant,f=!l.isViableSubject||!l.uniqueIdentity||!l.structuralEnzymes;return(0,e.jsxs)(t.p8,{width:660,height:870,children:[(0,e.jsx)(r.ComplexModal,{}),a&&(0,e.jsx)(s.DNAModifierIrradiating,{duration:a}),(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(x.DNAModifierOccupant,{isDNAInvalid:f}),(0,e.jsx)(p.DNAModifierMain,{isDNAInvalid:f})]})]})}},14512:function(O,m,n){"use strict";n.r(m)},2984:function(O,m,n){"use strict";n.r(m),n.d(m,{DestinationTagger:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.currTag,a=o.taggerLevels,l=a===void 0?[]:a,f=o.taggerLocs,h=l.filter(function(v,j){return j===l.findIndex(function(E){return v.location===E.location})});return(0,e.jsx)(r.p8,{width:450,height:310,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Tagger Locations",children:h.map(function(v){return(0,e.jsx)(t.wn,{title:v.location,children:(0,e.jsx)(t.so,{wrap:"wrap",spacing:1,justify:"center",children:f.map(function(j){return v.z===j.level&&(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{icon:c===j.tag?"check-square-o":"square-o",selected:c===j.tag,onClick:function(){return d("set_tag",{tag:j.tag})},children:j.tag})},j.tag)})})},v.location)})})})})}},17956:function(O,m,n){"use strict";n.r(m),n.d(m,{DiseaseSplicer:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.busy;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l?(0,e.jsx)(t.wn,{title:"The Splicer is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:l})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p,{}),(0,e.jsx)(x,{})]})})})},p=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.dish_inserted,f=a.effects,h=a.info,v=a.growth,j=a.affected_species;return(0,e.jsxs)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return c("eject")},children:"Eject Dish"}),children:[(0,e.jsx)(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:v})})}),h?(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:h})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Symptoms",children:f&&f.map(function(E){return(0,e.jsxs)(t.az,{color:"label",children:["(",E.stage,") ",E.name," ",E.badness>1?"Dangerous!":null]},E.stage)})||(0,e.jsx)(t.az,{children:"No virus sample loaded."})}),(0,e.jsx)(t.wn,{title:"Affected Species",color:"label",children:!j||!j.length?"None":j.sort().join(", ")}),(0,e.jsxs)(t.wn,{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."})}),f&&f.map(function(E){return(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return c("grab",{grab:E.reference})},children:E.stage},E.stage)}),(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return c("affected_species")},children:"Species"})]})]})]})},x=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.buffer,f=a.species_buffer,h=a.info;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:l?(0,e.jsxs)(t.az,{children:[l.name," (",l.stage,")"]}):f?(0,e.jsx)(t.az,{children:f}):"Empty"})}),(0,e.jsx)(t.$n,{mt:1,icon:"save",disabled:!l&&!f,onClick:function(){return c("disk")},children:"Save To Disk"}),l?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>1,onClick:function(){return c("splice",{splice:1})},children:"Splice #1"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>2,onClick:function(){return c("splice",{splice:2})},children:"Splice #2"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>3,onClick:function(){return c("splice",{splice:3})},children:"Splice #3"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>4,onClick:function(){return c("splice",{splice:4})},children:"Splice #4"})]}):f?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"pen",disabled:!f||!!h,onClick:function(){return c("splice",{splice:5})},children:"Splice Species"})}):null]})}},4843:function(O,m,n){"use strict";n.r(m),n.d(m,{DishIncubator:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(41242),s=n(42103),p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.on,l=c.system_in_use,f=c.food_supply,h=c.radiation,v=c.growth,j=c.toxins,E=c.chemicals_inserted,y=c.can_breed_virus,M=c.chemical_volume,_=c.max_chemical_volume,D=c.dish_inserted,b=c.blood_already_infected,T=c.virus,R=c.analysed,L=c.infection_rate;return(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:a,onClick:function(){return o("power")},children:a?"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 o("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:!l,onClick:function(){return o("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:f})}),(0,e.jsx)(t.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:100,color:h>=50?"bad":v>=25?"average":"good",value:h,children:[(0,r.qQ)(h*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:j})})]})]}),(0,e.jsx)(t.wn,{title:y?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eject",disabled:!E,onClick:function(){return o("ejectchem")},children:"Eject "+(y?"Vial":"Chemicals")}),(0,e.jsx)(t.$n,{icon:"virus",disabled:!y,onClick:function(){return o("virus")},children:"Breed Virus"})]}),children:E&&(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:_,value:M,children:[M,"/",_]})}),(0,e.jsxs)(t.Ki.Item,{label:"Breeding Environment",color:y?"good":"average",children:[D?y?"Suitable":"No hemolytic samples detected":"N/A",b?(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:!D,onClick:function(){return o("ejectdish")},children:"Eject Dish"}),children:D?T?(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:v})}),(0,e.jsx)(t.Ki.Item,{label:"Infection Rate",children:R?L:"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(O,m,n){"use strict";n.r(m),n.d(m,{DisposalBin:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.mode,a=o.pressure,l=o.isAI,f=o.panel_open,h=o.flushing,v,j;return c===2?(v="good",j="Ready"):c<=0?(v="bad",j="N/A"):c===1?(v="average",j="Pressurizing"):(v="average",j="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:v,children:j}),(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:a,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:l||f,selected:h?null:!0,onClick:function(){return d("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:l||f,selected:h?!0:null,onClick:function(){return d("engageHandle")},children:"Engaged"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Power",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:c===-1,selected:c?null:!0,onClick:function(){return d("pumpOff")},children:"Off"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:c===-1,selected:c?!0:null,onClick:function(){return d("pumpOn")},children:"On"})]}),(0,e.jsx)(t.Ki.Item,{label:"Eject",children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",disabled:l,onClick:function(){return d("eject")},children:"Eject Contents"})})]})]})})})}},16381:function(O,m,n){"use strict";n.r(m),n.d(m,{DroneConsole:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.drones,a=o.areas,l=o.selected_area,f=o.fabricator,h=o.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:!f,selected:h,icon:"power-off",onClick:function(){return d("toggle_fab")},children:h?"Enabled":"Disabled"}),children:f?(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 d("search_fab")},children:"Search for Fabricator"})]})}),(0,e.jsxs)(t.wn,{title:"Request Drone",children:[(0,e.jsx)(t.ms,{options:a?a.sort():[],selected:l,width:"100%",onSelected:function(v){return d("set_dcall_area",{area:v})}}),(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return d("ping")},children:"Send Ping"})]}),(0,e.jsx)(t.wn,{title:"Maintenance Units",children:c&&c.length?(0,e.jsx)(t.Ki,{children:c.map(function(v){return(0,e.jsx)(t.Ki.Item,{label:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return d("resync",{ref:v.ref})},children:"Resync"}),(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",color:"red",onClick:function(){return d("shutdown",{ref:v.ref})},children:"Shutdown"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:v.loc}),(0,e.jsxs)(t.Ki.Item,{label:"Charge",children:[v.charge," / ",v.maxCharge]}),(0,e.jsx)(t.Ki.Item,{label:"Active",children:v.active?"Yes":"No"})]})},v.name)})}):(0,e.jsx)(t.az,{color:"bad",children:"No drones detected."})})]})})}},27133:function(O,m,n){"use strict";n.r(m),n.d(m,{AirlockConsoleAdvanced:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(64894),s=function(p){var x=function(y){return y<80||y>120?"bad":y<95||y>110?"average":"good"},d=(0,i.Oc)(),o=d.act,c=d.data,a=c.external_pressure,l=c.chamber_pressure,f=c.internal_pressure,h=c.processing,v={external_pressure:a,internal_pressure:f,chamber_pressure:l},j=[{minValue:0,maxValue:202,value:a,label:"External Pressure",textValue:a+" kPa",color:x},{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:x},{minValue:0,maxValue:202,value:f,label:"Internal Pressure",textValue:f+" kPa",color:x}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:j}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{pressure_range:v}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return o("purge")},children:"Purge"}),(0,e.jsx)(t.$n,{icon:"lock-open",onClick:function(){return o("secure")},children:"Secure"})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!h,icon:"ban",color:"bad",onClick:function(){return o("abort")},children:"Abort"})})]})]})}},34012:function(O,m,n){"use strict";n.r(m),n.d(m,{AirlockConsoleDocking:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(64894),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.interior_status,a=o.exterior_status,l=o.chamber_pressure,f=o.airlock_disabled,h=o.override_enabled,v=o.docking_status,j=o.processing,E={interior_status:c,exterior_status:a},y=[{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:function(M){return M<80||M>120?"bad":M<95||M>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Dock",buttons:f||h?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:h?"red":"",onClick:function(){return d("toggle_override")},children:"Override"}):null,children:(0,e.jsx)(r.DockStatus,{docking_status:v,override_enabled:h})}),(0,e.jsx)(r.StatusDisplay,{bars:y}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:E}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!j,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},29935:function(O,m,n){"use strict";n.r(m),n.d(m,{AirlockConsolePhoron:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(64894),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.chamber_pressure,a=o.chamber_phoron,l=o.interior_status,f=o.exterior_status,h=o.processing,v={interior_status:l,exterior_status:f},j=[{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" kPa",color:function(E){return E<80||E>120?"bad":E<95||E>110?"average":"good"}},{minValue:0,maxValue:100,value:a,label:"Chamber Phoron",textValue:a+" mol",color:function(E){return E>5?"bad":E>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:j}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:v}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!h,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},32965:function(O,m,n){"use strict";n.r(m),n.d(m,{AirlockConsoleSimple:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(64894),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.exterior_status,a=o.chamber_pressure,l=o.processing,f=o.interior_status,h={interior_status:f,exterior_status:c},v=[{minValue:0,maxValue:202,value:a,label:"Chamber Pressure",textValue:a+" kPa",color:function(j){return j<80||j>120?"bad":j<95||j>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:v}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:h}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!l,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},74390:function(O,m,n){"use strict";n.r(m),n.d(m,{DockingConsoleMulti:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(64894),s=function(p){var x=(0,i.Oc)().data,d=x.docking_status;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Docking Status",children:(0,e.jsx)(r.DockStatus,{docking_status:d,override_enabled:!1})}),(0,e.jsx)(t.wn,{title:"Airlocks",children:x.airlocks.length?(0,e.jsx)(t.Ki,{children:x.airlocks.map(function(o){return(0,e.jsx)(t.Ki.Item,{color:o.override_enabled?"bad":"good",label:o.name,children:o.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},o.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."]})})})]})}},75355:function(O,m,n){"use strict";n.r(m),n.d(m,{DockingConsoleSimple:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(64894),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.exterior_status,a=o.override_enabled,l=o.docking_status;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!a,onClick:function(){return d("force_door")},children:"Force exterior door"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:a?"red":"",onClick:function(){return d("toggle_override")},children:"Override"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(r.DockStatus,{docking_status:l,override_enabled:a})}),(0,e.jsx)(r.DockingStatus,{state:c.state})]})})}},77506:function(O,m,n){"use strict";n.r(m),n.d(m,{DoorAccessConsole:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.interior_status,c=d.exterior_status,a=o.state==="open"||c.state==="closed",l=c.state==="open"||o.state==="closed";return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:a?"arrow-left":"exclamation-triangle",onClick:function(){x(a?"cycle_ext_door":"force_ext")},children:a?"Cycle To Exterior":"Lock Exterior Door"}),(0,e.jsx)(t.$n,{icon:l?"arrow-right":"exclamation-triangle",onClick:function(){x(l?"cycle_int_door":"force_int")},children:l?"Cycle To Interior":"Lock Interior Door"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Exterior Door Status",children:c.state==="closed"?"Locked":"Open"}),(0,e.jsx)(t.Ki.Item,{label:"Interior Door Status",children:o.state==="closed"?"Locked":"Open"})]})})}},64894:function(O,m,n){"use strict";n.r(m),n.d(m,{DockStatus:function(){return c},DockingStatus:function(){return x},EscapePodControls:function(){return o},EscapePodStatus:function(){return p},StandardControls:function(){return s},StatusDisplay:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(a){var l=a.bars;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsx)(t.Ki,{children:l.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.label,children:(0,e.jsx)(t.z2,{color:f.color(f.value),minValue:f.minValue,maxValue:f.maxValue,value:f.value,children:f.textValue})},f.label)})})})},s=function(a){var l=(0,i.Oc)().act,f=a.status_range,h=a.pressure_range,v=a.airlock_disabled,j=f||{},E=j.interior_status,y=j.exterior_status,M=h||{},_=M.external_pressure,D=M.internal_pressure,b=M.chamber_pressure,T=!0;E&&E.state==="open"?T=!1:_&&b&&(T=!(Math.abs(_-b)>5));var R=!0;return y&&y.state==="open"?R=!1:D&&b&&(R=!(Math.abs(D-b)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:v,icon:"arrow-left",onClick:function(){return l("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(t.$n,{disabled:v,icon:"arrow-right",onClick:function(){return l("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:v,color:T?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return l("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n.Confirm,{disabled:v,color:R?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return l("force_int")},children:"Force Interior Door"})]})]})},p=function(a){var l=a.exterior_status,f=a.docking_status,h=a.armed,v={docked:(0,e.jsx)(d,{armed:h}),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..."})};return(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Escape Pod Status",children:v[f]}),(0,e.jsx)(x,{state:l.state})]})})},x=function(a){var l=a.state,f=[];return f.open=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}),f.unlocked=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}),f.locked=(0,e.jsx)(t.az,{color:"good",children:"SECURED"}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:f[l]||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})})},d=function(a){var l=a.armed;return l?(0,e.jsx)(t.az,{color:"average",children:"ARMED"}):(0,e.jsx)(t.az,{color:"good",children:"SYSTEMS OK"})},o=function(a){var l=(0,i.Oc)().act,f=a.docking_status,h=a.override_enabled;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:!h,icon:"exclamation-triangle",color:f!=="docked"?"bad":"",onClick:function(){return l("force_door")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n,{selected:h,color:f!=="docked"?"bad":"average",icon:"exclamation-triangle",onClick:function(){return l("toggle_override")},children:"Override"})]})},c=function(a){var l=a.docking_status,f=a.override_enabled,h={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"})},v=h[l];return f&&(v=(0,e.jsxs)(t.az,{color:"bad",children:[l.toUpperCase(),"-OVERRIDE ENABLED"]})),v}},83783:function(O,m,n){"use strict";n.r(m),n.d(m,{EscapePodBerthConsole:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(64894),s=function(p){var x=(0,i.Oc)().data,d=x.exterior_status,o=x.docking_status,c=x.armed,a=x.override_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:d,docking_status:o,armed:c}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsx)(r.EscapePodControls,{docking_status:o,override_enabled:a})})]})}},13802:function(O,m,n){"use strict";n.r(m),n.d(m,{EscapePodConsole:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(64894),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.exterior_status,a=o.docking_status,l=o.override_enabled,f=o.armed,h=o.can_force;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:c,docking_status:a,armed:f}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.EscapePodControls,{docking_status:a,override_enabled:l}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:f,color:f?"bad":"average",onClick:function(){return d("manual_arm")},children:"ARM"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!h,color:"bad",onClick:function(){return d("force_launch")},children:"MANUAL EJECT"})]})]})]})}},84323:function(O,m,n){"use strict";n.r(m),n.d(m,{EmbeddedController:function(){return f}});var e=n(62161),i=n(7081),t=n(42103),r=n(27133),s=n(34012),p=n(29935),x=n(32965),d=n(74390),o=n(75355),c=n(77506),a=n(83783),l=n(13802),f=function(h){var v=(0,i.Oc)().data,j=v.internalTemplateName,E={};E.AirlockConsoleAdvanced=(0,e.jsx)(r.AirlockConsoleAdvanced,{}),E.AirlockConsoleSimple=(0,e.jsx)(x.AirlockConsoleSimple,{}),E.AirlockConsolePhoron=(0,e.jsx)(p.AirlockConsolePhoron,{}),E.AirlockConsoleDocking=(0,e.jsx)(s.AirlockConsoleDocking,{}),E.DockingConsoleSimple=(0,e.jsx)(o.DockingConsoleSimple,{}),E.DockingConsoleMulti=(0,e.jsx)(d.DockingConsoleMulti,{}),E.DoorAccessConsole=(0,e.jsx)(c.DoorAccessConsole,{}),E.EscapePodConsole=(0,e.jsx)(l.EscapePodConsole,{}),E.EscapePodBerthConsole=(0,e.jsx)(a.EscapePodBerthConsole,{});var y=E[j];if(!y)throw Error("Unable to find Component for template name: "+j);return(0,e.jsx)(t.p8,{width:450,height:340,children:(0,e.jsx)(t.p8.Content,{children:y})})}},2076:function(O,m,n){"use strict";n.r(m)},26356:function(O,m,n){"use strict";n.r(m),n.d(m,{DisplayDetails:function(){return d},EntityNarrate:function(){return p},EntitySelection:function(){return x},ModeSelector:function(){return o},NarrationInput:function(){return c}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103),p=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data;return(0,e.jsx)(s.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(s.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)(x,{})})}),(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)(d,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(o,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(c,{})})]})})})]})})})})},x=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data,v=h.selection_mode,j=h.multi_id_selection,E=h.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:v,onClick:function(){return f("change_mode_multi")},children:"Multi-Selection"}),children:(0,e.jsx)(r.tU,{vertical:!0,children:E.map(function(y){return(0,e.jsx)(r.tU.Tab,{selected:j.includes(y),onClick:function(){return f("select_entity",{id_selected:y})},children:(0,e.jsx)(r.az,{inline:!0,children:y})},y)})})})})})},d=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data,v=h.selection_mode,j=h.number_mob_selected,E=h.selected_id,y=h.selected_name,M=h.selected_type;return v?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",j]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",E," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",y," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",M," ",(0,e.jsx)("br",{})]})},o=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data,v=h.privacy_select,j=h.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 f("change_mode_privacy")},selected:v,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(v?"Click here to disable subtle mode":"Click here to enable subtle mode"),children:v?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return f("change_mode_narration")},selected:j,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(j?"Click here to emote visibly.":"Click here to talk audiably."),children:j?"Currently: Emoting":"Currently: Talking"})})]})},c=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data,v=(0,i.useState)(""),j=v[0],E=v[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return f("narrate",{message:j})},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,M){return E(M)},value:j||""})})})})}},63183:function(O,m,n){"use strict";n.r(m),n.d(m,{ExonetNode:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.on,a=o.allowPDAs,l=o.allowCommunicators,f=o.allowNewscasters,h=o.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:c,onClick:function(){return d("toggle_power")},children:"Power "+(c?"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:a,onClick:function(){return d("toggle_PDA_port")},children:a?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("toggle_communicator_port")},children:l?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return d("toggle_newscaster_port")},children:f?"Open":"Closed"})})]})}),(0,e.jsx)(t.wn,{title:"Logging",children:(0,e.jsxs)(t.so,{wrap:"wrap",children:[h.map(function(v,j){return(0,e.jsx)(t.so.Item,{m:"2px",basis:"49%",grow:j%2,children:v},j)}),!h||h.length===0?(0,e.jsx)(t.az,{color:"average",children:"No logs found."}):null]})})]})})}},2858:function(O,m,n){"use strict";n.r(m),n.d(m,{MaterialAmount:function(){return a},Materials:function(){return c}});var e=n(62161),i=n(4089),t=n(65380),r=n(61282),s=n(7081),p=n(16754),x=n(41242),d=n(51890),o=function(l){var f=(0,s.Oc)().act,h=l.material,v=h.name,j=h.removable,E=h.sheets,y=(0,s.QY)("remove_mats_"+v,1),M=y[0],_=y[1];return M>1&&E0});return M.length===0?(0,e.jsxs)(p.az,{textAlign:"center",children:[(0,e.jsx)(p.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(p.so,{wrap:"wrap",children:M.map(function(_){return(0,e.jsxs)(p.so.Item,{width:"80px",children:[(0,e.jsx)(a,{name:_.name,amount:_.amount,formatsi:!0}),!j&&(0,e.jsx)(p.az,{mt:1,style:{textAlign:"center"},children:(0,e.jsx)(o,{material:_})})]},_.name)||""})})},a=function(l){var f=l.name,h=l.amount,v=l.formatsi,j=l.formatmoney,E=l.color,y=l.style,M="0";return h<1&&h>0?M=(0,i.Mg)(h,2):v?M=(0,x.QL)(h,0):j?M=(0,x.up)(h):M=h.toString(),(0,e.jsxs)(p.so,{direction:"column",align:"center",children:[(0,e.jsx)(p.so.Item,{children:(0,e.jsx)(p.m_,{position:"bottom",content:(0,r.Sn)(f),children:(0,e.jsx)(p.az,{className:(0,t.Ly)(["sheetmaterials32x32",d.MATERIAL_KEYS[f]]),position:"relative",style:y})})}),(0,e.jsx)(p.so.Item,{children:(0,e.jsx)(p.az,{textColor:E,style:{textAlign:"center"},children:M})})]})}},61763:function(O,m,n){"use strict";n.r(m),n.d(m,{PartLists:function(){return o},PartSets:function(){return d}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(51890),p=n(42878),x=n(2858),d=function(a){var l=(0,t.Oc)().data,f=l.partSets,h=f===void 0?[]:f,v=l.buildableParts,j=v===void 0?[]:v,E=(0,t.QY)("part_tab",h.length?j[0]:""),y=E[0],M=E[1];return(0,e.jsx)(r.tU,{vertical:!0,children:h.map(function(_){return!!j[_]&&(0,e.jsx)(r.tU.Tab,{selected:_===y,onClick:function(){return M(_)},children:_},_)})})},o=function(a){var l=(0,t.Oc)().data,f=l.partSets,h=f===void 0?[]:f,v=l.buildableParts,j=v===void 0?[]:v,E=a.queueMaterials,y=a.materials,M=(0,t.QY)("part_tab",(0,p.getFirstValidPartSet)(h,j)),_=M[0],D=M[1],b=(0,t.QY)("search_text",""),T=b[0],R=b[1];if(!_||!j[_]){var L=(0,p.getFirstValidPartSet)(h,j);if(L)D(L);else return}var W={Parts:[]},$=[];return T?(0,p.searchFilter)(T,j).forEach(function(F){F.format=(0,p.partCondFormat)(y,E,F),$.push(F)}):(W={Parts:[]},j[_].forEach(function(F){if(F.format=(0,p.partCondFormat)(y,E,F),!F.subCategory){W.Parts.push(F);return}F.subCategory in W||(W[F.subCategory]=[]),W[F.subCategory].push(F)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{mr:1,children:(0,e.jsx)(r.In,{name:"search"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search for...",value:T,onInput:function(F,k){return R(k)}})})]})}),!!T&&(0,e.jsx)(c,{name:"Search Results",parts:$,forceShow:!0,placeholder:"No matching results..."})||Object.keys(W).map(function(F){return(0,e.jsx)(c,{name:F,parts:W[F]},F)})]})},c=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data,v=h.buildingPart,j=a.parts,E=a.name,y=a.forceShow,M=a.placeholder,_=(0,t.QY)("display_mats",!1),D=_[0];return(!!j.length||y)&&(0,e.jsxs)(r.wn,{title:E,buttons:(0,e.jsx)(r.$n,{disabled:!j.length,color:"good",icon:"plus-circle",onClick:function(){return f("add_queue_set",{part_list:j.map(function(b){return b.id})})},children:"Queue All"}),children:[!j.length&&M,j.map(function(b){return(0,e.jsxs)(i.Fragment,{children:[(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{disabled:!!v||b.format.textColor===s.COLOR_BAD,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return f("build_part",{id:b.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return f("add_queue_part",{id:b.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{inline:!0,textColor:s.COLOR_KEYS[b.format.textColor],children:b.name})}),(0,e.jsx)(r.so.Item,{grow:1}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"question-circle",color:"transparent",height:"20px",tooltip:"Build Time: "+b.printTime+"s. "+(b.desc||""),tooltipPosition:"left"})})]}),D&&(0,e.jsx)(r.so,{mb:2,children:Object.keys(b.cost).map(function(T){return(0,e.jsx)(r.so.Item,{width:"50px",color:s.COLOR_KEYS[b.format[T].color],children:(0,e.jsx)(x.MaterialAmount,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:T,amount:b.cost[T]})},T)})})]},b.name)})]})}},46372:function(O,m,n){"use strict";n.r(m),n.d(m,{Queue:function(){return x}});var e=n(62161),i=n(7081),t=n(16754),r=n(41242),s=n(51890),p=n(2858),x=function(a){var l=(0,i.Oc)(),f=l.act,h=l.data,v=h.isProcessingQueue,j=h.queue,E=j===void 0?[]:j,y=a.queueMaterials,M=a.missingMaterials,_=a.textColors;return(0,e.jsxs)(t.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(t.so.Item,{height:0,grow:1,children:(0,e.jsx)(t.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!length,color:"bad",icon:"minus-circle",onClick:function(){return f("clear_queue")},children:"Clear Queue"}),!!v&&(0,e.jsx)(t.$n,{disabled:!length,icon:"stop",onClick:function(){return f("stop_queue")},children:"Stop"})||(0,e.jsx)(t.$n,{disabled:!length,icon:"play",onClick:function(){return f("build_queue")},children:"Build Queue"})]}),children:(0,e.jsxs)(t.so,{direction:"column",height:"100%",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(c,{})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(o,{textColors:_})})]})})}),!!length&&(0,e.jsx)(t.so.Item,{mt:1,children:(0,e.jsx)(t.wn,{title:"Material Cost",children:(0,e.jsx)(d,{queueMaterials:y,missingMaterials:M})})})]})},d=function(a){var l=a.queueMaterials,f=a.missingMaterials;return(0,e.jsx)(t.so,{wrap:"wrap",children:Object.keys(l).map(function(h){return(0,e.jsxs)(t.so.Item,{width:"12%",children:[(0,e.jsx)(p.MaterialAmount,{formatmoney:!0,name:h,amount:l[h]}),!!f[h]&&(0,e.jsx)(t.az,{textColor:"bad",style:{textAlign:"center"},children:(0,r.up)(f[h])})]},h)})})},o=function(a){var l=(0,i.Oc)(),f=l.act,h=l.data,v=a.textColors,j=h.queue,E=j===void 0?[]:j;return!E||!E.length?(0,e.jsx)(e.Fragment,{children:"No parts in queue."}):E.map(function(y,M){return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(t.so.Item,{basis:"content",children:(0,e.jsx)(t.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return f("del_queue_part",{index:M+1})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{inline:!0,textColor:s.COLOR_KEYS[v[M]],children:y.name})})]})},y.name)})},c=function(a){var l=(0,i.Oc)().data,f=l.buildingPart,h=l.storedPart;if(h)return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:h}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:"Fabricator outlet obstructed..."})]})})});if(f){var v=f.name,j=f.duration,E=f.printTime,y=Math.ceil(j/10);return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:E,value:j,children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:v}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:y>=0&&y+"s"||"Dispensing..."})]})})})}}},51890:function(O,m,n){"use strict";n.r(m),n.d(m,{COLOR_AVERAGE:function(){return t},COLOR_BAD:function(){return r},COLOR_KEYS:function(){return p},COLOR_NONE:function(){return i},MATERIAL_KEYS:function(){return e}});var e={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"},i=0,t=1,r=2,s,p=(s={},s[i]=void 0,s[t]="average",s[r]="bad",s)},42878:function(O,m,n){"use strict";n.r(m),n.d(m,{getFirstValidPartSet:function(){return l},materialArrayToObj:function(){return x},partBuildColor:function(){return d},partCondFormat:function(){return o},queueCondFormat:function(){return c},searchFilter:function(){return a}});var e=n(7402),i=n(61282),t=n(51890);function r(f,h){(h==null||h>f.length)&&(h=f.length);for(var v=0,j=new Array(h);v=f.length?{done:!0}:{done:!1,value:f[j++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(f){var h={};return f.forEach(function(v){h[v.name]=v.amount}),h}function d(f,h,v){return f>v?{color:t.COLOR_BAD,deficit:f-v}:h>v?{color:t.COLOR_AVERAGE,deficit:f}:f+h>v?{color:t.COLOR_AVERAGE,deficit:f+h-v}:{color:t.COLOR_NONE,deficit:0}}function o(f,h,v){var j={textColor:t.COLOR_NONE};return Object.keys(v.cost).forEach(function(E){j[E]=d(v.cost[E],h[E],f[E]),j[E].color>j.textColor&&(j.textColor=j[E].color)}),j}function c(f,h){var v={},j={},E={},y={};return h&&h.forEach(function(M,_){y[_]=t.COLOR_NONE,Object.keys(M.cost).forEach(function(D){v[D]=v[D]||0,E[D]=E[D]||0,j[D]=d(M.cost[D],v[D],f[D]),j[D].color!==t.COLOR_NONE?y[_]=100?l="Running":!c&&a>0&&(l="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:c?"This will disable gravity!":"This will enable gravity!",onClick:function(){return d("gentoggle")},children:"Toggle Breaker"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Breaker Setting",children:c?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",children:["Generator ",l]}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Status",children:[a,"%"]})]})})})})}},88941:function(O,m,n){"use strict";n.r(m),n.d(m,{GuestPass:function(){return p}});var e=n(62161),i=n(7402),t=n(7081),r=n(16754),s=n(42103),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.area,l=c.giver,f=c.giveName,h=c.reason,v=c.duration,j=c.mode,E=c.log,y=c.uid;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:j===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",selected:!0,onClick:function(){return o("mode",{mode:0})},children:"Activity Log"}),children:[(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return o("print")},fluid:!0,mb:1,children:"Print"}),(0,e.jsx)(r.wn,{title:"Logs",children:E.length&&E.map(function(M){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}},M)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+y,buttons:(0,e.jsx)(r.$n,{icon:"scroll",onClick:function(){return o("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 o("id")},children:l||"Insert ID"})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{onClick:function(){return o("giv_name")},children:f})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{onClick:function(){return o("reason")},children:h})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{onClick:function(){return o("duration")},children:v})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,onClick:function(){return o("issue")},children:"Issue Pass"}),(0,e.jsx)(r.wn,{title:"Access",children:(0,i.Ul)(function(M){return M.area_name})(a).map(function(M){return(0,e.jsx)(r.$n.Checkbox,{checked:M.on,onClick:function(){return o("access",{access:M.area})},children:M.area_name},M.area)})})]})})})}},52149:function(O,m,n){"use strict";n.r(m),n.d(m,{GyrotronControl:function(){return s},GyrotronControlContent:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(p,{})})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.gyros;return(0,e.jsx)(t.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return o("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"})]}),a.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.active,disabled:!l.deployed,onClick:function(){return o("toggle_active",{gyro:l.ref})},children:l.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{forcedInputWidth:"60px",size:1.25,color:!!l.active&&"yellow",value:l.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(f,h){return o("set_rate",{gyro:l.ref,rate:h})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{forcedInputWidth:"60px",size:1.25,color:!!l.active&&"yellow",value:l.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(f,h){return o("set_str",{gyro:l.ref,str:h})}})})]},l.name)})]})})}},44791:function(O,m,n){"use strict";n.r(m),n.d(m,{Holodeck:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.supportedPrograms,a=o.restrictedPrograms,l=o.currentProgram,f=o.isSilicon,h=o.safetyDisabled,v=o.emagged,j=o.gravity,E=c;return h&&(E=E.concat(a)),(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:E.map(function(y){return(0,e.jsx)(t.$n,{color:a.indexOf(y)!==-1?"bad":null,icon:"eye",selected:l===y,fluid:!0,onClick:function(){return d("program",{program:y})},children:y},y)})}),!!f&&(0,e.jsx)(t.wn,{title:"Override",children:(0,e.jsxs)(t.$n,{icon:"exclamation-triangle",fluid:!0,disabled:v,color:h?"good":"bad",onClick:function(){return d("AIoverride")},children:[!!v&&"Error, unable to control. ",h?"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:h?(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:j,onClick:function(){return d("gravity")},children:j?"Enabled":"Disabled"})})]})})]})})}},83860:function(O,m,n){"use strict";n.r(m),n.d(m,{ICAssembly:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(41242),p=n(42103),x=function(o){var c=(0,t.Oc)().data,a=c.total_parts,l=c.max_components,f=c.total_complexity,h=c.max_complexity,v=c.battery_charge,j=c.battery_max,E=c.net_power,y=c.unremovable_circuits,M=c.removable_circuits;return(0,e.jsx)(p.p8,{width:600,height:380,children:(0,e.jsxs)(p.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.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:a/l,maxValue:1,children:a+" / "+l+" ("+(0,i.Mg)(a/l*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:f/h,maxValue:1,children:f+" / "+h+" ("+(0,i.Mg)(f/h*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:v&&(0,e.jsx)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:v/j,maxValue:1,children:v+" / "+j+" ("+(0,i.Mg)(v/j*100,1)+"%)"})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:E===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:E,format:function(_){return"-"+(0,s.d5)(Math.abs(_))+"/s"}})})]})}),y.length&&(0,e.jsx)(d,{title:"Built-in Components",circuits:y})||null,M.length&&(0,e.jsx)(d,{title:"Removable Components",circuits:M})||null]})})},d=function(o){var c=(0,t.Oc)().act,a=o.title,l=o.circuits;return(0,e.jsx)(r.wn,{title:a,children:(0,e.jsx)(r.Ki,{children:l.map(function(f){return(0,e.jsxs)(r.Ki.Item,{label:f.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("open_circuit",{ref:f.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("rename_circuit",{ref:f.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("scan_circuit",{ref:f.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("remove_circuit",{ref:f.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("bottom_circuit",{ref:f.ref})},children:"Move to Bottom"})]},f.ref)})})})}},23343:function(O,m,n){"use strict";n.r(m),n.d(m,{ICCircuit:function(){return x}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(41242),p=n(42103),x=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.desc,v=f.displayed_name,j=f.complexity,E=f.power_draw_idle,y=f.power_draw_per_use,M=f.extended_desc,_=f.inputs,D=f.outputs,b=f.activators;return(0,e.jsx)(p.p8,{width:600,height:400,title:v,children:(0,e.jsxs)(p.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 l("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return l("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return l("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:j}),E&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,s.d5)(E)})||null,y&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,s.d5)(y)})||null]}),M]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[_.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(d,{list:_})})})||null,(0,e.jsx)(r.so.Item,{basis:_.length&&D.length?"33%":_.length||D.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:v,mb:1,children:(0,e.jsx)(r.az,{children:h})})}),D.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(d,{list:D})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:b.map(function(T){return(0,e.jsxs)(r.Ki.Item,{label:T.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("pin_name",{pin:T.ref})},children:T.pulse_out?"":""}),(0,e.jsx)(o,{pin:T})]},T.name)})})]})]})})},d=function(c){var a=(0,t.Oc)().act,l=c.list;return l.map(function(f){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return a("pin_name",{pin:f.ref})},children:[(0,i.jT)(f.type),": ",f.name]}),(0,e.jsx)(r.$n,{onClick:function(){return a("pin_data",{pin:f.ref})},children:f.data}),(0,e.jsx)(o,{pin:f})]},f.ref)})},o=function(c){var a=(0,t.Oc)().act,l=c.pin;return l.linked.map(function(f){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return a("pin_unwire",{pin:l.ref,link:f.ref})},children:f.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return a("examine",{ref:f.holder_ref})},children:f.holder_name})]},f.ref)})}},87134:function(O,m,n){"use strict";n.r(m),n.d(m,{ICDetailer:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(42103),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.detail_color,l=c.color_list;return(0,e.jsx)(s.p8,{width:420,height:254,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(l).map(function(f,h){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,i.Sn)(f),tooltipPosition:h%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return o("change_color",{color:f})},style:l[f]===a?{border:"4px solid black",borderRadius:"0"}:{borderRadius:"0"},backgroundColor:l[f]},f)})})})})}},92306:function(O,m,n){"use strict";n.r(m),n.d(m,{ICPrinter:function(){return p}});var e=n(62161),i=n(7402),t=n(7081),r=n(16754),s=n(42103),p=function(o){var c=(0,t.Oc)().data,a=c.metal,l=c.max_metal,f=c.metal_per_sheet,h=c.upgraded,v=c.can_clone;return(0,e.jsx)(s.p8,{width:600,height:630,children:(0,e.jsxs)(s.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:a,maxValue:l,children:[a/f," / ",l/f," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:h?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:v?"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)(d,{})]})})};function x(o,c){return!(!o.can_build||o.cost>c.metal)}var d=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.categories,h=(0,t.QY)("categoryTarget",""),v=h[0],j=h[1],E=(0,i.pb)(function(y){return y.name===v})(f)[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,i.Ul)(function(y){return y.name})(f).map(function(y){return(0,e.jsx)(r.tU.Tab,{selected:v===y.name,onClick:function(){return j(y.name)},children:y.name},y.name)})})}),(0,e.jsx)(r.BJ.Item,{children:E?(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,i.Ul)(function(y){return y.name})(E.items).map(function(y){return(0,e.jsx)(r.Ki.Item,{label:y.name,labelColor:y.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!x(y,l),icon:"print",onClick:function(){return a("build",{build:y.path})},children:"Print"}),children:y.desc},y.name)})})}):(0,e.jsx)(r.az,{children:"No category selected."})})]})})}},98309:function(O,m,n){"use strict";n.r(m),n.d(m,{IDCard:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(10921),p=function(x){var d=(0,i.Oc)().data,o=d.registered_name,c=d.sex,a=d.species,l=d.age,f=d.assignment,h=d.fingerprint_hash,v=d.blood_type,j=d.dna_hash,E=d.photo_front,y=[{name:"Sex",val:c},{name:"Species",val:a},{name:"Age",val:l},{name:"Blood Type",val:v},{name:"Fingerprint",val:h},{name:"DNA Hash",val:j}];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:E&&(0,e.jsx)(t._V,{src:E.substring(1,E.length-1),style:{width:"300px",marginLeft:"-94px"}})||(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(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:M.val},M.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:o})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(s.RankIcon,{color:"",rank:f})})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:f})})]})]})})})}},39841:function(O,m,n){"use strict";n.r(m),n.d(m,{IdentificationComputer:function(){return o},IdentificationComputerAccessModification:function(){return l},IdentificationComputerContent:function(){return c},IdentificationComputerPrinting:function(){return a},IdentificationComputerRegions:function(){return f}});var e=n(62161),i=n(7402),t=n(61282),r=n(28277),s=n(7081),p=n(16754),x=n(42103),d=n(58044),o=function(){return(0,e.jsx)(x.p8,{width:600,height:700,children:(0,e.jsx)(x.p8.Content,{children:(0,e.jsx)(c,{})})})},c=function(h){var v=(0,s.Oc)(),j=v.act,E=v.data,y=h.ntos,M=E.mode,_=E.has_modify,D=E.printing,b=E.have_id_slot,T=E.have_printer,R=(0,e.jsx)(l,{ntos:y});return y&&!b?R=(0,e.jsx)(d.CrewManifestContent,{}):D?R=(0,e.jsx)(a,{}):M===1&&(R=(0,e.jsx)(d.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(p.tU,{children:[(!y||!!b)&&(0,e.jsx)(p.tU.Tab,{icon:"home",selected:M===0,onClick:function(){return j("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(p.tU.Tab,{icon:"home",selected:M===1,onClick:function(){return j("mode",{mode_target:1})},children:"Crew Manifest"}),!y||!!T&&(0,e.jsx)(p.tU.Tab,{style:{float:"right"},icon:"print",onClick:function(){return(M||_)&&j("print")},color:!M&&!_?"transparent":"",children:"Print"})]}),R]})},a=function(h){return(0,e.jsx)(p.wn,{title:"Printing",children:"Please wait..."})},l=function(h){var v=(0,s.Oc)(),j=v.act,E=v.data,y=h.ntos,M=E.station_name,_=E.target_name,D=E.target_owner,b=E.scan_name,T=E.authenticated,R=E.has_modify,L=E.account_number,W=E.centcom_access,$=E.all_centcom_access,F=E.id_rank,k=E.departments;return(0,e.jsxs)(p.wn,{title:"Access Modification",children:[!T&&(0,e.jsx)(p.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(p.Ki,{children:[(0,e.jsx)(p.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(p.$n,{icon:"eject",fluid:!0,onClick:function(){return j("modify")},children:_})}),!y&&(0,e.jsx)(p.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(p.$n,{icon:"eject",fluid:!0,onClick:function(){return j("scan")},children:b})})]}),!!T&&!!R&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p.wn,{title:"Details",children:(0,e.jsxs)(p.Ki,{children:[(0,e.jsx)(p.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(p.pd,{value:D,fluid:!0,onInput:function(X,G){return j("reg",{reg:G})}})}),(0,e.jsx)(p.Ki.Item,{label:"Account Number",children:(0,e.jsx)(p.pd,{value:L,fluid:!0,onInput:function(X,G){return j("account",{account:G})}})}),(0,e.jsx)(p.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(p.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,confirmContent:"You are dismissing "+D+", confirm?",onClick:function(){return j("terminate")},children:"Dismiss "+D})})]})}),(0,e.jsx)(p.wn,{title:"Assignment",children:(0,e.jsxs)(p.XI,{children:[k.map(function(X){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(p.XI.Row,{children:[(0,e.jsx)(p.XI.Cell,{header:!0,verticalAlign:"middle",children:X.department_name}),(0,e.jsx)(p.XI.Cell,{children:X.jobs.map(function(G){return(0,e.jsx)(p.$n,{selected:G.job===F,onClick:function(){return j("assign",{assign_target:G.job})},children:(0,t.jT)(G.display_name)},G.job)})})]}),(0,e.jsx)(p.az,{mt:-1,children:"\xA0"})," "]},X.department_name)}),(0,e.jsxs)(p.XI.Row,{children:[(0,e.jsx)(p.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(p.XI.Cell,{children:(0,e.jsx)(p.$n,{onClick:function(){return j("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!W&&(0,e.jsx)(p.wn,{title:"Central Command",children:$.map(function(X){return(0,e.jsx)(p.az,{children:(0,e.jsx)(p.$n,{fluid:!0,selected:X.allowed,onClick:function(){return j("access",{access_target:X.ref,allowed:X.allowed})},children:(0,t.jT)(X.desc)})},X.ref)})})||(0,e.jsx)(p.wn,{title:M,children:(0,e.jsx)(f,{actName:"access"})})]})]})},f=function(h){var v=(0,s.Oc)(),j=v.act,E=v.data,y=h.actName,M=E.regions;return(0,e.jsx)(p.so,{wrap:"wrap",spacing:1,children:M&&(0,i.Ul)(function(_){return _.name})(M).map(function(_){return(0,e.jsx)(p.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(p.wn,{title:_.name,height:"100%",children:(0,i.Ul)(function(D){return D.desc})(_.accesses).map(function(D){return(0,e.jsx)(p.az,{children:(0,e.jsx)(p.$n,{fluid:!0,selected:D.allowed,onClick:function(){return j(y,{access_target:D.ref,allowed:D.allowed})},children:(0,t.jT)(D.desc)})},D.ref)})})},_.name)})})}},15450:function(O,m,n){"use strict";n.r(m),n.d(m,{InventoryPanel:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.slots,a=o.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:c&&c.length&&c.map(function(l){return(0,e.jsx)(t.Ki.Item,{label:l.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:l.item?"hand-paper":"gift",onClick:function(){return d(l.act)},children:l.item||"Nothing"})},l.name)})})}),a&&(0,e.jsx)(t.wn,{title:"Actions",children:a&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return d("internals")},children:"Set Internals"})||null})||null]})})}},66855:function(O,m,n){"use strict";n.r(m),n.d(m,{InventoryPanelHuman:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.slots,a=o.specialSlots,l=o.internalsValid,f=o.sensors,h=o.handcuffed,v=o.handcuffedParams,j=o.legcuffed,E=o.legcuffedParams,y=o.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:[c&&c.length&&c.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:M.item?"hand-paper":"gift",onClick:function(){return d(M.act,M.params)},children:M.item||"Nothing"})},M.name)}),(0,e.jsx)(t.Ki.Divider,{}),a&&a.length&&a.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:M.item?"hand-paper":"gift",onClick:function(){return d(M.act,M.params)},children:M.item||"Nothing"})},M.name)})]})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"running",onClick:function(){return d("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return d("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"socks",onClick:function(){return d("targetSlot",{slot:"underwear"})},children:"Remove or Replace Underwear"}),l&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return d("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,f&&(0,e.jsx)(t.$n,{fluid:!0,icon:"book-medical",onClick:function(){return d("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,h&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",v)},children:"Handcuffed"})||null,j&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",E)},children:"Legcuffed"})||null,y&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},42592:function(O,m,n){"use strict";n.r(m),n.d(m,{IsolationCentrifuge:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.busy,a=o.antibodies,l=o.pathogens,f=o.is_antibody_sample,h=o.sample_inserted,v=(0,e.jsx)(t.az,{color:"average",children:"No vial detected."});return h&&(!a&&!l?v=(0,e.jsx)(t.az,{color:"average",children:"No antibodies or viral strains detected."}):v=(0,e.jsxs)(e.Fragment,{children:[a?(0,e.jsx)(t.wn,{title:"Antibodies",children:a}):"",l.length?(0,e.jsx)(t.wn,{title:"Pathogens",children:(0,e.jsx)(t.Ki,{children:l.map(function(j){return(0,e.jsx)(t.Ki.Item,{label:j.name,children:j.spread_type},j.name)})})}):""]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c?(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:c})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:f?"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:!a&&!l.length,onClick:function(){return d("print")},children:"Print"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!h,onClick:function(){return d("sample")},children:"Eject Vial"})})]}),v]}),a&&!f||l.length?(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[a&&!f?(0,e.jsx)(t.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("antibody")},children:a})}):"",l.length?(0,e.jsx)(t.Ki.Item,{label:"Isolate Strain",children:l.map(function(j){return(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("isolate",{isolate:j.reference})},children:j.name},j.name)})}):""]})}):""]})})})}},40939:function(O,m,n){"use strict";n.r(m),n.d(m,{JanitorCart:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.mybag,f=a.mybucket,h=a.mymop,v=a.myspray,j=a.myreplacer,E=a.signs;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:l||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:l?"grey":"transparent",style:{border:l?void 0:"2px solid grey"},onClick:function(){return c("bag")},children:(0,e.jsx)(x,{iconkey:"mybag"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:f||"Bucket Slot",tooltipPosition:"bottom",color:f?"grey":"transparent",style:{border:f?void 0:"2px solid grey"},onClick:function(){return c("bucket")},children:(0,e.jsx)(x,{iconkey:"mybucket"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:h||"Mop Slot",tooltipPosition:"bottom-end",color:h?"grey":"transparent",style:{border:h?void 0:"2px solid grey"},onClick:function(){return c("mop")},children:(0,e.jsx)(x,{iconkey:"mymop"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:v||"Spray Slot",tooltipPosition:"top-end",color:v?"grey":"transparent",style:{border:v?void 0:"2px solid grey"},onClick:function(){return c("spray")},children:(0,e.jsx)(x,{iconkey:"myspray"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:j||"Light Replacer Slot",tooltipPosition:"top",color:j?"grey":"transparent",style:{border:j?void 0:"2px solid grey"},onClick:function(){return c("replacer")},children:(0,e.jsx)(x,{iconkey:"myreplacer"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:E||"Signs Slot",tooltipPosition:"top-start",color:E?"grey":"transparent",style:{border:E?void 0:"2px solid grey"},onClick:function(){return c("sign")},children:(0,e.jsx)(x,{iconkey:"signs"})})]})})},p={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},x=function(d){var o=(0,i.Oc)().data,c=d.iconkey,a=o.icons;return c in a?(0,e.jsx)(t._V,{src:a[c].substr(1,a[c].length-1),style:{position:"absolute",left:"0",right:"0",top:"0",bottom:"0",width:"64px",height:"64px"}}):(0,e.jsx)(t.In,{style:{position:"absolute",left:"4px",right:"0",top:"20px",bottom:"0",width:"64px",height:"64px"},fontSize:2,name:p[c]})}},25244:function(O,m,n){"use strict";n.r(m),n.d(m,{Jukebox:function(){return o}});var e=n(62161),i=n(4089),t=n(61282),r=n(28277),s=n(7081),p=n(16754),x=n(41242),d=n(42103),o=function(c){var a=function(){Ge&&ce("Admin"),Qe(!Ge)},l=(0,s.Oc)(),f=l.act,h=l.data,v=h.playing,j=h.loop_mode,E=h.volume,y=h.current_track_ref,M=h.current_track,_=h.current_genre,D=h.percent,b=h.tracks,T=h.admin,R=b.length&&b.reduce(function(Oe,ze){var hn=ze.genre||"Uncategorized";return Oe[hn]||(Oe[hn]=[]),Oe[hn].push(ze),Oe},{}),L=v&&(_||"Uncategorized"),W=(0,r.useState)("Unknown"),$=W[0],F=W[1],k=(0,r.useState)(""),X=k[0],G=k[1],ne=(0,r.useState)(0),ee=ne[0],q=ne[1],Y=(0,r.useState)("Unknown"),H=Y[0],w=Y[1],J=(0,r.useState)("Admin"),oe=J[0],ce=J[1],le=(0,r.useState)(!1),de=le[0],me=le[1],Ie=(0,r.useState)(!1),Ee=Ie[0],pe=Ie[1],Le=(0,r.useState)(!1),Ge=Le[0],Qe=Le[1];return(0,e.jsx)(d.p8,{width:450,height:600,children:(0,e.jsxs)(d.p8.Content,{scrollable:!0,children:[(0,e.jsx)(p.wn,{title:"Currently Playing",children:(0,e.jsxs)(p.Ki,{children:[(0,e.jsx)(p.Ki.Item,{label:"Title",children:v&&M&&(0,e.jsxs)(p.az,{children:[M.title," by ",M.artist||"Unkown"]})||(0,e.jsx)(p.az,{children:"Stopped"})}),(0,e.jsxs)(p.Ki.Item,{label:"Controls",children:[(0,e.jsx)(p.$n,{icon:"play",disabled:v,onClick:function(){return f("play")},children:"Play"}),(0,e.jsx)(p.$n,{icon:"stop",disabled:!v,onClick:function(){return f("stop")},children:"Stop"})]}),(0,e.jsxs)(p.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(p.$n,{icon:"play",onClick:function(){return f("loopmode",{loopmode:1})},selected:j===1,children:"Next"}),(0,e.jsx)(p.$n,{icon:"random",onClick:function(){return f("loopmode",{loopmode:2})},selected:j===2,children:"Shuffle"}),(0,e.jsx)(p.$n,{icon:"redo",onClick:function(){return f("loopmode",{loopmode:3})},selected:j===3,children:"Repeat"}),(0,e.jsx)(p.$n,{icon:"step-forward",onClick:function(){return f("loopmode",{loopmode:4})},selected:j===4,children:"Once"})]}),(0,e.jsx)(p.Ki.Item,{label:"Progress",children:(0,e.jsx)(p.z2,{value:D,maxValue:1,color:"good"})}),(0,e.jsx)(p.Ki.Item,{label:"Volume",children:(0,e.jsx)(p.Ap,{minValue:0,step:1,value:E*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(Oe){return(0,i.Mg)(Oe,1)+"%"},onChange:function(Oe,ze){return f("volume",{val:(0,i.LI)(ze/100,2)})}})})]})}),(0,e.jsx)(p.wn,{title:"Available Tracks",children:b.length&&Object.keys(R).sort().map(function(Oe){return(0,t.ZH)(Oe)!=="Admin"&&(0,e.jsx)(p.Nt,{title:Oe,color:L===Oe?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:R[Oe].map(function(ze){return(0,e.jsx)(p.$n,{fluid:!0,icon:"play",selected:y===ze.ref,onClick:function(){return f("change_track",{change_track:ze.ref})},children:ze.title},ze.ref)})})},Oe)})||(0,e.jsx)(p.az,{color:"bad",children:"Error: No songs loaded."})}),T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p.wn,{title:"Admin Tracks",children:b.length&&Object.keys(R).sort().map(function(Oe){return(0,t.ZH)(Oe)==="Admin"&&(0,e.jsx)(p.Nt,{title:Oe,color:L===Oe?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:R[Oe].map(function(ze){return(0,e.jsxs)(p.so,{children:[(0,e.jsx)(p.so.Item,{grow:1,children:(0,e.jsx)(p.$n,{fluid:!0,icon:"play",selected:y===ze.ref,onClick:function(){return f("change_track",{change_track:ze.ref})},children:ze.title},ze.ref)}),(0,e.jsx)(p.so.Item,{children:(0,e.jsx)(p.$n.Confirm,{icon:"trash",onClick:function(){return f("remove_new_track",{ref:ze.ref})}})})]},ze.ref)})})},Oe)})||(0,e.jsx)(p.az,{color:"bad",children:"Error: No songs added."})}),(0,e.jsx)(p.wn,{title:"Admin Options",children:(0,e.jsxs)(p.Nt,{title:"Add Track",children:[(0,e.jsxs)(p.Ki,{children:[(0,e.jsx)(p.Ki.Item,{label:"Title",children:(0,e.jsx)(p.pd,{width:"100%",value:$,onChange:function(Oe,ze){return F(ze)}})}),(0,e.jsx)(p.Ki.Item,{label:"URL",children:(0,e.jsx)(p.pd,{width:"100%",value:X,onChange:function(Oe,ze){return G(ze)}})}),(0,e.jsx)(p.Ki.Item,{label:"Playtime",children:(0,e.jsx)(p.Q7,{value:ee,minValue:0,maxValue:3600,onChange:function(Oe,ze){return q(ze)},format:function(Oe){return(0,x.fU)((0,i.LI)(Oe*10,0))}})}),(0,e.jsx)(p.Ki.Item,{label:"Artist",children:(0,e.jsx)(p.pd,{width:"100%",value:H,onChange:function(Oe,ze){return w(ze)}})}),(0,e.jsx)(p.Ki.Item,{label:"Genre",children:(0,e.jsxs)(p.so,{children:[(0,e.jsx)(p.so.Item,{grow:1,children:Ge?(0,e.jsx)(p.pd,{width:"100%",value:oe,onChange:function(Oe,ze){return ce(ze)}}):(0,e.jsx)(p.az,{children:oe})}),(0,e.jsx)(p.so.Item,{children:(0,e.jsx)(p.$n.Checkbox,{icon:Ge?"lock-open":"lock",color:Ge?"good":"bad",onClick:function(){return a()}})})]})}),(0,e.jsx)(p.Ki.Item,{label:"Secret",children:(0,e.jsx)(p.$n.Checkbox,{checked:de,onClick:function(){return me(!de)}})}),(0,e.jsx)(p.Ki.Item,{label:"Lobby",children:(0,e.jsx)(p.$n.Checkbox,{checked:Ee,onClick:function(){return pe(!Ee)}})})]}),(0,e.jsx)(p.cG,{}),(0,e.jsx)(p.$n,{disabled:!($&&X&&ee&&H&&oe),onClick:function(){return f("add_new_track",{title:$,url:X,duration:ee,artist:H,genre:oe,secret:de,lobby:Ee})},children:"Add new Track"})]})})]})]})})}},7881:function(O,m,n){"use strict";n.r(m),n.d(m,{LawManager:function(){return x}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103);function s(){return s=Object.assign||function(l){for(var f=1;f=0)&&(h[j]=l[j]);return h}var x=function(l){var f=(0,i.Oc)().data,h=f.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[h?(0,e.jsxs)(t.IC,{info:!0,children:["Law-synced to ",h]}):"",(0,e.jsx)(d,{})]})})},d=function(l){var f=(0,i.QY)("lawsTabIndex",0),h=f[0],v=f[1],j=[];return j[0]=(0,e.jsx)(o,{}),j[1]=(0,e.jsx)(a,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:h===0,onClick:function(){return v(0)},children:"Law Management"}),(0,e.jsx)(t.tU.Tab,{selected:h===1,onClick:function(){return v(1)},children:"Law Sets"})]}),j[h]]})},o=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.ion_law_nr,E=v.ion_law,y=v.zeroth_law,M=v.inherent_law,_=v.supplied_law,D=v.supplied_law_position,b=v.zeroth_laws,T=v.has_zeroth_laws,R=v.ion_laws,L=v.has_ion_laws,W=v.inherent_laws,$=v.has_inherent_laws,F=v.supplied_laws,k=v.has_supplied_laws,X=v.isAI,G=v.isMalf,ne=v.isAdmin,ee=v.channel,q=v.channels,Y=b.map(function(H){return H.zero=!0,H}).concat(W);return(0,e.jsxs)(t.wn,{children:[L?(0,e.jsx)(c,{laws:R,title:j+" Laws:",mt:-2}):"",T||$?(0,e.jsx)(c,{laws:Y,title:"Inherent Laws",mt:-2}):"",k?(0,e.jsx)(c,{laws:F,title:"Supplied Laws",mt:-2}):"",(0,e.jsx)(t.wn,{title:"Controls",mt:-2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Statement Channel",children:q.map(function(H){return(0,e.jsx)(t.$n,{selected:ee===H.channel,onClick:function(){return h("law_channel",{law_channel:H.channel})},children:H.channel},H.channel)})}),(0,e.jsx)(t.Ki.Item,{label:"State Laws",children:(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return h("state_laws")},children:"State Laws"})}),X?(0,e.jsx)(t.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(t.$n,{icon:"exclamation",onClick:function(){return h("notify_laws")},children:"Notify"})}):""]})}),G?(0,e.jsx)(t.wn,{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"})]}),ne&&!T?(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(H,w){return h("change_zeroth_law",{val:w})}})}),(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 h("add_zeroth_law")},children:"Add"})})]}):"",(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:E,fluid:!0,onChange:function(H,w){return h("change_ion_law",{val:w})}})}),(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 h("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:M,fluid:!0,onChange:function(H,w){return h("change_inherent_law",{val:w})}})}),(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 h("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:_,fluid:!0,onChange:function(H,w){return h("change_supplied_law",{val:w})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return h("change_supplied_law_position")},children:D})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return h("add_supplied_law")},children:"Add"})})]})]})}):""]})},c=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.isMalf,E=v.isAdmin,y=l.laws,M=l.title,_=l.noButtons,D=p(l,["laws","title","noButtons"]);return(0,e.jsx)(t.wn,s({title:M},D,{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"}),_?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"State"}),j&&!_?(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"})]}):""]}),y.map(function(b){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[b.index,"."]}),(0,e.jsx)(t.XI.Cell,{color:b.zero?"bad":void 0,children:b.law}),_?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"volume-up",selected:b.state,onClick:function(){return h("state_law",{ref:b.ref,state_law:!b.state})},children:b.state?"Yes":"No"})}),j&&!_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:b.zero&&!E,icon:"pen",onClick:function(){return h("edit_law",{edit_law:b.ref})},children:"Edit"})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:b.zero&&!E,color:"bad",icon:"trash",onClick:function(){return h("delete_law",{delete_law:b.ref})},children:"Delete"})})]}):""]},b.index)})]})}))},a=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.isMalf,E=v.law_sets,y=v.ion_law_nr;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"}),E.length?E.map(function(M){return(0,e.jsxs)(t.wn,{title:M.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!j,icon:"sync",onClick:function(){return h("transfer_laws",{transfer_laws:M.ref})},children:"Load Laws"}),(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return h("state_law_set",{state_law_set:M.ref})},children:"State Laws"})]}),children:[M.laws.has_ion_laws?(0,e.jsx)(c,{noButtons:!0,laws:M.laws.ion_laws,title:y+" Laws:"}):"",M.laws.has_zeroth_laws||M.laws.has_inherent_laws?(0,e.jsx)(c,{noButtons:!0,laws:M.laws.zeroth_laws.concat(M.laws.inherent_laws),title:M.header}):"",M.laws.has_supplied_laws?(0,e.jsx)(c,{noButtons:!0,laws:M.laws.supplied_laws,title:"Supplied Laws"}):""]},M.name)}):""]})}},94979:function(O,m,n){"use strict";n.r(m),n.d(m,{ListInputModal:function(){return o}});var e=n(62161),i=n(28277),t=n(6544),r=n(7081),s=n(16754),p=n(42103),x=n(5335),d=n(44149),o=function(l){var f=(0,r.Oc)(),h=f.act,v=f.data,j=v.items,E=j===void 0?[]:j,y=v.message,M=y===void 0?"":y,_=v.init_value,D=v.large_buttons,b=v.timeout,T=v.title,R=(0,i.useState)(E.indexOf(_)),L=R[0],W=R[1],$=(0,i.useState)(E.length>9),F=$[0],k=$[1],X=(0,i.useState)(""),G=X[0],ne=X[1],ee=function(le){var de=oe.length-1;if(le===t.R)if(L===null||L===de){var me;W(0),(me=document.getElementById("0"))==null||me.scrollIntoView()}else{var Ie;W(L+1),(Ie=document.getElementById((L+1).toString()))==null||Ie.scrollIntoView()}else if(le===t.gf)if(L===null||L===0){var Ee;W(de),(Ee=document.getElementById(de.toString()))==null||Ee.scrollIntoView()}else{var pe;W(L-1),(pe=document.getElementById((L-1).toString()))==null||pe.scrollIntoView()}},q=function(le){le!==L&&W(le)},Y=function(){k(!1),k(!0)},H=function(le){var de=String.fromCharCode(le),me=E.find(function(pe){return pe==null?void 0:pe.toLowerCase().startsWith(de==null?void 0:de.toLowerCase())});if(me){var Ie,Ee=E.indexOf(me);W(Ee),(Ie=document.getElementById(Ee.toString()))==null||Ie.scrollIntoView()}},w=function(le){var de;le!==G&&(ne(le),W(0),(de=document.getElementById("0"))==null||de.scrollIntoView())},J=function(){k(!F),ne("")},oe=E.filter(function(le){return le==null?void 0:le.toLowerCase().includes(G.toLowerCase())}),ce=325+Math.ceil(M.length/3)+(D?5:0);return F||setTimeout(function(){var le;return(le=document.getElementById(L.toString()))==null?void 0:le.focus()},1),(0,e.jsxs)(p.p8,{title:T,width:325,height:ce,children:[b&&(0,e.jsx)(d.Loader,{value:b}),(0,e.jsx)(p.p8.Content,{onKeyDown:function(le){var de=window.event?le.which:le.keyCode;(de===t.R||de===t.gf)&&(le.preventDefault(),ee(de)),de===t.Ri&&(le.preventDefault(),h("submit",{entry:oe[L]})),!F&&de>=t.W8&&de<=t.bh&&(le.preventDefault(),H(de)),de===t.s6&&(le.preventDefault(),h("cancel"))},children:(0,e.jsx)(s.wn,{buttons:(0,e.jsx)(s.$n,{compact:!0,icon:F?"search":"font",selected:!0,tooltip:F?"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 J()}}),className:"ListInput__Section",fill:!0,title:M,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(c,{filteredItems:oe,onClick:q,onFocusSearch:Y,searchBarVisible:F,selected:L})}),F&&(0,e.jsx)(a,{filteredItems:oe,onSearch:w,searchQuery:G,selected:L}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(x.InputButtons,{input:oe[L]})})]})})})]})},c=function(l){var f=(0,r.Oc)().act,h=l.filteredItems,v=l.onClick,j=l.onFocusSearch,E=l.searchBarVisible,y=l.selected;return(0,e.jsxs)(s.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(s.y5,{}),h.map(function(M,_){return(0,e.jsx)(s.$n,{color:"transparent",fluid:!0,onClick:function(){return v(_)},onDoubleClick:function(D){D.preventDefault(),f("submit",{entry:h[y]})},onKeyDown:function(D){var b=window.event?D.which:D.keyCode;E&&b>=t.W8&&b<=t.bh&&(D.preventDefault(),j())},selected:_===y,style:{animation:"none",transition:"none"},children:M.replace(/^\w/,function(D){return D.toUpperCase()})},_)})]})},a=function(l){var f=(0,r.Oc)().act,h=l.filteredItems,v=l.onSearch,j=l.searchQuery,E=l.selected;return(0,e.jsx)(s.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(y){y.preventDefault(),f("submit",{entry:h[E]})},onInput:function(y,M){return v(M)},placeholder:"Search...",value:j})}},30373:function(O,m,n){"use strict";n.r(m),n.d(m,{LookingGlass:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.supportedPrograms,a=o.currentProgram,l=o.immersion,f=o.gravity,h=Math.min(180+c.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:h,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:c.map(function(v){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",selected:v===a,onClick:function(){return d("program",{program:v})},children:v},v)})}),(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:f,onClick:function(){return d("gravity")},children:f?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(t.$n,{mt:-1,fluid:!0,icon:"eye",selected:l,onClick:function(){return d("immersion")},children:l?"Enabled":"Disabled"})})]})})]})})}},88504:function(O,m,n){"use strict";n.r(m),n.d(m,{MechaControlConsole:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(42103),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.beacons,l=a===void 0?[]:a,f=c.stored_data,h=f===void 0?[]:f;return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[h.length?(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{overflowY:"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return o("clear_log")}}),children:h.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,i.jT)(v.message)})]},v.time)})})}):"",l.length&&l.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 o("send_message",{mt:v.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return o("get_log",{mt:v.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"bomb",onClick:function(){return o("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,i.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})}):""]})},v.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},94921:function(O,m,n){"use strict";n.r(m),n.d(m,{Medbot:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.on,a=o.open,l=o.beaker,f=o.beaker_total,h=o.beaker_max,v=o.locked,j=o.heal_threshold,E=o.heal_threshold_max,y=o.injection_amount_min,M=o.injection_amount,_=o.injection_amount_max,D=o.use_beaker,b=o.declare_treatment,T=o.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:c,onClick:function(){return d("power")},children:c?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:a?"bad":"good",children:a?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(t.$n,{disabled:!l,icon:"eject",onClick:function(){return d("eject")},children:"Eject"}),children:l&&(0,e.jsxs)(t.z2,{value:f,maxValue:h,children:[f," / ",h]})||(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:v?"good":"bad",children:v?"Locked":"Unlocked"})]})}),!v&&(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:E,value:j,onDrag:function(R,L){return d("adj_threshold",{val:L})}})}),(0,e.jsx)(t.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(t.Q7,{fluid:!0,minValue:y,maxValue:_,value:M,onDrag:function(R,L){return d("adj_inject",{val:L})}})}),(0,e.jsx)(t.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(t.$n,{fluid:!0,icon:D?"toggle-on":"toggle-off",selected:D,onClick:function(){return d("use_beaker")},children:D?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(t.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(t.$n,{fluid:!0,icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return d("declaretreatment")},children:b?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:T?"toggle-on":"toggle-off",selected:T,onClick:function(){return d("togglevoice")},children:T?"On":"Off"})})]})})||null]})})}},47407:function(O,m,n){"use strict";n.r(m),n.d(m,{MedicalRecordsList:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(c,a){return x("search",{t1:a})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:o.map(function(c,a){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return x("d_rec",{d_rec:c.ref})},children:c.id+": "+c.name},a)})})]})}},43131:function(O,m,n){"use strict";n.r(m),n.d(m,{MedicalRecordsMedbots:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)().data,x=p.medbots;return!x||x.length===0?(0,e.jsx)(t.az,{color:"label",children:"There are no Medbots."}):x.map(function(d,o){return(0,e.jsx)(t.Nt,{open:!0,title:d.name,children:(0,e.jsx)(t.az,{px:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Location",children:[d.area||"Unknown"," (",d.x,", ",d.y,")"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:d.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"good",children:"Online"}),(0,e.jsx)(t.az,{mt:"0.5rem",children:d.use_beaker?"Reservoir: "+d.total_volume+"/"+d.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(t.az,{color:"average",children:"Offline"})})]})})},o)})}},48353:function(O,m,n){"use strict";n.r(m),n.d(m,{MedicalRecordsMaintenance:function(){return p},MedicalRecordsNavigation:function(){return d},MedicalRecordsView:function(){return x}});var e=n(62161),i=n(7081),t=n(16754),r=n(72886),s=n(8615),p=function(o){var c=(0,i.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 c("del_all")},children:"Delete All Medical Records"})]})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.medical,h=l.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(r.MedicalRecordsViewGeneral,{})}),(0,e.jsx)(t.wn,{title:"Medical Data",children:(0,e.jsx)(s.MedicalRecordsViewMedical,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return a("del_r")},children:"Delete Medical Record"}),(0,e.jsx)(t.$n,{icon:h?"spinner":"print",disabled:h,iconSpin:!!h,ml:"0.5rem",onClick:function(){return a("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})},children:"Back"})]})]})},d=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:f===2,onClick:function(){return a("screen",{screen:2})},children:[(0,e.jsx)(t.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===5,onClick:function(){return a("screen",{screen:5})},children:[(0,e.jsx)(t.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===6,onClick:function(){return a("screen",{screen:6})},children:[(0,e.jsx)(t.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===3,onClick:function(){return a("screen",{screen:3})},children:[(0,e.jsx)(t.In,{name:"wrench"}),"Record Maintenance"]})]})}},72886:function(O,m,n){"use strict";n.r(m),n.d(m,{MedicalRecordsViewGeneral:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(80724),s=function(p){var x=(0,i.Oc)().data,d=x.general;return!d||!d.fields?(0,e.jsx)(t.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{width:"50%",style:{float:"left"},children:(0,e.jsx)(t.Ki,{children:d.fields.map(function(o,c){return(0,e.jsx)(t.Ki.Item,{label:o.field,children:(0,e.jsxs)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:[o.value,!!o.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,r.doEdit)(o)}})]})},c)})})}),(0,e.jsx)(t.az,{width:"50%",style:{float:"right"},textAlign:"right",children:!!d.has_photos&&d.photos.map(function(o,c){return(0,e.jsxs)(t.az,{inline:!0,textAlign:"center",color:"label",children:[(0,e.jsx)(t._V,{src:o.substring(1,o.length-1),style:{width:"96px",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",c+1]},c)})})]})}},8615:function(O,m,n){"use strict";n.r(m),n.d(m,{MedicalRecordsViewMedical:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(86471),s=n(80724),p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.medical;return!a||!a.fields?(0,e.jsxs)(t.az,{color:"bad",children:["Medical 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:a.fields.map(function(l,f){return(0,e.jsx)(t.Ki.Item,{label:l.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[l.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,s.doEdit)(l)}})]})},f)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[a.comments&&a.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):a.comments&&a.comments.map(function(l,f){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:l.header}),(0,e.jsx)("br",{}),l.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return o("del_c",{del_c:f+1})}})]},f)}),(0,e.jsx)(t.$n,{icon:"comment-medical",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")},children:"Add Entry"})]})]})}},3748:function(O,m,n){"use strict";n.r(m),n.d(m,{MedicalRecordsViruses:function(){return s}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=function(p){var x=(0,t.Oc)(),d=x.act,o=x.data,c=o.virus;return c&&c.sort(function(a,l){return a.name>l.name?1:-1}),c&&c.map(function(a,l){return(0,e.jsxs)(i.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",mb:"0.5rem",onClick:function(){return d("vir",{vir:a.D})},children:a.name}),(0,e.jsx)("br",{})]},l)})}},46069:function(O,m,n){"use strict";n.r(m),n.d(m,{severities:function(){return e}});var e={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"}},65456:function(O,m,n){"use strict";n.r(m),n.d(m,{MedicalRecords:function(){return h}});var e=n(62161),i=n(7081),t=n(16754),r=n(86471),s=n(42103),p=n(35069),x=n(97049),d=n(3751),o=n(47407),c=n(43131),a=n(48353),l=n(3748),f=n(4492),h=function(v){var j=(0,i.Oc)().data,E=j.authenticated,y=j.screen;if(!E)return(0,e.jsx)(s.p8,{width:800,height:380,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var M=[];return M[2]=(0,e.jsx)(o.MedicalRecordsList,{}),M[3]=(0,e.jsx)(a.MedicalRecordsMaintenance,{}),M[4]=(0,e.jsx)(a.MedicalRecordsView,{}),M[5]=(0,e.jsx)(l.MedicalRecordsViruses,{}),M[6]=(0,e.jsx)(c.MedicalRecordsMedbots,{}),(0,e.jsxs)(s.p8,{width:800,height:380,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(s.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(p.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(a.MedicalRecordsNavigation,{}),(0,e.jsx)(t.wn,{height:"calc(100% - 5rem)",flexGrow:!0,children:y&&M[y]||""})]})]})};(0,r.modalRegisterBodyOverride)("virus",f.virusModalBodyOverride)},86097:function(O,m,n){"use strict";n.r(m)},4492:function(O,m,n){"use strict";n.r(m),n.d(m,{virusModalBodyOverride:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)().act,x=s.args;return(0,e.jsx)(t.wn,{m:"-1rem",title:x.name||"Virus",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return p("modal_close")}}),children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Spread",children:[x.spreadtype," Transmission"]}),(0,e.jsx)(t.Ki.Item,{label:"Possible cure",children:x.antigen}),(0,e.jsx)(t.Ki.Item,{label:"Rate of Progression",children:x.rate}),(0,e.jsxs)(t.Ki.Item,{label:"Antibiotic Resistance",children:[x.resistance,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Species Affected",children:x.species}),(0,e.jsx)(t.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(t.Ki,{children:x.symptoms.map(function(d){return(0,e.jsxs)(t.Ki.Item,{label:d.stage+". "+d.name,children:[(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Strength:"})," ",d.strength,"\xA0",(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",d.aggressiveness]},d.stage)})})})]})})})}},4477:function(O,m,n){"use strict";n.r(m),n.d(m,{MentorTicketPanel:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(42103),p={open:"Open",resolved:"Resolved",unknown:"Unknown"},x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.id,f=a.name,h=a.state,v=a.opened_at,j=a.closed_at,E=a.opened_at_date,y=a.closed_at_date,M=a.actions,_=a.log;return(0,e.jsx)(s.p8,{width:900,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+l,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"arrow-up",onClick:function(){return c("escalate")},children:"Escalate"}),(0,e.jsx)(r.$n,{onClick:function(){return c("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Mentor Help Ticket",children:["#",l,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:f}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:p[h]}),p[h]===p.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:E+" ("+(0,i.Mg)((0,i.LI)(v/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[y+" ("+(0,i.Mg)((0,i.LI)(j/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return c("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(_).map(function(D,b){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_[D]}},b)})})]})})})})}},26948:function(O,m,n){"use strict";n.r(m),n.d(m,{MessageMonitorContent:function(){return p}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(5871),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.linkedServer,l=(0,i.useState)(0),f=l[0],h=l[1],v=[];return v[0]=(0,e.jsx)(s.MessageMonitorMain,{}),v[1]=(0,e.jsx)(s.MessageMonitorLogs,{logs:a.pda_msgs,pda:!0}),v[2]=(0,e.jsx)(s.MessageMonitorLogs,{logs:a.rc_msgs,rc:!0}),v[3]=(0,e.jsx)(s.MessageMonitorAdmin,{}),v[4]=(0,e.jsx)(s.MessageMonitorSpamFilter,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:f===0,onClick:function(){return h(0)},children:[(0,e.jsx)(r.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(r.tU.Tab,{selected:f===1,onClick:function(){return h(1)},children:[(0,e.jsx)(r.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===2,onClick:function(){return h(2)},children:[(0,e.jsx)(r.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===3,onClick:function(){return h(3)},children:[(0,e.jsx)(r.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(r.tU.Tab,{selected:f===4,onClick:function(){return h(4)},children:[(0,e.jsx)(r.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(r.tU.Tab,{color:"red",onClick:function(){return o("deauth")},children:[(0,e.jsx)(r.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(r.az,{m:2,children:v[f]})]})}},9760:function(O,m,n){"use strict";n.r(m),n.d(m,{MessageMonitorHack:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(72859),s=function(p){var x=(0,i.Oc)().data,d=x.isMalfAI;return(0,e.jsx)(r.FullscreenNotice,{title:"ERROR",children:d?(0,e.jsx)(t.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(t.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"]})})}},38860:function(O,m,n){"use strict";n.r(m),n.d(m,{MessageMonitorLogin:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(72859),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.isMalfAI;return(0,e.jsxs)(r.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(t.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(t.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(a,l){return d("auth",{key:l})}})]}),!!c&&(0,e.jsx)(t.$n,{icon:"terminal",onClick:function(){return d("hack")},children:"Hack"}),(0,e.jsx)(t.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})}},5871:function(O,m,n){"use strict";n.r(m),n.d(m,{MessageMonitorAdmin:function(){return x},MessageMonitorLogs:function(){return p},MessageMonitorMain:function(){return s},MessageMonitorSpamFilter:function(){return d}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.linkedServer;return(0,e.jsxs)(r.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"link",onClick:function(){return a("find")},children:"Server Link"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:f.active,onClick:function(){return a("active")},children:"Server "+(f.active?"Enabled":"Disabled")})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Server Status",children:(0,e.jsx)(r.az,{color:"good",children:"Good"})})}),(0,e.jsx)(r.$n,{mt:1,icon:"key",onClick:function(){return a("pass")},children:"Set Custom Key"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Message Logs"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Request Logs"})]})},p=function(o){var c=(0,t.Oc)().act,a=o.logs,l=o.pda,f=o.rc;return(0,e.jsx)(r.wn,{title:l?"PDA Logs":f?"Request Logs":"Logs",buttons:(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",onClick:function(){return c(l?"del_pda":"del_rc")},children:"Delete All"}),children:(0,e.jsx)(r.so,{wrap:"wrap",children:a.map(function(h,v){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:v%2,children:(0,e.jsx)(r.wn,{title:h.sender+" -> "+h.recipient,buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return c("delete",{id:h.ref,type:f?"rc":"pda"})}}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message",children:h.message}),(0,e.jsx)(r.Ki.Item,{label:"Verification",color:h.id_auth==="Unauthenticated"?"bad":"good",children:(0,i.jT)(h.id_auth)}),(0,e.jsx)(r.Ki.Item,{label:"Stamp",children:h.stamp})]}):h.message})},h.ref)})})})},x=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.possibleRecipients,h=l.customsender,v=l.customrecepient,j=l.customjob,E=l.custommessage,y=Object.keys(f);return(0,e.jsxs)(r.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Sender",children:(0,e.jsx)(r.pd,{fluid:!0,value:h,onChange:function(M,_){return a("set_sender",{val:_})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(r.pd,{fluid:!0,value:j,onChange:function(M,_){return a("set_sender_job",{val:_})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",children:(0,e.jsx)(r.ms,{selected:v,options:y,width:"100%",mb:-.7,onSelected:function(M){return a("set_recipient",{val:f[M]})}})}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.pd,{fluid:!0,mb:.5,value:E,onChange:function(M,_){return a("set_message",{val:_})}})})]}),(0,e.jsx)(r.$n,{fluid:!0,icon:"comment",onClick:function(){return a("send_message")},children:"Send Message"})]})},d=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.linkedServer;return(0,e.jsxs)(r.wn,{title:"Spam Filtering",children:[(0,e.jsx)(r.Ki,{children:f.spamFilter.map(function(h){return(0,e.jsx)(r.Ki.Item,{label:h.index,buttons:(0,e.jsx)(r.$n,{icon:"trash",color:"bad",onClick:function(){return a("deltoken",{deltoken:h.index})},children:"Delete"}),children:h.token},h.index)})}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return a("addtoken")},children:"Add New Entry"})]})}},34692:function(O,m,n){"use strict";n.r(m),n.d(m,{MessageMonitor:function(){return o}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(3751),p=n(26948),x=n(9760),d=n(38860),o=function(c){var a=(0,i.Oc)().data,l=a.auth,f=a.linkedServer,h=a.hacking,v=a.emag,j;return h||v?j=(0,e.jsx)(x.MessageMonitorHack,{}):l?f?j=(0,e.jsx)(p.MessageMonitorContent,{}):j=(0,e.jsx)(t.az,{color:"bad",children:"ERROR"}):j=(0,e.jsx)(d.MessageMonitorLogin,{}),(0,e.jsx)(r.p8,{width:670,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{}),j]})})}},25029:function(O,m,n){"use strict";n.r(m)},41785:function(O,m,n){"use strict";n.r(m),n.d(m,{Microwave:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.config,c=x.data,a=c.broken,l=c.operating,f=c.dirty,h=c.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:a&&(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:"Bzzzzttttt!!"})})||l&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||f&&(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!"]})})||h.length&&(0,e.jsx)(t.wn,{title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return d("cook")},children:"Microwave"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("dispose")},children:"Eject"})]}),children:(0,e.jsx)(t.Ki,{children:h.map(function(v){return(0,e.jsxs)(t.Ki.Item,{label:v.name,children:[v.amt," ",v.extra]},v.name)})})})||(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:[o.title," is empty."]})})})})}},10844:function(O,m,n){"use strict";n.r(m),n.d(m,{MiningOreProcessingConsole:function(){return x}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(42103),p=n(22588),x=function(l){var f=(0,t.Oc)(),h=f.act,v=f.data,j=v.unclaimedPoints,E=v.power,y=v.speed;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(p.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return h("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:y,onClick:function(){return h("speed_toggle")},children:y?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:E,onClick:function(){return h("power")},children:E?"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:j<1,icon:"download",onClick:function(){return h("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:j})})})}),(0,e.jsx)(a,{})]})})},d=["Not Processing","Smelting","Compressing","Alloying"],o=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],c=function(l,f){return o.indexOf(l.ore)===-1||o.indexOf(f.ore)===-1?l.ore-f.ore:o.indexOf(f.ore)-o.indexOf(l.ore)},a=function(l){var f=(0,t.Oc)(),h=f.act,v=f.data,j=v.ores,E=v.showAllOres;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:E?"toggle-on":"toggle-off",selected:E,onClick:function(){return h("showAllOres")},children:E?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:j.length&&j.sort(c).map(function(y){return(0,e.jsx)(r.Ki.Item,{label:(0,i.Sn)(y.name),buttons:(0,e.jsx)(r.ms,{width:"120px",color:y.processing===0&&"red"||y.processing===1&&"green"||y.processing===2&&"blue"||y.processing===3&&"yellow"||void 0,options:d,selected:d[y.processing],onSelected:function(M){return h("toggleSmelting",{ore:y.ore,set:d.indexOf(M)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:y.amount})})},y.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},71297:function(O,m,n){"use strict";n.r(m),n.d(m,{MiningStackingConsole:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(42103),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.stacktypes,l=c.stackingAmt;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsx)(s.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:l,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(f,h){return o("change_stack",{amt:h})}})}),(0,e.jsx)(r.Ki.Divider,{}),a.length&&a.sort().map(function(f){return(0,e.jsx)(r.Ki.Item,{label:(0,i.Sn)(f.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return o("release_stack",{stack:f.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:f.amt})},f.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},602:function(O,m,n){"use strict";n.r(m),n.d(m,{MiningVendor:function(){return a}});var e=n(62161),i=n(61282),t=n(28277),r=n(7081),s=n(16754),p=n(42103),x=n(22588);function d(){return d=Object.assign||function(v){for(var j=1;j=0)&&(E[M]=v[M]);return E}var c={Alphabetical:function(v,j){return v.name>j.name},"By availability":function(v,j){return-(v.affordable-j.affordable)},"By price":function(v,j){return v.price-j.price}},a=function(v){var j=function(k){D(k)},E=function(k){R(k)},y=function(k){$(k)},M=(0,t.useState)(""),_=M[0],D=M[1],b=(0,t.useState)("Alphabetical"),T=b[0],R=b[1],L=(0,t.useState)(!1),W=L[0],$=L[1];return(0,e.jsx)(p.p8,{width:400,height:450,children:(0,e.jsxs)(p.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(x.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(f,{searchText:_,sortOrder:T,descending:W,onSearchText:j,onSortOrder:E,onDescending:y}),(0,e.jsx)(l,{searchText:_,sortOrder:T,descending:W})]})})},l=function(v){var j=(0,r.Oc)(),E=j.act,y=j.data,M=y.has_id,_=y.id,D=y.items,b=(0,i.XZ)(v.searchText,function(L){return L[0]}),T=!1,R=Object.entries(D).map(function(L,W){var $=Object.entries(L[1]).filter(b).map(function(F){return F[1].affordable=+(M&&_.points>=F[1].price),F[1]}).sort(c[v.sortOrder]);if($.length!==0)return v.descending&&($=$.reverse()),T=!0,(0,e.jsx)(h,{title:L[0],items:$},L[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:T?R:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(v){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:v.searchText,width:"100%",onInput:function(j,E){return v.onSearchText(E)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{selected:v.sortOrder,options:Object.keys(c),width:"100%",lineHeight:"19px",onSelected:function(j){return v.onSortOrder(j)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:v.descending?"arrow-down":"arrow-up",height:"19px",tooltip:v.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return v.onDescending(!v.descending)}})})]})})},h=function(v){var j=(0,r.Oc)(),E=j.act,y=j.data,M=y.has_id,_=y.id,D=v.title,b=v.items,T=o(v,["title","items"]);return(0,e.jsx)(s.Nt,d({open:!0,title:D},T,{children:b.map(function(R){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:R.name}),(0,e.jsx)(s.$n,{disabled:!M||_.points=450?"Overcharged":r>=250?"Good Charge":"Low Charge":r>=250?"NIF Power Requirement met.":r>=150?"Fluctuations in available power.":"Power failure imminent."}},63300:function(O,m,n){"use strict";n.r(m),n.d(m,{NIF:function(){return d}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103),p=n(7428),x=n(84772),d=function(o){var c=(0,t.Oc)(),a=c.act,l=c.config,f=c.data,h=f.theme,v=f.last_notification,j=(0,i.useState)(!1),E=j[0],y=j[1],M=(0,i.useState)(null),_=M[0],D=M[1];return(0,e.jsx)(s.p8,{theme:h,width:500,height:400,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!v&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.XI,{verticalAlign:"middle",children:(0,e.jsxs)(r.XI.Row,{verticalAlign:"middle",children:[(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",children:v}),(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,e.jsx)(r.$n,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){return a("dismissNotification")}})})]})})}),!!_&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:_.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",confirmIcon:"ban",confirmContent:"Uninstall "+_.name+"?",onClick:function(){a("uninstall",{module:_.ref}),D(null)},children:"Uninstall"}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return D(null)}})]}),children:[(0,e.jsx)(r.az,{children:_.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:_.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:_.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:_.illegal?"bad":"good",children:["It is ",_.illegal?"NOT ":"","a legal software package."]}),(0,e.jsxs)(r.az,{children:["The MSRP of the package is",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:[_.cost,"\u20AE."]})]}),(0,e.jsxs)(r.az,{children:["The difficulty to construct the associated implant is\xA0",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:["Rating ",_.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+l.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:E,onClick:function(){return y(!E)}}),children:E&&(0,e.jsx)(x.NIFSettings,{})||(0,e.jsx)(p.NIFMain,{setViewing:D})})]})})}},11045:function(O,m,n){"use strict";n.r(m)},14910:function(O,m,n){"use strict";n.r(m),n.d(m,{NTNetRelay:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(72859),p=function(o){var c=(0,i.Oc)().data,a=c.dos_crashed,l=(0,e.jsx)(x,{});return a&&(l=(0,e.jsx)(d,{})),(0,e.jsx)(r.p8,{width:a?700:500,height:a?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l})})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.enabled,h=l.dos_overload,v=l.dos_capacity;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return a("toggle")},children:"Relay "+(f?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Network Buffer Status",children:[h," / ",v," GQ"]}),(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return a("purge")},children:"Purge network blacklist"})})]})})},d=function(o){var c=(0,i.Oc)().act;return(0,e.jsxs)(s.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 c("restart")},children:"Purge buffered traffic"})})]})}},3949:function(O,m,n){"use strict";n.r(m),n.d(m,{NewscasterMainMenu:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42501),s=function(p){var x=(0,i.Oc)().data,d=x.securityCaster,o=x.wanted_issue,c=p.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Main Menu",children:[o&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return c(r.NEWSCASTER_SCREEN_VIEWWANTED)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return c(r.NEWSCASTER_SCREEN_VIEWLIST)},children:"View Feed Channels"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c(r.NEWSCASTER_SCREEN_NEWCHANNEL)},children:"Create Feed Channel"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c(r.NEWSCASTER_SCREEN_NEWSTORY)},children:"Create Feed Message"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"print",onClick:function(){return c(r.NEWSCASTER_SCREEN_PRINT)},children:"Print Newspaper"})]}),!!d&&(0,e.jsx)(t.wn,{title:"Feed Security Functions",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c(r.NEWSCASTER_SCREEN_NEWWANTED)},children:'Manage "Wanted" Issue'})})]})}},71588:function(O,m,n){"use strict";n.r(m),n.d(m,{NewscasterNewChannel:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(42501),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.channel_name,l=c.c_locked,f=c.user,h=x.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return h(s.NEWSCASTER_SCREEN_MAIN)},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,i.jT)(a),onInput:function(v,j){return o("set_channel_name",{val:j})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:f}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:l?"lock":"lock-open",selected:!l,onClick:function(){return o("set_channel_lock")},children:l?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return o("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return h(s.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},85578:function(O,m,n){"use strict";n.r(m),n.d(m,{NewscasterNewStory:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42501),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.channel_name,a=o.user,l=o.title,f=o.msg,h=o.photo_data,v=p.setScreen;return(0,e.jsxs)(t.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return d("set_channel_receiving")},children:c||"Unset"})}),(0,e.jsx)(t.Ki.Item,{label:"Message Author",color:"good",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:l||"(no title yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return d("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:f||"(no message yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return d("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"image",onClick:function(){return d("set_attachment")},children:h?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return d("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},92432:function(O,m,n){"use strict";n.r(m),n.d(m,{NewscasterNewWanted:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(42501),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.channel_name,l=c.msg,f=c.photo_data,h=c.user,v=c.wanted_issue,j=x.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return j(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!v&&(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,i.jT)(a),onInput:function(E,y){return o("set_channel_name",{val:y})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,i.jT)(l),onInput:function(E,y){return o("set_wanted_desc",{val:y})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return o("set_attachment")},children:f?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:h})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return o("submit_wanted")},children:"Submit Wanted Issue"}),!!v&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return o("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return j(s.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},7662:function(O,m,n){"use strict";n.r(m),n.d(m,{NewscasterPrint:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42501),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.total_num,a=o.active_num,l=o.message_num,f=o.paper_remaining,h=p.setScreen;return(0,e.jsxs)(t.wn,{title:"Printing",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return h(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",c," Feed channels,"," ",a," of which are active, and a total of ",l," Feed stories."]}),(0,e.jsx)(t.Ki,{children:(0,e.jsxs)(t.Ki.Item,{label:"Liquid Paper remaining",children:[f*100," cm\xB3"]})}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return d("print_paper")},children:"Print Paper"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return h(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},12512:function(O,m,n){"use strict";n.r(m),n.d(m,{NewscasterViewList:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(42501),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.channels,l=x.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:a.map(function(f){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:f.admin?"good":f.censored?"bad":"",onClick:function(){o("show_channel",{show_channel:f.ref}),l(s.NEWSCASTER_SCREEN_SELECTEDCHANNEL)},children:(0,i.jT)(f.name)},f.name)})})}},96935:function(O,m,n){"use strict";n.r(m),n.d(m,{NewscasterViewSelected:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(42501),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.viewing_channel,l=c.securityCaster,f=c.company,h=x.setScreen;return a?(0,e.jsxs)(r.wn,{title:(0,i.jT)(a.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!l&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",onClick:function(){return o("toggle_d_notice",{ref:a.ref})},children:"Issue D-Notice"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return h(s.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:l&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return o("censor_channel_author",{ref:a.ref})},children:(0,i.jT)(a.author)})||(0,e.jsx)(r.az,{children:(0,i.jT)(a.author)})})}),!!a.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 ",f," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!a.messages.length&&a.messages.map(function(v){return(0,e.jsxs)(r.wn,{children:["- ",(0,i.jT)(v.body),!!v.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+v.img}),(0,i.jT)(v.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,i.jT)(v.author)," -"," ",v.timestamp,"]"]}),!!l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return o("censor_channel_story_body",{ref:v.ref})},children:"Censor Story"}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return o("censor_channel_story_author",{ref:v.ref})},children:"Censor Author"})]})]},v.ref)})||!a.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 h(s.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"}),children:"The channel you were looking for no longer exists."})}},28189:function(O,m,n){"use strict";n.r(m),n.d(m,{NewscasterViewWanted:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(42501),p=function(x){var d=(0,t.Oc)().data,o=d.wanted_issue,c=x.setScreen;return o?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c(s.NEWSCASTER_SCREEN_MAIN)},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,i.jT)(o.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,i.jT)(o.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,i.jT)(o.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:o.img&&(0,e.jsx)(r._V,{src:o.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:"There are no wanted issues currently outstanding."})}},42501:function(O,m,n){"use strict";n.r(m),n.d(m,{NEWSCASTER_SCREEN_MAIN:function(){return e},NEWSCASTER_SCREEN_NEWCHANNEL:function(){return i},NEWSCASTER_SCREEN_NEWSTORY:function(){return r},NEWSCASTER_SCREEN_NEWWANTED:function(){return p},NEWSCASTER_SCREEN_PRINT:function(){return s},NEWSCASTER_SCREEN_SELECTEDCHANNEL:function(){return d},NEWSCASTER_SCREEN_VIEWLIST:function(){return t},NEWSCASTER_SCREEN_VIEWWANTED:function(){return x}});var e="Main Menu",i="New Channel",t="View List",r="New Story",s="Print",p="New Wanted",x="View Wanted",d="View Selected Channel"},93856:function(O,m,n){"use strict";n.r(m),n.d(m,{Newscaster:function(){return v}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(3751),p=n(42501),x=n(3949),d=n(71588),o=n(85578),c=n(92432),a=n(7662),l=n(12512),f=n(96935),h=n(28189),v=function(E){return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{decode:!0}),(0,e.jsx)(j,{})]})})},j=function(E){var y=(0,i.QY)("screen",p.NEWSCASTER_SCREEN_MAIN),M=y[0],_=y[1],D=[];return D[p.NEWSCASTER_SCREEN_MAIN]=(0,e.jsx)(x.NewscasterMainMenu,{setScreen:_}),D[p.NEWSCASTER_SCREEN_NEWCHANNEL]=(0,e.jsx)(d.NewscasterNewChannel,{setScreen:_}),D[p.NEWSCASTER_SCREEN_VIEWLIST]=(0,e.jsx)(l.NewscasterViewList,{setScreen:_}),D[p.NEWSCASTER_SCREEN_NEWSTORY]=(0,e.jsx)(o.NewscasterNewStory,{setScreen:_}),D[p.NEWSCASTER_SCREEN_PRINT]=(0,e.jsx)(a.NewscasterPrint,{setScreen:_}),D[p.NEWSCASTER_SCREEN_NEWWANTED]=(0,e.jsx)(c.NewscasterNewWanted,{setScreen:_}),D[p.NEWSCASTER_SCREEN_VIEWWANTED]=(0,e.jsx)(h.NewscasterViewWanted,{setScreen:_}),D[p.NEWSCASTER_SCREEN_SELECTEDCHANNEL]=(0,e.jsx)(f.NewscasterViewSelected,{setScreen:_}),(0,e.jsx)(t.az,{children:D[M]})}},5537:function(O,m,n){"use strict";n.r(m)},4418:function(O,m,n){"use strict";n.r(m),n.d(m,{NoticeBoard:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.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:c.length?(0,e.jsx)(t.Ki,{children:c.map(function(a,l){return(0,e.jsxs)(t.Ki.Item,{label:a.name,children:[a.isphoto&&(0,e.jsx)(t.$n,{icon:"image",onClick:function(){return d("look",{ref:a.ref})},children:"Look"})||a.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sticky-note",onClick:function(){return d("read",{ref:a.ref})},children:"Read"}),(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("write",{ref:a.ref})},children:"Write"})]})||"Unknown Entity",(0,e.jsx)(t.$n,{icon:"minus-circle",onClick:function(){return d("remove",{ref:a.ref})},children:"Remove"})]},l)})}):(0,e.jsx)(t.az,{color:"average",children:"No notices posted here."})})})})}},78610:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosAccessDecrypter:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(39841),p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.message,l=c.running,f=c.rate,h=c.factor,v=c.regions,j=function(y){for(var M="";M.lengthh?M+="0":M+="1";return M},E=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:a&&(0,e.jsx)(t.IC,{children:a})||l&&(0,e.jsxs)(t.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",f," PHash/s",(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",onClick:function(){return o("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(t.wn,{title:"Pick access code to decrypt",children:v.length&&(0,e.jsx)(s.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(t.az,{children:"Please insert ID card."})})})})}},25316:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosArcade:function(){return p}});var e=n(62161),i=n(31200),t=n(7081),r=n(16754),s=n(42103),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.PlayerHitpoints,l=c.PlayerMP,f=c.PauseState,h=c.Status,v=c.Hitpoints,j=c.BossID,E=c.GameActive,y=c.TicketCount;return(0,e.jsx)(s.Zm,{width:450,height:350,children:(0,e.jsx)(s.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:a,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[a,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:l,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[l,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:f===1?"#1b3622":"#471915",children:h})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.z2,{value:v,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:v}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)(r._V,{src:(0,i.l)(j)})})]})]})}),(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:E===0||f===1,onClick:function(){return o("Attack")},children:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:E===0||f===1,onClick:function(){return o("Heal")},children:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:E===0||f===1,onClick:function(){return o("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:E===1,onClick:function(){return o("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:E===1,onClick:function(){return o("Dispense_Tickets")},children:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:y>=1?"good":"normal",children:["Earned Tickets: ",y]})]})})})}},98669:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosAtmosControl:function(){return r}});var e=n(62161),i=n(42103),t=n(74737),r=function(){return(0,e.jsx)(i.Zm,{width:870,height:708,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsx)(t.AtmosControlContent,{})})})}},34470:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosCameraConsole:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(18490),p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.mapRef,l=c.activeCamera,f=c.cameras,h=(0,s.selectCameras)(f),v=(0,s.prevNextCamera)(h,l),j=v[0],E=v[1];return(0,e.jsx)(r.Zm,{width:870,height:708,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(s.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),l&&l.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(t.$n,{icon:"chevron-left",disabled:!j,onClick:function(){return o("switch_camera",{name:j})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",disabled:!E,onClick:function(){return o("switch_camera",{name:E})}}),"| PAN:",(0,e.jsx)(t.$n,{icon:"chevron-left",onClick:function(){return o("pan",{dir:8})}}),(0,e.jsx)(t.$n,{icon:"chevron-up",onClick:function(){return o("pan",{dir:1})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",onClick:function(){return o("pan",{dir:4})}}),(0,e.jsx)(t.$n,{icon:"chevron-down",onClick:function(){return o("pan",{dir:2})}})]}),(0,e.jsx)(t.D1,{className:"CameraConsole__map",params:{id:a,type:"map"}})]})]})})}},77580:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosCommunicationsConsole:function(){return r}});var e=n(62161),i=n(42103),t=n(34116),r=function(){return(0,e.jsx)(i.Zm,{width:400,height:600,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},35300:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosConfiguration:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.PC_device_theme,a=o.power_usage,l=o.battery_exists,f=o.battery,h=f===void 0?{}:f,v=o.disk_size,j=o.disk_used,E=o.hardware,y=E===void 0?[]:E;return(0,e.jsx)(r.Zm,{theme:c,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: ",a,"W"]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Battery Status",color:!l&&"average"||void 0,children:l?(0,e.jsxs)(t.z2,{value:h.charge,minValue:0,maxValue:h.max,ranges:{good:[h.max/2,1/0],average:[h.max/4,h.max/2],bad:[-1/0,h.max/4]},children:[h.charge," / ",h.max]}):"Not Available"})})}),(0,e.jsx)(t.wn,{title:"File System",children:(0,e.jsxs)(t.z2,{value:j,minValue:0,maxValue:v,color:"good",children:[j," GQ / ",v," GQ"]})}),(0,e.jsx)(t.wn,{title:"Hardware Components",children:y.map(function(M){return(0,e.jsx)(t.wn,{title:M.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!M.critical&&(0,e.jsx)(t.$n.Checkbox,{checked:M.enabled,mr:1,onClick:function(){return d("PC_toggle_component",{name:M.name})},children:"Enabled"}),(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",M.powerusage,"W"]})]}),children:M.desc},M.name)})})]})})}},23984:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosCrewManifest:function(){return r}});var e=n(62161),i=n(42103),t=n(58044),r=function(){return(0,e.jsx)(i.Zm,{width:800,height:600,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsx)(t.CrewManifestContent,{})})})}},69233:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosCrewMonitor:function(){return s}});var e=n(62161),i=n(28277),t=n(42103),r=n(70117),s=function(){var p=function(v){c(v)},x=function(v){f(v)},d=(0,i.useState)(0),o=d[0],c=d[1],a=(0,i.useState)(1),l=a[0],f=a[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:o,zoom:l,onTabIndex:p,onZoom:x})})})}},6303:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosDigitalWarrant:function(){return p}});var e=n(62161),i=n(7402),t=n(7081),r=n(16754),s=n(42103),p=function(c){var a=(0,t.Oc)().data,l=a.warrantauth,f=(0,e.jsx)(x,{});return l&&(f=(0,e.jsx)(o,{})),(0,e.jsx)(s.Zm,{width:500,height:350,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:f})})},x=function(c){var a=(0,t.Oc)().act;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return a("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{title:"Arrest Warrants",children:(0,e.jsx)(d,{type:"arrest"})}),(0,e.jsx)(r.wn,{title:"Search Warrants",children:(0,e.jsx)(d,{type:"search"})})]})},d=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=c.type,v=f.allwarrants,j=v===void 0?[]:v,E=(0,i.pb)(function(y){return y.arrestsearch===h})(j);return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:h==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:h==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),E.length&&E.map(function(y){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:y.warrantname}),(0,e.jsx)(r.XI.Cell,{children:y.charges}),(0,e.jsx)(r.XI.Cell,{children:y.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrant",{id:y.id})}})})]},y.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",h," warrants found."]})})]})},o=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.warrantname,v=f.warrantcharges,j=f.warrantauth,E=f.type,y=E==="arrest",M=E==="arrest"?"Name":"Location",_=E==="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 l("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return l("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:M,buttons:y&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return l("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantnamecustom")}}),children:h}),(0,e.jsx)(r.Ki.Item,{label:_,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantcharges")}}),children:v}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return l("editwarrantauth")}}),children:j})]})})}},27896:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosEmailAdministration:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(94151),p=function(a){var l=(0,i.Oc)().data,f=l.error,h=l.cur_title,v=l.current_account,j=l.accounts,E=(0,e.jsx)(x,{accounts:j});return f?E=(0,e.jsx)(d,{error:f}):h?E=(0,e.jsx)(o,{}):v&&(E=(0,e.jsx)(c,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:E})})},x=function(a){var l=(0,i.Oc)().act,f=a.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 l("newaccount")},children:"Create New Account"}),(0,e.jsx)(t.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),f.map(function(h){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return l("viewaccount",{viewaccount:h.uid})},children:h.login},h.uid)})]})},d=function(a){var l=(0,i.Oc)().act,f=a.error;return(0,e.jsx)(t.wn,{title:"Message",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return l("back")},children:"Back"}),children:f})},o=function(a){return(0,e.jsx)(t.wn,{children:(0,e.jsx)(s.NtosEmailClientViewMessage,{administrator:!0})})},c=function(a){var l=(0,i.Oc)(),f=l.act,h=l.data,v=h.current_account,j=h.cur_suspended,E=h.messages,y=E===void 0?[]:E;return(0,e.jsxs)(t.wn,{title:"Viewing "+v+" in admin mode",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("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:j?"bad":"",icon:"ban",tooltip:(j?"Uns":"S")+"uspend Account?",onClick:function(){return f("ban")},children:j?"Suspended":"Normal"})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"key",onClick:function(){return f("changepass")},children:"Change Password"})})]}),(0,e.jsx)(t.wn,{title:"Messages",children:y.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"})]}),y.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 f("viewmail",{viewmail:M.uid})},children:"View"})})]},M.uid)})]})||(0,e.jsx)(t.az,{color:"average",children:"No messages found in selected account."})})]})}},94151:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosEmailClient:function(){return p},NtosEmailClientViewMessage:function(){return c}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(42103),p=function(v){var j=(0,t.Oc)().data,E=j.PC_device_theme,y=j.error,M=j.downloading,_=j.current_account,D=(0,e.jsx)(h,{});return y?D=(0,e.jsx)(f,{error:y}):M?D=(0,e.jsx)(x,{}):_&&(D=(0,e.jsx)(d,{})),(0,e.jsx)(s.Zm,{resizable:!0,theme:E,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:D})})},x=function(v){var j=(0,t.Oc)().data,E=j.down_filename,y=j.down_progress,M=j.down_size,_=j.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:[E," (",M," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:_})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{color:"good",value:y,maxValue:M,children:y+"/"+M+" ("+(0,i.Mg)(y/M*100,1)+"%)"})})]})})},d=function(v){var j=(0,t.Oc)(),E=j.act,y=j.data,M=y.current_account,_=y.addressbook,D=y.new_message,b=y.cur_title,T=y.accounts,R=(0,e.jsx)(o,{});return _?R=(0,e.jsx)(a,{accounts:T}):D?R=(0,e.jsx)(l,{}):b&&(R=(0,e.jsx)(c,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+M,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return E("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return E("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return E("logout")}})]}),children:R})},o=function(v){var j=(0,t.Oc)(),E=j.act,y=j.data,M=y.folder,_=y.messagecount,D=y.messages;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:M==="Inbox",onClick:function(){return E("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:M==="Spam",onClick:function(){return E("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:M==="Deleted",onClick:function(){return E("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),_&&(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"})]}),D.map(function(b){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:b.source}),(0,e.jsx)(r.XI.Cell,{children:b.title}),(0,e.jsx)(r.XI.Cell,{children:b.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return E("view",{view:b.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return E("reply",{reply:b.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return E("delete",{delete:b.uid})},tooltip:"Delete"})]})]},b.timestamp+b.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",M,"."]})]})},c=function(v){var j=(0,t.Oc)(),E=j.act,y=j.data,M=v.administrator,_=y.cur_title,D=y.cur_source,b=y.cur_timestamp,T=y.cur_body,R=y.cur_hasattachment,L=y.cur_attachment_filename,W=y.cur_attachment_size,$=y.cur_uid;return(0,e.jsx)(r.wn,{title:_,buttons:M?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return E("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return E("reply",{reply:$})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return E("delete",{delete:$})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return E("save",{save:$})}}),R&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return E("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return E("cancel",{cancel:$})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:D}),(0,e.jsx)(r.Ki.Item,{label:"At",children:b}),R&&!M&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[L," (",W,"GQ)"]})||"",(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:T}})})})]})})},a=function(v){var j=(0,t.Oc)().act,E=v.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("set_recipient",{set_recipient:null})}}),children:E.map(function(y){return(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return j("set_recipient",{set_recipient:y.login})},children:y.login},y.login)})})},l=function(v){var j=(0,t.Oc)(),E=j.act,y=j.data,M=y.msg_title,_=y.msg_recipient,D=y.msg_body,b=y.msg_hasattachment,T=y.msg_attachment_filename,R=y.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return E("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return E("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:M,onInput:function(L,W){return E("edit_title",{val:W})}})}),(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:_,onInput:function(L,W){return E("edit_recipient",{val:W})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return E("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:b&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return E("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return E("addattachment")},children:"Add Attachment"}),children:b&&(0,e.jsxs)(r.az,{inline:!0,children:[T," (",R,"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:D}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return E("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},f=function(v){var j=(0,t.Oc)().act,E=v.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return j("reset")},children:"Return"}),children:(0,e.jsx)(r.az,{color:"bad",children:E})})},h=function(v){var j=(0,t.Oc)(),E=j.act,y=j.data,M=y.stored_login,_=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:M,onInput:function(D,b){return E("edit_login",{val:b})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:_,onInput:function(D,b){return E("edit_password",{val:b})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return E("login")},children:"Log In"})]})}},12813:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosFileManager:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.PC_device_theme,l=c.usbconnected,f=c.filename,h=c.filedata,v=c.error,j=c.files,E=j===void 0?[]:j,y=c.usbfiles,M=y===void 0?[]:y;return(0,e.jsx)(r.Zm,{resizable:!0,theme:a,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[f&&(0,e.jsx)(t.wn,{title:"Viewing File "+f,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return o("PRG_edit")},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return o("PRG_printfile")},children:"Print"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return o("PRG_closefile")},children:"Close"})]}),children:h&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(p,{files:E,usbconnected:l,onUpload:function(_){return o("PRG_copytousb",{uid:_})},onDelete:function(_){return o("PRG_deletefile",{uid:_})},onOpen:function(_){return o("PRG_openfile",{uid:_})},onRename:function(_,D){return o("PRG_rename",{uid:_,new_name:D})},onDuplicate:function(_){return o("PRG_clone",{uid:_})}})}),l&&(0,e.jsx)(t.wn,{title:"Data Disk",children:(0,e.jsx)(p,{usbmode:!0,files:M,usbconnected:l,onUpload:function(_){return o("PRG_copyfromusb",{uid:_})},onDelete:function(_){return o("PRG_deletefile",{uid:_})},onOpen:function(_){return o("PRG_openfile",{uid:_})},onRename:function(_,D){return o("PRG_rename",{uid:_,new_name:D})},onDuplicate:function(_){return o("PRG_clone",{uid:_})}})})||null,(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return o("PRG_newtextfile")},children:"New Text File"})})]}),v&&(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 o("PRG_clearerror")}})})}),(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.so.Item,{grow:!0,children:v})})]})]})})},p=function(x){var d=x.files,o=d===void 0?[]:d,c=x.usbconnected,a=x.usbmode,l=x.onUpload,f=x.onDelete,h=x.onRename,v=x.onOpen,j=x.onDuplicate;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"})]}),o.map(function(E){return(0,e.jsxs)(t.XI.Row,{className:"candystripe",children:[(0,e.jsx)(t.XI.Cell,{children:E.undeletable?E.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{width:"80%",currentValue:E.name,tooltip:"Rename",onCommit:function(y,M){return h(E.uid,M)},children:E.name}),(0,e.jsx)(t.$n,{onClick:function(){return v(E.uid)},children:"Open"})]})}),(0,e.jsx)(t.XI.Cell,{children:E.type}),(0,e.jsx)(t.XI.Cell,{children:E.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:!E.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return f(E.uid)}}),!!c&&(a?(0,e.jsx)(t.$n,{icon:"download",tooltip:"Download",onClick:function(){return l(E.uid)}}):(0,e.jsx)(t.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return l(E.uid)}}))]})})]},E.name)})]})}},39925:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosIdentificationComputer:function(){return r}});var e=n(62161),i=n(42103),t=n(39841),r=function(){return(0,e.jsx)(i.Zm,{width:600,height:700,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.IdentificationComputerContent,{ntos:!0})})})}},45319:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosMain:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s={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"},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.device_theme,l=c.programs,f=l===void 0?[]:l,h=c.has_light,v=c.light_on,j=c.comp_light_color,E=c.removable_media,y=E===void 0?[]:E,M=c.login,_=M===void 0?{}:M;return(0,e.jsx)(r.Zm,{title:a==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:a,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!h&&(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.$n,{width:"144px",icon:"lightbulb",selected:v,onClick:function(){return o("PC_toggle_light")},children:["Flashlight: ",v?"ON":"OFF"]}),(0,e.jsxs)(t.$n,{ml:1,onClick:function(){return o("PC_light_color")},children:["Color:",(0,e.jsx)(t.BK,{ml:1,color:j})]})]}),(0,e.jsx)(t.wn,{title:"User Login",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!_.IDName,onClick:function(){return o("PC_Eject_Disk",{name:"ID"})},children:"Eject ID"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:["ID Name: ",_.IDName]}),(0,e.jsxs)(t.XI.Row,{children:["Assignment: ",_.IDJob]})]})}),!!y.length&&(0,e.jsx)(t.wn,{title:"Media Eject",children:(0,e.jsx)(t.XI,{children:y.map(function(D){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 o("PC_Eject_Disk",{name:D})},children:D})})},D)})})}),(0,e.jsx)(t.wn,{title:"Programs",children:(0,e.jsx)(t.XI,{children:f.map(function(D){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:s[D.name]||"window-maximize-o",onClick:function(){return o("PC_runprogram",{name:D.name})},children:D.desc})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:!!D.running&&(0,e.jsx)(t.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return o("PC_killprogram",{name:D.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:D.autorun,onClick:function(){return o("PC_setautorun",{name:D.name})},children:"AR"})})]},D.name)})})})]})})}},9785:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosNetChat:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.can_admin,a=o.adminmode,l=o.authed,f=o.username,h=o.active_channel,v=o.is_operator,j=o.all_channels,E=j===void 0?[]:j,y=o.clients,M=y===void 0?[]:y,_=o.messages,D=_===void 0?[]:_,b=h!==null,T=l||a;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(R,L){return d("PRG_newchannel",{new_channel_name:L})},children:"New Channel..."}),E.map(function(R){return(0,e.jsx)(t.$n,{fluid:!0,selected:R.id===h,color:"transparent",onClick:function(){return d("PRG_joinchannel",{id:R.id})},children:R.chan},R.chan)})]}),(0,e.jsx)(t.$n.Input,{fluid:!0,mt:1,currentValue:f,onCommit:function(R,L){return d("PRG_changename",{new_name:L})},children:f+"..."}),!!c&&(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:a?"bad":"good",onClick:function(){return d("PRG_toggleadmin")},children:"ADMIN MODE: "+(a?"ON":"OFF")})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.az,{height:"560px",overflowY:"scroll",children:b&&(T?D.map(function(R){return(0,e.jsx)(t.az,{children:R.msg},R.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(R,L){return d("PRG_speak",{message:L})}})]}),(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(t.az,{height:"465px",overflowY:"scroll",children:M.map(function(R){return(0,e.jsx)(t.az,{children:R.name},R.name)})}),b&&T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,defaultValue:"new_log",onCommit:function(R,L){return d("PRG_savelog",{log_name:L})},children:"Save log..."}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return d("PRG_leavechannel")},children:"Leave Channel"})]}),!!v&&l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return d("PRG_deletechannel")},children:"Delete Channel"}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(R,L){return d("PRG_renamechannel",{new_name:L})},children:"Rename Channel..."}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(R,L){return d("PRG_setpassword",{new_password:L})},children:"Set Password..."})]})]})]})})})})})}},82193:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosNetDos:function(){return s},NtosNetDosContent:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(p,{})})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.relays,l=a===void 0?[]:a,f=c.focus,h=c.target,v=c.speed,j=c.overload,E=c.capacity,y=c.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 o("PRG_reset")},children:"Reset"})]});var M=function(D){for(var b="",T=j/E;b.lengthT?b+="0":b+="1";return b},_=45;return h?(0,e.jsxs)(t.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(t.az,{children:["CURRENT SPEED: ",v," GQ/s"]}),(0,e.jsx)(t.az,{children:M(_)}),(0,e.jsx)(t.az,{children:M(_)}),(0,e.jsx)(t.az,{children:M(_)}),(0,e.jsx)(t.az,{children:M(_)}),(0,e.jsx)(t.az,{children:M(_)})]}):(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:l.map(function(D){return(0,e.jsx)(t.$n,{selected:f===D.id,onClick:function(){return o("PRG_target_relay",{targid:D.id})},children:D.id},D.id)})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:"bad",textAlign:"center",disabled:!f,mt:1,onClick:function(){return o("PRG_execute")},children:"EXECUTE"})]})}},43726:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosNetDownloader:function(){return p}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(42103),p=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.PC_device_theme,f=a.disk_size,h=a.disk_used,v=a.downloadable_programs,j=v===void 0?[]:v,E=a.error,y=a.hacked_programs,M=y===void 0?[]:y,_=a.hackedavailable;return(0,e.jsx)(s.Zm,{theme:l,width:480,height:735,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!E&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:E}),(0,e.jsx)(r.$n,{onClick:function(){return c("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:h,minValue:0,maxValue:f,children:h+" GQ / "+f+" GQ"})})})}),(0,e.jsx)(r.wn,{children:j.map(function(D){return(0,e.jsx)(x,{program:D},D.filename)})}),!!_&&(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."}),M.map(function(D){return(0,e.jsx)(x,{program:D},D.filename)})]})]})})},x=function(d){var o=d.program,c=(0,t.Oc)(),a=c.act,l=c.data,f=l.disk_size,h=l.disk_used,v=l.downloadcompletion,j=l.downloadname,E=l.downloadsize,y=l.downloadspeed,M=l.downloads_queue,_=f-h;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:o.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[o.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:o.filename===j&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:E,value:v,children:[(0,i.Mg)(v/E*100,1),"%\xA0","("+y+"GQ/s)"]})||M.indexOf(o.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return a("PRG_removequeued",{filename:o.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",disabled:o.size>_,onClick:function(){return a("PRG_downloadfile",{filename:o.filename})},children:"Download"})})]}),o.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!"]}),o.size>_&&(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:o.fileinfo})]})}},30817:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosNetMonitor:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.ntnetrelays,a=o.ntnetstatus,l=o.config_softwaredownload,f=o.config_peertopeer,h=o.config_communication,v=o.config_systemcontrol,j=o.idsalarm,E=o.idsstatus,y=o.ntnetmaxlogs,M=o.maxlogs,_=o.minlogs,D=o.banned_nids,b=o.ntnetlogs,T=b===void 0?[]:b;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:a?"power-off":"times",selected:a,onClick:function(){return d("toggleWireless")},children:a?"ENABLED":"DISABLED"}),children:c?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Active NTNet Relays",children:c})}):"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:l?"power-off":"times",selected:l,onClick:function(){return d("toggle_function",{id:"1"})},children:l?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(t.$n,{icon:f?"power-off":"times",selected:f,onClick:function(){return d("toggle_function",{id:"2"})},children:f?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(t.$n,{icon:h?"power-off":"times",selected:h,onClick:function(){return d("toggle_function",{id:"3"})},children:h?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,onClick:function(){return d("toggle_function",{id:"4"})},children:v?"ENABLED":"DISABLED"})})]})}),(0,e.jsxs)(t.wn,{title:"Security Systems",children:[!!j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(t.az,{italic:!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 d("ban_nid")},children:"Ban NID"}),(0,e.jsx)(t.$n,{icon:"balance-scale",onClick:function(){return d("unban_nid")},children:"Unban NID"})]}),children:D.join(", ")||"None"}),(0,e.jsx)(t.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:E?"power-off":"times",selected:E,onClick:function(){return d("toggleIDS")},children:E?"ENABLED":"DISABLED"}),(0,e.jsx)(t.$n,{icon:"sync",color:"bad",onClick:function(){return d("resetIDS")},children:"Reset"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(t.Q7,{value:y,minValue:_,maxValue:M,width:"39px",onChange:function(R,L){return d("updatemaxlogs",{new_number:L})}})})]}),(0,e.jsx)(t.wn,{title:"System Log",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return d("purgelogs")},children:"Clear Logs"}),children:T.map(function(R){return(0,e.jsx)(t.az,{className:"candystripe",children:R.entry},R.entry)})})]})]})})}},49106:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosNetTransfer:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(a){var l=(0,i.Oc)().data,f=l.error,h=l.downloading,v=l.uploading,j=l.upload_filelist,E=(0,e.jsx)(c,{});return f?E=(0,e.jsx)(p,{}):h?E=(0,e.jsx)(x,{}):v?E=(0,e.jsx)(d,{}):j.length&&(E=(0,e.jsx)(o,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:E})})},p=function(a){var l=(0,i.Oc)(),f=l.act,h=l.data,v=h.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 f("PRG_reset")},children:"Reset"}),children:["Additional Information: ",v]})},x=function(a){var l=(0,i.Oc)(),f=l.act,h=l.data,v=h.download_name,j=h.download_progress,E=h.download_size,y=h.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:v}),(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsxs)(t.z2,{value:j,maxValue:E,children:[j," / ",E," 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 f("PRG_reset")},children:"Cancel Download"})})]})})},d=function(a){var l=(0,i.Oc)(),f=l.act,h=l.data,v=h.upload_clients,j=h.upload_filename,E=h.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:v}),(0,e.jsx)(t.Ki.Item,{label:"Provided file",children:j}),(0,e.jsx)(t.Ki.Item,{label:"Server Password",children:E?"Enabled":"Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Commands",children:[(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return f("PRG_reset")},children:"Cancel Upload"})]})]})})},o=function(a){var l=(0,i.Oc)(),f=l.act,h=l.data,v=h.upload_filelist;return(0,e.jsxs)(t.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.wn,{title:"Pick file to serve.",children:v.map(function(j){return(0,e.jsxs)(t.$n,{fluid:!0,icon:"upload",onClick:function(){return f("PRG_uploadfile",{uid:j.uid})},children:[j.filename," (",j.size,"GQ)"]},j.uid)})})]})},c=function(a){var l=(0,i.Oc)(),f=l.act,h=l.data,v=h.servers;return(0,e.jsx)(t.wn,{title:"Available Files",buttons:(0,e.jsx)(t.$n,{icon:"upload",onClick:function(){return f("PRG_uploadmenu")},children:"Send File"}),children:v.length&&(0,e.jsx)(t.Ki,{children:v.map(function(j){return(0,e.jsxs)(t.Ki.Item,{label:j.uid,children:[!!j.haspassword&&(0,e.jsx)(t.In,{name:"lock",mr:1}),j.filename,"\xA0 (",j.size,"GQ)\xA0",(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return f("PRG_downloadfile",{uid:j.uid})},children:"Download"})]},j.uid)})})||(0,e.jsx)(t.az,{children:"No upload servers found."})})}},50653:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosNewsBrowser:function(){return p}});var e=n(62161),i=n(31200),t=n(7081),r=n(16754),s=n(42103),p=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.article,v=f.download,j=f.message,E=(0,e.jsx)(d,{});return h?E=(0,e.jsx)(x,{}):v&&(E=(0,e.jsx)(o,{})),(0,e.jsx)(s.Zm,{width:575,height:750,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.IC,{children:[j," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return l("PRG_clearmessage")}})]}),E]})})},x=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.article;if(!h)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var v=h.title,j=h.cover,E=h.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+v,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return l("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return l("PRG_reset")},children:"Close"})]}),children:[!!j&&(0,e.jsx)(r._V,{src:(0,i.l)(j)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:E}})]})},d=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.showing_archived,v=f.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return l("PRG_toggle_archived")},checked:h,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:v.length&&v.map(function(j){return(0,e.jsxs)(r.Ki.Item,{label:j.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return l("PRG_openarticle",{uid:j.uid})}}),children:[j.size," GQ"]},j.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},o=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.download,v=h.download_progress,j=h.download_maxprogress,E=h.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:v,maxValue:j,children:[v," / ",j," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[E," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return l("PRG_reset")},children:"Abort Download"})})]})})}},95436:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosOvermapNavigation:function(){return r}});var e=n(62161),i=n(42103),t=n(65912),r=function(){return(0,e.jsx)(i.Zm,{width:380,height:530,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.OvermapNavigationContent,{})})})}},75655:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosPowerMonitor:function(){return r}});var e=n(62161),i=n(42103),t=n(91276),r=function(){return(0,e.jsx)(i.Zm,{width:550,height:700,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},81986:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosRCON:function(){return r}});var e=n(62161),i=n(42103),t=n(72778),r=function(){return(0,e.jsx)(i.Zm,{width:630,height:440,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.RCONContent,{})})})}},35399:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosRevelation:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.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(a,l){return d("PRG_obfuscate",{new_name:l})},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:c?"bad":"average",onClick:function(){return d("PRG_arm")},children:c?"ARMED":"DISARMED"})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,textAlign:"center",color:"bad",disabled:!c,children:"ACTIVATE"})]})})})}},79389:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosShutoffMonitor:function(){return r}});var e=n(62161),i=n(42103),t=n(67889),r=function(){return(0,e.jsx)(i.Zm,{width:627,height:700,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsx)(t.ShutoffMonitorContent,{})})})}},98011:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosStationAlertConsole:function(){return r}});var e=n(62161),i=n(42103),t=n(68679),r=function(){return(0,e.jsx)(i.Zm,{width:315,height:500,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.StationAlertConsoleContent,{})})})}},57488:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosSupermatterMonitor:function(){return r}});var e=n(62161),i=n(42103),t=n(50028),r=function(){return(0,e.jsx)(i.Zm,{width:600,height:400,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.SupermatterMonitorContent,{})})})}},10774:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosUAV:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.current_uav,a=o.signal_strength,l=o.in_use,f=o.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:c&&c.status||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Signal",children:c&&a||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:c&&(0,e.jsx)(t.$n,{icon:"power-off",selected:c.power,onClick:function(){return d("power_uav")},children:c.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Camera",children:c&&(0,e.jsx)(t.$n,{icon:"power-off",selected:l,disabled:!c.power,onClick:function(){return d("view_uav")},children:c.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(t.wn,{title:"Paired UAVs",children:f.length&&f.map(function(h){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 d("switch_uav",{switch_uav:h.uavref})},children:h.name})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{color:"bad",icon:"times",onClick:function(){return d("del_uav",{del_uav:h.uavref})}})})]},h.uavref)})||(0,e.jsx)(t.az,{color:"average",children:"No UAVs Paired."})})]})})}},69062:function(O,m,n){"use strict";n.r(m),n.d(m,{NtosWordProcessor:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.PC_device_theme,a=o.error,l=o.browsing,f=o.files,h=o.filename,v=o.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:c,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:a&&(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",a,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("PRG_backtomenu")},children:"Back to menu"})]})||l&&(0,e.jsx)(t.wn,{title:"File Browser",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("PRG_closebrowser")},children:"Back to editor"}),children:(0,e.jsx)(t.wn,{title:"Available documents (local)",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})]}),f.map(function(j,E){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:j.name}),(0,e.jsx)(t.XI.Cell,{children:j.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return d("PRG_openfile",{PRG_openfile:j.name})},children:"Open"})})]},E)})]})})})||(0,e.jsxs)(t.wn,{title:"Document: "+h,children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_newfile")},children:"New"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_savefile")},children:"Save"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_editfile")},children:"Edit"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(t.$n,{disabled:!v,onClick:function(){return d("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(t.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})})]})})})}},46836:function(O,m,n){"use strict";n.r(m),n.d(m,{NumberInputModal:function(){return o}});var e=n(62161),i=n(87239),t=n(28277),r=n(7081),s=n(16754),p=n(42103),x=n(5335),d=n(44149),o=function(a){var l=(0,r.Oc)(),f=l.act,h=l.data,v=h.init_value,j=h.large_buttons,E=h.message,y=E===void 0?"":E,M=h.timeout,_=h.title,D=(0,t.useState)(v),b=D[0],T=D[1],R=function(W){W!==b&&T(W)},L=140+(y.length>30?Math.ceil(y.length/3):0)+(y.length&&j?5:0);return(0,e.jsxs)(p.p8,{title:_,width:270,height:L,children:[M&&(0,e.jsx)(d.Loader,{value:M}),(0,e.jsx)(p.p8.Content,{onKeyDown:function(W){W.key===i._.Enter&&f("submit",{entry:b}),W.key===i._.Escape&&f("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.az,{color:"label",children:y})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(c,{input:b,onClick:R,onChange:R,onBlur:R})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(x.InputButtons,{input:b})})]})})})]})},c=function(a){var l=(0,r.Oc)(),f=l.act,h=l.data,v=h.min_value,j=h.max_value,E=h.init_value,y=h.round_value,M=a.input,_=a.onClick,D=a.onChange,b=a.onBlur;return(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:M===v,icon:"angle-double-left",onClick:function(){return _(v)},tooltip:v?"Min ("+v+")":"Min"})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!y,minValue:v,maxValue:j,onChange:function(T,R){return D(R)},onBlur:function(T,R){return b(R)},onEnter:function(T,R){return f("submit",{entry:R})},value:M})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:M===j,icon:"angle-double-right",onClick:function(){return _(j)},tooltip:j?"Max ("+j+")":"Max"})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:M===E,icon:"redo",onClick:function(){return _(E)},tooltip:E?"Reset ("+E+")":"Reset"})})]})}},12333:function(O,m,n){"use strict";n.r(m),n.d(m,{OmniFilter:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.power,l=c.config,f=c.ports,h=c.set_flow_rate,v=c.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:l?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:a,disabled:l,onClick:function(){return o("power")},children:a?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:l,onClick:function(){return o("configure")}})]}),children:(0,e.jsx)(t.Ki,{children:f?f.map(function(j){return(0,e.jsx)(t.Ki.Item,{label:j.dir+" Port",children:l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:j.input,icon:"compress-arrows-alt",onClick:function(){return o("switch_mode",{mode:"in",dir:j.dir})},children:"IN"}),(0,e.jsx)(t.$n,{selected:j.output,icon:"expand-arrows-alt",onClick:function(){return o("switch_mode",{mode:"out",dir:j.dir})},children:"OUT"}),(0,e.jsx)(t.$n,{icon:"wrench",disabled:j.input||j.output,onClick:function(){return o("switch_filter",{mode:j.f_type,dir:j.dir})},children:j.f_type||"None"})]}):s(j)},j.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:[v," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:l?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return o("set_flow_rate")},children:h+" L/s"}):h+" L/s"})]})})]})})}},60780:function(O,m,n){"use strict";n.r(m),n.d(m,{OmniMixer:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(d){return d.input?"Input":d.output?"Output":d.f_type?d.f_type:"Disabled"},p=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.power,f=a.config,h=a.ports,v=a.set_flow_rate,j=a.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:f?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:l,disabled:f,onClick:function(){return c("power")},children:l?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:f,onClick:function(){return c("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"}),f?(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"}),f?(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),h?h.map(function(E){return(0,e.jsx)(x,{port:E,config:f},E.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:[j," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:f?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return c("set_flow_rate")},children:v+" L/s"}):v+" L/s"})]})})]})})},x=function(d){var o=(0,i.Oc)().act,c=d.port,a=d.config;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:c.dir+" Port"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:a?(0,e.jsx)(t.$n,{selected:c.input,disabled:c.output,icon:"compress-arrows-alt",onClick:function(){return o("switch_mode",{mode:c.input?"none":"in",dir:c.dir})},children:"IN"}):s(c)}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:a?(0,e.jsx)(t.$n,{selected:c.output,icon:"expand-arrows-alt",onClick:function(){return o("switch_mode",{mode:"out",dir:c.dir})},children:"OUT"}):c.concentration*100+"%"}),a?(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:!c.input,onClick:function(){return o("switch_con",{dir:c.dir})},children:c.input?c.concentration*100+" %":"-"})}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{icon:c.con_lock?"lock":"lock-open",disabled:!c.input,selected:c.con_lock,onClick:function(){return o("switch_conlock",{dir:c.dir})},children:c.f_type||"None"})})]}):null]})}},43213:function(O,m,n){"use strict";n.r(m),n.d(m,{OperatingComputerOptions:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.verbose,c=d.health,a=d.healthAlarm,l=d.oxy,f=d.oxyAlarm,h=d.crit;return(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(t.$n,{selected:o,icon:o?"toggle-on":"toggle-off",onClick:function(){return x(o?"verboseOff":"verboseOn")},children:o?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(t.$n,{selected:c,icon:c?"toggle-on":"toggle-off",onClick:function(){return x(c?"healthOff":"healthOn")},children:c?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:a,stepPixelSize:"5",ml:"0",format:function(v){return v+"%"},onChange:function(v,j){return x("health_adj",{new:j})}})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(t.$n,{selected:l,icon:l?"toggle-on":"toggle-off",onClick:function(){return x(l?"oxyOff":"oxyOn")},children:l?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:f,stepPixelSize:"5",ml:"0",onChange:function(v,j){return x("oxy_adj",{new:j})}})}),(0,e.jsx)(t.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(t.$n,{selected:h,icon:h?"toggle-on":"toggle-off",onClick:function(){return x(h?"critOff":"critOn")},children:h?"On":"Off"})})]})}},88424:function(O,m,n){"use strict";n.r(m),n.d(m,{OperatingComputerPatient:function(){return s}});var e=n(62161),i=n(4089),t=n(16754),r=n(6050),s=function(p){var x=p.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Patient",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:x.name}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[x.stat][0],children:r.stats[x.stat][1]}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),r.damages.map(function(d,o){return(0,e.jsx)(t.Ki.Item,{label:d[0]+" Damage",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:x[d[1]]/100,ranges:r.damageRange,children:(0,i.Mg)(x[d[1]])},o)},o)}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:x.bodyTemperature/x.maxTemp,color:r.tempColors[x.temperatureSuitability+3],children:[(0,i.Mg)(x.btCelsius),"\xB0C, ",(0,i.Mg)(x.btFaren),"\xB0F"]})}),!!x.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:x.bloodLevel/x.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[x.bloodPercent,"%, ",x.bloodLevel,"cl"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Pulse",children:[x.pulse," BPM"]})]})]})}),(0,e.jsx)(t.wn,{title:"Current Procedure",children:x.surgery&&x.surgery.length?(0,e.jsx)(t.Ki,{children:x.surgery.map(function(d){return(0,e.jsx)(t.Ki.Item,{label:d.name,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current State",children:d.currentStage}),(0,e.jsx)(t.Ki.Item,{label:"Possible Next Steps",children:d.nextSteps.map(function(o){return(0,e.jsx)("div",{children:o},o)})})]})},d.name)})}):(0,e.jsx)(t.az,{color:"label",children:"No procedure ongoing."})})]})}},13846:function(O,m,n){"use strict";n.r(m),n.d(m,{OperatingComputerUnoccupied:function(){return t}});var e=n(62161),i=n(16754),t=function(r){return(0,e.jsx)(i.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(i.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(i.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No patient detected."]})})}},6050:function(O,m,n){"use strict";n.r(m),n.d(m,{damageRange:function(){return t},damages:function(){return i},stats:function(){return e},tempColors:function(){return r}});var e=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],i=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],t={average:[.25,.5],bad:[.5,1/0]},r=["bad","average","average","good","average","average","bad"]},70509:function(O,m,n){"use strict";n.r(m),n.d(m,{OperatingComputer:function(){return d}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(43213),p=n(88424),x=n(13846),d=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.hasOccupant,h=l.choice,v=l.occupant,j;return h?j=(0,e.jsx)(s.OperatingComputerOptions,{}):j=f?(0,e.jsx)(p.OperatingComputerPatient,{occupant:v}):(0,e.jsx)(x.OperatingComputerUnoccupied,{}),(0,e.jsx)(r.p8,{width:650,height:455,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!h,icon:"user",onClick:function(){return a("choiceOff")},children:"Patient"}),(0,e.jsx)(t.tU.Tab,{selected:!!h,icon:"cog",onClick:function(){return a("choiceOn")},children:"Options"})]}),(0,e.jsx)(t.wn,{flexGrow:!0,children:j})]})})}},36882:function(O,m,n){"use strict";n.r(m)},81105:function(O,m,n){"use strict";n.r(m),n.d(m,{OvermapDisperser:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(91198),p=function(d){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.faillink,f=a.calibration,h=a.overmapdir,v=a.cal_accuracy,j=a.strength,E=a.range,y=a.next_shot,M=a.nopower,_=a.chargeload;return l?(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)(s.OvermapPanControls,{actToDo:"choose",selected:function(D){return D===h}})})}),(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:[M&&(0,e.jsx)(t.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||"",(0,e.jsx)(t.Ki.Item,{label:"Charge Load Type",children:_}),(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."})]})||""})]})})}),(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:v}),"%",(0,e.jsx)(t.$n,{ml:1,icon:"exchange-alt",onClick:function(){return c("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(t.az,{mt:1,children:f.map(function(D,b){return(0,e.jsxs)(t.az,{children:["Cal #",b,":",(0,e.jsx)(t.$n,{ml:1,icon:"random",onClick:function(){return c("calibration",{calibration:b})},children:D.toString()})]},b)})})]})}),(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 c("strength")},children:j})}),(0,e.jsx)(t.Ki.Item,{label:"Radius",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return c("range")},children:E})})]})})}),(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 c("fire")},children:"Fire ORB"})})]})}},22813:function(O,m,n){"use strict";n.r(m),n.d(m,{OvermapEngines:function(){return s},OvermapEnginesContent:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(x){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(p,{})})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.global_state,l=c.global_limit,f=c.engines_info,h=c.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:a,onClick:function(){return o("global_toggle")},children:a?"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 o("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return o("set_global_limit")},children:[l,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return o("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(t.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(t.zv,{value:h})})]})}),(0,e.jsx)(t.wn,{title:"Engines",height:"340px",style:{overflowY:"auto"},children:f.map(function(v,j){return(0,e.jsxs)(t.so,{spacing:1,mt:j!==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 #",j+1," | Thrust:"," ",(0,e.jsx)(t.zv,{value:v.eng_thrust})," | Limit:"," ",(0,e.jsx)(t.zv,{value:v.eng_thrust_limiter,format:function(E){return E+"%"}})]}),children:(0,e.jsx)(t.wn,{width:"127%",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Type",children:v.eng_type}),(0,e.jsxs)(t.Ki.Item,{label:"Status",children:[(0,e.jsx)(t.az,{color:v.eng_on?v.eng_on===1?"good":"average":"bad",children:v.eng_on?v.eng_on===1?"Online":"Booting":"Offline"}),v.eng_status.map(function(E,y){return Array.isArray(E)?(0,e.jsx)(t.az,{color:E[1],children:E[0]},y):(0,e.jsx)(t.az,{children:E},y)})]}),(0,e.jsx)(t.Ki.Item,{label:"Current Thrust",children:v.eng_thrust}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return o("limit",{limit:-.1,engine:v.eng_reference})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return o("set_limit",{engine:v.eng_reference})},children:[v.eng_thrust_limiter,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return o("limit",{limit:.1,engine:v.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(t.so.Item,{basis:"20%",children:(0,e.jsx)(t.$n,{fluid:!0,iconSpin:v.eng_on===-1,color:v.eng_on===-1?"purple":void 0,selected:v.eng_on===1,icon:"power-off",onClick:function(){return o("toggle_engine",{engine:v.eng_reference})},children:v.eng_on?v.eng_on===1?"Shutoff":"Booting":"Startup"})})]},j)})})]})}},61321:function(O,m,n){"use strict";n.r(m),n.d(m,{OvermapFull:function(){return d}});var e=n(62161),i=n(28277),t=n(16754),r=n(42103),s=n(22813),p=n(7558),x=n(97275),d=function(o){var c=(0,i.useState)(0),a=c[0],l=c[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:a===0,onClick:function(){return l(0)},children:"Engines"}),(0,e.jsx)(t.tU.Tab,{selected:a===1,onClick:function(){return l(1)},children:"Helm"}),(0,e.jsx)(t.tU.Tab,{selected:a===2,onClick:function(){return l(2)},children:"Sensors"})]}),a===0&&(0,e.jsx)(s.OvermapEnginesContent,{}),a===1&&(0,e.jsx)(p.OvermapHelmContent,{}),a===2&&(0,e.jsx)(x.OvermapShipSensorsContent,{})]})})}},7558:function(O,m,n){"use strict";n.r(m),n.d(m,{OvermapFlightDataWrap:function(){return d},OvermapHelm:function(){return p},OvermapHelmContent:function(){return x}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(91198),p=function(l){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(l){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)(d,{})}),(0,e.jsx)(t.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(o,{})}),(0,e.jsx)(t.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(c,{})})]}),(0,e.jsx)(a,{})]})},d=function(l){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)(s.OvermapFlightData,{})]})},o=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.canburn,E=v.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)(s.OvermapPanControls,{disabled:!j,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:E,onClick:function(){return h("manual")},icon:"compass",children:E?"Enabled":"Disabled"})]})]})},c=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.dest,E=v.d_x,y=v.d_y,M=v.speedlimit,_=v.autopilot,D=v.autopilot_disabled;return D?(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 h("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:j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{onClick:function(){return h("setcoord",{setx:!0})},children:E}),(0,e.jsx)(t.$n,{onClick:function(){return h("setcoord",{sety:!0})},children:y})]})||(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return h("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 h("speedlimit")},children:[M," Gm/h"]})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,selected:_,disabled:!j,icon:"robot",onClick:function(){return h("apilot")},children:_?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return h("apilot_lock")},children:"Lock Autopilot"})]})},a=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.sector,E=v.s_x,y=v.s_y,M=v.sector_info,_=v.landed,D=v.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:j}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[E," : ",y]}),(0,e.jsx)(t.Ki.Item,{label:"Scan Data",children:M}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:_})]}),(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 h("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 h("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"})]}),D.map(function(b){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:b.name}),(0,e.jsxs)(t.XI.Cell,{children:[b.x," : ",b.y]}),(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return h("setds",{x:b.x,y:b.y})},children:"Plot Course"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return h("remove",{remove:b.reference})},children:"Remove"})]})]},b.name)})]})})]})}},65912:function(O,m,n){"use strict";n.r(m),n.d(m,{OvermapNavigation:function(){return p},OvermapNavigationContent:function(){return x}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(91198),p=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.sector,f=a.s_x,h=a.s_y,v=a.sector_info,j=a.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:j,onClick:function(){return c("viewing")},children:"Map View"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:l}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[f," : ",h]}),(0,e.jsx)(t.Ki.Item,{label:"Additional Information",children:v})]})}),(0,e.jsx)(t.wn,{title:"Flight Data",children:(0,e.jsx)(s.OvermapFlightData,{disableLimiterControls:!0})})]})}},30766:function(O,m,n){"use strict";n.r(m),n.d(m,{OvermapShieldGenerator:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(o){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(p,{})})})},p=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.modes,h=l.offline_for;return h?(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: ",h," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),(0,e.jsx)(d,{}),(0,e.jsx)(t.wn,{title:"Field Calibration",children:f.map(function(v){return(0,e.jsxs)(t.wn,{title:v.name,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v.status,onClick:function(){return a("toggle_mode",{toggle_mode:v.flag})},children:v.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(t.az,{color:"label",children:v.desc}),(0,e.jsxs)(t.az,{mt:.5,children:["Multiplier: ",v.multiplier]})]},v.name)})})]})},x=function(o){var c=(0,i.Oc)().data,a=c.running,l=c.overloaded,f=c.mitigation_max,h=c.mitigation_physical,v=c.mitigation_em,j=c.mitigation_heat,E=c.field_integrity,y=c.max_energy,M=c.current_energy,_=c.percentage_energy,D=c.total_segments,b=c.functional_segments,T=c.field_radius,R=c.target_radius,L=c.input_cap_kw,W=c.upkeep_power_usage,$=c.power_usage,F=c.spinup_counter,k=[];return k[1]=(0,e.jsx)(t.az,{color:"average",children:"Shutting Down"}),k[2]=(0,e.jsx)(t.az,{color:"bad",children:"Overloaded"}),k[3]=(0,e.jsx)(t.az,{color:"average",children:"Inactive"}),k[4]=(0,e.jsxs)(t.az,{color:"blue",children:["Spinning Up\xA0",R!==T&&(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.wn,{title:"System Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Generator is",children:k[a]||(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:M,maxValue:y,children:[M," / ",y," MJ (",_,"%)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(t.zv,{value:E}),"%"]}),(0,e.jsxs)(t.Ki.Item,{label:"Mitigation",children:[v,"% EM / ",h,"% PH / ",j,"% HE / ",f,"% MAX"]}),(0,e.jsxs)(t.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(t.zv,{value:W})," kW"]}),(0,e.jsx)(t.Ki.Item,{label:"Total Energy Use",children:L&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.z2,{value:$,maxValue:L,children:[$," / ",L," kW"]})})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.zv,{value:$})," kW (No Limit)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(t.zv,{value:b}),"\xA0/\xA0",(0,e.jsx)(t.zv,{value:D})," m\xB2 (radius"," ",(0,e.jsx)(t.zv,{value:T}),", target"," ",(0,e.jsx)(t.zv,{value:R}),")"]})]})})},d=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.running,h=l.hacked,v=l.idle_multiplier,j=l.idle_valid_values;return(0,e.jsxs)(t.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[f>=2&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return a("begin_shutdown")},selected:!0,children:"Turn off"}),f===3&&(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return a("start_generator")},children:"Turn on"}),f&&h&&(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return a("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||""]}),children:[(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return a("set_range")},children:"Set Field Range"}),(0,e.jsx)(t.$n,{icon:"bolt",onClick:function(){return a("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:j.map(function(E){return(0,e.jsx)(t.$n,{selected:E===v,disabled:f===4,onClick:function(){return a("switch_idle",{switch_idle:E})},children:E},E)})})})]})}},97275:function(O,m,n){"use strict";n.r(m),n.d(m,{OvermapShipSensors:function(){return s},OvermapShipSensorsContent:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(x){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(p,{})})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.viewing,l=c.on,f=c.range,h=c.health,v=c.max_health,j=c.heat,E=c.critical_heat,y=c.status,M=c.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:a,onClick:function(){return o("viewing")},children:"Map View"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return o("toggle_sensor")},children:l?"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 o("range")},children:f})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(t.z2,{ranges:{good:[v*.75,1/0],average:[v*.25,v*.75],bad:[-1/0,v*.25]},value:h,maxValue:v,children:[h," / ",v]})}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsx)(t.z2,{ranges:{bad:[E*.75,1/0],average:[E*.5,E*.75],good:[-1/0,E*.5]},value:j,maxValue:E,children:j0||!v)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return c("cancel",{cancel:_+1})},children:"Cancel"})||""]},M)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:y.length&&y.map(function(M){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return c("queue",{queue:M.type})},children:(0,i.Sn)(M.name)})},M.name)})})]})})}},71675:function(O,m,n){"use strict";n.r(m),n.d(m,{PathogenicIsolator:function(){return d}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103),p=n(86471),x=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data,v=h.can_print,j=a.args;return(0,e.jsx)(r.wn,{m:"-1rem",title:j.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!v,icon:"print",onClick:function(){return f("print",{type:"virus_record",vir:j.record})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return f("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:[j.spreadtype," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:j.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:j.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[j.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:j.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:j.symptoms.map(function(E){return(0,e.jsxs)(r.Ki.Item,{label:E.stage+". "+E.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",E.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",E.aggressiveness]})]},E.stage)})})})]})})})},d=function(a){var l=(0,t.Oc)().data,f=l.isolating,h=(0,i.useState)(0),v=h[0],j=h[1],E=[];return E[0]=(0,e.jsx)(o,{}),E[1]=(0,e.jsx)(c,{}),(0,p.modalRegisterBodyOverride)("virus",x),(0,e.jsxs)(s.p8,{height:500,width:520,children:[(0,e.jsx)(p.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[f&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||"",(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:v===0,onClick:function(){return j(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:v===1,onClick:function(){return j(1)},children:"Database"})]}),E[v]||""]})]})},o=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data,v=h.syringe_inserted,j=h.pathogen_pool,E=h.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:!E,onClick:function(){return f("print",{type:"patient_diagnosis"})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"eject",disabled:!v,onClick:function(){return f("eject")},children:"Eject Syringe"})]}),children:j.length&&j.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 f("isolate",{isolate:y.reference})},children:"Isolate"}),(0,e.jsx)(r.$n,{icon:"search",disabled:!y.is_in_database,onClick:function(){return f("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)})||(v?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},c=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data,v=h.database,j=h.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",disabled:!j,onClick:function(){return f("print",{type:"virus_list"})},children:"Print"}),children:v.length&&v.map(function(E){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return f("view_entry",{vir:E.record})},children:E.name},E.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},6787:function(O,m,n){"use strict";n.r(m),n.d(m,{Pda:function(){return o}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103),p=n(15857),x=n(37865);function d(f){var h;try{h=x("./"+f+".tsx")}catch(j){if(j.code==="MODULE_NOT_FOUND")return(0,p.z)("notFound",f);throw j}var v=h[f];return v||(0,p.z)("missingExport",f)}var o=function(f){var h=function(R){b(R)},v=(0,t.Oc)().data,j=v.app,E=v.owner,y=v.useRetro;if(!E)return(0,e.jsx)(s.p8,{children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var M=d(j.template),_=(0,i.useState)(!1),D=_[0],b=_[1];return(0,e.jsx)(s.p8,{width:580,height:670,theme:y?"pda-retro":void 0,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(c,{settingsMode:D,onSettingsMode:h}),D&&(0,e.jsx)(a,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:j.icon,mr:1}),j.name]}),p:1,children:(0,e.jsx)(M,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(l,{onSettingsMode:h})]})})},c=function(f){var h=(0,t.Oc)(),v=h.act,j=h.data,E=j.idInserted,y=j.idLink,M=j.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!E&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return v("Authenticate")},children:y})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:M}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:f.settingsMode,onClick:function(){return f.onSettingsMode(!f.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return v("Retro")},icon:"adjust"})]})]})})},a=function(f){var h=(0,t.Oc)(),v=h.act,j=h.data,E=j.idInserted,y=j.idLink,M=j.cartridge_name,_=j.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 v("Retro")},children:"Retro Theme"})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!_,onClick:function(){return v("TouchSounds")},children:_?"Disabled":"Enabled"})}),!!M&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return v("Eject")},children:M})}),!!E&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return v("Authenticate")},children:y})})]})})},l=function(f){var h=(0,t.Oc)(),v=h.act,j=h.data,E=j.app,y=j.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:E.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return v("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:E.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){f.onSettingsMode(!1),v("Home")}})})]})})}},75418:function(O,m,n){"use strict";n.r(m),n.d(m,{PersonalCrafting:function(){return c}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103);function p(l,f){(f==null||f>l.length)&&(f=l.length);for(var h=0,v=new Array(f);h=l.length?{done:!0}:{done:!1,value:l[v++]}}}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=function(l){for(var f,h=(0,t.Oc)(),v=h.act,j=h.data,E=j.busy,y=j.display_craftable_only,M=j.display_compact,_=j.crafting_recipes||{},D=[],b=[],T=o(Object.keys(_)),R;!(R=T()).done;){var L=R.value,W=_[L];if("has_subcats"in W){for(var $=o(Object.keys(W)),F;!(F=$()).done;){var k=F.value;if(k!=="has_subcats"){D.push({name:k,category:L,subcategory:k});for(var X=W[k],G=o(X),ne;!(ne=G()).done;){var ee=ne.value;b.push(x({},ee,{category:k}))}}}continue}D.push({name:L,category:L});for(var q=_[L],Y=o(q),H;!(H=Y()).done;){var w=H.value;b.push(x({},w,{category:L}))}}var J=(0,i.useState)((f=D[0])==null?void 0:f.name),oe=J[0],ce=J[1],le=b.filter(function(de){return de.category===oe});return(0,e.jsx)(s.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!E&&(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:M,onClick:function(){return v("toggle_compact")},children:"Compact"}),(0,e.jsx)(r.$n.Checkbox,{checked:y,onClick:function(){return v("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:D.map(function(de){return(0,e.jsx)(r.tU.Tab,{selected:de.name===oe,onClick:function(){ce(de.name),v("set_category",{category:de.category,subcategory:de.subcategory})},children:de.name},de.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(a,{craftables:le})})]})})]})})},a=function(l){var f=l.craftables,h=f===void 0?[]:f,v=(0,t.Oc)(),j=v.act,E=v.data,y=E.craftability,M=y===void 0?{}:y,_=E.display_compact,D=E.display_craftable_only;return h.map(function(b){return D&&!M[b.ref]?null:_?(0,e.jsx)(r.Ki.Item,{label:b.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!M[b.ref],tooltip:b.tool_text&&"Tools needed: "+b.tool_text,tooltipPosition:"left",onClick:function(){return j("make",{recipe:b.ref})},children:"Craft"}),children:b.req_text},b.name):(0,e.jsx)(r.wn,{title:b.name,buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!M[b.ref],onClick:function(){return j("make",{recipe:b.ref})},children:"Craft"}),children:(0,e.jsxs)(r.Ki,{children:[!!b.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:b.req_text}),!!b.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:b.catalyst_text}),!!b.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:b.tool_text})]})},b.name)})}},6924:function(O,m,n){"use strict";n.r(m),n.d(m,{Photocopier:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(o){var c=(0,i.Oc)().data,a=c.isAI,l=c.has_toner,f=c.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:a?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[l?(0,e.jsx)(p,{}):(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted toner cartridge."})}),f?(0,e.jsx)(x,{}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted item."})}),!!a&&(0,e.jsx)(d,{})]})})},p=function(o){var c=(0,i.Oc)().data,a=c.max_toner,l=c.current_toner,f=a*.66,h=a*.33;return(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.z2,{ranges:{good:[f,a],average:[h,f],bad:[0,h]},value:l,minValue:0,maxValue:a})})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.num_copies;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:f,onDrag:function(h,v){return a("set_copies",{num_copies:v})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return a("make_copy")},children:"Copy"})})]}),(0,e.jsx)(t.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return a("remove")},children:"Remove item"})]})},d=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.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:!f,onClick:function(){return a("ai_photo")},children:"Print photo from database"})})})}},11727:function(O,m,n){"use strict";n.r(m),n.d(m,{PipeDispenser:function(){return x}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103),p=n(66947),x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.disposals,f=a.p_layer,h=a.pipe_layers,v=a.categories,j=v===void 0?[]:v,E=(0,i.useState)("categoryName"),y=E[0],M=E[1],_=j.find(function(D){return D.cat_name===y})||j[0];return(0,e.jsx)(s.p8,{width:425,height:515,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!l&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(h).map(function(D){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:h[D]===f,onClick:function(){return c("p_layer",{p_layer:h[D]})},children:D},D)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:j.map(function(D){return(0,e.jsx)(r.tU.Tab,{icon:p.ICON_BY_CATEGORY_NAME[D.cat_name],selected:D.cat_name===_.cat_name,onClick:function(){return M(D.cat_name)},children:D.cat_name},D.cat_name)})}),_==null?void 0:_.recipes.map(function(D){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,onClick:function(){return c("dispense_pipe",{ref:D.ref,bent:D.bent,category:_.cat_name})},children:D.pipe_name},D.pipe_name)})]})]})})}},28291:function(O,m,n){"use strict";n.r(m),n.d(m,{PlantAnalyzer:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(x){var d=(0,i.Oc)().data,o=d.seed,c=d.reagents,a=250;return o&&(a+=18*o.trait_info.length),c&&c.length&&(a+=55,a+=20*c.length),(0,e.jsx)(r.p8,{width:400,height:a,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(p,{})})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.no_seed,l=c.seed,f=c.reagents;return a?(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 o("print")},children:"Print Report"}),(0,e.jsx)(t.$n,{icon:"window-close",color:"red",onClick:function(){return o("close")}})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Plant Name",children:[l.name,"#",l.uid]}),(0,e.jsx)(t.Ki.Item,{label:"Endurance",children:l.endurance}),(0,e.jsx)(t.Ki.Item,{label:"Yield",children:l.yield}),(0,e.jsx)(t.Ki.Item,{label:"Maturation Time",children:l.maturation_time}),(0,e.jsx)(t.Ki.Item,{label:"Production Time",children:l.production_time}),(0,e.jsx)(t.Ki.Item,{label:"Potency",children:l.potency})]}),f.length&&(0,e.jsx)(t.wn,{title:"Plant Reagents",children:(0,e.jsx)(t.Ki,{children:f.map(function(h){return(0,e.jsxs)(t.Ki.Item,{label:h.name,children:[h.volume," unit(s)."]},h.name)})})})||null,(0,e.jsx)(t.wn,{title:"Other Data",children:l.trait_info.map(function(h){return(0,e.jsx)(t.az,{color:"label",mb:.4,children:h},h)})})]})}},12588:function(O,m,n){"use strict";n.r(m),n.d(m,{PlayerNotes:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.device_theme,a=o.filter,l=o.pages,f=o.ckeys,h=function(v){return v()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:c,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 d("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(t.$n,{icon:"sidebar",onClick:function(){return d("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.$n.Input,{onCommit:function(v,j){return d("show_player_info",{name:j})},children:"CKEY to Open"}),(0,e.jsx)(t.cG,{vertical:!0}),(0,e.jsx)(t.$n,{color:"green",onClick:function(){return d("clear_player_info_filter")},children:a}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.XI,{children:f.map(function(v){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 d("show_player_info",{name:v.name})},children:v.name})})},v.name)})}),(0,e.jsx)(t.cG,{}),h(function(){for(var v=function(y){j.push((0,e.jsx)(t.$n,{onClick:function(){return d("set_page",{index:y})},children:y},y))},j=[],E=1;E=.5&&"good"||W>.15&&"average"||"bad";return(0,e.jsx)(s.p8,{width:450,height:340,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!f&&(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?"power-off":"times",onClick:function(){return o("toggle_power")},selected:h,disabled:!v,children:h?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:a>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:h,onClick:function(){return o("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:$,children:[a,"cm\xB3 ",j]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:a/l,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[a,"cm\xB3 / ",l,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[E," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:y,maxValue:M+30,color:_?"bad":"good",children:[(0,i.Mg)(y),"\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:D?"bad":void 0,children:b}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return o("lower_power")},children:T}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return o("higher_power")},children:T})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!R&&"bad",children:R?L:"Unconnected"})})]})})]})})}},31991:function(O,m,n){"use strict";n.r(m),n.d(m,{PortablePump:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(95823),p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.direction,l=c.target_pressure,f=c.default_pressure,h=c.min_pressure,v=c.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)(s.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Pump",buttons:(0,e.jsx)(t.$n,{icon:a?"sign-in-alt":"sign-out-alt",selected:a,onClick:function(){return o("direction")},children:a?"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:h,maxValue:v,value:l,unit:"kPa",stepPixelSize:.3,onChange:function(j,E){return o("pressure",{pressure:E})}})}),(0,e.jsxs)(t.Ki.Item,{label:"Presets",children:[(0,e.jsx)(t.$n,{icon:"minus",disabled:l===h,onClick:function(){return o("pressure",{pressure:"min"})}}),(0,e.jsx)(t.$n,{icon:"sync",disabled:l===f,onClick:function(){return o("pressure",{pressure:"reset"})}}),(0,e.jsx)(t.$n,{icon:"plus",disabled:l===v,onClick:function(){return o("pressure",{pressure:"max"})}})]})]})})]})})}},33353:function(O,m,n){"use strict";n.r(m),n.d(m,{PortableScrubber:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(95823),p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.rate,l=c.minrate,f=c.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(s.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:l,maxValue:f,value:a,unit:"L/s",onChange:function(h,v){return o("volume_adj",{vol:v})}})})})})]})})}},96527:function(O,m,n){"use strict";n.r(m),n.d(m,{PortableTurret:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.locked,a=o.on,l=o.lethal,f=o.lethal_is_configurable,h=o.targetting_is_configurable,v=o.check_weapons,j=o.neutralize_noaccess,E=o.neutralize_norecord,y=o.neutralize_criminals,M=o.neutralize_all,_=o.neutralize_nonsynth,D=o.neutralize_unidentified,b=o.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 ",c?"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:a?"power-off":"times",selected:a,disabled:c,onClick:function(){return d("power")},children:a?"On":"Off"})}),!!f&&(0,e.jsx)(t.Ki.Item,{label:"Lethals",children:(0,e.jsx)(t.$n,{icon:l?"exclamation-triangle":"times",color:l?"bad":"",disabled:c,onClick:function(){return d("lethal")},children:l?"On":"Off"})})]})}),!!h&&(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:c,onClick:function(){return d("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:E,disabled:c,onClick:function(){return d("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:v,disabled:c,onClick:function(){return d("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:j,disabled:c,onClick:function(){return d("authaccess")},children:"Unauthorized Access"})]}),(0,e.jsxs)(t.wn,{title:"Other Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:D,disabled:c,onClick:function(){return d("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:_,disabled:c,onClick:function(){return d("authsynth")},children:"All Non-Synthetics"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:b,disabled:c,onClick:function(){return d("authdown")},children:"Downed Targets"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:M,disabled:c,onClick:function(){return d("authall")},children:"All Entities"})]})]})]})})}},91276:function(O,m,n){"use strict";n.r(m),n.d(m,{PowerMonitorContent:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(27971),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.all_sensors,a=o.focus;if(a)return(0,e.jsx)(r.PowerMonitorFocus,{focus:a});var l=(0,e.jsx)(t.az,{color:"bad",children:"No sensors detected"});return c&&(l=(0,e.jsx)(t.XI,{children:c.map(function(f){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:f.alarm?"bell":"sign-in-alt",onClick:function(){return d("setsensor",{id:f.name})},children:f.name})})},f.name)})})),(0,e.jsx)(t.wn,{title:"No active sensor. Listing all.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return d("refresh")},children:"Scan For Sensors"}),children:l})}},27971:function(O,m,n){"use strict";n.r(m),n.d(m,{PowerMonitorFocus:function(){return l}});var e=n(62161),i=n(7402),t=n(22071),r=n(4089),s=n(28277),p=n(7081),x=n(16754),d=n(92595),o=n(69788),c=n(88040);function a(){return a=Object.assign||function(f){for(var h=1;h50?"battery-half":"battery-quarter")||x===1&&"bolt"||x===2&&"battery-full"||"",color:x===0&&(d>50?"yellow":"red")||x===1&&"yellow"||x===2&&"green"}),(0,e.jsx)(t.az,{inline:!0,width:"36px",textAlign:"right",children:(0,i.Mg)(d)+"%"})]})},s=function(p){var x=p.status,d=!!(x&2),o=!!(x&1),c=(d?"On":"Off")+(" ["+(o?"auto":"manual")+"]");return(0,e.jsx)(t.m_,{content:c,children:(0,e.jsx)(t.BK,{color:d?"good":"bad",content:o?void 0:"M"})})}},92595:function(O,m,n){"use strict";n.r(m),n.d(m,{PEAK_DRAW:function(){return e}});var e=5e5},69788:function(O,m,n){"use strict";n.r(m),n.d(m,{powerRank:function(){return e}});function e(i){var t=String(i.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(t)}},53414:function(O,m,n){"use strict";n.r(m),n.d(m,{PowerMonitor:function(){return r}});var e=n(62161),i=n(42103),t=n(91276),r=function(){return(0,e.jsx)(i.p8,{width:550,height:700,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},77243:function(O,m,n){"use strict";n.r(m)},96824:function(O,m,n){"use strict";n.r(m),n.d(m,{PressureRegulator:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.on,a=o.pressure_set,l=o.max_pressure,f=o.input_pressure,h=o.output_pressure,v=o.regulate_mode,j=o.set_flow_rate,E=o.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:f/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.zv,{value:h/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(t.zv,{value:E/10})," L/s"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return d("toggle_valve")},children:c?"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:v===0,onClick:function(){return d("regulate_mode",{mode:"off"})},children:"Off"}),(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",selected:v===1,onClick:function(){return d("regulate_mode",{mode:"input"})},children:"Input"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",selected:v===2,onClick:function(){return d("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 d("set_press",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return d("set_press",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return d("set_press",{press:"set"})},children:"SET"})]}),children:[a/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 d("set_flow_rate",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return d("set_flow_rate",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return d("set_flow_rate",{press:"set"})},children:"SET"})]}),children:[j/10," L/s"]})]})})]})})}},56257:function(O,m,n){"use strict";n.r(m),n.d(m,{PrisonerManagement:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.locked,a=o.chemImplants,l=o.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c&&(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 d("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 d("lock")},children:"Lock Interface"})}),(0,e.jsx)(t.wn,{title:"Chemical Implants",children:a.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"})]}),a.map(function(f){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:f.host}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[f.units,"u remaining"]}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(t.$n,{onClick:function(){return d("inject",{imp:f.ref,val:1})},children:"(1)"}),(0,e.jsx)(t.$n,{onClick:function(){return d("inject",{imp:f.ref,val:5})},children:"(5)"}),(0,e.jsx)(t.$n,{onClick:function(){return d("inject",{imp:f.ref,val:10})},children:"(10)"})]})]},f.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(t.wn,{title:"Tracking Implants",children:l.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"})]}),l.map(function(f){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[f.host," (",f.id,")"]}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:f.loc}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{onClick:function(){return d("warn",{imp:f.ref})},children:"Message"})})]},f.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})})]})})})}},13353:function(O,m,n){"use strict";n.r(m),n.d(m,{RCONBreakerList:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.breaker_info;return(0,e.jsx)(t.wn,{title:"Breakers",children:(0,e.jsx)(t.Ki,{children:o?o.map(function(c){return(0,e.jsx)(t.Ki.Item,{label:c.RCON_tag,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c.enabled,color:c.enabled?null:"bad",onClick:function(){return x("toggle_breaker",{breaker:c.RCON_tag})},children:c.enabled?"Enabled":"Disabled"})},c.RCON_tag)}):(0,e.jsx)(t.Ki.Item,{color:"bad",children:"No breakers detected."})})})}},72778:function(O,m,n){"use strict";n.r(m),n.d(m,{RCONContent:function(){return p}});var e=n(62161),i=n(28277),t=n(16754),r=n(13353),s=n(14313),p=function(x){var d=(0,i.useState)(0),o=d[0],c=d[1],a=[];return a[0]=(0,e.jsx)(s.RCONSmesList,{}),a[1]=(0,e.jsx)(r.RCONBreakerList,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:o===0,onClick:function(){return c(0)},children:[(0,e.jsx)(t.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(t.tU.Tab,{selected:o===1,onClick:function(){return c(1)},children:[(0,e.jsx)(t.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(t.az,{m:2,children:a[o]||""})]})}},54323:function(O,m,n){"use strict";n.r(m),n.d(m,{SMESControls:function(){return x}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(41242),p=n(78784),x=function(d){var o=(0,t.Oc)().act,c=d.way,a=d.smes,l=a.inputAttempt,f=a.inputting,h=a.inputLevel,v=a.inputLevelMax,j=a.inputAvailable,E=a.outputAttempt,y=a.outputting,M=a.outputLevel,_=a.outputLevelMax,D=a.outputUsed,b=a.RCON_tag,T=0,R=0,L=0,W,$,F,k,X,G="";switch(c){case"input":T=h,R=v,L=j,W="IN",$="smes_in_toggle",F="smes_in_set",k=l,X=l?f?"green":"yellow":void 0,G=l?f?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":T=M,R=_,L=D,W="OUT",$="smes_out_toggle",F="smes_out_set",k=E,X=E?y?"green":"yellow":void 0,G=E?y?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off.";break}return(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{basis:"20%",children:(0,i.ZH)(c)}),(0,e.jsx)(r.BJ.Item,{grow:1,children:(0,e.jsxs)(r.BJ,{children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{icon:"power-off",color:X,tooltip:G,onClick:function(){return o($,{smes:b})}})}),(0,e.jsxs)(r.BJ.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:T===0,onClick:function(){return o(F,{target:"min",smes:b})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:T===0,onClick:function(){return o(F,{adjust:-1e4,smes:b})}})]}),(0,e.jsx)(r.BJ.Item,{grow:1,children:(0,e.jsx)(r.Ap,{value:T/p.POWER_MUL,fillValue:L/p.POWER_MUL,minValue:0,maxValue:R/p.POWER_MUL,step:5,stepPixelSize:4,format:function(ne){return(0,s.d5)(L,1)+"/"+(0,s.d5)(ne*p.POWER_MUL,1)},onDrag:function(ne,ee){return o(F,{target:ee*p.POWER_MUL,smes:b})}})}),(0,e.jsxs)(r.BJ.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:T===R,onClick:function(){return o(F,{adjust:1e4,smes:b})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:T===R,onClick:function(){return o(F,{target:"max",smes:b})}})]})]})})]})}},46380:function(O,m,n){"use strict";n.r(m),n.d(m,{SMESItem:function(){return s}});var e=n(62161),i=n(4089),t=n(16754),r=n(54323),s=function(p){var x=p.smes,d=x.capacityPercent,o=x.capacity,c=x.charge,a=x.RCON_tag;return(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{fill:!0,justify:"space-between",children:[(0,e.jsx)(t.BJ.Item,{flexBasis:"40%",fontSize:1.2,children:a}),(0,e.jsx)(t.BJ.Item,{grow:1,children:(0,e.jsx)(t.z2,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:(0,i.Mg)(c/(1e3*60),1)+"kWh / "+(0,i.Mg)(o/(1e3*60))+"kWh ("+d+"%)"})})]})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESControls,{smes:p.smes,way:"input"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESControls,{smes:p.smes,way:"output"})}),(0,e.jsx)(t.BJ.Divider,{})]})}},14313:function(O,m,n){"use strict";n.r(m),n.d(m,{RCONSmesList:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(46380),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.smes_info,a=o.pages,l=o.current_page,f=function(h){return h()};return(0,e.jsxs)(t.wn,{title:"SMESs (Page "+l+")",children:[(0,e.jsx)(t.BJ,{vertical:!0,children:c.map(function(h){return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESItem,{smes:h})},h.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),f(function(){for(var h=function(E){v.push((0,e.jsx)(t.$n,{selected:l===E,onClick:function(){return d("set_smes_page",{index:E})},children:E},E))},v=[],j=1;j=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: ",h.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",h.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",h.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:h.desc})]}),h.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,i.ZH)(h.chargetype)}),h.charges.map(function(j,E){return(0,e.jsx)(r.Ki.Item,{label:(0,i.ZH)(j.caption),children:(0,e.jsx)(r.$n,{selected:h.realchargetype===j.index,icon:"arrow-right",onClick:function(){return d("interact_module",{module:h.index,module_mode:"select_charge_type",charge_type:j.index})}})},j.caption)})]})})}):""]},v)})]})}},72273:function(O,m,n){"use strict";n.r(m),n.d(m,{RIGSuitStatus:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.chargestatus,c=d.charge,a=d.maxcharge,l=d.aioverride,f=d.sealing,h=d.sealed,v=d.cooling,j=d.emagged,E=d.securitycheck,y=d.coverlock,M=(0,e.jsx)(t.$n,{icon:f?"redo":h?"power-off":"lock-open",iconSpin:f,disabled:f,selected:h,onClick:function(){return x("toggle_seals")},children:"Suit "+(f?"seals working...":h?"is Active":"is Inactive")}),_=(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return x("toggle_cooling")},children:"Suit Cooling "+(v?"is Active":"is Inactive")}),D=(0,e.jsx)(t.$n,{selected:l,icon:"robot",onClick:function(){return x("toggle_ai_control")},children:"AI Control "+(l?"Enabled":"Disabled")});return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[M,D,_]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power Supply",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:50,value:o,ranges:{good:[35,1/0],average:[15,35],bad:[-1/0,15]},children:[c," / ",a]})}),(0,e.jsx)(t.Ki.Item,{label:"Cover Status",children:j||!E?(0,e.jsx)(t.az,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,e.jsx)(t.$n,{icon:y?"lock":"lock-open",onClick:function(){return x("toggle_suit_lock")},children:y?"Locked":"Unlocked"})})]})})}},62938:function(O,m,n){"use strict";n.r(m),n.d(m,{RIGSuit:function(){return d}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(57483),p=n(24760),x=n(72273),d=function(o){var c=(0,i.Oc)().data,a=c.interfacelock,l=c.malf,f=c.aicontrol,h=c.ai,v=null;return a||l?v=(0,e.jsx)(t.az,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!h&&f&&(v=(0,e.jsx)(t.az,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,e.jsx)(r.p8,{height:480,width:550,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:v||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.RIGSuitStatus,{}),(0,e.jsx)(s.RIGSuitHardware,{}),(0,e.jsx)(p.RIGSuitModules,{})]})})})}},12671:function(O,m,n){"use strict";n.r(m)},36863:function(O,m,n){"use strict";n.r(m),n.d(m,{Radio:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(79500),p=n(42103),x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.rawfreq,f=a.minFrequency,h=a.maxFrequency,v=a.listening,j=a.broadcasting,E=a.subspace,y=a.subspaceSwitchable,M=a.chan_list,_=a.loudspeaker,D=a.mic_cut,b=a.spk_cut,T=a.useSyndMode,R=s.Fo.find(function(W){return W.freq===Number(l)}),L=156;return M&&M.length>0?L+=M.length*28+6:L+=24,y&&(L+=38),(0,e.jsx)(p.p8,{width:310,height:L,theme:T?"syndicate":"",children:(0,e.jsxs)(p.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:f/10,maxValue:h/10,value:l/10,format:function(W){return(0,i.Mg)(W,1)},onDrag:function(W,$){return c("setFrequency",{freq:(0,i.LI)($*10,0)})}}),R&&(0,e.jsxs)(r.az,{inline:!0,color:R.color,ml:2,children:["[",R.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:v?"volume-up":"volume-mute",selected:v,disabled:b,onClick:function(){return c("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:j?"microphone":"microphone-slash",selected:j,disabled:D,onClick:function(){return c("broadcast")}}),!!y&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:E,onClick:function(){return c("subspace")},children:"Subspace Tx "+(E?"ON":"OFF")})}),!!y&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:_?"volume-up":"volume-mute",selected:_,onClick:function(){return c("toggleLoudspeaker")},children:"Loudspeaker"})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!M||M.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:M?M.map(function(W){var $=s.Fo.find(function(k){return k.freq===Number(W.freq)}),F="default";return $&&(F=$.color),(0,e.jsx)(r.Ki.Item,{label:W.display_name,labelColor:F,textAlign:"right",children:W.secure_channel&&E?(0,e.jsx)(r.$n,{icon:W.sec_channel_listen?"square-o":"check-square-o",selected:!W.sec_channel_listen,onClick:function(){return c("channel",{channel:W.chan})},children:W.sec_channel_listen?"Off":"On"}):(0,e.jsx)(r.$n,{selected:W.chan===l,onClick:function(){return c("specFreq",{channel:W.chan})},children:"Switch"})},W.chan)}):null})]})]})})}},49040:function(O,m,n){"use strict";n.r(m),n.d(m,{LayerSection:function(){return s}});var e=n(62161),i=n(65380),t=n(7081),r=n(16754),s=function(p){var x=(0,t.Oc)(),d=x.act,o=x.data,c=o.category,a=o.piping_layer,l=o.pipe_layers,f=o.preview_rows.flatMap(function(h){return h.previews});return(0,e.jsxs)(r.wn,{fill:!0,width:7.5,children:[c===0&&(0,e.jsx)(r.BJ,{vertical:!0,mb:1,children:Object.keys(l).map(function(h){return(0,e.jsx)(r.BJ.Item,{my:0,children:(0,e.jsx)(r.$n.Checkbox,{checked:l[h]===a,onClick:function(){return d("piping_layer",{piping_layer:l[h]})},children:h})},h)})}),(0,e.jsx)(r.az,{width:"120px",children:f.map(function(h){return(0,e.jsx)(r.$n,{ml:0,tooltip:h.dir_name,selected:h.selected,style:{width:"40px",height:"40px",padding:"0"},onClick:function(){return d("setdir",{dir:h.dir,flipped:h.flipped})},children:(0,e.jsx)(r.az,{className:(0,i.Ly)(["pipes32x32",h.dir+"-"+h.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},h.dir)})})]})}},22915:function(O,m,n){"use strict";n.r(m),n.d(m,{PipeTypeSection:function(){return p}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(66947),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.categories,l=a===void 0?[]:a,f=(0,i.useState)("categoryName"),h=f[0],v=f[1],j=l.find(function(E){return E.cat_name===h})||l[0];return(0,e.jsxs)(r.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(r.tU,{fluid:!0,children:l.map(function(E,y){return(0,e.jsx)(r.tU.Tab,{icon:s.ICON_BY_CATEGORY_NAME[E.cat_name],selected:E.cat_name===j.cat_name,onClick:function(){return v(E.cat_name)},children:E.cat_name},E.cat_name)})}),j==null?void 0:j.recipes.map(function(E){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:E.selected,tooltip:E.pipe_name,onClick:function(){return o("pipe_type",{pipe_type:E.pipe_index,category:j.cat_name})},children:E.pipe_name},E.pipe_index)})]})}},59015:function(O,m,n){"use strict";n.r(m),n.d(m,{SelectionSection:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(66947),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.category,l=c.selected_color,f=c.mode,h=c.paint_colors;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Category",children:s.ROOT_CATEGORIES.map(function(v,j){return(0,e.jsx)(r.$n,{selected:a===j,icon:s.ICON_BY_CATEGORY_NAME[v],color:"transparent",onClick:function(){return o("category",{category:j})},children:v},v)})}),(0,e.jsx)(r.Ki.Item,{label:"Modes",children:(0,e.jsx)(r.BJ,{fill:!0,children:s.TOOLS.map(function(v){return(0,e.jsx)(r.BJ.Item,{grow:!0,children:(0,e.jsx)(r.$n.Checkbox,{checked:f&v.bitmask,fluid:!0,onClick:function(){return o("mode",{mode:v.bitmask})},children:v.name})},v.bitmask)})})}),(0,e.jsxs)(r.Ki.Item,{label:"Color",children:[(0,e.jsx)(r.az,{inline:!0,width:"64px",color:h[l],children:(0,i.ZH)(l)}),Object.keys(h).map(function(v){return(0,e.jsx)(r.BK,{ml:1,color:h[v],onClick:function(){return o("color",{paint_color:v})}},v)})]})]})})}},66947:function(O,m,n){"use strict";n.r(m),n.d(m,{ICON_BY_CATEGORY_NAME:function(){return i},ROOT_CATEGORIES:function(){return e},TOOLS:function(){return t}});var e=["Atmospherics","Disposals"],i={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"},t=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}]},98838:function(O,m,n){"use strict";n.r(m),n.d(m,{RapidPipeDispenser:function(){return x}});var e=n(62161),i=n(16754),t=n(42103),r=n(49040),s=n(22915),p=n(59015),x=function(d){return(0,e.jsx)(t.p8,{width:550,height:570,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(p.SelectionSection,{})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(r.LayerSection,{})})})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(s.PipeTypeSection,{})})]})})]})})})}},1963:function(O,m,n){"use strict";n.r(m)},60195:function(O,m,n){"use strict";n.r(m),n.d(m,{RequestConsoleAssistance:function(){return p},RequestConsoleRelay:function(){return x},RequestConsoleSupplies:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(36219),s=function(d){var o=(0,i.Oc)().data,c=o.department,a=o.supply_dept;return(0,e.jsx)(t.wn,{title:"Supplies",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:a,department:c})})},p=function(d){var o=(0,i.Oc)().data,c=o.department,a=o.assist_dept;return(0,e.jsx)(t.wn,{title:"Request assistance from another department",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:a,department:c})})},x=function(d){var o=(0,i.Oc)().data,c=o.department,a=o.info_dept;return(0,e.jsx)(t.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:a,department:c})})}},4584:function(O,m,n){"use strict";n.r(m),n.d(m,{RequestConsoleAnnounce:function(){return d},RequestConsoleMessageAuth:function(){return x},RequestConsoleViewMessages:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(34416),p=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:f.length&&f.map(function(h,v){return(0,e.jsx)(r.Ki.Item,{label:(0,i.jT)(h[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return a("print",{print:v+1})},children:"Print"}),children:(0,i.jT)(h[1])},v)})||(0,e.jsx)(r.az,{children:"No messages."})})},x=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.message,h=l.recipient,v=l.priority,j=l.msgStamped,E=l.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 "+h,children:f}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:v===2?"High Priority":v===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:E?"good":"bad",children:(0,i.jT)(E)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:j?"good":"bad",children:(0,i.jT)(j)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return a("department",{department:h})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return a("setScreen",{setScreen:s.RCS_MAINMENU})},children:"Back"})]})},d=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.message,h=l.announceAuth;return(0,e.jsxs)(r.wn,{title:"Send Station-Wide Announcement",children:[h&&(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 a("writeAnnouncement")},children:"Edit"}),children:f||"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:!f||!h,icon:"share",onClick:function(){return a("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return a("setScreen",{setScreen:s.RCS_MAINMENU})},children:"Back"})]})}},36219:function(O,m,n){"use strict";n.r(m),n.d(m,{RequestConsoleSendFail:function(){return x},RequestConsoleSendMenu:function(){return s},RequestConsoleSendPass:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(34416),s=function(d){var o=(0,i.Oc)().act,c=d.dept_list,a=d.department;return(0,e.jsx)(t.Ki,{children:c.sort().map(function(l){return l!==a&&(0,e.jsx)(t.Ki.Item,{label:l,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"envelope-open-text",onClick:function(){return o("write",{write:l,priority:1})},children:"Message"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return o("write",{write:l,priority:2})},children:"High Priority"})]})})||null})})},p=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"arrow-right",onClick:function(){return c("setScreen",{setScreen:r.RCS_MAINMENU})},children:"Continue"})})]})},x=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"arrow-right",onClick:function(){return c("setScreen",{setScreen:r.RCS_MAINMENU})},children:"Continue"})})]})}},11986:function(O,m,n){"use strict";n.r(m),n.d(m,{RequestConsoleSettings:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.silent;return(0,e.jsx)(t.wn,{title:"Settings",children:(0,e.jsxs)(t.$n,{selected:!o,icon:o?"volume-mute":"volume-up",onClick:function(){return x("toggleSilent")},children:["Speaker ",o?"OFF":"ON"]})})}},34416:function(O,m,n){"use strict";n.r(m),n.d(m,{RCS_ANNOUNCE:function(){return o},RCS_MAINMENU:function(){return e},RCS_MESSAUTH:function(){return d},RCS_RQASSIST:function(){return i},RCS_RQSUPPLY:function(){return t},RCS_SENDINFO:function(){return r},RCS_SENTFAIL:function(){return p},RCS_SENTPASS:function(){return s},RCS_VIEWMSGS:function(){return x}});var e=0,i=1,t=2,r=3,s=4,p=5,x=6,d=7,o=8},7291:function(O,m,n){"use strict";n.r(m),n.d(m,{RequestConsole:function(){return c}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(34416),p=n(4584),x=n(36219),d=n(11986),o=n(60195),c=function(a){var l=(0,i.Oc)(),f=l.act,h=l.data,v=h.screen,j=h.newmessagepriority,E=h.announcementConsole,y=[];return y[s.RCS_MAINMENU]=(0,e.jsx)(d.RequestConsoleSettings,{}),y[s.RCS_RQASSIST]=(0,e.jsx)(o.RequestConsoleAssistance,{}),y[s.RCS_RQSUPPLY]=(0,e.jsx)(o.RequestConsoleSupplies,{}),y[s.RCS_SENDINFO]=(0,e.jsx)(o.RequestConsoleRelay,{}),y[s.RCS_SENTPASS]=(0,e.jsx)(x.RequestConsoleSendPass,{}),y[s.RCS_SENTFAIL]=(0,e.jsx)(x.RequestConsoleSendFail,{}),y[s.RCS_VIEWMSGS]=(0,e.jsx)(p.RequestConsoleViewMessages,{}),y[s.RCS_MESSAUTH]=(0,e.jsx)(p.RequestConsoleMessageAuth,{}),y[s.RCS_ANNOUNCE]=(0,e.jsx)(p.RequestConsoleAnnounce,{}),(0,e.jsx)(r.p8,{width:520,height:410,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_VIEWMSGS,onClick:function(){return f("setScreen",{setScreen:s.RCS_VIEWMSGS})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_RQASSIST,onClick:function(){return f("setScreen",{setScreen:s.RCS_RQASSIST})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_RQSUPPLY,onClick:function(){return f("setScreen",{setScreen:s.RCS_RQSUPPLY})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_SENDINFO,onClick:function(){return f("setScreen",{setScreen:s.RCS_SENDINFO})},icon:"share-square-o",children:"Report"}),E&&(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_ANNOUNCE,onClick:function(){return f("setScreen",{setScreen:s.RCS_ANNOUNCE})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_MAINMENU,onClick:function(){return f("setScreen",{setScreen:s.RCS_MAINMENU})},icon:"cog"})]}),j&&(0,e.jsx)(t.wn,{title:j>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:j>1?"bad":"average",bold:j>1})||null,y[v]||""]})})}},22292:function(O,m,n){"use strict";n.r(m)},99930:function(O,m,n){"use strict";n.r(m),n.d(m,{PaginationChevrons:function(){return x},ResearchConsoleBuildMenu:function(){return p}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(69358),p=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=d.target,f=d.designs,h=d.buildName,v=d.buildFiveName;return l?(0,e.jsxs)(r.wn,{title:(0,s.paginationTitle)("Designs",a.builder_page),buttons:(0,e.jsx)(x,{target:"builder_page"}),children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search for...",value:a.search,onInput:function(j,E){return c("search",{search:E})},mb:1}),f&&f.length?f.map(function(j){return(0,e.jsxs)(i.Fragment,{children:[(0,e.jsxs)(r.so,{width:"100%",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{width:"40%",style:{"word-wrap":"break-all"},children:j.name}),(0,e.jsxs)(r.so.Item,{width:"15%",textAlign:"center",children:[(0,e.jsx)(r.$n,{mb:-1,icon:"wrench",onClick:function(){return c(h,{build:j.id,imprint:j.id})},children:"Build"}),v&&(0,e.jsx)(r.$n,{mb:-1,onClick:function(){return c(v,{build:j.id,imprint:j.id})},children:"x5"})]}),(0,e.jsxs)(r.so.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:j.mat_list.join(" ")}),(0,e.jsx)(r.az,{inline:!0,color:"average",ml:1,children:j.chem_list.join(" ")})]})]}),(0,e.jsx)(r.cG,{})]},j.id)}):(0,e.jsx)(r.az,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.jsx)(r.az,{color:"bad",children:"Error"})},x=function(d){var o=(0,t.Oc)().act,c=d.target;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return o(c,{reset:!0})}}),(0,e.jsx)(r.$n,{icon:"chevron-left",onClick:function(){return o(c,{reverse:-1})}}),(0,e.jsx)(r.$n,{icon:"chevron-right",onClick:function(){return o(c,{reverse:1})}})]})}},23119:function(O,m,n){"use strict";n.r(m),n.d(m,{ResearchConsoleConstructor:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(95411),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=p.name,a=p.matsStates,l=p.onMatsState,f=p.protoTab,h=p.onProtoTab,v=p.linked,j=p.designs;if(!v||!v.present)return(0,e.jsxs)(t.wn,{title:c,children:["No ",c," found."]});var E=v.total_materials,y=v.max_materials,M=v.total_volume,_=v.max_volume,D=v.busy,b=v.mats,T=v.reagents,R=v.queue,L="transparent",W=!1,$="layer-group";D?($="hammer",L="average",W=!0):R&&R.length&&($="sync",L="green",W=!0);var F=[];return F[0]=(0,e.jsx)(r.ResearchConsoleConstructorMenue,{name:c,linked:v,designs:j}),F[1]=(0,e.jsx)(r.ResearchConsoleConstructorQueue,{name:c,busy:D,queue:R}),F[2]=(0,e.jsx)(r.ResearchConsoleConstructorMats,{name:c,mats:b,matsStates:a,onMatsState:l}),F[3]=(0,e.jsx)(r.ResearchConsoleConstructorChems,{name:c,reagents:T}),(0,e.jsxs)(t.wn,{title:c,buttons:D&&(0,e.jsx)(t.In,{name:"sync",spin:!0})||null,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Materials",children:(0,e.jsxs)(t.z2,{value:E,maxValue:y,children:[E," cm\xB3 / ",y," cm\xB3"]})}),(0,e.jsx)(t.Ki.Item,{label:"Chemicals",children:(0,e.jsxs)(t.z2,{value:M,maxValue:_,children:[M,"u / ",_,"u"]})})]}),(0,e.jsxs)(t.tU,{mt:1,children:[(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:f===0,onClick:function(){return h(0)},children:"Build"}),(0,e.jsx)(t.tU.Tab,{icon:$,iconSpin:W,color:L,selected:f===1,onClick:function(){return h(1)},children:"Queue"}),(0,e.jsx)(t.tU.Tab,{icon:"cookie-bite",selected:f===2,onClick:function(){return h(2)},children:"Mat Storage"}),(0,e.jsx)(t.tU.Tab,{icon:"flask",selected:f===3,onClick:function(){return h(3)},children:"Chem Storage"})]}),F[f]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})]})}},95411:function(O,m,n){"use strict";n.r(m),n.d(m,{ResearchConsoleConstructorChems:function(){return c},ResearchConsoleConstructorMats:function(){return o},ResearchConsoleConstructorMenue:function(){return x},ResearchConsoleConstructorQueue:function(){return d}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(99930);function p(){return p=Object.assign||function(a){for(var l=1;l=150?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:h.biomass>=150?"circle":"circle-o"}),"\xA0",h.biomass]}),j]},v)}):""}},88315:function(O,m,n){"use strict";n.r(m),n.d(m,{ResleevingConsolePodSleevers:function(){return s}});var e=n(62161),i=n(31200),t=n(7081),r=n(16754),s=function(p){var x=(0,t.Oc)(),d=x.act,o=x.data,c=o.sleevers,a=o.spods,l=o.selected_sleever;return c&&c.length?c.map(function(f,h){return(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",children:[(0,e.jsx)(r._V,{src:(0,i.l)("sleeve_"+(f.occupied?"occupied":"empty")+".gif"),style:{width:"100%"}}),(0,e.jsx)(r.az,{color:f.occupied?"label":"bad",children:f.name}),(0,e.jsx)(r.$n,{selected:l===f.sleever,icon:l===f.sleever&&"check",mt:a&&a.length?"3rem":"1.5rem",onClick:function(){return d("selectsleever",{ref:f.sleever})},children:"Select"})]},h)}):""}},50123:function(O,m,n){"use strict";n.r(m),n.d(m,{ResleevingConsolePodSpods:function(){return p}});var e=n(62161),i=n(4089),t=n(31200),r=n(7081),s=n(16754),p=function(x){var d=(0,r.Oc)(),o=d.act,c=d.data,a=c.spods,l=c.selected_printer;return a&&a.length?a.map(function(f,h){var v;return f.status==="cloning"?v=(0,e.jsx)(s.z2,{minValue:0,maxValue:1,value:f.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(s.az,{textAlign:"center",children:(0,i.Mg)(f.progress)+"%"})}):f.status==="mess"?v=(0,e.jsx)(s.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):v=(0,e.jsx)(s.$n,{selected:l===f.spod,icon:l===f.spod&&"check",mt:"0.5rem",onClick:function(){return o("selectprinter",{ref:f.spod})},children:"Select"}),(0,e.jsxs)(s.az,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",children:[(0,e.jsx)(s._V,{src:(0,t.l)("synthprinter"+(f.busy?"_working":"")+".gif"),style:{width:"100%"}}),(0,e.jsx)(s.az,{color:"label",children:f.name}),(0,e.jsxs)(s.az,{bold:!0,color:f.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:f.steel>=15e3?"circle":"circle-o"}),"\xA0",f.steel]}),(0,e.jsxs)(s.az,{bold:!0,color:f.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:f.glass>=15e3?"circle":"circle-o"}),"\xA0",f.glass]}),v]},h)}):""}},27529:function(O,m,n){"use strict";n.r(m),n.d(m,{ResleevingConsoleRecords:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)().act,x=s.records,d=s.actToDo;return x.length?(0,e.jsx)(t.az,{mt:"0.5rem",children:x.map(function(o,c){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return p(d,{ref:o.recref})},children:o.name},c)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5rem",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 records found."]})})}},60009:function(O,m,n){"use strict";n.r(m),n.d(m,{ResleevingConsoleStatus:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)().data,x=p.pods,d=p.spods,o=p.sleevers;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pods",children:x&&x.length?(0,e.jsxs)(t.az,{color:"good",children:[x.length," connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(t.Ki.Item,{label:"SynthFabs",children:d&&d.length?(0,e.jsxs)(t.az,{color:"good",children:[d.length," connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(t.Ki.Item,{label:"Sleevers",children:o&&o.length?(0,e.jsxs)(t.az,{color:"good",children:[o.length," Connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})})]})})}},87999:function(O,m,n){"use strict";n.r(m),n.d(m,{ResleevingConsoleCoreDump:function(){return r},ResleevingConsoleDiskPrep:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=function(p){return(0,e.jsx)(t.Rr,{children:(0,e.jsxs)(t.so,{direction:"column",justify:"space-evenly",align:"center",children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.In,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,e.jsx)(t.so.Item,{grow:1,color:"bad",mt:5,children:(0,e.jsx)("h2",{children:"TransCore dump completed. Resleeving offline."})})]})})},s=function(p){var x=(0,i.Oc)().act;return(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h1",{children:"TRANSCORE DUMP"})}),(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h2",{children:"!!WARNING!!"})}),(0,e.jsx)(t.az,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,e.jsx)(t.az,{mt:4,children:(0,e.jsx)(t.$n,{icon:"eject",color:"good",onClick:function(){return x("ejectdisk")},children:"Eject Disk"})}),(0,e.jsx)(t.az,{mt:4,children:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return x("coredump")},children:"Core Dump"})})]})}},69163:function(O,m,n){"use strict";n.r(m),n.d(m,{MENU_BODY:function(){return i},MENU_MAIN:function(){return e},MENU_MIND:function(){return t}});var e=1,i=2,t=3},86686:function(O,m,n){"use strict";n.r(m),n.d(m,{ResleevingConsole:function(){return a}});var e=n(62161),i=n(7081),t=n(16754),r=n(86471),s=n(42103),p=n(35216),x=n(60009),d=n(87999),o=n(73509),c=n(769),a=function(l){var f=(0,i.Oc)().data,h=f.coredumped,v=f.emergency,j=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p.ResleevingConsoleTemp,{}),(0,e.jsx)(x.ResleevingConsoleStatus,{}),(0,e.jsx)(p.ResleevingConsoleNavigation,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,flexGrow:!0,children:(0,e.jsx)(p.ResleevingConsoleBody,{})})]});return h&&(j=(0,e.jsx)(d.ResleevingConsoleCoreDump,{})),v&&(j=(0,e.jsx)(d.ResleevingConsoleDiskPrep,{})),(0,r.modalRegisterBodyOverride)("view_b_rec",o.viewBodyRecordModalBodyOverride),(0,r.modalRegisterBodyOverride)("view_m_rec",c.viewMindRecordModalBodyOverride),(0,e.jsxs)(s.p8,{width:640,height:520,children:[(0,e.jsx)(r.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsx)(s.p8.Content,{className:"Layout__content--flexColumn",children:j})]})}},43795:function(O,m,n){"use strict";n.r(m)},73509:function(O,m,n){"use strict";n.r(m),n.d(m,{viewBodyRecordModalBodyOverride:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)().act,x=s.args,d=x.activerecord,o=x.realname,c=x.species,a=x.sex,l=x.mind_compat,f=x.synthetic,h=x.oocnotes,v=x.can_grow_active;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Body Record ("+o+")",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return p("modal_close")}}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:o}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:c}),(0,e.jsx)(t.Ki.Item,{label:"Bio. Sex",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Mind Compat",children:l}),(0,e.jsx)(t.Ki.Item,{label:"Synthetic",children:f?"Yes":"No"}),(0,e.jsx)(t.Ki.Item,{label:"OOC Notes",children:(0,e.jsx)(t.wn,{style:{wordBreak:"break-all",height:"100px"},scrollable:!0,children:h})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{disabled:!v,icon:"user-plus",onClick:function(){return p("create",{ref:d})},children:f?"Build":"Grow"})})]})})}},769:function(O,m,n){"use strict";n.r(m),n.d(m,{viewMindRecordModalBodyOverride:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)().act,x=s.args,d=x.activerecord,o=x.realname,c=x.obviously_dead,a=x.oocnotes,l=x.can_sleeve_active;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Mind Record ("+o+")",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return p("modal_close")}}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:o}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:c}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{disabled:!l,icon:"user-plus",onClick:function(){return p("sleeve",{ref:d,mode:1})},children:"Sleeve"}),(0,e.jsx)(t.$n,{icon:"user-plus",onClick:function(){return p("sleeve",{ref:d,mode:2})},children:"Card"})]}),(0,e.jsx)(t.Ki.Item,{label:"OOC Notes",children:(0,e.jsx)(t.wn,{style:{wordBreak:"break-all",height:"100px"},scrollable:!0,children:a})})]})})}},18313:function(O,m,n){"use strict";n.r(m),n.d(m,{ResleevingPod:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)().data,d=x.occupied,o=x.name,c=x.health,a=x.maxHealth,l=x.stat,f=x.mindStatus,h=x.mindName,v=x.resleeveSick,j=x.initialSick;return(0,e.jsx)(r.p8,{width:300,height:350,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Occupant",children:d?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:o}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:l===2?(0,e.jsx)(t.az,{color:"bad",children:"DEAD"}):l===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:c/a,children:[c,"%"]})}),(0,e.jsx)(t.Ki.Item,{label:"Mind Status",children:f?"Present":"Missing"}),f?(0,e.jsx)(t.Ki.Item,{label:"Mind Occupying",children:h}):""]}),v?(0,e.jsxs)(t.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",j?(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."})})})})}},68297:function(O,m,n){"use strict";n.r(m),n.d(m,{RoboticsControlConsole:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.can_hack,l=c.safety,f=c.show_detonate_all,h=c.cyborgs,v=h===void 0?[]:h,j=c.auth;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!f&&(0,e.jsxs)(t.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(t.$n,{icon:l?"lock":"unlock",selected:l,children:l?"Disable Safety":"Enable Safety"}),(0,e.jsx)(t.$n,{icon:"bomb",disabled:l,color:"bad",onClick:function(){return o("nuke",{})},children:"Destroy ALL Cyborgs"})]}),(0,e.jsx)(p,{cyborgs:v,can_hack:a,auth:j})]})})},p=function(x){var d=x.cyborgs,o=x.can_hack,c=x.auth,a=(0,i.Oc)().act;return d.length?d.map(function(l){return(0,e.jsx)(t.wn,{title:l.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!l.hackable&&!l.emagged&&(0,e.jsx)(t.$n,{icon:"terminal",color:"bad",onClick:function(){return a("hackbot",{ref:l.ref})},children:"Hack"}),(0,e.jsx)(t.$n.Confirm,{icon:l.locked_down?"unlock":"lock",color:l.locked_down?"good":"default",disabled:!c,onClick:function(){return a("stopbot",{ref:l.ref})},children:l.locked_down?"Release":"Lockdown"}),(0,e.jsx)(t.$n.Confirm,{icon:"bomb",disabled:!c,color:"bad",onClick:function(){return a("killbot",{ref:l.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:l.status?"bad":l.locked_down?"average":"good",children:l.status?"Not Responding":l.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(t.Ki.Item,{label:"Location",children:(0,e.jsx)(t.az,{children:l.locstring})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:l.health>50?"good":"bad",value:l.health/100})}),typeof l.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(t.z2,{color:l.charge>30?"good":"bad",value:l.charge/100})}),(0,e.jsx)(t.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(t.az,{color:l.cell_capacity<3e4?"average":"good",children:l.cell_capacity})})]})||(0,e.jsx)(t.Ki.Item,{label:"Cell",children:(0,e.jsx)(t.az,{color:"bad",children:"No Power Cell"})}),!!l.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:l.module}),(0,e.jsx)(t.Ki.Item,{label:"Master AI",children:(0,e.jsx)(t.az,{color:l.synchronization?"default":"average",children:l.synchronization||"None"})})]})},l.ref)}):(0,e.jsx)(t.IC,{children:"No cyborg units detected within access parameters."})}},2879:function(O,m,n){"use strict";n.r(m),n.d(m,{RogueZones:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.timeout_percent,a=o.diffstep,l=o.difficulty,f=o.occupied,h=o.scanning,v=o.updated,j=o.debug,E=o.shuttle_location,y=o.shuttle_at_station,M=o.scan_ready,_=o.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:l}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Location",buttons:_&&(0,e.jsx)(t.$n,{color:"bad",icon:"rocket",onClick:function(){return d("recall_shuttle")},children:"Recall Shuttle"})||null,children:E}),f&&(0,e.jsxs)(t.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",f," 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:!M,fluid:!0,icon:"search",onClick:function(){return d("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:c,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),h&&(0,e.jsx)(t.Ki.Item,{label:"Scanning",children:"In progress."})||null,v&&!h&&(0,e.jsx)(t.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,j&&(0,e.jsxs)(t.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(t.az,{children:["Timeout Percent: ",c]}),(0,e.jsxs)(t.az,{children:["Diffstep: ",a]}),(0,e.jsxs)(t.az,{children:["Difficulty: ",l]}),(0,e.jsxs)(t.az,{children:["Occupied: ",f]}),(0,e.jsxs)(t.az,{children:["Debug: ",j]}),(0,e.jsxs)(t.az,{children:["Shuttle Location: ",E]}),(0,e.jsxs)(t.az,{children:["Shuttle at station: ",y]}),(0,e.jsxs)(t.az,{children:["Scan Ready: ",M]})]})||null]})})]})})}},1249:function(O,m,n){"use strict";n.r(m),n.d(m,{RustCoreMonitor:function(){return s},RustCoreMonitorContent:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(p,{})})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.cores;return(0,e.jsx)(t.wn,{title:"Cores",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return o("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"})]}),a.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.has_field,disabled:!l.core_operational,onClick:function(){return o("toggle_active",{core:l.ref})},children:l.has_field?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.has_field,disabled:!l.core_operational,onClick:function(){return o("toggle_reactantdump",{core:l.ref})},children:l.reactant_dump?"Dump":"Maintain"})}),(0,e.jsx)(t.XI.Cell,{children:l.field_instability}),(0,e.jsx)(t.XI.Cell,{children:l.field_temperature}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{forcedInputWidth:"60px",size:1.25,color:!!l.has_field&&"yellow",value:l.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(f,h){return o("set_fieldstr",{core:l.ref,fieldstr:h})}})}),(0,e.jsx)(t.XI.Cell,{})]},l.name)})]})})}},27095:function(O,m,n){"use strict";n.r(m),n.d(m,{RustFuelContent:function(){return p},RustFuelControl:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(p,{})})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.fuels;return(0,e.jsx)(t.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return o("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"})]}),a.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.active,disabled:!l.deployed,onClick:function(){return o("toggle_active",{fuel:l.ref})},children:l.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:l.fuel_amt}),(0,e.jsx)(t.XI.Cell,{children:l.fuel_type})]},l.name)})]})})}},90406:function(O,m,n){"use strict";n.r(m),n.d(m,{Secbot:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.on,a=o.open,l=o.locked,f=o.idcheck,h=o.check_records,v=o.check_arrest,j=o.arrest_type,E=o.declare_arrests,y=o.bot_patrolling,M=o.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:c,onClick:function(){return d("power")},children:c?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:a?"bad":"good",children:a?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(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:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return d("idcheck")},children:f?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(t.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return d("ignorerec")},children:h?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(t.$n,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return d("ignorearr")},children:v?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(t.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return d("switchmode")},children:j?"Detain":"Arrest"})}),(0,e.jsx)(t.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(t.$n,{icon:E?"toggle-on":"toggle-off",selected:E,onClick:function(){return d("declarearrests")},children:E?"Yes":"No"})}),!!y&&(0,e.jsx)(t.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(t.$n,{icon:M?"toggle-on":"toggle-off",selected:M,onClick:function(){return d("patrol")},children:M?"Yes":"No"})})]})})||null]})})}},60956:function(O,m,n){"use strict";n.r(m),n.d(m,{SecureSafe:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],l=c.locked,f=c.l_setshort,h=c.code,v=c.emagged;return(0,e.jsx)(t.az,{width:"185px",children:(0,e.jsx)(t.XI,{width:"1px",children:a.map(function(j){return(0,e.jsx)(t.XI.Cell,{children:j.map(function(E){return(0,e.jsx)(t.$n,{fluid:!0,bold:!0,mb:"6px",textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!v||!!f&&1||E!=="R"&&!l||h==="ERROR"&&E!=="R"&&1,onClick:function(){return o("type",{digit:E})},children:E},E)})},j[0])})})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.code,l=c.l_setshort,f=c.l_set,h=c.emagged,v=c.locked,j=!(f||l);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:[j&&(0,e.jsx)(t.IC,{textAlign:"center",info:!0,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!h&&(0,e.jsx)(t.IC,{textAlign:"center",danger:!0,children:"LOCKING SYSTEM ERROR - 1701"}),!!l&&(0,e.jsx)(t.IC,{textAlign:"center",danger:!0,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:a&&a||(0,e.jsx)(t.az,{textColor:v?"red":"green",children:v?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(t.so,{ml:"3px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(s,{})}),(0,e.jsx)(t.so.Item,{ml:"6px",width:"129px"})]})]})})})}},26487:function(O,m,n){"use strict";n.r(m),n.d(m,{SecurityRecordsList:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(c,a){return x("search",{t1:a})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:o.map(function(c,a){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",color:c.color,onClick:function(){return x("d_rec",{d_rec:c.ref})},children:c.id+": "+c.name+" (Criminal Status: "+c.criminal+")"},a)})})]})}},12473:function(O,m,n){"use strict";n.r(m),n.d(m,{SecurityRecordsMaintenance:function(){return p},SecurityRecordsNavigation:function(){return d},SecurityRecordsView:function(){return x}});var e=n(62161),i=n(7081),t=n(16754),r=n(64254),s=n(72462),p=function(o){var c=(0,i.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 c("del_all")},children:"Delete All Security Records"})]})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.security,h=l.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(r.SecurityRecordsViewGeneral,{})}),(0,e.jsx)(t.wn,{title:"Security Data",children:(0,e.jsx)(s.SecurityRecordsViewSecurity,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return a("del_r")},children:"Delete Security Record"}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return a("del_r_2")},children:"Delete Record (All)"}),(0,e.jsx)(t.$n,{icon:h?"spinner":"print",disabled:h,iconSpin:!!h,ml:"0.5rem",onClick:function(){return a("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})},children:"Back"})]})]})},d=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:f===2,icon:"list",onClick:function(){return a("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:f===3,onClick:function(){return a("screen",{screen:3})},children:"Record Maintenance"})]})}},64254:function(O,m,n){"use strict";n.r(m),n.d(m,{SecurityRecordsViewGeneral:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(80724),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.general;return!c||!c.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:c.fields.map(function(a,l){return(0,e.jsx)(t.Ki.Item,{label:a.field,children:(0,e.jsxs)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:[a.value,!!a.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,r.doEdit)(a)}})]})},l)})})}),(0,e.jsxs)(t.so.Item,{textAlign:"right",children:[!!c.has_photos&&c.photos.map(function(a,l){return(0,e.jsxs)(t.az,{inline:!0,textAlign:"center",color:"label",children:[(0,e.jsx)(t._V,{src:a.substring(1,a.length-1),style:{width:"96px",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",l+1]},l)}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(t.$n,{onClick:function(){return d("photo_side")},children:"Update Side Photo"})]})]})]})}},72462:function(O,m,n){"use strict";n.r(m),n.d(m,{SecurityRecordsViewSecurity:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(86471),s=n(80724),p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.security;return!a||!a.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:a.fields.map(function(l,f){return(0,e.jsx)(t.Ki.Item,{label:l.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[l.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",mb:"initial",onClick:function(){return(0,s.doEdit)(l)}})]})},f)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[a.comments&&a.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):a.comments&&a.comments.map(function(l,f){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:l.header}),(0,e.jsx)("br",{}),l.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return o("del_c",{del_c:f+1})}})]},f)}),(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"})]})]})}},94779:function(O,m,n){"use strict";n.r(m),n.d(m,{SecurityRecords:function(){return a}});var e=n(62161),i=n(7081),t=n(16754),r=n(86471),s=n(42103),p=n(35069),x=n(97049),d=n(3751),o=n(26487),c=n(12473),a=function(l){var f=(0,i.Oc)().data,h=f.authenticated,v=f.screen;if(!h)return(0,e.jsx)(s.p8,{width:700,height:680,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var j=[];return j[2]=(0,e.jsx)(o.SecurityRecordsList,{}),j[3]=(0,e.jsx)(c.SecurityRecordsMaintenance,{}),j[4]=(0,e.jsx)(c.SecurityRecordsView,{}),(0,e.jsxs)(s.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(p.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(c.SecurityRecordsNavigation,{}),(0,e.jsx)(t.wn,{flexGrow:!0,children:v&&j[v]||""})]})]})}},53588:function(O,m,n){"use strict";n.r(m)},62516:function(O,m,n){"use strict";n.r(m),n.d(m,{SeedStorage:function(){return x}});var e=n(62161),i=n(7402),t=n(61282),r=n(7081),s=n(16754),p=n(42103),x=function(d){var o=(0,r.Oc)(),c=o.act,a=o.data,l=a.seeds,f=(0,i.Ul)(function(h){return h.name.toLowerCase()})(l);return(0,e.jsx)(p.p8,{width:600,height:760,children:(0,e.jsx)(p.p8.Content,{scrollable:!0,children:(0,e.jsx)(s.wn,{title:"Seeds",children:f.map(function(h){return(0,e.jsxs)(s.so,{spacing:1,mt:-1,children:[(0,e.jsx)(s.so.Item,{basis:"60%",children:(0,e.jsx)(s.Nt,{title:(0,t.Sn)(h.name)+" #"+h.uid,children:(0,e.jsx)(s.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(s.Ki,{children:Object.keys(h.traits).map(function(v){return(0,e.jsx)(s.Ki.Item,{label:(0,t.Sn)(v),children:h.traits[v]},v)})})})})}),(0,e.jsxs)(s.so.Item,{mt:.4,children:[h.amount," Remaining"]}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"download",onClick:function(){return c("vend",{id:h.id})},children:"Vend"})}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"trash",onClick:function(){return c("purge",{id:h.id})},children:"Purge"})})]},h.name+h.uid)})})})})}},3967:function(O,m,n){"use strict";n.r(m),n.d(m,{ShieldCapacitor:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(41242),p=n(42103),x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.active,f=a.time_since_fail,h=a.stored_charge,v=a.max_charge,j=a.charge_rate,E=a.max_charge_rate;return(0,e.jsx)(p.p8,{width:500,height:400,children:(0,e.jsx)(p.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:l,onClick:function(){return c("toggle")},children:l?"Online":"Offline"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:f>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:h,format:function(y){return(0,s.QL)(y,0,"J")}}),(0,e.jsx)(r.zv,{value:100*(0,i.LI)(h/v,1),format:function(y){return" ("+(0,i.Mg)(y,1)+"%)"}})]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:j,step:100,stepPixelSize:.2,minValue:1e4,maxValue:E,format:function(y){return(0,s.d5)(y)},onDrag:function(y,M){return c("charge_rate",{rate:M})}})})]})})})})}},7180:function(O,m,n){"use strict";n.r(m),n.d(m,{ShieldGenerator:function(){return d}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(41242),p=n(42103),x=n(72859),d=function(a){var l=(0,t.Oc)().data,f=l.locked;return(0,e.jsx)(p.p8,{width:500,height:400,children:(0,e.jsx)(p.p8.Content,{children:f?(0,e.jsx)(o,{}):(0,e.jsx)(c,{})})})},o=function(a){return(0,e.jsxs)(x.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."})]})},c=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data,v=h.lockedData,j=v.capacitors,E=v.active,y=v.failing,M=v.radius,_=v.max_radius,D=v.z_range,b=v.max_z_range,T=v.average_field_strength,R=v.target_field_strength,L=v.max_field_strength,W=v.shields,$=v.upkeep,F=v.strengthen_rate,k=v.max_strengthen_rate,X=v.gen_power,G=(j||[]).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.jsx)(r.Ki.Item,{label:"Overall Field Strength",children:(0,i.Mg)(T,2)+" Renwick ("+(R&&(0,i.Mg)(100*T/R,1)+"%)")||"NA)"}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,s.d5)($)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,s.d5)(X)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[W," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:G?j.map(function(ne,ee){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+ee,children:[ne.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.jsx)(r.Ki.Item,{label:"Charge",children:(0,s.QL)(ne.stored_charge,0,"J")+" ("+(0,i.Mg)(100*(ne.stored_charge/ne.max_charge),2)+"%)"}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:ne.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},ee)}):(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:E,onClick:function(){return f("toggle")},children:E?"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:_,value:M,unit:"m",onDrag:function(ne,ee){return f("change_radius",{val:ee})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:b,value:D,unit:"vertical range",onDrag:function(ne,ee){return f("z_range",{val:ee})}})}),(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:F,format:function(ne){return(0,i.Mg)(ne,1)},unit:"Renwick/s",onDrag:function(ne,ee){return f("strengthen_rate",{val:ee})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:L,value:R,unit:"Renwick",onDrag:function(ne,ee){return f("target_field_strength",{val:ee})}})})]})})]})}},67889:function(O,m,n){"use strict";n.r(m),n.d(m,{ShutoffMonitor:function(){return s},ShutoffMonitorContent:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(x){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(p,{})})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.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"})]}),a.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:l.open?"Yes":"No"}),(0,e.jsx)(t.XI.Cell,{children:l.enabled?"Auto":"Manual"}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:l.open,disabled:!l.enabled,onClick:function(){return o("toggle_open",{valve:l.ref})},children:l.open?"Opened":"Closed"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:l.enabled,onClick:function(){return o("toggle_enable",{valve:l.ref})},children:l.enabled?"Auto":"Manual"})]})]},l.name)})]})})}},83491:function(O,m,n){"use strict";n.r(m),n.d(m,{ShuttleControlConsoleDefault:function(){return p},ShuttleControlConsoleExploration:function(){return d},ShuttleControlConsoleMulti:function(){return x}});var e=n(62161),i=n(7081),t=n(16754),r=n(13553),s=n(50705),p=function(o){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.can_cloak,h=l.can_pick,v=l.legit,j=l.cloaked;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{}),(0,e.jsx)(t.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(t.Ki,{children:[f&&(0,e.jsx)(t.Ki.Item,{label:v?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(t.$n,{selected:j,icon:j?"eye":"eye-o",onClick:function(){return a("toggle_cloaked")},children:j?"Enabled":"Disabled"})})||"",(0,e.jsx)(t.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(t.$n,{icon:"taxi",disabled:!h,onClick:function(){return a("pick")},children:o.destination_name})})]})}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})},d=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.can_pick,h=l.destination_name,v=l.fuel_usage,j=l.fuel_span,E=l.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{engineName:"Engines"}),(0,e.jsx)(t.wn,{title:"Jump Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(t.$n,{icon:"taxi",disabled:!f,onClick:function(){return a("pick")},children:h})}),v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Est. Delta-V Budget",color:j,children:[E," m/s"]}),(0,e.jsxs)(t.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[v," m/s"]})]})||""]})}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})}},96366:function(O,m,n){"use strict";n.r(m),n.d(m,{ShuttleControlConsoleWeb:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(40420),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.autopilot,l=c.can_rename,f=c.shuttle_state,h=c.is_moving,v=c.skip_docking,j=c.docking_status,E=c.docking_override,y=c.shuttle_location,M=c.can_cloak,_=c.cloaked,D=c.can_autopilot,b=c.routes,T=c.is_in_transit,R=c.travel_progress,L=c.time_left,W=c.doors,$=c.sensors;return(0,e.jsxs)(e.Fragment,{children:[a&&(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."})})||"",(0,e.jsxs)(r.wn,{title:"Shuttle Status",buttons:l&&(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return o("rename_command")},children:"Rename"})||"",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:f==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||f==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||f==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!h&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,i.Sn)(y)}),!v&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:j==="docked",disabled:j!=="undocked"&&j!=="docked",onClick:function(){return o("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:j==="undocked",disabled:j!=="docked"&&j!=="undocked",onClick:function(){return o("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:(0,s.getDockingStatus)(j,E)})})||"",M&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:_,icon:_?"eye":"eye-o",onClick:function(){return o("toggle_cloaked")},children:_?"Enabled":"Disabled"})})||"",D&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:a,icon:a?"eye":"eye-o",onClick:function(){return o("toggle_autopilot")},children:a?"Enabled":"Disabled"})})||""]})||""]}),!h&&(0,e.jsx)(r.wn,{title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:b.length&&b.map(function(F){return(0,e.jsx)(r.Ki.Item,{label:F.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return o("traverse",{traverse:F.index})},children:F.travel_time})},F.name)})||(0,e.jsx)(r.Ki.Item,{label:"Error",color:"bad",children:"No routes found."})})})||""]}),T&&(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:R,children:[L,"s"]})})})})||"",Object.keys(W).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(W).map(function(F){var k=W[F];return(0,e.jsxs)(r.Ki.Item,{label:F,children:[k.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",k.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},F)})})})||"",Object.keys($).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys($).map(function(F,k){var X=$[F];return X.reading!==-1?(0,e.jsx)(r.Ki.Item,{label:F,color:"bad",children:"Unable to get sensor air reading."},k):(0,e.jsx)(r.Ki.Item,{label:F,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[X.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[X.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[X.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[X.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[X.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[X.phoron,"%"]}),X.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[X.other,"%"]})||""]})},F)})})})||""]})}},13553:function(O,m,n){"use strict";n.r(m),n.d(m,{ShuttleControlSharedShuttleControls:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.can_launch,c=d.can_cancel,a=d.can_force;return(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return x("move")},disabled:!o,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return x("cancel")},disabled:!c,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return x("force")},color:"bad",disabled:!a,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})}},50705:function(O,m,n){"use strict";n.r(m),n.d(m,{ShuttleControlSharedShuttleStatus:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(40420),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=p.engineName,a=c===void 0?"Bluespace Drive":c,l=o.shuttle_status,f=o.shuttle_state,h=o.has_docking,v=o.docking_status,j=o.docking_override,E=o.docking_codes;return(0,e.jsxs)(t.wn,{title:"Shuttle Status",children:[(0,e.jsx)(t.az,{color:"label",mb:1,children:l}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:a,children:f==="idle"&&(0,e.jsx)(t.az,{color:"#676767",bold:!0,children:"IDLE"})||f==="warmup"&&(0,e.jsx)(t.az,{color:"#336699",children:"SPINNING UP"})||f==="in_transit"&&(0,e.jsx)(t.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})}),h&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Docking Status",children:(0,r.getDockingStatus)(v,j)}),(0,e.jsx)(t.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("set_codes")},children:E||"Not Set"})})]})||""]})]})}},40420:function(O,m,n){"use strict";n.r(m),n.d(m,{getDockingStatus:function(){return t}});var e=n(62161),i=n(16754);function t(r,s){var p="ERROR",x="bad",d=!1;return r==="docked"?(p="DOCKED",x="good"):r==="docking"?(p="DOCKING",x="average",d=!0):r==="undocking"?(p="UNDOCKING",x="average",d=!0):r==="undocked"&&(p="UNDOCKED",x="#676767"),d&&s&&(p=p+"-MANUAL"),(0,e.jsx)(i.az,{color:x,children:p})}},93147:function(O,m,n){"use strict";n.r(m),n.d(m,{ShuttleControl:function(){return p}});var e=n(62161),i=n(7081),t=n(42103),r=n(83491),s=n(96366),p=function(x){var d=(0,i.Oc)().data,o=d.subtemplate,c=d.destination_name;return(0,e.jsx)(t.p8,{width:470,height:o==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(t.p8.Content,{children:o==="ShuttleControlConsoleDefault"&&(0,e.jsx)(r.ShuttleControlConsoleDefault,{})||o==="ShuttleControlConsoleMulti"&&(0,e.jsx)(r.ShuttleControlConsoleMulti,{destination_name:c})||o==="ShuttleControlConsoleExploration"&&(0,e.jsx)(r.ShuttleControlConsoleExploration,{})||o==="ShuttleControlConsoleWeb"&&(0,e.jsx)(s.ShuttleControlConsoleWeb,{})})})}},41396:function(O,m,n){"use strict";n.r(m)},46321:function(O,m,n){"use strict";n.r(m),n.d(m,{Signaler:function(){return p},SignalerContent:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(42103),p=function(){return(0,e.jsx)(s.p8,{width:280,height:132,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.code,f=a.frequency,h=a.minFrequency,v=a.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:h/10,maxValue:v/10,value:f/10,format:function(j){return(0,i.Mg)(j,1)},width:"80px",onDrag:function(j,E){return c("freq",{freq:E})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return c("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:l,width:"80px",onDrag:function(j,E){return c("code",{code:E})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return c("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 c("signal")},children:"Send Signal"})})})]})})}},63e3:function(O,m,n){"use strict";n.r(m),n.d(m,{SleeperChemicals:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.occupant,c=d.chemicals,a=d.maxchem,l=d.amounts;return(0,e.jsx)(t.wn,{title:"Chemicals",flexGrow:!0,children:c.map(function(f,h){var v="",j;return f.overdosing?(v="bad",j=(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):f.od_warning&&(v="average",j=(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(t.wn,{title:f.title,mx:"0",lineHeight:"18px",buttons:j,children:(0,e.jsxs)(t.so,{align:"flex-start",children:[(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:f.occ_amount/a,color:v,mr:"0.5rem",children:[f.pretty_amount,"/",a,"u"]}),l.map(function(E,y){return(0,e.jsx)(t.$n,{disabled:!f.injectable||f.occ_amount+E>a||o.stat===2,icon:"syringe",mb:"0",height:"19px",onClick:function(){return x("chemical",{chemid:f.id,amount:E})},children:E},y)})]})})},h)})})}},57224:function(O,m,n){"use strict";n.r(m),n.d(m,{SleeperDamage:function(){return p}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(40308),p=function(x){var d=(0,t.Oc)().data,o=d.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:s.damages.map(function(c,a){return(0,e.jsx)(r.Ki.Item,{label:c[0],children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:o[c[1]]/100,ranges:s.damageRange,children:(0,i.Mg)(o[c[1]])},a)},a)})})})}},54695:function(O,m,n){"use strict";n.r(m),n.d(m,{SleeperDialysisPump:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=s.active,c=s.actToDo,a=s.title,l=d.isBeakerLoaded,f=d.beakerMaxSpace,h=d.beakerFreeSpace,v=o&&h>0;return(0,e.jsx)(t.wn,{title:a,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!l||h<=0,selected:v,icon:v?"toggle-on":"toggle-off",onClick:function(){return x(c)},children:v?"Active":"Inactive"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"eject",onClick:function(){return x("removebeaker")},children:"Eject"})]}),children:l?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:h/f,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[h,"u"]})})}):(0,e.jsx)(t.az,{color:"label",children:"No beaker loaded."})})}},39176:function(O,m,n){"use strict";n.r(m),n.d(m,{SleeperEmpty:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.isBeakerLoaded;return(0,e.jsx)(t.wn,{textAlign:"center",flexGrow:!0,children:(0,e.jsx)(t.so,{height:"100%",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.",o&&(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return x("removebeaker")},children:"Remove Beaker"})})||null]})})})}},44092:function(O,m,n){"use strict";n.r(m),n.d(m,{SleeperMain:function(){return x}});var e=n(62161),i=n(7081),t=n(63e3),r=n(57224),s=n(54695),p=n(86570),x=function(d){var o=(0,i.Oc)().data,c=o.dialysis,a=o.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p.SleeperOccupant,{}),(0,e.jsx)(r.SleeperDamage,{}),(0,e.jsx)(s.SleeperDialysisPump,{title:"Dialysis",active:c,actToDo:"togglefilter"}),(0,e.jsx)(s.SleeperDialysisPump,{title:"Stomach Pump",active:a,actToDo:"togglepump"}),(0,e.jsx)(t.SleeperChemicals,{})]})}},86570:function(O,m,n){"use strict";n.r(m),n.d(m,{SleeperOccupant:function(){return p}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(40308),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.occupant,l=c.auto_eject_dead,f=c.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:l?"toggle-on":"toggle-off",selected:l,onClick:function(){return o("auto_eject_dead_"+(l?"off":"on"))},children:l?"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:f})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:a.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:a.health/a.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,i.Mg)(a.health)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:s.stats[a.stat][0],children:s.stats[a.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{minValue:0,maxValue:1,value:a.bodyTemperature/a.maxTemp,color:s.tempColors[a.temperatureSuitability+3],children:[(0,i.Mg)(a.btCelsius),"\xB0C,",(0,i.Mg)(a.btFaren),"\xB0F"]})}),!!a.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{minValue:0,maxValue:1,value:a.bloodLevel/a.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[a.bloodPercent,"%, ",a.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[a.pulse," BPM"]})]})]})})}},40308:function(O,m,n){"use strict";n.r(m),n.d(m,{damageRange:function(){return t},damages:function(){return i},stats:function(){return e},tempColors:function(){return r}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],i=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],t={average:[.25,.5],bad:[.5,1/0]},r=["bad","average","average","good","average","average","bad"]},46039:function(O,m,n){"use strict";n.r(m),n.d(m,{Sleeper:function(){return p}});var e=n(62161),i=n(7081),t=n(42103),r=n(39176),s=n(44092),p=function(x){var d=(0,i.Oc)().data,o=d.hasOccupant,c=o?(0,e.jsx)(s.SleeperMain,{}):(0,e.jsx)(r.SleeperEmpty,{});return(0,e.jsx)(t.p8,{width:550,height:760,children:(0,e.jsx)(t.p8.Content,{className:"Layout__content--flexColumn",children:c})})}},34880:function(O,m,n){"use strict";n.r(m)},49752:function(O,m,n){"use strict";n.r(m),n.d(m,{SmartVend:function(){return p}});var e=n(62161),i=n(7402),t=n(7081),r=n(16754),s=n(42103),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.config,a=d.data,l=a.secure,f=a.locked,h=a.contents;return(0,e.jsx)(s.p8,{width:500,height:550,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[l&&f===-1&&(0,e.jsx)(r.IC,{danger:!0,children:(0,e.jsx)(r.az,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."})})||l&&f!==-1&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.az,{children:"Secure Access: Please have your identification ready."})})||"",h.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",c.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,i.Tj)(function(v,j){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:v.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[v.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return o("Release",{index:v.index,amount:1})},children:"1"}),(0,e.jsx)(r.$n,{disabled:v.amount<5,onClick:function(){return o("Release",{index:v.index,amount:5})},children:"5"}),(0,e.jsx)(r.$n,{disabled:v.amount<25,onClick:function(){return o("Release",{index:v.index,amount:25})},children:"25"}),(0,e.jsx)(r.$n,{disabled:v.amount<50,onClick:function(){return o("Release",{index:v.index,amount:50})},children:"50"}),(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return o("Release",{index:v.index})},children:"Custom"}),(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return o("Release",{index:v.index,amount:v.amount})},children:"All"})]})]},j)})(h)]})]})})})}},28088:function(O,m,n){"use strict";n.r(m),n.d(m,{Smes:function(){return d}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(41242),p=n(42103),x=1e3,d=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.capacityPercent,h=l.capacity,v=l.charge,j=l.inputAttempt,E=l.inputting,y=l.inputLevel,M=l.inputLevelMax,_=l.inputAvailable,D=l.outputAttempt,b=l.outputting,T=l.outputLevel,R=l.outputLevelMax,L=l.outputUsed,W=f>=100&&"good"||E&&"average"||"bad",$=b&&"good"||v>0&&"average"||"bad";return(0,e.jsx)(p.p8,{width:400,height:350,children:(0,e.jsxs)(p.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsx)(r.z2,{value:f*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:(0,i.Mg)(v/(1e3*60),1)+" kWh / "+(0,i.Mg)(h/(1e3*60))+" kWh ("+f+"%)"})}),(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:j?"sync-alt":"times",selected:j,onClick:function(){return a("tryinput")},children:j?"On":"Off"}),children:(0,e.jsx)(r.az,{color:W,children:f>=100&&"Fully Charged"||E&&"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 a("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:y===0,onClick:function(){return a("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:y/x,fillValue:_/x,minValue:0,maxValue:M/x,step:5,stepPixelSize:4,format:function(F){return(0,s.d5)(F*x,1)},onDrag:function(F,k){return a("input",{target:k*x})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:y===M,onClick:function(){return a("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:y===M,onClick:function(){return a("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,s.d5)(_)})]})}),(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:D?"power-off":"times",selected:D,onClick:function(){return a("tryoutput")},children:D?"On":"Off"}),children:(0,e.jsx)(r.az,{color:$,children:b?"Sending":v>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:T===0,onClick:function(){return a("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:T===0,onClick:function(){return a("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:T/x,minValue:0,maxValue:R/x,step:5,stepPixelSize:4,format:function(F){return(0,s.d5)(F*x,1)},onDrag:function(F,k){return a("output",{target:k*x})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:T===R,onClick:function(){return a("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:T===R,onClick:function(){return a("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,s.d5)(L)})]})})]})})}},24854:function(O,m,n){"use strict";n.r(m),n.d(m,{SolarControl:function(){return p}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(42103),p=function(x){var d=(0,t.Oc)(),o=d.act,c=d.data,a=c.generated,l=c.generated_ratio,f=c.sun_angle,h=c.array_angle,v=c.rotation_rate,j=c.max_rotation_rate,E=c.tracking_state,y=c.connected_panels,M=c.connected_tracker;return(0,e.jsx)(s.p8,{width:380,height:230,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return o("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:M?"good":"bad",children:M?"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:l,children:a+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[f,"\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:E===0,onClick:function(){return o("tracking",{mode:0})},children:"Off"}),(0,e.jsx)(r.$n,{icon:"clock-o",selected:E===1,onClick:function(){return o("tracking",{mode:1})},children:"Timed"}),(0,e.jsx)(r.$n,{icon:"sync",selected:E===2,disabled:!M,onClick:function(){return o("tracking",{mode:2})},children:"Auto"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(E===0||E===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:h,format:function(_){var D=Math.sign(_)>0?" (CW)":" (CCW)";return(0,i.Mg)(Math.abs(_))+D},onDrag:function(_,D){return o("azimuth",{value:D})}}),E===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-j-.01,maxValue:j+.01,value:v,format:function(_){var D=Math.sign(_)>0?" (CW)":" (CCW)";return(0,i.Mg)(Math.abs(_))+D},onDrag:function(_,D){return o("azimuth_rate",{value:D})}}),E===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[h+"\xB0"," (auto)"]})]})]})})]})})}},44051:function(O,m,n){"use strict";n.r(m),n.d(m,{SpaceHeater:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(79500),s=n(42103),p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.temp,l=c.minTemp,f=c.maxTemp,h=c.cell,v=c.power;return(0,e.jsx)(s.p8,{width:300,height:250,children:(0,e.jsxs)(s.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:[a," K (",a-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(t.Ki.Item,{label:"Current Charge",children:[v,"% ",!h&&"(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:a-r.Ai,minValue:l-r.Ai,maxValue:f-r.Ai,unit:"C",onChange:function(j,E){return o("temp",{newtemp:E+r.Ai})}})}),(0,e.jsx)(t.Wx.Item,{label:"Cell",children:h?(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return o("cellremove")},children:"Eject Cell"}):(0,e.jsx)(t.$n,{icon:"car-battery",onClick:function(){return o("cellinstall")},children:"Insert Cell"})})]})})]})})}},85586:function(O,m,n){"use strict";n.r(m),n.d(m,{Stack:function(){return d}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103);function s(f,h){(h==null||h>f.length)&&(h=f.length);for(var v=0,j=new Array(h);v=f.length?{done:!0}:{done:!1,value:f[j++]}}}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 d=function(f){var h=(0,i.Oc)().data,v=h.amount,j=h.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: "+v,children:(0,e.jsx)(o,{recipes:j})})})})},o=function(f){var h=f.recipes,v=Object.keys(h).sort();return v.map(function(j,E){var y=h[j];return y.ref===void 0?(0,e.jsx)(t.Nt,{ml:1,mb:-.7,color:"label",title:j,children:(0,e.jsx)(t.az,{ml:1,children:(0,e.jsx)(o,{recipes:y})})},E):(0,e.jsx)(l,{title:j,recipe:y},E)})},c=function(f,h){return f.req_amount>h?0:Math.floor(h/f.req_amount)},a=function(f){for(var h=function(){var L=R.value;_>=L&&b.push((0,e.jsx)(t.$n,{onClick:function(){return j("make",{ref:y.ref,multiplier:L})},children:L*y.res_amount+"x"}))},v=(0,i.Oc)(),j=v.act,E=v.data,y=f.recipe,M=f.maxMultiplier,_=Math.min(M,Math.floor(y.max_res_amount/y.res_amount)),D=[5,10,25],b=[],T=x(D),R;!(R=T()).done;)h();return D.indexOf(_)===-1&&b.push((0,e.jsx)(t.$n,{onClick:function(){return j("make",{ref:y.ref,multiplier:_})},children:_*y.res_amount+"x"})),b},l=function(f){var h=(0,i.Oc)(),v=h.act,j=h.data,E=j.amount,y=f.recipe,M=f.title,_=y.res_amount,D=y.max_res_amount,b=y.req_amount,T=y.ref,R=M;R+=" (",R+=b+" ",R+="sheet"+(b>1?"s":""),R+=")",_>1&&(R=_+"x "+R);var L=c(y,E);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:!L,icon:"wrench",onClick:function(){return v("make",{ref:y.ref,multiplier:1})},children:R})}),D>1&&L>1&&(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a,{recipe:y,maxMultiplier:L})})]})})})}},68679:function(O,m,n){"use strict";n.r(m),n.d(m,{StationAlertConsole:function(){return s},StationAlertConsoleContent:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(p,{})})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.categories,l=a===void 0?[]:a;return l.map(function(f){return(0,e.jsx)(t.wn,{title:f.category,children:(0,e.jsxs)("ul",{children:[f.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),f.alarms.map(function(h){var v="";return h.has_cameras?v=(0,e.jsx)(t.wn,{children:h.cameras.map(function(j){return(0,e.jsx)(t.$n,{disabled:j.deact,icon:"video",onClick:function(){return o("switchTo",{camera:j.camera})},children:j.name+(j.deact?" (deactived)":"")},j.name)})}):h.lost_sources&&(v=(0,e.jsxs)(t.az,{color:"bad",children:["Lost Alarm Sources: ",h.lost_sources]})),(0,e.jsxs)("li",{children:[h.name,h.origin_lost?(0,e.jsx)(t.az,{color:"bad",children:"Alarm Origin Lost."}):"",v]},h.name)})]})},f.category)})}},27306:function(O,m,n){"use strict";n.r(m),n.d(m,{StationBlueprints:function(){return s},StationBlueprintsContent:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(x){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(p,{})})},p=function(x){var d=(0,i.Oc)().data,o=d.mapRef;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:o,type:"map"}})})]})}},33395:function(O,m,n){"use strict";n.r(m),n.d(m,{StockExchange:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(l){var f=(0,i.Oc)().data,h=f.screen,v=f.stationName,j;return h==="stocks"?j=(0,e.jsx)(p,{}):h==="logs"?j=(0,e.jsx)(o,{}):h==="archive"?j=(0,e.jsx)(c,{}):h==="graph"&&(j=(0,e.jsx)(a,{})),(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:""+v+" Stock Exchange",children:j})})})},p=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.balance,E=v.stationName,y=v.viewMode,M=(0,e.jsx)(x,{});return y==="Full"?M=(0,e.jsx)(x,{}):y==="Compressed"&&(M=(0,e.jsx)(d,{})),(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[E," Cargo Department"]})," |"]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",j]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(t.$n,{onClick:function(){return h("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 h("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:M})]})},x=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.stocks,E=j===void 0?[]:j;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,{}),E.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 h("stocks_buy",{share:y.REF})}}),(0,e.jsx)(t.$n,{icon:"minus",disabled:!1,onClick:function(){return h("stocks_sell",{share:y.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return h("stocks_archive",{share:y.REF})},children:"A"}),(0,e.jsx)(t.$n,{onClick:function(){return h("stocks_history",{share:y.REF})},children:"H"}),(0,e.jsx)("br",{})]})]},y.ID)})]})]})},d=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.stocks,E=j===void 0?[]:j;return(0,e.jsx)(t.az,{children:E.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 h("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 h("stocks_buy",{share:y.REF})},children:"Buy shares"}),"|",(0,e.jsx)(t.$n,{onClick:function(){return h("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 h("stocks_archive",{share:y.REF})},children:"View news archives"}),(0,e.jsx)(t.cG,{})]},y.ID)})})},o=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.logs,E=j===void 0?[]:j;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 h("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:E.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)})})]})},c=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.name,E=v.events,y=E===void 0?[]:E,M=v.articles,_=M===void 0?[]:M;return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",j]}),(0,e.jsx)(t.$n,{onClick:function(){return h("stocks_backbutton")},children:"Go back"}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:y.map(function(D){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:D.current_title}),(0,e.jsx)("br",{}),D.current_desc]}),(0,e.jsx)(t.cG,{})]},D.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:_.map(function(D){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:D.headline}),(0,e.jsx)("i",{children:D.subtitle}),(0,e.jsx)("br",{}),D.article,(0,e.jsx)("br",{}),"- ",D.author,", ",D.spacetime," (via",(0,e.jsx)("i",{children:D.outlet}),")"]}),(0,e.jsx)(t.cG,{})]},D.headline)})})]})},a=function(l){var f=(0,i.Oc)(),h=f.act,v=f.data,j=v.name,E=v.maxValue,y=v.values,M=y===void 0?[]:y;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return h("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:M,rangeX:[0,M.length-1],rangeY:[0,E],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(t.cG,{}),(0,e.jsxs)("p",{children:[j," share value per share"]})]})}},92495:function(O,m,n){"use strict";n.r(m),n.d(m,{SuitCycler:function(){return p}});var e=n(62161),i=n(28277),t=n(7081),r=n(16754),s=n(42103),p=function(a){var l=function(F){b(F)},f=function(F){L(F)},h=(0,t.Oc)().data,v=h.active,j=h.locked,E=h.uv_active,y=h.species,M=h.departments,_=(0,i.useState)(!!M&&M[0]||void 0),D=_[0],b=_[1],T=(0,i.useState)(!!y&&y[0]||void 0),R=T[0],L=T[1],W=(0,e.jsx)(x,{selectedDepartment:D,selectedSpecies:R,onSelectedDepartment:l,onSelectedSpecies:f});return E?W=(0,e.jsx)(d,{}):j?W=(0,e.jsx)(o,{}):v&&(W=(0,e.jsx)(c,{})),(0,e.jsx)(s.p8,{width:320,height:400,children:(0,e.jsx)(s.p8.Content,{children:W})})},x=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data,v=h.safeties,j=h.occupied,E=h.suit,y=h.helmet,M=h.departments,_=h.species,D=h.uv_level,b=h.max_uv_level,T=h.can_repair,R=h.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 f("lock")},children:"Lock"}),children:[!!(j&&v)&&(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 f("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 f("dispense",{item:"helmet"})},children:y||"Empty"})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:E?"square":"square-o",disabled:!E,onClick:function(){return f("dispense",{item:"suit"})},children:E||"Empty"})}),T&&R?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[R,(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return f("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,{width:"150px",options:M,selected:a.selectedDepartment,onSelected:function(L){a.onSelectedDepartment(L),f("department",{department:L})}})}),(0,e.jsx)(r.Ki.Item,{label:"Target Species",children:(0,e.jsx)(r.ms,{width:"150px",maxHeight:"160px",options:_,selected:a.selectedSpecies,onSelected:function(L){a.onSelectedSpecies(L),f("species",{species:L})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,onClick:function(){return f("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:D,minValue:1,maxValue:b,stepPixelSize:30,onChange:function(L,W){return f("radlevel",{radlevel:W})}})}),(0,e.jsx)(r.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"recycle",disabled:j&&v,textAlign:"center",onClick:function(){return f("uv")}})})]})})]})},d=function(a){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},o=function(a){var l=(0,t.Oc)(),f=l.act,h=l.data,v=h.model_text,j=h.userHasAccess;return(0,e.jsxs)(r.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(r.az,{color:"bad",bold:!0,children:["The ",v," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"unlock",disabled:!j,onClick:function(){return f("lock")},children:"[Unlock]"})})]})},c=function(a){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},28742:function(O,m,n){"use strict";n.r(m),n.d(m,{SuitStorageUnit:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(c){var a=(0,i.Oc)().data,l=a.panelopen,f=a.uv_active,h=a.broken,v=(0,e.jsx)(p,{});return l?v=(0,e.jsx)(x,{}):f?v=(0,e.jsx)(d,{}):h&&(v=(0,e.jsx)(o,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:v})})},p=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,h=f.locked,v=f.open,j=f.safeties,E=f.occupied,y=f.suit,M=f.helmet,_=f.mask;return(0,e.jsxs)(t.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!v&&(0,e.jsx)(t.$n,{icon:h?"unlock":"lock",onClick:function(){return l("lock")},children:h?"Unlock":"Lock"}),!h&&(0,e.jsx)(t.$n,{icon:v?"sign-out-alt":"sign-in-alt",onClick:function(){return l("door")},children:v?"Close":"Open"})]}),children:[!!(E&&j)&&(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 l("eject_guy")},children:"Eject Entity"})]}),h&&(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"})]})||v&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Helmet",children:(0,e.jsx)(t.$n,{icon:M?"square":"square-o",disabled:!M,onClick:function(){return l("dispense",{item:"helmet"})},children:M||"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 l("dispense",{item:"suit"})},children:y||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Mask",children:(0,e.jsx)(t.$n,{icon:_?"square":"square-o",disabled:!_,onClick:function(){return l("dispense",{item:"mask"})},children:_||"Empty"})})]})||(0,e.jsx)(t.$n,{fluid:!0,icon:"recycle",disabled:E&&j,textAlign:"center",onClick:function(){return l("uv")},children:"Decontaminate"})]})},x=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,h=f.safeties,v=f.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 ",v?"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:v,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:v?"red":"green",format:function(j){return j?"15nm":"185nm"},onChange:function(j,E){return l("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"," ",h?(0,e.jsx)(t.az,{textColor:"green",children:"GREEN"}):(0,e.jsx)(t.az,{textColor:"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",borderStyle:"outset"},onClick:function(){return l("togglesafeties")}})}),(0,e.jsxs)(t.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(t.In,{name:"circle",color:h?"black":"red",mr:2}),(0,e.jsx)(t.In,{name:"circle",color:h?"green":"black"})]})]})]})]})},d=function(c){return(0,e.jsx)(t.IC,{children:"Contents are currently being decontaminated. Please wait."})},o=function(c){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."})}},50028:function(O,m,n){"use strict";n.r(m),n.d(m,{SupermatterMonitor:function(){return x},SupermatterMonitorContent:function(){return d}});var e=n(62161),i=n(4089),t=n(61282),r=n(7081),s=n(16754),p=n(42103),x=function(a){return(0,e.jsx)(p.p8,{width:600,height:400,children:(0,e.jsx)(p.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(a){var l=(0,r.Oc)().data,f=l.active;return f?(0,e.jsx)(c,{}):(0,e.jsx)(o,{})},o=function(a){var l=(0,r.Oc)(),f=l.act,h=l.data,v=h.supermatters;return(0,e.jsx)(s.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(s.$n,{icon:"sync",onClick:function(){return f("refresh")},children:"Refresh"}),children:(0,e.jsx)(s.so,{wrap:"wrap",children:v.map(function(j,E){return(0,e.jsx)(s.so.Item,{basis:"49%",grow:E%2,children:(0,e.jsx)(s.wn,{title:j.area_name+" (#"+j.uid+")",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Integrity",children:[j.integrity," %"]}),(0,e.jsx)(s.Ki.Item,{label:"Options",children:(0,e.jsx)(s.$n,{icon:"eye",onClick:function(){return f("set",{set:j.uid})},children:"View Details"})})]})})},E)})})})},c=function(a){var l=(0,r.Oc)(),f=l.act,h=l.data,v=h.SM_area,j=h.SM_integrity,E=h.SM_power,y=h.SM_ambienttemp,M=h.SM_ambientpressure,_=h.SM_EPR,D=h.SM_gas_O2,b=h.SM_gas_CO2,T=h.SM_gas_N2,R=h.SM_gas_PH,L=h.SM_gas_N2O;return(0,e.jsx)(s.wn,{title:(0,t.Sn)(v),buttons:(0,e.jsx)(s.$n,{icon:"arrow-left",onClick:function(){return f("clear")},children:"Return to Menu"}),children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(s.z2,{value:j,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(s.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(s.az,{color:E>300&&"bad"||E>150&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,i.Mg)(W,2)+" MeV/cm\xB3"},value:E})})}),(0,e.jsx)(s.Ki.Item,{label:"Temperature",children:(0,e.jsx)(s.az,{color:y>5e3&&"bad"||y>4e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,i.Mg)(W,2)+" K"},value:y})})}),(0,e.jsx)(s.Ki.Item,{label:"Pressure",children:(0,e.jsx)(s.az,{color:M>1e4&&"bad"||M>5e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,i.Mg)(W,2)+" kPa"},value:M})})}),(0,e.jsx)(s.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(s.az,{color:_>4&&"bad"||_>1&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,i.Mg)(W,2)},value:_})})}),(0,e.jsx)(s.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(s.zv,{value:D}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(s.zv,{value:b}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(s.zv,{value:T}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"PH",children:[(0,e.jsx)(s.zv,{value:R}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(s.zv,{value:L}),"%"]})]})})]})})}},57754:function(O,m,n){"use strict";n.r(m),n.d(m,{SupplyConsoleMenu:function(){return x}});var e=n(62161),i=n(28277),t=n(16754),r=n(10242),s=n(50656),p=n(60164),x=function(d){var o=(0,i.useState)(0),c=o[0],a=o[1],l=[];return l[0]=(0,e.jsx)(s.SupplyConsoleMenuOrder,{}),l[1]=(0,e.jsx)(p.SupplyConsoleMenuOrderList,{mode:"Approved"}),l[2]=(0,e.jsx)(p.SupplyConsoleMenuOrderList,{mode:"Requested"}),l[3]=(0,e.jsx)(p.SupplyConsoleMenuOrderList,{mode:"All"}),l[4]=(0,e.jsx)(r.SupplyConsoleMenuHistoryExport,{}),(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{icon:"box",selected:c===0,onClick:function(){return a(0)},children:"Request"}),(0,e.jsx)(t.tU.Tab,{icon:"check-circle-o",selected:c===1,onClick:function(){return a(1)},children:"Accepted"}),(0,e.jsx)(t.tU.Tab,{icon:"circle-o",selected:c===2,onClick:function(){return a(2)},children:"Requests"}),(0,e.jsx)(t.tU.Tab,{icon:"book",selected:c===3,onClick:function(){return a(3)},children:"Order history"}),(0,e.jsx)(t.tU.Tab,{icon:"book",selected:c===4,onClick:function(){return a(4)},children:"Export history"})]}),l[c]||""]})}},10242:function(O,m,n){"use strict";n.r(m),n.d(m,{SupplyConsoleMenuHistoryExport:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.receipts,c=d.order_auth;return o.length?(0,e.jsx)(t.wn,{children:o.map(function(a,l){return(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.Ki,{children:[a.title.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.field,buttons:c?(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("export_edit",{ref:a.ref,edit:f.field,default:f.entry})},children:"Edit"}):"",children:f.entry},f.field)}),a.error?(0,e.jsx)(t.Ki.Item,{labelColor:"red",label:"Error",children:a.error}):a.contents.map(function(f,h){return(0,e.jsxs)(t.Ki.Item,{label:f.object,buttons:c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("export_edit_field",{ref:a.ref,index:h+1,edit:"meow",default:f.object})},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"trash",color:"red",onClick:function(){return x("export_delete_field",{ref:a.ref,index:h+1})},children:"Delete"})]}):"",children:[f.quantity,"x -> ",f.value," points"]},h)})]}),c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{mt:1,icon:"plus",onClick:function(){return x("export_add_field",{ref:a.ref})},children:"Add Item To Record"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return x("export_delete",{ref:a.ref})},children:"Delete Record"})]}):""]},l)})}):(0,e.jsx)(t.wn,{children:"No receipts found."})}},50656:function(O,m,n){"use strict";n.r(m),n.d(m,{SupplyConsoleMenuOrder:function(){return x}});var e=n(62161),i=n(7402),t=n(22071),r=n(28277),s=n(7081),p=n(16754),x=function(d){var o=(0,s.Oc)(),c=o.act,a=o.data,l=a.categories,f=a.supply_packs,h=a.contraband,v=a.supply_points,j=(0,r.useState)(null),E=j[0],y=j[1],M=(0,t.L)([(0,i.pb)(function(_){return _.group===E}),(0,i.pb)(function(_){return!_.contraband||!!h}),(0,i.Ul)(function(_){return _.name}),(0,i.Ul)(function(_){return _.cost>v})])(f);return(0,e.jsx)(p.wn,{children:(0,e.jsxs)(p.BJ,{children:[(0,e.jsx)(p.BJ.Item,{basis:"25%",children:(0,e.jsx)(p.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:l.map(function(_){return(0,e.jsx)(p.$n,{fluid:!0,selected:_===E,onClick:function(){return y(_)},children:_},_)})})}),(0,e.jsx)(p.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(p.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:M.map(function(_){return(0,e.jsx)(p.az,{children:(0,e.jsxs)(p.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(p.BJ.Item,{basis:"70%",children:(0,e.jsx)(p.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,color:_.cost>v?"red":void 0,onClick:function(){return c("request_crate",{ref:_.ref})},children:_.name})}),(0,e.jsx)(p.BJ.Item,{children:(0,e.jsx)(p.$n,{color:_.cost>v?"red":void 0,onClick:function(){return c("request_crate_multi",{ref:_.ref})},children:"#"})}),(0,e.jsx)(p.BJ.Item,{children:(0,e.jsx)(p.$n,{color:_.cost>v?"red":void 0,onClick:function(){return c("view_crate",{crate:_.ref})},children:"C"})}),(0,e.jsxs)(p.BJ.Item,{grow:1,children:[_.cost," points"]})]})},_.name)})})})]})})}},60164:function(O,m,n){"use strict";n.r(m),n.d(m,{SupplyConsoleMenuOrderList:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=s.mode,c=d.orders,a=d.order_auth,l=d.supply_points,f=c.filter(function(h){return h.status===o||o==="All"});return f.length?(0,e.jsxs)(t.wn,{children:[o==="Requested"&&a?(0,e.jsx)(t.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",onClick:function(){return x("clear_all_requests")},children:"Clear all requests"}):"",f.map(function(h,v){return(0,e.jsxs)(t.wn,{title:"Order "+(v+1),buttons:o==="All"&&a?(0,e.jsx)(t.$n,{color:"red",icon:"trash",onClick:function(){return x("delete_order",{ref:h.ref})},children:"Delete Record"}):"",children:[(0,e.jsxs)(t.Ki,{children:[h.entries.map(function(j,E){return j.entry?(0,e.jsx)(t.Ki.Item,{label:j.field,buttons:a?(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){x("edit_order_value",{ref:h.ref,edit:j.field,default:j.entry})},children:"Edit"}):"",children:j.entry},E):""}),o==="All"?(0,e.jsx)(t.Ki.Item,{label:"Status",children:h.status}):""]}),a&&o==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"check",disabled:h.cost>l,onClick:function(){return x("approve_order",{ref:h.ref})},children:"Approve"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return x("deny_order",{ref:h.ref})},children:"Deny"})]}):""]},v)})]}):(0,e.jsx)(t.wn,{children:"No orders found."})}},95354:function(O,m,n){"use strict";n.r(m),n.d(m,{SupplyConsoleShuttleStatus:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(41242),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.supply_points,a=o.shuttle,l=o.shuttle_auth,f="",h=!1;return l&&(a.launch===1&&a.mode===0?f=(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return d("send_shuttle",{mode:"send_away"})},children:"Send Away"}):a.launch===2&&(a.mode===3||a.mode===1)?f=(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return d("send_shuttle",{mode:"cancel_shuttle"})},children:"Cancel Launch"}):a.launch===1&&a.mode===5&&(f=(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return d("send_shuttle",{mode:"send_to_station"})},children:"Send Shuttle"})),a.force&&(h=!0)),(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(t.zv,{value:c})})}),(0,e.jsx)(t.wn,{title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[f,h?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return d("send_shuttle",{mode:"force_shuttle"})},children:"Force Launch"}):""]}),children:a.location}),(0,e.jsx)(t.Ki.Item,{label:"Engine",children:a.engine}),a.mode===4?(0,e.jsx)(t.Ki.Item,{label:"ETA",children:a.time>1?(0,r.fU)(a.time):"LATE"}):""]})})]})}},28143:function(O,m,n){"use strict";n.r(m),n.d(m,{SupplyConsole:function(){return d}});var e=n(62161),i=n(16754),t=n(86471),r=n(42103),s=n(57754),p=n(95354),x=n(98885),d=function(o){return(0,t.modalRegisterBodyOverride)("view_crate",x.viewCrateContents),(0,e.jsx)(r.p8,{width:700,height:620,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(i.wn,{title:"Supply Records",children:[(0,e.jsx)(p.SupplyConsoleShuttleStatus,{}),(0,e.jsx)(s.SupplyConsoleMenu,{})]})]})})}},91192:function(O,m,n){"use strict";n.r(m)},98885:function(O,m,n){"use strict";n.r(m),n.d(m,{viewCrateContents:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.supply_points,c=s.args,a=c.name,l=c.cost,f=c.manifest,h=c.ref,v=c.random;return(0,e.jsx)(t.wn,{width:"400px",m:"-1rem",pb:"1rem",title:a,buttons:(0,e.jsx)(t.$n,{icon:"shopping-cart",disabled:l>o,onClick:function(){return x("request_crate",{ref:h})},children:"Buy - "+l+" points"}),children:(0,e.jsx)(t.wn,{title:"Contains"+(v?" any "+v+" of:":""),scrollable:!0,height:"200px",children:f.map(function(j){return(0,e.jsx)(t.az,{children:j},j)})})})}},76786:function(O,m,n){"use strict";n.r(m),n.d(m,{TEGenerator:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(41242),p=n(42103),x=function(o){var c=(0,t.Oc)().data,a=c.totalOutput,l=c.maxTotalOutput,f=c.thermalOutput,h=c.primary,v=c.secondary;return(0,e.jsx)(p.p8,{width:550,height:310,children:(0,e.jsxs)(p.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:a,maxValue:l,children:(0,s.d5)(a)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,s.d5)(f)})]})}),h&&v?(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(d,{name:"Primary Circulator",values:h})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(d,{name:"Secondary Circulator",values:v})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},d=function(o){var c=o.name,a=o.values,l=a.dir,f=a.output,h=a.flowCapacity,v=a.inletPressure,j=a.inletTemperature,E=a.outletPressure,y=a.outletTemperature;return(0,e.jsx)(r.wn,{title:c+" ("+l+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,s.d5)(f)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,i.Mg)(h,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,s.QL)(v*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,i.Mg)(j,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,s.QL)(E*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,i.Mg)(y,2)," K"]})]})})}},27136:function(O,m,n){"use strict";n.r(m),n.d(m,{Tank:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.connected,a=o.showToggle,l=a===void 0?!0:a,f=o.maskConnected,h=o.tankPressure,v=o.releasePressure,j=o.defaultReleasePressure,E=o.minReleasePressure,y=o.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:!!l&&(0,e.jsx)(t.$n,{icon:c?"air-freshener":"lock-open",selected:c,disabled:!f,onClick:function(){return d("toggle")},children:"Mask Release Valve"}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Mask Connected",children:f?"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:h/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:o.tankPressure+" kPa"})}),(0,e.jsxs)(t.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(t.$n,{icon:"fast-backward",disabled:v===E,onClick:function(){return d("pressure",{pressure:"min"})}}),(0,e.jsx)(t.Q7,{animated:!0,value:v,width:"65px",unit:"kPa",minValue:E,maxValue:y,onChange:function(M,_){return d("pressure",{pressure:_})}}),(0,e.jsx)(t.$n,{icon:"fast-forward",disabled:v===y,onClick:function(){return d("pressure",{pressure:"max"})}}),(0,e.jsx)(t.$n,{icon:"undo",disabled:v===j,onClick:function(){return d("pressure",{pressure:"reset"})}})]})]})})]})})}},10351:function(O,m,n){"use strict";n.r(m),n.d(m,{TankDispenser:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.plasma,a=o.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:c?"square":"square-o",disabled:!c,onClick:function(){return d("plasma")},children:"Dispense"}),children:c}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(t.$n,{icon:a?"square":"square-o",disabled:!a,onClick:function(){return d("oxygen")},children:"Dispense"}),children:a})]})})})})}},66303:function(O,m,n){"use strict";n.r(m),n.d(m,{TelecommsLogBrowser:function(){return p}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(42103),p=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,h=f.universal_translate,v=f.network,j=f.temp,E=f.servers,y=f.selectedServer;return(0,e.jsx)(s.p8,{width:575,height:450,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[j&&j.color==="bad"&&(0,e.jsxs)(r.IC,{danger:!0,children:[(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:j.text}),(0,e.jsx)(r.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return l("cleartemp")}}),(0,e.jsx)(r.az,{style:{clear:"both"}})]})||j&&j.color!=="bad"&&(0,e.jsxs)(r.IC,{warning:!0,children:[(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:j.text}),(0,e.jsx)(r.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return l("cleartemp")}}),(0,e.jsx)(r.az,{style:{clear:"both"}})]})||"",(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 l("scan")},children:"Refresh"}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",disabled:E.length===0,onClick:function(){return l("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("network")},children:v})})})}),y?(0,e.jsx)(d,{network:v,server:y,universal_translate:h}):(0,e.jsx)(x,{network:v,servers:E})]})})},x=function(c){var a=(0,t.Oc)().act,l=c.network,f=c.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 a("scan")},children:"Scan"})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:f.map(function(h){return(0,e.jsx)(r.Ki.Item,{label:h.name+" ("+h.id+")",children:(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return a("view",{id:h.id})},children:"View"})},h.id)})})})},d=function(c){var a=(0,t.Oc)().act,l=c.network,f=c.server,h=c.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+f.id+")",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return a("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,i.Mg)(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(v){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:v.id%2,children:(0,e.jsx)(r.wn,{title:h||v.parameters.uspeech||v.parameters.intelligible||v.input_type==="Execution Error"?v.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return a("delete",{id:v.id})}}),children:v.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:v.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return a("delete",{id:v.id})}})})]}):h||v.parameters.uspeech||v.parameters.intelligible?(0,e.jsx)(o,{log:v}):(0,e.jsx)(o,{error:!0})})},v.id)})})})]})},o=function(c){var a=c.log,l=c.error,f=a&&a.parameters||{none:"none"},h=f.timecode,v=f.name,j=f.race,E=f.job,y=f.message;return l?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:h}),(0,e.jsx)(r.Ki.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:j}),(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:h}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[v," (Job: ",E,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:j}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:y})]})}},3684:function(O,m,n){"use strict";n.r(m),n.d(m,{TelecommsMachineBrowser:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.network,l=c.temp,f=c.machinelist,h=c.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[l&&l.color==="bad"&&(0,e.jsxs)(t.IC,{danger:!0,children:[(0,e.jsx)(t.az,{inline:!0,verticalAlign:"middle",children:l.text}),(0,e.jsx)(t.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return o("cleartemp")}}),(0,e.jsx)(t.az,{style:{clear:"both"}})]})||l&&l.color!=="bad"&&(0,e.jsxs)(t.IC,{warning:!0,children:[(0,e.jsx)(t.az,{inline:!0,verticalAlign:"middle",children:l.text}),(0,e.jsx)(t.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return o("cleartemp")}}),(0,e.jsx)(t.az,{style:{clear:"both"}})]})||"",(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 o("scan")},children:"Probe Network"}),(0,e.jsx)(t.$n,{color:"bad",icon:"exclamation-triangle",disabled:f.length===0,onClick:function(){return o("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return o("network")},children:a})})})}),f&&f.length?(0,e.jsx)(p,{title:h?h.name+" ("+h.id+")":"Detected Network Entities",list:h?h.links:f,showBack:h}):(0,e.jsx)(t.wn,{title:"No Devices Found",children:(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return o("scan")},children:"Probe Network"})})]})})},p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=x.list,l=x.title,f=x.showBack;return(0,e.jsxs)(t.wn,{title:l,buttons:f&&(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return o("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:a.length?a.map(function(h){return(0,e.jsx)(t.Ki.Item,{label:h.name+" ("+h.id+")",children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return o("view",{id:h.id})},children:"View"})},h.id)}):(0,e.jsx)(t.Ki.Item,{color:"bad",children:"No links detected."})})]})}},30053:function(O,m,n){"use strict";n.r(m),n.d(m,{TelecommsMultitoolMenu:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=n(3751),p=function(o){var c=(0,i.Oc)().data,a=c.options;return(0,e.jsx)(r.p8,{width:520,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{}),(0,e.jsx)(x,{}),(0,e.jsx)(d,{options:a})]})})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.on,h=l.id,v=l.network,j=l.autolinkers,E=l.shadowlink,y=l.linked,M=l.filter,_=l.multitool,D=l.multitool_buffer;return(0,e.jsxs)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return a("toggle")},children:f?"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 a("id")},children:h})}),(0,e.jsx)(t.Ki.Item,{label:"Network",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("network")},children:v})}),(0,e.jsx)(t.Ki.Item,{label:"Prefabrication",children:j?"TRUE":"FALSE"}),E?(0,e.jsx)(t.Ki.Item,{label:"Shadow Link",children:"Active."}):"",_?(0,e.jsxs)(t.Ki.Item,{label:"Multitool Buffer",children:[D?(0,e.jsxs)(e.Fragment,{children:[D.name," (",D.id,")"]}):"",(0,e.jsx)(t.$n,{color:D?"green":void 0,icon:D?"link":"plus",onClick:D?function(){return a("link")}:function(){return a("buffer")},children:D?"Link ("+D.id+")":"Add Machine"}),D?(0,e.jsx)(t.$n,{color:"red",icon:"trash",onClick:function(){return a("flush")},children:"Flush"}):""]}):""]}),(0,e.jsx)(t.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(t.Ki,{children:y.map(function(b){return(0,e.jsx)(t.Ki.Item,{label:b.ref+" "+b.name+" ("+b.id+")",buttons:(0,e.jsx)(t.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return a("unlink",{unlink:b.index})}})},b.ref)})})}),(0,e.jsxs)(t.wn,{title:"Filtering Frequencies",mt:1,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("freq")},children:"Add Frequency"}),children:[M.map(function(b,T){return(0,e.jsx)(t.$n.Confirm,{confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return a("delete",{delete:b.freq})},children:b.name+" GHz"},T)}),!M||M.length===0?(0,e.jsx)(t.az,{color:"label",children:"No filters."}):""]})]})},d=function(o){var c=(0,i.Oc)().act,a=o.options,l=a.use_listening_level,f=a.use_broadcasting,h=a.use_receiving,v=a.listening_level,j=a.broadcasting,E=a.receiving,y=a.use_change_freq,M=a.change_freq,_=a.use_broadcast_range,D=a.use_receive_range,b=a.range,T=a.minRange,R=a.maxRange;return!l&&!f&&!h&&!y&&!_&&!D?(0,e.jsx)(t.wn,{title:"No Options Found"}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsxs)(t.Ki,{children:[l?(0,e.jsx)(t.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(t.$n,{icon:v?"lock-closed":"lock-open",onClick:function(){return c("change_listening")},children:v?"Yes":"No"})}):"",f?(0,e.jsx)(t.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:j,onClick:function(){return c("broadcast")},children:j?"Yes":"No"})}):"",h?(0,e.jsx)(t.Ki.Item,{label:"Receving",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:E,onClick:function(){return c("receive")},children:E?"Yes":"No"})}):"",y?(0,e.jsx)(t.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(t.$n,{icon:"wave-square",selected:!!M,onClick:function(){return c("change_freq")},children:M?"Yes ("+M+")":"No"})}):"",_||D?(0,e.jsx)(t.Ki.Item,{label:(_?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(t.Q7,{value:b,minValue:T,maxValue:R,unit:"gigameters",stepPixelSize:4,format:function(L){return L+1},onDrag:function(L,W){return c("range",{range:W})}})}):""]})})}},50624:function(O,m,n){"use strict";n.r(m),n.d(m,{Teleporter:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.locked_name,a=o.station_connected,l=o.hub_connected,f=o.calibrated,h=o.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 d("select_target")},children:c})}),(0,e.jsx)(t.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:f,color:f?"good":"bad",onClick:function(){return d("test_fire")},children:f?"Accurate":"Test Fire"})}),(0,e.jsx)(t.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:h,color:h?"good":"bad",onClick:function(){return d("toggle_on")},children:h?"Online":"OFFLINE"})}),(0,e.jsx)(t.Ki.Item,{label:"Station",children:a?"Connected":"Not Connected"}),(0,e.jsx)(t.Ki.Item,{label:"Hub",children:l?"Connected":"Not Connected"})]})})})})}},92546:function(O,m,n){"use strict";n.r(m),n.d(m,{TelesciConsole:function(){return p},TelesciConsoleContent:function(){return d}});var e=n(62161),i=n(7402),t=n(7081),r=n(16754),s=n(42103),p=function(o){var c=(0,t.Oc)().data,a=c.noTelepad;return(0,e.jsx)(s.p8,{width:400,height:450,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:a&&(0,e.jsx)(x,{})||(0,e.jsx)(d,{})})})},x=function(o){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},d=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.insertedGps,h=l.rotation,v=l.currentZ,j=l.cooldown,E=l.crystalCount,y=l.maxCrystals,M=l.maxPossibleDistance,_=l.maxAllowedDistance,D=l.distance,b=l.tempMsg,T=l.sectorOptions,R=l.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!f,onClick:function(){return a("ejectGPS")},children:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:j&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait",(0,e.jsx)(r.zv,{value:j})," seconds."]})||(0,e.jsx)(r.az,{children:b})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:h,format:function(L){return L+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(L,W){return a("setrotation",{val:W})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:D,format:function(L){return L+"/"+_+" m"},minValue:0,maxValue:_,step:1,stepPixelSize:4,onDrag:function(L,W){return a("setdistance",{val:W})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:T&&(0,i.Ul)(function(L){return Number(L)})(T).map(function(L){return(0,e.jsx)(r.$n,{icon:"check-circle",selected:v===L,onClick:function(){return a("setz",{setz:L})},children:L},L)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return a("send")},children:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return a("receive")},children:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return a("recal")},children:"Recalibrate"})]})]}),R&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[R.src_x,", ",R.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[R.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[R.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",E," / ",y]})]})}},17654:function(O,m,n){"use strict";n.r(m),n.d(m,{TextInputModal:function(){return a},removeAllSkiplines:function(){return c},sanitizeMultiline:function(){return o}});var e=n(62161),i=n(87239),t=n(28277),r=n(7081),s=n(16754),p=n(42103),x=n(5335),d=n(44149),o=function(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")},c=function(f){return f.replace(/[\r\n]+/,"")},a=function(f){var h=(0,r.Oc)(),v=h.act,j=h.data,E=j.large_buttons,y=j.max_length,M=j.message,_=M===void 0?"":M,D=j.multiline,b=j.placeholder,T=b===void 0?"":b,R=j.timeout,L=j.title,W=(0,t.useState)(T||""),$=W[0],F=W[1],k=function(ne){if(ne!==$){var ee=D?o(ne):c(ne);F(ee)}},X=D||$.length>=30,G=135+(_.length>30?Math.ceil(_.length/4):0)+(X?75:0)+(_.length&&E?5:0);return(0,e.jsxs)(p.p8,{title:L,width:325,height:G,children:[R&&(0,e.jsx)(d.Loader,{value:R}),(0,e.jsx)(p.p8.Content,{onKeyDown:function(ne){ne.key===i._.Enter&&(!X||!ne.shiftKey)&&v("submit",{entry:$}),ne.key===i._.Escape&&v("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.az,{color:"label",children:_})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(l,{input:$,onType:k},L)}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(x.InputButtons,{input:$,message:$.length+"/"+y})})]})})})]})},l=function(f){var h=(0,r.Oc)(),v=h.act,j=h.data,E=j.max_length,y=j.multiline,M=f.input,_=f.onType,D=y||M.length>=30;return(0,e.jsx)(s.fs,{autoFocus:!0,autoSelect:!0,height:y||M.length>=30?"100%":"1.8rem",maxLength:E,onEscape:function(){return v("cancel")},onEnter:function(b){D&&b.shiftKey||(b.preventDefault(),v("submit",{entry:M}))},onChange:function(b,T){return _(T)},onInput:function(b,T){return _(T)},placeholder:"Type something...",value:M})}},34113:function(O,m,n){"use strict";n.r(m),n.d(m,{TimeClock:function(){return x}});var e=n(62161),i=n(4089),t=n(7081),r=n(16754),s=n(42103),p=n(10921),x=function(d){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.department_hours,f=a.user_name,h=a.card,v=a.assignment,j=a.job_datum,E=a.allow_change_job,y=a.job_choices;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsxs)(s.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,{title:"Time Off Balance for "+f,children:(0,e.jsx)(r.Ki,{children:!!l&&Object.keys(l).map(function(M){return(0,e.jsxs)(r.Ki.Item,{label:M,color:l[M]>6?"good":l[M]>1?"average":"bad",children:[(0,i.Mg)(l[M],1)," ",l[M]===1?"hour":"hours"]},M)})})})]}),(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 c("id")},children:h||"Insert ID"})}),!!j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:j.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)(p.RankIcon,{color:"white",rank:j.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:j.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:j.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:j.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:j.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",j.pto_department]})||j.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",j.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(E&&j&&j.timeoff_factor!==0&&v!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:j.timeoff_factor>0&&(!!l&&l[j.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return c("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."}))||!!y&&Object.keys(y).length&&Object.keys(y).map(function(M){var _=y[M];return _.map(function(D){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return c("switch-to-onduty-rank",{"switch-to-onduty-rank":M,"switch-to-onduty-assignment":D})},children:D},D)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6972:function(O,m,n){"use strict";n.r(m),n.d(m,{TraitDescription:function(){return x},TraitSelection:function(){return p},TraitTutorial:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(d){var o=(0,i.Oc)(),c=o.act,a=o.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)(p,{})})})})},p=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.names,f=a.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:l.map(function(h){return(0,e.jsx)(t.tU.Tab,{selected:h===f,onClick:function(){return c("select_trait",{name:h})},children:(0,e.jsx)(t.az,{inline:!0,children:h})},h)})})})}),(0,e.jsx)(t.BJ.Item,{grow:8,children:f&&(0,e.jsx)(t.wn,{title:f,children:(0,e.jsx)(x,{name:f})})})]})},x=function(d){var o=(0,i.Oc)(),c=o.act,a=o.data,l=d.name,f=a.descriptions,h=a.categories,v=a.tutorials;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("b",{children:"Name:"})," ",l,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",h[l],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",f[l],(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:v[l]}})]})}},67159:function(O,m,n){"use strict";n.r(m),n.d(m,{TransferValve:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.tank_one,a=o.tank_two,l=o.attached_device,f=o.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:f?"unlock":"lock",disabled:!c||!a,onClick:function(){return d("toggle")},children:f?"Open":"Closed"})})})}),(0,e.jsx)(t.wn,{title:"Assembly",buttons:(0,e.jsx)(t.$n,{textAlign:"center",width:"150px",icon:"cog",disabled:!l,onClick:function(){return d("device")},children:"Configure Assembly"}),children:(0,e.jsx)(t.Ki,{children:l?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return d("remove_device")},children:l})}):(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:c?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return d("tankone")},children:c})}):(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:a?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!a,onClick:function(){return d("tanktwo")},children:a})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},76992:function(O,m,n){"use strict";n.r(m),n.d(m,{TurbineControl:function(){return p}});var e=n(62161),i=n(7081),t=n(16754),r=n(41242),s=n(42103),p=function(x){var d=(0,i.Oc)(),o=d.act,c=d.data,a=c.compressor_broke,l=c.turbine_broke,f=c.broken,h=c.door_status,v=c.online,j=c.power,E=c.rpm,y=c.temp;return(0,e.jsx)(s.p8,{width:520,height:440,children:(0,e.jsxs)(s.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:f&&(0,e.jsxs)(t.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return o("reconnect")},children:"Reconnect"})]})||(0,e.jsx)(t.az,{color:v?"good":"bad",children:v&&!a&&!l?"Online":"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Compressor",children:a&&(0,e.jsx)(t.az,{color:"bad",children:"Compressor is inoperable."})||l&&(0,e.jsx)(t.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n.Checkbox,{checked:v,onClick:function(){return o(v?"power-off":"power-on")},children:"Compressor Power"})})}),(0,e.jsx)(t.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(t.$n.Checkbox,{checked:h,onClick:function(){return o("doors")},children:h?"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:[f?"--":(0,e.jsx)(t.zv,{value:E})," RPM"]}),(0,e.jsxs)(t.Ki.Item,{label:"Internal Temperature",children:[f?"--":(0,e.jsx)(t.zv,{value:y})," K"]}),(0,e.jsx)(t.Ki.Item,{label:"Generated Power",children:f?"--":(0,e.jsx)(t.zv,{format:function(M){return(0,r.d5)(M)},value:Number(j)})})]})})]})})}},13101:function(O,m,n){"use strict";n.r(m),n.d(m,{Turbolift:function(){return s}});var e=n(62161),i=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,i.Oc)(),d=x.act,o=x.data,c=o.floors,a=o.doors_open,l=o.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:l?285:260,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:"Floor Selection",className:l?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:a?"door-open":"door-closed",selected:a&&!l,color:l?"red":null,onClick:function(){return d("toggle_doors")},children:a?l?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:"bad",onClick:function(){return d("emergency_stop")},children:"Emergency Stop"})]}),children:[!l||(0,e.jsx)(t.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(t.so,{wrap:"wrap",children:c.map(function(f){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:f.label||"Floor #"+f.id}),(0,e.jsx)(t.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(t.$n,{icon:"circle",color:f.current?"red":f.target?"green":f.queued?"yellow":null,onClick:function(){return d("move_to_floor",{ref:f.ref})}})}),(0,e.jsx)(t.so.Item,{basis:"50%",grow:1,children:f.name})]})},f.id)})})]})})})}},28665:function(O,m,n){"use strict";n.r(m),n.d(m,{ExploitableInformation:function(){return r}});var e=n(62161),i=n(7081),t=n(16754),r=function(s){var p=(0,i.Oc)(),x=p.act,d=p.data,o=d.exploit,c=d.locked_records;return(0,e.jsx)(t.wn,{title:"Exploitable Information",buttons:o&&(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return x("view_exploits",{id:0})},children:"Back"}),children:o&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:o.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:o.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:o.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:o.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:o.rank}),(0,e.jsx)(t.Ki.Item,{label:"Home System",children:o.home_system}),(0,e.jsx)(t.Ki.Item,{label:"Birthplace",children:o.birthplace}),(0,e.jsx)(t.Ki.Item,{label:"Citizenship",children:o.citizenship}),(0,e.jsx)(t.Ki.Item,{label:"Faction",children:o.faction}),(0,e.jsx)(t.Ki.Item,{label:"Religion",children:o.religion}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:o.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Other Affiliations",children:o.antagfaction}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{children:"Acquired Information"}),(0,e.jsx)(t.Ki.Item,{label:"Notes",children:o.nanoui_exploit_record.split("
").map(function(a){return(0,e.jsx)(t.az,{children:a},a)})})]})})||c&&c.map(function(a){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return x("view_exploits",{id:a.id})},children:a.name},a.id)})})}},26142:function(O,m,n){"use strict";n.r(m),n.d(m,{GenericUplink:function(){return o}});var e=n(62161),i=n(61282),t=n(28277),r=n(7081),s=n(16754),p=n(41242),x=n(32011),d=n(25513),o=function(c){var a,l,f=(0,r.Oc)(),h=f.act,v=f.data,j=c.currencyAmount,E=j===void 0?0:j,y=c.currencySymbol,M=y===void 0?"\u20AE":y,_=v.compactMode,D=v.lockable,b=v.categories,T=b===void 0?[]:b,R=(0,t.useState)(""),L=R[0],W=R[1],$=(0,t.useState)((a=T[0])==null?void 0:a.name),F=$[0],k=$[1],X=(0,i.XZ)(L,function(ne){return ne.name+ne.desc}),G=L.length>0&&T.flatMap(function(ne){return ne.items||[]}).filter(X).filter(function(ne,ee){return ee0?"good":"bad",children:[(0,p.up)(E)," ",M]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(s.pd,{autoFocus:!0,value:L,onInput:function(ne,ee){return W(ee)},mx:1}),(0,e.jsx)(s.$n,{icon:_?"list":"info",onClick:function(){return h("compact_toggle")},children:_?"Compact":"Detailed"}),!!D&&(0,e.jsx)(s.$n,{icon:"lock",onClick:function(){return h("lock")},children:"Lock"})]}),children:(0,e.jsxs)(s.so,{children:[L.length===0&&(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.tU,{vertical:!0,children:T.map(function(ne){var ee;return(0,e.jsxs)(s.tU.Tab,{selected:ne.name===F,onClick:function(){return k(ne.name)},children:[ne.name," (",((ee=ne.items)==null?void 0:ee.length)||0,")"]},ne.name)})})}),(0,e.jsxs)(s.so.Item,{grow:1,basis:0,children:[G.length===0&&(0,e.jsx)(s.IC,{children:L.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(d.ItemList,{compactMode:L.length>0||_,currencyAmount:E,currencySymbol:M,items:G})]})]})})}},25513:function(O,m,n){"use strict";n.r(m),n.d(m,{ItemList:function(){return p}});var e=n(62161),i=n(61282),t=n(7081),r=n(16754),s=n(41242),p=function(x){var d=(0,t.Oc)().act,o=x.compactMode,c=x.currencyAmount,a=x.currencySymbol,l=x.items;return o?(0,e.jsx)(r.XI,{children:l.map(function(f){return(0,e.jsxs)(r.XI.Row,{className:"candystripe",children:[(0,e.jsx)(r.XI.Cell,{bold:!0,children:(0,i.jT)(f.name)}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{fluid:!0,disabled:c',te+='",te+='
',te+='
',te+="Addons:
"+(0,i.GetAddons)(f)+"

",te+="== Descriptions ==
",te+="Vore Verb:
"+c+"

",te+="Release Verb:
"+a+"

",te+='Description:
"'+x+'"

',te+='Absorbed Description:
"'+o+'"

',te+="
",te+="== Messages ==
",te+="Show All Interactive Messages: "+(d?'Yes':'No')+"
",te+='
',te+='
",te+='
',te+='
',te+='
',w==null||w.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',J==null||J.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',oe==null||oe.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',ce==null||ce.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',le==null||le.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',de==null||de.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',me==null||me.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Ie==null||Ie.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Ee==null||Ee.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',pe==null||pe.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Le==null||Le.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Ge==null||Ge.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Qe==null||Qe.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Oe==null||Oe.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',ze==null||ze.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',hn==null||hn.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',pn==null||pn.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',jn==null||jn.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',mn==null||mn.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',un==null||un.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',He==null||He.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Ue==null||Ue.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',_e==null||_e.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Re==null||Re.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Pe==null||Pe.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',ee==null||ee.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',q==null||q.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Y==null||Y.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',H==null||H.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',ke==null||ke.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',we==null||we.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Xe==null||Xe.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Cn==null||Cn.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Ln==null||Ln.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Pn==null||Pn.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',Rn==null||Rn.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+='
',vn==null||vn.forEach(function(Ae){te+=Ae+"
"}),te+="
",te+="
",te+="
",te+="
",te+="
= Idle Messages =

",te+="

Idle Messages (Hold):

",$e==null||$e.forEach(function(Ae){te+=Ae+"
"}),te+="


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

",rn==null||rn.forEach(function(Ae){te+=Ae+"
"}),te+="


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

",Fe==null||Fe.forEach(function(Ae){te+=Ae+"
"}),te+="


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

",xn==null||xn.forEach(function(Ae){te+=Ae+"
"}),te+="


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

",Ft==null||Ft.forEach(function(Ae){te+=Ae+"
"}),te+="


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

",kn==null||kn.forEach(function(Ae){te+=Ae+"
"}),te+="


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

",_n==null||_n.forEach(function(Ae){te+=Ae+"
"}),te+="


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

",tt==null||tt.forEach(function(Ae){te+=Ae+"
"}),te+="


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

",dt==null||dt.forEach(function(Ae){te+=Ae+"
"}),te+="


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

",Tt==null||Tt.forEach(function(Ae){te+=Ae+"
"}),te+="


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

",Fn==null||Fn.forEach(function(Ae){te+=Ae+"
"}),te+="


",te+="


",te+="
",te+='
',te+='
',te+='

',te+='

",te+='
',te+='
',te+='
    ',te+='
  • Can Taste: '+(_?'Yes':'No')+"
  • ",te+='
  • Contaminates: '+(D?'Yes':'No')+"
  • ",te+='
  • Contamination Flavor: '+b+"
  • ",te+='
  • Contamination Color: '+T+"
  • ",te+='
  • Nutritional Gain: '+R+"%
  • ",te+='
  • Required Examine Size: '+L*100+"%
  • ",te+='
  • Display Absorbed Examines: '+(W?'True':'False')+"
  • ",te+='
  • Save Digest Mode: '+($?'True':'False')+"
  • ",te+='
  • Idle Emotes: '+(F?'Active':'Inactive')+"
  • ",te+='
  • Idle Emote Delay: '+k+" seconds
  • ",te+='
  • Shrink/Grow Size: '+X*100+"%
  • ",te+='
  • Egg Type: '+G+"
  • ",te+='
  • Selective Mode Preference: '+ne+"
  • ",te+="
",te+="
",te+='
',te+='

',te+='

",te+='
',te+='
',te+='
    ',te+='
  • Fleshy Belly: '+(sr?'Yes':'No')+"
  • ",te+='
  • Internal Loop: '+(Jo?'Yes':'No')+"
  • ",te+='
  • Use Fancy Sounds: '+(qo?'Yes':'No')+"
  • ",te+='
  • Vore Sound: '+ei+"
  • ",te+='
  • Release Sound: '+go+"
  • ",te+="
",te+="
",te+='
',te+='

',te+='

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

',te+='

",te+='
',te+='
',te+="Belly Interactions ("+(jo?'Enabled':'Disabled')+")",te+='
    ',te+='
  • Escape Chance: '+Yi+"%
  • ",te+='
  • Escape Chance: '+Rt+"%
  • ",te+='
  • Escape Time: '+Eo/10+"s
  • ",te+='
  • Transfer Chance: '+Mr+"%
  • ",te+='
  • Transfer Location: '+vt+"
  • ",te+='
  • Secondary Transfer Chance: '+xt+"%
  • ",te+='
  • Secondary Transfer Location: '+lr+"
  • ",te+='
  • Absorb Chance: '+Ir+"%
  • ",te+='
  • Digest Chance: '+Co+"%
  • ",te+="
",te+="
",te+="
",te}},65881:function(O,m,n){"use strict";n.r(m),n.d(m,{GetAddons:function(){return i}});var e=n(26222),i=function(t){var r=[];return t==null||t.forEach(function(s){r.push(''+s+"")}),r.length===0&&r.push("No Addons Set"),r}},44887:function(O,m,n){"use strict";n.r(m),n.d(m,{downloadPrefs:function(){return r}});var e=n(7081),i=n(18228),t=n(95679),r=function(s){var p=(0,e.Oc)(),x=p.act,d=p.data,o=d.db_version,c=d.db_repo,a=d.mob_name,l=d.bellies,f=(0,t.getCurrentTimestamp)(),h=a+f+s,v;if(s===".html"){var j="";v=new Blob([''+l.length+" Exported Bellies (DB_VER: "+c+"-"+o+')'+j+'

Bellies of '+a+'

Generated on: '+f+'

'],{type:"text/html;charset=utf8"}),l.forEach(function(E,y){v=new Blob([v,(0,i.generateBellyString)(E,y)],{type:"text/html;charset=utf8"})}),v=new Blob([v,"
",'