b.length)&&(I=b.length);for(var O=0,_=new Array(I);O=b.length?{done:!0}:{done:!1,value: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 g=(0,n.h)("hotkeys"),x={},f=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],m={},v=[],u=function(b){if(b===16)return"Shift";if(b===17)return"Ctrl";if(b===18)return"Alt";if(b===33)return"Northeast";if(b===34)return"Southeast";if(b===35)return"Southwest";if(b===36)return"Northwest";if(b===37)return"West";if(b===38)return"North";if(b===39)return"East";if(b===40)return"South";if(b===45)return"Insert";if(b===46)return"Delete";if(b>=48&&b<=57||b>=65&&b<=90)return String.fromCharCode(b);if(b>=96&&b<=105)return"Numpad"+(b-96);if(b>=112&&b<=123)return"F"+(b-111);if(b===188)return",";if(b===189)return"-";if(b===190)return"."},h=function(b){var I=String(b);if(I==="Ctrl+F5"||I==="Ctrl+R"){location.reload();return}if(I!=="Ctrl+F"&&!(b.event.defaultPrevented||b.isModifierKey()||f.includes(b.code))){var O=u(b.code);if(O){var _=x[O];if(_)return g.debug("macro",_),Byond.command(_);if(b.isDown()&&!m[O]){m[O]=!0;var D='TguiKeyDown "'+O+'"';return g.debug(D),Byond.command(D)}if(b.isUp()&&m[O]){m[O]=!1;var M='TguiKeyUp "'+O+'"';return g.debug(M),Byond.command(M)}}}},c=function(b){f.push(b)},d=function(b){var I=f.indexOf(b);I>=0&&f.splice(I,1)},p=function(){for(var b=a(Object.keys(m)),I;!(I=b()).done;){var O=I.value;m[O]&&(m[O]=!1,g.log('releasing key "'+O+'"'),Byond.command('TguiKeyUp "'+O+'"'))}},C=function(){Byond.winget("default.*").then(function(b){for(var I={},O=a(Object.keys(b)),_;!(_=O()).done;){var D=_.value,M=D.split("."),A=M[1],R=M[2];A&&R&&(I[A]||(I[A]={}),I[A][R]=b[D])}for(var K=/\\"/g,N=function(Y){return Y.substring(1,Y.length-1).replace(K,'"')},k=a(Object.keys(I)),V;!(V=k()).done;){var F=V.value,J=I[F],H=N(J.name);x[H]=N(J.command)}g.debug("loaded macros",x)}),s.Nh.on("window-blur",function(){p()}),s.Nh.on("key",function(b){for(var I=a(v),O;!(O=I()).done;){var _=O.value;_(b)}h(b)})},j=function(b){v.push(b);var I=!1;return function(){I||(I=!0,v.splice(v.indexOf(b),1))}}},15454:function(P,y,t){"use strict";t.r(y),t.d(y,{AICard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.has_ai,v=f.integrity,u=f.backup_capacitor,h=f.flushing,c=f.has_laws,d=f.laws,p=f.wireless,C=f.radio;if(m===0)return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Stored AI",children:(0,e.jsx)(n.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})});var j=null;v>=75?j="green":v>=25?j="yellow":j="red";var b=null;return u>=75&&(b="green"),u>=25?b="yellow":b="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.wn,{title:"Stored AI",children:[(0,e.jsx)(n.az,{bold:!0,display:"inline-block",children:(0,e.jsx)("h3",{children:name})}),(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:j,value:v/100})}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.z2,{color:b,value:u/100})})]})}),(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h2",{children:h===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(n.wn,{title:"Laws",children:!!c&&(0,e.jsx)(n.az,{children:d.map(function(I,O){return(0,e.jsx)(n.az,{display:"inline-block",children:I},O)})})||(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(n.wn,{title:"Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(n.$n,{icon:p?"check":"times",content:p?"Enabled":"Disabled",color:p?"green":"red",onClick:function(){return x("wireless")}})}),(0,e.jsx)(n.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(n.$n,{icon:C?"check":"times",content:C?"Enabled":"Disabled",color:C?"green":"red",onClick:function(){return x("radio")}})}),(0,e.jsx)(n.Ki.Item,{label:"AI Power",children:(0,e.jsx)(n.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:h||v===0,confirmColor:"red",content:"Shutdown",onClick:function(){return x("wipe")}})})]})})]})})}},85866:function(P,y,t){"use strict";t.r(y),t.d(y,{APC:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(13221),a=t(15665),g=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=(0,e.jsx)(m,{});return p.gridCheck?C=(0,e.jsx)(v,{}):p.failTime&&(C=(0,e.jsx)(u,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},x={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},f={1:{icon:"terminal",content:"Override Programming",action:"hack"}},m=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=p.locked&&!p.siliconUser,j=p.normallyLocked,b=x[p.externalPower]||x[0],I=x[p.chargingStatus]||x[0],O=p.powerChannels||[],_=p.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{deny:p.emagged,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(n.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main Breaker",color:b.color,buttons:(0,e.jsx)(n.$n,{icon:p.isOperating?"power-off":"times",content:p.isOperating?"On":"Off",selected:p.isOperating&&!C,color:p.isOperating?"":"bad",disabled:C,onClick:function(){return d("breaker")}}),children:["[ ",b.externalPowerText," ]"]}),(0,e.jsx)(n.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(n.z2,{color:"good",value:_})}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",color:I.color,buttons:(0,e.jsx)(n.$n,{icon:p.chargeMode?"sync":"times",content:p.chargeMode?"Auto":"Off",selected:p.chargeMode,disabled:C,onClick:function(){return d("charge")}}),children:["[ ",I.chargingText," ]"]})]})}),(0,e.jsx)(n.wn,{title:"Power Channels",children:(0,e.jsxs)(n.Ki,{children:[O.map(function(D){var M=D.topicParams;return(0,e.jsxs)(n.Ki.Item,{label:D.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{inline:!0,mx:2,color:D.status>=2?"good":"bad",children:D.status>=2?"On":"Off"}),(0,e.jsx)(n.$n,{icon:"sync",content:"Auto",selected:!C&&(D.status===1||D.status===3),disabled:C,onClick:function(){return d("channel",M.auto)}}),(0,e.jsx)(n.$n,{icon:"power-off",content:"On",selected:!C&&D.status===2,disabled:C,onClick:function(){return d("channel",M.on)}}),(0,e.jsx)(n.$n,{icon:"times",content:"Off",selected:!C&&D.status===0,disabled:C,onClick:function(){return d("channel",M.off)}})]}),children:[D.powerLoad," W"]},D.title)}),(0,e.jsx)(n.Ki.Item,{label:"Total Load",children:p.totalCharging?(0,e.jsxs)("b",{children:[p.totalLoad," W (+ ",p.totalCharging," W charging)"]}):(0,e.jsxs)("b",{children:[p.totalLoad," W"]})})]})}),(0,e.jsx)(n.wn,{title:"Misc",buttons:!!p.siliconUser&&(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Overload",onClick:function(){return d("overload")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(n.$n,{icon:p.coverLocked?"lock":"unlock",content:p.coverLocked?"Engaged":"Disengaged",selected:p.coverLocked,disabled:C,onClick:function(){return d("cover")}})}),(0,e.jsx)(n.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Disabled",selected:p.nightshiftSetting===2,onClick:function(){return d("nightshift",{nightshift:2})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Automatic",selected:p.nightshiftSetting===1,onClick:function(){return d("nightshift",{nightshift:1})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Enabled",selected:p.nightshiftSetting===3,onClick:function(){return d("nightshift",{nightshift:3})}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:p.emergencyLights?"Enabled":"Disabled",selected:p.emergencyLights,onClick:function(){return d("emergency_lighting")}})})]})})]})},v=function(h){return(0,e.jsxs)(i.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(n.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},u=function(h){var c=(0,s.Oc)(),d=c.data,p=c.act,C=(0,e.jsx)(n.$n,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return p("reboot")}});return d.locked&&!d.siliconUser&&(C=(0,e.jsx)(n.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(n.az,{color:"good",children:["Automatic reboot in ",d.failTime," seconds..."]}),(0,e.jsx)(n.az,{mt:4,children:C})]})}},95054:function(P,y,t){"use strict";t.r(y),t.d(y,{AccountsTerminal:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.id_inserted,d=h.id_card,p=h.access_level,C=h.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)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Machine",color:"average",children:C}),(0,e.jsx)(n.Ki.Item,{label:"ID",children:(0,e.jsx)(n.$n,{icon:c?"eject":"sign-in-alt",fluid:!0,content:d,onClick:function(){return u("insert_card")}})})]})}),p>0&&(0,e.jsx)(a,{})]})})},a=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.creating_new_account,d=h.detailed_account_view;return(0,e.jsxs)(n.wn,{title:"Menu",children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:!c&&!d,icon:"home",onClick:function(){return u("view_accounts_list")},children:"Home"}),(0,e.jsx)(n.tU.Tab,{selected:c,icon:"cog",onClick:function(){return u("create_account")},children:"New Account"}),c?"":(0,e.jsx)(n.tU.Tab,{disabled:c,icon:"print",onClick:function(){return u("print")},children:"Print"})]}),c&&(0,e.jsx)(g,{})||d&&(0,e.jsx)(x,{})||(0,e.jsx)(f,{})]})},g=function(m){var v=(0,s.Oc)().act,u=(0,s.QY)("holder",""),h=u[0],c=u[1],d=(0,s.QY)("money",""),p=d[0],C=d[1];return(0,e.jsxs)(n.wn,{title:"Create Account",level:2,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(n.pd,{value:h,fluid:!0,onInput:function(j,b){return c(b)}})}),(0,e.jsx)(n.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(n.pd,{value:p,fluid:!0,onInput:function(j,b){return C(b)}})})]}),(0,e.jsx)(n.$n,{disabled:!h||!p,mt:1,fluid:!0,icon:"plus",onClick:function(){return v("finalise_create_account",{holder_name:h,starting_funds:p})},content:"Create"})]})},x=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.access_level,d=h.station_account_number,p=h.account_number,C=h.owner_name,j=h.money,b=h.suspended,I=h.transactions;return(0,e.jsxs)(n.wn,{title:"Account Details",level:2,buttons:(0,e.jsx)(n.$n,{icon:"ban",selected:b,content:"Suspend",onClick:function(){return u("toggle_suspension")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Account Number",children:["#",p]}),(0,e.jsx)(n.Ki.Item,{label:"Holder",children:C}),(0,e.jsxs)(n.Ki.Item,{label:"Balance",children:[j,"\u20AE"]}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:b?"bad":"good",children:b?"SUSPENDED":"Active"})]}),(0,e.jsx)(n.wn,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payroll",children:(0,e.jsx)(n.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:p===d,onClick:function(){return u("revoke_payroll")}})})})}),c>=2&&(0,e.jsxs)(n.wn,{title:"Silent Funds Transfer",level:2,children:[(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("add_funds")},content:"Add Funds"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("remove_funds")},content:"Remove Funds"})]}),(0,e.jsx)(n.wn,{title:"Transactions",level:2,mt:1,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(n.XI.Cell,{children:"Target"}),(0,e.jsx)(n.XI.Cell,{children:"Reason"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Terminal"})]}),I.map(function(O,_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{children:[O.date," ",O.time]}),(0,e.jsx)(n.XI.Cell,{children:O.target_name}),(0,e.jsx)(n.XI.Cell,{children:O.purpose}),(0,e.jsxs)(n.XI.Cell,{children:[O.amount,"\u20AE"]}),(0,e.jsx)(n.XI.Cell,{children:O.source_terminal})]},_)})]})})]})},f=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.accounts;return(0,e.jsx)(n.wn,{title:"NanoTrasen Accounts",level:2,children:c.length&&(0,e.jsx)(n.Ki,{children:c.map(function(d){return(0,e.jsx)(n.Ki.Item,{label:d.owner_name+d.suspended,color:d.suspended?"bad":null,children:(0,e.jsx)(n.$n,{fluid:!0,content:"#"+d.account_number,onClick:function(){return u("view_account_detail",{account_index:d.account_index})}})},d.account_index)})})||(0,e.jsx)(n.az,{color:"bad",children:"There are no accounts available."})})}},12704:function(P,y,t){"use strict";t.r(y),t.d(y,{AdminShuttleController:function(){return a},ShuttleList:function(){return g}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(){return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.shuttles,c=u.overmap_ships;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsx)(r.wn,{title:"Classic Shuttles",children:(0,e.jsx)(r.XI,{children:(0,s.Ul)(function(d){return d.name})(h).map(function(d){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"JMP",onClick:function(){return v("adminobserve",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"Fly",onClick:function(){return v("classicmove",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:d.name}),(0,e.jsx)(r.XI.Cell,{children:d.current_location}),(0,e.jsx)(r.XI.Cell,{children:x(d.status)})]},d.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,s.Ul)(function(d){var p;return((p=d.name)==null?void 0:p.toLowerCase())||d.name||d.ref})(c).map(function(d){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"JMP",onClick:function(){return v("adminobserve",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"Control",onClick:function(){return v("overmap_control",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:d.name})]},d.ref)})})})]})},x=function(f){switch(f){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},61633:function(P,y,t){"use strict";t.r(y),t.d(y,{AdminTicketPanel:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.id,u=m.title,h=m.name,c=m.state,d=m.opened_at,p=m.closed_at,C=m.opened_at_date,j=m.closed_at_date,b=m.actions,I=m.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Rename Ticket",onClick:function(){return f("retitle")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return f("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Admin Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:i[c]}),i[c]===i.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[C," (",Math.round(d/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[j," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return f("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(I).map(function(O,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:I[O]}},_)})})]})})})})}},43587:function(P,y,t){"use strict";t.r(y),t.d(y,{AgentCard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.entries,v=f.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)(n.wn,{title:"Info",children:(0,e.jsx)(n.XI,{children:m.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:function(){return x(u.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsx)(n.XI.Cell,{children:u.value})]},u.name)})})}),(0,e.jsx)(n.wn,{title:"Electronic Warfare",children:(0,e.jsx)(n.$n.Checkbox,{checked:v,content:v?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return x("electronic_warfare")}})})]})})}},56307:function(P,y,t){"use strict";t.r(y),t.d(y,{AiAirlock:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=i[m.power.main]||i[0],u=i[m.power.backup]||i[0],h=i[m.shock]||i[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main",color:v.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!m.power.main,content:"Disrupt",onClick:function(){return f("disrupt-main")}}),children:[m.power.main?"Online":"Offline"," ",(!m.wires.main_1||!m.wires.main_2)&&"[Wires have been cut!]"||m.power.main_timeleft>0&&"["+m.power.main_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Backup",color:u.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!m.power.backup,content:"Disrupt",onClick:function(){return f("disrupt-backup")}}),children:[m.power.backup?"Online":"Offline"," ",(!m.wires.backup_1||!m.wires.backup_2)&&"[Wires have been cut!]"||m.power.backup_timeleft>0&&"["+m.power.backup_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Electrify",color:h.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"wrench",disabled:!(m.wires.shock&&m.shock===0),content:"Restore",onClick:function(){return f("shock-restore")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!m.wires.shock,content:"Temporary",onClick:function(){return f("shock-temp")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!m.wires.shock,content:"Permanent",onClick:function(){return f("shock-perm")}})]}),children:[m.shock===2?"Safe":"Electrified"," ",!m.wires.shock&&"[Wires have been cut!]"||m.shock_timeleft>0&&"["+m.shock_timeleft+"s]"||m.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.jsx)(n.wn,{title:"Access and Door Control",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.id_scanner?"power-off":"times",content:m.id_scanner?"Enabled":"Disabled",selected:m.id_scanner,disabled:!m.wires.id_scanner,onClick:function(){return f("idscan-toggle")}}),children:!m.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.locked?"lock":"unlock",content:m.locked?"Lowered":"Raised",selected:m.locked,disabled:!m.wires.bolts,onClick:function(){return f("bolt-toggle")}}),children:!m.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.lights?"power-off":"times",content:m.lights?"Enabled":"Disabled",selected:m.lights,disabled:!m.wires.lights,onClick:function(){return f("light-toggle")}}),children:!m.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.safe?"power-off":"times",content:m.safe?"Enabled":"Disabled",selected:m.safe,disabled:!m.wires.safe,onClick:function(){return f("safe-toggle")}}),children:!m.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.speed?"power-off":"times",content:m.speed?"Enabled":"Disabled",selected:m.speed,disabled:!m.wires.timing,onClick:function(){return f("speed-toggle")}}),children:!m.wires.timing&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.opened?"sign-out-alt":"sign-in-alt",content:m.opened?"Open":"Closed",selected:m.opened,disabled:m.locked||m.welded,onClick:function(){return f("open-close")}}),children:!!(m.locked||m.welded)&&(0,e.jsxs)("span",{children:["[Door is ",m.locked?"bolted":"",m.locked&&m.welded?" and ":"",m.welded?"welded":"","!]"]})})]})})]})})}},43108:function(P,y,t){"use strict";t.r(y),t.d(y,{AiRestorer:function(){return i},AiRestorerContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.AI_present,u=m.error,h=m.name,c=m.laws,d=m.isDead,p=m.restoring,C=m.health,j=m.ejectable;return(0,e.jsxs)(e.Fragment,{children:[u&&(0,e.jsx)(n.IC,{textAlign:"center",children:u}),!!j&&(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:v?h:"----------",disabled:!v,onClick:function(){return f("PRG_eject")}}),!!v&&(0,e.jsxs)(n.wn,{title:j?"System Status":h,buttons:(0,e.jsx)(n.az,{inline:!0,bold:!0,color:d?"bad":"good",children:d?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{value:C,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!p&&(0,e.jsx)(n.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return f("PRG_beginReconstruction")}}),(0,e.jsx)(n.wn,{title:"Laws",level:2,children:c.map(function(b){return(0,e.jsx)(n.az,{className:"candystripe",children:b},b)})})]})]})}},75160:function(P,y,t){"use strict";t.r(y),t.d(y,{AiSupermatter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(13221),a=function(f){var m=(0,s.Oc)().data,v=m.integrity_percentage,u=m.ambient_temp,h=m.ambient_pressure,c=m.detonating,d=(0,e.jsx)(x,{});return c&&(d=(0,e.jsx)(g,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:d})})},g=function(f){return(0,e.jsx)(i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(n.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(n.az,{color:"bad",children:"Evacuate area immediately"})]})})},x=function(f){var m=(0,s.Oc)().data,v=m.integrity_percentage,u=m.ambient_temp,h=m.ambient_pressure;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(n.z2,{value:v,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(n.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(n.z2,{value:u,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[u," K"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Environment Pressure",children:[h," kPa"]})]})})}},42537:function(P,y,t){"use strict";t.r(y),t.d(y,{AirAlarm:function(){return m}});var e=t(88095),s=t(5229),n=t(44583),r=t(4413),i=t(92514),a=t(1568),g=t(84905),x=t(10652),f=t(15665),m=function(I){var O=function(V){K(V)},_=(0,r.Oc)(),D=_.act,M=_.data,A=(0,n.useState)(""),R=A[0],K=A[1],N=M.locked&&!M.siliconUser&&!M.remoteUser;return(0,e.jsx)(g.p8,{width:440,height:650,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsx)(f.InterfaceLockNoticeBox,{}),(0,e.jsx)(v,{}),(0,e.jsx)(u,{}),!N&&(0,e.jsx)(c,{screen:R,onScreen:O})]})})},v=function(I){var O=(0,r.Oc)().data,_=(O.environment_data||[]).filter(function(A){return A.value>=.01}),D={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},M=D[O.danger_level]||D[0];return(0,e.jsx)(i.wn,{title:"Air Status",children:(0,e.jsxs)(i.Ki,{children:[_.length>0&&(0,e.jsxs)(e.Fragment,{children:[_.map(function(A){var R=D[A.danger_level]||D[0];return(0,e.jsxs)(i.Ki.Item,{label:(0,a.wM)(A.name),color:R.color,children:[(0,s.Mg)(A.value,2),A.unit]},A.name)}),(0,e.jsx)(i.Ki.Item,{label:"Local status",color:M.color,children:M.localStatusText}),(0,e.jsx)(i.Ki.Item,{label:"Area status",color:O.atmos_alarm||O.fire_alarm?"bad":"good",children:O.atmos_alarm&&"Atmosphere Alarm"||O.fire_alarm&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!O.emagged&&(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},u=function(I){var O=(0,r.Oc)(),_=O.act,D=O.data,M=D.target_temperature,A=D.rcon;return(0,e.jsx)(i.wn,{title:"Comfort Settings",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(i.$n,{selected:A===1,content:"Off",onClick:function(){return _("rcon",{rcon:1})}}),(0,e.jsx)(i.$n,{selected:A===2,content:"Auto",onClick:function(){return _("rcon",{rcon:2})}}),(0,e.jsx)(i.$n,{selected:A===3,content:"On",onClick:function(){return _("rcon",{rcon:3})}})]}),(0,e.jsx)(i.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(i.$n,{content:M,onClick:function(){return _("temperature")}})})]})})},h={home:{title:"Air Controls",component:function(){return d}},vents:{title:"Vent Controls",component:function(){return p}},scrubbers:{title:"Scrubber Controls",component:function(){return C}},modes:{title:"Operating Mode",component:function(){return j}},thresholds:{title:"Alarm Thresholds",component:function(){return b}}},c=function(I){var O=h[I.screen]||h.home,_=O.component();return(0,e.jsx)(i.wn,{title:O.title,buttons:I.screen&&(0,e.jsx)(i.$n,{icon:"arrow-left",content:"Back",onClick:function(){return I.onScreen()}}),children:(0,e.jsx)(_,{onScreen:I.onScreen})})},d=function(I){var O=(0,r.Oc)(),_=O.act,D=O.data,M=D.mode,A=D.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:A?"exclamation-triangle":"exclamation",color:A&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return _(A?"reset":"alarm")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:M===3?"exclamation-triangle":"exclamation",color:M===3&&"danger",content:"Panic Siphon",onClick:function(){return _("mode",{mode:M===3?1:3})}}),(0,e.jsx)(i.az,{mt:2}),(0,e.jsx)(i.$n,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return I.onScreen("vents")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"filter",content:"Scrubber Controls",onClick:function(){return I.onScreen("scrubbers")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"cog",content:"Operating Mode",onClick:function(){return I.onScreen("modes")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return I.onScreen("thresholds")}})]})},p=function(I){var O=(0,r.Oc)().data,_=O.vents;return!_||_.length===0?"Nothing to show":_.map(function(D){return(0,e.jsx)(x.Vent,{vent:D},D.id_tag)})},C=function(I){var O=(0,r.Oc)().data,_=O.scrubbers;return!_||_.length===0?"Nothing to show":_.map(function(D){return(0,e.jsx)(x.Scrubber,{scrubber:D},D.id_tag)})},j=function(I){var O=(0,r.Oc)(),_=O.act,D=O.data,M=D.modes;return!M||M.length===0?"Nothing to show":M.map(function(A){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsx)(i.$n,{icon:A.selected?"check-square-o":"square-o",selected:A.selected,color:A.selected&&A.danger&&"danger",content:A.name,onClick:function(){return _("mode",{mode:A.mode})}}),(0,e.jsx)(i.az,{mt:1})]},A.mode)})},b=function(I){var O=(0,r.Oc)(),_=O.act,D=O.data,M=D.thresholds;return(0,e.jsxs)("table",{className:"LabeledList",style:{width:"100%"},children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{}),(0,e.jsx)("td",{className:"color-bad",children:"min2"}),(0,e.jsx)("td",{className:"color-average",children:"min1"}),(0,e.jsx)("td",{className:"color-average",children:"max1"}),(0,e.jsx)("td",{className:"color-bad",children:"max2"})]})}),(0,e.jsx)("tbody",{children:M.map(function(A){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,a.b_)(A.name),children:(0,a.wM)(A.name)})}),A.settings.map(function(R){return(0,e.jsx)("td",{children:(0,e.jsx)(i.$n,{content:(0,s.Mg)(R.selected,2),onClick:function(){return _("threshold",{env:R.env,var:R.val})}})},R.val)})]},A.name)})})]})}},63397:function(P,y,t){"use strict";t.r(y),t.d(y,{AlertModal:function(){return m}});var e=t(88095),s=t(44583),n=t(61652),r=t(4413),i=t(92514),a=t(84905),g=t(18513),x=-1,f=1,m=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.autofocus,j=p.buttons,b=j===void 0?[]:j,I=p.large_buttons,O=p.message,_=O===void 0?"":O,D=p.timeout,M=p.title,A=(0,s.useState)(0),R=A[0],K=A[1],N=115+(_.length>30?Math.ceil(_.length/4):0)+(_.length&&I?5:0),k=325+(b.length>2?55:0),V=function(F){R===0&&F===x?K(b.length-1):R===b.length-1&&F===f?K(0):K(R+F)};return(0,e.jsxs)(a.p8,{height:N,title:M,width:k,children:[!!D&&(0,e.jsx)(g.Loader,{value:D}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(F){var J=window.event?F.which:F.keyCode;J===n.iy||J===n.Ri?d("choose",{choice:b[R]}):J===n.s6?d("cancel"):J===n.iU?(F.preventDefault(),V(x)):(J===n.aW||J===n.zh)&&(F.preventDefault(),V(f))},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(i.az,{color:"label",overflow:"hidden",children:_})}),(0,e.jsxs)(i.BJ.Item,{children:[!!C&&(0,e.jsx)(i.y5,{}),(0,e.jsx)(v,{selected:R})]})]})})})]})},v=function(h){var c=(0,r.Oc)().data,d=c.buttons,p=d===void 0?[]:d,C=c.large_buttons,j=c.swapped_buttons,b=h.selected;return(0,e.jsx)(i.so,{align:"center",direction:j?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:p==null?void 0:p.map(function(I,O){return C&&p.length<3?(0,e.jsx)(i.so.Item,{grow:!0,children:(0,e.jsx)(u,{button:I,id:O.toString(),selected:b===O})},O):(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(u,{button:I,id:O.toString(),selected:b===O})},O)})})},u=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.large_buttons,j=h.button,b=h.selected,I=j.length>7?j.length:7;return(0,e.jsx)(i.$n,{fluid:!!C,height:!!C&&2,onClick:function(){return d("choose",{choice:j})},m:.5,pl:2,pr:2,pt:C?.33:0,selected:b,textAlign:"center",width:!C&&I,children:C?j.toUpperCase():j})}},140:function(P,y,t){"use strict";t.r(y),t.d(y,{AlgaeFarm:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.usePower,u=m.materials,h=m.last_flow_rate,c=m.last_power_draw,d=m.inputDir,p=m.outputDir,C=m.input,j=m.output,b=m.errorText;return(0,e.jsx)(i.p8,{width:500,height:300,children:(0,e.jsxs)(i.p8.Content,{children:[b&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:"Processing",selected:v===2,onClick:function(){return f("toggle")}}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[h," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[c," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),u.map(function(I){return(0,e.jsxs)(r.Ki.Item,{label:(0,s.ZH)(I.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:I.qty,maxValue:I.max,children:[I.qty,"/",I.max]}),(0,e.jsx)(r.$n,{ml:1,content:"Eject",onClick:function(){return f("ejectMaterial",{mat:I.name})}})]},I.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 ("+d+")",children:C?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:C.name,children:[C.percent,"% (",C.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Output ("+p+")",children:j?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[j.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:j.name,children:[j.percent,"% (",j.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},14600:function(P,y,t){"use strict";t.r(y),t.d(y,{AppearanceChanger:function(){return x}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(84905),x=function(j){var b=(0,i.Oc)(),I=b.act,O=b.config,_=b.data,D=_.name,M=_.specimen,A=_.gender,R=_.gender_id,K=_.hair_style,N=_.facial_hair_style,k=_.ear_style,V=_.tail_style,F=_.wing_style,J=_.markings,H=_.change_race,Y=_.change_gender,Z=_.change_eye_color,X=_.change_skin_tone,z=_.change_skin_color,Q=_.change_hair_color,ee=_.change_facial_hair_color,oe=_.change_hair,ne=_.change_facial_hair,ue=_.mapRef,ce=O.title,me=Z||X||z||Q||ee,xe=-1;H?xe=0:Y?xe=1:me?xe=2:oe?xe=4:ne&&(xe=5);var ve=(0,r.useState)(xe),be=ve[0],we=ve[1];return(0,e.jsx)(g.p8,{width:700,height:650,title:(0,n.jT)(ce),children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(a.wn,{title:"Reflection",children:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Name",children:D}),(0,e.jsx)(a.Ki.Item,{label:"Species",color:H?null:"grey",children:M}),(0,e.jsx)(a.Ki.Item,{label:"Biological Sex",color:Y?null:"grey",children:A?(0,n.ZH)(A):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Gender Identity",color:me?null:"grey",children:R?(0,n.ZH)(R):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Hair Style",color:oe?null:"grey",children:K?(0,n.ZH)(K):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Facial Hair Style",color:ne?null:"grey",children:N?(0,n.ZH)(N):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Ear Style",color:oe?null:"grey",children:k?(0,n.ZH)(k):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Tail Style",color:oe?null:"grey",children:V?(0,n.ZH)(V):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Wing Style",color:oe?null:"grey",children:F?(0,n.ZH)(F):"Not Set"})]})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.D1,{style:{width:"256px",height:"256px"},params:{id:ue,type:"map"}})})]})}),(0,e.jsxs)(a.tU,{children:[H?(0,e.jsx)(a.tU.Tab,{selected:be===0,onClick:function(){return we(0)},children:"Race"}):null,Y?(0,e.jsx)(a.tU.Tab,{selected:be===1,onClick:function(){return we(1)},children:"Gender & Sex"}):null,me?(0,e.jsx)(a.tU.Tab,{selected:be===2,onClick:function(){return we(2)},children:"Colors"}):null,oe?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.tU.Tab,{selected:be===3,onClick:function(){return we(3)},children:"Hair"}),(0,e.jsx)(a.tU.Tab,{selected:be===5,onClick:function(){return we(5)},children:"Ear"}),(0,e.jsx)(a.tU.Tab,{selected:be===6,onClick:function(){return we(6)},children:"Tail"}),(0,e.jsx)(a.tU.Tab,{selected:be===7,onClick:function(){return we(7)},children:"Wing"}),(0,e.jsx)(a.tU.Tab,{selected:be===8,onClick:function(){return we(8)},children:"Markings"})]}):null,ne?(0,e.jsx)(a.tU.Tab,{selected:be===4,onClick:function(){return we(4)},children:"Facial Hair"}):null]}),(0,e.jsxs)(a.az,{height:"43%",children:[H&&be===0?(0,e.jsx)(f,{}):null,Y&&be===1?(0,e.jsx)(m,{}):null,me&&be===2?(0,e.jsx)(v,{}):null,oe&&be===3?(0,e.jsx)(u,{}):null,ne&&be===4?(0,e.jsx)(h,{}):null,oe&&be===5?(0,e.jsx)(c,{}):null,oe&&be===6?(0,e.jsx)(d,{}):null,oe&&be===7?(0,e.jsx)(p,{}):null,oe&&be===8?(0,e.jsx)(C,{}):null]})]})})},f=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.species,D=O.specimen,M=(0,s.Ul)(function(A){return A.specimen})(_||[]);return(0,e.jsx)(a.wn,{title:"Species",fill:!0,scrollable:!0,children:M.map(function(A){return(0,e.jsx)(a.$n,{content:A.specimen,selected:D===A.specimen,onClick:function(){return I("race",{race:A.specimen})}},A.specimen)})})},m=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.gender,D=O.gender_id,M=O.genders,A=O.id_genders;return(0,e.jsx)(a.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Biological Sex",children:M.map(function(R){return(0,e.jsx)(a.$n,{selected:R.gender_key===_,content:R.gender_name,onClick:function(){return I("gender",{gender:R.gender_key})}},R.gender_key)})}),(0,e.jsx)(a.Ki.Item,{label:"Gender Identity",children:A.map(function(R){return(0,e.jsx)(a.$n,{selected:R.gender_key===D,content:R.gender_name,onClick:function(){return I("gender_id",{gender_id:R.gender_key})}},R.gender_key)})})]})})},v=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.change_eye_color,D=O.change_skin_tone,M=O.change_skin_color,A=O.change_hair_color,R=O.change_facial_hair_color,K=O.eye_color,N=O.skin_color,k=O.hair_color,V=O.facial_hair_color,F=O.ears_color,J=O.ears2_color,H=O.tail_color,Y=O.tail2_color,Z=O.wing_color,X=O.wing2_color;return(0,e.jsxs)(a.wn,{title:"Colors",fill:!0,scrollable:!0,children:[_?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:K,mr:1}),(0,e.jsx)(a.$n,{content:"Change Eye Color",onClick:function(){return I("eye_color")}})]}):null,D?(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{content:"Change Skin Tone",onClick:function(){return I("skin_tone")}})}):null,M?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:N,mr:1}),(0,e.jsx)(a.$n,{content:"Change Skin Color",onClick:function(){return I("skin_color")}})]}):null,A?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:k,mr:1}),(0,e.jsx)(a.$n,{content:"Change Hair Color",onClick:function(){return I("hair_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:F,mr:1}),(0,e.jsx)(a.$n,{content:"Change Ears Color",onClick:function(){return I("ears_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:J,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Ears Color",onClick:function(){return I("ears2_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:H,mr:1}),(0,e.jsx)(a.$n,{content:"Change Tail Color",onClick:function(){return I("tail_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:Y,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Tail Color",onClick:function(){return I("tail2_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:Z,mr:1}),(0,e.jsx)(a.$n,{content:"Change Wing Color",onClick:function(){return I("wing_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:X,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Wing Color",onClick:function(){return I("wing2_color")}})]})]}):null,R?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:V,mr:1}),(0,e.jsx)(a.$n,{content:"Change Facial Hair Color",onClick:function(){return I("facial_hair_color")}})]}):null]})},u=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.hair_style,D=O.hair_styles;return(0,e.jsx)(a.wn,{title:"Hair",fill:!0,scrollable:!0,children:D.map(function(M){return(0,e.jsx)(a.$n,{onClick:function(){return I("hair",{hair:M.hairstyle})},selected:M.hairstyle===_,content:M.hairstyle},M.hairstyle)})})},h=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.facial_hair_style,D=O.facial_hair_styles;return(0,e.jsx)(a.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:D.map(function(M){return(0,e.jsx)(a.$n,{onClick:function(){return I("facial_hair",{facial_hair:M.facialhairstyle})},selected:M.facialhairstyle===_,content:M.facialhairstyle},M.facialhairstyle)})})},c=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.ear_style,D=O.ear_styles;return(0,e.jsxs)(a.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return I("ear",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(M){return M.name.toLowerCase()})(D).map(function(M){return(0,e.jsx)(a.$n,{onClick:function(){return I("ear",{ref:M.instance})},selected:M.name===_,content:M.name},M.instance)})]})},d=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.tail_style,D=O.tail_styles;return(0,e.jsxs)(a.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return I("tail",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(M){return M.name.toLowerCase()})(D).map(function(M){return(0,e.jsx)(a.$n,{onClick:function(){return I("tail",{ref:M.instance})},selected:M.name===_,content:M.name},M.instance)})]})},p=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.wing_style,D=O.wing_styles;return(0,e.jsxs)(a.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return I("wing",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(M){return M.name.toLowerCase()})(D).map(function(M){return(0,e.jsx)(a.$n,{onClick:function(){return I("wing",{ref:M.instance})},selected:M.name===_,content:M.name},M.instance)})]})},C=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.markings;return(0,e.jsxs)(a.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{content:"Add Marking",onClick:function(){return I("marking",{todo:1,name:"na"})}})}),(0,e.jsx)(a.Ki,{children:_.map(function(D){return(0,e.jsxs)(a.Ki.Item,{label:D.marking_name,children:[(0,e.jsx)(a.BK,{color:D.marking_color,mr:1}),(0,e.jsx)(a.$n,{content:"Change Color",onClick:function(){return I("marking",{todo:4,name:D.marking_name})}}),(0,e.jsx)(a.$n,{content:"-",onClick:function(){return I("marking",{todo:0,name:D.marking_name})}}),(0,e.jsx)(a.$n,{content:"Move down",onClick:function(){return I("marking",{todo:3,name:D.marking_name})}}),(0,e.jsx)(a.$n,{content:"Move up",onClick:function(){return I("marking",{todo:2,name:D.marking_name})}})]},D.marking_name)})})]})}},8536:function(P,y,t){"use strict";t.r(y),t.d(y,{ArcadeBattle:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.name,v=f.temp,u=f.enemyAction,h=f.enemyName,c=f.playerHP,d=f.playerMP,p=f.enemyHP,C=f.enemyMP,j=f.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:h,textAlign:"center",children:[(0,e.jsxs)(n.wn,{color:"label",children:[(0,e.jsx)(n.az,{children:v}),(0,e.jsx)(n.az,{children:!j&&u})]}),(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(n.z2,{value:c,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[c,"HP"]})}),(0,e.jsx)(n.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(n.z2,{value:d,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[d,"MP"]})})]})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(n.z2,{value:p,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[p,"HP"]})})})})]}),j&&(0,e.jsx)(n.$n,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return x("newgame")}})||(0,e.jsxs)(n.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return x("attack")},content:"Attack!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return x("heal")},content:"Heal!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return x("charge")},content:"Recharge!"})})]})]})})})}},59854:function(P,y,t){"use strict";t.r(y),t.d(y,{AreaScrubberControl:function(){return g}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=function(f){var m=(0,r.Oc)(),v=m.act,u=m.data,h=(0,n.useState)(!1),c=h[0],d=h[1],p=u.scrubbers;return p?(0,e.jsx)(a.p8,{width:600,height:400,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(i.wn,{children:[(0,e.jsxs)(i.so,{wrap:"wrap",children:[(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return v("scan")}})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:c,onClick:function(){return d(!c)}})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return v("allon")}})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return v("alloff")}})})]}),(0,e.jsx)(i.so,{wrap:"wrap",children:p.map(function(C){return(0,e.jsx)(i.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(x,{scrubber:C,showArea:c})},C.id)})})]})})}):(0,e.jsxs)(i.wn,{title:"Error",children:[(0,e.jsx)(i.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(i.$n,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return v("scan")}})]})},x=function(f){var m=(0,r.Oc)().act,v=f.scrubber,u=f.showArea;return(0,e.jsxs)(i.wn,{title:v.name,children:[(0,e.jsx)(i.$n,{fluid:!0,icon:"power-off",content:v.on?"Enabled":"Disabled",selected:v.on,onClick:function(){return m("toggle",{id:v.id})}}),(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Pressure",children:[v.pressure," kPa"]}),(0,e.jsxs)(i.Ki.Item,{label:"Flow Rate",children:[v.flow_rate," L/s"]}),(0,e.jsxs)(i.Ki.Item,{label:"Load",children:[v.load," W"]}),u&&(0,e.jsx)(i.Ki.Item,{label:"Area",children:(0,s.Sn)(v.area)})]})]})}},20251:function(P,y,t){"use strict";t.r(y),t.d(y,{AssemblyInfrared:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Infrared Unit",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Laser",children:(0,e.jsx)(n.$n,{icon:"power-off",fluid:!0,selected:m,onClick:function(){return x("state")},children:m?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Visibility",children:(0,e.jsx)(n.$n,{icon:"eye",fluid:!0,selected:v,onClick:function(){return x("visible")},children:v?"Able to be seen":"Invisible"})})]})})})})}},54349:function(P,y,t){"use strict";t.r(y),t.d(y,{AssemblyProx:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.timing,h=v.time,c=v.range,d=v.maxRange,p=v.scanning;return(0,e.jsx)(a.p8,{children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:u,onClick:function(){return m("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:h/10,minValue:0,maxValue:600,format:function(C){return(0,i.fU)((0,s.LI)(C))},onDrag:function(C,j){return m("set_time",{time:j})}})})})}),(0,e.jsx)(r.wn,{title:"Prox Unit",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Range",children:(0,e.jsx)(r.Q7,{minValue:1,value:c,maxValue:d,onDrag:function(C,j){return m("range",{range:j})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:p?"lock":"lock-open",selected:p,onClick:function(){return m("scanning")},children:p?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},8327:function(P,y,t){"use strict";t.r(y),t.d(y,{AssemblyTimer:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.timing,h=v.time;return(0,e.jsx)(a.p8,{children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:u,onClick:function(){return m("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:h/10,minValue:0,maxValue:600,format:function(c){return(0,i.fU)((0,s.LI)(c))},onDrag:function(c,d){return m("set_time",{time:d})}})})})})})})}},49775:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosAlertConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.priority_alarms||[],v=f.minor_alarms||[];return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[m.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),m.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:u.name,color:"bad",onClick:function(){return x("clear",{ref:u.ref})}})},u.name)}),v.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),v.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:u.name,color:"average",onClick:function(){return x("clear",{ref:u.ref})}})},u.name)})]})})})})}},42623:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosControl:function(){return f},AtmosControlContent:function(){return m}});var e=t(88095),s=t(11358),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=t(47868),x=(0,g.h)("fuck"),f=function(v){return(0,e.jsx)(a.p8,{width:600,height:440,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=u.config,p=(0,s.Ul)(function(M){return M.name})(c.alarms||[]),C=(0,n.useState)(0),j=C[0],b=C[1],I=(0,n.useState)(1),O=I[0],_=I[1],D;return j===0?D=(0,e.jsx)(i.wn,{title:"Alarms",children:p.map(function(M){return(0,e.jsx)(i.$n,{content:M.name,color:M.danger===2?"bad":M.danger===1?"average":"",onClick:function(){return h("alarm",{alarm:M.ref})}},M.name)})}):j===1&&(D=(0,e.jsx)(i.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(i.tx,{onZoom:function(M){return _(M)},children:p.filter(function(M){return~~M.z===~~d.mapZLevel}).map(function(M){return(0,e.jsx)(i.tx.Marker,{x:M.x,y:M.y,zoom:O,icon:"bell",tooltip:M.name,color:M.danger?"red":"green",onClick:function(){return h("alarm",{alarm:M.ref})}},M.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.tU,{children:[(0,e.jsxs)(i.tU.Tab,{selected:j===0,onClick:function(){return b(0)},children:[(0,e.jsx)(i.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(i.tU.Tab,{selected:j===1,onClick:function(){return b(1)},children:[(0,e.jsx)(i.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(i.az,{m:2,children:D})]})}},45440:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosFilter:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.filter_types||[];return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:f.on?"power-off":"times",content:f.on?"On":"Off",selected:f.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(n.az,{inline:!0,mr:1,children:(0,e.jsx)(n.zv,{value:f.last_flow_rate,format:function(v){return v+" L/s"}})}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(f.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(v,u){return x("rate",{rate:u})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:f.rate===f.max_rate,onClick:function(){return x("rate",{rate:"max"})}})]}),(0,e.jsx)(n.Ki.Item,{label:"Filter",children:m.map(function(v){return(0,e.jsx)(n.$n,{selected:v.selected,content:v.name,onClick:function(){return x("filter",{filterset:v.f_type})}},v.name)})})]})})})})}},15147:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosMixer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:f.on?"power-off":"times",content:f.on?"On":"Off",selected:f.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(f.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:f.max_pressure,step:10,onChange:function(m,v){return x("pressure",{pressure:v})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:f.set_pressure===f.max_pressure,onClick:function(){return x("pressure",{pressure:"max"})}})]}),(0,e.jsx)(n.Ki.Divider,{size:1}),(0,e.jsx)(n.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(n.Ki.Item,{label:"Node 1 ("+f.node1_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:f.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(m,v){return x("node1",{concentration:v})}})}),(0,e.jsx)(n.Ki.Item,{label:"Node 2 ("+f.node2_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:f.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(m,v){return x("node2",{concentration:v})}})})]})})})})}},80281:function(P,y,t){"use strict";t.r(y),t.d(y,{Autolathe:function(){return c}});var e=t(88095),s=t(11358),n=t(28763),r=t(33854),i=t(4413),a=t(92514),g=t(84905),x=t(47926);function f(d,p){(p==null||p>d.length)&&(p=d.length);for(var C=0,j=new Array(p);C=d.length?{done:!0}:{done:!1,value:d[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 h=function(d,p,C){var j=function(){var D=O.value,M=p.find(function(A){return A.name===D});if(!M)return"continue";if(M.amount=0)&&(C[b]=d[b]);return C}var f={Alphabetical:function(d,p){return d.name>p.name},"By availability":function(d,p){return-(d.affordable-p.affordable)},"By price":function(d,p){return d.price-p.price}},m=function(d){var p=function(J){M(J)},C=function(J){K(J)},j=function(J){V(J)},b=(0,r.Oc)(),I=b.act,O=b.data,_=(0,n.useState)(""),D=_[0],M=_[1],A=(0,n.useState)("Alphabetical"),R=A[0],K=A[1],N=(0,n.useState)(!1),k=N[0],V=N[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:O.processing&&(0,e.jsx)(i.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.wn,{children:[O.points," points available.",(0,e.jsx)(i.$n,{ml:1,icon:"blender",onClick:function(){return I("activate")},children:"Activate"}),(0,e.jsx)(i.$n,{ml:1,icon:"eject",disabled:!O.beaker,onClick:function(){return I("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(u,{searchText:D,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:j}),(0,e.jsx)(v,{searchText:D,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:j})]})})})},v=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=j.points,I=j.items,O=(0,s.XZ)(d.searchText,function(M){return M[0]}),_=!1,D=Object.entries(I).map(function(M,A){var R=Object.entries(M[1]).filter(O).map(function(K){return K[1].affordable=b>=K[1].price/j.build_eff,K[1]}).sort(f[d.sortOrder]);if(R.length!==0)return d.descending&&(R=R.reverse()),_=!0,(0,e.jsx)(c,{title:M[0],items:R},M[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:_?D:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(d){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",value:d.searchText,width:"100%",onInput:function(p,C){return d.onSearchText(C)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:d.sortOrder,options:Object.keys(f),width:"100%",lineHeight:"19px",onSelected:function(p){return d.onSortOrder(p)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:d.descending?"arrow-down":"arrow-up",height:"19px",tooltip:d.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return d.onDescending(!d.descending)}})})]})})},h=function(d,p){return!(!d.affordable||d.reagent&&!p.beaker)},c=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=d.title,I=d.items,O=x(d,["title","items"]);return(0,e.jsx)(i.Nt,g({open:!0,title:b},O,{children:I.map(function(_){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:_.name}),(0,e.jsx)(i.$n,{disabled:!h(_,j),content:(_.price/j.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:b,name:_.name})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},_.name)})}))}},90233:function(P,y,t){"use strict";t.r(y),t.d(y,{BodyDesigner:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.menu,j=p.disk,b=p.diskStored,I=p.activeBodyRecord,O=u[C];return(0,e.jsx)(i.p8,{width:400,height:650,children:(0,e.jsxs)(i.p8.Content,{children:[j?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"save",content:"Save To Disk",onClick:function(){return d("savetodisk")},disabled:!I}),(0,e.jsx)(r.$n,{icon:"save",content:"Load From Disk",onClick:function(){return d("loadfromdisk")},disabled:!b}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject",onClick:function(){return d("ejectdisk")}})]}):null,O]})})},g=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data;return(0,e.jsxs)(r.wn,{title:"Database Functions",children:[(0,e.jsx)(r.$n,{icon:"eye",content:"View Individual Body Records",onClick:function(){return d("menu",{menu:"Body Records"})}}),(0,e.jsx)(r.$n,{icon:"eye",content:"View Stock Body Records",onClick:function(){return d("menu",{menu:"Stock Records"})}})]})},x=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.bodyrecords;return(0,e.jsx)(r.wn,{title:"Body Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:C.map(function(j){return(0,e.jsx)(r.$n,{icon:"eye",content:j.name,onClick:function(){return d("view_brec",{view_brec:j.recref})}},j.name)})})},f=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.stock_bodyrecords;return(0,e.jsx)(r.wn,{title:"Stock Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:C.map(function(j){return(0,e.jsx)(r.$n,{icon:"eye",content:j,onClick:function(){return d("view_stock_brec",{view_stock_brec:j})}},j)})})},m=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.activeBodyRecord,j=p.mapRef;return C?(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{basis:"165px",children:(0,e.jsx)(r.wn,{title:"Specific Record",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:C.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:C.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",content:(0,s.ZH)(C.gender),onClick:function(){return d("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:C.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[C.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!C.booc,onClick:function(){return d("boocnotes")}})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:j,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",content:C.scale,onClick:function(){return d("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(C.styles).map(function(b){var I=C.styles[b];return(0,e.jsxs)(r.Ki.Item,{label:b,children:[I.styleHref?(0,e.jsx)(r.$n,{icon:"pen",content:I.style,onClick:function(){return d("href_conversion",{target_href:I.styleHref,target_value:1})}}):null,I.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:I.color,onClick:function(){return d("href_conversion",{target_href:I.colorHref,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:I.color,style:{border:"1px solid #fff"}})]}):null,I.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:I.color2,onClick:function(){return d("href_conversion",{target_href:I.colorHref2,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:I.color2,style:{border:"1px solid #fff"}})]}):null]},b)}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",content:"Add Marking",onClick:function(){return d("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(C.markings).map(function(b){var I=C.markings[b];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 d("href_conversion",{target_href:"marking_remove",target_value:b})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:I,content:b,onClick:function(){return d("href_conversion",{target_href:"marking_color",target_value:b})}})})]})},b)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})},v=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.activeBodyRecord;return(0,e.jsx)(r.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:C&&C.booc||"ERROR: Body record not found!"})},u={Main:(0,e.jsx)(g,{}),"Body Records":(0,e.jsx)(x,{}),"Stock Records":(0,e.jsx)(f,{}),"Specific Record":(0,e.jsx)(m,{}),"OOC Notes":(0,e.jsx)(v,{})}},45922:function(P,y,t){"use strict";t.r(y),t.d(y,{BodyScanner:function(){return h}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["hasBorer","bad",function(D){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(D){return"Viral pathogen detected in blood stream."}],["blind","average",function(D){return"Cataracts detected."}],["colourblind","average",function(D){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(D){return"Retinal misalignment detected."}],["humanPrey","average",function(D){return"Foreign Humanoid(s) detected: "+D.humanPrey}],["livingPrey","average",function(D){return"Foreign Creature(s) detected: "+D.livingPrey}],["objectPrey","average",function(D){return"Foreign Object(s) detected: "+D.objectPrey}]],x=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],f={average:[.25,.5],bad:[.5,1/0]},m=function(D,M){for(var A=[],R=0;R0?D.reduce(function(M,A){return M===null?A:(0,e.jsxs)(e.Fragment,{children:[M,!!A&&(0,e.jsx)(r.az,{children:A})]})}):null},u=function(D){if(D>100){if(D<300)return"mild infection";if(D<400)return"mild infection+";if(D<500)return"mild infection++";if(D<700)return"acute infection";if(D<800)return"acute infection+";if(D<900)return"acute infection++";if(D>=900)return"septic"}return""},h=function(D){var M=(0,n.Oc)().data,A=M.occupied,R=M.occupant,K=R===void 0?{}:R,N=A?(0,e.jsx)(c,{occupant:K}):(0,e.jsx)(_,{});return(0,e.jsx)(i.p8,{width:690,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:N})})},c=function(D){var M=D.occupant;return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(d,{occupant:M}),(0,e.jsx)(p,{occupant:M}),(0,e.jsx)(C,{occupant:M}),(0,e.jsx)(j,{occupant:M}),(0,e.jsx)(I,{organs:M.extOrgan}),(0,e.jsx)(O,{organs:M.intOrgan})]})},d=function(D){var M=(0,n.Oc)(),A=M.act,R=M.data,K=R.occupant;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return A("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return A("print_p")},children:"Print Report"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[K.stat][0],children:a[K.stat][1]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(r.zv,{value:(0,s.LI)(K.bodyTempC,0)}),"\xB0C,\xA0",(0,e.jsx)(r.zv,{value:(0,s.LI)(K.bodyTempF,0)}),"\xB0F"]}),(0,e.jsxs)(r.Ki.Item,{label:"Blood Volume",children:[(0,e.jsx)(r.zv,{value:(0,s.LI)(K.blood.volume,0)})," ","units\xA0(",(0,e.jsx)(r.zv,{value:(0,s.LI)(K.blood.percent,0)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Weight",children:(0,s.LI)(R.occupant.weight)+"lbs, "+(0,s.LI)(R.occupant.weight/2.20463)+"kgs"})]})})},p=function(D){var M=D.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Blood Reagents",children:M.reagents?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),M.reagents.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(r.wn,{title:"Stomach Reagents",children:M.ingested?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),M.ingested.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Stomach Reagents Detected"})})]})},C=function(D){var M=D.occupant,A=M.hasBorer||M.blind||M.colourblind||M.nearsighted||M.hasVirus;return A=A||M.humanPrey||M.livingPrey||M.objectPrey,A?(0,e.jsx)(r.wn,{title:"Abnormalities",children:g.map(function(R,K){if(M[R[0]])return(0,e.jsx)(r.az,{color:R[1],bold:R[1]==="bad",children:R[2](M)},K)})}):(0,e.jsx)(r.wn,{title:"Abnormalities",children:(0,e.jsx)(r.az,{color:"label",children:"No abnormalities found."})})},j=function(D){var M=D.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.XI,{children:m(x,function(A,R,K){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.XI.Row,{color:"label",children:[(0,e.jsxs)(r.XI.Cell,{children:[A[0],":"]}),(0,e.jsx)(r.XI.Cell,{children:!!R&&R[0]+":"})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(b,{value:M[A[1]],marginBottom:K0&&"0.5rem",value:M.totalLoss/100,ranges:f,children:[(0,e.jsxs)(r.az,{float:"left",inline:!0,children:[!!M.bruteLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"bone"}),(0,s.LI)(M.bruteLoss,0),"\xA0",(0,e.jsx)(r.m_,{position:"top",content:"Brute damage"})]}),!!M.fireLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"fire"}),(0,s.LI)(M.fireLoss,0),(0,e.jsx)(r.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(r.az,{inline:!0,children:(0,s.LI)(M.totalLoss,0)})]})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([M.internalBleeding&&"Internal bleeding",!!M.status.bleeding&&"External bleeding",M.lungRuptured&&"Ruptured lung",M.destroyed&&"Destroyed",!!M.status.broken&&M.status.broken,u(M.germ_level),!!M.open&&"Open incision"])}),(0,e.jsxs)(r.az,{inline:!0,children:[v([!!M.status.splinted&&"Splinted",!!M.status.robotic&&"Robotic",!!M.status.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})]),v(M.implants.map(function(R){return R.known?R.name:"Unknown object"}))]})]})]},A)})]})})},O=function(D){return D.organs.length===0?(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsx)(r.az,{color:"label",children:"N/A"})}):(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Injuries"})]}),D.organs.map(function(M,A){return(0,e.jsxs)(r.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(r.XI.Cell,{width:"33%",children:M.name}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:(0,e.jsx)(r.z2,{min:"0",max:M.maxHealth,value:M.damage/100,mt:A>0&&"0.5rem",ranges:f,children:(0,s.LI)(M.damage,0)})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([u(M.germ_level),!!M.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(r.az,{inline:!0,children:v([M.robotic===1&&"Robotic",M.robotic===2&&"Assisted",!!M.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})])})]})]},A)})]})})},_=function(){return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},57199:function(P,y,t){"use strict";t.r(y),t.d(y,{BombTester:function(){return f}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905);function a(){return a=Object.assign||function(v){for(var u=1;u.5,I=Math.random()>.5;return d.state={x:b?p:0,y:I?C:0,reverseX:!1,reverseY:!1},d.process=setInterval(function(){d.setState(function(O){var _=a({},O);return _.reverseX?_.x-j<-5?(_.reverseX=!1,_.x+=j):_.x-=j:_.x+j>p?(_.reverseX=!0,_.x-=j):_.x+=j,_.reverseY?_.y-j<-20?(_.reverseY=!1,_.y+=j):_.y-=j:_.y+j>C?(_.reverseY=!0,_.y-=j):_.y+=j,_})},1),d}var h=u.prototype;return h.componentWillUnmount=function(){clearInterval(this.process)},h.render=function(){var d=this.state,p=d.x,C=d.y,j={position:"relative",left:p+"px",top:C+"px"};return(0,e.jsx)(r.wn,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.az,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.In,{style:j,name:"bomb",size:10,color:"red"})})})},u}(s.Component)},95678:function(P,y,t){"use strict";t.r(y),t.d(y,{BotanyEditor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.activity,v=f.degradation,u=f.disk,h=f.sourceName,c=f.locus,d=f.loaded;return m?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.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)(n.wn,{title:"Buffered Genetic Data",children:u&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:h}),(0,e.jsxs)(n.Ki.Item,{label:"Gene Decay",children:[v,"%"]}),(0,e.jsx)(n.Ki.Item,{label:"Locus",children:c})]}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:d&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:d})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return x("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},72384:function(P,y,t){"use strict";t.r(y),t.d(y,{BotanyIsolator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.geneMasks,v=f.activity,u=f.degradation,h=f.disk,c=f.loaded,d=f.hasGenetics,p=f.sourceName;return v?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.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)(n.wn,{title:"Buffered Genetic Data",children:d&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:p}),(0,e.jsxs)(n.Ki.Item,{label:"Gene decay",children:[u,"%"]}),h&&m.length&&m.map(function(C){return(0,e.jsx)(n.Ki.Item,{label:C.mask,children:(0,e.jsx)(n.$n,{mb:-1,icon:"download",onClick:function(){return x("get_gene",{get_gene:C.tag})},children:"Extract"})},C.mask)})||null]}),h&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return x("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.IC,{warning:!0,children:"No Data Buffered."}),h&&(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:c&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Packet Loaded",children:c})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return x("scan_genome")},children:"Process Genome"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No packet loaded."})})]})})}},11515:function(P,y,t){"use strict";t.r(y),t.d(y,{BrigTimer:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data;return(0,e.jsx)(a.p8,{width:300,height:138,children:(0,e.jsx)(a.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",content:v.timing?"Stop":"Start",selected:v.timing,onClick:function(){return m(v.timing?"stop":"start")}}),v.flash_found&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",content:v.flash_charging?"Recharging":"Flash",disabled:v.flash_charging,onClick:function(){return m("flash")}})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:v.time_left/10,minValue:0,maxValue:v.max_time_left/10,format:function(u){return(0,i.fU)((0,s.LI)(u))},onDrag:function(u,h){return m("time",{time:h})}}),(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",content:"Add "+(0,i.fU)(v.preset_short/10),onClick:function(){return m("preset",{preset:"short"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,i.fU)(v.preset_medium/10),onClick:function(){return m("preset",{preset:"medium"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,i.fU)(v.preset_long/10),onClick:function(){return m("preset",{preset:"long"})}})})]})]})})})}},96524:function(P,y,t){"use strict";t.r(y),t.d(y,{CameraConsole:function(){return u},CameraConsoleContent:function(){return h},prevNextCamera:function(){return m},selectCameras:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(84352),i=t(33854),a=t(44583),g=t(4413),x=t(92514),f=t(84905),m=function(c,d){var p,C;if(!d)return[];var j=c.findIndex(function(b){return b.name===d.name});return[(p=c[j-1])==null?void 0:p.name,(C=c[j+1])==null?void 0:C.name]},v=function(c,d,p){d===void 0&&(d=""),p===void 0&&(p="");var C=(0,i.XZ)(d,function(j){return j.name});return(0,n.L)([(0,s.pb)(function(j){return j==null?void 0:j.name}),d&&(0,s.pb)(C),p&&(0,s.pb)(function(j){return j.networks.includes(p)}),(0,s.Ul)(function(j){return j.name})])(c)},u=function(c){var d=(0,g.Oc)(),p=d.act,C=d.data,j=C.mapRef,b=C.activeCamera,I=v(C.cameras),O=m(I,b),_=O[0],D=O[1];return(0,e.jsxs)(f.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(f.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: "}),b&&b.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(x.$n,{icon:"chevron-left",disabled:!_,onClick:function(){return p("switch_camera",{name:_})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",disabled:!D,onClick:function(){return p("switch_camera",{name:D})}}),"| PAN:",(0,e.jsx)(x.$n,{icon:"chevron-left",onClick:function(){return p("pan",{dir:8})}}),(0,e.jsx)(x.$n,{icon:"chevron-up",onClick:function(){return p("pan",{dir:1})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",onClick:function(){return p("pan",{dir:4})}}),(0,e.jsx)(x.$n,{icon:"chevron-down",onClick:function(){return p("pan",{dir:2})}})]}),(0,e.jsx)(x.D1,{className:"CameraConsole__map",params:{id:j,type:"map"}})]})]})},h=function(c){var d=(0,g.Oc)(),p=d.act,C=d.data,j=(0,a.useState)(""),b=j[0],I=j[1],O=(0,a.useState)(""),_=O[0],D=O[1],M=C.activeCamera,A=C.allNetworks;A.sort();var R=v(C.cameras,b,_);return(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(K,N){return I(N)}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.ms,{mb:1,width:_?"155px":"177px",displayText:_||"No Filter",options:A,onSelected:function(K){return D(K)}})}),_?(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){D("")}})}):""]})}),(0,e.jsx)(x.so.Item,{height:"100%",children:(0,e.jsx)(x.wn,{fill:!0,scrollable:!0,children:R.map(function(K){return(0,e.jsx)("div",{title:K.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",M&&K.name===M.name&&"Button--selected"]),onClick:function(){return p("switch_camera",{name:K.name})},children:K.name},K.name)})})})]})}},60997:function(P,y,t){"use strict";t.r(y),t.d(y,{Canister:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.connected,h=v.can_relabel,c=v.pressure,d=v.releasePressure,p=v.defaultReleasePressure,C=v.minReleasePressure,j=v.maxReleasePressure,b=v.valveOpen,I=v.holding;return(0,e.jsx)(a.p8,{width:360,height:242,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!h,content:"Relabel",onClick:function(){return m("relabel")}}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.zv,{value:c,format:function(O){return O<1e4?(0,s.Mg)(O)+" kPa":(0,i.QL)(O*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:!!b&&"yellow",value:d,unit:"kPa",minValue:C,maxValue:j,stepPixelSize:1,onDrag:function(O,_){return m("pressure",{pressure:_})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return m("pressure",{pressure:j})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return m("pressure",{pressure:p})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?I?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){return m("valve")}})}),(0,e.jsx)(r.Wx.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.az,{position:"relative",children:[(0,e.jsx)(r.In,{size:1.25,name:u?"plug":"times",color:u?"good":"bad"}),(0,e.jsx)(r.m_,{content:u?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!I&&(0,e.jsx)(r.$n,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){return m("eject")}}),children:[!!I&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:I.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:I.pressure})," kPa"]})]}),!I&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},9550:function(P,y,t){"use strict";t.r(y),t.d(y,{Canvas:function(){return h}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905);function a(){return a=Object.assign||function(c){for(var d=1;d=0)&&(p[j]=c[j]);return p}function f(c,d){return f=Object.setPrototypeOf||function(C,j){return C.__proto__=j,C},f(c,d)}var m=24,v=function(c){"use strict";g(d,c);function d(C){var j;return j=c.call(this,C)||this,j.canvasRef=(0,s.createRef)(),j.onCVClick=C.onCanvasClick,j}var p=d.prototype;return p.componentDidMount=function(){this.drawCanvas(this.props)},p.componentDidUpdate=function(){this.drawCanvas(this.props)},p.drawCanvas=function(j){var b=this.canvasRef.current.getContext("2d"),I=j.value,O=I.length;if(O){var _=I[0].length,D=Math.round(this.canvasRef.current.width/O),M=Math.round(this.canvasRef.current.height/_);b.save(),b.scale(D,M);for(var A=0;A=0)&&(p[j]=c[j]);return p}var f={Alphabetical:function(c,d){return c.name>d.name},"By availability":function(c,d){return-(c.affordable-d.affordable)},"By price":function(c,d){return c.price-d.price}},m=function(){var c=function(K){b(K)},d=function(K){_(K)},p=function(K){A(K)},C=(0,n.useState)(""),j=C[0],b=C[1],I=(0,n.useState)("Alphabetical"),O=I[0],_=I[1],D=(0,n.useState)(!1),M=D[0],A=D[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{searchText:j,sortOrder:O,descending:M,onSearchText:c,onSortOrder:d,onDescending:p}),(0,e.jsx)(u,{searchText:j,sortOrder:O,descending:M,onSearchText:c,onSortOrder:d,onDescending:p})]})})})},v=function(c){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(d,p){return c.onSearchText(p)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:c.sortOrder,options:Object.keys(f),width:"100%",lineHeight:"19px",onSelected:function(d){return c.onSortOrder(d)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:c.descending?"arrow-down":"arrow-up",height:"19px",tooltip:c.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return c.onDescending(!c.descending)}})})]})})},u=function(c){var d=(0,r.Oc)(),p=d.act,C=d.data,j=C.points,b=C.items,I=(0,s.XZ)(c.searchText,function(D){return D[0]}),O=!1,_=Object.entries(b).map(function(D,M){var A=Object.entries(D[1]).filter(I).map(function(R){return R[1].affordable=j>=R[1].price,R[1]}).sort(f[c.sortOrder]);if(A.length!==0)return c.descending&&(A=A.reverse()),O=!0,(0,e.jsx)(h,{title:D[0],items:A},D[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:O?_:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},h=function(c){var d=(0,r.Oc)(),p=d.act,C=d.data,j=c.title,b=c.items,I=x(c,["title","items"]);return(0,e.jsx)(i.Nt,g({open:!0,title:j},I,{children:b.map(function(O){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:O.name}),(0,e.jsx)(i.$n,{content:O.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return p("purchase",{cat:j,name:O.name,price:O.price,restriction:O.restriction})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},O.name)})}))}},36136:function(P,y,t){"use strict";t.r(y),t.d(y,{CharacterDirectory:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=function(v){switch(v){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},g=function(v){var u=function(R){O(R)},h=(0,n.Oc)(),c=h.act,d=h.data,p=d.personalVisibility,C=d.personalTag,j=d.personalErpTag,b=(0,s.useState)(null),I=b[0],O=b[1],_=(0,s.useState)(!1),D=_[0],M=_[1];return(0,e.jsx)(i.p8,{width:640,height:480,resizeable:!0,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:I&&(0,e.jsx)(x,{overlay:I,onOverlay:u})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:D?"toggle-on":"toggle-off",selected:D,content:D?"On":"Off",onClick:function(){return M(!D)}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,content:p?"Shown":"Not Shown",onClick:function(){return c("setVisible",{overwrite_prefs:D})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:C,onClick:function(){return c("setTag",{overwrite_prefs:D})}})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:j,onClick:function(){return c("setErpTag",{overwrite_prefs:D})}})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,content:"Edit Ad",onClick:function(){return c("editAd",{overwrite_prefs:D})}})})]})}),(0,e.jsx)(f,{onOverlay:u})]})})})},x=function(v){return(0,e.jsxs)(r.wn,{title:v.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return v.onOverlay(null)}}),children:[(0,e.jsx)(r.wn,{level:2,title:"Species",children:(0,e.jsx)(r.az,{children:v.overlay.species})}),(0,e.jsx)(r.wn,{level:2,title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:a(v.overlay.tag),children:v.overlay.tag})}),(0,e.jsx)(r.wn,{level:2,title:"ERP Tag",children:(0,e.jsx)(r.az,{children:v.overlay.erptag})}),(0,e.jsx)(r.wn,{level:2,title:"Character Ad",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.flavor_text||"Unset."})})]})},f=function(v){var u=function(A){I(A)},h=function(A){D(A)},c=(0,n.Oc)(),d=c.act,p=c.data,C=p.directory,j=(0,s.useState)("name"),b=j[0],I=j[1],O=(0,s.useState)("name"),_=O[0],D=O[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Refresh",onClick:function(){return d("refresh")}}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(m,{id:"name",sortId:b,sortOrder:_,onSortId:u,onSortOrder:h,children:"Name"}),(0,e.jsx)(m,{id:"species",sortId:b,sortOrder:_,onSortId:u,onSortOrder:h,children:"Species"}),(0,e.jsx)(m,{id:"tag",sortId:b,sortOrder:_,onSortId:u,onSortOrder:h,children:"Vore Tag"}),(0,e.jsx)(m,{id:"erptag",sortId:b,sortOrder:_,onSortId:u,onSortOrder:h,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),C.sort(function(M,A){var R=_?1:-1;return M[b].localeCompare(A[b])*R}).map(function(M,A){return(0,e.jsxs)(r.XI.Row,{backgroundColor:a(M.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:M.name}),(0,e.jsx)(r.XI.Cell,{children:M.species}),(0,e.jsx)(r.XI.Cell,{children:M.tag}),(0,e.jsx)(r.XI.Cell,{children:M.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return v.onOverlay(M)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},A)})]})})},m=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=v.id,p=v.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:v.sortId!==d&&"transparent",onClick:function(){v.sortId===d?v.onSortOrder(!v.sortOrder):(v.onSortId(d),v.onSortOrder(!0))},children:[p,v.sortId===d&&(0,e.jsx)(r.In,{name:v.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},98875:function(P,y,t){"use strict";t.r(y),t.d(y,{CheckboxInput:function(){return m}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(86808),g=t(84905),x=t(12035),f=t(18513),m=function(v){var u=(0,r.Oc)().data,h=u.items,c=h===void 0?[]:h,d=u.min_checked,p=u.max_checked,C=u.message,j=u.timeout,b=u.title,I=(0,n.useState)([]),O=I[0],_=I[1],D=(0,n.useState)(""),M=D[0],A=D[1],R=(0,s.XZ)(M,function(k){return k}),K=c.filter(R),N=function(k){var V=O.includes(k)?O.filter(function(F){return F!==k}):[].concat(O,[k]);_(V)};return(0,e.jsxs)(g.p8,{title:b,width:425,height:300,children:[!!j&&(0,e.jsx)(f.Loader,{value:j}),(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.IC,{info:!0,textAlign:"center",children:[(0,s.jT)(C)," ",d>0&&" (Min: "+d+")",p<50&&" (Max: "+p+")"]})}),(0,e.jsx)(i.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(i.XI,{children:K.map(function(k,V){return(0,e.jsx)(a.Hj,{className:"candystripe",children:(0,e.jsx)(a.nA,{children:(0,e.jsx)(i.$n.Checkbox,{checked:O.includes(k),disabled:O.length>=p&&!O.includes(k),fluid:!0,onClick:function(){return N(k)},children:k})})},V)})})})}),(0,e.jsxs)(i.BJ,{m:1,mb:0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(i.In,{name:"search",mt:.5})})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.pd,{fluid:!0,value:M,onInput:function(k,V){return A(V)}})})]}),(0,e.jsx)(i.BJ.Item,{mt:.7,children:(0,e.jsx)(i.wn,{children:(0,e.jsx)(x.InputButtons,{input:O})})})]})})]})}},6908:function(P,y,t){"use strict";t.r(y),t.d(y,{ChemDispenser:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(62386),i=t(84905),a=[5,10,20,30,40,60],g=[1,5,10],x=function(u){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)(f,{}),(0,e.jsx)(m,{}),(0,e.jsx)(v,{})]})})},f=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.amount;return(0,e.jsx)(n.wn,{title:"Settings",flex:"content",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:a.map(function(C,j){return(0,e.jsx)(n.$n,{textAlign:"center",selected:p===C,content:C+"u",m:"0",onClick:function(){return c("amount",{amount:C})}},j)})}),(0,e.jsx)(n.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(n.Ap,{step:1,stepPixelSize:5,value:p,minValue:1,maxValue:120,onDrag:function(C,j){return c("amount",{amount:j})}})})]})})},m=function(u){for(var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.chemicals,C=p===void 0?[]:p,j=[],b=0;b<(C.length+1)%3;b++)j.push(!0);return(0,e.jsx)(n.wn,{title:d.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.jsxs)(n.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[C.map(function(I,O){return(0,e.jsx)(n.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(n.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:I.title+" ("+I.amount+")",onClick:function(){return c("dispense",{reagent:I.id})}})},O)}),j.map(function(I,O){return(0,e.jsx)(n.so.Item,{grow:"1",basis:"25%",height:"20px"},O)})]})})},v=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.isBeakerLoaded,C=d.beakerCurrentVolume,j=d.beakerMaxVolume,b=d.beakerContents,I=b===void 0?[]:b;return(0,e.jsx)(n.wn,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(n.az,{children:[!!p&&(0,e.jsxs)(n.az,{inline:!0,color:"label",mr:2,children:[C," / ",j," units"]}),(0,e.jsx)(n.$n,{icon:"eject",content:"Eject",disabled:!p,onClick:function(){return c("ejectBeaker")}})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:p,beakerContents:I,buttons:function(O){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return c("remove",{reagent:O.id,amount:-1})}}),g.map(function(_,D){return(0,e.jsx)(n.$n,{content:_,onClick:function(){return c("remove",{reagent:O.id,amount:_})}},D)}),(0,e.jsx)(n.$n,{content:"ALL",onClick:function(){return c("remove",{reagent:O.id,amount:O.volume})}})]})}})})}},75191:function(P,y,t){"use strict";t.r(y),t.d(y,{ChemMaster:function(){return m}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(62386),a=t(5425),g=[1,5,10,30,60],x=null,f=function(p){var C=(0,s.Oc)(),j=C.act,b=C.data,I=p.args.analysis;return(0,e.jsx)(n.wn,{level:2,m:"-1rem",pb:"1rem",title:b.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(n.az,{mx:"0.5rem",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(n.Ki.Item,{label:"Description",children:(I.desc||"").length>0?I.desc:"N/A"}),I.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Blood type",children:I.blood_type}),(0,e.jsx)(n.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:I.blood_dna})]}),!b.condi&&(0,e.jsx)(n.$n,{icon:b.printing?"spinner":"print",disabled:b.printing,iconSpin:!!b.printing,ml:"0.5rem",content:"Print",onClick:function(){return j("print",{idx:I.idx,beaker:p.args.beaker})}})]})})})},m=function(p){var C=(0,s.Oc)().data,j=C.condi,b=C.beaker,I=C.beaker_reagents,O=I===void 0?[]:I,_=C.buffer_reagents,D=_===void 0?[]:_,M=C.mode;return(0,e.jsxs)(r.p8,{width:575,height:500,children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsxs)(r.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.jsx)(v,{beaker:b,beakerReagents:O,bufferNonEmpty:D.length>0}),(0,e.jsx)(u,{mode:M,bufferReagents:D}),(0,e.jsx)(h,{isCondiment:j,bufferNonEmpty:D.length>0})]})]})},v=function(p){var C=(0,s.Oc)(),j=C.act,b=C.data,I=p.beaker,O=p.beakerReagents,_=p.bufferNonEmpty,D=_?(0,e.jsx)(n.$n.Confirm,{icon:"eject",disabled:!I,content:"Eject and Clear Buffer",onClick:function(){return j("eject")}}):(0,e.jsx)(n.$n,{icon:"eject",disabled:!I,content:"Eject and Clear Buffer",onClick:function(){return j("eject")}});return(0,e.jsx)(n.wn,{title:"Beaker",buttons:D,children:I?(0,e.jsx)(i.BeakerContents,{beakerLoaded:!0,beakerContents:O,buttons:function(M,A){return(0,e.jsxs)(n.az,{mb:A0?(0,e.jsx)(i.BeakerContents,{beakerLoaded:!0,beakerContents:I,buttons:function(O,_){return(0,e.jsxs)(n.az,{mb:_1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:i.lm.damageType.oxy,inline:!0,children:K[0]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.toxin,inline:!0,children:K[2]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.brute,inline:!0,children:K[3]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.burn,inline:!0,children:K[1]})]}):(0,e.jsx)(r.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(r.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:A}),(0,e.jsx)(r.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:R}),(0,e.jsxs)(r.Ki.Item,{label:"Disk",children:[(0,e.jsx)(r.$n.Confirm,{disabled:!I.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return b("disk",{option:"load"})}}),(0,e.jsx)(r.$n,{disabled:!I.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return b("disk",{option:"save",savetype:"ui"})}}),(0,e.jsx)(r.$n,{disabled:!I.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return b("disk",{option:"save",savetype:"ue"})}}),(0,e.jsx)(r.$n,{disabled:!I.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return b("disk",{option:"save",savetype:"se"})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Actions",children:[(0,e.jsx)(r.$n,{disabled:!I.podready,icon:"user-plus",content:"Clone",onClick:function(){return b("clone",{ref:_})}}),(0,e.jsx)(r.$n,{icon:"trash",content:"Delete",onClick:function(){return b("del_rec")}})]})]})})},m=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.menu;return(0,a.modalRegisterBodyOverride)("view_rec",f),(0,e.jsxs)(g.p8,{children:[(0,e.jsx)(a.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(g.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d,{}),(0,e.jsx)(p,{}),(0,e.jsx)(v,{}),(0,e.jsx)(r.wn,{noTopPadding:!0,flexGrow:"1",children:(0,e.jsx)(u,{})})]})]})},v=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.menu;return(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:O===1,icon:"home",onClick:function(){return b("menu",{num:1})},children:"Main"}),(0,e.jsx)(r.tU.Tab,{selected:O===2,icon:"folder",onClick:function(){return b("menu",{num:2})},children:"Records"})]})},u=function(C){var j=(0,n.Oc)().data,b=j.menu,I;return b===1?I=(0,e.jsx)(h,{}):b===2&&(I=(0,e.jsx)(c,{})),I},h=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.loading,_=I.scantemp,D=I.occupant,M=I.locked,A=I.can_brainscan,R=I.scan_mode,K=I.numberofpods,N=I.pods,k=I.selected_pod,V=M&&!!D;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Scanner",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.jsx)(r.$n,{disabled:!D,selected:V,icon:V?"toggle-on":"toggle-off",content:V?"Engaged":"Disengaged",onClick:function(){return b("lock")}}),(0,e.jsx)(r.$n,{disabled:V||!D,icon:"user-slash",content:"Eject Occupant",onClick:function(){return b("eject")}})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Status",children:O?(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.jsx)(r.az,{color:_.color,children:_.text})}),!!A&&(0,e.jsx)(r.Ki.Item,{label:"Scan Mode",children:(0,e.jsx)(r.$n,{icon:R?"brain":"male",content:R?"Brain":"Body",onClick:function(){return b("toggle_mode")}})})]}),(0,e.jsx)(r.$n,{disabled:!D||O,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return b("scan")}})]}),(0,e.jsx)(r.wn,{title:"Pods",level:"2",children:K?N.map(function(F,J){var H;return F.status==="cloning"?H=(0,e.jsx)(r.z2,{min:"0",max:"100",value:F.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,s.LI)(F.progress,0)+"%"})}):F.status==="mess"?H=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.$n,{selected:k===F.pod,icon:k===F.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return b("selectpod",{ref:F.pod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"pod_"+F.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsxs)(r.az,{color:"label",children:["Pod #",J+1]}),(0,e.jsxs)(r.az,{bold:!0,color:F.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.biomass>=150?"circle":"circle-o"}),"\xA0",F.biomass]}),H]},J)}):(0,e.jsx)(r.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},c=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.records;return O.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:O.map(function(_,D){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:_.realname,onClick:function(){return b("view_rec",{ref:_.record})}},D)})}):(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},d=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.temp;if(!(!O||!O.text||O.text.length<=0)){var _,D=(_={},_[O.style]=!0,_);return(0,e.jsxs)(r.IC,x({},D,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:O.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return b("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},p=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.scanner,_=I.numberofpods,D=I.autoallowed,M=I.autoprocess,A=I.disk;return(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[!!D&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.jsx)(r.$n,{selected:M,icon:M?"toggle-on":"toggle-off",content:M?"Enabled":"Disabled",onClick:function(){return b("autoprocess",{on:M?0:1})}})]}),(0,e.jsx)(r.$n,{disabled:!A,icon:"eject",content:"Eject Disk",onClick:function(){return b("disk",{option:"eject"})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scanner",children:O?(0,e.jsx)(r.az,{color:"good",children:"Connected"}):(0,e.jsx)(r.az,{color:"bad",children:"Not connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Pods",children:_?(0,e.jsxs)(r.az,{color:"good",children:[_," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},48418:function(P,y,t){"use strict";t.r(y),t.d(y,{ColorMate:function(){return i},ColorMateHSV:function(){return x},ColorMateMatrix:function(){return g},ColorMateTint:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(f,m){var v=(0,s.Oc)(m),u=v.act,h=v.data,c=h.activemode,d=h.temp,p=h.item||[];return(0,e.jsx)(r.p8,{width:"980",height:"720",resizable:!0,children:(0,e.jsx)(r.p8.Content,{overflow:"auto",children:(0,e.jsxs)(n.wn,{children:[d?(0,e.jsx)(n.IC,{children:d}):null,Object.keys(p).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.XI,{children:[(0,e.jsx)(n.XI.Cell,{width:"50%",children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+p.sprite,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+p.preview,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})})]}),(0,e.jsxs)(n.tU,{fluid:!0,children:[(0,e.jsx)(n.tU.Tab,{selected:c===1,onClick:function(){return u("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(n.tU.Tab,{selected:c===2,onClick:function(){return u("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(n.tU.Tab,{selected:c===3,onClick:function(){return u("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",p.name]}),(0,e.jsxs)(n.XI,{mt:1,children:[(0,e.jsxs)(n.XI.Cell,{width:"33%",children:[(0,e.jsx)(n.$n,{fluid:!0,content:"Paint",icon:"fill",onClick:function(){return u("paint")}}),(0,e.jsx)(n.$n,{fluid:!0,content:"Clear",icon:"eraser",onClick:function(){return u("clear")}}),(0,e.jsx)(n.$n,{fluid:!0,content:"Eject",icon:"eject",onClick:function(){return u("drop")}})]}),(0,e.jsx)(n.XI.Cell,{width:"66%",children:c===1?(0,e.jsx)(a,{}):c===2?(0,e.jsx)(x,{}):(0,e.jsx)(g,{})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})},a=function(f,m){var v=(0,s.Oc)(m),u=v.act,h=v.data;return(0,e.jsx)(n.$n,{fluid:!0,content:"Select new color",icon:"paint-brush",onClick:function(){return u("choose_color")}})},g=function(f,m){var v=(0,s.Oc)(m),u=v.act,h=v.data,c=h.matrixcolors||[];return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["RR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rr,onChange:function(d,p){return u("set_matrix_color",{color:1,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["GR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gr,onChange:function(d,p){return u("set_matrix_color",{color:4,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["BR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.br,onChange:function(d,p){return u("set_matrix_color",{color:7,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["RG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rg,onChange:function(d,p){return u("set_matrix_color",{color:2,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["GG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gg,onChange:function(d,p){return u("set_matrix_color",{color:5,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["BG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bg,onChange:function(d,p){return u("set_matrix_color",{color:8,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["RB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rb,onChange:function(d,p){return u("set_matrix_color",{color:3,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["GB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gb,onChange:function(d,p){return u("set_matrix_color",{color:6,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["BB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bb,onChange:function(d,p){return u("set_matrix_color",{color:9,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["CR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cr,onChange:function(d,p){return u("set_matrix_color",{color:10,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["CG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cg,onChange:function(d,p){return u("set_matrix_color",{color:11,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["CB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cb,onChange:function(d,p){return u("set_matrix_color",{color:12,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{width:"40%",children:[(0,e.jsx)(n.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(n.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})},x=function(f,m){var v=(0,s.Oc)(m),u=v.act,h=v.data,c=h.buildhue,d=h.buildsat,p=h.buildval;return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(n.XI.Cell,{width:"85%",children:(0,e.jsx)(n.Ap,{minValue:0,maxValue:360,step:1,value:c,onDrag:function(C,j){return u("set_hue",{buildhue:j})}})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.Ap,{minValue:-10,maxValue:10,step:.01,value:d,onDrag:function(C,j){return u("set_sat",{buildsat:j})}})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.Ap,{minValue:-10,maxValue:10,step:.01,value:p,onDrag:function(C,j){return u("set_val",{buildval:j})}})})]})]})}},48022:function(P,y,t){"use strict";t.r(y),t.d(y,{CommunicationsConsole:function(){return i},CommunicationsConsoleContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(v){return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.menu_state,p=(0,e.jsxs)(n.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",d,"Please report this to NT Technical Support."]});return d===1?p=(0,e.jsx)(g,{}):d===2?p=(0,e.jsx)(m,{}):d===3&&(p=(0,e.jsx)(f,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),p]})},g=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.messages,p=c.msg_cooldown,C=c.emagged,j=c.cc_cooldown,b=c.str_security_level,I=c.levels,O=c.authmax,_=c.security_level,D=c.security_level_color,M=c.authenticated,A=c.atcsquelch,R=c.boss_short,K="View ("+d.length+")",N="Make Priority Announcement";p>0&&(N+=" ("+p+"s)");var k=C?"Message [UNKNOWN]":"Message "+R;j>0&&(k+=" ("+j+"s)");var V=b,F=I.map(function(J){return(0,e.jsx)(n.$n,{icon:J.icon,content:J.name,disabled:!M,selected:J.id===_,onClick:function(){return h("newalertlevel",{level:J.id})}},J.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Announcement",children:(0,e.jsx)(n.$n,{icon:"bullhorn",content:N,disabled:!O||p>0,onClick:function(){return h("announce")}})}),!!C&&(0,e.jsxs)(n.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(n.$n,{icon:"broadcast-tower",color:"red",content:k,disabled:!O||j>0,onClick:function(){return h("MessageSyndicate")}}),(0,e.jsx)(n.$n,{icon:"sync-alt",content:"Reset Relays",disabled:!O,onClick:function(){return h("RestoreBackup")}})]})||(0,e.jsx)(n.Ki.Item,{label:"Transmit",children:(0,e.jsx)(n.$n,{icon:"broadcast-tower",content:k,disabled:!O||j>0,onClick:function(){return h("MessageCentCom")}})})]})}),(0,e.jsx)(n.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Alert",color:D,children:V}),(0,e.jsx)(n.Ki.Item,{label:"Change Alert",children:F}),(0,e.jsx)(n.Ki.Item,{label:"Displays",children:(0,e.jsx)(n.$n,{icon:"tv",content:"Change Status Displays",disabled:!M,onClick:function(){return h("status")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(n.$n,{icon:"folder-open",content:K,disabled:!M,onClick:function(){return h("messagelist")}})}),(0,e.jsx)(n.Ki.Item,{label:"Misc",children:(0,e.jsx)(n.$n,{icon:"microphone",content:A?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!M,selected:A,onClick:function(){return h("toggleatc")}})})]})})]})},x=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.authenticated,p=c.is_ai,C=c.esc_status,j=c.esc_callable,b=c.esc_recallable,I;return d?p?I="AI":d===1?I="Command":d===2?I="Site Director":I="ERROR: Report This Bug!":I="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Authentication",children:(0,e.jsx)(n.Ki,{children:p&&(0,e.jsx)(n.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:d?"sign-out-alt":"id-card",selected:d,content:d?"Log Out ("+I+")":"Log In",onClick:function(){return h("auth")}})})})}),(0,e.jsx)(n.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(n.Ki,{children:[!!C&&(0,e.jsx)(n.Ki.Item,{label:"Status",children:C}),!!j&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"rocket",content:"Call Shuttle",disabled:!d,onClick:function(){return h("callshuttle")}})}),!!b&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"times",content:"Recall Shuttle",disabled:!d||p,onClick:function(){return h("cancelshuttle")}})})]})})]})},f=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.message_current,p=c.message_deletion_allowed,C=c.authenticated,j=c.messages;if(d)return(0,e.jsx)(n.wn,{title:d.title,buttons:(0,e.jsx)(n.$n,{icon:"times",content:"Return To Message List",disabled:!C,onClick:function(){return h("messagelist")}}),children:(0,e.jsx)(n.az,{children:d.contents})});var b=j.map(function(I){return(0,e.jsxs)(n.Ki.Item,{label:I.title,children:[(0,e.jsx)(n.$n,{icon:"eye",content:"View",disabled:!C||d&&d.title===I.title,onClick:function(){return h("messagelist",{msgid:I.id})}}),(0,e.jsx)(n.$n,{icon:"times",content:"Delete",disabled:!C||!p,onClick:function(){return h("delmessage",{msgid:I.id})}})]},I.id)});return(0,e.jsx)(n.wn,{title:"Messages Received",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return h("main")}}),children:(0,e.jsx)(n.Ki,{children:j.length&&b||(0,e.jsx)(n.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})},m=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.stat_display,p=c.authenticated,C=d.presets.map(function(j){return(0,e.jsx)(n.$n,{content:j.label,selected:j.name===d.type,disabled:!p,onClick:function(){return h("setstat",{statdisp:j.name})}},j.name)});return(0,e.jsx)(n.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return h("main")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Presets",children:C}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:d.line_1,disabled:!p,onClick:function(){return h("setmsg1")}})}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:d.line_2,disabled:!p,onClick:function(){return h("setmsg2")}})})]})})}},80273:function(P,y,t){"use strict";t.r(y),t.d(y,{Communicator:function(){return _}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(84905),x=t(41608),f=1,m=2,v=3,u=4,h=40,c=5,d=6,p=7,C=8,j=9,b=[f,m,v,u,h,c,d,p,C,j],I={};function O(Y){return b.includes(Y)}var _=function(Y){for(var Z=(0,i.Oc)(),X=Z.act,z=Z.data,Q=z.currentTab,ee=z.video_comm,oe=z.owner,ne=z.occupation,ue=z.connectionStatus,ce=z.address,me=z.visible,xe=z.ring,ve=z.selfie_mode,be=z.homeScreen,we=z.targetAddress,Je=z.voice_mobs,ze=z.phone_video_comm,Ke=z.communicating,Be=z.requestsReceived,ct=z.invitesSent,xt=z.imContacts,st=z.targetAddressName,ot=z.imList,Ae=z.feeds,Le=z.target_feed,Pe=z.latest_news,ke=z.note,Me=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],Fe=Me.map(function(je){return(0,e.jsx)(a.$n,{content:je,fontSize:2,fluid:!0,onClick:function(){return X("add_hex",{add_hex:je})}},je)}),We=[],He=0;HeX?Z.length>X?Z.slice(0,X)+"...":Z:Y+Z},F=function(Y,Z,X,z){if(X<0||X>z.length)return k(Y,Z)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var Q=k(Y,Z),ee=k(z[X],Z);return Q&&ee?"TinderMessage_Subsequent_Sent":!Q&&!ee?"TinderMessage_Subsequent_Received":Q?"TinderMessage_First_Sent":"TinderMessage_First_Received"},J=function(Y,Z,X,z,Q){return Yz?"average":Y>Q?"bad":"good"},H=function(Y){var Z=(0,i.Oc)(),X=Z.act,z=Z.data,Q=z.aircontents,ee=z.weather,oe="\xB0";return(0,e.jsxs)(a.wn,{title:"Weather",children:[(0,e.jsx)(a.wn,{title:"Current Conditions",children:(0,e.jsx)(a.Ki,{children:(0,s.pb)(function(ne){return ne.val!=="0"||ne.entry==="Pressure"||ne.entry==="Temperature"})(Q).map(function(ne){return(0,e.jsxs)(a.Ki.Item,{label:ne.entry,color:J(ne.val,ne.bad_low,ne.poor_low,ne.poor_high,ne.bad_high),children:[ne.val,(0,n.jT)(ne.units)]},ne.entry)})})}),(0,e.jsx)(a.wn,{title:"Weather Reports",children:!!ee.length&&(0,e.jsx)(a.Ki,{children:ee.map(function(ne){return(0,e.jsx)(a.Ki.Item,{label:ne.Planet,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Time",children:ne.Time}),(0,e.jsx)(a.Ki.Item,{label:"Weather",children:(0,n.Sn)(ne.Weather)}),(0,e.jsxs)(a.Ki.Item,{label:"Temperature",children:["Current: ",ne.Temperature.toFixed()," ",oe,"C | High:"," ",ne.High.toFixed()," ",oe,"C | Low: ",ne.Low.toFixed()," ",oe,"C"]}),(0,e.jsx)(a.Ki.Item,{label:"Wind Direction",children:ne.WindDir}),(0,e.jsx)(a.Ki.Item,{label:"Wind Speed",children:ne.WindSpeed}),(0,e.jsx)(a.Ki.Item,{label:"Forecast",children:(0,n.jT)(ne.Forecast)})]})},ne.Planet)})})||(0,e.jsx)(a.az,{color:"bad",children:"No weather reports available. Please check back later."})})]})}},90734:function(P,y,t){"use strict";t.r(y),t.d(y,{ComputerFabricator:function(){return c}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905);function a(b,I){return I||(I=b.slice(0)),b.raw=I,b}function g(){var b=a(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return g=function(){return b},b}function x(){var b=a(["\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 b},b}function f(){var b=a(["\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 f=function(){return b},b}function m(){var b=a(["\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 m=function(){return b},b}function v(){var b=a(["\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 v=function(){return b},b}function u(){var b=a(["\n A component critical for your device's functionality.\n It allows you to run programs from your hard drive.\n Advanced CPUs use more power, but allow you to run\n more programs on background at once.\n "]);return u=function(){return b},b}function h(){var b=a(["\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 h=function(){return b},b}var c=function(b){var I=(0,n.Oc)(),O=I.act,_=I.data;return(0,e.jsx)(i.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(r.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),_.state!==0&&(0,e.jsx)(r.$n,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return O("clean_order")}}),_.state===0&&(0,e.jsx)(d,{}),_.state===1&&(0,e.jsx)(p,{}),_.state===2&&(0,e.jsx)(C,{}),_.state===3&&(0,e.jsx)(j,{})]})})},d=function(b){var I=(0,n.Oc)(),O=I.act,_=I.data;return(0,e.jsxs)(r.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(r.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(r.az,{mt:3,children:(0,e.jsxs)(r.xA,{width:"100%",children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return O("pick_device",{pick:"1"})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return O("pick_device",{pick:"2"})}})})]})})]})},p=function(b){var I=(0,n.Oc)(),O=I.act,_=I.data;return(0,e.jsxs)(r.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(r.az,{bold:!0,color:"good",children:[_.totalprice,"\u20AE"]}),children:[(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(r.m_,{content:(0,s.c1)(g()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_battery===1,onClick:function(){return O("hw_battery",{battery:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:_.hw_battery===2,onClick:function(){return O("hw_battery",{battery:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_battery===3,onClick:function(){return O("hw_battery",{battery:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(r.m_,{content:(0,s.c1)(x()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_disk===1,onClick:function(){return O("hw_disk",{disk:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:_.hw_disk===2,onClick:function(){return O("hw_disk",{disk:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_disk===3,onClick:function(){return O("hw_disk",{disk:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(r.m_,{content:(0,s.c1)(f()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_netcard===0,onClick:function(){return O("hw_netcard",{netcard:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_netcard===1,onClick:function(){return O("hw_netcard",{netcard:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_netcard===2,onClick:function(){return O("hw_netcard",{netcard:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(r.m_,{content:(0,s.c1)(m()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_nanoprint===0,onClick:function(){return O("hw_nanoprint",{print:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_nanoprint===1,onClick:function(){return O("hw_nanoprint",{print:"1"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(r.m_,{content:(0,s.c1)(v()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_card===0,onClick:function(){return O("hw_card",{card:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_card===1,onClick:function(){return O("hw_card",{card:"1"})}})})]}),_.devtype!==2&&(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(r.m_,{content:(0,s.c1)(u()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_cpu===1,onClick:function(){return O("hw_cpu",{cpu:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_cpu===2,onClick:function(){return O("hw_cpu",{cpu:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(r.m_,{content:(0,s.c1)(h()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_tesla===0,onClick:function(){return O("hw_tesla",{tesla:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_tesla===1,onClick:function(){return O("hw_tesla",{tesla:"1"})}})})]})]}),(0,e.jsx)(r.$n,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return O("confirm_order")}})]})},C=function(b){var I=(0,n.Oc)(),O=I.act,_=I.data;return(0,e.jsxs)(r.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(r.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(r.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(r.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(r.az,{inline:!0,color:"good",children:[_.totalprice,"\u20AE"]})]})]})},j=function(b){return(0,e.jsxs)(r.wn,{minHeight:"282px",children:[(0,e.jsx)(r.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(r.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},79415:function(P,y,t){"use strict";t.r(y),t.d(y,{CookingAppliance:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.temperature,v=f.optimalTemp,u=f.temperatureEnough,h=f.efficiency,c=f.containersRemovable,d=f.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)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(n.z2,{color:u?"good":"blue",value:m,maxValue:v,children:[(0,e.jsx)(n.zv,{value:m}),"\xB0C / ",v,"\xB0C"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(n.zv,{value:h}),"%"]})]})}),(0,e.jsx)(n.wn,{title:"Containers",children:(0,e.jsx)(n.Ki,{children:d.map(function(p,C){return p.empty?(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(C+1),children:(0,e.jsx)(n.$n,{onClick:function(){return x("slot",{slot:C+1})},children:"Empty"})},C):(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(C+1),verticalAlign:"middle",children:(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{disabled:!c,onClick:function(){return x("slot",{slot:C+1})},children:p.container||"No Container"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.z2,{color:p.progressText[0],value:p.progress,maxValue:1,children:p.progressText[1]})})]})},C)})})})]})})}},41608:function(P,y,t){"use strict";t.r(y),t.d(y,{CrewManifest:function(){return g},CrewManifestContent:function(){return x}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(1568),a=t(84905),g=function(){return(0,e.jsx)(a.p8,{width:400,height:600,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:h.map(function(c){return!!c.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:i.lm.manifest[c.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:c.cat})}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{children:"Rank"}),(0,e.jsx)(r.XI.Cell,{children:"Active"})]}),c.elems.map(function(d){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,s.jT)(d.name)}),(0,e.jsx)(r.XI.Cell,{children:d.rank}),(0,e.jsx)(r.XI.Cell,{children:d.active})]},d.name+d.rank)})]})},c.cat)})})}},93643:function(P,y,t){"use strict";t.r(y),t.d(y,{CrewMonitor:function(){return m},CrewMonitorContent:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(44583),i=t(4413),a=t(92514),g=t(84905),x=function(h){return h.dead?"Deceased":parseInt(h.stat,10)===1?"Unconscious":"Living"},f=function(h){return h.dead?"red":parseInt(h.stat,10)===1?"orange":"green"},m=function(){var h=function(_){C(_)},c=function(_){I(_)},d=(0,r.useState)(0),p=d[0],C=d[1],j=(0,r.useState)(1),b=j[0],I=j[1];return(0,e.jsx)(g.p8,{width:800,height:600,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(v,{tabIndex:p,zoom:b,onTabIndex:h,onZoom:c})})})},v=function(h){var c=(0,i.Oc)(),d=c.act,p=c.data,C=c.config,j=(0,n.L)([(0,s.Ul)(function(I){return I.name}),(0,s.Ul)(function(I){return I==null?void 0:I.x}),(0,s.Ul)(function(I){return I==null?void 0:I.y}),(0,s.Ul)(function(I){return I==null?void 0:I.realZ})])(p.crewmembers||[]),b;return h.tabIndex===0?b=(0,e.jsxs)(a.XI,{children:[(0,e.jsxs)(a.XI.Row,{header:!0,children:[(0,e.jsx)(a.XI.Cell,{children:"Name"}),(0,e.jsx)(a.XI.Cell,{children:"Status"}),(0,e.jsx)(a.XI.Cell,{children:"Location"})]}),j.map(function(I){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsxs)(a.XI.Cell,{children:[I.name," (",I.assignment,")"]}),(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.az,{inline:!0,color:f(I),children:x(I)}),I.sensor_type>=2?(0,e.jsxs)(a.az,{inline:!0,children:["(",(0,e.jsx)(a.az,{inline:!0,color:"red",children:I.brute}),"|",(0,e.jsx)(a.az,{inline:!0,color:"orange",children:I.fire}),"|",(0,e.jsx)(a.az,{inline:!0,color:"green",children:I.tox}),"|",(0,e.jsx)(a.az,{inline:!0,color:"blue",children:I.oxy}),")"]}):null]}),(0,e.jsx)(a.XI.Cell,{children:I.sensor_type===3?p.isAI?(0,e.jsx)(a.$n,{fluid:!0,icon:"location-arrow",content:I.area+" ("+I.x+", "+I.y+")",onClick:function(){return d("track",{track:I.ref})}}):I.area+" ("+I.x+", "+I.y+", "+I.z+")":"Not Available"})]},I.ref)})]}):h.tabIndex===1?b=(0,e.jsx)(u,{zoom:h.zoom,onZoom:h.onZoom}):b="ERROR",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:h.tabIndex===0,onClick:function(){return h.onTabIndex(0)},children:[(0,e.jsx)(a.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(a.tU.Tab,{selected:h.tabIndex===1,onClick:function(){return h.onTabIndex(1)},children:[(0,e.jsx)(a.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(a.az,{m:2,children:b})]})},u=function(h){var c=(0,i.Oc)(),d=c.act,p=c.config,C=c.data;return(0,e.jsx)(a.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(a.tx,{onZoom:function(j){return h.onZoom(j)},children:C.crewmembers.filter(function(j){return j.sensor_type===3&&~~j.realZ===~~p.mapZLevel}).map(function(j){return(0,e.jsx)(a.tx.Marker,{x:j.x,y:j.y,zoom:h.zoom,icon:"circle",tooltip:j.name+" ("+j.assignment+")",color:f(j)},j.ref)})})})}},84097:function(P,y,t){"use strict";t.r(y),t.d(y,{Cryo:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],a=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=function(m){return(0,e.jsx)(r.p8,{width:520,height:470,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(x,{})})})},x=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.isOperating,d=h.hasOccupant,p=h.occupant,C=p===void 0?[]:p,j=h.cellTemperature,b=h.cellTemperatureStatus,I=h.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Occupant",flexGrow:"1",buttons:(0,e.jsx)(n.$n,{icon:"user-slash",onClick:function(){return u("ejectOccupant")},disabled:!d,children:"Eject"}),children:d?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.jsx)(n.zv,{value:Math.round(C.health)})})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:a[C.stat][0],children:a[C.stat][1]}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(n.zv,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.jsx)(n.Ki.Divider,{}),i.map(function(O){return(0,e.jsx)(n.Ki.Item,{label:O.label,children:(0,e.jsx)(n.z2,{value:C[O.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(n.zv,{value:Math.round(C[O.type])})})},O.id)})]}):(0,e.jsx)(n.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(n.wn,{title:"Cell",buttons:(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return u("ejectBeaker")},disabled:!I,children:"Eject Beaker"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return u(c?"switchOff":"switchOn")},selected:c,children:c?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",color:b,children:[(0,e.jsx)(n.zv,{value:j})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",children:(0,e.jsx)(f,{})})]})})]})},f=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.isBeakerLoaded,d=h.beakerLabel,p=h.beakerVolume;return c?(0,e.jsxs)(e.Fragment,{children:[d||(0,e.jsx)(n.az,{color:"average",children:"No label"}),(0,e.jsx)(n.az,{color:!p&&"bad",children:p?(0,e.jsx)(n.zv,{value:p,format:function(C){return Math.round(C)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded"})}},38210:function(P,y,t){"use strict";t.r(y),t.d(y,{CryoStorage:function(){return a},CryoStorageCrew:function(){return g},CryoStorageItems:function(){return x}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.real_name,c=u.allow_items,d=(0,s.useState)(0),p=d[0],C=d[1];return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",h,"."]}),p===0&&(0,e.jsx)(g,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},g=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:h.length&&h.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.items;return(0,e.jsx)(r.wn,{title:"Stored Items",buttons:(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("allitems")},children:"Claim All"}),children:h.length&&h.map(function(c){return(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("item",{ref:c.ref})},children:c.name},c.ref)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},52102:function(P,y,t){"use strict";t.r(y),t.d(y,{CryoStorageItemsVr:function(){return x},CryoStorageVr:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=t(38210),g=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.real_name,c=u.allow_items,d=(0,s.useState)(0),p=d[0],C=d[1];return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",h,"."]}),p===0&&(0,e.jsx)(a.CryoStorageCrew,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:h.length&&h.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},84909:function(P,y,t){"use strict";t.r(y),t.d(y,{DNAForensics:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.scan_progress,v=f.scanning,u=f.bloodsamp,h=f.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{selected:v,disabled:!u,icon:"power-off",onClick:function(){return x("scanItem")},children:v?"Halt Scan":"Begin Scan"}),(0,e.jsx)(n.$n,{disabled:!u,icon:"eject",onClick:function(){return x("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(n.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:m,maxValue:100})})})}),(0,e.jsx)(n.wn,{title:"Blood Sample",children:u&&(0,e.jsxs)(n.az,{children:[u,(0,e.jsx)(n.az,{color:"label",children:h})]})||(0,e.jsx)(n.az,{color:"bad",children:"No blood sample inserted."})})]})})}},13732:function(P,y,t){"use strict";t.r(y),t.d(y,{DNAModifier:function(){return f}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(5425),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],x=[5,10,20,30,50],f=function(O){var _=(0,s.Oc)(),D=_.act,M=_.data,A=M.irradiating,R=M.dnaBlockSize,K=M.occupant,N=!K.isViableSubject||!K.uniqueIdentity||!K.structuralEnzymes,k;return A&&(k=(0,e.jsx)(b,{duration:A})),(0,e.jsxs)(r.p8,{width:660,height:870,children:[(0,e.jsx)(i.ComplexModal,{}),k,(0,e.jsxs)(r.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(m,{isDNAInvalid:N}),(0,e.jsx)(v,{isDNAInvalid:N})]})]})},m=function(O){var _=(0,s.Oc)(),D=_.act,M=_.data,A=M.locked,R=M.hasOccupant,K=M.occupant;return(0,e.jsx)(n.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(n.$n,{disabled:!R,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Engaged":"Disengaged",onClick:function(){return D("toggleLock")}}),(0,e.jsx)(n.$n,{disabled:!R||A,icon:"user-slash",content:"Eject",onClick:function(){return D("ejectOccupant")}})]}),children:R?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:K.minHealth,max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:a[K.stat][0],children:a[K.stat][1]}),(0,e.jsx)(n.Ki.Divider,{})]})}),O.isDNAInvalid?(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.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)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Radiation",children:(0,e.jsx)(n.z2,{min:"0",max:"100",value:K.radiationLevel/100,color:"average"})}),(0,e.jsx)(n.Ki.Item,{label:"Unique Enzymes",children:M.occupant.uniqueEnzymes?M.occupant.uniqueEnzymes:(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(n.az,{color:"label",children:"Cell unoccupied."})})},v=function(O){var _=(0,s.Oc)(),D=_.act,M=_.data,A=M.selectedMenuKey,R=M.hasOccupant,K=M.occupant;if(R){if(O.isDNAInvalid)return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No operation possible on this subject."]})})})}else return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant in DNA modifier."]})})});var N;return A==="ui"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(c,{})]}):A==="se"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(c,{})]}):A==="buffer"?N=(0,e.jsx)(d,{}):A==="rejuvenators"&&(N=(0,e.jsx)(j,{})),(0,e.jsxs)(n.wn,{flexGrow:"1",children:[(0,e.jsx)(n.tU,{children:g.map(function(k,V){return(0,e.jsxs)(n.tU.Tab,{selected:A===k[0],onClick:function(){return D("selectMenuKey",{key:k[0]})},children:[(0,e.jsx)(n.In,{name:k[2]}),k[1]]},V)})}),N]})},u=function(O){var _=(0,s.Oc)(),D=_.act,M=_.data,A=M.selectedUIBlock,R=M.selectedUISubBlock,K=M.selectedUITarget,N=M.dnaBlockSize,k=M.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Unique Identifier",level:"2",children:[(0,e.jsx)(I,{dnaString:k.uniqueIdentity,selectedBlock:A,selectedSubblock:R,blockSize:N,action:"selectUIBlock"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:K,format:function(V){return V.toString(16).toUpperCase()},ml:"0",onChange:function(V,F){return D("changeUITarget",{value:F})}})})}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return D("pulseUIRadiation")}})]})},h=function(O){var _=(0,s.Oc)(),D=_.act,M=_.data,A=M.selectedSEBlock,R=M.selectedSESubBlock,K=M.dnaBlockSize,N=M.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.jsx)(I,{dnaString:N.structuralEnzymes,selectedBlock:A,selectedSubblock:R,blockSize:K,action:"selectSEBlock"}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",onClick:function(){return D("pulseSERadiation")}})]})},c=function(O){var _=(0,s.Oc)(),D=_.act,M=_.data,A=M.radiationIntensity,R=M.radiationDuration;return(0,e.jsxs)(n.wn,{title:"Radiation Emitter",level:"2",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Intensity",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:A,popUpPosition:"right",ml:"0",onChange:function(K,N){return D("radiationIntensity",{value:N})}})}),(0,e.jsx)(n.Ki.Item,{label:"Duration",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:R,popUpPosition:"right",ml:"0",onChange:function(K,N){return D("radiationDuration",{value:N})}})})]}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return D("pulseRadiation")}})]})},d=function(O){var _=(0,s.Oc)(),D=_.act,M=_.data,A=M.buffers,R=A.map(function(K,N){return(0,e.jsx)(p,{id:N+1,name:"Buffer "+(N+1),buffer:K},N)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Buffers",level:"2",children:R}),(0,e.jsx)(C,{})]})},p=function(O){var _=(0,s.Oc)(),D=_.act,M=_.data,A=O.id,R=O.name,K=O.buffer,N=M.isInjectorReady,k=R+(K.data?" - "+K.label:"");return(0,e.jsx)(n.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(n.wn,{title:k,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!K.data,icon:"trash",content:"Clear",onClick:function(){return D("bufferOption",{option:"clear",id:A})}}),(0,e.jsx)(n.$n,{disabled:!K.data,icon:"pen",content:"Rename",onClick:function(){return D("bufferOption",{option:"changeLabel",id:A})}}),(0,e.jsx)(n.$n,{disabled:!K.data||!M.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return D("bufferOption",{option:"saveDisk",id:A})}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Write",children:[(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return D("bufferOption",{option:"saveUI",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return D("bufferOption",{option:"saveUIAndUE",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return D("bufferOption",{option:"saveSE",id:A})}}),(0,e.jsx)(n.$n,{disabled:!M.hasDisk||!M.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return D("bufferOption",{option:"loadDisk",id:A})}})]}),!!K.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Subject",children:K.owner||(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[K.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!K.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(n.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Injector",mb:"0",onClick:function(){return D("bufferOption",{option:"createInjector",id:A})}}),(0,e.jsx)(n.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Block Injector",mb:"0",onClick:function(){return D("bufferOption",{option:"createInjector",id:A,block:1})}}),(0,e.jsx)(n.$n,{icon:"user",content:"Subject",mb:"0",onClick:function(){return D("bufferOption",{option:"transfer",id:A})}})]})]})]}),!K.data&&(0,e.jsx)(n.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},C=function(O){var _=(0,s.Oc)(),D=_.act,M=_.data,A=M.hasDisk,R=M.disk;return(0,e.jsx)(n.wn,{title:"Data Disk",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!A||!R.data,icon:"trash",content:"Wipe",onClick:function(){return D("wipeDisk")}}),(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return D("ejectDisk")}})]}),children:A?R.data?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Label",children:R.label?R.label:"No label"}),(0,e.jsx)(n.Ki.Item,{label:"Subject",children:R.owner?R.owner:(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[R.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!R.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(n.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(n.In,{name:"save-o",size:"4"}),(0,e.jsx)("br",{}),"No disk inserted."]})})},j=function(O){var _=(0,s.Oc)(),D=_.act,M=_.data,A=M.isBeakerLoaded,R=M.beakerVolume,K=M.beakerLabel;return(0,e.jsx)(n.wn,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return D("ejectBeaker")}}),children:A?(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Inject",children:[x.map(function(N,k){return(0,e.jsx)(n.$n,{disabled:N>R,icon:"syringe",content:N,onClick:function(){return D("injectRejuvenators",{amount:N})}},k)}),(0,e.jsx)(n.$n,{disabled:R<=0,icon:"syringe",content:"All",onClick:function(){return D("injectRejuvenators",{amount:R})}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(n.az,{mb:"0.5rem",children:K||"No label"}),R?(0,e.jsxs)(n.az,{color:"good",children:[R," unit",R===1?"":"s"," remaining"]}):(0,e.jsx)(n.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",size:"4"}),(0,e.jsx)("br",{}),"No beaker loaded."]})})},b=function(O){return(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"spinner",size:"5",spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(n.In,{name:"radiation"}),"\xA0Irradiating occupant\xA0",(0,e.jsx)(n.In,{name:"radiation"})]})}),(0,e.jsx)(n.az,{color:"label",children:(0,e.jsxs)("h3",{children:["For ",O.duration," second",O.duration===1?"":"s"]})})]})},I=function(O){for(var _=function(Z){for(var X=function(oe){var ne=oe+1;Q.push((0,e.jsx)(n.$n,{selected:K===z&&N===ne,content:F[Z+oe],mb:"0",onClick:function(){return M(V,{block:z,subblock:ne})}}))},z=Z/k+1,Q=[],ee=0;ee1?"Dangerous!":null]},C.stage)})||(0,e.jsx)(n.az,{children:"No virus sample loaded."})}),(0,e.jsxs)(n.wn,{level:2,title:"Affected Species",color:"label",children:[!p||!p.length?"None":null,p.sort().join(", ")]}),(0,e.jsxs)(n.wn,{level:2,title:"Reverse Engineering",children:[(0,e.jsx)(n.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),h.map(function(C){return(0,e.jsx)(n.$n,{content:C.stage,icon:"exchange-alt",onClick:function(){return m("grab",{grab:C.reference})}},C.stage)}),(0,e.jsx)(n.$n,{content:"Species",icon:"exchange-alt",onClick:function(){return m("affected_species")}})]})]})]})},g=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.dish_inserted,h=v.buffer,c=v.species_buffer,d=v.effects,p=v.info,C=v.growth,j=v.affected_species,b=v.busy;return(0,e.jsxs)(n.wn,{title:"Storage",children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Memory Buffer",children:h?(0,e.jsxs)(n.az,{children:[h.name," (",h.stage,")"]}):c?(0,e.jsx)(n.az,{children:c}):"Empty"})}),(0,e.jsx)(n.$n,{mt:1,icon:"save",content:"Save To Disk",disabled:!h&&!c,onClick:function(){return m("disk")}}),h?(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #1",disabled:h.stage>1,onClick:function(){return m("splice",{splice:1})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #2",disabled:h.stage>2,onClick:function(){return m("splice",{splice:2})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #3",disabled:h.stage>3,onClick:function(){return m("splice",{splice:3})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #4",disabled:h.stage>4,onClick:function(){return m("splice",{splice:4})}})]}):c?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"pen",content:"Splice Species",disabled:!c||p,onClick:function(){return m("splice",{splice:5})}})}):null]})}},44421:function(P,y,t){"use strict";t.r(y),t.d(y,{DishIncubator:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(24158),i=t(84905),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.on,u=m.system_in_use,h=m.food_supply,c=m.radiation,d=m.growth,p=m.toxins,C=m.chemicals_inserted,j=m.can_breed_virus,b=m.chemical_volume,I=m.max_chemical_volume,O=m.dish_inserted,_=m.blood_already_infected,D=m.virus,M=m.analysed,A=m.infection_rate;return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"On":"Off",onClick:function(){return f("power")}}),children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return f("rad")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return f("flush")}})})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:h})}),(0,e.jsx)(n.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:100,color:c>=50?"bad":d>=25?"average":"good",value:c,children:[(0,r.qQ)(c*1e4)," \xB5Sv"]})}),(0,e.jsx)(n.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:p})})]})]}),(0,e.jsx)(n.wn,{title:j?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eject",content:"Eject "+(j?"Vial":"Chemicals"),disabled:!C,onClick:function(){return f("ejectchem")}}),(0,e.jsx)(n.$n,{icon:"virus",content:"Breed Virus",disabled:!j,onClick:function(){return f("virus")}})]}),children:C&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Volume",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:I,value:b,children:[b,"/",I]})}),(0,e.jsxs)(n.Ki.Item,{label:"Breeding Environment",color:j?"good":"average",children:[O?j?"Suitable":"No hemolytic samples detected":"N/A",_?(0,e.jsx)(n.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(n.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(n.wn,{title:"Virus Dish",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Dish",disabled:!O,onClick:function(){return f("ejectdish")}}),children:O?D?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:d})}),(0,e.jsx)(n.Ki.Item,{label:"Infection Rate",children:M?A:"Unknown."})]}):(0,e.jsx)(n.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(n.az,{color:"average",children:"No dish loaded."})})]})})}},26598:function(P,y,t){"use strict";t.r(y),t.d(y,{DisposalBin:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.mode,v=f.pressure,u=f.isAI,h=f.panel_open,c=f.flushing,d,p;return m===2?(d="good",p="Ready"):m<=0?(d="bad",p="N/A"):m===1?(d="average",p="Pressurizing"):(d="average",p="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"State",color:d,children:p}),(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:v,minValue:0,maxValue:100})})]}),(0,e.jsx)(n.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Handle",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:u||h,content:"Disengaged",selected:c?null:"selected",onClick:function(){return x("disengageHandle")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:u||h,content:"Engaged",selected:c?"selected":null,onClick:function(){return x("engageHandle")}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Power",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:m===-1,content:"Off",selected:m?null:"selected",onClick:function(){return x("pumpOff")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:m===-1,content:"On",selected:m?"selected":null,onClick:function(){return x("pumpOn")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Eject",children:(0,e.jsx)(n.$n,{icon:"sign-out-alt",disabled:u,content:"Eject Contents",onClick:function(){return x("eject")}})})]})]})})})}},26763:function(P,y,t){"use strict";t.r(y),t.d(y,{DroneConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.drones,v=f.areas,u=f.selected_area,h=f.fabricator,c=f.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(n.$n,{disabled:!h,selected:c,icon:"power-off",content:c?"Enabled":"Disabled",onClick:function(){return x("toggle_fab")}}),children:h?(0,e.jsx)(n.az,{color:"good",children:"Linked."}):(0,e.jsxs)(n.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(n.$n,{icon:"sync",content:"Search for Fabricator",onClick:function(){return x("search_fab")}})]})}),(0,e.jsxs)(n.wn,{title:"Request Drone",children:[(0,e.jsx)(n.ms,{options:v?v.sort():null,selected:u,width:"100%",onSelected:function(d){return x("set_dcall_area",{area:d})}}),(0,e.jsx)(n.$n,{icon:"share-square",content:"Send Ping",onClick:function(){return x("ping")}})]}),(0,e.jsx)(n.wn,{title:"Maintenance Units",children:m&&m.length?(0,e.jsx)(n.Ki,{children:m.map(function(d){return(0,e.jsx)(n.Ki.Item,{label:d.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Resync",onClick:function(){return x("resync",{ref:d.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return x("shutdown",{ref:d.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:d.loc}),(0,e.jsxs)(n.Ki.Item,{label:"Charge",children:[d.charge," / ",d.maxCharge]}),(0,e.jsx)(n.Ki.Item,{label:"Active",children:d.active?"Yes":"No"})]})},d.name)})}):(0,e.jsx)(n.az,{color:"bad",children:"No drones detected."})})]})})}},74680:function(P,y,t){"use strict";t.r(y),t.d(y,{EmbeddedController:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(47868),a=(0,i.h)("fuck"),g={},x=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=K.internalTemplateName,k=g[N];if(!k)throw Error("Unable to find Component for template name: "+N);return(0,e.jsx)(r.p8,{width:450,height:340,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(k,{})})})},f=function(M){var A=M.bars;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsx)(n.Ki,{children:A.map(function(R){return(0,e.jsx)(n.Ki.Item,{label:R.label,children:(0,e.jsx)(n.z2,{color:R.color(R.value),minValue:R.minValue,maxValue:R.maxValue,value:R.value,children:R.textValue})},R.label)})})})},m=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act,N=!0;R.interior_status&&R.interior_status.state==="open"?N=!1:R.external_pressure&&R.chamber_pressure&&(N=!(Math.abs(R.external_pressure-R.chamber_pressure)>5));var k=!0;return R.exterior_status&&R.exterior_status.state==="open"?k=!1:R.internal_pressure&&R.chamber_pressure&&(k=!(Math.abs(R.internal_pressure-R.chamber_pressure)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:R.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return K("cycle_ext")}}),(0,e.jsx)(n.$n,{disabled:R.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return K("cycle_int")}})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:R.airlock_disabled,color:N?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return K("force_ext")}}),(0,e.jsx)(n.$n.Confirm,{disabled:R.airlock_disabled,color:k?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return K("force_int")}})]})]})},v=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(u,{}),undocking:(0,e.jsx)(n.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(n.az,{color:"good",children:"INITIALIZING..."})},k=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return R.exterior_status.state==="open"?k=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):R.exterior_status.lock==="unlocked"?k=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):R.exterior_status.lock==="locked"&&(k=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Escape Pod Status",children:N[R.docking_status]}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:k})]})})},u=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act;return R.armed?(0,e.jsx)(n.az,{color:"average",children:"ARMED"}):(0,e.jsx)(n.az,{color:"good",children:"SYSTEMS OK"})},h=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:!R.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:R.docking_status!=="docked"?"bad":"",onClick:function(){return K("force_door")}}),(0,e.jsx)(n.$n,{selected:R.override_enabled,color:R.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return K("toggle_override")}})]})},c=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(n.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(n.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(n.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"NOT IN USE"})},k=N[R.docking_status];return R.override_enabled&&(k=(0,e.jsxs)(n.az,{color:"bad",children:[R.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),k},d=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=function(V){return V<80||V>120?"bad":V<95||V>110?"average":"good"},k=[{minValue:0,maxValue:202,value:K.external_pressure,label:"External Pressure",textValue:K.external_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.internal_pressure,label:"Internal Pressure",textValue:K.internal_pressure+" kPa",color:N}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:k}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Purge",onClick:function(){return R("purge")}}),(0,e.jsx)(n.$n,{icon:"lock-open",content:"Secure",onClick:function(){return R("secure")}})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleAdvanced=d;var p=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleSimple=p;var C=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}},{minValue:0,maxValue:100,value:K.chamber_phoron,label:"Chamber Phoron",textValue:K.chamber_phoron+" mol",color:function(k){return k>5?"bad":k>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsolePhoron=C;var j=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Dock",buttons:K.airlock_disabled||K.override_enabled?(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}}):null,children:(0,e.jsx)(c,{})}),(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleDocking=j;var b=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return K.exterior_status.state==="open"?N=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):K.exterior_status.lock==="unlocked"?N=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):K.exterior_status.lock==="locked"&&(N=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!K.override_enabled,content:"Force exterior door",onClick:function(){return R("force_door")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:N})]})})};g.DockingConsoleSimple=b;var I=function(M){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Docking Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.wn,{title:"Airlocks",children:A.airlocks.length?(0,e.jsx)(n.Ki,{children:A.airlocks.map(function(R){return(0,e.jsx)(n.Ki.Item,{color:R.override_enabled?"bad":"good",label:R.name,children:R.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},R.name)})}):(0,e.jsx)(n.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(n.In,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})};g.DockingConsoleMulti=I;var O=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=K.interior_status.state==="open"||K.exterior_status.state==="closed",k=K.exterior_status.state==="open"||K.interior_status.state==="closed";return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:N?"arrow-left":"exclamation-triangle",content:N?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){R(N?"cycle_ext_door":"force_ext")}}),(0,e.jsx)(n.$n,{icon:k?"arrow-right":"exclamation-triangle",content:k?"Cycle To Interior":"Lock Interior Door",onClick:function(){R(k?"cycle_int_door":"force_int")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Exterior Door Status",children:K.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.jsx)(n.Ki.Item,{label:"Interior Door Status",children:K.interior_status.state==="closed"?"Locked":"Open"})]})})};g.DoorAccessConsole=O;var _=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:K.armed,color:K.armed?"bad":"average",content:"ARM",onClick:function(){return R("manual_arm")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!K.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return R("force_launch")}})]})]})]})};g.EscapePodConsole=_;var D=function(M){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsx)(h,{})})]})};g.EscapePodBerthConsole=D},37624:function(P,y,t){"use strict";t.r(y),t.d(y,{DisplayDetails:function(){return x},EntityNarrate:function(){return a},EntitySelection:function(){return g},ModeSelector:function(){return f},NarrationInput:function(){return m}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data;return(0,e.jsx)(i.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(g,{})})}),(0,e.jsx)(r.so.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsx)(r.so.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Details",children:(0,e.jsx)(x,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(f,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(m,{})})]})})})]})})})})},g=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.selection_mode,p=c.multi_id_selection,C=c.entity_names;return(0,e.jsx)(r.so,{direction:"column",grow:!0,children:(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Choose!",buttons:(0,e.jsx)(r.$n,{selected:d,fill:!0,content:"Multi-Selection",onClick:function(){return h("change_mode_multi")}}),children:(0,e.jsx)(r.tU,{vertical:!0,children:C.map(function(j){return(0,e.jsx)(r.tU.Tab,{selected:p.includes(j),onClick:function(){return h("select_entity",{id_selected:j})},children:(0,e.jsx)(r.az,{inline:!0,children:j})},j)})})})})})},x=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.selection_mode,p=c.number_mob_selected,C=c.selected_id,j=c.selected_name,b=c.selected_type;return d?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",p]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",j," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",b," ",(0,e.jsx)("br",{})]})},f=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.privacy_select,p=c.mode_select;return(0,e.jsxs)(r.so,{direction:"row",children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return h("change_mode_privacy")},selected:d,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(d?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:d?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return h("change_mode_narration")},selected:p,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(p?"Click here to emote visibly.":"Click here to talk audiably."),content:p?"Currently: Emoting":"Currently: Talking"})})]})},m=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=(0,s.useState)(""),p=d[0],C=d[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return h("narrate",{message:p})},content:"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(j,b){return C(b)},value:p||""})})})})}},36907:function(P,y,t){"use strict";t.r(y),t.d(y,{ExonetNode:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.allowPDAs,u=f.allowCommunicators,h=f.allowNewscasters,c=f.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,content:"Power "+(m?"On":"Off"),onClick:function(){return x("toggle_power")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"Open":"Closed",onClick:function(){return x("toggle_PDA_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return x("toggle_communicator_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,content:h?"Open":"Closed",onClick:function(){return x("toggle_newscaster_port")}})})]})}),(0,e.jsx)(n.wn,{title:"Logging",children:(0,e.jsxs)(n.so,{wrap:"wrap",children:[c.map(function(d,p){return(0,e.jsx)(n.so.Item,{m:"2px",basis:"49%",grow:p%2,children:d},p)}),!c||c.length===0?(0,e.jsx)(n.az,{color:"average",children:"No logs found."}):null]})})]})})}},47926:function(P,y,t){"use strict";t.r(y),t.d(y,{ExosuitFabricator:function(){return A},Materials:function(){return K}});var e=t(88095),s=t(11358),n=t(5229),r=t(84352),i=t(33854),a=t(44583),g=t(4413),x=t(92514),f=t(24158),m=t(84905);function v(X,z){(z==null||z>X.length)&&(z=X.length);for(var Q=0,ee=new Array(z);Q=X.length?{done:!0}:{done:!1,value:X[ee++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},d=0,p=1,C=2,j,b=(j={},j[d]=!1,j[p]="average",j[C]="bad",j),I=function(X){var z={};return X.forEach(function(Q){z[Q.name]=Q.amount}),z},O=function(X,z,Q){return X>Q?{color:C,deficit:X-Q}:z>Q?{color:p,deficit:X}:X+z>Q?{color:p,deficit:X+z-Q}:{color:d,deficit:0}},_=function(X,z,Q){var ee={textColor:d};return Object.keys(Q.cost).forEach(function(oe){ee[oe]=O(Q.cost[oe],z[oe],X[oe]),ee[oe].color>ee.textColor&&(ee.textColor=ee[oe].color)}),ee},D=function(X,z){var Q={},ee={},oe={},ne={};return z.forEach(function(ue,ce){ne[ce]=d,Object.keys(ue.cost).forEach(function(me){Q[me]=Q[me]||0,oe[me]=oe[me]||0,ee[me]=O(ue.cost[me],Q[me],X[me]),ee[me].color!==d?ne[ce]1&&ne0});return ue.length===0?(0,e.jsxs)(x.az,{textAlign:"center",children:[(0,e.jsx)(x.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(x.so,{wrap:"wrap",children:ue.map(function(ce){return(0,e.jsxs)(x.so.Item,{width:"80px",children:[(0,e.jsx)(N,{name:ce.name,amount:ce.amount,formatsi:!0}),!oe&&(0,e.jsx)(x.az,{mt:1,style:{"text-align":"center"},children:(0,e.jsx)(R,{material:ce})})]},ce.name)||null})})},N=function(X){var z=X.name,Q=X.amount,ee=X.formatsi,oe=X.formatmoney,ne=X.color,ue=X.style,ce="0";return Q<1&&Q>0?ce=(0,n.Mg)(Q,2):ee?ce=(0,f.QL)(Q,0):oe?ce=(0,f.up)(Q):ce=Q,(0,e.jsxs)(x.so,{direction:"column",align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.m_,{position:"bottom",content:(0,i.Sn)(z),children:(0,e.jsx)(x.az,{className:(0,r.Ly)(["sheetmaterials32x32",c[z]]),position:"relative",style:ue})})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{textColor:ne,style:{"text-align":"center"},children:ce})})]})},k=function(X){var z=(0,g.Oc)().data,Q=z.partSets||[],ee=z.buildableParts||{},oe=(0,g.QY)("part_tab",Q.length?ee[0]:""),ne=oe[0],ue=oe[1];return(0,e.jsx)(x.tU,{vertical:!0,children:Q.map(function(ce){return!!ee[ce]&&(0,e.jsx)(x.tU.Tab,{selected:ce===ne,disabled:!ee[ce],onClick:function(){return ue(ce)},children:ce},ce)})})},V=function(X){var z=(0,g.Oc)().data,Q=function(Ke){for(var Be=h(Ke),ct;!(ct=Be()).done;){var xt=ct.value;if(oe[xt])return xt}return null},ee=z.partSets||[],oe=z.buildableParts||[],ne=X.queueMaterials,ue=X.materials,ce=(0,g.QY)("part_tab",Q(ee)),me=ce[0],xe=ce[1],ve=(0,g.QY)("search_text",""),be=ve[0],we=ve[1];if(!me||!oe[me]){var Je=Q(ee);if(Je)xe(Je);else return}var ze;return be?(ze=[],M(be,oe).forEach(function(Ke){Ke.format=_(ue,ne,Ke),ze.push(Ke)})):(ze={Parts:[]},oe[me].forEach(function(Ke){if(Ke.format=_(ue,ne,Ke),!Ke.subCategory){ze.Parts.push(Ke);return}Ke.subCategory in ze||(ze[Ke.subCategory]=[]),ze[Ke.subCategory].push(Ke)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.wn,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{mr:1,children:(0,e.jsx)(x.In,{name:"search"})}),(0,e.jsx)(x.so.Item,{grow:1,children:(0,e.jsx)(x.pd,{fluid:!0,placeholder:"Search for...",value:be,onInput:function(Ke,Be){return we(Be)}})})]})}),!!be&&(0,e.jsx)(F,{name:"Search Results",parts:ze,forceShow:!0,placeholder:"No matching results..."})||Object.keys(ze).map(function(Ke){return(0,e.jsx)(F,{name:Ke,parts:ze[Ke]},Ke)})]})},F=function(X){var z=(0,g.Oc)(),Q=z.act,ee=z.data,oe=ee.buildingPart,ne=X.parts,ue=X.name,ce=X.forceShow,me=X.placeholder,xe=(0,g.QY)("display_mats",!1),ve=xe[0];return(!!ne.length||ce)&&(0,e.jsxs)(x.wn,{title:ue,buttons:(0,e.jsx)(x.$n,{disabled:!ne.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return Q("add_queue_set",{part_list:ne.map(function(be){return be.id})})}}),children:[!ne.length&&me,ne.map(function(be){return(0,e.jsxs)(a.Fragment,{children:[(0,e.jsxs)(x.so,{align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{disabled:oe||be.format.textColor===C,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return Q("build_part",{id:be.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return Q("add_queue_part",{id:be.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:b[be.format.textColor],children:be.name})}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+be.printTime+"s. "+(be.desc||""),tooltipPosition:"left"})})]}),ve&&(0,e.jsx)(x.so,{mb:2,children:Object.keys(be.cost).map(function(we){return(0,e.jsx)(x.so.Item,{width:"50px",color:b[be.format[we].color],children:(0,e.jsx)(N,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:we,amount:be.cost[we]})},we)})})]},be.name)})]})},J=function(X){var z=(0,g.Oc)(),Q=z.act,ee=z.data,oe=ee.isProcessingQueue,ne=ee.queue||[],ue=X.queueMaterials,ce=X.missingMaterials,me=X.textColors;return(0,e.jsxs)(x.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(x.so.Item,{height:0,grow:1,children:(0,e.jsx)(x.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.$n.Confirm,{disabled:!ne.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return Q("clear_queue")}}),!!oe&&(0,e.jsx)(x.$n,{disabled:!ne.length,content:"Stop",icon:"stop",onClick:function(){return Q("stop_queue")}})||(0,e.jsx)(x.$n,{disabled:!ne.length,content:"Build Queue",icon:"play",onClick:function(){return Q("build_queue")}})]}),children:(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Z,{})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Y,{textColors:me})})]})})}),!!ne.length&&(0,e.jsx)(x.so.Item,{mt:1,children:(0,e.jsx)(x.wn,{title:"Material Cost",children:(0,e.jsx)(H,{queueMaterials:ue,missingMaterials:ce})})})]})},H=function(X){var z=X.queueMaterials,Q=X.missingMaterials;return(0,e.jsx)(x.so,{wrap:"wrap",children:Object.keys(z).map(function(ee){return(0,e.jsxs)(x.so.Item,{width:"12%",children:[(0,e.jsx)(N,{formatmoney:!0,name:ee,amount:z[ee]}),!!Q[ee]&&(0,e.jsx)(x.az,{textColor:"bad",style:{"text-align":"center"},children:(0,f.up)(Q[ee])})]},ee)})})},Y=function(X){var z=(0,g.Oc)(),Q=z.act,ee=z.data,oe=X.textColors,ne=ee.queue||[];return ne.length?ne.map(function(ue,ce){return(0,e.jsx)(x.az,{children:(0,e.jsxs)(x.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(x.so.Item,{basis:"content",children:(0,e.jsx)(x.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return Q("del_queue_part",{index:ce+1})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:b[oe[ce]],children:ue.name})})]})},ue.name)}):(0,e.jsx)(e.Fragment,{children:"No parts in queue."})},Z=function(X){var z=(0,g.Oc)().data,Q=z.buildingPart,ee=z.storedPart;if(ee){var oe=ee.name;return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:oe}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(Q){var ne=Q.name,ue=Q.duration,ce=Q.printTime,me=Math.ceil(ue/10);return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:ce,value:ue,children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:ne}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:me>=0&&me+"s"||"Dispensing..."})]})})})}}},83151:function(P,y,t){"use strict";t.r(y),t.d(y,{Farmbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.locked,u=f.tank,h=f.tankVolume,c=f.tankMaxVolume,d=f.waters_trays,p=f.refills_water,C=f.uproots_weeds,j=f.replaces_nutriment,b=f.collects_produce,I=f.removes_dead;return(0,e.jsx)(r.p8,{width:450,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("power")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water Tank",children:u&&(0,e.jsxs)(n.z2,{value:h,maxValue:c,children:[h," / ",c]})||(0,e.jsx)(n.az,{color:"average",children:"No water tank detected."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:v?"good":"bad",children:v?"Locked":"Unlocked"})]})}),!v&&(0,e.jsxs)(n.wn,{title:"Behavior Controls",children:[(0,e.jsx)(n.wn,{level:2,title:"Watering Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water plants",children:(0,e.jsx)(n.$n,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return x("water")},children:d?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Refill watertank",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("refill")},children:p?"Yes":"No"})})]})}),(0,e.jsx)(n.wn,{level:2,title:"Weeding controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Weed plants",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("weed")},children:C?"Yes":"No"})})})}),(0,e.jsx)(n.wn,{level:2,title:"Nutriment controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Replace fertilizer",children:(0,e.jsx)(n.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return x("replacenutri")},children:j?"Yes":"No"})})})})]})||null]})})}},60381:function(P,y,t){"use strict";t.r(y),t.d(y,{Fax:function(){return g},FaxContent:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(71451),a=t(1887),g=function(v){var u=(0,s.Oc)().data,h=u.authenticated,c=u.copyItem,d=340;return c&&(d=358),h?(0,e.jsx)(r.p8,{width:600,height:d,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(f,{}),(0,e.jsx)(i.LoginInfo,{}),(0,e.jsx)(x,{})]})}):(0,e.jsx)(r.p8,{width:600,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(f,{}),(0,e.jsx)(a.LoginScreen,{machineType:"Fax"})]})})},x=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.bossName,p=c.copyItem,C=c.cooldown,j=c.destination,b=c.adminDepartments,I=new Set(b);return(0,e.jsxs)(n.wn,{children:[!!C&&(0,e.jsx)(n.IC,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"Network",children:[d," Quantum Entanglement Network"]})}),p&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Currently Sending",children:[p," ",(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return h("rename")},tooltip:"Renames the paper. This changes its preview in staff chat when sending to centcom/job board/supply (admin departments). It is advisable to name your faxes something self-explanatory for quick response."})]}),(0,e.jsx)(n.Ki.Item,{label:"Sending To",children:(0,e.jsx)(n.$n,{icon:"map-marker-alt",content:j,onClick:function(){return h("dept")}})})]}),(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return h("send")},content:"Send",fluid:!0})]})||(0,e.jsx)(n.az,{mt:1,children:"Please insert item to transmit."}),(0,e.jsx)(m,{})]})},f=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.copyItem;return d?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",onClick:function(){return h("remove")},content:"Remove Item"})}):null},m=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.adminDepartments,p=c.destination,C=c.copyItem,j=new Set(d),b="1rem";return C&&(b="1.5rem"),!C||C&&j.has(p)?(0,e.jsxs)(n.az,{mt:"1.5rem",children:[(0,e.jsx)("b",{children:"Or submit an automated staff request."})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsxs)("i",{children:["The automated staff request form automatically populates the company job board ((sends to discord, but does not ping.)) without requiring intervention from central command clerks and officers. ",(0,e.jsx)("br",{}),"It also works without requiring a written request to be composed."]}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{mt:"1.5rem",children:(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return h("send_automated_staff_request")},content:"Send Automated Staff Request",fluid:!0})})]}):null}},90646:function(P,y,t){"use strict";t.r(y),t.d(y,{FileCabinet:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.contents,u=(0,s.Ul)(function(h){return h.name})(v||[]);return(0,e.jsx)(i.p8,{width:350,height:300,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:u.map(function(h){return(0,e.jsx)(r.$n,{fluid:!0,icon:"file",content:h.name,onClick:function(){return f("retrieve",{ref:h.ref})}},h.ref)})})})})}},67747:function(P,y,t){"use strict";t.r(y),t.d(y,{Floorbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.open,u=f.locked,h=f.vocal,c=f.amount,d=f.possible_bmode,p=f.improvefloors,C=f.eattiles,j=f.maketiles,b=f.bmode;return(0,e.jsx)(r.p8,{width:390,height:310,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("start")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Tiles Left",children:(0,e.jsx)(n.zv,{value:c})}),(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("vocal")},children:h?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Improves Floors",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("improve")},children:p?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Finds Tiles",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("tiles")},children:C?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.jsx)(n.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return x("make")},children:j?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Bridge Mode",children:(0,e.jsx)(n.ms,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:d,onSelected:function(I){return x("bridgemode",{dir:I})}})})]})})||null]})})}},79697:function(P,y,t){"use strict";t.r(y),t.d(y,{GasPump:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.pressure_set,u=f.last_flow_rate,h=f.last_power_draw,c=f.max_power_draw;return(0,e.jsx)(r.p8,{width:470,height:290,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:u/10})," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Load",children:(0,e.jsx)(n.z2,{value:h,minValue:0,maxValue:c,color:h=100?d="Running":!m&&v>0&&(d="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:m?"This will disable gravity!":"This will enable gravity!",onClick:function(){return x("gentoggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Breaker Setting",children:m?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",children:["Generator ",d]}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Status",children:[v,"%"]})]})})})})}},4171:function(P,y,t){"use strict";t.r(y),t.d(y,{GuestPass:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.access,u=m.area,h=m.giver,c=m.giveName,d=m.reason,p=m.duration,C=m.mode,j=m.log,b=m.uid;return(0,e.jsx)(i.p8,{width:500,height:520,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:C===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return f("mode",{mode:0})}}),children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",onClick:function(){return f("print")},fluid:!0,mb:1}),(0,e.jsx)(r.wn,{level:2,title:"Logs",children:j.length&&j.map(function(I){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:I}},I)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+b,buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",onClick:function(){return f("mode",{mode:1})}}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{content:h||"Insert ID",onClick:function(){return f("id")}})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{content:c,onClick:function(){return f("giv_name")}})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{content:d,onClick:function(){return f("reason")}})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{content:p,onClick:function(){return f("duration")}})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return f("issue")}}),(0,e.jsx)(r.wn,{title:"Access",level:2,children:(0,s.Ul)(function(I){return I.area_name})(u).map(function(I){return(0,e.jsx)(r.$n.Checkbox,{checked:I.on,content:I.area_name,onClick:function(){return f("access",{access:I.area})}},I.area)})})]})})})}},92753:function(P,y,t){"use strict";t.r(y),t.d(y,{GyrotronControl:function(){return i},GyrotronControlContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.gyros;return(0,e.jsx)(n.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(n.XI.Cell,{children:"Strength"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.active?"Online":"Offline",selected:u.active,disabled:!u.deployed,onClick:function(){return f("toggle_active",{gyro:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.active&&"yellow",value:u.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(h,c){return f("set_rate",{gyro:u.ref,rate:c})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.active&&"yellow",value:u.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(h,c){return f("set_str",{gyro:u.ref,str:c})}})})]},u.name)})]})})}},75825:function(P,y,t){"use strict";t.r(y),t.d(y,{Holodeck:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.supportedPrograms,v=f.restrictedPrograms,u=f.currentProgram,h=f.isSilicon,c=f.safetyDisabled,d=f.emagged,p=f.gravity,C=m;return c&&(C=C.concat(v)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:C.map(function(j){return(0,e.jsx)(n.$n,{color:v.indexOf(j)!==-1?"bad":null,icon:"eye",content:j,selected:u===j,fluid:!0,onClick:function(){return x("program",{program:j})}},j)})}),!!h&&(0,e.jsx)(n.wn,{title:"Override",children:(0,e.jsxs)(n.$n,{icon:"exclamation-triangle",fluid:!0,disabled:d,color:c?"good":"bad",onClick:function(){return x("AIoverride")},children:[!!d&&"Error, unable to control. ",c?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:c?(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(n.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{icon:"user-astronaut",selected:p,onClick:function(){return x("gravity")},children:p?"Enabled":"Disabled"})})]})})]})})}},79258:function(P,y,t){"use strict";t.r(y),t.d(y,{ICAssembly:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.total_parts,c=u.max_components,d=u.total_complexity,p=u.max_complexity,C=u.battery_charge,j=u.battery_max,b=u.net_power,I=u.unremovable_circuits,O=u.removable_circuits;return(0,e.jsx)(a.p8,{width:600,height:380,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:h/c,maxValue:1,children:[h," / ",c," (",(0,s.LI)(h/c*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:d/p,maxValue:1,children:[d," / ",p," (",(0,s.LI)(d/p*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:C&&(0,e.jsxs)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:C/j,maxValue:1,children:[C," / ",j," (",(0,s.LI)(C/j*100,1),"%)"]})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:b===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:b,format:function(_){return"-"+(0,i.d5)(Math.abs(_))+"/s"}})})]})}),I.length&&(0,e.jsx)(x,{title:"Built-in Components",circuits:I})||null,O.length&&(0,e.jsx)(x,{title:"Removable Components",circuits:O})||null]})})},x=function(f){var m=(0,n.Oc)().act,v=f.title,u=f.circuits;return(0,e.jsx)(r.wn,{title:v,children:(0,e.jsx)(r.Ki,{children:u.map(function(h){return(0,e.jsxs)(r.Ki.Item,{label:h.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("open_circuit",{ref:h.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("rename_circuit",{ref:h.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("scan_circuit",{ref:h.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("remove_circuit",{ref:h.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("bottom_circuit",{ref:h.ref})},children:"Move to Bottom"})]},h.ref)})})})}},36585:function(P,y,t){"use strict";t.r(y),t.d(y,{ICCircuit:function(){return g}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.name,d=h.desc,p=h.displayed_name,C=h.removable,j=h.complexity,b=h.power_draw_idle,I=h.power_draw_per_use,O=h.extended_desc,_=h.inputs,D=h.outputs,M=h.activators;return(0,e.jsx)(a.p8,{width:600,height:400,resizable:!0,title:p,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return u("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return u("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return u("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:j}),b&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,i.d5)(b)})||null,I&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,i.d5)(I)})||null]}),O]}),(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)(x,{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:p,mb:1,children:(0,e.jsx)(r.az,{children:d})})}),D.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(x,{list:D})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:M.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return u("pin_name",{pin:A.ref})},children:A.pulse_out?"":""}),(0,e.jsx)(f,{pin:A})]},A.name)})})]})]})})},x=function(m){var v=(0,n.Oc)().act,u=m.list;return u.map(function(h){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return v("pin_name",{pin:h.ref})},children:[(0,s.jT)(h.type),": ",h.name]}),(0,e.jsx)(r.$n,{onClick:function(){return v("pin_data",{pin:h.ref})},children:h.data}),(0,e.jsx)(f,{pin:h})]},h.ref)})},f=function(m){var v=(0,n.Oc)().act,u=m.pin;return u.linked.map(function(h){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return v("pin_unwire",{pin:u.ref,link:h.ref})},children:h.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return v("examine",{ref:h.holder_ref})},children:h.holder_name})]},h.ref)})}},43040:function(P,y,t){"use strict";t.r(y),t.d(y,{ICDetailer:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.detail_color,u=m.color_list;return(0,e.jsx)(i.p8,{width:420,height:254,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(u).map(function(h,c){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,s.Sn)(h),tooltipPosition:c%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return f("change_color",{color:h})},style:u[h]===v?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[h]},h)})})})})}},93204:function(P,y,t){"use strict";t.r(y),t.d(y,{ICPrinter:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.metal,c=u.max_metal,d=u.metal_per_sheet,p=u.debug,C=u.upgraded,j=u.can_clone,b=u.assembly_to_clone,I=u.categories;return(0,e.jsx)(i.p8,{width:600,height:630,children:(0,e.jsxs)(i.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:h,maxValue:c,children:[h/d," / ",c/d," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:C?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:j?"Available":"Unavailable"})]}),(0,e.jsx)(r.az,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(x,{})]})})},g=function(f,m){return!(!f.can_build||f.cost>m.metal)},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.categories,c=u.debug,d=(0,n.QY)("categoryTarget",null),p=d[0],C=d[1],j=(0,s.pb)(function(b){return b.name===p})(h)[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,s.Ul)(function(b){return b.name})(h).map(function(b){return(0,e.jsx)(r.tU.Tab,{selected:p===b.name,onClick:function(){return C(b.name)},children:b.name},b.name)})})}),(0,e.jsx)(r.BJ.Item,{children:j&&(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,s.Ul)(function(b){return b.name})(j.items).map(function(b){return(0,e.jsx)(r.Ki.Item,{label:b.name,labelColor:b.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!g(b,u),icon:"print",onClick:function(){return v("build",{build:b.path})},children:"Print"}),children:b.desc},b.name)})})})||"No category selected."})]})})}},7627:function(P,y,t){"use strict";t.r(y),t.d(y,{IDCard:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(89863),a=function(g){var x=(0,s.Oc)().data,f=x.registered_name,m=x.sex,v=x.species,u=x.age,h=x.assignment,c=x.fingerprint_hash,d=x.blood_type,p=x.dna_hash,C=x.photo_front,j=[{name:"Sex",val:m},{name:"Species",val:v},{name:"Age",val:u},{name:"Blood Type",val:d},{name:"Fingerprint",val:c},{name:"DNA Hash",val:p}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(n.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:C&&(0,e.jsx)("img",{src:C.substr(1,C.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.jsx)(n.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(n.so.Item,{basis:0,grow:1,children:(0,e.jsx)(n.Ki,{children:j.map(function(b){return(0,e.jsx)(n.Ki.Item,{label:b.name,children:b.val},b.name)})})})]}),(0,e.jsxs)(n.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:f})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(i.RankIcon,{rank:h})})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:h})})]})]})})})}},17575:function(P,y,t){"use strict";t.r(y),t.d(y,{IdentificationComputer:function(){return f},IdentificationComputerAccessModification:function(){return u},IdentificationComputerContent:function(){return m},IdentificationComputerPrinting:function(){return v},IdentificationComputerRegions:function(){return h}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(84905),x=t(41608),f=function(){return(0,e.jsx)(g.p8,{width:600,height:700,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(m,{})})})},m=function(c){var d=(0,i.Oc)(),p=d.act,C=d.data,j=c.ntos,b=C.mode,I=C.has_modify,O=C.printing,_=(0,e.jsx)(u,{ntos:j});return j&&!C.have_id_slot?_=(0,e.jsx)(x.CrewManifestContent,{}):O?_=(0,e.jsx)(v,{}):b===1&&(_=(0,e.jsx)(x.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(!j||!!C.have_id_slot)&&(0,e.jsx)(a.tU.Tab,{icon:"home",selected:b===0,onClick:function(){return p("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(a.tU.Tab,{icon:"home",selected:b===1,onClick:function(){return p("mode",{mode_target:1})},children:"Crew Manifest"}),!j||!!C.have_printer&&(0,e.jsx)(a.tU.Tab,{float:"right",icon:"print",onClick:function(){return p("print")},disabled:!b&&!I,color:"",children:"Print"})]}),_]})},v=function(c){return(0,e.jsx)(a.wn,{title:"Printing",children:"Please wait..."})},u=function(c){var d=(0,i.Oc)(),p=d.act,C=d.data,j=c.ntos,b=C.station_name,I=C.target_name,O=C.target_owner,_=C.scan_name,D=C.authenticated,M=C.has_modify,A=C.account_number,R=C.centcom_access,K=C.all_centcom_access,N=C.regions,k=C.id_rank,V=C.departments;return(0,e.jsxs)(a.wn,{title:"Access Modification",children:[!D&&(0,e.jsx)(a.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(a.$n,{icon:"eject",fluid:!0,content:I,onClick:function(){return p("modify")}})}),!j&&(0,e.jsx)(a.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(a.$n,{icon:"eject",fluid:!0,content:_,onClick:function(){return p("scan")}})})]}),!!D&&!!M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.wn,{title:"Details",level:2,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(a.pd,{value:O,fluid:!0,onInput:function(F,J){return p("reg",{reg:J})}})}),(0,e.jsx)(a.Ki.Item,{label:"Account Number",children:(0,e.jsx)(a.pd,{value:A,fluid:!0,onInput:function(F,J){return p("account",{account:J})}})}),(0,e.jsx)(a.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(a.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+O,confirmContent:"You are dismissing "+O+", confirm?",onClick:function(){return p("terminate")}})})]})}),(0,e.jsx)(a.wn,{title:"Assignment",level:2,children:(0,e.jsxs)(a.XI,{children:[V.map(function(F){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{header:!0,verticalAlign:"middle",children:F.department_name}),(0,e.jsx)(a.XI.Cell,{children:F.jobs.map(function(J){return(0,e.jsx)(a.$n,{selected:J.job===k,onClick:function(){return p("assign",{assign_target:J.job})},children:(0,n.jT)(J.display_name)},J.job)})})]}),(0,e.jsx)(a.az,{mt:-1,children:"\xA0"})," "]},F.department_name)}),(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.$n,{onClick:function(){return p("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!R&&(0,e.jsx)(a.wn,{title:"Central Command",level:2,children:K.map(function(F){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,selected:F.allowed,onClick:function(){return p("access",{access_target:F.ref,allowed:F.allowed})},children:(0,n.jT)(F.desc)})},F.ref)})})||(0,e.jsx)(a.wn,{title:b,level:2,children:(0,e.jsx)(h,{actName:"access"})})]})]})},h=function(c){var d=(0,i.Oc)(),p=d.act,C=d.data,j=c.actName,b=C.regions;return(0,e.jsx)(a.so,{wrap:"wrap",spacing:1,children:(0,s.Ul)(function(I){return I.name})(b).map(function(I){return(0,e.jsx)(a.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(a.wn,{title:I.name,height:"100%",children:(0,s.Ul)(function(O){return O.desc})(I.accesses).map(function(O){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,selected:O.allowed,onClick:function(){return p(j,{access_target:O.ref,allowed:O.allowed})},children:(0,n.jT)(O.desc)})},O.ref)})})},I.name)})})}},15654:function(P,y,t){"use strict";t.r(y),t.d(y,{InventoryPanel:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.slots,v=f.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:m&&m.length&&m.map(function(u){return(0,e.jsx)(n.Ki.Item,{label:u.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:u.item?"hand-paper":"gift",onClick:function(){return x(u.act)},children:u.item||"Nothing"})},u.name)})})}),v&&(0,e.jsx)(n.wn,{title:"Actions",children:v&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("internals")},children:"Set Internals"})||null})||null]})})}},54577:function(P,y,t){"use strict";t.r(y),t.d(y,{InventoryPanelHuman:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.slots,v=f.specialSlots,u=f.internals,h=f.internalsValid,c=f.sensors,d=f.handcuffed,p=f.handcuffedParams,C=f.legcuffed,j=f.legcuffedParams,b=f.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[m&&m.length&&m.map(function(I){return(0,e.jsx)(n.Ki.Item,{label:I.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:I.item?"hand-paper":"gift",onClick:function(){return x(I.act,I.params)},children:I.item||"Nothing"})},I.name)}),(0,e.jsx)(n.Ki.Divider,{}),v&&v.length&&v.map(function(I){return(0,e.jsx)(n.Ki.Item,{label:I.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:I.item?"hand-paper":"gift",onClick:function(){return x(I.act,I.params)},children:I.item||"Nothing"})},I.name)})]})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"running",onClick:function(){return x("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return x("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),h&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,c&&(0,e.jsx)(n.$n,{fluid:!0,icon:"book-medical",onClick:function(){return x("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,d&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",p)},children:"Handcuffed"})||null,C&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",j)},children:"Legcuffed"})||null,b&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},46382:function(P,y,t){"use strict";t.r(y),t.d(y,{IsolationCentrifuge:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.busy,v=f.antibodies,u=f.pathogens,h=f.is_antibody_sample,c=f.sample_inserted,d=(0,e.jsx)(n.az,{color:"average",children:"No vial detected."});return c&&(!v&&!u?d=(0,e.jsx)(n.az,{color:"average",children:"No antibodies or viral strains detected."}):d=(0,e.jsxs)(e.Fragment,{children:[v?(0,e.jsx)(n.wn,{title:"Antibodies",children:v}):null,u.length?(0,e.jsx)(n.wn,{title:"Pathogens",children:(0,e.jsx)(n.Ki,{children:u.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.name,children:p.spread_type},p.name)})})}):null]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:m?(0,e.jsx)(n.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(n.az,{color:"bad",children:m})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:h?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"print",content:"Print",disabled:!v&&!u.length,onClick:function(){return x("print")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!c,onClick:function(){return x("sample")}})})]}),d]}),v&&!h||u.length?(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[v&&!h?(0,e.jsx)(n.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(n.$n,{icon:"pen",content:v,onClick:function(){return x("antibody")}})}):null,u.length?(0,e.jsx)(n.Ki.Item,{label:"Isolate Strain",children:u.map(function(p){return(0,e.jsx)(n.$n,{icon:"pen",content:p.name,onClick:function(){return x("isolate",{isolate:p.reference})}},p.name)})}):null]})}):null]})})})}},58189:function(P,y,t){"use strict";t.r(y),t.d(y,{JanitorCart:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.mybag,h=v.mybucket,c=v.mymop,d=v.myspray,p=v.myreplacer,C=v.signs,j=v.icons;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:u||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return m("bag")},children:(0,e.jsx)(g,{iconkey:"mybag"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:h||"Bucket Slot",tooltipPosition:"bottom",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return m("bucket")},children:(0,e.jsx)(g,{iconkey:"mybucket"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:c||"Mop Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){return m("mop")},children:(0,e.jsx)(g,{iconkey:"mymop"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:d||"Spray Slot",tooltipPosition:"top-end",color:d?"grey":"transparent",style:{border:d?null:"2px solid grey"},onClick:function(){return m("spray")},children:(0,e.jsx)(g,{iconkey:"myspray"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:p||"Light Replacer Slot",tooltipPosition:"top",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return m("replacer")},children:(0,e.jsx)(g,{iconkey:"myreplacer"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:C||"Signs Slot",tooltipPosition:"top-start",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return m("sign")},children:(0,e.jsx)(g,{iconkey:"signs"})})]})})},a={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},g=function(x){var f=(0,s.Oc)().data,m=x.iconkey,v=f.icons;return m in v?(0,e.jsx)("img",{src:v[m].substr(1,v[m].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,e.jsx)(n.In,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:a[m]})}},11434:function(P,y,t){"use strict";t.r(y),t.d(y,{Jukebox:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.playing,u=m.loop_mode,h=m.volume,c=m.current_track_ref,d=m.current_track,p=m.current_genre,C=m.percent,j=m.tracks,b=j.length&&j.reduce(function(O,_){var D=_.genre||"Uncategorized";return O[D]||(O[D]=[]),O[D].push(_),O},{}),I=v&&(p||"Uncategorized");return(0,e.jsx)(i.p8,{width:450,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Currently Playing",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:v&&d&&(0,e.jsxs)(r.az,{children:[d.title," by ",d.artist||"Unkown"]})||(0,e.jsx)(r.az,{children:"Stopped"})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"play",disabled:v,onClick:function(){return f("play")},children:"Play"}),(0,e.jsx)(r.$n,{icon:"stop",disabled:!v,onClick:function(){return f("stop")},children:"Stop"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(r.$n,{icon:"play",onClick:function(){return f("loopmode",{loopmode:1})},selected:u===1,children:"Next"}),(0,e.jsx)(r.$n,{icon:"random",onClick:function(){return f("loopmode",{loopmode:2})},selected:u===2,children:"Shuffle"}),(0,e.jsx)(r.$n,{icon:"redo",onClick:function(){return f("loopmode",{loopmode:3})},selected:u===3,children:"Repeat"}),(0,e.jsx)(r.$n,{icon:"step-forward",onClick:function(){return f("loopmode",{loopmode:4})},selected:u===4,children:"Once"})]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{value:C,maxValue:1,color:"good"})}),(0,e.jsx)(r.Ki.Item,{label:"Volume",children:(0,e.jsx)(r.Ap,{minValue:0,step:1,value:h*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(O){return(0,s.LI)(O,1)+"%"},onChange:function(O,_){return f("volume",{val:(0,s.LI)(_/100,2)})}})})]})}),(0,e.jsx)(r.wn,{title:"Available Tracks",children:j.length&&Object.keys(b).sort().map(function(O){return(0,e.jsx)(r.Nt,{title:O,color:I===O?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{"margin-left":"1em"},children:b[O].map(function(_){return(0,e.jsx)(r.$n,{fluid:!0,icon:"play",selected:c===_.ref,onClick:function(){return f("change_track",{change_track:_.ref})},children:_.title},_.ref)})})},O)})||(0,e.jsx)(r.az,{color:"bad",children:"Error: No songs loaded."})})]})})}},58503:function(P,y,t){"use strict";t.r(y),t.d(y,{LawManager:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905);function i(){return i=Object.assign||function(u){for(var h=1;h=0)&&(c[p]=u[p]);return c}var g=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[p&&(0,e.jsxs)(n.IC,{info:!0,children:["Law-synced to ",p]})||null,(0,e.jsx)(x,{})]})})},x=function(u){var h=(0,s.QY)("lawsTabIndex",0),c=h[0],d=h[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:c===0,onClick:function(){return d(0)},children:"Law Management"}),(0,e.jsx)(n.tU.Tab,{selected:c===1,onClick:function(){return d(1)},children:"Law Sets"})]}),c===0&&(0,e.jsx)(f,{})||null,c===1&&(0,e.jsx)(v,{})||null]})},f=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.ion_law_nr,C=d.ion_law,j=d.zeroth_law,b=d.inherent_law,I=d.supplied_law,O=d.supplied_law_position,_=d.zeroth_laws,D=d.has_zeroth_laws,M=d.ion_laws,A=d.has_ion_laws,R=d.inherent_laws,K=d.has_inherent_laws,N=d.supplied_laws,k=d.has_supplied_laws,V=d.isAI,F=d.isMalf,J=d.isAdmin,H=d.channel,Y=d.channels,Z=_.map(function(X){return X.zero=!0,X}).concat(R);return(0,e.jsxs)(n.wn,{children:[A&&(0,e.jsx)(m,{laws:M,title:p+" Laws:",mt:-2})||null,(D||K)&&(0,e.jsx)(m,{laws:Z,title:"Inherent Laws",mt:-2})||null,k&&(0,e.jsx)(m,{laws:N,title:"Supplied Laws",mt:-2})||null,(0,e.jsx)(n.wn,{level:2,title:"Controls",mt:-2,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Statement Channel",children:Y.map(function(X){return(0,e.jsx)(n.$n,{content:X.channel,selected:H===X.channel,onClick:function(){return c("law_channel",{law_channel:X.channel})}},X.channel)})}),(0,e.jsx)(n.Ki.Item,{label:"State Laws",children:(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return c("state_laws")},children:"State Laws"})}),V&&(0,e.jsx)(n.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(n.$n,{icon:"exclamation",onClick:function(){return c("notify_laws")},children:"Notify"})})||null]})}),F&&(0,e.jsx)(n.wn,{level:2,title:"Add Laws",mt:-2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Add"})]}),J&&!D&&(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:j,fluid:!0,onChange:function(X,z){return c("change_zeroth_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_zeroth_law")},children:"Add"})})]})||null,(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:C,fluid:!0,onChange:function(X,z){return c("change_ion_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Inherent"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:b,fluid:!0,onChange:function(X,z){return c("change_inherent_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Supplied"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:I,fluid:!0,onChange:function(X,z){return c("change_supplied_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return c("change_supplied_law_position")},children:O})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_supplied_law")},children:"Add"})})]})]})})||null]})},m=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.isMalf,C=d.isAdmin,j=u.laws,b=u.title,I=u.noButtons,O=a(u,["laws","title","noButtons"]);return(0,e.jsx)(n.wn,i({level:2,title:b},O,{children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),!I&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"State"})||null,p&&!I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Delete"})]})||null]}),j.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[_.index,"."]}),(0,e.jsx)(n.XI.Cell,{color:_.zero?"bad":null,children:_.law}),!I&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"volume-up",selected:_.state,onClick:function(){return c("state_law",{ref:_.ref,state_law:!_.state})},children:_.state?"Yes":"No"})})||null,p&&!I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:_.zero&&!C,icon:"pen",onClick:function(){return c("edit_law",{edit_law:_.ref})},children:"Edit"})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:_.zero&&!C,color:"bad",icon:"trash",onClick:function(){return c("delete_law",{delete_law:_.ref})},children:"Delete"})})]})||null]},_.index)})]})}))},v=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.isMalf,C=d.law_sets;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),C.length&&C.map(function(j){return(0,e.jsxs)(n.wn,{title:j.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{disabled:!p,icon:"sync",onClick:function(){return c("transfer_laws",{transfer_laws:j.ref})},children:"Load Laws"}),(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return c("state_law_set",{state_law_set:j.ref})},children:"State Laws"})]}),children:[j.laws.has_ion_laws&&(0,e.jsx)(m,{noButtons:!0,laws:j.laws.ion_laws,title:j.laws.ion_law_nr+" Laws:"})||null,(j.laws.has_zeroth_laws||j.laws.has_inherent_laws)&&(0,e.jsx)(m,{noButtons:!0,laws:j.laws.zeroth_laws.concat(j.laws.inherent_laws),title:j.header})||null,j.laws.has_supplied_laws&&(0,e.jsx)(m,{noButtons:!0,laws:j.laws.supplied_laws,title:"Supplied Laws"})||null]},j.name)})||null]})}},93455:function(P,y,t){"use strict";t.r(y),t.d(y,{ListInputModal:function(){return f}});var e=t(88095),s=t(44583),n=t(61652),r=t(4413),i=t(92514),a=t(84905),g=t(12035),x=t(18513),f=function(u){var h=(0,r.Oc)(),c=h.act,d=h.data,p=d.items,C=p===void 0?[]:p,j=d.message,b=j===void 0?"":j,I=d.init_value,O=d.large_buttons,_=d.timeout,D=d.title,M=(0,s.useState)(C.indexOf(I)),A=M[0],R=M[1],K=(0,s.useState)(C.length>9),N=K[0],k=K[1],V=(0,s.useState)(""),F=V[0],J=V[1],H=function(ne){var ue=ee.length-1;if(ne===n.R)if(A===null||A===ue){var ce;R(0),(ce=document.getElementById("0"))==null||ce.scrollIntoView()}else{var me;R(A+1),(me=document.getElementById((A+1).toString()))==null||me.scrollIntoView()}else if(ne===n.gf)if(A===null||A===0){var xe;R(ue),(xe=document.getElementById(ue.toString()))==null||xe.scrollIntoView()}else{var ve;R(A-1),(ve=document.getElementById((A-1).toString()))==null||ve.scrollIntoView()}},Y=function(ne){ne!==A&&R(ne)},Z=function(){k(!1),k(!0)},X=function(ne){var ue=String.fromCharCode(ne),ce=C.find(function(ve){return ve==null?void 0:ve.toLowerCase().startsWith(ue==null?void 0:ue.toLowerCase())});if(ce){var me,xe=C.indexOf(ce);R(xe),(me=document.getElementById(xe.toString()))==null||me.scrollIntoView()}},z=function(ne){var ue;ne!==F&&(J(ne),R(0),(ue=document.getElementById("0"))==null||ue.scrollIntoView())},Q=function(){k(!N),J("")},ee=C.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(F.toLowerCase())}),oe=325+Math.ceil(b.length/3)+(O?5:0);return N||setTimeout(function(){var ne;return(ne=document.getElementById(A.toString()))==null?void 0:ne.focus()},1),(0,e.jsxs)(a.p8,{title:D,width:325,height:oe,children:[_&&(0,e.jsx)(x.Loader,{value:_}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(ne){var ue=window.event?ne.which:ne.keyCode;(ue===n.R||ue===n.gf)&&(ne.preventDefault(),H(ue)),ue===n.Ri&&(ne.preventDefault(),c("submit",{entry:ee[A]})),!N&&ue>=n.W8&&ue<=n.bh&&(ne.preventDefault(),X(ue)),ue===n.s6&&(ne.preventDefault(),c("cancel"))},children:(0,e.jsx)(i.wn,{buttons:(0,e.jsx)(i.$n,{compact:!0,icon:N?"search":"font",selected:!0,tooltip:N?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){return Q()}}),className:"ListInput__Section",fill:!0,title:b,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(m,{filteredItems:ee,onClick:Y,onFocusSearch:Z,searchBarVisible:N,selected:A})}),N&&(0,e.jsx)(v,{filteredItems:ee,onSearch:z,searchQuery:F,selected:A}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:ee[A]})})]})})})]})},m=function(u){var h=(0,r.Oc)().act,c=u.filteredItems,d=u.onClick,p=u.onFocusSearch,C=u.searchBarVisible,j=u.selected;return(0,e.jsxs)(i.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(i.y5,{}),c.map(function(b,I){return(0,e.jsx)(i.$n,{color:"transparent",fluid:!0,onClick:function(){return d(I)},onDoubleClick:function(O){O.preventDefault(),h("submit",{entry:c[j]})},onKeyDown:function(O){var _=window.event?O.which:O.keyCode;C&&_>=n.W8&&_<=n.bh&&(O.preventDefault(),p())},selected:I===j,style:{animation:"none",transition:"none"},children:b.replace(/^\w/,function(O){return O.toUpperCase()})},I)})]})},v=function(u){var h=(0,r.Oc)().act,c=u.filteredItems,d=u.onSearch,p=u.searchQuery,C=u.selected;return(0,e.jsx)(i.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(j){j.preventDefault(),h("submit",{entry:c[C]})},onInput:function(j,b){return d(b)},placeholder:"Search...",value:p})}},4515:function(P,y,t){"use strict";t.r(y),t.d(y,{LookingGlass:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.supportedPrograms,v=f.currentProgram,u=f.immersion,h=f.gravity,c=Math.min(180+m.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:c,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:m.map(function(d){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",selected:d===v,onClick:function(){return x("program",{program:d})},children:d},d)})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"user-astronaut",selected:h,onClick:function(){return x("gravity")},children:h?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(n.$n,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return x("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},17542:function(P,y,t){"use strict";t.r(y),t.d(y,{MechaControlConsole:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.beacons,u=m.stored_data;return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[u.length&&(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return f("clear_log")}}),children:u.map(function(h){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",h.time,") (",h.year,")"]}),(0,e.jsx)(r.az,{children:(0,s.jT)(h.message)})]},h.time)})})})||null,v.length&&v.map(function(h){return(0,e.jsx)(r.wn,{title:h.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return f("send_message",{mt:h.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("get_log",{mt:h.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return f("shock",{mt:h.ref})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[h.maxHealth*.75,1/0],average:[h.maxHealth*.5,h.maxHealth*.75],bad:[-1/0,h.maxHealth*.5]},value:h.health,maxValue:h.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:h.cell&&(0,e.jsx)(r.z2,{ranges:{good:[h.cellMaxCharge*.75,1/0],average:[h.cellMaxCharge*.5,h.cellMaxCharge*.75],bad:[-1/0,h.cellMaxCharge*.5]},value:h.cellCharge,maxValue:h.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[h.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:h.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,s.Sn)(h.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:h.active||"None"}),h.cargoMax&&(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[h.cargoMax*.75,1/0],average:[h.cargoMax*.5,h.cargoMax*.75],good:[-1/0,h.cargoMax*.5]},value:h.cargoUsed,maxValue:h.cargoMax})})||null]})},h.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},97311:function(P,y,t){"use strict";t.r(y),t.d(y,{Medbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.open,u=f.beaker,h=f.beaker_total,c=f.beaker_max,d=f.locked,p=f.heal_threshold,C=f.heal_threshold_max,j=f.injection_amount_min,b=f.injection_amount,I=f.injection_amount_max,O=f.use_beaker,_=f.declare_treatment,D=f.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("power")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(n.$n,{disabled:!u,icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:u&&(0,e.jsxs)(n.z2,{value:h,maxValue:c,children:[h," / ",c]})||(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:d?"good":"bad",children:d?"Locked":"Unlocked"})]})}),!d&&(0,e.jsx)(n.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:0,maxValue:C,value:p,onDrag:function(M,A){return x("adj_threshold",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:j,maxValue:I,value:b,onDrag:function(M,A){return x("adj_inject",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(n.$n,{fluid:!0,icon:O?"toggle-on":"toggle-off",selected:O,onClick:function(){return x("use_beaker")},children:O?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(n.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(n.$n,{fluid:!0,icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return x("declaretreatment")},children:_?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{fluid:!0,icon:D?"toggle-on":"toggle-off",selected:D,onClick:function(){return x("togglevoice")},children:D?"On":"Off"})})]})})||null]})})}},98659:function(P,y,t){"use strict";t.r(y),t.d(y,{MedicalRecords:function(){return h}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(5425),a=t(84905),g=t(71451),x=t(1887),f=t(82489),m={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},v=function(_){(0,i.modalOpen)("edit",{field:_.edit,value:_.value})},u=function(_){var D=(0,n.Oc)().act,M=_.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:M.name||"Virus",buttons:(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return D("modal_close")}}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[M.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:M.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:M.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[M.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:M.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:M.symptoms.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.stage+". "+A.name,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",A.strength,"\xA0",(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",A.aggressiveness]},A.stage)})})})]})})})},h=function(_){var D=(0,n.Oc)().data,M=D.authenticated,A=D.screen;if(!M)return(0,e.jsx)(a.p8,{width:800,height:380,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var R;return A===2?R=(0,e.jsx)(c,{}):A===3?R=(0,e.jsx)(d,{}):A===4?R=(0,e.jsx)(p,{}):A===5?R=(0,e.jsx)(b,{}):A===6&&(R=(0,e.jsx)(I,{})),(0,e.jsxs)(a.p8,{width:800,height:380,children:[(0,e.jsx)(i.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(f.TemporaryNotice,{}),(0,e.jsx)(O,{}),(0,e.jsx)(r.wn,{height:"calc(100% - 5rem)",flexGrow:"1",children:R})]})]})},c=function(_){var D=(0,n.Oc)(),M=D.act,A=D.data,R=A.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(K,N){return M("search",{t1:N})}}),(0,e.jsx)(r.az,{mt:"0.5rem",children:R.map(function(K,N){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:K.id+": "+K.name,onClick:function(){return M("d_rec",{d_rec:K.ref})}},N)})})]})},d=function(_){var D=(0,n.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(r.$n.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return D("del_all")}})]})},p=function(_){var D=(0,n.Oc)(),M=D.act,A=D.data,R=A.medical,K=A.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General Data",level:2,mt:"-6px",children:(0,e.jsx)(C,{})}),(0,e.jsx)(r.wn,{title:"Medical Data",level:2,children:(0,e.jsx)(j,{})}),(0,e.jsxs)(r.wn,{title:"Actions",level:2,children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",disabled:!!R.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return M("del_r")}}),(0,e.jsx)(r.$n,{icon:K?"spinner":"print",disabled:K,iconSpin:!!K,content:"Print Entry",ml:"0.5rem",onClick:function(){return M("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return M("screen",{screen:2})}})]})]})},C=function(_){var D=(0,n.Oc)().data,M=D.general;return!M||!M.fields?(0,e.jsx)(r.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{width:"50%",float:"left",children:(0,e.jsx)(r.Ki,{children:M.fields.map(function(A,R){return(0,e.jsxs)(r.Ki.Item,{label:A.field,children:[(0,e.jsx)(r.az,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:A.value}),!!A.edit&&(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return v(A)}})]},R)})})}),(0,e.jsx)(r.az,{width:"50%",float:"right",textAlign:"right",children:!!M.has_photos&&M.photos.map(function(A,R){return(0,e.jsxs)(r.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:A.substr(1,A.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",R+1]},R)})})]})},j=function(_){var D=(0,n.Oc)(),M=D.act,A=D.data,R=A.medical;return!R||!R.fields?(0,e.jsxs)(r.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(r.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return M("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki,{children:R.fields.map(function(K,N){return(0,e.jsx)(r.Ki.Item,{label:K.field,children:(0,e.jsxs)(r.az,{preserveWhitespace:!0,children:[K.value,(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",mb:K.line_break?"1rem":"initial",onClick:function(){return v(K)}})]})},N)})}),(0,e.jsxs)(r.wn,{title:"Comments/Log",level:2,children:[R.comments.length===0?(0,e.jsx)(r.az,{color:"label",children:"No comments found."}):R.comments.map(function(K,N){return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:K.header}),(0,e.jsx)("br",{}),K.text,(0,e.jsx)(r.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return M("del_c",{del_c:N+1})}})]},N)}),(0,e.jsx)(r.$n,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,i.modalOpen)("add_c")}})]})]})},b=function(_){var D=(0,n.Oc)(),M=D.act,A=D.data,R=A.virus;return R.sort(function(K,N){return K.name>N.name?1:-1}),R.map(function(K,N){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",content:K.name,mb:"0.5rem",onClick:function(){return M("vir",{vir:K.D})}}),(0,e.jsx)("br",{})]},N)})},I=function(_){var D=(0,n.Oc)().data,M=D.medbots;return M.length===0?(0,e.jsx)(r.az,{color:"label",children:"There are no Medbots."}):M.map(function(A,R){return(0,e.jsx)(r.Nt,{open:!0,title:A.name,children:(0,e.jsx)(r.az,{px:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Location",children:[A.area||"Unknown"," (",A.x,", ",A.y,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:A.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"good",children:"Online"}),(0,e.jsx)(r.az,{mt:"0.5rem",children:A.use_beaker?"Reservoir: "+A.total_volume+"/"+A.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(r.az,{color:"average",children:"Offline"})})]})})},R)})},O=function(_){var D=(0,n.Oc)(),M=D.act,A=D.data,R=A.screen;return(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:R===2,onClick:function(){return M("screen",{screen:2})},children:[(0,e.jsx)(r.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===5,onClick:function(){return M("screen",{screen:5})},children:[(0,e.jsx)(r.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===6,onClick:function(){return M("screen",{screen:6})},children:[(0,e.jsx)(r.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===3,onClick:function(){return M("screen",{screen:3})},children:[(0,e.jsx)(r.In,{name:"wrench"}),"Record Maintenance"]})]})};(0,i.modalRegisterBodyOverride)("virus",u)},31825:function(P,y,t){"use strict";t.r(y),t.d(y,{MentorTicketPanel:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i={open:"Open",resolved:"Resolved",unknown:"Unknown"},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.id,u=m.title,h=m.name,c=m.state,d=m.opened_at,p=m.closed_at,C=m.opened_at_date,j=m.closed_at_date,b=m.actions,I=m.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"arrow-up",content:"Escalate",onClick:function(){return f("escalate")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return f("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Mentor Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:i[c]}),i[c]===i.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[C," (",Math.round(d/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[j," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return f("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(I).map(function(O,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:I[O]}},_)})})]})})})})}},68607:function(P,y,t){"use strict";t.r(y),t.d(y,{MessageMonitor:function(){return f}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=t(13221),x=t(82489),f=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.auth,_=I.linkedServer,D=I.message,M=I.hacking,A=I.emag,R;return M||A?R=(0,e.jsx)(m,{}):O?_?R=(0,e.jsx)(u,{}):R=(0,e.jsx)(i.az,{color:"bad",children:"ERROR"}):R=(0,e.jsx)(v,{}),(0,e.jsx)(a.p8,{width:670,height:450,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(x.TemporaryNotice,{}),R]})})},m=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.isMalfAI;return(0,e.jsx)(g.FullscreenNotice,{title:"ERROR",children:O?(0,e.jsx)(i.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(i.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"]})})},v=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.isMalfAI;return(0,e.jsxs)(g.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(i.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(i.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(i.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(i.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(_,D){return b("auth",{key:D})}})]}),!!O&&(0,e.jsx)(i.$n,{icon:"terminal",content:"Hack",onClick:function(){return b("hack")}}),(0,e.jsx)(i.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},u=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.linkedServer,_=(0,n.useState)(0),D=_[0],M=_[1],A;return D===0?A=(0,e.jsx)(h,{}):D===1?A=(0,e.jsx)(c,{logs:O.pda_msgs,pda:!0}):D===2?A=(0,e.jsx)(c,{logs:O.rc_msgs,rc:!0}):D===3?A=(0,e.jsx)(d,{}):D===4&&(A=(0,e.jsx)(p,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.tU,{children:[(0,e.jsxs)(i.tU.Tab,{selected:D===0,onClick:function(){return M(0)},children:[(0,e.jsx)(i.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(i.tU.Tab,{selected:D===1,onClick:function(){return M(1)},children:[(0,e.jsx)(i.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(i.tU.Tab,{selected:D===2,onClick:function(){return M(2)},children:[(0,e.jsx)(i.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(i.tU.Tab,{selected:D===3,onClick:function(){return M(3)},children:[(0,e.jsx)(i.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(i.tU.Tab,{selected:D===4,onClick:function(){return M(4)},children:[(0,e.jsx)(i.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(i.tU.Tab,{color:"red",onClick:function(){return b("deauth")},children:[(0,e.jsx)(i.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(i.az,{m:2,children:A})]})},h=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.linkedServer;return(0,e.jsxs)(i.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"link",content:"Server Link",onClick:function(){return b("find")}}),(0,e.jsx)(i.$n,{icon:"power-off",content:"Server "+(O.active?"Enabled":"Disabled"),selected:O.active,onClick:function(){return b("active")}})]}),children:[(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Server Status",children:(0,e.jsx)(i.az,{color:"good",children:"Good"})})}),(0,e.jsx)(i.$n,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return b("pass")}}),(0,e.jsx)(i.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,e.jsx)(i.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},c=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=C.logs,_=C.pda,D=C.rc;return(0,e.jsx)(i.wn,{title:_?"PDA Logs":D?"Request Logs":"Logs",buttons:(0,e.jsx)(i.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return b(_?"del_pda":"del_rc")}}),children:(0,e.jsx)(i.so,{wrap:"wrap",children:O.map(function(M,A){return(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:A%2,children:(0,e.jsx)(i.wn,{title:M.sender+" -> "+M.recipient,buttons:(0,e.jsx)(i.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return b("delete",{id:M.ref,type:D?"rc":"pda"})}}),children:D?(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Message",children:M.message}),(0,e.jsx)(i.Ki.Item,{label:"Verification",color:M.id_auth==="Unauthenticated"?"bad":"good",children:(0,s.jT)(M.id_auth)}),(0,e.jsx)(i.Ki.Item,{label:"Stamp",children:M.stamp})]}):M.message})},M.ref)})})})},d=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.possibleRecipients,_=I.customsender,D=I.customrecepient,M=I.customjob,A=I.custommessage,R=Object.keys(O);return(0,e.jsxs)(i.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Sender",children:(0,e.jsx)(i.pd,{fluid:!0,value:_,onChange:function(K,N){return b("set_sender",{val:N})}})}),(0,e.jsx)(i.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(i.pd,{fluid:!0,value:M,onChange:function(K,N){return b("set_sender_job",{val:N})}})}),(0,e.jsx)(i.Ki.Item,{label:"Recipient",children:(0,e.jsx)(i.ms,{selected:D,options:R,width:"100%",mb:-.7,onSelected:function(K){return b("set_recipient",{val:O[K]})}})}),(0,e.jsx)(i.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(i.pd,{fluid:!0,mb:.5,value:A,onChange:function(K,N){return b("set_message",{val:N})}})})]}),(0,e.jsx)(i.$n,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return b("send_message")}})]})},p=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.linkedServer;return(0,e.jsxs)(i.wn,{title:"Spam Filtering",children:[(0,e.jsx)(i.Ki,{children:O.spamFilter.map(function(_){return(0,e.jsx)(i.Ki.Item,{label:_.index,buttons:(0,e.jsx)(i.$n,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return b("deltoken",{deltoken:_.index})}}),children:_.token},_.index)})}),(0,e.jsx)(i.$n,{icon:"plus",content:"Add New Entry",onClick:function(){return b("addtoken")}})]})}},91015:function(P,y,t){"use strict";t.r(y),t.d(y,{Microwave:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.config,m=g.data,v=m.broken,u=m.operating,h=m.dirty,c=m.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:v&&(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||h&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||c.length&&(0,e.jsx)(n.wn,{level:1,title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"radiation",onClick:function(){return x("cook")},children:"Microwave"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("dispose")},children:"Eject"})]}),children:(0,e.jsx)(n.Ki,{children:c.map(function(d){return(0,e.jsxs)(n.Ki.Item,{label:d.name,children:[d.amt," ",d.extra]},d.name)})})})||(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:[f.title," is empty."]})})})})}},46258:function(P,y,t){"use strict";t.r(y),t.d(y,{MiningOreProcessingConsole:function(){return g}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=t(4418),g=function(u){var h=(0,n.Oc)(),c=h.act,d=h.data,p=d.unclaimedPoints,C=d.ores,j=d.showAllOres,b=d.power,I=d.speed;return(0,e.jsx)(i.p8,{width:400,height:500,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(a.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return c("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:I,onClick:function(){return c("speed_toggle")},children:I?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:b,onClick:function(){return c("power")},children:b?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.$n,{disabled:p<1,icon:"download",onClick:function(){return c("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:p})})})}),(0,e.jsx)(v,{})]})})},x=["Not Processing","Smelting","Compressing","Alloying"],f=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],m=function(u,h){return f.indexOf(u.ore)===-1||f.indexOf(h.ore)===-1?u.ore-h.ore:f.indexOf(h.ore)-f.indexOf(u.ore)},v=function(u){var h=(0,n.Oc)(),c=h.act,d=h.data,p=d.ores,C=d.showAllOres,j=d.power;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return c("showAllOres")},children:C?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:p.length&&p.sort(m).map(function(b){return(0,e.jsx)(r.Ki.Item,{label:(0,s.Sn)(b.name),buttons:(0,e.jsx)(r.ms,{width:"120px",color:b.processing===0&&"red"||b.processing===1&&"green"||b.processing===2&&"blue"||b.processing===3&&"yellow",options:x,selected:x[b.processing],onSelected:function(I){return c("toggleSmelting",{ore:b.ore,set:x.indexOf(I)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:b.amount})})},b.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},1703:function(P,y,t){"use strict";t.r(y),t.d(y,{MiningStackingConsole:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.stacktypes,u=m.stackingAmt;return(0,e.jsx)(i.p8,{width:400,height:500,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(h,c){return f("change_stack",{amt:c})}})}),(0,e.jsx)(r.Ki.Divider,{}),v.length&&v.sort().map(function(h){return(0,e.jsx)(r.Ki.Item,{label:(0,s.Sn)(h.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("release_stack",{stack:h.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:h.amt})},h.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},25620:function(P,y,t){"use strict";t.r(y),t.d(y,{MiningVendor:function(){return v}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=t(4418);function x(){return x=Object.assign||function(d){for(var p=1;p=0)&&(C[b]=d[b]);return C}var m={Alphabetical:function(d,p){return d.name>p.name},"By availability":function(d,p){return-(d.affordable-p.affordable)},"By price":function(d,p){return d.price-p.price}},v=function(d){var p=function(k){O(k)},C=function(k){M(k)},j=function(k){K(k)},b=(0,n.useState)(""),I=b[0],O=b[1],_=(0,n.useState)("Alphabetical"),D=_[0],M=_[1],A=(0,n.useState)(!1),R=A[0],K=A[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsxs)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(h,{searchText:I,sortOrder:D,descending:R,onSearchText:p,onSortOrder:C,onDescending:j}),(0,e.jsx)(u,{searchText:I,sortOrder:D,descending:R,onSearchText:p,onSortOrder:C,onDescending:j})]})})},u=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=j.has_id,I=j.id,O=j.items,_=(0,s.XZ)(d.searchText,function(A){return A[0]}),D=!1,M=Object.entries(O).map(function(A,R){var K=Object.entries(A[1]).filter(_).map(function(N){return N[1].affordable=b&&I.points>=N[1].price,N[1]}).sort(m[d.sortOrder]);if(K.length!==0)return d.descending&&(K=K.reverse()),D=!0,(0,e.jsx)(c,{title:A[0],items:K},A[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:D?M:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},h=function(d){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(p,C){return d.onSearchText(C)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:"Alphabetical",options:Object.keys(m),width:"100%",lineHeight:"19px",onSelected:function(p){return d.onSortOrder(p)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:d.descending?"arrow-down":"arrow-up",height:"19px",tooltip:d.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return d.onDescending(!d.descending)}})})]})})},c=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=d.title,I=d.items,O=f(d,["title","items"]);return(0,e.jsx)(i.Nt,x({open:!0,title:b},O,{children:I.map(function(_){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:_.name}),(0,e.jsx)(i.$n,{disabled:!j.has_id||j.id.points<_.price,content:_.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:b,name:_.name})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},_.name)})}))}},83326:function(P,y,t){"use strict";t.r(y),t.d(y,{MobSpawner:function(){return a}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=function(f){var m=function(Be){A.health=Be,Y(Be)},v=function(Be){A.max_health=Be,Y(Be)},u=function(Be){A.melee_damage_lower=Be,Y(Be)},h=function(Be){A.melee_damage_upper=Be,Y(Be)},c=function(Be){A.path_name=Be,Y(Be)},d=function(Be){A.desc=Be,Y(Be)},p=function(Be){A.flavor_text=Be,Y(Be)},C=function(Be){F(Be)},j=function(Be){z(Be)},b=function(Be){oe(Be)},I=function(Be){ce(Be)},O=function(Be){ve(Be)},_=function(Be){Je(Be)},D=(0,n.Oc)(),M=D.act,A=D.data,R=(0,s.useState)(0),K=R[0],N=R[1],k=(0,s.useState)(0),V=k[0],F=k[1],J=(0,s.useState)(),H=J[0],Y=J[1],Z=(0,s.useState)(A.initial_x),X=Z[0],z=Z[1],Q=(0,s.useState)(A.initial_y),ee=Q[0],oe=Q[1],ne=(0,s.useState)(A.initial_z),ue=ne[0],ce=ne[1],me=(0,s.useState)(100),xe=me[0],ve=me[1],be=(0,s.useState)(1),we=be[0],Je=be[1],ze=[];return ze[0]=(0,e.jsx)(g,{radius:V,x:X,y:ee,z:ue,sizeMultiplier:xe,amount:we,onRadius:C,onHealth:m,onMaxHealth:v,onMeleeDamageLower:u,onMeleeDamageupper:h,onName:c,onDesc:d,onFlavor:p,onX:j,onY:b,onZ:I,onSizeMultiplier:O,onAmount:_}),ze[1]=(0,e.jsx)(x,{}),(0,e.jsx)(i.p8,{width:890,height:880,theme:"abstract",children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:K===0,onClick:function(){return N(0)},children:"General Settings"}),(0,e.jsx)(r.tU.Tab,{selected:K===1,onClick:function(){return N(1)},children:"Vore Settings [WIP]"})]}),ze[K]||"Error"]})})},g=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Mob Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:u.path_name,onChange:function(h,c){return f.onName(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Mob Path",children:(0,e.jsx)(r.$n,{fluid:!0,content:u.path||"Select Path",onClick:function(h){return v("select_path")}})}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Amount",children:(0,e.jsx)(r.Q7,{value:f.amount,minValue:0,maxValue:256,onChange:function(h,c){return f.onAmount(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Size ("+f.sizeMultiplier+"%)",children:(0,e.jsx)(r.N6,{value:f.sizeMultiplier,minValue:50,maxValue:200,unit:"%",onChange:function(h,c){return f.onSizeMultiplier(c)}})})]})}),(0,e.jsx)(r.wn,{title:"General Settings",children:(0,e.jsxs)(r.so,{horizontal:!0,children:[(0,e.jsx)(r.so.Item,{FlexGrow:!0,children:(0,e.jsx)(r.wn,{title:"Positional Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spawn (X/Y/Z) Coords",children:[(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_x:f.x,minValue:0,maxValue:256,onChange:function(h,c){return f.onX(c)}}),(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_y:f.y,minValue:0,maxValue:256,onChange:function(h,c){return f.onY(c)}}),(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_z:f.z,minValue:0,maxValue:256,onChange:function(h,c){return f.onZ(c)}}),(0,e.jsx)(r.$n.Checkbox,{content:"Lock coords to self",checked:u.loc_lock,onClick:function(){return v("loc_lock")}})]}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Radius (WIP)",children:(0,e.jsx)(r.Q7,{value:f.radius,disabled:!0,minValue:0,maxValue:256,onChange:function(h,c){return f.onRadius(c)}})})]})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsxs)(r.so.Item,{FlexGrow:!0,children:[(0,e.jsx)(r.wn,{title:"AI settings",buttons:(0,e.jsx)(r.$n,{selected:u.use_custom_ai,fill:!0,content:"Use Custom AI",onClick:function(){return v("toggle_custom_ai")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.ai_type||"Choose AI Type",onClick:function(h){return v("set_ai_path")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.faction||"Set Faction",onClick:function(h){return v("set_faction")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.intent||"Set Intent",onClick:function(h){return v("set_intent")}})})]})}),(0,e.jsx)(r.wn,{title:"Health & Damage",children:(0,e.jsxs)(r.Ki,{children:[u.max_health&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Max Health",children:(0,e.jsx)(r.Q7,{value:u.max_health,onChange:function(h,c){return f.onMaxHealth(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.Q7,{value:u.health,onChange:function(h,c){return f.onHealth(c)}})}),(0,e.jsx)("br",{})]})||"Note: Only available for '/mob/living'",u.melee_damage_lower&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Lower)",children:(0,e.jsx)(r.Q7,{value:u.melee_damage_lower,onChange:function(h,c){return f.onMeleeDamageLower(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Upper)",children:(0,e.jsx)(r.Q7,{value:u.melee_damage_upper,onChange:function(h,c){return f.onMeleeDamageUpper(c)}})})]})||"Note: Only available for '/mob/living/simple_mob'"]})})]})]})}),(0,e.jsx)(r.wn,{title:"Descriptions",children:(0,e.jsxs)(r.so,{children:[(0,e.jsxs)(r.so.Item,{width:"50%",children:["Description:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",onChange:function(h,c){return f.onDesc(c)},value:u.desc})]}),(0,e.jsxs)(r.so.Item,{width:"50%",children:["Flavor Text:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",value:u.flavor_text,onChange:function(h,c){return f.onFlavor(c)}})]})]})}),(0,e.jsx)(r.$n,{fill:!0,content:"Spawn",color:"teal",onClick:function(){return v("start_spawn",{amount:f.amount,name:u.path_name,desc:u.desc,max_health:u.max_health,health:u.health,melee_damage_lower:u.melee_damage_lower,melee_damage_upper:u.melee_damage_upper,flavor_text:u.flavor_text,size_multiplier:f.sizeMultiplier*.01,x:u.loc_lock?u.loc_x:f.x,y:u.loc_lock?u.loc_y:f.y,z:u.loc_lock?u.loc_z:f.z,radius:f.radius})}})]})},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data;return(0,e.jsxs)(r.wn,{title:"WIP",children:["This Tab is still under construction!",(0,e.jsx)("br",{}),"Functionality will be added in later updates."]})}},44372:function(P,y,t){"use strict";t.r(y),t.d(y,{MuleBot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.suffix,h=v.load,c=v.hatch;return(0,e.jsx)(r.p8,{width:350,height:500,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Multiple Utility Load Effector Mk. III",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID",children:u}),(0,e.jsx)(n.Ki.Item,{label:"Current Load",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Unload Now",disabled:!h,onClick:function(){return m("unload")}}),children:h||"None."})]}),c?(0,e.jsx)(g,{}):(0,e.jsx)(a,{})]})})})},a=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.power,h=v.locked,c=v.issilicon,d=v.auto_return,p=v.crates_only;return(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:h&&!c,onClick:function(){return m("power")}}),children:h&&!c?(0,e.jsx)(n.az,{color:"bad",children:"This interface is currently locked."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"stop",content:"Stop",onClick:function(){return m("stop")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"truck-monster",content:"Proceed",onClick:function(){return m("go")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",content:"Return Home",onClick:function(){return m("home")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"map-marker-alt",content:"Set Destination",onClick:function(){return m("destination")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",content:"Set Home",onClick:function(){return m("sethome")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",selected:d,content:"Auto Return Home: "+(d?"Enabled":"Disabled"),onClick:function(){return m("autoret")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"biking",selected:!p,content:"Non-standard Cargo: "+(p?"Disabled":"Enabled"),onClick:function(){return m("cargotypes")}})]})})},g=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.safety;return(0,e.jsx)(n.wn,{title:"Maintenance Panel",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"skull-crossbones",color:u?"green":"red",content:"Safety: "+(u?"Engaged":"Disengaged (DANGER)"),onClick:function(){return m("safety")}})})}},72207:function(P,y,t){"use strict";t.r(y),t.d(y,{NIF:function(){return v}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=0,g=1,x=2,f=3,m=4,v=function(p){var C=(0,n.Oc)(),j=C.act,b=C.config,I=C.data,O=I.theme,_=I.last_notification,D=(0,s.useState)(!1),M=D[0],A=D[1],R=(0,s.useState)(null),K=R[0],N=R[1];return(0,e.jsx)(i.p8,{theme:O,width:500,height:400,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!!_&&(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:_}),(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 j("dismissNotification")}})})]})})}),!!K&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:K.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",content:"Uninstall",confirmIcon:"ban",confirmContent:"Uninstall "+K.name+"?",onClick:function(){j("uninstall",{module:K.ref}),N(null)}}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return N(null)}})]}),children:[(0,e.jsx)(r.az,{children:K.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:K.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:K.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:K.illegal?"bad":"good",children:["It is ",K.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:[K.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 ",K.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+b.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:M,onClick:function(){return A(!M)}}),children:M&&(0,e.jsx)(d,{})||(0,e.jsx)(c,{setViewing:N})})]})})},u=function(p,C){switch(p){case a:return C<25?"Service Needed Soon":"Operating Normally";case g:return"Insufficient Energy!";case x:return"System Failure!";case f:return"Adapting To User"}return"Unknown"},h=function(p,C){return C?p>=450?"Overcharged":p>=250?"Good Charge":"Low Charge":p>=250?"NIF Power Requirement met.":p>=150?"Fluctuations in available power.":"Power failure imminent."},c=function(p){var C=(0,n.Oc)(),j=C.act,b=C.config,I=C.data,O=I.nif_percent,_=I.nif_stat,D=I.nutrition,M=I.isSynthetic,A=I.modules,R=p.setViewing;return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"NIF Condition",children:(0,e.jsxs)(r.z2,{value:O,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[u(_,O)," (",(0,e.jsx)(r.zv,{value:O}),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"NIF Power",children:(0,e.jsx)(r.z2,{value:D,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:h(D,M)})})]}),(0,e.jsx)(r.wn,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(r.Ki,{children:A.map(function(K){return(0,e.jsx)(r.Ki.Item,{label:K.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return j("uninstall",{module:K.ref})}}),(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return R(K)},tooltip:"View Information",tooltipPosition:"left"})]}),children:K.activates&&(0,e.jsx)(r.$n,{fluid:!0,selected:K.active,content:K.stat_text,onClick:function(){return j("toggle_module",{module:K.ref})}})||(0,e.jsx)(r.az,{children:K.stat_text})},K.ref)})})})]})},d=function(p){var C=(0,n.Oc)(),j=C.act,b=C.data,I=b.valid_themes,O=b.theme;return(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.ms,{grow:1,selected:O||"default",options:I,onSelected:function(_){return j("setTheme",{theme:_})}})}),O?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){j("setTheme",{theme:null})}})}):""]})})})}},96576:function(P,y,t){"use strict";t.r(y),t.d(y,{NTNetRelay:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(13221),a=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.dos_crashed,c=u.enabled,d=u.dos_overload,p=u.dos_capacity,C=(0,e.jsx)(g,{});return h&&(C=(0,e.jsx)(x,{})),(0,e.jsx)(r.p8,{width:h?700:500,height:h?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},g=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.dos_crashed,c=u.enabled,d=u.dos_overload,p=u.dos_capacity;return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:c,content:"Relay "+(c?"On":"Off"),onClick:function(){return v("toggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Network Buffer Status",children:[d," / ",p," GQ"]}),(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return v("purge")}})})]})})},x=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data;return(0,e.jsxs)(i.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.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)(n.az,{children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return v("restart")}})})]})}},80707:function(P,y,t){"use strict";t.r(y),t.d(y,{Newscaster:function(){return d}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=t(82489),g="Main Menu",x="New Channel",f="View List",m="New Story",v="Print",u="New Wanted",h="View Wanted",c="View Selected Channel",d=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.screen,F=k.user;return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.TemporaryNotice,{decode:!0}),(0,e.jsx)(p,{})]})})},p=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.user,F=(0,n.QY)("screen",g),J=F[0],H=F[1],Y=A[J];return(0,e.jsx)(r.az,{children:(0,e.jsx)(Y,{setScreen:H})})},C=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.securityCaster,F=k.wanted_issue,J=R.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Main Menu",children:[F&&(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(h)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(f)},children:"View Feed Channels"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(x)},children:"Create Feed Channel"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(m)},children:"Create Feed Message"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"print",onClick:function(){return J(v)},children:"Print Newspaper"})]}),!!V&&(0,e.jsx)(r.wn,{title:"Feed Security Functions",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(u)},children:'Manage "Wanted" Issue'})})]})},j=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channel_name,F=k.c_locked,J=k.user,H=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(V),onInput:function(Y,Z){return N("set_channel_name",{val:Z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:J}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:F?"lock":"lock-open",selected:!F,onClick:function(){return N("set_channel_lock")},children:F?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return H(g)},children:"Cancel"})]})},b=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channels,F=R.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:V.map(function(J){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:J.admin?"good":J.censored?"bad":"",onClick:function(){N("show_channel",{show_channel:J.ref}),F(c)},children:(0,s.jT)(J.name)},J.name)})})},I=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channel_name,F=k.user,J=k.title,H=k.msg,Y=k.photo_data,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return N("set_channel_receiving")},children:V||"Unset"})}),(0,e.jsx)(r.Ki.Item,{label:"Message Author",color:"good",children:F}),(0,e.jsx)(r.Ki.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:J||"(no title yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:H||"(no message yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:Y?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},O=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.total_num,F=k.active_num,J=k.message_num,H=k.paper_remaining,Y=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Printing",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Y(g)},children:"Back"}),children:[(0,e.jsxs)(r.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",V," Feed channels,"," ",F," of which are active, and a total of ",J," Feed stories."]}),(0,e.jsx)(r.Ki,{children:(0,e.jsxs)(r.Ki.Item,{label:"Liquid Paper remaining",children:[H*100," cm\xB3"]})}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("print_paper")},children:"Print Paper"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Y(g)},children:"Cancel"})]})},_=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channel_name,F=k.msg,J=k.photo_data,H=k.user,Y=k.wanted_issue,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!Y&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(V),onInput:function(X,z){return N("set_channel_name",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(F),onInput:function(X,z){return N("set_wanted_desc",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:J?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:H})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_wanted")},children:"Submit Wanted Issue"}),!!Y&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return N("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},D=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.wanted_issue,F=R.setScreen;return V?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,s.jT)(V.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,s.jT)(V.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,s.jT)(V.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:V.img&&(0,e.jsx)("img",{src:V.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},M=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.viewing_channel,F=k.securityCaster,J=k.company,H=R.setScreen;return V?(0,e.jsxs)(r.wn,{title:(0,s.jT)(V.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!F&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return N("toggle_d_notice",{ref:V.ref})}}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(f)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:F&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,s.jT)(V.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return N("censor_channel_author",{ref:V.ref})}})||(0,e.jsx)(r.az,{children:(0,s.jT)(V.author)})})}),!!V.censored&&(0,e.jsxs)(r.az,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",J," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!V.messages.length&&V.messages.map(function(Y){return(0,e.jsxs)(r.wn,{children:["- ",(0,s.jT)(Y.body),!!Y.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+Y.img}),(0,s.jT)(Y.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,s.jT)(Y.author)," -"," ",Y.timestamp,"]"]}),!!F&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return N("censor_channel_story_body",{ref:Y.ref})}}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return N("censor_channel_story_author",{ref:Y.ref})}})]})]},Y.ref)})||!V.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(f)},children:"Back"}),children:"The channel you were looking for no longer exists."})},A={};A[g]=C,A[x]=j,A[f]=b,A[m]=I,A[v]=O,A[u]=_,A[h]=D,A[c]=M},58942:function(P,y,t){"use strict";t.r(y),t.d(y,{NoticeBoard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:m.length?(0,e.jsx)(n.Ki,{children:m.map(function(v,u){return(0,e.jsxs)(n.Ki.Item,{label:v.name,children:[v.isphoto&&(0,e.jsx)(n.$n,{icon:"image",content:"Look",onClick:function(){return x("look",{ref:v.ref})}})||v.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sticky-note",content:"Read",onClick:function(){return x("read",{ref:v.ref})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Write",onClick:function(){return x("write",{ref:v.ref})}})]})||"Unknown Entity",(0,e.jsx)(n.$n,{icon:"minus-circle",content:"Remove",onClick:function(){return x("remove",{ref:v.ref})}})]},u)})}):(0,e.jsx)(n.az,{color:"average",children:"No notices posted here."})})})})}},90782:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosAccessDecrypter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(17575),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.message,u=m.running,h=m.rate,c=m.factor,d=m.regions,p=function(j){for(var b="";b.lengthc?b+="0":b+="1";return b},C=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:v&&(0,e.jsx)(n.IC,{children:v})||u&&(0,e.jsxs)(n.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",h," PHash/s",(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.$n,{fluid:!0,icon:"ban",onClick:function(){return f("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(n.wn,{title:"Pick access code to decrypt",children:d.length&&(0,e.jsx)(i.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(n.az,{children:"Please insert ID card."})})})})}},26042:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosArcade:function(){return a}});var e=t(88095),s=t(80676),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data;return(0,e.jsx)(i.Zm,{width:450,height:350,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.xA,{children:[(0,e.jsxs)(r.xA.Column,{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:m.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[m.PlayerHitpoints,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:m.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[m.PlayerMP,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:m.PauseState===1?"#1b3622":"#471915",children:m.Status})]}),(0,e.jsxs)(r.xA.Column,{children:[(0,e.jsxs)(r.z2,{value:m.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:m.Hitpoints}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)("img",{src:(0,s.l)(m.BossID)})})]})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.$n,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){return f("Attack")},content:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){return f("Heal")},content:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){return f("Recharge_Power")},content:"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:m.GameActive===1,onClick:function(){return f("Start_Game")},content:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:m.GameActive===1,onClick:function(){return f("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:m.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",m.TicketCount]})]})})})}},30873:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosAtmosControl:function(){return r}});var e=t(88095),s=t(84905),n=t(42623),r=function(){return(0,e.jsx)(s.Zm,{width:870,height:708,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.AtmosControlContent,{})})})}},44072:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCameraConsole:function(){return v},prevNextCamera:function(){return f},selectCameras:function(){return m}});var e=t(88095),s=t(11358),n=t(28763),r=t(33854),i=t(4413),a=t(92514),g=t(84905),x=t(96524),f=function(u,h){var c,d;if(!h)return[];var p=u.findIndex(function(C){return C.name===h.name});return[(c=u[p-1])==null?void 0:c.name,(d=u[p+1])==null?void 0:d.name]},m=function(u,h,c){h===void 0&&(h=""),c===void 0&&(c="");var d=(0,r.XZ)(h,function(p){return p.name});return(0,n.L)([(0,s.pb)(function(p){return p==null?void 0:p.name}),h&&(0,s.pb)(d),c&&(0,s.pb)(function(p){return p.networks.includes(c)}),(0,s.Ul)(function(p){return p.name})])(u)},v=function(u){var h=(0,i.Oc)(),c=h.act,d=h.data,p=d.mapRef,C=d.activeCamera,j=m(d.cameras),b=f(j,C),I=b[0],O=b[1];return(0,e.jsx)(g.Zm,{width:870,height:708,children:(0,e.jsxs)(g.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(x.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),C&&C.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(a.$n,{icon:"chevron-left",disabled:!I,onClick:function(){return c("switch_camera",{name:I})}}),(0,e.jsx)(a.$n,{icon:"chevron-right",disabled:!O,onClick:function(){return c("switch_camera",{name:O})}}),"| PAN:",(0,e.jsx)(a.$n,{icon:"chevron-left",onClick:function(){return c("pan",{dir:8})}}),(0,e.jsx)(a.$n,{icon:"chevron-up",onClick:function(){return c("pan",{dir:1})}}),(0,e.jsx)(a.$n,{icon:"chevron-right",onClick:function(){return c("pan",{dir:4})}}),(0,e.jsx)(a.$n,{icon:"chevron-down",onClick:function(){return c("pan",{dir:2})}})]}),(0,e.jsx)(a.D1,{className:"CameraConsole__map",params:{id:p,type:"map"}})]})]})})}},70568:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCommunicationsConsole:function(){return r}});var e=t(88095),s=t(84905),n=t(48022),r=function(){return(0,e.jsx)(s.Zm,{width:400,height:600,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.CommunicationsConsoleContent,{})})})}},78162:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosConfiguration:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.PC_device_theme,v=f.power_usage,u=f.battery_exists,h=f.battery,c=h===void 0?{}:h,d=f.disk_size,p=f.disk_used,C=f.hardware,j=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{theme:m,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Power Supply",buttons:(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",v,"W"]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,e.jsxs)(n.z2,{value:c.charge,minValue:0,maxValue:c.max,ranges:{good:[c.max/2,1/0],average:[c.max/4,c.max/2],bad:[-1/0,c.max/4]},children:[c.charge," / ",c.max]}):"Not Available"})})}),(0,e.jsx)(n.wn,{title:"File System",children:(0,e.jsxs)(n.z2,{value:p,minValue:0,maxValue:d,color:"good",children:[p," GQ / ",d," GQ"]})}),(0,e.jsx)(n.wn,{title:"Hardware Components",children:j.map(function(b){return(0,e.jsx)(n.wn,{title:b.name,level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[!b.critical&&(0,e.jsx)(n.$n.Checkbox,{content:"Enabled",checked:b.enabled,mr:1,onClick:function(){return x("PC_toggle_component",{name:b.name})}}),(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",b.powerusage,"W"]})]}),children:b.desc},b.name)})})]})})}},62260:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCrewManifest:function(){return r}});var e=t(88095),s=t(84905),n=t(41608),r=function(){return(0,e.jsx)(s.Zm,{width:800,height:600,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.CrewManifestContent,{})})})}},12941:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCrewMonitor:function(){return i}});var e=t(88095),s=t(44583),n=t(84905),r=t(93643),i=function(){var a=function(d){m(d)},g=function(d){h(d)},x=(0,s.useState)(0),f=x[0],m=x[1],v=(0,s.useState)(1),u=v[0],h=v[1];return(0,e.jsx)(n.Zm,{width:800,height:600,children:(0,e.jsx)(n.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:f,zoom:u,onTabIndex:a,onZoom:g})})})}},657:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosDigitalWarrant:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.warrantname,d=h.warrantcharges,p=h.warrantauth,C=h.type,j=h.allwarrants,b=(0,e.jsx)(g,{});return p&&(b=(0,e.jsx)(f,{})),(0,e.jsx)(i.Zm,{width:500,height:350,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:b})})},g=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.allwarrants;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return u("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{level:2,title:"Arrest Warrants",children:(0,e.jsx)(x,{type:"arrest"})}),(0,e.jsx)(r.wn,{level:2,title:"Search Warrants",children:(0,e.jsx)(x,{type:"search"})})]})},x=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=m.type,d=h.allwarrants,p=(0,s.pb)(function(C){return C.arrestsearch===c})(d);return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),p.length&&p.map(function(C){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:C.warrantname}),(0,e.jsx)(r.XI.Cell,{children:C.charges}),(0,e.jsx)(r.XI.Cell,{children:C.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrant",{id:C.id})}})})]},C.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",c," warrants found."]})})]})},f=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.warrantname,d=h.warrantcharges,p=h.warrantauth,C=h.type,j=C==="arrest",b=C==="arrest"?"Name":"Location",I=C==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:j?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return u("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return u("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return u("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:b,buttons:j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return u("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantnamecustom")}}),children:c}),(0,e.jsx)(r.Ki.Item,{label:I,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantcharges")}}),children:d}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return u("editwarrantauth")}}),children:p})]})})}},5070:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosEmailAdministration:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(23969),a=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error,p=c.cur_title,C=c.current_account,j=(0,e.jsx)(g,{});return d?j=(0,e.jsx)(x,{}):p?j=(0,e.jsx)(f,{}):C&&(j=(0,e.jsx)(m,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},g=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.accounts;return(0,e.jsxs)(n.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(n.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",onClick:function(){return h("newaccount")},children:"Create New Account"}),(0,e.jsx)(n.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),d.map(function(p){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",onClick:function(){return h("viewaccount",{viewaccount:p.uid})},children:p.login},p.uid)})]})},x=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error;return(0,e.jsx)(n.wn,{title:"Message",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("back")},children:"Back"}),children:d})},f=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data;return(0,e.jsx)(n.wn,{children:(0,e.jsx)(i.NtosEmailClientViewMessage,{administrator:!0})})},m=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error,p=c.msg_title,C=c.msg_body,j=c.msg_timestamp,b=c.msg_source,I=c.current_account,O=c.cur_suspended,_=c.messages,D=c.accounts;return(0,e.jsxs)(n.wn,{title:"Viewing "+I+" in admin mode",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("back")},children:"Back"}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Status",children:(0,e.jsx)(n.$n,{color:O?"bad":"",icon:"ban",tooltip:(O?"Uns":"S")+"uspend Account?",onClick:function(){return h("ban")},children:O?"Suspended":"Normal"})}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:"key",onClick:function(){return h("changepass")},children:"Change Password"})})]}),(0,e.jsx)(n.wn,{level:2,title:"Messages",children:_.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Source"}),(0,e.jsx)(n.XI.Cell,{children:"Title"}),(0,e.jsx)(n.XI.Cell,{children:"Received at"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),_.map(function(M){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:M.source}),(0,e.jsx)(n.XI.Cell,{children:M.title}),(0,e.jsx)(n.XI.Cell,{children:M.timestamp}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"eye",onClick:function(){return h("viewmail",{viewmail:M.uid})},children:"View"})})]},M.uid)})]})||(0,e.jsx)(n.az,{color:"average",children:"No messages found in selected account."})})]})}},23969:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosEmailClient:function(){return a},NtosEmailClientViewMessage:function(){return m}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.PC_device_theme,I=j.error,O=j.downloading,_=j.current_account,D=(0,e.jsx)(c,{});return I?D=(0,e.jsx)(h,{error:I}):O?D=(0,e.jsx)(g,{}):_&&(D=(0,e.jsx)(x,{})),(0,e.jsx)(i.Zm,{resizable:!0,theme:b,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:D})})},g=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.down_filename,I=j.down_progress,O=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:[b," (",O," 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.jsxs)(r.z2,{color:"good",value:I,maxValue:O,children:[I,"/",O," (",(0,s.LI)(I/O*100,1),"%)"]})})]})})},x=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.current_account,I=j.addressbook,O=j.new_message,_=j.cur_title,D=(0,e.jsx)(f,{});return I?D=(0,e.jsx)(v,{}):O?D=(0,e.jsx)(u,{}):_&&(D=(0,e.jsx)(m,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+b,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return C("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return C("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return C("logout")}})]}),children:D})},f=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.current_account,I=j.folder,O=j.messagecount,_=j.messages;return(0,e.jsxs)(r.wn,{level:2,noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:I==="Inbox",onClick:function(){return C("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:I==="Spam",onClick:function(){return C("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:I==="Deleted",onClick:function(){return C("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),O&&(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"})]}),_.map(function(D){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:D.source}),(0,e.jsx)(r.XI.Cell,{children:D.title}),(0,e.jsx)(r.XI.Cell,{children:D.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return C("view",{view:D.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("reply",{reply:D.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return C("delete",{delete:D.uid})},tooltip:"Delete"})]})]},D.timestamp+D.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",I,"."]})]})},m=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=d.administrator,I=j.cur_title,O=j.cur_source,_=j.cur_timestamp,D=j.cur_body,M=j.cur_hasattachment,A=j.cur_attachment_filename,R=j.cur_attachment_size,K=j.cur_uid;return(0,e.jsx)(r.wn,{title:I,buttons:b?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return C("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return C("reply",{reply:K})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return C("delete",{delete:K})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return C("save",{save:K})}}),M&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return C("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return C("cancel",{cancel:K})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:O}),(0,e.jsx)(r.Ki.Item,{label:"At",children:_}),M&&!b&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[A," (",R,"GQ)"]})||null,(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:D}})})})]})})},v=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",level:2,buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("set_recipient",{set_recipient:null})}}),children:b.map(function(I){return(0,e.jsx)(r.$n,{content:I.login,fluid:!0,onClick:function(){return C("set_recipient",{set_recipient:I.login})}},I.login)})})},u=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.current_account,I=j.msg_title,O=j.msg_recipient,_=j.msg_body,D=j.msg_hasattachment,M=j.msg_attachment_filename,A=j.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:I,onInput:function(R,K){return C("edit_title",{val:K})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:O,onInput:function(R,K){return C("edit_recipient",{val:K})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return C("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:D&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return C("addattachment")},children:"Add Attachment"}),children:D&&(0,e.jsxs)(r.az,{inline:!0,children:[M," (",A,"GQ)"]})||null}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return C("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},h=function(d){var p=(0,n.Oc)().act,C=d.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Return",onClick:function(){return p("reset")}}),children:(0,e.jsx)(r.az,{color:"bad",children:C})})},c=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.stored_login,I=j.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:b,onInput:function(O,_){return C("edit_login",{val:_})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:I,onInput:function(O,_){return C("edit_password",{val:_})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return C("login")},children:"Log In"})]})}},86411:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosFileManager:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.PC_device_theme,u=m.usbconnected,h=m.filename,c=m.filedata,d=m.error,p=m.files,C=p===void 0?[]:p,j=m.usbfiles,b=j===void 0?[]:j;return(0,e.jsx)(r.Zm,{resizable:!0,theme:v,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[h&&(0,e.jsx)(n.wn,{title:"Viewing File "+h,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Edit",onClick:function(){return f("PRG_edit")}}),(0,e.jsx)(n.$n,{icon:"print",content:"Print",onClick:function(){return f("PRG_printfile")}}),(0,e.jsx)(n.$n,{icon:"times",content:"Close",onClick:function(){return f("PRG_closefile")}})]}),children:c&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:c}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(a,{files:C,usbconnected:u,onUpload:function(I){return f("PRG_copytousb",{uid:I})},onDelete:function(I){return f("PRG_deletefile",{uid:I})},onOpen:function(I){return f("PRG_openfile",{uid:I})},onRename:function(I,O){return f("PRG_rename",{uid:I,new_name:O})},onDuplicate:function(I){return f("PRG_clone",{uid:I})}})}),u&&(0,e.jsx)(n.wn,{title:"Data Disk",children:(0,e.jsx)(a,{usbmode:!0,files:b,usbconnected:u,onUpload:function(I){return f("PRG_copyfromusb",{uid:I})},onDelete:function(I){return f("PRG_deletefile",{uid:I})},onOpen:function(I){return f("PRG_openfile",{uid:I})},onRename:function(I,O){return f("PRG_rename",{uid:I,new_name:O})},onDuplicate:function(I){return f("PRG_clone",{uid:I})}})})||null,(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return f("PRG_newtextfile")},children:"New Text File"})})]}),d&&(0,e.jsxs)(n.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return f("PRG_clearerror")}})})}),(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.so.Item,{grow:!0,children:d})})]})]})})},a=function(g){var x=g.files,f=x===void 0?[]:x,m=g.usbconnected,v=g.usbmode,u=g.onUpload,h=g.onDelete,c=g.onRename,d=g.onOpen;return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"File"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Size"})]}),f.map(function(p){return(0,e.jsxs)(n.XI.Row,{className:"candystripe",children:[(0,e.jsx)(n.XI.Cell,{children:p.undeletable?p.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{width:"80%",content:p.name,currentValue:p.name,tooltip:"Rename",onCommit:function(C,j){return c(p.uid,j)}}),(0,e.jsx)(n.$n,{content:"Open",onClick:function(){return d(p.uid)}})]})}),(0,e.jsx)(n.XI.Cell,{children:p.type}),(0,e.jsx)(n.XI.Cell,{children:p.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:!p.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return h(p.uid)}}),!!m&&(v?(0,e.jsx)(n.$n,{icon:"download",tooltip:"Download",onClick:function(){return u(p.uid)}}):(0,e.jsx)(n.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return u(p.uid)}}))]})})]},p.name)})]})}},96665:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosIdentificationComputer:function(){return r}});var e=t(88095),s=t(84905),n=t(17575),r=function(){return(0,e.jsx)(s.Zm,{width:600,height:700,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.IdentificationComputerContent,{ntos:!0})})})}},44801:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosMain:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i={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"},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.device_theme,u=m.programs,h=u===void 0?[]:u,c=m.has_light,d=m.light_on,p=m.comp_light_color,C=m.removable_media,j=C===void 0?[]:C,b=m.login,I=b===void 0?[]:b;return(0,e.jsx)(r.Zm,{title:v==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:v,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!c&&(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.$n,{width:"144px",icon:"lightbulb",selected:d,onClick:function(){return f("PC_toggle_light")},children:["Flashlight: ",d?"ON":"OFF"]}),(0,e.jsxs)(n.$n,{ml:1,onClick:function(){return f("PC_light_color")},children:["Color:",(0,e.jsx)(n.BK,{ml:1,color:p})]})]}),(0,e.jsx)(n.wn,{title:"User Login",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject ID",disabled:!I.IDName,onClick:function(){return f("PC_Eject_Disk",{name:"ID"})}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:["ID Name: ",I.IDName]}),(0,e.jsxs)(n.XI.Row,{children:["Assignment: ",I.IDJob]})]})}),!!j.length&&(0,e.jsx)(n.wn,{title:"Media Eject",children:(0,e.jsx)(n.XI,{children:j.map(function(O){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"eject",content:O,onClick:function(){return f("PC_Eject_Disk",{name:O})}})})},O)})})}),(0,e.jsx)(n.wn,{title:"Programs",children:(0,e.jsx)(n.XI,{children:h.map(function(O){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:i[O.name]||"window-maximize-o",content:O.desc,onClick:function(){return f("PC_runprogram",{name:O.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:!!O.running&&(0,e.jsx)(n.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return f("PC_killprogram",{name:O.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:O.autorun,onClick:function(){return f("PC_setautorun",{name:O.name})},children:"AR"})})]},O.name)})})})]})})}},59895:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetChat:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.can_admin,v=f.adminmode,u=f.authed,h=f.username,c=f.active_channel,d=f.is_operator,p=f.all_channels,C=p===void 0?[]:p,j=f.clients,b=j===void 0?[]:j,I=f.messages,O=I===void 0?[]:I,_=c!==null,D=u||v;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(n.wn,{height:"600px",children:(0,e.jsx)(n.XI,{height:"580px",children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(n.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"New Channel...",onCommit:function(M,A){return x("PRG_newchannel",{new_channel_name:A})}}),C.map(function(M){return(0,e.jsx)(n.$n,{fluid:!0,content:M.chan,selected:M.id===c,color:"transparent",onClick:function(){return x("PRG_joinchannel",{id:M.id})}},M.chan)})]}),(0,e.jsx)(n.$n.Input,{fluid:!0,mt:1,content:h+"...",currentValue:h,onCommit:function(M,A){return x("PRG_changename",{new_name:A})}}),!!m&&(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(v?"ON":"OFF"),color:v?"bad":"good",onClick:function(){return x("PRG_toggleadmin")}})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.az,{height:"560px",overflowY:"scroll",children:_&&(D?O.map(function(M){return(0,e.jsx)(n.az,{children:M.msg},M.msg)}):(0,e.jsxs)(n.az,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(n.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(n.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(n.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(M,A){return x("PRG_speak",{message:A})}})]}),(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(n.az,{height:"465px",overflowY:"scroll",children:b.map(function(M){return(0,e.jsx)(n.az,{children:M.name},M.name)})}),_&&D&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(M,A){return x("PRG_savelog",{log_name:A})}}),(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return x("PRG_leavechannel")}})]}),!!d&&u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return x("PRG_deletechannel")}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(M,A){return x("PRG_renamechannel",{new_name:A})}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Set Password...",onCommit:function(M,A){return x("PRG_setpassword",{new_password:A})}})]})]})]})})})})})}},62607:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetDos:function(){return i},NtosNetDosContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.relays,u=v===void 0?[]:v,h=m.focus,c=m.target,d=m.speed,p=m.overload,C=m.capacity,j=m.error;if(j)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:j}),(0,e.jsx)(n.$n,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return f("PRG_reset")}})]});var b=function(O){for(var _="",D=p/C;_.lengthD?_+="0":_+="1";return _},I=45;return c?(0,e.jsxs)(n.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(n.az,{children:["CURRENT SPEED: ",d," GQ/s"]}),(0,e.jsx)(n.az,{children:b(I)}),(0,e.jsx)(n.az,{children:b(I)}),(0,e.jsx)(n.az,{children:b(I)}),(0,e.jsx)(n.az,{children:b(I)}),(0,e.jsx)(n.az,{children:b(I)})]}):(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:u.map(function(O){return(0,e.jsx)(n.$n,{content:O.id,selected:h===O.id,onClick:function(){return f("PRG_target_relay",{targid:O.id})}},O.id)})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!h,mt:1,onClick:function(){return f("PRG_execute")}})]})}},10864:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetDownloader:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.PC_device_theme,h=v.disk_size,c=v.disk_used,d=v.downloadable_programs,p=d===void 0?[]:d,C=v.error,j=v.hacked_programs,b=j===void 0?[]:j,I=v.hackedavailable;return(0,e.jsx)(i.Zm,{theme:u,width:480,height:735,children:(0,e.jsxs)(i.Zm.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:C}),(0,e.jsx)(r.$n,{content:"Reset",onClick:function(){return m("PRG_reseterror")}})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:c,minValue:0,maxValue:h,children:c+" GQ / "+h+" GQ"})})})}),(0,e.jsx)(r.wn,{children:p.map(function(O){return(0,e.jsx)(g,{program:O},O.filename)})}),!!I&&(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."}),b.map(function(O){return(0,e.jsx)(g,{program:O},O.filename)})]})]})})},g=function(x){var f=x.program,m=(0,n.Oc)(),v=m.act,u=m.data,h=u.disk_size,c=u.disk_used,d=u.downloadcompletion,p=u.downloading,C=u.downloadname,j=u.downloadsize,b=u.downloadspeed,I=u.downloads_queue,O=h-c;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:f.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[f.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:f.filename===C&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:j,value:d,children:[(0,s.LI)(d/j*100,1),"%\xA0(",b,"GQ/s)"]})||I.indexOf(f.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return v("PRG_removequeued",{filename:f.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",content:"Download",disabled:f.size>O,onClick:function(){return v("PRG_downloadfile",{filename:f.filename})}})})]}),f.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!"]}),f.size>O&&(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:f.fileinfo})]})}},26055:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetMonitor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.ntnetrelays,v=f.ntnetstatus,u=f.config_softwaredownload,h=f.config_peertopeer,c=f.config_communication,d=f.config_systemcontrol,p=f.idsalarm,C=f.idsstatus,j=f.ntnetmaxlogs,b=f.maxlogs,I=f.minlogs,O=f.banned_nids,_=f.ntnetlogs,D=_===void 0?[]:_;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(n.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(n.$n.Confirm,{icon:v?"power-off":"times",content:v?"ENABLED":"DISABLED",selected:v,onClick:function(){return x("toggleWireless")}}),children:m?(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Active NTNet Relays",children:m})}):"No Relays Connected"}),(0,e.jsx)(n.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(n.$n,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return x("toggle_function",{id:"1"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(n.$n,{icon:h?"power-off":"times",content:h?"ENABLED":"DISABLED",selected:h,onClick:function(){return x("toggle_function",{id:"2"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(n.$n,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){return x("toggle_function",{id:"3"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(n.$n,{icon:d?"power-off":"times",content:d?"ENABLED":"DISABLED",selected:d,onClick:function(){return x("toggle_function",{id:"4"})}})})]})}),(0,e.jsxs)(n.wn,{title:"Security Systems",children:[!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(n.az,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return x("ban_nid")},children:"Ban NID"}),(0,e.jsx)(n.$n,{icon:"balance-scale",onClick:function(){return x("unban_nid")},children:"Unban NID"})]}),children:O.join(", ")||"None"}),(0,e.jsx)(n.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return x("toggleIDS")}}),(0,e.jsx)(n.$n,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return x("resetIDS")}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(n.Q7,{value:j,minValue:I,maxValue:b,width:"39px",onChange:function(M,A){return x("updatemaxlogs",{new_number:A})}})})]}),(0,e.jsx)(n.wn,{title:"System Log",level:2,buttons:(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return x("purgelogs")}}),children:D.map(function(M){return(0,e.jsx)(n.az,{className:"candystripe",children:M.entry},M.entry)})})]})]})})}},10124:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetTransfer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error,p=c.downloading,C=c.uploading,j=c.upload_filelist,b=(0,e.jsx)(m,{});return d?b=(0,e.jsx)(a,{}):p?b=(0,e.jsx)(g,{}):C?b=(0,e.jsx)(x,{}):j.length&&(b=(0,e.jsx)(f,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:b})})},a=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error;return(0,e.jsxs)(n.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("PRG_reset")},children:"Reset"}),children:["Additional Information: ",d]})},g=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.download_name,p=c.download_progress,C=c.download_size,j=c.download_netspeed;return(0,e.jsx)(n.wn,{title:"Download in progress",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Downloaded File",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Progress",children:(0,e.jsxs)(n.z2,{value:p,maxValue:C,children:[p," / ",C," GQ"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Speed",children:[j," GQ/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Controls",children:(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Download"})})]})})},x=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.upload_clients,p=c.upload_filename,C=c.upload_haspassword;return(0,e.jsx)(n.wn,{title:"Server enabled",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Clients Connected",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Provided file",children:p}),(0,e.jsx)(n.Ki.Item,{label:"Server Password",children:C?"Enabled":"Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Commands",children:[(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Upload"})]})]})})},f=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.upload_filelist;return(0,e.jsxs)(n.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"lock",onClick:function(){return h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.wn,{title:"Pick file to serve.",level:2,children:d.map(function(p){return(0,e.jsxs)(n.$n,{fluid:!0,icon:"upload",onClick:function(){return h("PRG_uploadfile",{uid:p.uid})},children:[p.filename," (",p.size,"GQ)"]},p.uid)})})]})},m=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.servers;return(0,e.jsx)(n.wn,{title:"Available Files",buttons:(0,e.jsx)(n.$n,{icon:"upload",onClick:function(){return h("PRG_uploadmenu")},children:"Send File"}),children:d.length&&(0,e.jsx)(n.Ki,{children:d.map(function(p){return(0,e.jsxs)(n.Ki.Item,{label:p.uid,children:[!!p.haspassword&&(0,e.jsx)(n.In,{name:"lock",mr:1}),p.filename,"\xA0 (",p.size,"GQ)\xA0",(0,e.jsx)(n.$n,{icon:"download",onClick:function(){return h("PRG_downloadfile",{uid:p.uid})},children:"Download"})]},p.uid)})})||(0,e.jsx)(n.az,{children:"No upload servers found."})})}},90227:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNewsBrowser:function(){return a}});var e=t(88095),s=t(80676),n=t(4413),r=t(92514),i=t(84905),a=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.article,d=h.download,p=h.message,C=(0,e.jsx)(x,{});return c?C=(0,e.jsx)(g,{}):d&&(C=(0,e.jsx)(f,{})),(0,e.jsx)(i.Zm,{width:575,height:750,children:(0,e.jsxs)(i.Zm.Content,{scrollable:!0,children:[!!p&&(0,e.jsxs)(r.IC,{children:[p," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return u("PRG_clearmessage")}})]}),C]})})},g=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.article;if(!c)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var d=c.title,p=c.cover,C=c.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+d,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return u("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return u("PRG_reset")},children:"Close"})]}),children:[!!p&&(0,e.jsx)("img",{src:(0,s.l)(p)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})]})},x=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.showing_archived,d=h.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return u("PRG_toggle_archived")},checked:c,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:d.length&&d.map(function(p){return(0,e.jsxs)(r.Ki.Item,{label:p.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return u("PRG_openarticle",{uid:p.uid})}}),children:[p.size," GQ"]},p.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},f=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.download,d=c.download_progress,p=c.download_maxprogress,C=c.download_rate;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,value:d,maxValue:p,children:[d," / ",p," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[C," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return u("PRG_reset")},children:"Abort Download"})})]})})}},39360:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosOvermapNavigation:function(){return r}});var e=t(88095),s=t(84905),n=t(15156),r=function(){return(0,e.jsx)(s.Zm,{width:380,height:530,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.OvermapNavigationContent,{})})})}},62243:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosPowerMonitor:function(){return r}});var e=t(88095),s=t(84905),n=t(16421),r=function(){return(0,e.jsx)(s.Zm,{width:550,height:700,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.PowerMonitorContent,{})})})}},12638:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosRCON:function(){return r}});var e=t(88095),s=t(84905),n=t(72128),r=function(){return(0,e.jsx)(s.Zm,{width:630,height:440,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.RCONContent,{})})})}},88475:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosRevelation:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(v,u){return x("PRG_obfuscate",{new_name:u})},mb:1}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(n.$n,{content:m?"ARMED":"DISARMED",color:m?"bad":"average",onClick:function(){return x("PRG_arm")}})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!m})]})})})}},17609:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosShutoffMonitor:function(){return r}});var e=t(88095),s=t(84905),n=t(52735),r=function(){return(0,e.jsx)(s.Zm,{width:627,height:700,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.ShutoffMonitorContent,{})})})}},86431:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosStationAlertConsole:function(){return r}});var e=t(88095),s=t(84905),n=t(47441),r=function(){return(0,e.jsx)(s.Zm,{width:315,height:500,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.StationAlertConsoleContent,{})})})}},21396:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosSupermatterMonitor:function(){return r}});var e=t(88095),s=t(84905),n=t(67186),r=function(){return(0,e.jsx)(s.Zm,{width:600,height:400,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.SupermatterMonitorContent,{})})})}},77248:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosUAV:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.current_uav,v=f.signal_strength,u=f.in_use,h=f.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(n.wn,{title:"Selected UAV",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"UAV",children:m&&m.status||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Signal",children:m&&v||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:m&&(0,e.jsx)(n.$n,{icon:"power-off",selected:m.power,onClick:function(){return x("power_uav")},children:m.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Camera",children:m&&(0,e.jsx)(n.$n,{icon:"power-off",selected:u,disabled:!m.power,onClick:function(){return x("view_uav")},children:m.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(n.wn,{title:"Paired UAVs",children:h.length&&h.map(function(c){return(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"quidditch",onClick:function(){return x("switch_uav",{switch_uav:c.uavref})},children:c.name})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{color:"bad",icon:"times",onClick:function(){return x("del_uav",{del_uav:c.uavref})}})})]},c.uavref)})||(0,e.jsx)(n.az,{color:"average",children:"No UAVs Paired."})})]})})}},61728:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosWordProcessor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.PC_device_theme,v=f.error,u=f.browsing,h=f.files,c=f.usbconnected,d=f.usbfiles,p=f.filename,C=f.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:m,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:v&&(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",v,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to menu",onClick:function(){return x("PRG_backtomenu")}})]})||u&&(0,e.jsx)(n.wn,{title:"File Browser",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to editor",onClick:function(){return x("PRG_closebrowser")}}),children:(0,e.jsx)(n.wn,{title:"Available documents (local)",level:2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0})]}),h.map(function(j,b){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:j.name}),(0,e.jsx)(n.XI.Cell,{children:j.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"file-word",onClick:function(){return x("PRG_openfile",{PRG_openfile:j.name})},children:"Open"})})]},b)})]})})})||(0,e.jsxs)(n.wn,{title:"Document: "+p,children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_newfile")},children:"New"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_savefile")},children:"Save"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_editfile")},children:"Edit"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(n.$n,{disabled:!C,onClick:function(){return x("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(n.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})})]})})})}},8544:function(P,y,t){"use strict";t.r(y),t.d(y,{NumberInputModal:function(){return f}});var e=t(88095),s=t(72147),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=t(12035),x=t(18513),f=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.init_value,p=c.large_buttons,C=c.message,j=C===void 0?"":C,b=c.timeout,I=c.title,O=(0,n.useState)(d),_=O[0],D=O[1],M=function(R){R!==_&&D(R)},A=140+(j.length>30?Math.ceil(j.length/3):0)+(j.length&&p?5:0);return(0,e.jsxs)(a.p8,{title:I,width:270,height:A,children:[b&&(0,e.jsx)(x.Loader,{value:b}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(R){R.key===s._.Enter&&h("submit",{entry:_}),R.key===s._.Escape&&h("cancel")},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.az,{color:"label",children:j})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(m,{input:_,onClick:M,onChange:M,onBlur:M})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:_})})]})})})]})},m=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.min_value,p=c.max_value,C=c.init_value,j=c.round_value,b=v.input,I=v.onClick,O=v.onChange,_=v.onBlur;return(0,e.jsxs)(i.BJ,{fill:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:b===d,icon:"angle-double-left",onClick:function(){return I(d)},tooltip:d?"Min ("+d+")":"Min"})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!j,minValue:d,maxValue:p,onChange:function(D,M){return O(M)},onBlur:function(D,M){return _(M)},onEnter:function(D,M){return h("submit",{entry:M})},value:b})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:b===p,icon:"angle-double-right",onClick:function(){return I(p)},tooltip:p?"Max ("+p+")":"Max"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:b===C,icon:"redo",onClick:function(){return I(C)},tooltip:C?"Reset ("+C+")":"Reset"})})]})}},953:function(P,y,t){"use strict";t.r(y),t.d(y,{OmniFilter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.power,u=m.config,h=m.ports,c=m.set_flow_rate,d=m.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:u?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:v?"On":"Off",selected:v,disabled:u,onClick:function(){return f("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:u,onClick:function(){return f("configure")}})]}),children:(0,e.jsx)(n.Ki,{children:h?h.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.dir+" Port",children:u?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"IN",selected:p.input,icon:"compress-arrows-alt",onClick:function(){return f("switch_mode",{mode:"in",dir:p.dir})}}),(0,e.jsx)(n.$n,{content:"OUT",selected:p.output,icon:"expand-arrows-alt",onClick:function(){return f("switch_mode",{mode:"out",dir:p.dir})}}),(0,e.jsx)(n.$n,{icon:"wrench",disabled:p.input||p.output,content:p.f_type||"None",onClick:function(){return f("switch_filter",{mode:p.f_type,dir:p.dir})}})]}):i(p)},p.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[d," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:u?(0,e.jsx)(n.$n,{icon:"wrench",content:c/10+" L/s",onClick:function(){return f("set_flow_rate")}}):c/10+" L/s"})]})})]})})}},75520:function(P,y,t){"use strict";t.r(y),t.d(y,{OmniMixer:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},a=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.power,h=v.config,c=v.ports,d=v.set_flow_rate,p=v.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:h?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:h,onClick:function(){return m("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:h,onClick:function(){return m("configure")}})]}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Port"}),h?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Concentration"}),h?(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),c?c.map(function(C){return(0,e.jsx)(g,{port:C,config:h},C.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[p," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:h?(0,e.jsx)(n.$n,{icon:"wrench",content:d/10+" L/s",onClick:function(){return m("set_flow_rate")}}):d/10+" L/s"})]})})]})})},g=function(x){var f=(0,s.Oc)().act,m=x.port,v=x.config;return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:m.dir+" Port"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"IN",selected:m.input,disabled:m.output,icon:"compress-arrows-alt",onClick:function(){return f("switch_mode",{mode:m.input?"none":"in",dir:m.dir})}}):i(m)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"OUT",selected:m.output,icon:"expand-arrows-alt",onClick:function(){return f("switch_mode",{mode:"out",dir:m.dir})}}):m.concentration*100+"%"}),v?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(n.$n,{width:"100%",icon:"wrench",disabled:!m.input,content:m.input?m.concentration*100+" %":"-",onClick:function(){return f("switch_con",{dir:m.dir})}})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{icon:m.con_lock?"lock":"lock-open",disabled:!m.input,selected:m.con_lock,content:m.f_type||"None",onClick:function(){return f("switch_conlock",{dir:m.dir})}})})]}):null]})}},37534:function(P,y,t){"use strict";t.r(y),t.d(y,{OperatingComputer:function(){return m}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},f=["bad","average","average","good","average","average","bad"],m=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.hasOccupant,b=C.choice,I;return b?I=(0,e.jsx)(h,{}):I=j?(0,e.jsx)(v,{}):(0,e.jsx)(u,{}),(0,e.jsx)(i.p8,{width:650,height:455,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:!b,icon:"user",onClick:function(){return p("choiceOff")},children:"Patient"}),(0,e.jsx)(r.tU.Tab,{selected:!!b,icon:"cog",onClick:function(){return p("choiceOn")},children:"Options"})]}),(0,e.jsx)(r.wn,{flexGrow:"1",children:I})]})})},v=function(c){var d=(0,n.Oc)().data,p=d.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Patient",level:"2",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:p.name}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[p.stat][0],children:a[p.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:p.maxHealth,value:p.health/p.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),g.map(function(C,j){return(0,e.jsx)(r.Ki.Item,{label:C[0]+" Damage",children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:p[C[1]]/100,ranges:x,children:(0,s.LI)(p[C[1]])},j)},j)}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:p.maxTemp,value:p.bodyTemperature/p.maxTemp,color:f[p.temperatureSuitability+3],children:[(0,s.LI)(p.btCelsius),"\xB0C, ",(0,s.LI)(p.btFaren),"\xB0F"]})}),!!p.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:p.bloodMax,value:p.bloodLevel/p.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[p.bloodPercent,"%, ",p.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",children:[p.pulse," BPM"]})]})]})}),(0,e.jsx)(r.wn,{title:"Current Procedure",level:"2",children:p.surgery&&p.surgery.length?(0,e.jsx)(r.Ki,{children:p.surgery.map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current State",children:C.currentStage}),(0,e.jsx)(r.Ki.Item,{label:"Possible Next Steps",children:C.nextSteps.map(function(j){return(0,e.jsx)("div",{children:j},j)})})]})},C.name)})}):(0,e.jsx)(r.az,{color:"label",children:"No procedure ongoing."})})]})},u=function(){return(0,e.jsx)(r.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No patient detected."]})})},h=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.verbose,b=C.health,I=C.healthAlarm,O=C.oxy,_=C.oxyAlarm,D=C.crit;return(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(r.$n,{selected:j,icon:j?"toggle-on":"toggle-off",content:j?"On":"Off",onClick:function(){return p(j?"verboseOff":"verboseOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(r.$n,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){return p(b?"healthOff":"healthOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:I,stepPixelSize:"5",ml:"0",format:function(M){return M+"%"},onChange:function(M,A){return p("health_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(r.$n,{selected:O,icon:O?"toggle-on":"toggle-off",content:O?"On":"Off",onClick:function(){return p(O?"oxyOff":"oxyOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:_,stepPixelSize:"5",ml:"0",onChange:function(M,A){return p("oxy_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(r.$n,{selected:D,icon:D?"toggle-on":"toggle-off",content:D?"On":"Off",onClick:function(){return p(D?"critOff":"critOn")}})})]})}},17511:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapDisperser:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(7240),a=function(x){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.faillink,h=v.calibration,c=v.overmapdir,d=v.cal_accuracy,p=v.strength,C=v.range,j=v.next_shot,b=v.nopower,I=v.skill,O=v.chargeload;return u?(0,e.jsx)(n.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(n.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"22%",children:(0,e.jsx)(n.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(i.OvermapPanControls,{actToDo:"choose",selected:function(_){return _===c}})})}),(0,e.jsx)(n.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(n.wn,{title:"Charge",children:(0,e.jsxs)(n.Ki,{children:[b&&(0,e.jsx)(n.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.jsx)(n.Ki.Item,{label:"Charge Load Type",children:O}),(0,e.jsx)(n.Ki.Item,{label:"Cooldown",children:j===0&&(0,e.jsx)(n.az,{color:"good",children:"Ready"})||j>1&&(0,e.jsxs)(n.az,{color:"average",children:[(0,e.jsx)(n.zv,{value:j})," Seconds",(0,e.jsx)(n.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.jsx)(n.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(n.wn,{title:"Calibration",children:[(0,e.jsx)(n.zv,{value:d}),"%",(0,e.jsx)(n.$n,{ml:1,icon:"exchange-alt",onClick:function(){return m("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(n.az,{mt:1,children:h.map(function(_,D){return(0,e.jsxs)(n.az,{children:["Cal #",D,":",(0,e.jsx)(n.$n,{ml:1,icon:"random",onClick:function(){return m("calibration",{calibration:D})},children:_.toString()})]},D)})})]})}),(0,e.jsx)(n.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(n.wn,{title:"Setup",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Strength",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return m("strength")},children:p})}),(0,e.jsx)(n.Ki.Item,{label:"Radius",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return m("range")},children:C})})]})})}),(0,e.jsx)(n.so.Item,{grow:1,mt:1,children:(0,e.jsx)(n.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return m("fire")},children:"Fire ORB"})})]})}},98203:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapEngines:function(){return i},OvermapEnginesContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.global_state,u=m.global_limit,h=m.engines_info,c=m.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Engines",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,onClick:function(){return f("global_toggle")},children:v?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return f("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return f("set_global_limit")},children:[u,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return f("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(n.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(n.zv,{value:c})})]})}),(0,e.jsx)(n.wn,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:h.map(function(d,p){return(0,e.jsxs)(n.so,{spacing:1,mt:p!==0&&-1,children:[(0,e.jsx)(n.so.Item,{basis:"80%",children:(0,e.jsx)(n.Nt,{title:(0,e.jsxs)(n.az,{inline:!0,children:["Engine #",p+1," | Thrust:"," ",(0,e.jsx)(n.zv,{value:d.eng_thrust})," | Limit:"," ",(0,e.jsx)(n.zv,{value:d.eng_thrust_limiter,format:function(C){return C+"%"}})]}),children:(0,e.jsx)(n.wn,{width:"127%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Type",children:d.eng_type}),(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.az,{color:d.eng_on?d.eng_on===1?"good":"average":"bad",children:d.eng_on?d.eng_on===1?"Online":"Booting":"Offline"}),d.eng_status.map(function(C,j){return Array.isArray(C)?(0,e.jsx)(n.az,{color:C[1],children:C[0]},j):(0,e.jsx)(n.az,{children:C},j)})]}),(0,e.jsx)(n.Ki.Item,{label:"Current Thrust",children:d.eng_thrust}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return f("limit",{limit:-.1,engine:d.eng_reference})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return f("set_limit",{engine:d.eng_reference})},children:[d.eng_thrust_limiter,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return f("limit",{limit:.1,engine:d.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(n.so.Item,{basis:"20%",children:(0,e.jsx)(n.$n,{fluid:!0,iconSpin:d.eng_on===-1,color:d.eng_on===-1?"purple":null,selected:d.eng_on===1,icon:"power-off",onClick:function(){return f("toggle_engine",{engine:d.eng_reference})},children:d.eng_on?d.eng_on===1?"Shutoff":"Booting":"Startup"})})]},p)})})]})}},79061:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapFull:function(){return x}});var e=t(88095),s=t(44583),n=t(92514),r=t(84905),i=t(98203),a=t(60224),g=t(89501),x=function(f){var m=(0,s.useState)(0),v=m[0],u=m[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:v===0,onClick:function(){return u(0)},children:"Engines"}),(0,e.jsx)(n.tU.Tab,{selected:v===1,onClick:function(){return u(1)},children:"Helm"}),(0,e.jsx)(n.tU.Tab,{selected:v===2,onClick:function(){return u(2)},children:"Sensors"})]}),v===0&&(0,e.jsx)(i.OvermapEnginesContent,{}),v===1&&(0,e.jsx)(a.OvermapHelmContent,{}),v===2&&(0,e.jsx)(g.OvermapShipSensorsContent,{})]})})}},60224:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapFlightDataWrap:function(){return x},OvermapHelm:function(){return a},OvermapHelmContent:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(7240),a=function(u){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(u){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(x,{})}),(0,e.jsx)(n.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(f,{})}),(0,e.jsx)(n.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(m,{})})]}),(0,e.jsx)(v,{})]})},x=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1",margin:"none"},className:"Section",children:[(0,e.jsx)("legend",{children:"Flight Data"}),(0,e.jsx)(i.OvermapFlightData,{})]})},f=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.canburn,C=d.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)(n.so,{align:"center",justify:"center",children:(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(i.OvermapPanControls,{disabled:!p,actToDo:"move"})})}),(0,e.jsxs)(n.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(n.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(n.$n,{selected:C,onClick:function(){return c("manual")},icon:"compass",children:C?"Enabled":"Disabled"})]})]})},m=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.dest,C=d.d_x,j=d.d_y,b=d.speedlimit,I=d.autopilot,O=d.autopilot_disabled;return O?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(n.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(n.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)(n.az,{textAlign:"center",children:(0,e.jsx)(n.$n.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("apilot_lock")}})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{onClick:function(){return c("setcoord",{setx:!0})},children:C}),(0,e.jsx)(n.$n,{onClick:function(){return c("setcoord",{sety:!0})},children:j})]})||(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return c("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(n.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(n.$n,{icon:"tachometer-alt",onClick:function(){return c("speedlimit")},children:[b," Gm/h"]})})]}),(0,e.jsx)(n.$n,{mt:1,fluid:!0,selected:I,disabled:!p,icon:"robot",onClick:function(){return c("apilot")},children:I?"Engaged":"Disengaged"}),(0,e.jsx)(n.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return c("apilot_lock")},children:"Lock Autopilot"})]})},v=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.sector,C=d.s_x,j=d.s_y,b=d.sector_info,I=d.landed,O=d.locations;return(0,e.jsxs)(n.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:p}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[C," : ",j]}),(0,e.jsx)(n.Ki.Item,{label:"Scan Data",children:b}),(0,e.jsx)(n.Ki.Item,{label:"Status",children:I})]}),(0,e.jsxs)(n.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"save",onClick:function(){return c("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return c("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(n.wn,{mt:1,scrollable:!0,height:"130px",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),O.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:_.name}),(0,e.jsxs)(n.XI.Cell,{children:[_.x," : ",_.y]}),(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(n.$n,{icon:"rocket",onClick:function(){return c("setds",{x:_.x,y:_.y})},children:"Plot Course"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return c("remove",{remove:_.reference})},children:"Remove"})]})]},_.name)})]})})]})}},15156:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapNavigation:function(){return a},OvermapNavigationContent:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(7240),a=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.sector,h=v.s_x,c=v.s_y,d=v.sector_info,p=v.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Current Location",buttons:(0,e.jsx)(n.$n,{icon:"eye",selected:p,onClick:function(){return m("viewing")},children:"Map View"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Location",children:u}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[h," : ",c]}),(0,e.jsx)(n.Ki.Item,{label:"Additional Information",children:d})]})}),(0,e.jsx)(n.wn,{title:"Flight Data",children:(0,e.jsx)(i.OvermapFlightData,{disableLimiterControls:!0})})]})}},20576:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapShieldGenerator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(f){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.modes,c=u.offline_for;return c?(0,e.jsxs)(n.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",c," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{}),(0,e.jsx)(n.wn,{title:"Field Calibration",children:h.map(function(d){return(0,e.jsxs)(n.wn,{title:d.name,level:2,buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:d.status,onClick:function(){return v("toggle_mode",{toggle_mode:d.flag})},children:d.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(n.az,{color:"label",children:d.desc}),(0,e.jsxs)(n.az,{mt:.5,children:["Multiplier: ",d.multiplier]})]},d.name)})})]})},g=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.running,c=u.overloaded,d=u.mitigation_max,p=u.mitigation_physical,C=u.mitigation_em,j=u.mitigation_heat,b=u.field_integrity,I=u.max_energy,O=u.current_energy,_=u.percentage_energy,D=u.total_segments,M=u.functional_segments,A=u.field_radius,R=u.target_radius,K=u.input_cap_kw,N=u.upkeep_power_usage,k=u.power_usage,V=u.spinup_counter;return(0,e.jsx)(n.wn,{title:"System Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Generator is",children:h===1&&(0,e.jsx)(n.az,{color:"average",children:"Shutting Down"})||h===2&&(c&&(0,e.jsx)(n.az,{color:"bad",children:"Overloaded"})||(0,e.jsx)(n.az,{color:"good",children:"Running"}))||h===3&&(0,e.jsx)(n.az,{color:"average",children:"Inactive"})||h===4&&(0,e.jsxs)(n.az,{color:"blue",children:["Spinning Up\xA0",R!==A&&(0,e.jsx)(n.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(n.az,{inline:!0,children:[V*2,"s"]})]})||(0,e.jsx)(n.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(n.z2,{value:O,maxValue:I,children:[O," / ",I," MJ (",_,"%)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(n.zv,{value:b}),"%"]}),(0,e.jsxs)(n.Ki.Item,{label:"Mitigation",children:[C,"% EM / ",p,"% PH / ",j,"% HE / ",d,"% MAX"]}),(0,e.jsxs)(n.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(n.zv,{value:N})," kW"]}),(0,e.jsx)(n.Ki.Item,{label:"Total Energy Use",children:K&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.z2,{value:k,maxValue:K,children:[k," / ",K," kW"]})})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.zv,{value:k})," kW (No Limit)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(n.zv,{value:M}),"\xA0/\xA0",(0,e.jsx)(n.zv,{value:D})," m\xB2 (radius"," ",(0,e.jsx)(n.zv,{value:A}),", target"," ",(0,e.jsx)(n.zv,{value:R}),")"]})]})})},x=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.running,c=u.hacked,d=u.idle_multiplier,p=u.idle_valid_values;return(0,e.jsxs)(n.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[h>=2&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("begin_shutdown")},selected:!0,children:"Turn off"}),h===3&&(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("start_generator")},children:"Turn on"}),h&&c&&(0,e.jsx)(n.$n,{icon:"exclamation-triangle",onClick:function(){return v("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null]}),children:[(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",onClick:function(){return v("set_range")},children:"Set Field Range"}),(0,e.jsx)(n.$n,{icon:"bolt",onClick:function(){return v("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Set inactive power use intensity",children:p.map(function(C){return(0,e.jsx)(n.$n,{selected:C===d,disabled:h===4,onClick:function(){return v("switch_idle",{switch_idle:C})},children:C},C)})})})]})}},89501:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapShipSensors:function(){return i},OvermapShipSensorsContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.viewing,u=m.on,h=m.range,c=m.health,d=m.max_health,p=m.heat,C=m.critical_heat,j=m.status,b=m.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eye",selected:v,onClick:function(){return f("viewing")},children:"Map View"}),(0,e.jsx)(n.$n,{icon:"power-off",selected:u,onClick:function(){return f("toggle_sensor")},children:u?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:j}),(0,e.jsx)(n.Ki.Item,{label:"Range",children:(0,e.jsx)(n.$n,{icon:"signal",onClick:function(){return f("range")},children:h})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(n.z2,{ranges:{good:[d*.75,1/0],average:[d*.25,d*.75],bad:[-1/0,d*.25]},value:c,maxValue:d,children:[c," / ",d]})}),(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsx)(n.z2,{ranges:{bad:[C*.75,1/0],average:[C*.5,C*.75],good:[-1/0,C*.5]},value:p,maxValue:C,children:p0||!p)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return m("cancel",{cancel:O+1})},children:"Cancel"})||null]},I)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:b.length&&b.map(function(I){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return m("queue",{queue:I.type})},children:(0,s.Sn)(I.name)})},I.name)})})]})})}},55725:function(P,y,t){"use strict";t.r(y),t.d(y,{PathogenicIsolator:function(){return x}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(5425),a=t(84905),g=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.can_print,p=v.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:p.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!d,icon:"print",content:"Print",onClick:function(){return h("print",{type:"virus_record",vir:p.record})}}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return h("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[p.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:p.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:p.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[p.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:p.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:p.symptoms.map(function(C){return(0,e.jsxs)(r.Ki.Item,{label:C.stage+". "+C.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",C.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",C.aggressiveness]})]},C.stage)})})})]})})})},x=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.isolating,p=(0,s.useState)(0),C=p[0],j=p[1],b=null;return C===0?b=(0,e.jsx)(f,{}):C===1&&(b=(0,e.jsx)(m,{})),(0,i.modalRegisterBodyOverride)("virus",g),(0,e.jsxs)(a.p8,{height:500,width:520,children:[(0,e.jsx)(i.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[d&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:C===0,onClick:function(){return j(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:C===1,onClick:function(){return j(1)},children:"Database"})]}),b]})]})},f=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.syringe_inserted,p=c.pathogen_pool,C=c.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!C,onClick:function(){return h("print",{type:"patient_diagnosis"})}}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject Syringe",disabled:!d,onClick:function(){return h("eject")}})]}),children:p.length&&p.map(function(j){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 #",j.unique_id]}),j.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",content:"Isolate",onClick:function(){return h("isolate",{isolate:j.reference})}}),(0,e.jsx)(r.$n,{icon:"search",content:"Database",disabled:!j.is_in_database,onClick:function(){return h("view_entry",{vir:j.record})}})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:j.name}),j.dna]})]},j.unique_id)})||(d?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},m=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.database,p=c.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!p,onClick:function(){return h("print",{type:"virus_list"})}}),children:d.length&&d.map(function(C){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return h("view_entry",{vir:C.record})},children:C.name},C.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},34557:function(P,y,t){"use strict";t.r(y),t.d(y,{Pda:function(){return f}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=t(82989),g=t(7339),x=function(h){var c;try{c=g("./"+h+".jsx")}catch(p){if(p.code==="MODULE_NOT_FOUND")return(0,a.z)("notFound",h);throw p}var d=c[h];return d||(0,a.z)("missingExport",h)},f=function(h){var c=function(R){M(R)},d=(0,n.Oc)(),p=d.act,C=d.data,j=C.app,b=C.owner,I=C.useRetro;if(!b)return(0,e.jsx)(i.p8,{children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var O=x(j.template),_=(0,s.useState)(!1),D=_[0],M=_[1];return(0,e.jsx)(i.p8,{width:580,height:670,theme:I?"pda-retro":null,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(m,{settingsMode:D,onSettingsMode:c}),D&&(0,e.jsx)(v,{})||(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)(O,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(u,{onSettingsMode:c})]})})},m=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.idInserted,j=p.idLink,b=p.cartridge_name,I=p.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!C&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return d("Authenticate")},content:j})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:I}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:h.settingsMode,onClick:function(){return h.onSettingsMode(!h.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return d("Retro")},icon:"adjust"})]})]})})},v=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.idInserted,j=p.idLink,b=p.cartridge_name,I=p.touch_silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.$n,{icon:"cog",content:"Retro Theme",onClick:function(){return d("Retro")}})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!I,content:I?"Disabled":"Enabled",onClick:function(){return d("TouchSounds")}})}),!!b&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("Eject")},content:b})}),!!C&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("Authenticate")},content:j})})]})})},u=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.app,j=p.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:j?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:C.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return d("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:C.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){h.onSettingsMode(!1),d("Home")}})})]})})}},47676:function(P,y,t){"use strict";t.r(y),t.d(y,{PersonalCrafting:function(){return m}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905);function a(u,h){(h==null||h>u.length)&&(h=u.length);for(var c=0,d=new Array(h);c=u.length?{done:!0}:{done:!1,value:u[d++]}}}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 m=function(u){for(var h,c=(0,n.Oc)(),d=c.act,p=c.data,C=p.busy,j=p.display_craftable_only,b=p.display_compact,I=p.crafting_recipes||{},O=[],_=[],D=f(Object.keys(I)),M;!(M=D()).done;){var A=M.value,R=I[A];if("has_subcats"in R){for(var K=f(Object.keys(R)),N;!(N=K()).done;){var k=N.value;if(k!=="has_subcats"){O.push({name:k,category:A,subcategory:k});for(var V=R[k],F=f(V),J;!(J=F()).done;){var H=J.value;_.push(g({},H,{category:k}))}}}continue}O.push({name:A,category:A});for(var Y=I[A],Z=f(Y),X;!(X=Z()).done;){var z=X.value;_.push(g({},z,{category:A}))}}var Q=(0,s.useState)((h=O[0])==null?void 0:h.name),ee=Q[0],oe=Q[1],ne=_.filter(function(ue){return ue.category===ee});return(0,e.jsx)(i.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{content:"Compact",checked:b,onClick:function(){return d("toggle_compact")}}),(0,e.jsx)(r.$n.Checkbox,{content:"Craftable Only",checked:j,onClick:function(){return d("toggle_recipes")}})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:O.map(function(ue){return(0,e.jsx)(r.tU.Tab,{selected:ue.name===ee,onClick:function(){oe(ue.name),d("set_category",{category:ue.category,subcategory:ue.subcategory})},children:ue.name},ue.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(v,{craftables:ne})})]})})]})})},v=function(u){var h=u.craftables,c=h===void 0?[]:h,d=(0,n.Oc)(),p=d.act,C=d.data,j=C.craftability,b=j===void 0?{}:j,I=C.display_compact,O=C.display_craftable_only;return c.map(function(_){return O&&!b[_.ref]?null:I?(0,e.jsx)(r.Ki.Item,{label:_.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!b[_.ref],tooltip:_.tool_text&&"Tools needed: "+_.tool_text,tooltipPosition:"left",onClick:function(){return p("make",{recipe:_.ref})}}),children:_.req_text},_.name):(0,e.jsx)(r.wn,{title:_.name,level:2,buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!b[_.ref],onClick:function(){return p("make",{recipe:_.ref})}}),children:(0,e.jsxs)(r.Ki,{children:[!!_.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:_.req_text}),!!_.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:_.catalyst_text}),!!_.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:_.tool_text})]})},_.name)})}},75226:function(P,y,t){"use strict";t.r(y),t.d(y,{Photocopier:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(f){var m=(0,s.Oc)().data,v=m.isAI,u=m.has_toner,h=m.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:v?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[u?(0,e.jsx)(a,{}):(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted toner cartridge."})}),h?(0,e.jsx)(g,{}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted item."})}),!!v&&(0,e.jsx)(x,{})]})})},a=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.max_toner,c=u.current_toner,d=h*.66,p=h*.33;return(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.z2,{ranges:{good:[d,h],average:[p,d],bad:[0,p]},value:c,minValue:0,maxValue:h})})},g=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.num_copies,c=u.has_enough_toner;return(0,e.jsxs)(n.wn,{title:"Options",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Q7,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:h,onDrag:function(d,p){return v("set_copies",{num_copies:p})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return v("make_copy")},children:"Copy"})})]}),(0,e.jsx)(n.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return v("remove")},children:"Remove item"})]})},x=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.can_AI_print;return(0,e.jsx)(n.wn,{title:"AI Options",children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!h,onClick:function(){return v("ai_photo")},children:"Print photo from database"})})})}},23393:function(P,y,t){"use strict";t.r(y),t.d(y,{PipeDispenser:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=t(62133),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.disposals,h=v.p_layer,c=v.pipe_layers,d=v.categories,p=d===void 0?[]:d,C=(0,s.useState)("categoryName"),j=C[0],b=C[1],I=p.find(function(O){return O.cat_name===j})||p[0];return(0,e.jsx)(i.p8,{width:425,height:515,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!u&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(c).map(function(O){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:c[O]===h,content:O,onClick:function(){return m("p_layer",{p_layer:c[O]})}},O)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:p.map(function(O,_){return(0,e.jsx)(r.tU.Tab,{fluid:!0,icon:a.ICON_BY_CATEGORY_NAME[O.cat_name],selected:O.cat_name===I.cat_name,onClick:function(){return b(O.cat_name)},children:O.cat_name},O.cat_name)})}),I==null?void 0:I.recipes.map(function(O){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,content:O.pipe_name,title:O.pipe_name,onClick:function(){return m("dispense_pipe",{ref:O.ref,bent:O.bent,category:I.cat_name})}},O.pipe_name)})]})]})})}},28165:function(P,y,t){"use strict";t.r(y),t.d(y,{PlantAnalyzer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){var x=(0,s.Oc)().data,f=250;return x.seed&&(f+=18*x.seed.trait_info.length),x.reagents&&x.reagents.length&&(f+=55,f+=20*x.reagents.length),(0,e.jsx)(r.p8,{width:400,height:f,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.no_seed,u=m.seed,h=m.reagents;return v?(0,e.jsx)(n.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(n.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"print",onClick:function(){return f("print")},children:"Print Report"}),(0,e.jsx)(n.$n,{icon:"window-close",color:"red",onClick:function(){return f("close")}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Plant Name",children:[u.name,"#",u.uid]}),(0,e.jsx)(n.Ki.Item,{label:"Endurance",children:u.endurance}),(0,e.jsx)(n.Ki.Item,{label:"Yield",children:u.yield}),(0,e.jsx)(n.Ki.Item,{label:"Maturation Time",children:u.maturation_time}),(0,e.jsx)(n.Ki.Item,{label:"Production Time",children:u.production_time}),(0,e.jsx)(n.Ki.Item,{label:"Potency",children:u.potency})]}),h.length&&(0,e.jsx)(n.wn,{level:2,title:"Plant Reagents",children:(0,e.jsx)(n.Ki,{children:h.map(function(c){return(0,e.jsxs)(n.Ki.Item,{label:c.name,children:[c.volume," unit(s)."]},c.name)})})})||null,(0,e.jsx)(n.wn,{level:2,title:"Other Data",children:u.trait_info.map(function(c){return(0,e.jsx)(n.az,{color:"label",mb:.4,children:c},c)})})]})}},73304:function(P,y,t){"use strict";t.r(y),t.d(y,{PlayerNotes:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.device_theme,v=f.filter,u=f.pages,h=f.ckeys,c=function(d){return d()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:m,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Player notes",children:[(0,e.jsx)(n.$n,{icon:"filter",onClick:function(){return x("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(n.$n,{icon:"sidebar",onClick:function(){return x("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.$n.Input,{content:"CKEY to Open",onCommit:function(d,p){return x("show_player_info",{name:p})}}),(0,e.jsx)(n.cG,{vertical:!0}),(0,e.jsx)(n.$n,{color:"green",content:v,onClick:function(){return x("clear_player_info_filter")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.XI,{children:h.map(function(d){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"user",content:d.desc,onClick:function(){return x("show_player_info",{name:d.name})},children:d.name})})},d.name)})}),(0,e.jsx)(n.cG,{}),c(function(){for(var d=function(j){p.push((0,e.jsx)(n.$n,{onClick:function(){return x("set_page",{index:j})},children:j},j))},p=[],C=1;C=.5&&"good"||v>.15&&"average"||"bad";return(0,e.jsx)(i.p8,{width:450,height:340,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!m.anchored&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:m.active?"power-off":"times",onClick:function(){return f("toggle_power")},selected:m.active,disabled:!m.ready_to_boot,children:m.active?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:m.fuel_stored>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:m.active,onClick:function(){return f("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:u,children:[m.fuel_stored,"cm\xB3 ",m.sheet_name]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:m.fuel_stored/m.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[m.fuel_stored,"cm\xB3 / ",m.fuel_capacity,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[m.fuel_usage," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:m.temperature_current,maxValue:m.temperature_max+30,color:m.temperature_overheat?"bad":"good",children:[(0,s.LI)(m.temperature_current),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:m.unsafe_output?"bad":null,children:m.power_output}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return f("lower_power")},children:m.power_generated}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return f("higher_power")},children:m.power_generated})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!m.connected&&"bad",children:m.connected?m.power_available:"Unconnected"})})]})})]})})}},60185:function(P,y,t){"use strict";t.r(y),t.d(y,{PortablePump:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(62681),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.direction,u=m.target_pressure,h=m.default_pressure,c=m.min_pressure,d=m.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)(i.PortableBasicInfo,{}),(0,e.jsx)(n.wn,{title:"Pump",buttons:(0,e.jsx)(n.$n,{icon:v?"sign-in-alt":"sign-out-alt",content:v?"In":"Out",selected:v,onClick:function(){return f("direction")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Output",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:c,maxValue:d,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(p,C){return f("pressure",{pressure:C})}})}),(0,e.jsxs)(n.Ki.Item,{label:"Presets",children:[(0,e.jsx)(n.$n,{icon:"minus",disabled:u===c,onClick:function(){return f("pressure",{pressure:"min"})}}),(0,e.jsx)(n.$n,{icon:"sync",disabled:u===h,onClick:function(){return f("pressure",{pressure:"reset"})}}),(0,e.jsx)(n.$n,{icon:"plus",disabled:u===d,onClick:function(){return f("pressure",{pressure:"max"})}})]})]})})]})})}},38605:function(P,y,t){"use strict";t.r(y),t.d(y,{PortableScrubber:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(62681),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.rate,u=m.minrate,h=m.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(i.PortableBasicInfo,{}),(0,e.jsx)(n.wn,{title:"Power Regulator",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:u,maxValue:h,value:v,unit:"L/s",onChange:function(c,d){return f("volume_adj",{vol:d})}})})})})]})})}},81537:function(P,y,t){"use strict";t.r(y),t.d(y,{PortableTurret:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.locked,v=f.on,u=f.lethal,h=f.lethal_is_configurable,c=f.targetting_is_configurable,d=f.check_weapons,p=f.neutralize_noaccess,C=f.neutralize_norecord,j=f.neutralize_criminals,b=f.neutralize_all,I=f.neutralize_nonsynth,O=f.neutralize_unidentified,_=f.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)(n.IC,{children:["Swipe an ID card to ",m?"unlock":"lock"," this interface."]}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",content:v?"On":"Off",selected:v,disabled:m,onClick:function(){return x("power")}})}),!!h&&(0,e.jsx)(n.Ki.Item,{label:"Lethals",children:(0,e.jsx)(n.$n,{icon:u?"exclamation-triangle":"times",content:u?"On":"Off",color:u?"bad":"",disabled:m,onClick:function(){return x("lethal")}})})]})}),!!c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:j,content:"Wanted Criminals",disabled:m,onClick:function(){return x("autharrest")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:C,content:"No Sec Record",disabled:m,onClick:function(){return x("authnorecord")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:d,content:"Unauthorized Weapons",disabled:m,onClick:function(){return x("authweapon")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,content:"Unauthorized Access",disabled:m,onClick:function(){return x("authaccess")}})]}),(0,e.jsxs)(n.wn,{title:"Other Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:O,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:m,onClick:function(){return x("authxeno")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:I,content:"All Non-Synthetics",disabled:m,onClick:function(){return x("authsynth")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:_,content:"Downed Targets",disabled:m,onClick:function(){return x("authdown")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:m,onClick:function(){return x("authall")}})]})]})]})})}},16421:function(P,y,t){"use strict";t.r(y),t.d(y,{AreaCharge:function(){return d},PowerMonitor:function(){return u},PowerMonitorContent:function(){return h},PowerMonitorFocus:function(){return c},powerRank:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(5229),i=t(44583),a=t(4413),g=t(92514),x=t(84905);function f(){return f=Object.assign||function(C){for(var j=1;j50?"battery-half":"battery-quarter")||j===1&&"bolt"||j===2&&"battery-full",color:j===0&&(b>50?"yellow":"red")||j===1&&"yellow"||j===2&&"green"}),(0,e.jsx)(g.az,{inline:!0,width:"36px",textAlign:"right",children:(0,r.Mg)(b)+"%"})]})},p=function(C){var j=C.status,b=!!(j&2),I=!!(j&1),O=(b?"On":"Off")+(" ["+(I?"auto":"manual")+"]");return(0,e.jsx)(g.BK,{color:b?"good":"bad",content:I?void 0:"M",title:O})}},63054:function(P,y,t){"use strict";t.r(y),t.d(y,{PressureRegulator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.pressure_set,u=f.max_pressure,h=f.input_pressure,c=f.output_pressure,d=f.regulate_mode,p=f.set_flow_rate,C=f.last_flow_rate;return(0,e.jsx)(r.p8,{width:470,height:370,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(n.zv,{value:h/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.zv,{value:c/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:C/10})," L/s"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:m?"Unlocked":"Closed",selected:m,onClick:function(){return x("toggle_valve")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:"Off",selected:d===0,onClick:function(){return x("regulate_mode",{mode:"off"})}}),(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"Input",selected:d===1,onClick:function(){return x("regulate_mode",{mode:"input"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"Output",selected:d===2,onClick:function(){return x("regulate_mode",{mode:"output"})}})]})}),(0,e.jsxs)(n.Ki.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_press",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_press",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return x("set_press",{press:"set"})}})]}),children:[v/100," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_flow_rate",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_flow_rate",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return x("set_flow_rate",{press:"set"})}})]}),children:[p/10," L/s"]})]})})]})})}},21143:function(P,y,t){"use strict";t.r(y),t.d(y,{PrisonerManagement:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.locked,v=f.chemImplants,u=f.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:m&&(0,e.jsxs)(n.wn,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"unlock",onClick:function(){return x("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Interface Lock",buttons:(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return x("lock")},children:"Lock Interface"})}),(0,e.jsx)(n.wn,{title:"Chemical Implants",children:v.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Inject"})]}),v.map(function(h){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:h.host}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[h.units,"u remaining"]}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:h.ref,val:1})},children:"(1)"}),(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:h.ref,val:5})},children:"(5)"}),(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:h.ref,val:10})},children:"(10)"})]})]},h.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(n.wn,{title:"Tracking Implants",children:u.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Message"})]}),u.map(function(h){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[h.host," (",h.id,")"]}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:h.loc}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{onClick:function(){return x("warn",{imp:h.ref})},children:"Message"})})]},h.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})})]})})})}},72128:function(P,y,t){"use strict";t.r(y),t.d(y,{RCON:function(){return m},RCONContent:function(){return v}});var e=t(88095),s=t(5229),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(24158),x=t(84905),f=1e3,m=function(p){return(0,e.jsx)(x.p8,{width:630,height:540,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(p){var C=(0,r.useState)(0),j=C[0],b=C[1],I;return j===0?I=(0,e.jsx)(u,{}):j===1&&(I=(0,e.jsx)(d,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:j===0,onClick:function(){return b(0)},children:[(0,e.jsx)(a.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(a.tU.Tab,{selected:j===1,onClick:function(){return b(1)},children:[(0,e.jsx)(a.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(a.az,{m:2,children:I})]})},u=function(p){var C=(0,i.Oc)(),j=C.act,b=C.data,I=b.smes_info,O=b.pages,_=b.current_page,D=function(M){return M()};return(0,e.jsxs)(a.wn,{title:"SMESs (Page "+_+")",children:[(0,e.jsx)(a.BJ,{vertical:!0,children:I.map(function(M){return(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(h,{smes:M})},M.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),D(function(){for(var M=function(K){A.push((0,e.jsx)(a.$n,{selected:_===K,onClick:function(){return j("set_smes_page",{index:K})},children:K},K))},A=[],R=1;R=2?(0,e.jsx)(r.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)(r.az,{color:"average",children:["Engage: ",j.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",j.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",j.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:j.desc})]}),j.charges?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Module Charges",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Selected",children:(0,s.ZH)(j.chargetype)}),j.charges.map(function(I,O){return(0,e.jsx)(r.Ki.Item,{label:(0,s.ZH)(I.caption),children:(0,e.jsx)(r.$n,{selected:j.realchargetype===I.index,icon:"arrow-right",onClick:function(){return u("interact_module",{module:j.index,module_mode:"select_charge_type",charge_type:I.index})}})},I.caption)})]})})}):null]},j.name)})]})}},51065:function(P,y,t){"use strict";t.r(y),t.d(y,{Radio:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(1568),a=t(84905),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.rawfreq,h=v.minFrequency,c=v.maxFrequency,d=v.listening,p=v.broadcasting,C=v.subspace,j=v.subspaceSwitchable,b=v.chan_list,I=v.loudspeaker,O=v.mic_cut,_=v.spk_cut,D=v.useSyndMode,M=i.Fo.find(function(R){return R.freq===Number(u)}),A=156;return b&&b.length>0?A+=b.length*28+6:A+=24,j&&(A+=38),(0,e.jsx)(a.p8,{width:310,height:A,resizable:!0,theme:D?"syndicate":"",children:(0,e.jsxs)(a.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:h/10,maxValue:c/10,value:u/10,format:function(R){return(0,s.Mg)(R,1)},onDrag:function(R,K){return m("setFrequency",{freq:(0,s.LI)(K*10)})}}),M&&(0,e.jsxs)(r.az,{inline:!0,color:M.color,ml:2,children:["[",M.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:d?"volume-up":"volume-mute",selected:d,disabled:_,onClick:function(){return m("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:p?"microphone":"microphone-slash",selected:p,disabled:O,onClick:function(){return m("broadcast")}}),!!j&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:C,content:"Subspace Tx "+(C?"ON":"OFF"),onClick:function(){return m("subspace")}})}),!!j&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:I?"volume-up":"volume-mute",selected:I,content:"Loudspeaker",onClick:function(){return m("toggleLoudspeaker")}})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!b||b.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:b?b.map(function(R){var K=i.Fo.find(function(k){return k.freq===Number(R.freq)}),N="default";return K&&(N=K.color),(0,e.jsx)(r.Ki.Item,{label:R.display_name,labelColor:N,textAlign:"right",children:R.secure_channel&&C?(0,e.jsx)(r.$n,{icon:R.sec_channel_listen?"square-o":"check-square-o",selected:!R.sec_channel_listen,content:R.sec_channel_listen?"Off":"On",onClick:function(){return m("channel",{channel:R.chan})}}):(0,e.jsx)(r.$n,{content:"Switch",selected:R.chan===u,onClick:function(){return m("specFreq",{channel:R.chan})}})},R.chan)}):null})]})]})})}},62133:function(P,y,t){"use strict";t.r(y),t.d(y,{ICON_BY_CATEGORY_NAME:function(){return f},RapidPipeDispenser:function(){return c}});var e=t(88095),s=t(84352),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(84905),x=["Atmospherics","Disposals"],f={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"},m=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],v=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.category,I=j.selected_color,O=j.mode;return(0,e.jsx)(a.wn,{children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Category",children:x.map(function(_,D){return(0,e.jsx)(a.$n,{selected:b===D,icon:f[_],color:"transparent",onClick:function(){return C("category",{category:D})},children:_},_)})}),(0,e.jsx)(a.Ki.Item,{label:"Modes",children:(0,e.jsx)(a.BJ,{fill:!0,children:m.map(function(_){return(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.$n.Checkbox,{checked:O&_.bitmask,fluid:!0,content:_.name,onClick:function(){return C("mode",{mode:_.bitmask})}})},_.bitmask)})})}),(0,e.jsxs)(a.Ki.Item,{label:"Color",children:[(0,e.jsx)(a.az,{inline:!0,width:"64px",color:j.paint_colors[I],children:(0,n.ZH)(I)}),Object.keys(j.paint_colors).map(function(_){return(0,e.jsx)(a.BK,{ml:1,color:j.paint_colors[_],onClick:function(){return C("color",{paint_color:_})}},_)})]})]})})},u=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.category,I=j.piping_layer,O=j.pipe_layers,_=j.preview_rows.flatMap(function(D){return D.previews});return(0,e.jsxs)(a.wn,{fill:!0,width:7.5,children:[b===0&&(0,e.jsx)(a.BJ,{vertical:!0,mb:1,children:Object.keys(O).map(function(D){return(0,e.jsx)(a.BJ.Item,{my:0,children:(0,e.jsx)(a.$n.Checkbox,{checked:O[D]===I,content:D,onClick:function(){return C("piping_layer",{piping_layer:O[D]})}})},D)})}),(0,e.jsx)(a.az,{width:"120px",children:_.map(function(D){return(0,e.jsx)(a.$n,{ml:0,title:D.dir_name,selected:D.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return C("setdir",{dir:D.dir,flipped:D.flipped})},children:(0,e.jsx)(a.az,{className:(0,s.Ly)(["pipes32x32",D.dir+"-"+D.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},D.dir)})})]})},h=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.categories,I=b===void 0?[]:b,O=(0,r.useState)("categoryName"),_=O[0],D=O[1],M=I.find(function(A){return A.cat_name===_})||I[0];return(0,e.jsxs)(a.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(a.tU,{children:I.map(function(A,R){return(0,e.jsx)(a.tU.Tab,{fluid:!0,icon:f[A.cat_name],selected:A.cat_name===M.cat_name,onClick:function(){return D(A.cat_name)},children:A.cat_name},A.cat_name)})}),M==null?void 0:M.recipes.map(function(A){return(0,e.jsx)(a.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:A.selected,content:A.pipe_name,title:A.pipe_name,onClick:function(){return C("pipe_type",{pipe_type:A.pipe_index,category:M.cat_name})}},A.pipe_index)})]})},c=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.category;return(0,e.jsx)(g.p8,{width:550,height:570,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(v,{})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{})})})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(h,{})})]})})]})})})}},53112:function(P,y,t){"use strict";t.r(y),t.d(y,{RequestConsole:function(){return R}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=0,g=1,x=2,f=3,m=4,v=5,u=6,h=7,c=8,d=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.$n,{selected:!F,icon:F?"volume-mute":"volume-up",onClick:function(){return k("toggleSilent")},children:["Speaker ",F?"OFF":"ON"]})})},p=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.supply_dept;return(0,e.jsx)(r.wn,{title:"Supplies",children:(0,e.jsx)(b,{dept_list:J,department:F})})},C=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.assist_dept;return(0,e.jsx)(r.wn,{title:"Request assistance from another department",children:(0,e.jsx)(b,{dept_list:J,department:F})})},j=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.info_dept;return(0,e.jsx)(r.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(b,{dept_list:J,department:F})})},b=function(K){var N=(0,n.Oc)().act,k=K.dept_list,V=K.department;return(0,e.jsx)(r.Ki,{children:k.sort().map(function(F){return F!==V&&(0,e.jsx)(r.Ki.Item,{label:F,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"envelope-open-text",onClick:function(){return N("write",{write:F,priority:1})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"exclamation-triangle",onClick:function(){return N("write",{write:F,priority:2})},children:"High Priority"})]})})||null})})},I=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:a})},children:"Continue"})})]})},O=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:a})},children:"Continue"})})]})},_=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:F.length&&F.map(function(J,H){return(0,e.jsx)(r.Ki.Item,{label:(0,s.jT)(J[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return k("print",{print:H+1})},children:"Print"}),children:(0,s.jT)(J[1])},H)})||(0,e.jsx)(r.az,{children:"No messages."})})},D=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.message,J=V.recipient,H=V.priority,Y=V.msgStamped,Z=V.msgVerified;return(0,e.jsxs)(r.wn,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message for "+J,children:F}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:H===2?"High Priority":H===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:Z?"good":"bad",children:(0,s.jT)(Z)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:Y?"good":"bad",children:(0,s.jT)(Y)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return k("department",{department:J})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:a})},children:"Back"})]})},M=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.screen,H=V.message_log,Y=V.newmessagepriority,Z=V.silent,X=V.announcementConsole,z=V.assist_dept,Q=V.supply_dept,ee=V.info_dept,oe=V.message,ne=V.recipient,ue=V.priority,ce=V.msgStamped,me=V.msgVerified,xe=V.announceAuth;return(0,e.jsxs)(r.wn,{title:"Send Station-Wide Announcement",children:[xe&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.wn,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.$n,{ml:1,icon:"pen",onClick:function(){return k("writeAnnouncement")},children:"Edit"}),children:oe||"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:!oe||!xe,icon:"share",onClick:function(){return k("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:a})},children:"Back"})]})},A={};A[a]=d,A[g]=C,A[x]=p,A[f]=j,A[m]=I,A[v]=O,A[u]=_,A[h]=D,A[c]=M;var R=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.screen,J=V.newmessagepriority,H=V.announcementConsole,Y=A[F];return(0,e.jsx)(i.p8,{width:520,height:410,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:F===u,onClick:function(){return k("setScreen",{setScreen:u})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(r.tU.Tab,{selected:F===g,onClick:function(){return k("setScreen",{setScreen:g})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(r.tU.Tab,{selected:F===x,onClick:function(){return k("setScreen",{setScreen:x})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(r.tU.Tab,{selected:F===f,onClick:function(){return k("setScreen",{setScreen:f})},icon:"share-square-o",children:"Report"}),H&&(0,e.jsx)(r.tU.Tab,{selected:F===c,onClick:function(){return k("setScreen",{setScreen:c})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(r.tU.Tab,{selected:F===a,onClick:function(){return k("setScreen",{setScreen:a})},icon:"cog"})]}),J&&(0,e.jsx)(r.wn,{title:J>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:J>1?"bad":"average",bold:J>1})||null,(0,e.jsx)(Y,{})]})})}},51634:function(P,y,t){"use strict";t.r(y),t.d(y,{ResearchConsole:function(){return I}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(84905);function g(){return g=Object.assign||function(O){for(var _=1;_=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:J.biomass>=150?"circle":"circle-o"}),"\xA0",J.biomass]}),Y]},H)}):null},I=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.sleevers,V=N.spods,F=N.selected_sleever;return k&&k.length?k.map(function(J,H){return(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"sleeve_"+(J.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:J.occupied?"label":"bad",children:J.name}),(0,e.jsx)(r.$n,{selected:F===J.sleever,icon:F===J.sleever&&"check",content:"Select",mt:V&&V.length?"3rem":"1.5rem",onClick:function(){return K("selectsleever",{ref:J.sleever})}})]},H)}):null},O=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.spods,V=N.selected_printer;return k&&k.length?k.map(function(F,J){var H;return F.status==="cloning"?H=(0,e.jsx)(r.z2,{min:"0",max:"100",value:F.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,s.LI)(F.progress,0)+"%"})}):F.status==="mess"?H=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.$n,{selected:V===F.spod,icon:V===F.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return K("selectprinter",{ref:F.spod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"synthprinter"+(F.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:"label",children:F.name}),(0,e.jsxs)(r.az,{bold:!0,color:F.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.steel>=15e3?"circle":"circle-o"}),"\xA0",F.steel]}),(0,e.jsxs)(r.az,{bold:!0,color:F.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.glass>=15e3?"circle":"circle-o"}),"\xA0",F.glass]}),H]},J)}):null},_=function(A){var R=(0,n.Oc)().act,K=A.records,N=A.actToDo;return K.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:K.map(function(k,V){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:k.name,onClick:function(){return R(N,{ref:k.recref})}},V)})}):(0,e.jsx)(r.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},D=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.temp;if(!(!k||!k.text||k.text.length<=0)){var V,F=(V={},V[k.style]=!0,V);return(0,e.jsxs)(r.IC,g({},F,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:k.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return K("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},M=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.pods,V=N.spods,F=N.sleevers,J=N.autoallowed,H=N.autoprocess,Y=N.disk;return(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Pods",children:k&&k.length?(0,e.jsxs)(r.az,{color:"good",children:[k.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"SynthFabs",children:V&&V.length?(0,e.jsxs)(r.az,{color:"good",children:[V.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Sleevers",children:F&&F.length?(0,e.jsxs)(r.az,{color:"good",children:[F.length," Connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},26967:function(P,y,t){"use strict";t.r(y),t.d(y,{ResleevingPod:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)().data,x=g.occupied,f=g.name,m=g.health,v=g.maxHealth,u=g.stat,h=g.mindStatus,c=g.mindName,d=g.resleeveSick,p=g.initialSick;return(0,e.jsx)(r.p8,{width:300,height:350,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Occupant",children:x?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:f}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:u===2?(0,e.jsx)(n.az,{color:"bad",children:"DEAD"}):u===1?(0,e.jsx)(n.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(n.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:m/v,children:[m,"%"]})}),(0,e.jsx)(n.Ki.Item,{label:"Mind Status",children:h?"Present":"Missing"}),h?(0,e.jsx)(n.Ki.Item,{label:"Mind Occupying",children:c}):""]}),d?(0,e.jsxs)(n.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",p?(0,e.jsxs)(e.Fragment,{children:[" ","Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected."]}):""]}):""]}):(0,e.jsx)(n.az,{bold:!0,m:1,children:"Unoccupied."})})})})}},74367:function(P,y,t){"use strict";t.r(y),t.d(y,{RoboticsControlConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.can_hack,u=m.safety,h=m.show_detonate_all,c=m.cyborgs,d=c===void 0?[]:c;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!h&&(0,e.jsxs)(n.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(n.$n,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return f("arm",{})}}),(0,e.jsx)(n.$n,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return f("nuke",{})}})]}),(0,e.jsx)(a,{cyborgs:d,can_hack:v})]})})},a=function(g){var x=g.cyborgs,f=g.can_hack,m=(0,s.Oc)(),v=m.act,u=m.data;return x.length?x.map(function(h){return(0,e.jsx)(n.wn,{title:h.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!h.hackable&&!h.emagged&&(0,e.jsx)(n.$n,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return v("hackbot",{ref:h.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:h.locked_down?"unlock":"lock",color:h.locked_down?"good":"default",content:h.locked_down?"Release":"Lockdown",disabled:!u.auth,onClick:function(){return v("stopbot",{ref:h.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"bomb",content:"Detonate",disabled:!u.auth,color:"bad",onClick:function(){return v("killbot",{ref:h.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.az,{color:h.status?"bad":h.locked_down?"average":"good",children:h.status?"Not Responding":h.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(n.Ki.Item,{label:"Location",children:(0,e.jsx)(n.az,{children:h.locstring})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:h.health>50?"good":"bad",value:h.health/100})}),typeof h.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(n.z2,{color:h.charge>30?"good":"bad",value:h.charge/100})}),(0,e.jsx)(n.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(n.az,{color:h.cell_capacity<3e4?"average":"good",children:h.cell_capacity})})]})||(0,e.jsx)(n.Ki.Item,{label:"Cell",children:(0,e.jsx)(n.az,{color:"bad",children:"No Power Cell"})}),!!h.is_hacked&&(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Module",children:h.module}),(0,e.jsx)(n.Ki.Item,{label:"Master AI",children:(0,e.jsx)(n.az,{color:h.synchronization?"default":"average",children:h.synchronization||"None"})})]})},h.ref)}):(0,e.jsx)(n.IC,{children:"No cyborg units detected within access parameters."})}},35401:function(P,y,t){"use strict";t.r(y),t.d(y,{RogueZones:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.timeout_percent,v=f.diffstep,u=f.difficulty,h=f.occupied,c=f.scanning,d=f.updated,p=f.debug,C=f.shuttle_location,j=f.shuttle_at_station,b=f.scan_ready,I=f.can_recall_shuttle;return(0,e.jsx)(r.p8,{width:360,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Current Area",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Mineral Content",children:u}),(0,e.jsx)(n.Ki.Item,{label:"Shuttle Location",buttons:I&&(0,e.jsx)(n.$n,{color:"bad",icon:"rocket",onClick:function(){return x("recall_shuttle")},children:"Recall Shuttle"})||null,children:C}),h&&(0,e.jsxs)(n.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",h," personnel!"]})||(0,e.jsx)(n.Ki.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(n.wn,{title:"Scanner",buttons:(0,e.jsx)(n.$n,{disabled:!b,fluid:!0,icon:"search",onClick:function(){return x("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(n.z2,{value:m,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),c&&(0,e.jsx)(n.Ki.Item,{label:"Scanning",children:"In progress."})||null,d&&!c&&(0,e.jsx)(n.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,p&&(0,e.jsxs)(n.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(n.az,{children:["Timeout Percent: ",m]}),(0,e.jsxs)(n.az,{children:["Diffstep: ",v]}),(0,e.jsxs)(n.az,{children:["Difficulty: ",u]}),(0,e.jsxs)(n.az,{children:["Occupied: ",h]}),(0,e.jsxs)(n.az,{children:["Debug: ",p]}),(0,e.jsxs)(n.az,{children:["Shuttle Location: ",C]}),(0,e.jsxs)(n.az,{children:["Shuttle at station: ",j]}),(0,e.jsxs)(n.az,{children:["Scan Ready: ",b]})]})||null]})})]})})}},45653:function(P,y,t){"use strict";t.r(y),t.d(y,{RustCoreMonitor:function(){return i},RustCoreMonitorContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.cores;return(0,e.jsx)(n.wn,{title:"Cores",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Field Status"}),(0,e.jsx)(n.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(n.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(n.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(n.XI.Cell,{children:"Plasma Content"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.has_field?"Online":"Offline",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return f("toggle_active",{core:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.reactant_dump?"Dump":"Maintain",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return f("toggle_reactantdump",{core:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:u.field_instability}),(0,e.jsx)(n.XI.Cell,{children:u.field_temperature}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.has_field&&"yellow",value:u.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(h,c){return f("set_fieldstr",{core:u.ref,fieldstr:c})}})}),(0,e.jsx)(n.XI.Cell,{})]},u.name)})]})})}},39899:function(P,y,t){"use strict";t.r(y),t.d(y,{RustFuelContent:function(){return a},RustFuelControl:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.fuels;return(0,e.jsx)(n.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(n.XI.Cell,{children:"Fuel Rod Composition"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.active?"Online":"Offline",selected:u.active,disabled:!u.deployed,onClick:function(){return f("toggle_active",{fuel:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:u.fuel_amt}),(0,e.jsx)(n.XI.Cell,{children:u.fuel_type})]},u.name)})]})})}},19208:function(P,y,t){"use strict";t.r(y),t.d(y,{Secbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.open,u=f.locked,h=f.idcheck,c=f.check_records,d=f.check_arrest,p=f.arrest_type,C=f.declare_arrests,j=f.bot_patrolling,b=f.patrol;return(0,e.jsx)(r.p8,{width:390,height:320,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("power")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(n.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("idcheck")},children:h?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(n.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return x("ignorerec")},children:c?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(n.$n,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return x("ignorearr")},children:d?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("switchmode")},children:p?"Detain":"Arrest"})}),(0,e.jsx)(n.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("declarearrests")},children:C?"Yes":"No"})}),!!j&&(0,e.jsx)(n.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(n.$n,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return x("patrol")},children:b?"Yes":"No"})})]})})||null]})})}},46226:function(P,y,t){"use strict";t.r(y),t.d(y,{SecureSafe:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],u=m.locked,h=m.l_setshort,c=m.code,d=m.emagged;return(0,e.jsx)(n.az,{width:"185px",children:(0,e.jsx)(n.XI,{width:"1px",children:v.map(function(p){return(0,e.jsx)(n.XI.Cell,{children:p.map(function(C){return(0,e.jsx)(n.$n,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!d||!!h&&1||C!=="R"&&!u||c==="ERROR"&&C!=="R"&&1,onClick:function(){return f("type",{digit:C})}},C)})},p[0])})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.code,u=m.l_setshort,h=m.l_set,c=m.emagged,d=m.locked,p=!(h||u);return(0,e.jsx)(r.p8,{width:250,height:380,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.az,{m:"6px",children:[p&&(0,e.jsx)(n.IC,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!c&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!u&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(n.wn,{height:"60px",children:(0,e.jsx)(n.az,{textAlign:"center",position:"center",fontSize:"35px",children:v&&v||(0,e.jsx)(n.az,{textColor:d?"red":"green",children:d?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(n.so,{ml:"3px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(i,{})}),(0,e.jsx)(n.so.Item,{ml:"6px",width:"129px"})]})]})})})}},34200:function(P,y,t){"use strict";t.r(y),t.d(y,{SecurityRecords:function(){return m}});var e=t(88095),s=t(4413),n=t(92514),r=t(5425),i=t(84905),a=t(71451),g=t(1887),x=t(82489),f=function(C){(0,r.modalOpen)("edit",{field:C.edit,value:C.value})},m=function(C){var j=(0,s.Oc)().data,b=j.authenticated,I=j.screen;if(!b)return(0,e.jsx)(i.p8,{width:700,height:680,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var O;return I===2?O=(0,e.jsx)(v,{}):I===3?O=(0,e.jsx)(u,{}):I===4&&(O=(0,e.jsx)(h,{})),(0,e.jsxs)(i.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.LoginInfo,{}),(0,e.jsx)(x.TemporaryNotice,{}),(0,e.jsx)(p,{}),(0,e.jsx)(n.wn,{flexGrow:!0,children:O})]})]})},v=function(C){var j=(0,s.Oc)(),b=j.act,I=j.data,O=I.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(_,D){return b("search",{t1:D})}}),(0,e.jsx)(n.az,{mt:"0.5rem",children:O.map(function(_,D){return(0,e.jsx)(n.$n,{icon:"user",mb:"0.5rem",color:_.color,content:_.id+": "+_.name+" (Criminal Status: "+_.criminal+")",onClick:function(){return b("d_rec",{d_rec:_.ref})}},D)})})]})},u=function(C){var j=(0,s.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return j("del_all")}})]})},h=function(C){var j=(0,s.Oc)(),b=j.act,I=j.data,O=I.security,_=I.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.wn,{title:"Security Data",children:(0,e.jsx)(d,{})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!O.empty,content:"Delete Security Record",color:"bad",onClick:function(){return b("del_r")}}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!O.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return b("del_r_2")}}),(0,e.jsx)(n.$n,{icon:_?"spinner":"print",disabled:_,iconSpin:!!_,content:"Print Entry",ml:"0.5rem",onClick:function(){return b("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return b("screen",{screen:2})}})]})]})},c=function(C){var j=(0,s.Oc)(),b=j.act,I=j.data,O=I.general;return!O||!O.fields?(0,e.jsx)(n.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:O.fields.map(function(_,D){return(0,e.jsxs)(n.Ki.Item,{label:_.field,children:[(0,e.jsx)(n.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:_.value}),!!_.edit&&(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return f(_)}})]},D)})})}),(0,e.jsxs)(n.so.Item,{textAlign:"right",children:[!!O.has_photos&&O.photos.map(function(_,D){return(0,e.jsxs)(n.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:_.substr(1,_.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",D+1]},D)}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return b("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(n.$n,{onClick:function(){return b("photo_side")},children:"Update Side Photo"})]})]})]})},d=function(C){var j=(0,s.Oc)(),b=j.act,I=j.data,O=I.security;return!O||!O.fields?(0,e.jsxs)(n.az,{color:"bad",children:["Security records lost!",(0,e.jsx)(n.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return b("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki,{children:O.fields.map(function(_,D){return(0,e.jsx)(n.Ki.Item,{label:_.field,children:(0,e.jsxs)(n.az,{preserveWhitespace:!0,children:[_.value,(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",mb:_.line_break?"1rem":"initial",onClick:function(){return f(_)}})]})},D)})}),(0,e.jsxs)(n.wn,{title:"Comments/Log",children:[O.comments.length===0?(0,e.jsx)(n.az,{color:"label",children:"No comments found."}):O.comments.map(function(_,D){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,children:_.header}),(0,e.jsx)("br",{}),_.text,(0,e.jsx)(n.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return b("del_c",{del_c:D+1})}})]},D)}),(0,e.jsx)(n.$n,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")}})]})]})},p=function(C){var j=(0,s.Oc)(),b=j.act,I=j.data,O=I.screen;return(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:O===2,icon:"list",onClick:function(){return b("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(n.tU.Tab,{icon:"wrench",selected:O===3,onClick:function(){return b("screen",{screen:3})},children:"Record Maintenance"})]})}},2930:function(P,y,t){"use strict";t.r(y),t.d(y,{SeedStorage:function(){return g}});var e=t(88095),s=t(11358),n=t(33854),r=t(4413),i=t(92514),a=t(84905),g=function(x){var f=(0,r.Oc)(),m=f.act,v=f.data,u=v.scanner,h=v.seeds,c=(0,s.Ul)(function(d){return d.name.toLowerCase()})(h);return(0,e.jsx)(a.p8,{width:600,height:760,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(i.wn,{title:"Seeds",children:c.map(function(d){return(0,e.jsxs)(i.so,{spacing:1,mt:-1,children:[(0,e.jsx)(i.so.Item,{basis:"60%",children:(0,e.jsx)(i.Nt,{title:(0,n.Sn)(d.name)+" #"+d.uid,children:(0,e.jsx)(i.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(i.Ki,{children:Object.keys(d.traits).map(function(p){return(0,e.jsx)(i.Ki.Item,{label:(0,n.Sn)(p),children:d.traits[p]},p)})})})})}),(0,e.jsxs)(i.so.Item,{mt:.4,children:[d.amount," Remaining"]}),(0,e.jsx)(i.so.Item,{grow:1,children:(0,e.jsx)(i.$n,{fluid:!0,icon:"download",onClick:function(){return m("vend",{id:d.id})},children:"Vend"})}),(0,e.jsx)(i.so.Item,{grow:1,children:(0,e.jsx)(i.$n,{fluid:!0,icon:"trash",onClick:function(){return m("purge",{id:d.id})},children:"Purge"})})]},d.name+d.uid)})})})})}},7249:function(P,y,t){"use strict";t.r(y),t.d(y,{ShieldCapacitor:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.active,h=v.time_since_fail,c=v.stored_charge,d=v.max_charge,p=v.charge_rate,C=v.max_charge_rate;return(0,e.jsx)(a.p8,{width:500,height:400,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return m("toggle")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:h>2?(0,e.jsx)(r.az,{color:"good",children:"OK."}):(0,e.jsx)(r.az,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ki.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.zv,{value:c,format:function(j){return(0,i.QL)(j,0,"J")}})," ","(",(0,e.jsx)(r.zv,{value:100*(0,s.LI)(c/d,1)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:p,step:100,stepPixelSize:.2,minValue:1e4,maxValue:C,format:function(j){return(0,i.d5)(j)},onDrag:function(j,b){return m("charge_rate",{rate:b})}})})]})})})})}},28010:function(P,y,t){"use strict";t.r(y),t.d(y,{ShieldGenerator:function(){return x}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=t(13221),x=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.locked;return(0,e.jsx)(a.p8,{width:500,height:400,children:(0,e.jsx)(a.p8.Content,{children:d?(0,e.jsx)(f,{}):(0,e.jsx)(m,{})})})},f=function(v){return(0,e.jsxs)(g.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.az,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},m=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.lockedData,p=d.capacitors,C=d.active,j=d.failing,b=d.radius,I=d.max_radius,O=d.z_range,_=d.max_z_range,D=d.average_field_strength,M=d.target_field_strength,A=d.max_field_strength,R=d.shields,K=d.upkeep,N=d.strengthen_rate,k=d.max_strengthen_rate,V=d.gen_power,F=(p||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Field Status",children:j?(0,e.jsx)(r.az,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.az,{color:"good",children:"Stable"})}),(0,e.jsxs)(r.Ki.Item,{label:"Overall Field Strength",children:[(0,s.LI)(D,2)," Renwick (",M&&(0,s.LI)(100*D/M,1)||"NA","%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,i.d5)(K)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,i.d5)(V)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[R," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:F?p.map(function(J,H){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+H,children:[J.active?(0,e.jsx)(r.az,{color:"good",children:"Online"}):(0,e.jsx)(r.az,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Charge",children:[(0,i.QL)(J.stored_charge,0,"J")," (",100*(0,s.LI)(J.stored_charge/J.max_charge,2),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:J.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},H)}):(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",content:C?"Online":"Offline",selected:C,onClick:function(){return h("toggle")}}),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:I,value:b,unit:"m",onDrag:function(J,H){return h("change_radius",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:_,value:O,unit:"vertical range",onDrag:function(J,H){return h("z_range",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:k,value:N,format:function(J){return(0,s.LI)(J,1)},unit:"Renwick/s",onDrag:function(J,H){return h("strengthen_rate",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:A,value:M,unit:"Renwick",onDrag:function(J,H){return h("target_field_strength",{val:H})}})})]})})]})}},52735:function(P,y,t){"use strict";t.r(y),t.d(y,{ShutoffMonitor:function(){return i},ShutoffMonitorContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.valves;return(0,e.jsx)(n.wn,{title:"Valves",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Open"}),(0,e.jsx)(n.XI.Cell,{children:"Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:u.open?"Yes":"No"}),(0,e.jsx)(n.XI.Cell,{children:u.enabled?"Auto":"Manual"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:u.open?"Opened":"Closed",selected:u.open,disabled:!u.enabled,onClick:function(){return f("toggle_open",{valve:u.ref})}}),(0,e.jsx)(n.$n,{icon:"power-off",content:u.enabled?"Auto":"Manual",selected:u.enabled,onClick:function(){return f("toggle_enable",{valve:u.ref})}})]})]},u.name)})]})})}},72736:function(P,y,t){"use strict";t.r(y),t.d(y,{ShuttleControl:function(){return h}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(c,d){var p="ERROR",C="bad",j=!1;return c==="docked"?(p="DOCKED",C="good"):c==="docking"?(p="DOCKING",C="average",j=!0):c==="undocking"?(p="UNDOCKING",C="average",j=!0):c==="undocked"&&(p="UNDOCKED",C="#676767"),j&&d&&(p=p+"-MANUAL"),(0,e.jsx)(r.az,{color:C,children:p})},g=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=c.engineName,b=j===void 0?"Bluespace Drive":j,I=C.shuttle_status,O=C.shuttle_state,_=C.has_docking,D=C.docking_status,M=C.docking_override,A=C.docking_codes;return(0,e.jsxs)(r.wn,{title:"Shuttle Status",children:[(0,e.jsx)(r.az,{color:"label",mb:1,children:I}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:b,children:O==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||O==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||O==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Docking Status",children:a(D,M)}),(0,e.jsx)(r.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("set_codes")},children:A||"Not Set"})})]})||null]})]})},x=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.can_launch,b=C.can_cancel,I=C.can_force;return(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("move")},disabled:!j,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("cancel")},disabled:!b,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("force")},color:"bad",disabled:!I,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},f=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{})]})},m=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.can_cloak,b=C.can_pick,I=C.legit,O=C.cloaked;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(r.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(r.Ki,{children:[j&&(0,e.jsx)(r.Ki.Item,{label:I?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(r.$n,{selected:O,icon:O?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:O?"Enabled":"Disabled"})})||null,(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{content:c.destination_name,icon:"taxi",disabled:!b,onClick:function(){return p("pick")}})})]})}),(0,e.jsx)(x,{})]})},v=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.can_pick,b=C.destination_name,I=C.fuel_usage,O=C.fuel_span,_=C.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{engineName:"Engines"}),(0,e.jsx)(r.wn,{title:"Jump Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{icon:"taxi",disabled:!j,onClick:function(){return p("pick")},children:b})}),I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Est. Delta-V Budget",color:O,children:[_," m/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[I," m/s"]})]})||null]})}),(0,e.jsx)(x,{})]})},u=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.autopilot,b=C.can_rename,I=C.shuttle_state,O=C.is_moving,_=C.skip_docking,D=C.docking_status,M=C.docking_override,A=C.shuttle_location,R=C.can_cloak,K=C.cloaked,N=C.can_autopilot,k=C.routes,V=C.is_in_transit,F=C.travel_progress,J=C.time_left,H=C.doors,Y=C.sensors;return(0,e.jsxs)(e.Fragment,{children:[j&&(0,e.jsx)(r.wn,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.az,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,e.jsxs)(r.wn,{title:"Shuttle Status",buttons:b&&(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("rename_command")},children:"Rename"})||null,children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:I==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||I==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||I==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,s.Sn)(A)}),!_&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:D==="docked",disabled:D!=="undocked"&&D!=="docked",onClick:function(){return p("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:D==="undocked",disabled:D!=="docked"&&D!=="undocked",onClick:function(){return p("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:a(D,M)})})||null,R&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:K,icon:K?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:K?"Enabled":"Disabled"})})||null,N&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:j,icon:j?"eye":"eye-o",onClick:function(){return p("toggle_autopilot")},children:j?"Enabled":"Disabled"})})||null]})||null]}),!O&&(0,e.jsx)(r.wn,{level:2,title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:k.length&&k.map(function(Z){return(0,e.jsx)(r.Ki.Item,{label:Z.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return p("traverse",{traverse:Z.index})},children:Z.travel_time})},Z.name)})||(0,e.jsx)(r.Ki.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),V&&(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:F,children:[J,"s"]})})})})||null,Object.keys(H).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(H).map(function(Z){var X=H[Z];return(0,e.jsxs)(r.Ki.Item,{label:Z,children:[X.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",X.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},Z)})})})||null,Object.keys(Y).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys(Y).map(function(Z,X){var z=Y[Z];return z.reading!==-1?(0,e.jsx)(r.Ki.Item,{label:Z,color:"bad",children:"Unable to get sensor air reading."},X):(0,e.jsx)(r.Ki.Item,{label:Z,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[z.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[z.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[z.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[z.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[z.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[z.phoron,"%"]}),z.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[z.other,"%"]})||null]})},Z)})})})||null]})},h=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.subtemplate,b=C.destination_name;return(0,e.jsx)(i.p8,{width:470,height:j==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(i.p8.Content,{children:j==="ShuttleControlConsoleDefault"&&(0,e.jsx)(f,{})||j==="ShuttleControlConsoleMulti"&&(0,e.jsx)(m,{destination_name:b})||j==="ShuttleControlConsoleExploration"&&(0,e.jsx)(v,{})||j==="ShuttleControlConsoleWeb"&&(0,e.jsx)(u,{})})})}},42053:function(P,y,t){"use strict";t.r(y),t.d(y,{Signaler:function(){return a},SignalerContent:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(){return(0,e.jsx)(i.p8,{width:280,height:132,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.code,h=v.frequency,c=v.minFrequency,d=v.maxFrequency;return(0,e.jsxs)(r.wn,{children:[(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:c/10,maxValue:d/10,value:h/10,format:function(p){return(0,s.Mg)(p,1)},width:"80px",onDrag:function(p,C){return m("freq",{freq:C})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return m("reset",{reset:"freq"})}})})]}),(0,e.jsxs)(r.xA,{mt:.6,children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onDrag:function(p,C){return m("code",{code:C})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return m("reset",{reset:"code"})}})})]}),(0,e.jsx)(r.xA,{mt:.8,children:(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return m("signal")}})})})]})}},30636:function(P,y,t){"use strict";t.r(y),t.d(y,{Sleeper:function(){return m}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},f=["bad","average","average","good","average","average","bad"],m=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.hasOccupant,_=O?(0,e.jsx)(v,{}):(0,e.jsx)(p,{});return(0,e.jsx)(i.p8,{width:550,height:760,children:(0,e.jsx)(i.p8.Content,{className:"Layout__content--flexColumn",children:_})})},v=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.occupant,_=I.dialysis,D=I.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(h,{}),(0,e.jsx)(c,{title:"Dialysis",active:_,actToDo:"togglefilter"}),(0,e.jsx)(c,{title:"Stomach Pump",active:D,actToDo:"togglepump"}),(0,e.jsx)(d,{})]})},u=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.occupant,_=I.auto_eject_dead,D=I.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:_?"toggle-on":"toggle-off",selected:_,content:_?"On":"Off",onClick:function(){return b("auto_eject_dead_"+(_?"off":"on"))}}),(0,e.jsx)(r.$n,{icon:"user-slash",content:"Eject",onClick:function(){return b("ejectify")}}),(0,e.jsx)(r.$n,{content:D,onClick:function(){return b("changestasis")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:O.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:0,max:O.maxHealth,value:O.health/O.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,s.LI)(O.health,0)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[O.stat][0],children:a[O.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:O.maxTemp,value:O.bodyTemperature/O.maxTemp,color:f[O.temperatureSuitability+3],children:[(0,s.LI)(O.btCelsius,0),"\xB0C,",(0,s.LI)(O.btFaren,0),"\xB0F"]})}),!!O.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:O.bloodMax,value:O.bloodLevel/O.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[O.bloodPercent,"%, ",O.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[O.pulse," BPM"]})]})]})})},h=function(C){var j=(0,n.Oc)().data,b=j.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:g.map(function(I,O){return(0,e.jsx)(r.Ki.Item,{label:I[0],children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:b[I[1]]/100,ranges:x,children:(0,s.LI)(b[I[1]],0)},O)},O)})})})},c=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.isBeakerLoaded,_=I.beakerMaxSpace,D=I.beakerFreeSpace,M=C.active,A=C.actToDo,R=C.title,K=M&&D>0;return(0,e.jsx)(r.wn,{title:R,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!O||D<=0,selected:K,icon:K?"toggle-on":"toggle-off",content:K?"Active":"Inactive",onClick:function(){return b(A)}}),(0,e.jsx)(r.$n,{disabled:!O,icon:"eject",content:"Eject",onClick:function(){return b("removebeaker")}})]}),children:O?(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(r.z2,{min:"0",max:_,value:D/_,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[D,"u"]})})}):(0,e.jsx)(r.az,{color:"label",children:"No beaker loaded."})})},d=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.occupant,_=I.chemicals,D=I.maxchem,M=I.amounts;return(0,e.jsx)(r.wn,{title:"Chemicals",flexGrow:"1",children:_.map(function(A,R){var K="",N;return A.overdosing?(K="bad",N=(0,e.jsxs)(r.az,{color:"bad",children:[(0,e.jsx)(r.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):A.od_warning&&(K="average",N=(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(r.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(r.wn,{title:A.title,level:"3",mx:"0",lineHeight:"18px",buttons:N,children:(0,e.jsxs)(r.so,{align:"flex-start",children:[(0,e.jsxs)(r.z2,{min:"0",max:D,value:A.occ_amount/D,color:K,mr:"0.5rem",children:[A.pretty_amount,"/",D,"u"]}),M.map(function(k,V){return(0,e.jsx)(r.$n,{disabled:!A.injectable||A.occ_amount+k>D||O.stat===2,icon:"syringe",content:k,mb:"0",height:"19px",onClick:function(){return b("chemical",{chemid:A.id,amount:k})}},V)})]})})},R)})})},p=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.isBeakerLoaded;return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected.",O&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eject",content:"Remove Beaker",onClick:function(){return b("removebeaker")}})})||null]})})})}},438:function(P,y,t){"use strict";t.r(y),t.d(y,{SmartVend:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.config,v=x.data;return(0,e.jsx)(i.p8,{width:500,height:550,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[v.secure&&(0,e.jsx)(r.IC,{danger:v.locked===-1,info:v.locked!==-1,children:v.locked===-1?(0,e.jsx)(r.az,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.jsx)(r.az,{children:"Secure Access: Please have your identification ready."})})||null,v.contents.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",m.title," is empty."]})||(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,s.Tj)(function(u,h){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:u.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[u.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{content:"1",disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index,amount:1})}}),(0,e.jsx)(r.$n,{content:"5",disabled:u.amount<5,onClick:function(){return f("Release",{index:u.index,amount:5})}}),(0,e.jsx)(r.$n,{content:"25",disabled:u.amount<25,onClick:function(){return f("Release",{index:u.index,amount:25})}}),(0,e.jsx)(r.$n,{content:"50",disabled:u.amount<50,onClick:function(){return f("Release",{index:u.index,amount:50})}}),(0,e.jsx)(r.$n,{content:"Custom",disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index})}}),(0,e.jsx)(r.$n,{content:"All",disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index,amount:u.amount})}})]})]},h)})(v.contents)]})]})})})}},99278:function(P,y,t){"use strict";t.r(y),t.d(y,{Smes:function(){return x}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=1e3,x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.capacityPercent,c=u.capacity,d=u.charge,p=u.inputAttempt,C=u.inputting,j=u.inputLevel,b=u.inputLevelMax,I=u.inputAvailable,O=u.outputAttempt,_=u.outputting,D=u.outputLevel,M=u.outputLevelMax,A=u.outputUsed,R=h>=100&&"good"||C&&"average"||"bad",K=_&&"good"||d>0&&"average"||"bad";return(0,e.jsx)(a.p8,{width:400,height:350,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsxs)(r.z2,{value:h*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,s.LI)(d/(1e3*60),1)," kWh /",(0,s.LI)(c/(1e3*60))," kWh (",h,"%)"]})}),(0,e.jsx)(r.wn,{title:"Input",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(r.$n,{icon:p?"sync-alt":"times",selected:p,onClick:function(){return v("tryinput")},children:p?"On":"Off"}),children:(0,e.jsx)(r.az,{color:R,children:h>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:j===0,onClick:function(){return v("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:j===0,onClick:function(){return v("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:j/g,fillValue:I/g,minValue:0,maxValue:b/g,step:5,stepPixelSize:4,format:function(N){return(0,i.d5)(N*g,1)},onDrag:function(N,k){return v("input",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:j===b,onClick:function(){return v("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:j===b,onClick:function(){return v("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,i.d5)(I)})]})}),(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:O?"power-off":"times",selected:O,onClick:function(){return v("tryoutput")},children:O?"On":"Off"}),children:(0,e.jsx)(r.az,{color:K,children:_?"Sending":d>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:D===0,onClick:function(){return v("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:D===0,onClick:function(){return v("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:D/g,minValue:0,maxValue:M/g,step:5,stepPixelSize:4,format:function(N){return(0,i.d5)(N*g,1)},onDrag:function(N,k){return v("output",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:D===M,onClick:function(){return v("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:D===M,onClick:function(){return v("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,i.d5)(A)})]})})]})})}},42456:function(P,y,t){"use strict";t.r(y),t.d(y,{SolarControl:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.generated,u=m.generated_ratio,h=m.sun_angle,c=m.array_angle,d=m.rotation_rate,p=m.max_rotation_rate,C=m.tracking_state,j=m.connected_panels,b=m.connected_tracker;return(0,e.jsx)(i.p8,{width:380,height:230,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Scan for new hardware",onClick:function(){return f("refresh")}}),children:(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:j>0?"good":"bad",children:j})]})}),(0,e.jsx)(r.xA.Column,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:v+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[h,"\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",content:"Off",selected:C===0,onClick:function(){return f("tracking",{mode:0})}}),(0,e.jsx)(r.$n,{icon:"clock-o",content:"Timed",selected:C===1,onClick:function(){return f("tracking",{mode:1})}}),(0,e.jsx)(r.$n,{icon:"sync",content:"Auto",selected:C===2,disabled:!b,onClick:function(){return f("tracking",{mode:2})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(C===0||C===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:c,format:function(I){var O=Math.sign(I)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(I))+O},onDrag:function(I,O){return f("azimuth",{value:O})}}),C===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-p-.01,maxValue:p+.01,value:d,format:function(I){var O=Math.sign(I)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(I))+O},onDrag:function(I,O){return f("azimuth_rate",{value:O})}}),C===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[c+"\xB0"," (auto)"]})]})]})})]})})}},96031:function(P,y,t){"use strict";t.r(y),t.d(y,{SpaceHeater:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(1568),i=t(84905),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.temp,u=m.minTemp,h=m.maxTemp,c=m.cell,d=m.power;return(0,e.jsx)(i.p8,{width:300,height:250,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Target Temperature",children:[v," K (",v-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(n.Ki.Item,{label:"Current Charge",children:[d,"% ",!c&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Wx,{children:[(0,e.jsx)(n.Wx.Item,{label:"Thermostat",children:(0,e.jsx)(n.N6,{animated:!0,value:v-r.Ai,minValue:u-r.Ai,maxValue:h-r.Ai,unit:"C",onChange:function(p,C){return f("temp",{newtemp:C+r.Ai})}})}),(0,e.jsx)(n.Wx.Item,{label:"Cell",children:c?(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Cell",onClick:function(){return f("cellremove")}}):(0,e.jsx)(n.$n,{icon:"car-battery",content:"Insert Cell",onClick:function(){return f("cellinstall")}})})]})})]})})}},98932:function(P,y,t){"use strict";t.r(y),t.d(y,{Stack:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905);function i(h,c){(c==null||c>h.length)&&(c=h.length);for(var d=0,p=new Array(c);d=h.length?{done:!0}:{done:!1,value:h[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=p.amount,j=p.recipes;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Amount: "+C,children:(0,e.jsx)(f,{recipes:j})})})})},f=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=h.recipes,j=Object.keys(C).sort();return j.map(function(b,I){var O=C[b];return O.ref===void 0?(0,e.jsx)(n.Nt,{ml:1,mb:-.7,color:"label",title:b,children:(0,e.jsx)(n.az,{ml:1,children:(0,e.jsx)(f,{recipes:O})})},I):(0,e.jsx)(u,{title:b,recipe:O},I)})},m=function(h,c){return h.req_amount>c?0:Math.floor(c/h.req_amount)},v=function(h){for(var c=function(){var A=M.value;I>=A&&_.push((0,e.jsx)(n.$n,{content:A*j.res_amount+"x",onClick:function(){return p("make",{ref:j.ref,multiplier:A})}}))},d=(0,s.Oc)(),p=d.act,C=d.data,j=h.recipe,b=h.maxMultiplier,I=Math.min(b,Math.floor(j.max_res_amount/j.res_amount)),O=[5,10,25],_=[],D=g(O),M;!(M=D()).done;)c();return O.indexOf(I)===-1&&_.push((0,e.jsx)(n.$n,{content:I*j.res_amount+"x",onClick:function(){return p("make",{ref:j.ref,multiplier:I})}})),_},u=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=p.amount,j=h.recipe,b=h.title,I=j.res_amount,O=j.max_res_amount,_=j.req_amount,D=j.ref,M=b;M+=" (",M+=_+" ",M+="sheet"+(_>1?"s":""),M+=")",I>1&&(M=I+"x "+M);var A=m(j,C);return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.XI,{children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,disabled:!A,icon:"wrench",content:M,onClick:function(){return d("make",{ref:j.ref,multiplier:1})}})}),O>1&&A>1&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(v,{recipe:j,maxMultiplier:A})})]})})})}},47441:function(P,y,t){"use strict";t.r(y),t.d(y,{StationAlertConsole:function(){return i},StationAlertConsoleContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.categories,u=v===void 0?[]:v;return u.map(function(h){return(0,e.jsx)(n.wn,{title:h.category,children:(0,e.jsxs)("ul",{children:[h.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),h.alarms.map(function(c){var d="";return c.has_cameras?d=(0,e.jsx)(n.wn,{children:c.cameras.map(function(p){return(0,e.jsx)(n.$n,{disabled:p.deact,content:p.name+(p.deact?" (deactived)":""),icon:"video",onClick:function(){return f("switchTo",{camera:p.camera})}},p.name)})}):c.lost_sources&&(d=(0,e.jsxs)(n.az,{color:"bad",children:["Lost Alarm Sources: ",c.lost_sources]})),(0,e.jsxs)("li",{children:[c.name,c.origin_lost?(0,e.jsx)(n.az,{color:"bad",children:"Alarm Origin Lost."}):"",d]},c.name)})]})},h.category)})}},89052:function(P,y,t){"use strict";t.r(y),t.d(y,{StationBlueprints:function(){return i},StationBlueprintsContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(a,{})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=x.config,u=m.mapRef,h=m.areas,c=m.turfs;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(n.D1,{className:"CameraConsole__map",params:{id:u,type:"map"}})})]})}},38501:function(P,y,t){"use strict";t.r(y),t.d(y,{StockExchange:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.screen,C=d.stationName,j;return p==="stocks"?j=(0,e.jsx)(a,{}):p==="logs"?j=(0,e.jsx)(f,{}):p==="archive"?j=(0,e.jsx)(m,{}):p==="graph"&&(j=(0,e.jsx)(v,{})),(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:""+C+" Stock Exchange",children:j})})})},a=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.balance,C=d.stationName,j=d.viewMode,b=(0,e.jsx)(g,{});return j==="Full"?b=(0,e.jsx)(g,{}):j==="Compressed"&&(b=(0,e.jsx)(x,{})),(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[C," Cargo Department"]})," |"," "]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",p]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(n.$n,{content:j,onClick:function(){return c("stocks_cycle_view")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(n.$n,{icon:"list",content:"Check",onClick:function(){return c("stocks_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)(n.wn,{title:"Listed Stocks",children:b})]})},g=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.stocks,C=p===void 0?[]:p;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(n.cG,{}),(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{children:"ID"}),(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Owned"}),(0,e.jsx)(n.XI.Cell,{children:"Avail"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),(0,e.jsx)(n.cG,{}),C.map(function(j){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.ID}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Name}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Value}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Owned}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Avail}),(0,e.jsxs)(n.XI.Cell,{color:"label",children:[(0,e.jsx)(n.$n,{icon:"plus",disabled:!1,onClick:function(){return c("stocks_buy",{share:j.REF})}}),(0,e.jsx)(n.$n,{icon:"minus",disabled:!1,onClick:function(){return c("stocks_sell",{share:j.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"A",onClick:function(){return c("stocks_archive",{share:j.REF})}}),(0,e.jsx)(n.$n,{content:"H",onClick:function(){return c("stocks_history",{share:j.REF})}}),(0,e.jsx)("br",{})]})]},j.ID)})]})]})},x=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.stocks,C=p===void 0?[]:p;return(0,e.jsx)(n.az,{children:C.map(function(j){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{children:j.name})," ",(0,e.jsx)("span",{children:j.ID}),j.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",j.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",j.Value," |"," ",(0,e.jsx)(n.$n,{content:"View history",onClick:function(){return c("stocks_history",{share:j.REF})}}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:j.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",j.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),j.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)(n.$n,{content:"Buy shares",onClick:function(){return c("stocks_buy",{share:j.REF})}})," ","|"," ",(0,e.jsx)(n.$n,{content:"Sell shares",onClick:function(){return c("stocks_sell",{share:j.REF})}})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:j.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"View news archives",onClick:function(){return c("stocks_archive",{share:j.REF})}})," ",(0,e.jsx)(n.cG,{})]},j.ID)})})},f=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.logs,C=p===void 0?[]:p;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:C.map(function(j){return(0,e.jsxs)(n.az,{children:[j.type!=="borrow"?(0,e.jsxs)("div",{children:[j.time," | ",(0,e.jsx)("b",{children:j.user_name})," ",j.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"})," ",(0,e.jsx)("b",{children:j.stocks})," stocks at ",j.shareprice," a share for"," ",(0,e.jsx)("b",{children:j.money})," total credits"," ",j.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"})," ",(0,e.jsx)("b",{children:j.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[j.time," | ",(0,e.jsx)("b",{children:j.user_name})," borrowed ",(0,e.jsx)("b",{children:j.stocks})," ","stocks with a deposit of ",(0,e.jsx)("b",{children:j.money})," credits in"," ",(0,e.jsx)("b",{children:j.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(n.cG,{})]},j.time)})})]})},m=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.name,C=d.events,j=C===void 0?[]:C,b=d.articles,I=b===void 0?[]:b;return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",p]}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:j.map(function(O){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:O.current_title}),(0,e.jsx)("br",{}),O.current_desc]}),(0,e.jsx)(n.cG,{})]},O.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:I.map(function(O){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:O.headline}),(0,e.jsx)("i",{children:O.subtitle}),(0,e.jsx)("br",{}),O.article,(0,e.jsx)("br",{}),"- ",O.author,", ",O.spacetime," (via"," ",(0,e.jsx)("i",{children:O.outlet}),")"]}),(0,e.jsx)(n.cG,{})]},O.headline)})})]})},v=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.name,C=d.maxValue,j=d.values,b=j===void 0?[]:j;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.wn,{position:"relative",height:"100%",children:(0,e.jsx)(n.t1.Line,{fillPositionedParent:!0,data:b,rangeX:[0,b.length-1],rangeY:[0,C],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(n.cG,{}),(0,e.jsxs)("p",{children:[p," share value per share"]})]})}},21665:function(P,y,t){"use strict";t.r(y),t.d(y,{SuitCycler:function(){return a}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=function(v){var u=function(V){M(V)},h=function(V){K(V)},c=(0,n.Oc)(),d=c.act,p=c.data,C=p.active,j=p.locked,b=p.uv_active,I=p.species,O=p.departments,_=(0,s.useState)(!!O&&O[0]||null),D=_[0],M=_[1],A=(0,s.useState)(!!I&&I[0]||null),R=A[0],K=A[1],N=(0,e.jsx)(g,{selectedDepartment:D,selectedSpecies:R,onSelectedDepartment:u,onSelectedSpecies:h});return b?N=(0,e.jsx)(x,{}):j?N=(0,e.jsx)(f,{}):C&&(N=(0,e.jsx)(m,{})),(0,e.jsx)(i.p8,{width:320,height:400,children:(0,e.jsx)(i.p8.Content,{children:N})})},g=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.safeties,p=c.occupied,C=c.suit,j=c.helmet,b=c.departments,I=c.species,O=c.uv_level,_=c.max_uv_level,D=c.can_repair,M=c.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Storage",buttons:(0,e.jsx)(r.$n,{icon:"lock",content:"Lock",onClick:function(){return h("lock")}}),children:[!!(p&&d)&&(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",content:"Eject Entity",onClick:function(){return h("eject_guy")}})]}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Helmet",children:(0,e.jsx)(r.$n,{icon:j?"square":"square-o",content:j||"Empty",disabled:!j,onClick:function(){return h("dispense",{item:"helmet"})}})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return h("dispense",{item:"suit"})}})}),D&&M?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[M,(0,e.jsx)(r.$n,{icon:"wrench",content:"Repair",onClick:function(){return h("repair_suit")}})]}):null]})]}),(0,e.jsxs)(r.wn,{title:"Customization",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Target Paintjob",children:(0,e.jsx)(r.ms,{noscroll:!0,width:"150px",options:b,selected:v.selectedDepartment,onSelected:function(A){v.onSelectedDepartment(A),h("department",{department:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Target Species",children:(0,e.jsx)(r.ms,{width:"150px",maxHeight:"160px",options:I,selected:v.selectedSpecies,onSelected:function(A){v.onSelectedSpecies(A),h("species",{species:A})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,content:"Customize",onClick:function(){return h("apply_paintjob")}})]}),(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:O,minValue:1,maxValue:_,stepPixelSize:30,onChange:function(A,R){return h("radlevel",{radlevel:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"recycle",disabled:p&&d,textAlign:"center",onClick:function(){return h("uv")}})})]})})]})},x=function(v){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},f=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.model_text,p=c.userHasAccess;return(0,e.jsxs)(r.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(r.az,{color:"bad",bold:!0,children:["The ",d," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"unlock",content:"[Unlock]",disabled:!p,onClick:function(){return h("lock")}})})]})},m=function(v){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},42688:function(P,y,t){"use strict";t.r(y),t.d(y,{SuitStorageUnit:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.panelopen,d=h.uv_active,p=h.broken,C=(0,e.jsx)(a,{});return c?C=(0,e.jsx)(g,{}):d?C=(0,e.jsx)(x,{}):p&&(C=(0,e.jsx)(f,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:C})})},a=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.locked,d=h.open,p=h.safeties,C=h.occupied,j=h.suit,b=h.helmet,I=h.mask;return(0,e.jsxs)(n.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!d&&(0,e.jsx)(n.$n,{icon:c?"unlock":"lock",content:c?"Unlock":"Lock",onClick:function(){return u("lock")}}),!c&&(0,e.jsx)(n.$n,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return u("door")}})]}),children:[!!(C&&p)&&(0,e.jsxs)(n.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return u("eject_guy")}})]}),c&&(0,e.jsxs)(n.az,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(n.az,{children:"Unit Locked"}),(0,e.jsx)(n.In,{name:"lock"})]})||d&&(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Helmet",children:(0,e.jsx)(n.$n,{icon:b?"square":"square-o",content:b||"Empty",disabled:!b,onClick:function(){return u("dispense",{item:"helmet"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Suit",children:(0,e.jsx)(n.$n,{icon:j?"square":"square-o",content:j||"Empty",disabled:!j,onClick:function(){return u("dispense",{item:"suit"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Mask",children:(0,e.jsx)(n.$n,{icon:I?"square":"square-o",content:I||"Empty",disabled:!I,onClick:function(){return u("dispense",{item:"mask"})}})})]})||(0,e.jsx)(n.$n,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:C&&p,textAlign:"center",onClick:function(){return u("uv")}})]})},g=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.safeties,d=h.uv_super;return(0,e.jsxs)(n.wn,{title:"Maintenance Panel",children:[(0,e.jsx)(n.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)(n.az,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.N6,{size:2,inline:!0,value:d,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:d?"red":"green",format:function(p){return p?"15nm":"185nm"},onChange:function(p,C){return u("toggleUV")}})}),(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",c?(0,e.jsx)("font",{color:"green",children:"GREEN"}):(0,e.jsx)("font",{color:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.$n,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return u("togglesafeties")}})}),(0,e.jsxs)(n.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(n.In,{name:"circle",color:c?"black":"red",mr:2}),(0,e.jsx)(n.In,{name:"circle",color:c?"green":"black"})]})]})]})]})},x=function(m){return(0,e.jsx)(n.IC,{children:"Contents are currently being decontaminated. Please wait."})},f=function(m){return(0,e.jsx)(n.IC,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},67186:function(P,y,t){"use strict";t.r(y),t.d(y,{SupermatterMonitor:function(){return g},SupermatterMonitorContent:function(){return x}});var e=t(88095),s=t(5229),n=t(33854),r=t(4413),i=t(92514),a=t(84905),g=function(v){return(0,e.jsx)(a.p8,{width:600,height:400,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.active;return d?(0,e.jsx)(m,{}):(0,e.jsx)(f,{})},f=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.supermatters;return(0,e.jsx)(i.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(i.$n,{content:"Refresh",icon:"sync",onClick:function(){return h("refresh")}}),children:(0,e.jsx)(i.so,{wrap:"wrap",children:d.map(function(p,C){return(0,e.jsx)(i.so.Item,{basis:"49%",grow:C%2,children:(0,e.jsx)(i.wn,{title:p.area_name+" (#"+p.uid+")",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Integrity",children:[p.integrity," %"]}),(0,e.jsx)(i.Ki.Item,{label:"Options",children:(0,e.jsx)(i.$n,{icon:"eye",content:"View Details",onClick:function(){return h("set",{set:p.uid})}})})]})})},C)})})})},m=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.SM_area,p=c.SM_integrity,C=c.SM_power,j=c.SM_ambienttemp,b=c.SM_ambientpressure,I=c.SM_EPR,O=c.SM_gas_O2,_=c.SM_gas_CO2,D=c.SM_gas_N2,M=c.SM_gas_PH,A=c.SM_gas_N2O;return(0,e.jsx)(i.wn,{title:(0,n.Sn)(d),buttons:(0,e.jsx)(i.$n,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return h("clear")}}),children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(i.z2,{animated:!0,value:p,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(i.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(i.az,{color:C>300&&"bad"||C>150&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" MeV/cm\xB3"},value:C})})}),(0,e.jsx)(i.Ki.Item,{label:"Temperature",children:(0,e.jsx)(i.az,{color:j>5e3&&"bad"||j>4e3&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" K"},value:j})})}),(0,e.jsx)(i.Ki.Item,{label:"Pressure",children:(0,e.jsx)(i.az,{color:b>1e4&&"bad"||b>5e3&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" kPa"},value:b})})}),(0,e.jsx)(i.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(i.az,{color:I>4&&"bad"||I>1&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)},value:I})})}),(0,e.jsx)(i.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(i.zv,{value:O}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(i.zv,{value:_}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(i.zv,{value:D}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"PH",children:[(0,e.jsx)(i.zv,{value:M}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(i.zv,{value:A}),"%"]})]})})]})})}},85308:function(P,y,t){"use strict";t.r(y),t.d(y,{SupplyConsole:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(44583),i=t(4413),a=t(92514),g=t(24158),x=t(5425),f=t(84905),m=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=I.supply_points,_=C.args,D=_.name,M=_.cost,A=_.manifest,R=_.ref,K=_.random;return(0,e.jsx)(a.wn,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:D,buttons:(0,e.jsx)(a.$n,{icon:"shopping-cart",content:"Buy - "+M+" points",disabled:M>O,onClick:function(){return b("request_crate",{ref:R})}}),children:(0,e.jsx)(a.wn,{title:"Contains"+(K?" any "+K+" of:":""),scrollable:!0,height:"200px",children:A.map(function(N){return(0,e.jsx)(a.az,{children:N},N)})})})},v=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data;return(0,x.modalRegisterBodyOverride)("view_crate",m),(0,e.jsx)(f.p8,{width:700,height:620,children:(0,e.jsxs)(f.p8.Content,{children:[(0,e.jsx)(x.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(a.wn,{title:"Supply Records",children:[(0,e.jsx)(u,{}),(0,e.jsx)(h,{})]})]})})},u=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=I.supply_points,_=I.shuttle,D=I.shuttle_auth,M=null,A=!1;return D&&(_.launch===1&&_.mode===0?M=(0,e.jsx)(a.$n,{icon:"rocket",content:"Send Away",onClick:function(){return b("send_shuttle",{mode:"send_away"})}}):_.launch===2&&(_.mode===3||_.mode===1)?M=(0,e.jsx)(a.$n,{icon:"ban",content:"Cancel Launch",onClick:function(){return b("send_shuttle",{mode:"cancel_shuttle"})}}):_.launch===1&&_.mode===5&&(M=(0,e.jsx)(a.$n,{icon:"rocket",content:"Send Shuttle",onClick:function(){return b("send_shuttle",{mode:"send_to_station"})}})),_.force&&(A=!0)),(0,e.jsxs)(a.wn,{children:[(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(a.zv,{value:O})})}),(0,e.jsx)(a.wn,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[M,A?(0,e.jsx)(a.$n,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return b("send_shuttle",{mode:"force_shuttle"})}}):null]}),children:_.location}),(0,e.jsx)(a.Ki.Item,{label:"Engine",children:_.engine}),_.mode===4?(0,e.jsx)(a.Ki.Item,{label:"ETA",children:_.time>1?(0,g.fU)(_.time):"LATE"}):null]})})]})},h=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=I.order_auth,_=(0,r.useState)(0),D=_[0],M=_[1];return(0,e.jsxs)(a.wn,{title:"Menu",children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{icon:"box",selected:D===0,onClick:function(){return M(0)},children:"Request"}),(0,e.jsx)(a.tU.Tab,{icon:"check-circle-o",selected:D===1,onClick:function(){return M(1)},children:"Accepted"}),(0,e.jsx)(a.tU.Tab,{icon:"circle-o",selected:D===2,onClick:function(){return M(2)},children:"Requests"}),(0,e.jsx)(a.tU.Tab,{icon:"book",selected:D===3,onClick:function(){return M(3)},children:"Order history"}),(0,e.jsx)(a.tU.Tab,{icon:"book",selected:D===4,onClick:function(){return M(4)},children:"Export history"})]}),D===0?(0,e.jsx)(c,{}):null,D===1?(0,e.jsx)(d,{mode:"Approved"}):null,D===2?(0,e.jsx)(d,{mode:"Requested"}):null,D===3?(0,e.jsx)(d,{mode:"All"}):null,D===4?(0,e.jsx)(p,{}):null]})},c=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=I.categories,_=I.supply_packs,D=I.contraband,M=I.supply_points,A=(0,r.useState)(null),R=A[0],K=A[1],N=(0,n.L)([(0,s.pb)(function(k){return k.group===R}),(0,s.pb)(function(k){return!k.contraband||D}),(0,s.Ul)(function(k){return k.name}),(0,s.Ul)(function(k){return k.cost>M})])(_);return(0,e.jsx)(a.wn,{level:2,children:(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{basis:"25%",children:(0,e.jsx)(a.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:O.map(function(k){return(0,e.jsx)(a.$n,{fluid:!0,content:k,selected:k===R,onClick:function(){return K(k)}},k)})})}),(0,e.jsx)(a.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(a.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:N.map(function(k){return(0,e.jsx)(a.az,{children:(0,e.jsxs)(a.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(a.BJ.Item,{basis:"70%",children:(0,e.jsx)(a.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:k.name,color:k.cost>M?"red":null,onClick:function(){return b("request_crate",{ref:k.ref})}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{content:"#",color:k.cost>M?"red":null,onClick:function(){return b("request_crate_multi",{ref:k.ref})}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{content:"C",color:k.cost>M?"red":null,onClick:function(){return b("view_crate",{crate:k.ref})}})}),(0,e.jsxs)(a.BJ.Item,{grow:1,children:[k.cost," points"]})]})},k.name)})})})]})})},d=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=C.mode,_=I.orders,D=I.order_auth,M=I.supply_points,A=_.filter(function(R){return R.status===O||O==="All"});return A.length?(0,e.jsxs)(a.wn,{level:2,children:[O==="Requested"&&D?(0,e.jsx)(a.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return b("clear_all_requests")}}):null,A.map(function(R,K){return(0,e.jsxs)(a.wn,{title:"Order "+(K+1),buttons:O==="All"&&D?(0,e.jsx)(a.$n,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return b("delete_order",{ref:R.ref})}}):null,children:[(0,e.jsxs)(a.Ki,{children:[R.entries.map(function(N,k){return N.entry?(0,e.jsx)(a.Ki.Item,{label:N.field,buttons:D?(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){b("edit_order_value",{ref:R.ref,edit:N.field,default:N.entry})}}):null,children:N.entry},k):null}),O==="All"?(0,e.jsx)(a.Ki.Item,{label:"Status",children:R.status}):null]}),D&&O==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"check",content:"Approve",disabled:R.cost>M,onClick:function(){return b("approve_order",{ref:R.ref})}}),(0,e.jsx)(a.$n,{icon:"times",content:"Deny",onClick:function(){return b("deny_order",{ref:R.ref})}})]}):null]},K)})]}):(0,e.jsx)(a.wn,{level:2,children:"No orders found."})},p=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=I.receipts,_=I.order_auth;return O.length?(0,e.jsx)(a.wn,{level:2,children:O.map(function(D,M){return(0,e.jsxs)(a.wn,{children:[(0,e.jsxs)(a.Ki,{children:[D.title.map(function(A){return(0,e.jsx)(a.Ki.Item,{label:A.field,buttons:_?(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){return b("export_edit",{ref:D.ref,edit:A.field,default:A.entry})}}):null,children:A.entry},A.field)}),D.error?(0,e.jsx)(a.Ki.Item,{labelColor:"red",label:"Error",children:D.error}):D.contents.map(function(A,R){return(0,e.jsxs)(a.Ki.Item,{label:A.object,buttons:_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){return b("export_edit_field",{ref:D.ref,index:R+1,edit:"meow",default:A.object})}}),(0,e.jsx)(a.$n,{icon:"trash",color:"red",content:"Delete",onClick:function(){return b("export_delete_field",{ref:D.ref,index:R+1})}})]}):null,children:[A.quantity,"x -> ",A.value," points"]},R)})]}),_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return b("export_add_field",{ref:D.ref})}}),(0,e.jsx)(a.$n,{icon:"trash",content:"Delete Record",onClick:function(){return b("export_delete",{ref:D.ref})}})]}):null]},M)})}):(0,e.jsx)(a.wn,{level:2,children:"No receipts found."})}},64460:function(P,y,t){"use strict";t.r(y),t.d(y,{TEGenerator:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(f){var m=(0,n.Oc)().data,v=m.totalOutput,u=m.maxTotalOutput,h=m.thermalOutput,c=m.primary,d=m.secondary;return(0,e.jsx)(a.p8,{width:550,height:310,children:(0,e.jsxs)(a.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:v,maxValue:u,children:(0,i.d5)(v)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,i.d5)(h)})]})}),c&&d?(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Primary Circulator",values:c})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Secondary Circulator",values:d})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},x=function(f){var m=f.name,v=f.values,u=v.dir,h=v.output,c=v.flowCapacity,d=v.inletPressure,p=v.inletTemperature,C=v.outletPressure,j=v.outletTemperature;return(0,e.jsx)(r.wn,{title:m+" ("+u+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,i.d5)(h)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,s.LI)(c,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,i.QL)(d*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,s.LI)(p,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,i.QL)(C*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,s.LI)(j,2)," K"]})]})})}},62646:function(P,y,t){"use strict";t.r(y),t.d(y,{Tank:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.connected,v=f.showToggle,u=v===void 0?!0:v,h=f.maskConnected,c=f.tankPressure,d=f.releasePressure,p=f.defaultReleasePressure,C=f.minReleasePressure,j=f.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:!!u&&(0,e.jsx)(n.$n,{icon:m?"air-freshener":"lock-open",selected:m,disabled:!h,content:"Mask Release Valve",onClick:function(){return x("toggle")}}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Mask Connected",children:h?"Yes":"No"})})}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{value:c/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:f.tankPressure+" kPa"})}),(0,e.jsxs)(n.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:d===C,onClick:function(){return x("pressure",{pressure:"min"})}}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(d),width:"65px",unit:"kPa",minValue:C,maxValue:j,onChange:function(b,I){return x("pressure",{pressure:I})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:d===j,onClick:function(){return x("pressure",{pressure:"max"})}}),(0,e.jsx)(n.$n,{icon:"undo",content:"",disabled:d===p,onClick:function(){return x("pressure",{pressure:"reset"})}})]})]})})]})})}},87867:function(P,y,t){"use strict";t.r(y),t.d(y,{TankDispenser:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.plasma,v=f.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(n.$n,{icon:m?"square":"square-o",content:"Dispense",disabled:!m,onClick:function(){return x("plasma")}}),children:m}),(0,e.jsx)(n.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(n.$n,{icon:v?"square":"square-o",content:"Dispense",disabled:!v,onClick:function(){return x("oxygen")}}),children:v})]})})})})}},32481:function(P,y,t){"use strict";t.r(y),t.d(y,{TelecommsLogBrowser:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.universal_translate,d=h.network,p=h.temp,C=h.servers,j=h.selectedServer;return(0,e.jsx)(i.p8,{width:575,height:450,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[p?(0,e.jsxs)(r.IC,{danger:p.color==="bad",warning:p.color!=="bad",children:[(0,e.jsx)(r.az,{display:"inline-box",verticalAlign:"middle",children:p.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return u("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}):null,(0,e.jsx)(r.wn,{title:"Network Control",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",content:"Refresh",onClick:function(){return u("scan")}}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:C.length===0,onClick:function(){return u("release")}})]}),children:(0,e.jsx)(r.$n,{content:d,icon:"pen",onClick:function(){return u("network")}})})})}),j?(0,e.jsx)(x,{network:d,server:j,universal_translate:c}):(0,e.jsx)(g,{network:d,servers:C})]})})},g=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=m.network,d=m.servers;return!d||!d.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,content:"Scan",icon:"search",onClick:function(){return u("scan")}})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:d.map(function(p){return(0,e.jsx)(r.Ki.Item,{label:p.name+" ("+p.id+")",children:(0,e.jsx)(r.$n,{content:"View",icon:"eye",onClick:function(){return u("view",{id:p.id})}})},p.id)})})})},x=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=m.network,d=m.server,p=m.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+d.id+")",buttons:(0,e.jsx)(r.$n,{content:"Return",icon:"undo",onClick:function(){return u("mainmenu")}}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Total Recorded Traffic",children:d.totalTraffic>=1024?(0,s.LI)(d.totalTraffic/1024)+" Terrabytes":d.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.wn,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.so,{wrap:"wrap",children:!d.logs||!d.logs.length?"No Logs Detected.":d.logs.map(function(C){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:C.id%2,children:(0,e.jsx)(r.wn,{title:p||C.parameters.uspeech||C.parameters.intelligible||C.input_type==="Execution Error"?C.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return u("delete",{id:C.id})}}),children:C.input_type==="Execution Error"?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ki.Item,{label:"Output",children:C.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return u("delete",{id:C.id})}})})]}):p||C.parameters.uspeech||C.parameters.intelligible?(0,e.jsx)(f,{log:C}):(0,e.jsx)(f,{error:!0})})},C.id)})})})]})},f=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=m.log,d=m.error,p=c&&c.parameters||{none:"none"},C=p.timecode,j=p.name,b=p.race,I=p.job,O=p.message;return d?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsx)(r.Ki.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:b}),(0,e.jsx)(r.Ki.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[j," (Job: ",I,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:b}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:O})]})}},25058:function(P,y,t){"use strict";t.r(y),t.d(y,{TelecommsMachineBrowser:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.network,u=m.temp,h=m.machinelist,c=m.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[u?(0,e.jsxs)(n.IC,{danger:u.color==="bad",warning:u.color!=="bad",children:[(0,e.jsx)(n.az,{display:"inline-box",verticalAlign:"middle",children:u.text}),(0,e.jsx)(n.$n,{icon:"times-circle",float:"right",onClick:function(){return f("cleartemp")}}),(0,e.jsx)(n.az,{clear:"both"})]}):null,(0,e.jsx)(n.wn,{title:"Network Control",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return f("scan")}}),(0,e.jsx)(n.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:h.length===0,onClick:function(){return f("release")}})]}),children:(0,e.jsx)(n.$n,{content:v,icon:"pen",onClick:function(){return f("network")}})})})}),h&&h.length?(0,e.jsx)(a,{title:c?c.name+" ("+c.id+")":"Detected Network Entities",list:c?c.links:h,showBack:c}):(0,e.jsx)(n.wn,{title:"No Devices Found",children:(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return f("scan")}})})]})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=g.list,u=g.title,h=g.showBack;return(0,e.jsxs)(n.wn,{title:u,buttons:h&&(0,e.jsx)(n.$n,{icon:"undo",content:"Back to Main Menu",onClick:function(){return f("mainmenu")}}),children:[(0,e.jsx)(n.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(n.Ki,{children:v.length?v.map(function(c){return(0,e.jsx)(n.Ki.Item,{label:c.name+" ("+c.id+")",children:(0,e.jsx)(n.$n,{content:"View",icon:"eye",onClick:function(){return f("view",{id:c.id})}})},c.id)}):(0,e.jsx)(n.Ki.Item,{color:"bad",children:"No links detected."})})]})}},45760:function(P,y,t){"use strict";t.r(y),t.d(y,{TelecommsMultitoolMenu:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(82489),a=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.temp,c=u.on,d=u.id,p=u.network,C=u.autolinkers,j=u.shadowlink,b=u.options,I=u.linked,O=u.filter,_=u.multitool,D=u.multitool_buffer;return(0,e.jsx)(r.p8,{width:520,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(i.TemporaryNotice,{}),(0,e.jsx)(g,{}),(0,e.jsx)(x,{options:b})]})})},g=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.temp,c=u.on,d=u.id,p=u.network,C=u.autolinkers,j=u.shadowlink,b=u.options,I=u.linked,O=u.filter,_=u.multitool,D=u.multitool_buffer;return(0,e.jsxs)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:c,content:c?"On":"Off",onClick:function(){return v("toggle")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Identification String",children:(0,e.jsx)(n.$n,{icon:"pen",content:d,onClick:function(){return v("id")}})}),(0,e.jsx)(n.Ki.Item,{label:"Network",children:(0,e.jsx)(n.$n,{icon:"pen",content:p,onClick:function(){return v("network")}})}),(0,e.jsx)(n.Ki.Item,{label:"Prefabrication",children:C?"TRUE":"FALSE"}),j?(0,e.jsx)(n.Ki.Item,{label:"Shadow Link",children:"Active."}):null,_?(0,e.jsxs)(n.Ki.Item,{label:"Multitool Buffer",children:[D?(0,e.jsxs)(e.Fragment,{children:[D.name," (",D.id,")"]}):null,(0,e.jsx)(n.$n,{color:D?"green":null,content:D?"Link ("+D.id+")":"Add Machine",icon:D?"link":"plus",onClick:D?function(){return v("link")}:function(){return v("buffer")}}),D?(0,e.jsx)(n.$n,{color:"red",content:"Flush",icon:"trash",onClick:function(){return v("flush")}}):null]}):null]}),(0,e.jsx)(n.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(n.Ki,{children:I.map(function(M){return(0,e.jsx)(n.Ki.Item,{label:M.ref+" "+M.name+" ("+M.id+")",buttons:(0,e.jsx)(n.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return v("unlink",{unlink:M.index})}})},M.ref)})})}),(0,e.jsxs)(n.wn,{title:"Filtering Frequencies",mt:1,children:[O.map(function(M){return(0,e.jsx)(n.$n.Confirm,{content:M.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return v("delete",{delete:M.freq})}},M.index)}),!O||O.length===0?(0,e.jsx)(n.az,{color:"label",children:"No filters."}):null]})]})},x=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=f.options,c=h.use_listening_level,d=h.use_broadcasting,p=h.use_receiving,C=h.listening_level,j=h.broadcasting,b=h.receiving,I=h.use_change_freq,O=h.change_freq,_=h.use_broadcast_range,D=h.use_receive_range,M=h.range,A=h.minRange,R=h.maxRange;return!c&&!d&&!p&&!I&&!_&&!D?(0,e.jsx)(n.wn,{title:"No Options Found"}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsxs)(n.Ki,{children:[c?(0,e.jsx)(n.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(n.$n,{icon:C?"lock-closed":"lock-open",content:C?"Yes":"No",onClick:function(){return v("change_listening")}})}):null,d?(0,e.jsx)(n.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:j,content:j?"Yes":"No",onClick:function(){return v("broadcast")}})}):null,p?(0,e.jsx)(n.Ki.Item,{label:"Receving",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:b,content:b?"Yes":"No",onClick:function(){return v("receive")}})}):null,I?(0,e.jsx)(n.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(n.$n,{icon:"wave-square",selected:!!O,content:O?"Yes ("+O+")":"No",onClick:function(){return v("change_freq")}})}):null,_||D?(0,e.jsx)(n.Ki.Item,{label:(_?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(n.Q7,{value:M,minValue:A,maxValue:R,unit:"gigameters",stepPixelSize:4,format:function(K){return K+1},onDrag:function(K,N){return v("range",{range:N})}})}):null]})})}},2268:function(P,y,t){"use strict";t.r(y),t.d(y,{Teleporter:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.locked_name,v=f.station_connected,u=f.hub_connected,h=f.calibrated,c=f.teleporter_on;return(0,e.jsx)(r.p8,{width:300,height:200,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"bullseye",onClick:function(){return x("select_target")},content:m})}),(0,e.jsx)(n.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:h,color:h?"good":"bad",onClick:function(){return x("test_fire")},content:h?"Accurate":"Test Fire"})}),(0,e.jsx)(n.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){return x("toggle_on")},content:c?"Online":"OFFLINE"})}),(0,e.jsx)(n.Ki.Item,{label:"Station",children:v?"Connected":"Not Connected"}),(0,e.jsx)(n.Ki.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},33756:function(P,y,t){"use strict";t.r(y),t.d(y,{TelesciConsole:function(){return a},TelesciConsoleContent:function(){return x}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.noTelepad;return(0,e.jsx)(i.p8,{width:400,height:450,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:h&&(0,e.jsx)(g,{})||(0,e.jsx)(x,{})})})},g=function(f){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.insertedGps,c=u.rotation,d=u.currentZ,p=u.cooldown,C=u.crystalCount,j=u.maxCrystals,b=u.maxPossibleDistance,I=u.maxAllowedDistance,O=u.distance,_=u.tempMsg,D=u.sectorOptions,M=u.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!h,onClick:function(){return v("ejectGPS")},content:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:p&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait"," ",(0,e.jsx)(r.zv,{value:p})," seconds."]})||(0,e.jsx)(r.az,{children:_})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:c,format:function(A){return A+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(A,R){return v("setrotation",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:O,format:function(A){return A+"/"+I+" m"},minValue:0,maxValue:I,step:1,stepPixelSize:4,onDrag:function(A,R){return v("setdistance",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:(0,s.Ul)(function(A){return Number(A)})(D).map(function(A){return(0,e.jsx)(r.$n,{icon:"check-circle",content:A,selected:d===A,onClick:function(){return v("setz",{setz:A})}},A)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return v("send")},content:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return v("receive")},content:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return v("recal")},content:"Recalibrate"})]})]}),M&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[M.src_x,", ",M.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[M.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[M.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",C," / ",j]})]})}},27418:function(P,y,t){"use strict";t.r(y),t.d(y,{TextInputModal:function(){return v},removeAllSkiplines:function(){return m},sanitizeMultiline:function(){return f}});var e=t(88095),s=t(72147),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=t(12035),x=t(18513),f=function(h){return h.replace(/(\n|\r\n){3,}/,"\n\n")},m=function(h){return h.replace(/[\r\n]+/,"")},v=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.large_buttons,j=p.max_length,b=p.message,I=b===void 0?"":b,O=p.multiline,_=p.placeholder,D=_===void 0?"":_,M=p.timeout,A=p.title,R=(0,n.useState)(D||""),K=R[0],N=R[1],k=function(J){if(J!==K){var H=O?f(J):m(J);N(H)}},V=O||K.length>=30,F=135+(I.length>30?Math.ceil(I.length/4):0)+(V?75:0)+(I.length&&C?5:0);return(0,e.jsxs)(a.p8,{title:A,width:325,height:F,children:[M&&(0,e.jsx)(x.Loader,{value:M}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(J){J.key===s._.Enter&&(!V||!J.shiftKey)&&d("submit",{entry:K}),J.key===s._.Escape&&d("cancel")},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.az,{color:"label",children:I})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{input:K,onType:k},A)}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:K,message:K.length+"/"+j})})]})})})]})},u=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.max_length,j=p.multiline,b=h.input,I=h.onType,O=j||b.length>=30;return(0,e.jsx)(i.fs,{autoFocus:!0,autoSelect:!0,height:j||b.length>=30?"100%":"1.8rem",maxLength:C,onEscape:function(){return d("cancel")},onEnter:function(_){O&&_.shiftKey||(_.preventDefault(),d("submit",{entry:b}))},onChange:function(_,D){return I(D)},onInput:function(_,D){return I(D)},placeholder:"Type something...",value:b})}},98143:function(P,y,t){"use strict";t.r(y),t.d(y,{TimeClock:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=t(89863),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.department_hours,h=v.user_name,c=v.card,d=v.assignment,p=v.job_datum,C=v.allow_change_job,j=v.job_choices;return(0,e.jsx)(i.p8,{width:500,height:520,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"OOC",children:[(0,e.jsx)(r.IC,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.wn,{level:2,title:"Time Off Balance for "+h,children:(0,e.jsx)(r.Ki,{children:Object.keys(u).map(function(b){return(0,e.jsxs)(r.Ki.Item,{label:b,color:u[b]>6?"good":u[b]>1?"average":"bad",children:[(0,s.Mg)(u[b],1)," ",u[b]===1?"hour":"hours"]},b)})})})]}),(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 m("id")},children:c||"Insert ID"})}),!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:p.selection_color,p:.8,children:(0,e.jsxs)(r.so,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{ml:1,children:(0,e.jsx)(a.RankIcon,{color:"white",rank:p.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:p.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:p.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:p.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:p.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",p.pto_department]})||p.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",p.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(C&&p&&p.timeoff_factor!==0&&d!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:p.timeoff_factor>0&&(u[p.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return m("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.az,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(j).length&&Object.keys(j).map(function(b){var I=j[b];return I.map(function(O){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return m("switch-to-onduty-rank",{"switch-to-onduty-rank":b,"switch-to-onduty-assignment":O})},children:O},O)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6048:function(P,y,t){"use strict";t.r(y),t.d(y,{TraitDescription:function(){return g},TraitSelection:function(){return a},TraitTutorial:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data;return(0,e.jsx)(r.p8,{width:804,height:426,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(a,{})})})})},a=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.names,h=v.selection;return(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{shrink:!0,children:(0,e.jsx)(n.wn,{title:"Trait Selection",children:(0,e.jsx)(n.tU,{vertical:!0,children:u.map(function(c){return(0,e.jsx)(n.tU.Tab,{selected:c===h,onClick:function(){return m("select_trait",{name:c})},children:(0,e.jsx)(n.az,{inline:!0,children:c})},c)})})})}),(0,e.jsx)(n.BJ.Item,{grow:8,children:h&&(0,e.jsx)(n.wn,{title:h,children:(0,e.jsx)(g,{name:h})})})]})},g=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=x.name,h=v.descriptions,c=v.categories,d=v.tutorials;return(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("b",{children:"Name:"})," ",u,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",c[u],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",h[u],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Details & How to Use:"}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:d[u]}})]})}},81267:function(P,y,t){"use strict";t.r(y),t.d(y,{TransferValve:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.tank_one,v=f.tank_two,u=f.attached_device,h=f.valve;return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(n.$n,{icon:h?"unlock":"lock",content:h?"Open":"Closed",disabled:!m||!v,onClick:function(){return x("toggle")}})})})}),(0,e.jsx)(n.wn,{title:"Assembly",buttons:(0,e.jsx)(n.$n,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){return x("device")}}),children:(0,e.jsx)(n.Ki,{children:u?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:u,disabled:!u,onClick:function(){return x("remove_device")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(n.wn,{title:"Attachment One",children:(0,e.jsx)(n.Ki,{children:m?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:m,disabled:!m,onClick:function(){return x("tankone")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(n.wn,{title:"Attachment Two",children:(0,e.jsx)(n.Ki,{children:v?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:v,disabled:!v,onClick:function(){return x("tanktwo")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},96734:function(P,y,t){"use strict";t.r(y),t.d(y,{TurbineControl:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(24158),i=t(84905),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.connected,u=m.compressor_broke,h=m.turbine_broke,c=m.broken,d=m.door_status,p=m.online,C=m.power,j=m.rpm,b=m.temp;return(0,e.jsx)(i.p8,{width:520,height:440,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Turbine Controller",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:c&&(0,e.jsxs)(n.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return f("reconnect")},content:"Reconnect"})]})||(0,e.jsx)(n.az,{color:p?"good":"bad",children:p&&!u&&!h?"Online":"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Compressor",children:u&&(0,e.jsx)(n.az,{color:"bad",children:"Compressor is inoperable."})||h&&(0,e.jsx)(n.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n.Checkbox,{checked:p,content:"Compressor Power",onClick:function(){return f(p?"power-off":"power-on")}})})}),(0,e.jsx)(n.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(n.$n.Checkbox,{checked:d,onClick:function(){return f("doors")},content:d?"Closed":"Open"})})]})}),(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Turbine Speed",children:[c?"--":(0,e.jsx)(n.zv,{value:j})," RPM"]}),(0,e.jsxs)(n.Ki.Item,{label:"Internal Temperature",children:[c?"--":(0,e.jsx)(n.zv,{value:b})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Generated Power",children:c?"--":(0,e.jsx)(n.zv,{format:function(I){return(0,r.d5)(I)},value:Number(C)})})]})})]})})}},44027:function(P,y,t){"use strict";t.r(y),t.d(y,{Turbolift:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.floors,v=f.doors_open,u=f.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:260+u*25,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:v?"door-open":"door-closed",content:v?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:v&&!u,color:u?"red":null,onClick:function(){return x("toggle_doors")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return x("emergency_stop")}})]}),children:[!u||(0,e.jsx)(n.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(n.so,{wrap:"wrap",children:m.map(function(h){return(0,e.jsx)(n.so.Item,{basis:"100%",children:(0,e.jsxs)(n.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{basis:"22%",textAlign:"right",mr:"3px",children:h.label||"Floor #"+h.id}),(0,e.jsx)(n.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(n.$n,{icon:"circle",color:h.current?"red":h.target?"green":h.queued?"yellow":null,onClick:function(){return x("move_to_floor",{ref:h.ref})}})}),(0,e.jsx)(n.so.Item,{basis:"50%",grow:1,children:h.name})]})},h.id)})})]})})})}},7829:function(P,y,t){"use strict";t.r(y),t.d(y,{GenericUplink:function(){return h},Uplink:function(){return m}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(24158),g=t(84905);function x(){return x=Object.assign||function(d){for(var p=1;p").map(function(O){return(0,e.jsx)(i.az,{children:O},O)})})]})})||I.map(function(O){return(0,e.jsx)(i.$n,{icon:"eye",fluid:!0,content:O.name,onClick:function(){return C("view_exploits",{id:O.id})}},O.id)})})},h=function(d){var p,C,j=d.currencyAmount,b=j===void 0?0:j,I=d.currencySymbol,O=I===void 0?"\u20AE":I,_=(0,r.Oc)(),D=_.act,M=_.data,A=M.compactMode,R=M.lockable,K=M.categories,N=K===void 0?[]:K,k=(0,n.useState)(""),V=k[0],F=k[1],J=(0,n.useState)((p=N[0])==null?void 0:p.name),H=J[0],Y=J[1],Z=(0,s.XZ)(V,function(z){return z.name+z.desc}),X=V.length>0&&N.flatMap(function(z){return z.items||[]}).filter(Z).filter(function(z,Q){return Q0?"good":"bad",children:[(0,a.up)(b)," ",O]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(i.pd,{autoFocus:!0,value:V,onInput:function(z,Q){return F(Q)},mx:1}),(0,e.jsx)(i.$n,{icon:A?"list":"info",content:A?"Compact":"Detailed",onClick:function(){return D("compact_toggle")}}),!!R&&(0,e.jsx)(i.$n,{icon:"lock",content:"Lock",onClick:function(){return D("lock")}})]}),children:(0,e.jsxs)(i.so,{children:[V.length===0&&(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.tU,{vertical:!0,children:N.map(function(z){var Q;return(0,e.jsxs)(i.tU.Tab,{selected:z.name===H,onClick:function(){return Y(z.name)},children:[z.name," (",((Q=z.items)==null?void 0:Q.length)||0,")"]},z.name)})})}),(0,e.jsxs)(i.so.Item,{grow:1,basis:0,children:[X.length===0&&(0,e.jsx)(i.IC,{children:V.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(c,{compactMode:V.length>0||A,currencyAmount:b,currencySymbol:O,items:X})]})]})})},c=function(d){var p=d.compactMode,C=d.currencyAmount,j=d.currencySymbol,b=(0,r.Oc)().act,I=(0,n.useState)({}),O=I[0],_=I[1],D=O&&O.cost||0,M=d.items.map(function(A){var R=O&&O.name!==A.name,K=C-D=0)&&(k[F]=K[F]);return k}var m=[null,"average","bad"],v={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},u={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},h=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=(0,r.useState)(0),J=F[0],H=F[1],Y=[];return Y[0]=(0,e.jsx)(d,{}),Y[1]=(0,e.jsx)(A,{}),(0,e.jsx)(g.p8,{width:890,height:660,theme:"abstract",children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[V.unsaved_changes&&(0,e.jsx)(a.IC,{danger:!0,children:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){k("saveprefs"),k("exportpanel")}})})]})})||null,(0,e.jsx)(c,{}),(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:J===0,onClick:function(){return H(0)},children:["Bellies",(0,e.jsx)(a.In,{name:"list",ml:.5})]}),(0,e.jsxs)(a.tU.Tab,{selected:J===1,onClick:function(){return H(1)},children:["Preferences",(0,e.jsx)(a.In,{name:"user-cog",ml:.5})]})]}),Y[J]||"Error"]})})},c=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.inside,J=F.absorbed,H=F.belly_name,Y=F.belly_mode,Z=F.desc,X=F.pred,z=F.contents,Q=F.ref;return H?(0,e.jsxs)(a.wn,{title:"Inside",children:[(0,e.jsxs)(a.az,{color:"green",inline:!0,children:["You are currently ",J?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(a.az,{color:"yellow",inline:!0,children:[X,"'s"]}),"\xA0",(0,e.jsx)(a.az,{color:"red",inline:!0,children:H}),"\xA0",(0,e.jsx)(a.az,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(a.az,{color:v[Y],inline:!0,children:u[Y]}),"\xA0",(0,e.jsx)(a.az,{color:"label",children:Z}),z.length&&(0,e.jsx)(a.Nt,{title:"Belly Contents",children:(0,e.jsx)(M,{contents:z,belly:Q})})||"There is nothing else around you."]}):(0,e.jsx)(a.wn,{title:"Inside",children:"You aren't inside anyone."})},d=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.our_bellies,J=V.selected;return(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{shrink:!0,children:(0,e.jsx)(a.wn,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(a.tU,{vertical:!0,children:[(0,e.jsxs)(a.tU.Tab,{onClick:function(){return k("newbelly")},children:["New",(0,e.jsx)(a.In,{name:"plus",ml:.5})]}),(0,e.jsxs)(a.tU.Tab,{onClick:function(){return k("exportpanel")},children:["Export",(0,e.jsx)(a.In,{name:"file-export",ml:.5})]}),(0,e.jsx)(a.cG,{}),F.map(function(H){return(0,e.jsx)(a.tU.Tab,{selected:H.selected,textColor:v[H.digest_mode],onClick:function(){return k("bellypick",{bellypick:H.ref})},children:(0,e.jsxs)(a.az,{inline:!0,textColor:H.selected&&v[H.digest_mode]||null,children:[H.name," (",H.contents,")"]})},H.name)})]})})}),(0,e.jsx)(a.so.Item,{grow:!0,children:J&&(0,e.jsx)(a.wn,{title:J.belly_name,children:(0,e.jsx)(p,{belly:J})})})]})},p=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.contents,F=(0,r.useState)(0),J=F[0],H=F[1],Y=[];return Y[0]=(0,e.jsx)(C,{belly:k}),Y[1]=(0,e.jsx)(j,{belly:k}),Y[2]=(0,e.jsx)(b,{belly:k}),Y[3]=(0,e.jsx)(O,{belly:k}),Y[4]=(0,e.jsx)(_,{belly:k}),Y[5]=(0,e.jsx)(D,{belly:k}),Y[6]=(0,e.jsx)(M,{outside:!0,contents:V}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{selected:J===0,onClick:function(){return H(0)},children:"Controls"}),(0,e.jsx)(a.tU.Tab,{selected:J===1,onClick:function(){return H(1)},children:"Descriptions"}),(0,e.jsx)(a.tU.Tab,{selected:J===2,onClick:function(){return H(2)},children:"Options"}),(0,e.jsx)(a.tU.Tab,{selected:J===3,onClick:function(){return H(3)},children:"Sounds"}),(0,e.jsx)(a.tU.Tab,{selected:J===4,onClick:function(){return H(4)},children:"Visuals"}),(0,e.jsx)(a.tU.Tab,{selected:J===5,onClick:function(){return H(5)},children:"Interactions"}),(0,e.jsxs)(a.tU.Tab,{selected:J===6,onClick:function(){return H(6)},children:["Contents (",V.length,")"]})]}),Y[J]||"Error"]})},C=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.belly_name,F=k.mode,J=k.item_mode,H=k.addons;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return N("move_belly",{dir:-1})}}),(0,e.jsx)(a.$n,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return N("move_belly",{dir:1})}})]}),children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_name"})},content:V})}),(0,e.jsx)(a.Ki.Item,{label:"Mode",children:(0,e.jsx)(a.$n,{color:v[F],onClick:function(){return N("set_attribute",{attribute:"b_mode"})},content:F})}),(0,e.jsxs)(a.Ki.Item,{label:"Mode Addons",children:[H.length&&H.join(", ")||"None",(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(a.Ki.Item,{label:"Item Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_item_mode"})},content:J})}),(0,e.jsx)(a.Ki.Item,{basis:"100%",mt:1,children:(0,e.jsx)(a.$n.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){return N("set_attribute",{attribute:"b_del"})}})})]})},j=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.verb,F=k.release_verb,J=k.desc,H=k.absorbed_desc;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Description",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:J}),(0,e.jsx)(a.Ki.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:H}),(0,e.jsx)(a.Ki.Item,{label:"Vore Verb",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_verb"})},content:V})}),(0,e.jsx)(a.Ki.Item,{label:"Release Verb",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release_verb"})},content:F})}),(0,e.jsxs)(a.Ki.Item,{label:"Examine Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"em"})},content:"Examine Message (when full)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},content:"Examine Message (with absorbed victims)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Struggle Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},content:"Struggle Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},content:"Struggle Message (inside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},content:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},content:"Absorbed Struggle Message (inside)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Escape Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},content:"Escape Attempt Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},content:"Escape Attempt Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},content:"Escape Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},content:"Escape Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},content:"Escape Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},content:"Escape Item Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},content:"Escape Item Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},content:"Escape Item Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},content:"Escape Fail Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},content:"Escape Fail Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},content:"Absorbed Escape Attempt Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},content:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},content:"Absorbed Escape Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},content:"Absorbed Escape Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},content:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Transfer Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},content:"Primary Transfer Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},content:"Primary Transfer Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},content:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},content:"Secondary Transfer Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Interaction Chance Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},content:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},content:"Interaction Chance Digest Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},content:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Bellymode Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},content:"Digest Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},content:"Digest Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},content:"Absorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},content:"Absorb Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},content:"Unabsorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},content:"Unabsorb Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Idle Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},content:"Idle Messages (Hold)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},content:"Idle Messages (Hold Absorbed)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},content:"Idle Messages (Digest)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},content:"Idle Messages (Absorb)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},content:"Idle Messages (Unabsorb)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},content:"Idle Messages (Drain)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},content:"Idle Messages (Heal)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},content:"Idle Messages (Size Steal)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},content:"Idle Messages (Shrink)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},content:"Idle Messages (Grow)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},content:"Idle Messages (Encase In Egg)"})]}),(0,e.jsx)(a.Ki.Item,{label:"Reset Messages",children:(0,e.jsx)(a.$n,{color:"red",onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},content:"Reset Messages"})})]})},b=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.host_mobtype,J=F.is_cyborg,H=F.is_vore_simple_mob,Y=K.belly,Z=Y.can_taste,X=Y.nutrition_percent,z=Y.digest_brute,Q=Y.digest_burn,ee=Y.digest_oxy,oe=Y.digest_tox,ne=Y.digest_clone,ue=Y.bulge_size,ce=Y.display_absorbed_examine,me=Y.shrink_grow_size,xe=Y.emote_time,ve=Y.emote_active,be=Y.contaminates,we=Y.contaminate_flavor,Je=Y.contaminate_color,ze=Y.egg_type,Ke=Y.selective_preference,Be=Y.save_digest_mode,ct=Y.eating_privacy_local,xt=Y.silicon_belly_overlay_preference,st=Y.belly_mob_mult,ot=Y.belly_item_mult,Ae=Y.belly_overall_mult;return(0,e.jsxs)(a.so,{wrap:"wrap",children:[(0,e.jsxs)(a.so.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Can Taste",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tastes"})},icon:Z?"toggle-on":"toggle-off",selected:Z,content:Z?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Contaminates",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contaminate"})},icon:be?"toggle-on":"toggle-off",selected:be,content:be?"Yes":"No"})}),be&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.Ki.Item,{label:"Contamination Flavor",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",content:we})}),(0,e.jsx)(a.Ki.Item,{label:"Contamination Color",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",content:(0,n.ZH)(Je)})})]})||null,(0,e.jsx)(a.Ki.Item,{label:"Nutritional Gain",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_nutritionpercent"})},content:X+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Required Examine Size",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_bulge_size"})},content:ue*100+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:ce?"toggle-on":"toggle-off",selected:ce,content:ce?"True":"False"})}),(0,e.jsx)(a.Ki.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_eating_privacy"})},content:(0,n.ZH)(ct)})}),(0,e.jsx)(a.Ki.Item,{label:"Save Digest Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_save_digest_mode"})},icon:Be?"toggle-on":"toggle-off",selected:Be,content:Be?"True":"False"})})]}),(0,e.jsx)(I,{belly:Y})]}),(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Idle Emotes",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emoteactive"})},icon:ve?"toggle-on":"toggle-off",selected:ve,content:ve?"Active":"Inactive"})}),(0,e.jsx)(a.Ki.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emotetime"})},content:xe+" seconds"})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_brute_dmg"})},content:z})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_burn_dmg"})},content:Q})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_oxy_dmg"})},content:ee})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tox_dmg"})},content:oe})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_clone_dmg"})},content:ne})}),(0,e.jsx)(a.Ki.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_grow_shrink"})},content:me*100+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Egg Type",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_egg_type"})},icon:"pen",content:(0,n.ZH)(ze)})}),(0,e.jsx)(a.Ki.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},content:(0,n.ZH)(Ke)})})]})})]})},I=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.host_mobtype,J=F.is_cyborg,H=F.is_vore_simple_mob,Y=K.belly,Z=Y.silicon_belly_overlay_preference,X=Y.belly_mob_mult,z=Y.belly_item_mult,Q=Y.belly_overall_mult;return J?(0,e.jsx)(a.wn,{title:"Cyborg Controls",width:"80%",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_silicon_belly"})},content:(0,n.ZH)(Z)})}),(0,e.jsx)(a.Ki.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_mob_mult"})},content:X})}),(0,e.jsx)(a.Ki.Item,{label:"Item Vorebelly Size Mult",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_item_mult"})},content:z})}),(0,e.jsx)(a.Ki.Item,{label:"Belly Size Multiplier",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_overall_mult"})},content:Q})})]})}):H?(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{})}):(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{})})},O=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.is_wet,F=k.wet_loop,J=k.fancy,H=k.sound,Y=k.release_sound;return(0,e.jsx)(a.so,{wrap:"wrap",children:(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Fleshy Belly",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetness"})},icon:V?"toggle-on":"toggle-off",selected:V,content:V?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Internal Loop",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetloop"})},icon:F?"toggle-on":"toggle-off",selected:F,content:F?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_fancy_sound"})},icon:J?"toggle-on":"toggle-off",selected:J,content:J?"Yes":"No"})}),(0,e.jsxs)(a.Ki.Item,{label:"Vore Sound",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_sound"})},content:H}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Release Sound",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release"})},content:Y}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]})]})})})},_=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.belly_fullscreen,F=k.possible_fullscreens,J=k.disable_hud,H=k.belly_fullscreen_color,Y=k.belly_fullscreen_color_secondary,Z=k.belly_fullscreen_color_trinary,X=k.mapRef,z=k.colorization_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.wn,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.jsxs)(a.so,{direction:"row",children:[(0,e.jsx)(a.az,{backgroundColor:H,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color",val:null})},children:"Select Primary Color"}),(0,e.jsx)(a.az,{backgroundColor:Y,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})},children:"Select Secondary Color"}),(0,e.jsx)(a.az,{backgroundColor:Z,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})},children:"Select Trinary Color"}),(0,e.jsx)(a.Ki.Item,{label:"Enable Coloration",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_colorization_enabled"})},icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Preview Belly",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_preview_belly"})},content:"Preview"})}),(0,e.jsx)(a.Ki.Item,{label:"Clear Preview",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_clear_preview"})},content:"Clear"})})]})}),(0,e.jsxs)(a.wn,{children:[(0,e.jsx)(a.wn,{title:"Vore FX",children:(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_disable_hud"})},icon:J?"toggle-on":"toggle-off",selected:J,content:J?"Yes":"No"})})})}),(0,e.jsxs)(a.wn,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(a.$n,{fluid:!0,selected:V===""||V===null,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(F).map(function(Q,ee){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(a.$n,{width:"256px",height:"256px",selected:Q===V,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:Q})},children:(0,e.jsx)(a.az,{className:(0,s.Ly)(["vore240x240",Q]),style:{transform:"translate(0%, 4%)"}})},Q)},ee)})]})]})]})},D=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.escapable,F=k.interacts;return(0,e.jsx)(a.wn,{title:"Belly Interactions",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapable"})},icon:V?"toggle-on":"toggle-off",selected:V,content:V?"Interactions On":"Interactions Off"}),children:V?(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Escape Chance",children:(0,e.jsx)(a.$n,{content:F.escapechance+"%",onClick:function(){return N("set_attribute",{attribute:"b_escapechance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(a.$n,{content:F.escapechance_absorbed+"%",onClick:function(){return N("set_attribute",{attribute:"b_escapechance_absorbed"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Escape Time",children:(0,e.jsx)(a.$n,{content:F.escapetime/10+"s",onClick:function(){return N("set_attribute",{attribute:"b_escapetime"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Transfer Chance",children:(0,e.jsx)(a.$n,{content:F.transferchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_transferchance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Transfer Location",children:(0,e.jsx)(a.$n,{content:F.transferlocation?F.transferlocation:"Disabled",onClick:function(){return N("set_attribute",{attribute:"b_transferlocation"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(a.$n,{content:F.transferchance_secondary+"%",onClick:function(){return N("set_attribute",{attribute:"b_transferchance_secondary"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(a.$n,{content:F.transferlocation_secondary?F.transferlocation_secondary:"Disabled",onClick:function(){return N("set_attribute",{attribute:"b_transferlocation_secondary"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Absorb Chance",children:(0,e.jsx)(a.$n,{content:F.absorbchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_absorbchance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Chance",children:(0,e.jsx)(a.$n,{content:F.digestchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_digestchance"})}})})]}):"These options only display while interactions are turned on."})},M=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.show_pictures,J=K.contents,H=K.belly,Y=K.outside,Z=Y===void 0?!1:Y;return(0,e.jsxs)(e.Fragment,{children:[Z&&(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return k("pick_from_outside",{pickall:!0})},children:"All"})||null,F&&(0,e.jsx)(a.so,{wrap:"wrap",justify:"center",align:"center",children:J.map(function(X){return(0,e.jsxs)(a.so.Item,{basis:"33%",children:[(0,e.jsx)(a.$n,{width:"64px",color:X.absorbed?"purple":m[X.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){return k(X.outside?"pick_from_outside":"pick_from_inside",{pick:X.ref,belly:H})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+X.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),X.name]},X.name)})})||(0,e.jsx)(a.Ki,{children:J.map(function(X){return(0,e.jsx)(a.Ki.Item,{label:X.name,children:(0,e.jsx)(a.$n,{fluid:!0,mt:-1,mb:-1,color:X.absorbed?"purple":m[X.stat],onClick:function(){return k(X.outside?"pick_from_outside":"pick_from_inside",{pick:X.ref,belly:H})},children:"Interact"})},X.ref)})})]})},A=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.prefs,J=F.digestable,H=F.devourable,Y=F.resizable,Z=F.feeding,X=F.absorbable,z=F.digest_leave_remains,Q=F.allowmobvore,ee=F.permit_healbelly,oe=F.show_vore_fx,ne=F.can_be_drop_prey,ue=F.can_be_drop_pred,ce=F.allow_inbelly_spawning,me=F.allow_spontaneous_tf,xe=F.step_mechanics_active,ve=F.pickup_mechanics_active,be=F.noisy,we=F.drop_vore,Je=F.stumble_vore,ze=F.slip_vore,Ke=F.throw_vore,Be=F.food_vore,ct=F.nutrition_message_visible,xt=F.weight_message_visible,st=F.eating_privacy_global,ot=V.show_pictures,Ae={digestion:{action:"toggle_digest",test:J,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:X,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:H,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:Q,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:Z,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:ee,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:ne,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:ue,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:we,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:ze,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:Je,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:Ke,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:Be,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},inbelly_spawning:{action:"toggle_allow_inbelly_spawning",test:ce,tooltip:{main:"This toggle is ghosts being able to spawn in one of your bellies. You will have to confirm again when they attempt to.",enable:"Click here to allow prey to spawn in you.",disable:"Click here to prevent prey from spawning in you."},content:{enabled:"Inbelly Spawning Allowed",disabled:"Inbelly Spawning Forbidden"}},noisy:{action:"toggle_noisy",test:be,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},resize:{action:"toggle_resize",test:Y,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:xe,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:oe,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:z,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:ve,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:me,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:ct,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:xt,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:st,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}}};return(0,e.jsxs)(a.wn,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(a.$n,{icon:"eye",selected:ot,onClick:function(){return k("show_pictures")},children:["Contents Preference: ",ot?"Show Pictures":"Show List"]}),children:[(0,e.jsxs)(a.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.digestion})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.absorbable})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.devour})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.mobvore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.feed})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.healbelly,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.dropnom_prey})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.dropnom_pred})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_drop_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_slip_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.toggle_stumble_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_throw_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_food_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.inbelly_spawning})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.noisy})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.resize})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.steppref,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.vore_fx,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.remains,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.spontaneous_tf})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Selective Mode Preference",onClick:function(){return k("switch_selective_mode_pref")}})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:3,children:(0,e.jsx)(R,{spec:Ae.eating_privacy_global})})]}),(0,e.jsx)(a.wn,{title:"Aesthetic Preferences",children:(0,e.jsxs)(a.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){return k("setflavor")}})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){return k("setsmell")}})}),(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"en"})},content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(R,{spec:Ae.examine_nutrition})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(R,{spec:Ae.examine_weight})})]})}),(0,e.jsx)(a.cG,{}),(0,e.jsx)(a.wn,{children:(0,e.jsxs)(a.so,{spacing:1,children:[(0,e.jsx)(a.so.Item,{basis:"49%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){return k("reloadprefs")}})})]})})]})},R=function(K){var N=(0,i.Oc)().act,k=K.spec,V=f(K,["spec"]),F=k.action,J=k.test,H=k.tooltip,Y=k.content;return(0,e.jsx)(a.$n,x({onClick:function(){return N(F)},icon:J?"toggle-on":"toggle-off",selected:J,fluid:!0,tooltip:H.main+" "+(J?H.disable:H.enable),content:J?Y.enabled:Y.disabled},V))}},85688:function(P,y,t){"use strict";t.r(y),t.d(y,{VorePanelExport:function(){return u}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i={Hold:'Hold',Digest:'Digest',Absorb:'Absorb',Drain:'Drain',Selective:'Selective',Unabsorb:'Unabsorb',Heal:'Heal',Shrink:'Shrink',Grow:'Grow',"Size Steal":'Size Steal',"Encase In Egg":'Encase In Egg'},a={Hold:'Item: Hold',"Digest (Food Only)":'Item: Digest (Food Only)',Digest:'Item: Digest'},g={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},x=function(c){var d=[];return c==null||c.forEach(function(p){d.push(''+p+"")}),d.length===0&&d.push("No Addons Set"),d},f=function(c,d){var p=c.name,C=c.desc,j=c.absorbed_desc,b=c.vore_verb,I=c.release_verb,O=c.mode,_=c.addons,D=c.item_mode,M=c.digest_brute,A=c.digest_burn,R=c.digest_oxy,K=c.digest_tox,N=c.digest_clone,k=c.can_taste,V=c.contaminates,F=c.contamination_flavor,J=c.contamination_color,H=c.nutrition_percent,Y=c.bulge_size,Z=c.display_absorbed_examine,X=c.save_digest_mode,z=c.emote_active,Q=c.emote_time,ee=c.shrink_grow_size,oe=c.egg_type,ne=c.selective_preference,ue=c.struggle_messages_outside,ce=c.struggle_messages_inside,me=c.absorbed_struggle_messages_outside,xe=c.absorbed_struggle_messages_inside,ve=c.escape_attempt_messages_owner,be=c.escape_attempt_messages_prey,we=c.escape_messages_owner,Je=c.escape_messages_prey,ze=c.escape_messages_outside,Ke=c.escape_item_messages_owner,Be=c.escape_item_messages_prey,ct=c.escape_item_messages_outside,xt=c.escape_fail_messages_owner,st=c.escape_fail_messages_prey,ot=c.escape_attempt_absorbed_messages_owner,Ae=c.escape_attempt_absorbed_messages_prey,Le=c.escape_absorbed_messages_owner,Pe=c.escape_absorbed_messages_prey,ke=c.escape_absorbed_messages_outside,Me=c.escape_fail_absorbed_messages_owner,Fe=c.escape_fail_absorbed_messages_prey,We=c.primary_transfer_messages_owner,He=c.primary_transfer_messages_prey,jt=c.secondary_transfer_messages_owner,Mt=c.secondary_transfer_messages_prey,bt=c.digest_chance_messages_owner,Dt=c.digest_chance_messages_prey,lt=c.absorb_chance_messages_owner,Ge=c.absorb_chance_messages_prey,je=c.digest_messages_owner,Qe=c.digest_messages_prey,mt=c.absorb_messages_owner,Pt=c.absorb_messages_prey,zt=c.unabsorb_messages_owner,en=c.unabsorb_messages_prey,Wt=c.examine_messages,dn=c.examine_messages_absorbed,Bn=c.emotes_digest,Gn=c.emotes_hold,Hn=c.emotes_holdabsorbed,Eo=c.emotes_absorb,bo=c.emotes_heal,Oo=c.emotes_drain,Vr=c.emotes_steal,Xr=c.emotes_egg,Gr=c.emotes_shrink,oa=c.emotes_grow,In=c.emotes_unabsorb,Io=c.is_wet,Cr=c.wet_loop,xn=c.fancy_vore,pn=c.vore_sound,ir=c.release_sound,Er=c.disable_hud,_o=c.escapable,ei=c.escapechance,ti=c.escapechance_absorbed,ni=c.escapetime,Kn=c.transferchance,aa=c.transferlocation,ia=c.transferchance_secondary,ri=c.transferlocation_secondary,sa=c.absorbchance,la=c.digestchance,ae="";return ae+='",ae+='
',ae+='
',ae+="Addons:
"+x(_)+"
",ae+="
== Descriptions ==",ae+="Vore Verb:
"+b+"
",ae+="Release Verb:
"+I+"
",ae+='Description:
"'+C+'"
',ae+='Absorbed Description:
"'+j+'"
',ae+="
",ae+="
== Messages ==",ae+='
',ae+='
',ae+='
',ae+='
Escape Attempt Messages (Owner)',ae+='
Escape Attempt Messages (Prey)',ae+='
Escape Message (Owner)',ae+='
Escape Message (Prey)',ae+='
Escape Message (Outside)',ae+='
Escape Item Messages (Owner)',ae+='
Escape Item Messages (Prey)',ae+='
Escape Item Messages (Outside)',ae+='
Escape Fail Messages (Owner)',ae+='
Escape Fail Messages (Prey)',ae+='
Escape Attempt Absorbed Messages (Owner)',ae+='
Escape Attempt Absorbed Messages (Prey)',ae+='
Escape Absorbed Messages (Owner)',ae+='
Escape Absorbed Messages (Prey)',ae+='
Escape Absorbed Messages (Outside)',ae+='
Escape Fail Absorbed Messages (Owner)',ae+='
Escape Fail Absorbed Messages (Prey)',ae+='
Primary Transfer Messages (Owner)',ae+='
Primary Transfer Messages (Prey)',ae+='
Secondary Transfer Messages (Owner)',ae+='
Secondary Transfer Messages (Prey)',ae+='
Digest Chance Messages (Owner)',ae+='
Digest Chance Messages (Prey)',ae+='
Absorb Chance Messages (Owner)',ae+='
Absorb Chance Messages (Prey)',ae+='
Struggle Messages (Outside)',ae+='
Struggle Messages (Inside)',ae+='
Absorbed Struggle Messages (Outside)',ae+='
Absorbed Struggle Messages (Inside)',ae+='
Digest Messages (Owner)',ae+='
Digest Messages (Prey)',ae+='
Absorb Messages (Owner)',ae+='
Absorb Messages (Prey)',ae+='
Unabsorb Messages (Owner)',ae+='
Unabsorb Messages (Prey)',ae+='
Examine Messages',ae+='
Examine Messages (Absorbed)',ae+="
",ae+='
',ae+='
',ae+='
',ve==null||ve.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',be==null||be.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',we==null||we.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Je==null||Je.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ze==null||ze.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ke==null||Ke.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Be==null||Be.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ct==null||ct.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',xt==null||xt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',st==null||st.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ot==null||ot.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ae==null||Ae.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Le==null||Le.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Pe==null||Pe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ke==null||ke.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Me==null||Me.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Fe==null||Fe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',We==null||We.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',He==null||He.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',jt==null||jt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Mt==null||Mt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',bt==null||bt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Dt==null||Dt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',lt==null||lt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ge==null||Ge.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ue==null||ue.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ce==null||ce.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',me==null||me.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',xe==null||xe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',je==null||je.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Qe==null||Qe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',mt==null||mt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Pt==null||Pt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',zt==null||zt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',en==null||en.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Wt==null||Wt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',dn==null||dn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="
",ae+="
",ae+="
",ae+="
= Idle Messages =
",ae+="Idle Messages (Hold):
",Gn==null||Gn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Hold Absorbed):
",Hn==null||Hn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Digest):
",Bn==null||Bn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Absorb):
",Eo==null||Eo.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Unabsorb):
",In==null||In.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Drain):
",Oo==null||Oo.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Heal):
",bo==null||bo.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Size Steal):
",Vr==null||Vr.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Shrink):
",Gr==null||Gr.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Grow):
",oa==null||oa.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Encase In Egg):
",Xr==null||Xr.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="",ae+="
",ae+='
',ae+='
',ae+='",ae+='
',ae+='
',ae+='
',ae+='- Can Taste: '+(k?'Yes':'No')+"
",ae+='- Contaminates: '+(V?'Yes':'No')+"
",ae+='- Contamination Flavor: '+F+"
",ae+='- Contamination Color: '+J+"
",ae+='- Nutritional Gain: '+H+"%
",ae+='- Required Examine Size: '+Y*100+"%
",ae+='- Display Absorbed Examines: '+(Z?'True':'False')+"
",ae+='- Save Digest Mode: '+(X?'True':'False')+"
",ae+='- Idle Emotes: '+(z?'Active':'Inactive')+"
",ae+='- Idle Emote Delay: '+Q+" seconds
",ae+='- Shrink/Grow Size: '+ee*100+"%
",ae+='- Egg Type: '+oe+"
",ae+='- Selective Mode Preference: '+ne+"
",ae+="
",ae+="
",ae+='
',ae+='",ae+='
',ae+='
',ae+='
',ae+='- Fleshy Belly: '+(Io?'Yes':'No')+"
",ae+='- Internal Loop: '+(Cr?'Yes':'No')+"
",ae+='- Use Fancy Sounds: '+(xn?'Yes':'No')+"
",ae+='- Vore Sound: '+pn+"
",ae+='- Release Sound: '+ir+"
",ae+="
",ae+="
",ae+='
',ae+='",ae+='
",ae+='
',ae+="
Vore FX",ae+='
',ae+='- Disable Prey HUD: '+(Er?'Yes':'No')+"
",ae+="
",ae+="
",ae+='
',ae+='",ae+='
',ae+='
',ae+="
Belly Interactions ("+(_o?'Enabled':'Disabled')+")",ae+='
',ae+='- Escape Chance: '+ei+"%
",ae+='- Escape Chance: '+ti+"%
",ae+='- Escape Time: '+ni/10+"s
",ae+='- Transfer Chance: '+Kn+"%
",ae+='- Transfer Location: '+aa+"
",ae+='- Secondary Transfer Chance: '+ia+"%
",ae+='- Secondary Transfer Location: '+ri+"
",ae+='- Absorb Chance: '+sa+"%
",ae+='- Digest Chance: '+la+"%
",ae+="
",ae+="
",ae+="
",ae},m=function(){var c=new Date,d=String(c.getHours());d.length<2&&(d="0"+d);var p=String(c.getMinutes());p.length<2&&(p="0"+p);var C=String(c.getDate());C.length<2&&(C="0"+C);var j=String(c.getMonth()+1);j.length<2&&(j="0"+j);var b=String(c.getFullYear());return" "+b+"-"+j+"-"+C+" ("+d+" "+p+")"},v=function(c){var d=(0,s.Oc)(),p=d.act,C=d.data,j=C.db_version,b=C.db_repo,I=C.mob_name,O=C.bellies,_=m(),D=I+_+c,M;if(c===".html"){var A="";M=new Blob(['
'+O.length+" Exported Bellies (DB_VER: "+b+"-"+j+')'+A+'
Bellies of '+I+'
Generated on: '+_+'
'],{type:"text/html;charset=utf8"}),O.forEach(function(R,K){M=new Blob([M,f(R,K)],{type:"text/html;charset=utf8"})}),M=new Blob([M,"
",'